* fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1763fba4
MK
12003-11-07 Mark Kettenis <kettenis@gnu.org>
2
3 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
4 fscanf.
5
fc07cc2d
MK
62003-11-07 Mark Kettenis <kettenis@gnu.org>
7
8 * fbsd-proc.c: Fix formatting.
9
6a748db6
KB
102003-11-06 Kevin Buettner <kevinb@redhat.com>
11
12 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
13 Define.
14 (new_variant): Set name for iacc0_regnum.
15 (frv_register_name): Accommodate pseudo-registers.
16 (frv_register_type): Add case for iacc0_regnum.
17 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
18 (frv_gdbarch_init): Set number of pseudo registers. Establish
19 pseudo-register read/write methods.
20
bf896cb0
AC
212003-11-06 Andrew Cagney <cagney@redhat.com>
22
23 * valops.c (destructor_name_p): Replace STREQN with strncmp.
24 * top.c (command_line_input): Ditto.
25 * objc-exp.y (yylex): Ditto.
26 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
27 * jv-exp.y (yylex): Ditto.
28 * f-exp.y (yylex): Ditto.
29 * event-top.c (command_line_handler): Ditto.
30 * environ.c (get_in_environ): Ditto.
31 (set_in_environ): Ditto.
32 * dwarfread.c (handle_producer): Ditto.
33 * dbxread.c (process_one_symbol): Ditto.
34 * c-typeprint.c (c_type_print_base): Ditto.
35 * c-exp.y (yylex): Ditto.
36
0b603eba
AC
372003-11-06 Andrew Cagney <cagney@redhat.com>
38 Jeff Johnston <jjohnstn@redhat.com>
39
40 * target.c (add_target): Only set "to_xfer_partial" when NULL.
41 (init_dummy_target): Set "to_xfer_partial".
42
9cedbfec
AC
432003-11-06 Andrew Cagney <cagney@redhat.com>
44
45 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
46 REGISTER_CONVENTION.
47
26bb91f3
DJ
482003-11-06 Daniel Jacobowitz <drow@mvista.com>
49
50 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
51 static.
52
0bde7532
DJ
532003-11-06 Daniel Jacobowitz <drow@mvista.com>
54
55 * breakpoint.c (remove_breakpoint): Take an bp_location
56 instead of a breakpoint argument. Check the bp_location's type.
57 Fix a reversed condition for hardware breakpoints.
58
59 (insert_bp_location): Update call to remove_breakpoint.
60 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
61 (remove_hw_watchpoints): Likewise.
62 (reattach_breakpoints): Likewise.
63 (detach_breakpoints): Likewise.
64 (delete_breakpoint): Likewise.
65
075f6582
DJ
662003-11-06 Daniel Jacobowitz <drow@mvista.com>
67
68 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
69 (beakpoint_init_inferior): Likewise.
70 (breakpoint_here_p): Likewise. Only check addresses for software
71 or hardware breakpoints.
72 (breakpoint_inserted_here_p): Likewise.
73 (breakpoint_thread_match): Likewise. Correct comment.
74 (bpstat_have_active_hw_watchpoints): Likewise.
75 (check_duplicates): Likewise.
76
879bfdc2
DJ
772003-11-06 Daniel Jacobowitz <drow@mvista.com>
78
79 * breakpoints.c (insert_bp_location): New function, broken out
80 from insert_breakpoints. Work on an bp_location instead of a
81 breakpoint.
82 (insert_breakpoints): Use it.
83
cf3a9e5b
DJ
842003-11-06 Daniel Jacobowitz <drow@mvista.com>
85
86 * breakpoint.h (struct bp_location): Add section.
87 (struct breakpoint): Remove section.
88 * breakpoint.c (insert_breakpoints, remove_breakpoint)
89 (breakpoint_here_p, breakpoint_inserted_here_p)
90 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
91 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
92 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
93 section through loc.
94
ffce0d52
DJ
952003-11-06 Daniel Jacobowitz <drow@mvista.com>
96
97 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
98 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
99
e049a4b5
DJ
1002003-11-06 Daniel Jacobowitz <drow@mvista.com>
101
102 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
103 arguments. Initialize owner and type for the new breakpoint
104 location item.
105 (set_raw_breakpoint): Update call to allocate_bp_location.
106
7cc221ef
DJ
1072003-11-06 Daniel Jacobowitz <drow@mvista.com>
108
109 * breakpoint.h (struct bp_location): Add a chain pointer.
110 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
111 macros.
112 (bp_location_chain): New variable.
113 (allocate_bp_location): New function.
114 (set_raw_breakpoint): Use it.
115 (delete_breakpoint): Remove ->loc from the bp_location_chain.
116
5cab636d
DJ
1172003-11-06 Daniel Jacobowitz <drow@mvista.com>
118
119 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
120 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 121 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
122 * breakpoint.c (condition_command, read_memory_nobpt)
123 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
124 (reattach_breakpoints, update_breakpoints_after_exec)
125 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
126 (breakpoint_init_inferior, breakpoint_here_p)
127 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
128 (breakpoint_thread_match, bpstat_stop_status)
129 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
130 (describe_other_breakpoints, check_duplicates)
131 (make_breakpoint_permanent, create_thread_event_breakpoint)
132 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
133 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
134 (watch_command_1, print_one_exception_catchpoint)
135 (clear_command, breakpoint_re_set_one): Adjust member accesses to
136 use the breakpoint's ->loc.
137 (set_raw_breakpoint): Likewise. Initialize ->loc.
138 (delete_breakpoint): Likewise. Free ->loc.
139
7be0c536
AC
1402003-11-05 Andrew Cagney <cagney@redhat.com>
141
4c7d882e
AC
142 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
143 macro.
144 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
145 * config/i386/tm-cygwin.h
146 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
147 * config/powerpc/tm-linux.h
148 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
149 (at_subroutine_call_instruction_target): Delete declaration.
150 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
151 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
152 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
153
7be0c536
AC
154 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
155 "struct bfd_section" and "struct bfd".
156 * target.h (struct section_table): Ditto.
157 * rs6000-nat.c (xcoff_relocate_core): Ditto.
158 * solib-svr4.c (elf_locate_base): Ditto.
159 * pa64solib.c (dld_cache_t): Ditto.
160 * objfiles.h (struct obj_section): Ditto.
161 * objfiles.c (add_to_objfile_sections): Ditto.
162 * exec.c (bfdsec_to_vmap): Ditto.
163 (add_to_section_table): Ditto.
164 (build_section_table): Ditto.
165 * corelow.c (get_core_register_section): Ditto.
166 * coffread.c (find_linenos): Ditto.
167 * elfread.c (elf_interpreter): Delete #if0'd function.
168
169 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
170 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
171 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
172 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
173
174 * arch-utils.h (generic_cannot_extract_struct_value_address):
175 Delete declaration.
176 * wince.c (_initialize_wince): Fix multi-line string.
177 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
178
d8fe84e3
EZ
1792003-11-05 Elena Zannoni <ezannoni@redhat.com>
180
181 * top.c (execute_command): Fix broken logic for command execution
182 while inferior is running in async mode.
183
cbdfc7c0
MK
1842003-11-06 Mark Kettenis <kettenis@gnu.org>
185
186 * dwarf2-frame.c (execute_cfa_program): Mark register as
187 REG_SAVED_REG for DW_CFA_register opcode.
188
dac94105
MK
1892003-11-05 Mark Kettenis <kettenis@gnu.org>
190
191 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
192 %rsp, %rip and %eflags to match ABI-change.
193
85bf2b91
JJ
1942003-11-05 Jeff Johnston <jjohnstn@redhat.com>
195
196 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
197 (ia64_gdbarch_init): Don't bother calculating the os.
198 Instead use the gdbarch_info struct and look at the osabi field.
199 Also use gdbarch_list_lookup_by_info() to look for a
200 candidate gdbarch.
201
cd31fb03
KB
2022003-11-05 Kevin Buettner <kevinb@redhat.com>
203
204 * frv-tdep.c (frv_register_byte): Delete.
205 (frv_extract_return_value, frv_store_return_value)
206 (frv_extract_struct_value_address): Don't call frv_register_byte().
207 Convert to non-deprecated form.
208 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
209 Convert calls to set_gdbarch_deprecated_extract_return_value(),
210 set_gdbarch_deprecated_store_return_value(), and
211 set_gdbarch_deprecated_extract_struct_value_address() into
212 non-deprecated forms.
213
0a056982
AC
2142003-11-05 Andrew Cagney <cagney@redhat.com>
215
216 * mips-tdep.c (mips_dump_tdep): Do not print
217 PRINT_EXTRA_FRAME_INFO.
218 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
219 Rename PRINT_EXTRA_FRAME_INFO.
220 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
221 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
222 (mips_print_extra_frame_info): Delete declaration.
223 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
224
29e0a062
EZ
2252003-11-05 Elena Zannoni <ezannoni@redhat.com>
226
227 * coffread.c (coff_symtab_read): Remove passing of info parameter
228 to prim_record_minimal_symbol_and_info.
229
8af580fc
EZ
2302003-11-05 Elena Zannoni <ezannoni@redhat.com>
231
232 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
233 (decode_base_type): Delete ifdeffed out code.
234
507836c0
AC
2352003-11-04 Andrew Cagney <cagney@redhat.com>
236
237 * symtab.c (find_active_alias): Delete function.
238 (lookup_block_symbol): Delete alias code.
239 * stabsread.c (resolve_live_range): Delete function.
240 (add_live_range): Delete function.
241 (resolve_symbol_reference): Delete function.
242 (define_symbol): Delete live range and alias code.
243 (scan_file_globals): Delete alias code.
244 * symtab.h (SYMBOL_RANGES): Delete macro.
245 (struct range_list): Delete structure.
246 (struct symbol): Delete field "ranges".
247 (SYMBOL_ALIASES): Delete macro.
248 (struct alias_list): Delete structure.
249 (struct symbol): Delete field "aliases".
250
1083b3bc
MS
2512003-11-04 Michael Snyder <msnyder@redhat.com>
252
253 * MAINTAINERS: Remove myself as owner of breakpoints and
254 of sparc/solaris.
255
474e5826
CV
2562003-11-03 Corinna Vinschen <vinschen@redhat.com>
257
258 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
259 (sh_sh4al_dsp_register_name): Ditto.
260 (sh4_nofpu_show_regs): Ditto.
261 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
262 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
263
2160782c
AC
2642003-11-03 Andrew Cagney <cagney@redhat.com>
265
266 * bcache.c: Include "gdb_assert.h".
267 (struct bcache): Add fields "expand_count" and
268 "expand_hash_count".
269 (expand_hash_table): Update the expand counts.
270 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
271 on object sizes and hashes.
272 * Makefile.in (bcache.o): Update dependencies.
273
85302095
AC
2742003-11-03 Andrew Cagney <cagney@redhat.com>
275
276 * exec.c (xfer_memory): Eliminate xfer_fn.
277
526eef89
KB
2782003-10-31 Kevin Buettner <kevinb@redhat.com>
279
280 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
281 (opcodes/frv-desc.h): Include.
282 (iacc0h_regnum, iacc0l_regnum): Define.
283 (last_spr_regnum, frv_num_regs): Update.
284 (new_variant): Don't supply default names for holes in the SPRs.
285 Supply names for iacc0h_regnum and iacc0l_regnum.
286 (frv_register_type): Use symbolic constants first_fpr_regnum and
287 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
288 builtin_type_int instead of builtin_type_int32.
289 (frv_register_sim_regno): New function.
290 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
291 * Makefile.in (gdb_sim_frv_h): Define.
292 (frv-tdep.o): Update dependencies.
293
9e815ec2
AC
2942003-10-31 Andrew Cagney <cagney@redhat.com>
295
296 * avr-tdep.c (avr_frame_this_id): Do not call
297 deprecated_inside_entry_file.
298 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
299 * m32r-tdep.c (m32r_frame_this_id): Ditto.
300 * d10v-tdep.c (d10v_frame_this_id): Ditto.
301 * arm-tdep.c (arm_prologue_this_id): Ditto.
302 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
303
e372db49
JB
3042003-10-31 Jim Blandy <jimb@redhat.com>
305
306 * elfread.c (elf_symtab_read): Allocate correct number of tail
307 elements to sectinfo structure. (Fix from Woody LaRue.)
308
e8bcf01f
AC
3092003-10-31 Andrew Cagney <cagney@redhat.com>
310
311 * stack.c (return_command): Use get_frame_type, instead of
312 CALL_DUMMY_HAS_COMPLETED.
313 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
314 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
315
4c05fe53
MK
3162003-10-31 Mark Kettenis <kettenis@gnu.org>
317
318 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
319 explicitly specify size of array.
320 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
321 TDEP->sc_num_regs.
322
c8b91b89
AC
3232003-10-31 Andrew Cagney <cagney@redhat.com>
324
325 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
326 function.
327 (s390_gdbarch_init): Set extract_struct_value_address.
328 * arch-utils.c (generic_cannot_extract_struct_value_address):
329 Delete function.
330 * arch-utils.h (generic_cannot_extract_struct_value_address):
331 Delete definition.
332
fdfb6fc8
MK
3332003-10-31 Mark Kettenis <kettenis@gnu.org>
334
335 * i386-linux-nat.c (fetch_core_registers): Remove.
336 (linux_elf_core_fns): Remove.
337 (_initialize_i386_linux_nat): Remove.
338
2f4950cd
AC
3392003-10-31 Andrew Cagney <cagney@redhat.com>
340
341 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
342 "exec.h".
343 (exec_entry_point): New function.
344 (enable_break): Create a "tmp_bfd_target", use that and
345 entry_point_address when computing the relocation offset.
346 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
347 * Makefile.in (solib-svr4.o): Update dependencies.
348
bba2d28d
AC
3492003-10-31 Andrew Cagney <cagney@redhat.com>
350
351 * defs.h (XZALLOC): Define.
352 * target.h (struct target_ops): Add "to_data";
353 * bfd-target.h, bfd-target.c: New files.
354 * Makefile.in (SFILES): Add "bfd-target.c".
355 (COMMON_OBS): Add "bfd-target.o".
356 (bfd-target.o): Specify dependencies.
357 (bfd_target_h): Define.
358 * defs.h (XZALLOC): Define.
359
6066c3de
AC
3602003-10-31 Andrew Cagney <cagney@redhat.com>
361
362 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
363 adjust_breakpoint_address.
364 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
365 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
366 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
367 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
368
4b8a223f
AC
3692003-10-31 Andrew Cagney <cagney@redhat.com>
370
371 * target.h (struct target_ops): Replace "to_read_partial" and
372 "to_write_partial" with "to_xfer_partial". Update comments.
373 * target.c (debug_to_write_partial): Delete function.
374 (debug_to_xfer_partial): Replace debug_to_read_partial.
375 (add_target, update_current_target, setup_target_debug): Set
376 "to_xfer_partial" instead of "to_read_partial" and
377 "to_write_partial".
378 (default_xfer_partial): Replace "default_write_partial".
379 (default_read_partial): Delete.
380 (target_read_partial, target_write_partial): Call
381 "to_xfer_partial".
382 * remote.c (init_remote_ops): Set "to_xfer_partial".
383 (init_remote_async_ops): Ditto.
384 (remote_xfer_partial): Replace "remote_read_partial".
385
66a72d25
MK
3862003-10-31 Mark Kettenis <kettenis@gnu.org>
387
388 * i386-tdep.c (i386_supply_fpregset): Support floating-point
389 registers in `fxsave' format.
390 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
391
9a12a2a0
MK
3922003-10-30 Mark Kettenis <kettenis@gnu.org>
393
e9f1aad5
MK
394 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
395 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
396 TDEP->gregset_num_regs and tdep->sizeof_gregset.
397
bb489b3c
MK
398 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
399 specify size of array.
400 (i386_linux_init_abi): Remove initialization of
401 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
402 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
403
da285bc4
MK
404 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
405 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
406 core-regset.o.
407
9a12a2a0
MK
408 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
409 the ELF header.
410
0e24ac5d
MK
4112003-10-29 Mark Kettenis <kettenis@gnu.org>
412
6d6d8e9c
MK
413 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
414 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
415 core-regset.o.
416
25e60c9b
MK
417 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
418
0e24ac5d
MK
419 * corelow.c: Include "arch-utils.h", "regset.h" and
420 "gdb_assert.h".
421 (core_gdbarch): New variable.
422 (sniff_core_bfd): Don't sniff if we have support for register sets
423 in CORE_GDBARCH.
424 (core_close): Reset CORE_GDBARCH.
425 (core_open): Initialize CORE_GDBARCH.
426 (get_core_register_section): Use register sets if they are
427 supported by CORE_GDBARCH.
428 (get_core_registers): Don't print error message if we have support
429 for register sets in CORE_GDBARCH.
430
0a0a4ac3
AC
4312003-10-29 Andrew Cagney <cagney@redhat.com>
432
433 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
434 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
435
7b097ae3
MK
4362003-10-29 Mark Kettenis <kettenis@gnu.org>
437
438 * objfiles.h (clear_objfile_data): New prototype.
439 * objfiles.c (clear_objfile_data): New function.
440 * symfile.c (reread_symbols): Clear per-objfile data.
441
46f45a4a
JJ
4422003-10-28 Jeff Johnston <jjohnstn@redhat.com>
443
444 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
445 printf_unfiltered instead of printf_filtered for output messages.
446 (add_symbol_file_command): Ditto.
447 (reread_symbols): Ditto.
448 (overlay_auto_command): Ditto.
449 (overlay_manual_command): Ditto.
450 (overlay_off_command): Ditto.
451
2b026650
MK
4522003-10-27 Mark Kettenis <kettenis@gnu.org>
453
454 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
455 (gdbarch_from_bfd): New function.
456 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
457 deprecated_select_gdbarch_hack.
458 * arch-utils.h (gdbarch_from_bfd): New prototype.
459
0bcad584 4602003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
461
462 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
463 arch_info. Use warning instead of fprintf_filtered. Do not use
464 deprecated bfd_printable_arch_mach.
465
7f398216
KB
4662003-10-26 Kevin Buettner <kevinb@redhat.com>
467
468 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
469 Delete.
470 (frv_register_type): Rename from frv_register_virtual_type. Add
471 ``struct gdbarch *'' parameter.
472 (frv_gdbarch_init): Delete calls to the following functions:
473 set_gdbarch_deprecated_size(),
474 set_gdbarch_deprecated_register_bytes(),
475 set_gdbarch_deprecated_register_raw_size(),
476 set_gdbarch_deprecated_max_register_raw_size(),
477 set_gdbarch_deprecated_register_virtual_size(),
478 set_gdbarch_deprecated_max_register_virtual_size(),
479 set_gdbarch_deprecated_register_virtual_size(),
480 set_gdbarch_deprecated_register_virtual_type().
481 Add call to function set_gdbarch_register_type().
482
bcf48cc7
MK
4832003-10-26 Mark Kettenis <kettenis@gnu.org>
484
6c7de422
MK
485 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
486 FDOFF_REGNUM): Remove defines.
487 * win32-nat.c (do_child_fetch_inferior_registers): Include
488 "i387-tdep.h".
3e685d41 489 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
490 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
491 undefine I387_ST0_REGNUM.
492
f783586b
MK
493 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
494 * x86-64-tdep.c (x86_64_store_return_value): Use
495 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
496
bcf48cc7
MK
497 Change register numbers to enumartion values.
498 * i386-tdep.h (enum i386_regnum): New.
499 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
500 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
501 I386_ST0_REGNUM): Remove defines.
502 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
503 I386_EDI_REGNUM): Remove defines.
504
b6591e8b
AC
5052003-10-24 Andrew Cagney <cagney@redhat.com>
506
507 * target.c: Include "gdbcore.h".
508 (get_target_memory, get_target_memory_unsigned): New functions.
509 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
510 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
511 Use get_target_memory_unsigned.
512 * Makefile.in (target.o): Update dependencies.
513
5f724446
AC
5142003-10-24 Andrew Cagney <cagney@redhat.com>
515
ce2826aa
AC
516 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
517 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
518 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
519 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
520 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
521
5f724446
AC
522 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
523 (can_run_code_for): Use the OO term "singleton".
524
fc70c2a0
AC
5252003-10-23 Andrew Cagney <cagney@redhat.com>
526
527 * Makefile.in (stack.o): Add $(regcache_h).
528 * stack.c: Include "regcache.h"
529 (return_command): Rewrite. Use get_frame_id and
530 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
531 about unhandled return-values.
532 * value.h (set_return_value): Delete declaration.
533 * values.c (set_return_value): Delete function.
534
4afcc598
JJ
5352003-10-23 Jeff Johnston <jjohnstn@redhat.com>
536
537 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
538 (pseudo_regs): Add comment regarding register stack registers.
539 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
540 (floatformat_valid): New static routine.
541 (floatformat_ia64_ext): Add name field and set up is_valid routine
542 to floatformat_valid().
543 (examine_prologue): For the previous cfm, use
544 frame_unwind_register()
545 if the cfm is not stored in a register-stack register. Save the
546 previous cfm value in the prev_cfm field. Add debug output.
547 (ia64_frame_this_id): Use frame_id_build_special() to also register
548 the bsp. Add debug output.
549 (ia64_sigtramp_frame_this_id): Ditto.
550 (ia64_frame_prev_register): Look at cache saved_regs for a few more
551 registers and also add some checks for framelessness before accepting
552 current register values for fields such as return address. For cfm,
553 use the cached prev_cfm field if available. Add comment to explain
554 PSR logic. Add debug output.
555 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
556 as part of initialization.
557 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
558 calculated. Cache the bsp and cfm values.
559 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
560 instead of using ia64_frame_prev_register() which doesn't expect most
561 registers to be saved. The saved values for bsp and sp
562 can be taken from the cache. Add debug output.
563 (ia64_push_dummy_call): Use frame_id_build_special() to also register
564 the bsp.
565
6cfae0bc
JB
5662003-10-23 Jim Blandy <jimb@redhat.com>
567
568 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
569 architecture the current arch can run code for --- but not if it's
570 a superset.
571 (can_run_code_for): New function.
572
fcd182f9
JW
5732003-10-22 James E Wilson <wilson@specifixinc.com>
574
575 * MAINTAINERS: Move myself from paper trail section back to write
576 after approval section.
577
4646aa9d
AC
5782003-10-22 Andrew Cagney <cagney@redhat.com>
579
580 * exec.h: New file.
581 * win32-nat.c: Include "exec.h".
582 * solib.c: Include "exec.h".
583 * target.h (build_section_table): Delete declaration.
584 * somsolib.c: Include "exec.h".
585 (exec_ops): Delete extern declaration.
586 * rs6000-nat.c: Update copyright. Include "exec.h".
587 (exec_ops): Delete extern declaration.
588 * pa64solib.c: Update copyright. Include "exec.h".
589 (exec_ops): Delete extern declaration.
590 * exec.c: Update copyright. Include "exec.h".
591 * corelow.c: Update dependencies. Include "exec.h".
592 * Makefile.in (exec_h): Define.
593 (exec.o, somsolib.o): Update dependencies.
594 (pa64solib.o, corelow.o): Update dependencies.
595
0088c768
AC
5962003-10-22 Andrew Cagney <cagney@redhat.com>
597
598 * target.c: Include "gdb_assert.h" (target_read): Call
599 "target_read_partial", not "target_write_partial".
600 (default_read_partial, default_write_partial): New function.
601 (target_read_partial, target_write_partial): Simplify, assume that
602 there is always a read/write method.
603 (update_current_target, add_target): Always set "to_read_partial"
604 and "to_write_partial".
605 (target_write, target_read): Fail on a zero byte transfer.
606 * Makefile.in (target.o): Update dependencies.
607 * target.h: Update copyright date.
608 (target_object): Fix typo.
609
e2d0e7eb
AC
6102003-10-22 Andrew Cagney <cagney@redhat.com>
611
612 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
613 multi-arch method, add "targ" parameter.
614 (struct target_ops): Declare.
615 * gdbarch.h, gdbarch.c: Re-generate.
616 * Makefile.in (c-valprint.o): Update dependencies.
617 * arch-utils.h: Update copyright.
618 (convert_from_func_ptr_addr_identity): Declare.
619 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
620 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
621 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
622 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
623 * infcall.c (find_function_addr, call_function_by_hand): Update.
624 * c-valprint.c: Include "target.h".
625 (print_function_pointer_address): Update.
626
f1c07ab0
AC
6272003-10-22 Andrew Cagney <cagney@redhat.com>
628
629 * target.c (target_close): New function.
630 (debug_to_close): Use "target_close".
631 (push_target): Use "target_close".
632 (unpush_target): Use "target_close".
633 (pop_target): Use "target_close".
634 * target.h (struct target_ops): Add "to_xclose".
635 (target_open): Delete macro. Move comment to "to_open".
636 (target_close): Replace macro with function that takes a target.
637 * top.c (quit_target): Pass "current_target" to "target_close".
638
5520a790
EZ
6392003-10-21 Elena Zannoni <ezannoni@redhat.com>
640
641 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
642 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
643 * symtab.h (lookup_minimal_symbol_text): Update.
644 * breakpoint.c (create_overlay_event_breakpoint,
645 create_longjmp_breakpoint): Update callers.
646 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
647 * symtab.c (find_pc_sect_line): Ditto.
648
caa92b73
AC
6492003-10-21 Andrew Cagney <cagney@redhat.com>
650
651 * target.c (errno): Delete extern declaration.
652
aa2a9a3c
JJ
6532003-10-20 Jeff Johnston <jjohnstn@redhat.com>
654
655 * ia64-tdep.c: Change all occurrences of
656 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
657 (ia64_frame_prev_register): Minor whitespace change.
658
4beec2b7
MC
6592003-10-20 Michael Chastain <mec@shout.net>
660
661 * config/djgpp/fnchange.lst: Add lines for:
662 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
663 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
664 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
665 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
666 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
667 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
668 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
669
92ad9cd9
AC
6702003-10-20 Andrew Cagney <cagney@redhat.com>
671
672 * values.c (register_value_being_returned): Update comments. Use
673 "gdbarch_return_value" when available.
674 (using_struct_return): Ditto.
675 (set_return_value): Ditto. Use "gdbarch_return_value" when
676 available.. Print a warning, and not an error, when an unhandled
677 return type is encountered.
678 * infcmd.c: Include "gdb_assert.h".
679 (print_return_value): When gdbarch_return_value_p, and using
680 struct return, assume that the value is not available.
681 * defs.h (return_value_convention): Define.
682 * gdbarch.sh (gdbarch_return_value): New predicate method.
683 * gdbarch.h, gdbarch.c: Re-generate
684 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
685
198beae2
AC
6862003-10-20 Andrew Cagney <cagney@redhat.com>
687
688 * symtab.c: Replace "struct sec" with "struct bfd_section".
689 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
690
24d693a6 6912003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
692
693 * config/djgpp/fnchange.lst: Add lines for:
694 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
695 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
696 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
697
21ad8dc3
MK
6982003-10-19 Mark Kettenis <kettenis@gnu.org>
699
700 * amd64fbsd-nat.c (fetch_inferior_registers,
701 store_inferior_registers): Remove functions.
702 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
703
cced5e27
MK
7042003-10-18 Mark Kettenis <kettenis@gnu.org>
705
706 Add NetBSD/amd64 native configuration:
707 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
708 * amd64nbsd-tdep.c: New file.
709 * amd64nbsd-nat.c: New file.
710 * amd64bsd-nat.c: New file.
711 * config/i386/nbsd64.mh: New file.
712 * config/i386/nbsd64.mt: New file.
713 * configure.host: Add x86_64-*-netbsd*.
714 * configure.tgt: Add x86_64-*-netbsd*.
715 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
716 New targets.
717 * NEWS (New native configurations): Mention NetBSD/amd64.
718
666de3fd
MC
7192003-10-17 Michael Chastain <mec@shout.net>
720
721 * config/djgpp/fnchange.lst: Remove dead lines for:
722 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
723 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
724 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
725 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
726 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
727 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
728 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
729 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
730 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
731 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
732 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
733 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
734 gdb/config/sparc/tm-sparclite.h,
735 gdb/gdbtk/generic/ChangeLog-2001,
736 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
737 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
738 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
739 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
740 gdb/testsuite/gdb.mi/mi0-var-block.exp,
741 gdb/testsuite/gdb.mi/mi0-var-child.exp,
742 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
743 gdb/testsuite/gdb.mi/mi0-var-display.exp,
744 itcl/iwidgets3.0.0/demos/extfileselectionbox,
745 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
746 itcl/iwidgets3.0.0/demos/fileselectionbox,
747 itcl/iwidgets3.0.0/demos/fileselectiondialog,
748 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
749 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
750 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
751 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
752 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
753 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
754 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
755 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
756 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
757 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
758 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
759 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
760 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
761 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
762 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
763 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
764 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
765 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
766 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
767 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
768 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
769 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
770 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
771 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
772 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
773 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
774 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
775 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
776 itcl/iwidgets3.0.0/demos/html/shell.n.html,
777 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
778 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
779 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
780 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
781 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
782 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
783 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
784 itcl/iwidgets3.0.0/demos/scrolledcanvas,
785 itcl/iwidgets3.0.0/demos/scrolledframe,
786 itcl/iwidgets3.0.0/demos/scrolledhtml,
787 itcl/iwidgets3.0.0/demos/scrolledlistbox,
788 itcl/iwidgets3.0.0/demos/scrolledtext,
789 itcl/iwidgets3.0.0/demos/selectionbox,
790 itcl/iwidgets3.0.0/demos/selectiondialog,
791 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
792 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
793 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
794 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
795 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
796 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
797 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
798 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
799 itcl/iwidgets3.0.0/doc/scrolledframe.n,
800 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
801 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
802 itcl/iwidgets3.0.0/doc/scrolledtext.n,
803 itcl/iwidgets3.0.0/doc/selectionbox.n,
804 itcl/iwidgets3.0.0/doc/selectiondialog.n,
805 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
806 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
807 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
808 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
809 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
810 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
811 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
812 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
813 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
814 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
815 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
816 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
817 itcl/iwidgets3.0.0/generic/selectionbox.itk,
818 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
819 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
820 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
821 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
822 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
823 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
824 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
825 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
826 itcl/iwidgets3.0.0/tests/scrolledframe.test,
827 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
828 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
829 itcl/iwidgets3.0.0/tests/scrolledtext.test,
830 itcl/iwidgets3.0.0/tests/selectionbox.test,
831 itcl/iwidgets3.0.0/tests/selectiondialog.test,
832 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
833 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
834 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
835 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
836 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
837 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
838 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
839 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
840 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
841 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
842 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
843 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
844 tk/mac/tkMacProjects.sit.hqx.
845
1e3ff5ad
AC
8462003-10-17 Andrew Cagney <cagney@redhat.com>
847
8db32d44
AC
848 * target.c (target_section_by_addr): New function.
849 (do_xfer_memory): Use "target_section_by_addr".
850 * target.h (target_section_by_addr): Declare.
851
1e3ff5ad
AC
852 * target.h (struct target_ops): Add "to_read_partial" and
853 "to_write_partial", delete "to_query".
854 (target_read_partial, target_write_partial): Declare.
855 (target_read, target_write): Declare.
856 (target_query): Delete macro.
857 * target.c (target_read_partial): New function.
858 (target_write_partial, target_read, target_write): New function.
859 (update_current_target): Delete inheritance of "to_query". Add
860 comments about "to_read_partial" and "to_write_partial".
861 (debug_to_partial_read, debug_to_partial_write): New functions.
862 (debug_to_query): Delete function.
863 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
864 instead of "to_query".
865 * remote.c (remote_read_partial): Replace "remote_query".
866 (init_remote_ops): Set "to_read_partial" instead of "to_query".
867 (init_remote_async_ops): Ditto.
868 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
869 "target_read_partial" instead of "target_query".
870 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
871 Use "target_read_partial" instead of "target_query".
872
48c66725
JJ
8732003-10-17 Jeff Johnston <jjohnstn@redhat.com>
874
875 * frame.h (struct frame_id): Add new field: special_addr.
876 (frame_id_build_special): New prototype.
877 * frame.c (frame_id_build_special): New function.
878 (frame_id_build): Change to call frame_id_build_special().
879 (frame_id_eq): Change to also test special_addr field.
880 (frame_id_inner): Update comment.
881
7998dfc3
AC
8822003-10-17 Andrew Cagney <cagney@redhat.com>
883
884 * target.c (update_current_target): Perform the target cleanup.
885 Put the target stack beneath the squashed "current_target".
886 (add_target): Delete disabled call to "cleanup_target".
887 (cleanup_target): Delete function.
888 (push_target, unpush_target): Do not call "cleanup_target".
889
9c04404e 8902003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
891
892 * target.c (target_stack): Change to a static target_ops.
893 (update_current_target): Walk the "struct target_ops" stack.
894 (pop_target, do_xfer_memory, target_info): Ditto.
895 (find_target_beneath): Ditto.
896 (push_target): Rewrite to use the "struct target_ops" stack.
897 (unpush_target): Ditto.
898 * target.h (struct target_stack_item): Delete definition.
899 (target_stack): Delete declaration.
900 (struct target_ops): Add field "beneath".
901
c98a2b49 9022003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
903
904 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
905 declaration.
906 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
907 (h8300_examine_prologue): Use h8300_normal_mode flag
908 (h8300_gdbarch_init): Set architecture info for normal mode
909
506fb367
DJ
9102003-10-16 Daniel Jacobowitz <drow@mvista.com>
911
912 * remote.c (remote_protocol_vcont): New variable.
913 (set_remote_protocol_vcont_packet_cmd): New function.
914 (show_remote_protocol_vcont_packet_cmd): New function.
915 (init_all_packet_configs): Handle remote_protocol_vcont.
916 (remote_vcont_probe): New function.
917 (remote_vcont_resume): New function.
918 (remote_resume): Use it.
919 (remote_async_resume): Call remote_resume.
920 (_initialize_remote): Add verbose-resume packet commands.
921
65815ea1
AC
9222003-10-16 Andrew Cagney <cagney@redhat.com>
923
924 * infrun.c (handle_inferior_event): Add comment about
925 "frame_id_inner" being too weak.
926
40324f1b
EZ
9272003-10-16 Elena Zannoni <ezannoni@redhat.com>
928
929 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
930 second parameter, which is always null. Remove
931 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
932 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
933 accordingly.
934 * somsolib.c (som_solib_create_inferior_hook,
935 som_solib_desire_dynamic_linker_symbols): Update callers.
936 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
937
9382003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
939
940 * remote-m32r-sdi.c : New file, interface to m32r on-chip
941 debug interface, SDI (Scalable Debug Interface).
942 * NEWS: Mention m32r SDI protocol was supported.
943 * Makefile.in (remote-m32r-sdi.o): Add build rule.
944 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
945
51931cbb
JJ
9462003-10-15 Jeff Johnston <jjohnstn@redhat.com>
947
948 * ia64-linux-tdep.c: Include gdbcore.h.
949 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
950 (ia64_linux_sigcontext_register_addr): Find the address of the
951 sigcontext area stored in the sigframe instead of using
952 a magic offset constant.
953
84e7fd53
AC
9542003-10-15 Andrew Cagney <cagney@redhat.com>
955
956 * remote.c (remote_search): Delete function.
957 * target.h (target_search): Delete disabled macro.
958 (struct target_ops): Delete disabled field "to_search".
959
0f4d7c52
KB
9602003-10-14 Kevin Buettner <kevinb@redhat.com>
961
962 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
963 instead of deprecated_inside_entry_file().
964
2e952408
CV
9652003-10-14 Corinna Vinschen <vinschen@redhat.com>
966
967 * sh-tdep.c: Fix copy/paste hangover in comment.
968 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
969 mode.
970 (sh3e_sh4_extract_return_value): Ditto.
971
7e86466e
RH
9722003-10-13 Richard Henderson <rth@redhat.com>
973
974 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
975 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
976 match c_val_print a bit closer.
977
46a16dba
KB
9782003-10-13 Kevin Buettner <kevinb@redhat.com>
979
980 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
981 (frv_gdbarch_adjust_breakpoint_address): New function.
982 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
983 method.
984
76897487
KB
9852003-10-13 Kevin Buettner <kevinb@redhat.com>
986
987 * breakpoint.h (struct breakpoint): Add new member
988 ``requested_address''.
989 * breakpoint.c (breakpoint_adjustment_warning)
990 (adjust_breakpoint_address): New static functions.
991 (print_it_typical): Issue warning if breakpoint's address is different
992 from its requested address.
993 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
994 (breakpoint_re_set_one): Set breakpoint's
995 ``requested_address'' field. Set ``address'' field to the
996 result of calling adjust_breakpoint_address() on the requested
997 address.
998
a1131521
KB
9992003-10-13 Kevin Buettner <kevinb@redhat.com>
1000
1001 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1002 * gdbarch.h, gdbarch.c: Regenerate.
1003
6ce6d90f
MK
10042003-10-11 Mark Kettenis <kettenis@gnu.org>
1005
155c1d33
MK
1006 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1007 TDEP->sc_num_regs.
1008
8a96bc77
MK
1009 * i386fbsd-tdep.c: New file.
1010 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1011 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1012 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1013 i386bsd-tdep.c.
1014 (_initialize_i386fbsd_tdep): New function.
1015 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1016 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1017 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1018 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1019 TDEP->sc_num_regs.
1020 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1021 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1022 to initialize TDEP->sc_num_regs.
1023 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1024 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1025 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1026 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1027 FreeBSD ELF OS/ABI's here.
1028 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1029 (i386fbsd-tdep.o): New target.
1030 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1031 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1032
477f40d1
MK
1033 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1034 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1035 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1036 in initialization of TDEP->sc_num_regs.
1037
c6b33596
MK
1038 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1039 (x86_64_init_abi): Initialize regset_from_core_section if
1040 appropriate.
1041
8446b36a
MK
1042 * i386-tdep.c (i386_regset_from_core_section): New function.
1043 (i386_gdbarch_init): Initialize regset_from_core_section if
1044 appropriate.
1045 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1046
c783cbd6
MK
1047 * i386-tdep.h (struct regset): Declare opaque.
1048
6ce6d90f
MK
1049 * gdbarch.sh (regset_from_core_section): New method.
1050 (struct regset): Declare opaque.
1051 * gdbarch.c, gdbarch.h: Regenerated.
1052
b98ed7be
AM
10532003-10-11 Alan Modra <amodra@bigpond.net.au>
1054
1055 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1056 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1057 Correct test for pc within section.
1058
f6214256
MK
10592003-10-11 Mark Kettenis <kettenis@gnu.org>
1060
1061 * gdbarch.sh: Remove trailing whitepsace from comments.
1062
a8f4cde1
RM
10632003-10-08 Roland McGrath <roland@redhat.com>
1064
1065 * gcore.c (make_mem_sec): Function removed, folded into ...
1066 (gcore_create_callback): ... here. To omit a section, clear its
1067 SEC_LOAD bit rather than zeroing its size.
1068 Omit read-only sections only if they correspond to a known disk file.
1069 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1070
74276724
MS
10712003-10-10 Michael Snyder <msnyder@redhat.com>
1072
1073 * d10v-tdep.c: Fix typo in comment.
1074
e754ae69
AC
10752003-10-10 Andrew Cagney <cagney@redhat.com>
1076
1077 * rs6000-tdep.c (e500_store_return_value): Delete function.
1078 (e500_extract_return_value): Delete function.
1079 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1080 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1081 "ppc_sysv_abi_restore_return_value" where applicable.
1082 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1083 (ppc_sysv_abi_extract_return_value): Declare.
1084 (ppc_sysv_abi_broken_store_return_value): Declare.
1085 (ppc_sysv_abi_broken_extract_return_value): Declare.
1086 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1087 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1088 start of file.
1089 (do_ppc_sysv_return_value): New function.
1090 (ppc_sysv_abi_extract_return_value): New function.
1091 (ppc_sysv_abi_store_return_value): New function.
1092 (ppc_sysv_abi_broken_extract_return_value): New function.
1093 (ppc_sysv_abi_broken_store_return_value): New function.
1094 (ppc_sysv_abi_use_struct_convention): Call
1095 do_ppc_sysv_return_value.
1096
8d4ce20a
JB
10972003-10-10 J. Brobecker <brobecker@gnat.com>
1098
1099 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1100 to lookup the main function symbol.
1101
afce3d2a
CV
11022003-10-10 Corinna Vinschen <vinschen@redhat.com>
1103
1104 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1105 types correctly.
1106 (sh_push_dummy_call_fpu): Fix argument passing rules.
1107 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1108 float types.
1109 (sh3e_sh4_store_return_value): Ditto.
1110
7fe958be
EZ
11112003-10-10 Elena Zannoni <ezannoni@redhat.com>
1112
1113 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1114 comment.
1115
3f997a97
CV
11162003-10-10 Corinna Vinschen <vinschen@redhat.com>
1117
1118 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1119 more readable code. Accomodate passing of bitfields.
1120
8be9034a
AC
11212003-10-10 Andrew Cagney <cagney@redhat.com>
1122
1123 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1124 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1125 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1126 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1127 (ppc64_sysv_abi_push_dummy_call): New function.
1128 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1129 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1130 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1131
85a453d5
KI
11322003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1133
1134 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1135 * README: Ditto.
1136 * d10v-tdep.c: Ditto.
1137 * h8300-tdep.c: Ditto.
1138 * remote-e7000.c: Ditto.
1139 * remote-hms.c: Ditto.
1140 * ser-e7kpc.c: Ditto.
1141 * sh-stub.c: Ditto.
1142 * sh-tdep.c: Ditto.
1143 * sh-tdep.h: Ditto.
1144 * sh3-rom.c: Ditto.
1145 * sh64-tdep.c: Ditto.
1146 * top.c: Ditto.
1147 * wince.c: Ditto.
1148 * config/d10v/d10v.mt: Ditto.
1149 * config/sh/embed.mt: Ditto.
1150 * config/sh/linux.mt: Ditto.
1151 * config/sh/tm-linux.h: Ditto.
1152 * config/sh/tm-sh.h: Ditto.
1153 * config/sh/wince.mt: Ditto.
1154
221c12ff
AC
11552003-10-09 Andrew Cagney <cagney@redhat.com>
1156
1157 * ppc-tdep.h (struct type): Declare opaque.
1158 * x86-64-tdep.h (struct regcache): Declare opaque.
1159 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1160 coding style.
1161
ef5200c1
AC
11622003-10-09 Andrew Cagney <cagney@redhat.com>
1163
1164 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1165 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1166 (SOFTWARE_SINGLE_STEP_P): Ditto.
1167 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1168 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1169 (SOFTWARE_SINGLE_STEP_P): Ditto.
1170 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1171 software_single_step to rs6000_software_single_step.
a8f4cde1 1172
9644bbdd
AC
11732003-10-09 Andrew Cagney <cagney@redhat.com>
1174
1175 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1176
db72fa6b
MS
11772003-10-09 Michael Snyder <msnyder@redhat.com>
1178
f3efb16c
MS
1179 * frame.h: Fix typo in comment.
1180 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1181 * d10v-tdep.c: Random whitespace/comment tweaks.
1182
9a5cef92
EZ
11832003-10-09 Elena Zannoni <ezannoni@redhat.com>
1184
1185 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1186 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1187 on stack.
a8f4cde1 1188
9a5cef92
EZ
1189 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1190 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1191 in detail.
a8f4cde1 1192
0f317a0c
DJ
11932003-10-09 Daniel Jacobowitz <drow@mvista.com>
1194
1195 * remote-mips.c (mips_initialize): Remove unneeded call to
1196 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1197
bbab2f46
DJ
11982003-10-09 Daniel Jacobowitz <drow@mvista.com>
1199
1200 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1201 a memory pointer.
1202
550950b8
JJ
12032003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1204
1205 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1206 for any lwp we resume.
1207 (running_callback): Add lwps that have pending status events
1208 against them to be considered running.
1209
15c69bc7
KI
12102003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1211
1212 * m32r-tdep.c : Include "dis-asm.h".
1213 * Makefile.in (m32r-tdep.o): Update dependencies.
1214
51065942
JB
12152003-10-06 J. Brobecker <brobecker@gnat.com>
1216
1217 * completer.h (get_gdb_completer_word_break_characters): Delete.
1218 * completer.c: include language.h.
1219 (gdb_completer_word_break_characters): Delete.
1220 (get_gdb_completer_word_break_characters): Delete.
1221 (location_completer): Use the word break characters of the current
1222 language.
1223 (complete_line): Likewise.
1224 (line_completion_function): Likewise.
1225 (skip_quoted_chars): Likewise.
1226 * Makefile.in (completer.o): Add dependency on language.h.
1227 * top.c (init_main): Set the readline word break characters
1228 to GDB's default word break characters.
1229
6084f43a
JB
12302003-10-06 J. Brobecker <brobecker@gnat.com>
1231
1232 * language.h (language_defn): new field, la_word_break_characters.
1233 * language.c (unknown_language_defn): Set new field to
1234 default_word_break_characters.
1235 (auto_language_defn): Likewise.
1236 (local_language_defn): Likewise.
1237 * ada-lang.c (ada_language_defn): Likewise.
1238 * c-lang.c (c_language_defn): Likewise.
1239 (cplus_language_defn): Likewise.
1240 (asm_language_defn): Likewise.
1241 (minimal_language_defn): Likewise.
1242 * f-lang.c (f_language_defn): Likewise.
1243 * jv-lang.c (java_language_defn): Likewise.
1244 * m2-lang.c (m2_language_defn): Likewise.
1245 * objc-lang.c (objc_language_defn): Likewise.
1246 * p-lang.c (pascal_language_defn): Likewise.
1247 * scm-lang.c (scm_language_defn): Likewise.
1248
944fcfab
AC
12492003-10-06 Andrew Cagney <cagney@redhat.com>
1250
1251 * ppc-sysv-tdep.c: Re-indent.
1252
9f0a5303
JB
12532003-10-06 J. Brobecker <brobecker@gnat.com>
1254
1255 * language.h (default_word_break_characters): Add prototype.
1256 * language.c (default_word_break_characters): New function.
1257
7270b6ed
AS
12582003-10-06 Andreas Schwab <schwab@suse.de>
1259
1260 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1261 with %eax.
1262
a5d61f66
AC
12632003-10-06 Andrew Cagney <cagney@redhat.com>
1264
1265 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1266 "h8500-tdep.c".
1267 (z8k-tdep.o): Delete custom build rule.
1268
28a86f5c
AC
12692003-10-06 Andrew Cagney <cagney@redhat.com>
1270
1bfd8a83
AC
1271 * Makefile.in: Update all dependencies.
1272
17144ef8
AC
1273 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1274 No longer list PA as as obsolete candidate. List m32r as
1275 broken instead of obsolete.
a8f4cde1 1276
a5679ae5
AC
1277 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1278 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1279 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1280 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1281 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1282 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1283 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1284 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1285 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1286 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1287 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1288 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1289 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1290 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1291 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1292 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1293 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1294 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1295 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1296 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1297 * config/z8k/z8k.mt: Ditto.
1298
4a8269c0
AC
1299 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1300 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1301 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1302 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1303 sparclite were removed.
1304 * configure.host, configure.tgt: Remove corresponding tuples.
1305
41989fcd
AC
1306 * breakpoint.c, breakpoint.h: Remove obsolete code.
1307 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1308 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1309 * stabsread.h, xcoffread.c: Ditto.
1310
28a86f5c
AC
1311 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1312 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1313 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1314 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1315
4efdaa0d
DL
13162003-10-06 David Lecomber <dsl@sources.redhat.com>
1317
1318 * f-valprint.c: Reformatting
1319
ae53de43
MK
13202003-10-06 Mark Kettenis <kettenis@gnu.org>
1321
a8bb57e7
MK
1322 * x86-64-tdep.c: Remove duplicate comment.
1323
ae53de43
MK
1324 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1325 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1326 names for return values. This fixes a bug since we looked at %rbx
1327 instead of %rdx.
1328
473f17b0
MK
13292003-10-05 Mark Kettenis <kettenis@gnu.org>
1330
2c261fae
MK
1331 * x86-64-tdep.c: Include "regset.h".
1332
473f17b0
MK
1333 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1334 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1335 sizeof_fpregset.
1336 * i386-tdep.c: Include "regset.h".
1337 (i386_supply_gregset): New function.
1338 (i386_supply_fpregset): New function.
1339 (i386_gdbarch_init): Initialze register set-related members of
1340 TDEP.
1341 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1342 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1343
afd48b75
AC
13442003-10-03 Andrew Cagney <cagney@redhat.com>
1345
1346 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1347 set extract_return_value, store_return_value and
1348 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1349 ppc64_sysv_abi_store_return_value and
1350 ppc64_sysv_abi_use_struct_convention.
1351 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1352 (ppc64_sysv_abi_store_return_value): Declare.
1353 (ppc64_sysv_abi_use_struct_convention): Declare.
1354 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1355 (ppc64_sysv_abi_extract_return_value): New function.
1356 (ppc64_sysv_abi_store_return_value): New function.
1357 (ppc64_sysv_abi_use_struct_convention): New function.
1358 (ppc64_sysv_abi_return_value): New function.
1359
9b540880
AC
13602003-10-03 Andrew Cagney <cagney@redhat.com>
1361
1362 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1363 convert a descriptor to a function when it's in the ".opd"
1364 section.
1365
8748518b
CV
13662003-10-03 Corinna Vinschen <vinschen@redhat.com>
1367
1368 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1369 reg_size to keep GCC silent.
1370
0fd85043
CV
13712003-10-03 Corinna Vinschen <vinschen@redhat.com>
1372
1373 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1374 base for DW_EH_PE_textrel encodings.
1375 (read_encoded_value): Add a DW_EH_PE_textrel case.
1376 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1377 section.
1378
37b517aa
MK
13792003-10-03 Mark Kettenis <kettenis@gnu.org>
1380
1381 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1382
12c266ea
AC
13832003-10-02 Andrew Cagney <cagney@redhat.com>
1384
1385 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1386 REGISTER_RAW_SIZE.
1387 * gdbarch.h, gdbarch.c: Re-generate.
1388 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1389 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1390 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1391 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1392 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1393 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1394 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1395 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1396 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1397 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1398 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1399 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1400 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1401 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1402 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1403 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1404
78ba4af6
JB
14052003-10-02 Jim Blandy <jimb@redhat.com>
1406
1407 * dwarf2read.c (struct die_info): Doc fix.
1408
617daa0e
CV
14092003-10-02 Corinna Vinschen <vinschen@redhat.com>
1410
1411 * sh-tdep.c: Running thru gdb_indent.sh.
1412
e5e33cd9
CV
14132003-10-02 Corinna Vinschen <vinschen@redhat.com>
1414
1415 * sh-tdep.c (sh_justify_value_in_reg): New function.
1416 (sh_stack_allocsize): Ditto.
1417 (flt_argreg_array): New array used for floating point argument
1418 passing.
1419 (sh_init_flt_argreg): New function.
a8f4cde1 1420 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1421 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1422 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1423 Fix argument passing strategy.
1424 (sh_push_dummy_call_nofpu): Ditto.
1425
5fe830e4
AC
14262003-10-01 Andrew Cagney <cagney@redhat.com>
1427
1428 * value.h (register_value_being_returned): Declare. Replace
1429 "value_being_returned".
1430 * infcall.c (call_function_by_hand): Use
1431 register_value_being_returned.
1432 * infcmd.c (print_return_value): Call
1433 "register_value_being_returned", handle struct return locally.
1434 * values.c (register_value_being_returned): New function. Replace
1435 "value_being_returned".
a8f4cde1 1436
5fe830e4 14372003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1438
1439 * linux-proc.c (linux_do_registers): New function.
1440 (linux_make_note_section): Use linux_do_registers in case of
1441 single threaded inferior programs.
1442
64f395bf
AC
14432003-10-01 Andrew Cagney <cagney@redhat.com>
1444
1445 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1446 use STRUCT_ADDR. When not using "struct return convention", pass
1447 "0" to "value_being_returned". Add FIXMEs.
1448 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1449 value_being_returned. Add comments.
1450 * values.c (value_being_returned): Add fixme.
1451 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1452 (hppa_value_returned_from_stack): Add FIXME.
1453
639d11d3
DC
14542003-09-30 David Carlton <carlton@kealia.com>
1455
1456 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1457 'has_children' and 'next' by 'child' and 'sibling'.
1458 (read_comp_unit): Rework algorithm, breaking body into
1459 read_die_and_children and read_die_and_siblings.
1460 (read_die_and_children, read_die_and_siblings): New.
1461 (read_full_die): Add 'has_children' argument; set it instead of
1462 the die's 'has_children' field. Minor formatting cleanup.
1463 (free_die_list): Use die->child and die->sibling instead of
1464 die->next.
1465 (dump_die_list): Ditto.
1466 (sibling_die): Use die->sibling.
1467 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1468 'has_children' and 'next' fields.
a8f4cde1
RM
1469 (process_die, read_file_scope, read_func_scope)
1470 (read_lexical_block_scope, read_structure_scope)
1471 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1472 (read_namespace, read_subroutine_type, dump_die): Ditto.
1473
5bffac25
AC
14742003-09-30 Andrew Cagney <cagney@redhat.com>
1475
1476 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1477 to 224, not 220.
1478
f30992d4
AC
14792003-09-30 Andrew Cagney <cagney@redhat.com>
1480
1481 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1482 REGISTER_VIRTUAL_SIZE.
1483 * gdbarch.h, gdbarch.c: Regenerate.
1484 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1485 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1486 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1487
2e092625
AC
14882003-09-29 Andrew Cagney <cagney@redhat.com>
1489
1490 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1491 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1492 * gdbarch.h, gdbarch.c: Regenerate.
1493 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1494 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1495
1496 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1497 * remote-vxmips.c (vx_read_register): Ditto.
1498 * remote-vx68.c (vx_read_register): Ditto.
1499 * gnu-nat.c (inf_validate_procs): Ditto.
1500
7a5dd6ee
JB
15012003-09-29 J. Brobecker <brobecker@gnat.com>
1502
1503 * infcall.c (call_function_by_hand): Fix build failure
1504 introduced in the previous change to this file.
1505
1fe43d45
AC
15062003-09-29 Andrew Cagney <cagney@redhat.com>
1507
1508 * NEWS: Mention Objective-C.
1509
e28a332c
JG
15102003-09-29 Jerome Guitton <guitton@act-europe.fr>
1511
1512 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1513 test if the register has been saved on the stack.
1514 (arm_scan_prologue_cache): When analysing the instruction
1515 "str lr, [sp, #-4]", save the address where lr has been stored.
1516
9ff63c35
AC
15172003-09-28 Andrew Cagney <cagney@redhat.com>
1518
7f5f525d
AC
1519 * frame.c (frame_read_unsigned_register): Delete function.
1520 * frame.h (frame_read_unsigned_register): Delete declaration.
1521 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1522 get_frame_register_unsigned.
1523 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1524 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1525 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1526
7f5f525d
AC
1527 * frame.h (frame_read_register): Delete declaration.
1528 * frame.c (frame_read_register): Delete function.
1529 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1530 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1531 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1532 * mips-tdep.c (mips_register_to_value): Ditto.
1533 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1534 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1535
1536 * frame.c (frame_read_signed_register): Delete function.
1537 (frame_read_unsigned_register): Update comments.
1538 * frame.h (frame_read_signed_register): Delete declaration.
1539 * h8300-tdep.c (h8300_print_register): Use
1540 get_frame_register_signed.
1541 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1542
9ff63c35
AC
1543 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1544 Rename VALUE_RETURNED_FROM_STACK.
1545 * infcmd.c (print_return_value): Update.
1546 * infcall.c (call_function_by_hand): Update.
1547
41d041d6
MK
15482003-09-28 Mark Kettenis <kettenis@gnu.org>
1549
1550 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1551 regcache argument and reverse the order of the other two
1552 arguments. Remove local regcache variable. Determine
1553 architecture from REGCACHE. Update comments.
1554 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1555 reverse the order of the other two arguments. Remove local
1556 regcache variable. Determine architecture from REGCACHE. Update
1557 comments.
1558 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1559 prototypes. Update comments.
1560 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1561 comment.
1562 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1563 Update.
1564 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1565 * i386-interix-nat.c (supply_fpregset): Update.
1566 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1567 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1568 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1569 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1570 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1571 Update.
1572 * i386obsd-tdep.c (fetch_core_registers): Update.
1573 * i386v4-nat.c (supply_fpregset): Update.
1574 * x86-64-linux-nat.c (supply_fpregset): Update.
1575 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1576
1cb97e17
MK
15772003-09-27 Mark Kettenis <kettenis@gnu.org>
1578
5716833c
MK
1579 * i386-tdep.h: Put opaque declarations in alphabetical
1580 order. Remove spurious whitespace.
1581 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1582 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1583 * i386-tdep.c (MM0_REGNUM): Remove define.
1584 (i386_mmx_regnum_p): Add gdbarch argument.
1585 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1586 Rewrite using new macro definitions for FPU/SSE registers.
1587 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1588 definitions from i387-tdep.h.
1589 (i386_register_name): Update.
1590 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1591 new macro definitions for FPU/SSE registers.
1592 (i386_extract_return_value): Determine whether floating-point
1593 registers are present by examining REGCACHE's architecture.
1594 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1595 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1596 FPU/SSE registers.
1597 (i386_register_type): Update.
1598 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1599 definitions for FPU registers. Use REGCACHE's architecture to
1600 determine the appropriate register numbers.
1601 (i386_pseudo_register_read, i386_pseudo_register_write,
1602 i386_register_reggroup_p): Update.
1603 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1604 TDEP->mm0_regnum.
1605 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1606 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1607 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1608 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1609 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1610 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1611 *' to `void *'.
1612 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1613 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1614 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1615 definitions for FPU/SSE registers.
1616 (FXSAVE_MXCSR_ADDR): New define.
1617 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1618 TDEP->mm0_regnum.
1619 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1620 (I387_ST0_REGNUM): Define.
1621
41d35cb0
MK
1622 * regcache.h (get_regcache_arch): New prototype.
1623 * regcache.c (get_regcache_arch): New function.
1624
54e74f72
MK
1625 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1626 whitespace.
1627
1cb97e17
MK
1628 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1629 Initialize using ARRAY_SIZE.
1630
0968aa8c
AC
16312003-09-27 Andrew Cagney <cagney@redhat.com>
1632
1633 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1634 "init_frame_pc_default".
1635 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1637 * vax-tdep.c (vax_gdbarch_init): Update.
1638 * v850-tdep.c (v850_gdbarch_init): Update.
1639 * sh64-tdep.c (sh64_gdbarch_init): Update.
1640 * s390-tdep.c (s390_gdbarch_init): Update.
1641 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1642 * mcore-tdep.c (mcore_gdbarch_init): Update.
1643 * h8300-tdep.c (h8300_gdbarch_init): Update.
1644 * cris-tdep.c (cris_gdbarch_init): Update.
1645 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1646
54c84734
MK
16472003-09-26 Mark Kettenis <kettenis@gnu.org>
1648
1649 * regset.h: New file.
1650 * Makefile.in (regset_h): Add.
1651
1b1d3794
AC
16522003-09-25 Andrew Cagney <cagney@redhat.com>
1653
1654 * frame.h (deprecated_frame_saved_regs): Rename
1655 get_frame_saved_regs.
1656 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1657 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1658 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1659 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1660 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1661
e6beb428
AC
16622003-09-25 Andrew Cagney <cagney@redhat.com>
1663
1664 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1665 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1666 and Java.
1667 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1668 arm*-*-* do not use the new frame code.
1669
710122da
DC
16702003-09-25 David Carlton <carlton@kealia.com>
1671
1672 * c-exp.y: Remove 'register' declarations.
1673 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1674
79c2c32d
DC
16752003-09-25 David Carlton <carlton@kealia.com>
1676
1677 * c-exp.y: Include cp-support.h. Add qualified_type.
1678 (yylex): Delete nested type hack; add comments.
1679 * cp-namespace.c (cp_lookup_nested_type): New function.
1680 * cp-support.h: Declare cp_lookup_nested_type.
1681 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1682 instead of value_struct_elt_for_reference.
1683 * valops.c: Include cp-support.h.
1684 (value_aggregate_elt): New function.
1685 (value_namespace_elt): Ditto.
1686 (value_struct_elt_for_reference): Make static.
1687 * value.h: Delete declaration of value_struct_elt_for_reference;
1688 add declaration for value_aggregate_elt.
1689 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1690 (valops.o): Ditto.
1691
898c62f5
DJ
16922003-09-25 Daniel Jacobowitz <drow@mvista.com>
1693
1694 * stack.c: Include "reggroups.h".
1695 (frame_info): Only display registers in all_reggroup.
1696 * Makefile.in (stack.o): Update dependencies.
1697
28cd8767
JG
16982003-09-25 Jerome Guitton <guitton@act-europe.fr>
1699
1700 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1701 "add ip, sp #n" in the prologue.
1702 (arm_scan_prologue): Ditto.
1703
a4ab2b5d
JG
17042003-09-25 Jerome Guitton <guitton@act-europe.fr>
1705
1706 * MAINTAINERS (write after approval): Add myself.
1707
3f244638
AS
17082003-09-25 Andreas Schwab <schwab@suse.de>
1709
1710 * m68k-tdep.c: Include "dwarf2-frame.h".
1711 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1712 * Makefile.in (m68k-tdep.o): Update dependencies.
1713
1c0159e0
CV
17142003-09-25 Corinna Vinschen <vinschen@redhat.com>
1715
1716 * sh-tdep.c (struct frame_extra_info): Remove.
1717 (struct sh_frame_cache): New structure.
1718 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1719 (GET_TARGET_REG): Ditto but target register.
1720 (GET_PUSHED_REG): Remove.
1721 (IS_MOV_ARG_TO_REG): New macro.
1722 (IS_MOV_ARG_TO_IND_R14): New macro.
1723 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1724 (IS_MOVW_PCREL_TO_REG): New macro.
1725 (IS_MOVL_PCREL_TO_REG): New macro.
1726 (IS_SUB_REG_FROM_SP): New macro.
1727 (IS_ARG_MOV): Remove.
1728 (IS_MOV_TO_R14): Remove.
1729 (IS_RESTORE_FP): New macro.
1730 (IS_RTS): New macro.
1731 (IS_LDS): New macro.
1732 (IS_MOV_FP_SP): New macro.
1733 (IS_ADD_REG_TO_FP): New macro.
1734 (IS_ADD_IMM_FP): New macro.
1735 (sh_skip_prologue_hard_way): Remove.
1736 (sh_saved_pc_after_call): Remove.
1737 (sh_frame_chain): Remove.
1738 (sh_find_callers_reg): Remove.
a8f4cde1 1739 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1740 (sh_fp_frame_init_saved_regs): Remove.
1741 (sh_init_extra_frame_info): Remove.
1742 (sh_analyze_prologue): New function.
1743 (sh_skip_prologue): Remove deprecated code. Rely on new function
1744 sh_analyze_prologue when after_prologue fails.
1745 (sh_frame_saved_pc): Remove.
1746 (sh_alloc_frame_cache): New function.
1747 (sh_frame_cache): Ditto.
1748 (sh_frame_prev_register): Ditto.
1749 (sh_frame_this_id): Ditto.
1750 (sh_frame_unwind): New structure defining the heuristic frame
1751 sniffer interface.
1752 (sh_frame_sniffer): New function.
1753 (sh_unwind_sp): Ditto.
1754 (sh_unwind_pc): Ditto.
1755 (sh_unwind_dummy_id): Ditto.
1756 (sh_frame_base_address): Ditto.
1757 (sh_frame_base): New structure defining new frame base code.
1758 (sh_in_function_epilogue_p): New function.
1759 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1760 code and to call all new code instead. Initialize dwarf2 and
1761 heuristic frame sniffer.
1762
5f9769d1
PH
17632003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1764
a8f4cde1
RM
1765 * parser-defs.h (struct exp_descriptor): New definition, containing
1766 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1767 evaluating expressions.
1768 (exp_descriptor_standard): Declare new variable.
1769 (print_subexp): Make global and declare here (from expprint.c).
1770 (dump_subexp): Ditto.
1771 (dump_subexp_body_standard): Declare.
1772 (operator_length_standard): Declare.
1773 (op_name_standard): Declare.
1774 (print_subexp): Declare.
1775 (print_subexp_standard): Declare.
1776
1777 * language.h (struct language_defn): Add la_exp_desc field to hold
1778 pointer to table for language-specific operators.
1779 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1780
1781 * parse.c (operator_length): Move most code to new
5f9769d1 1782 operator_length_standard function. Use language-specific information.
a8f4cde1 1783 (operator_length_standard): New function taking most code from
5f9769d1
PH
1784 operator_length.
1785 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1786
1787 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1788 and OP_EXTENDED_LAST.
a8f4cde1
RM
1789
1790 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1791 Make global; remove static declaration.
1792 Move most code to print_subexp_standard.
a8f4cde1 1793 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1794 print_subexp.
1795 (op_name): Add expression to argument signature.
a8f4cde1 1796 Use langauge-specific op_name.
5f9769d1
PH
1797 Move most code to op_name_standard.
1798 (op_name_standard): New function, containing code formerly in op_name.
1799 (dump_subexp): Use new version of op_name function.
1800 Use language-specific dump_subexp_body, and move most existing code to
1801 dump_subexp_body_standard.
1802 (dump_raw_expression): Use new op_name interface.
1803 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1804 (dump_subexp_body_standard): New function, containing code formerly
1805 in dump_subexp_body.
a8f4cde1 1806
5f9769d1
PH
1807 * language.c (unknown_language): Add default la_exp_desc field and
1808 remove evaluate_exp field.
1809 (auto_language): Ditto.
1810 (local_language): Ditto.
1811 * f-lang.c (f_language_defn): Ditto.
1812 * c-lang.c (c_language_defn): Ditto.
1813 (cplus_language_defn): Ditto.
1814 (asm_language_defn): Ditto.
1815 (minimal_language_defn): Ditto.
1816 * p-lang.c (pascal_language_defn): Ditto.
1817 * m2-lang.c (m2_language_defn): Ditto.
1818 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
1819
1820 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
1821 Java-specific expression evaluator.
1822 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1823 field.
a8f4cde1 1824 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
1825 Scheme-specific expression evaluator.
1826 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1827 field.
1828 * objc-lang.c (print_object_command): Take evaluate_exp from the
1829 la_exp_desc field.
a8f4cde1 1830
5f9769d1 1831 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
1832
1833 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
1834 la_exp_desc's type.
1835 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 1836
24daaebc
PH
18372003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1838
1839 * parser-defs.h (operator_length): Declare.
a8f4cde1 1840
24daaebc
PH
1841 * parse.c (length_of_subexp): Use operator_length to get operator
1842 lengths and arities for operators.
1843 Move most code to new operator_length function.
a8f4cde1 1844 (operator_length): New function absorbing most code from
24daaebc
PH
1845 length_of_subexp.
1846 (prefixify_subexp): Remove large case and use operator_length instead.
1847 (parse_exp_1): Use renamings:
a8f4cde1 1848 dump_prefix_expression => dump_raw_expression and
24daaebc 1849 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 1850
24daaebc
PH
1851 * expression.h (dump_prefix_expression): Rename to ...
1852 (dump_raw_expression): New name.
1853 (dump_postfix_expression): Rename to ...
1854 (dump_prefix_expression): New name.
a8f4cde1 1855
24daaebc
PH
1856 * expprint.c (dump_subexp): Make global. Add comment.
1857 Move most existing code to dump_subexp_body.
1858 (dump_subexp_body): New function.
1859 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 1860 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
1861 work before the expression is prefixified.
1862 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 1863 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 1864 that's what it does.
a8f4cde1 1865 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
1866 prefixified expression.
1867 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 1868
8c2957c4
JB
18692003-09-22 Jim Blandy <jimb@redhat.com>
1870
1871 * dwarf2read.c (read_array_type): When building the type for an
1872 array of unspecified length, make sure to choose the upper bound
1873 so that the array's total length comes out to be zero --- that's
1874 how we represent such arrays.
1875
592e3010
MC
18762003-09-22 Michael Chastain <mec@shout.net>
1877
1878 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1879
365c70b1
JJ
18802003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1881
1882 * top.c (quit_force): Fix indirect call to quit_target so
1883 a struct qt_args pointer is passed.
1884
5d6eb653
AC
18852003-09-22 Andrew Cagney <cagney@redhat.com>
1886
1887 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1888 * arch-utils.c (init_frame_pc_noop): Delete function.
1889 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1890 "init_frame_pc".
1891 * mips-tdep.c (mips_gdbarch_init): Ditto.
1892 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1893 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1894 declaration.
1895 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1896 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1897 declaration.
1898 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1899
b222a67f
AG
19002003-09-22 Anthony Green <green@redhat.com>
1901
1902 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1903 declaration.
1904
d5b5ac79
AC
19052003-09-20 Andrew Cagney <cagney@redhat.com>
1906
deafb061
AC
1907 * breakpoint.c: Eliminate ARGSUSED.
1908 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1909 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1910 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1911 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1912 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1913 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1914 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1915 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1916 * wince.c, remote-vx.c: Ditto.
1917
d5b5ac79
AC
1918 * cli/cli-script.c: Remove "register" attributes.
1919 * config/pa/tm-hppa.h: Ditto.
1920 * cli/cli-decode.c: Ditto.
1921 * cli/cli-cmds.c: Ditto.
1922
c6316faa
AC
19232003-09-19 Andrew Cagney <cagney@redhat.com>
1924
1925 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1926 DEPRECATED_NPC_REGNUM.
1927 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1928
f4f99b11
CF
19292003-09-19 Christopher Faylor <cgf@redhat.com>
1930
1931 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1932
1708f284
JB
19332003-09-19 Jim Blandy <jimb@redhat.com>
1934
1935 * macrotab.c (macro_include): Use the correct comparison to find
1936 the appropriate place for this inclusion in the list.
1937
b9fbf434
AC
19382003-09-19 Andrew Cagney <cagney@redhat.com>
1939
1940 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1941 (DEPRECATED_HPUX_TEXT_END): Define.
1942 (deprecated_hpux_text_end): Declare.
1943 (struct target_ops): Declare opaque.
1944 * hppah-nat.c (text_end): Make static.
1945 (deprecated_hpux_text_end): New function.
1946 * exec.c (text_end): Delete global variable.
1947 (NEED_TEXT_START_END): Do not define.
1948 (exec_file_attach): Replace code computing "text_end" code with
1949 call to DEPRECATED_HPUX_TEXT_END.
1950
5b03f266
AC
19512003-09-19 Andrew Cagney <cagney@redhat.com>
1952
1953 * utils.c (align_up, align_down): New functions.
1954 * defs.h (align_up, align_down): Declare.
1955 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1956 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1957 and "align_down".
1958 (round_up, round_down): Delete functions.
1959 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1960 "align_down".
1961 (ROUND_DOWN, ROUND_UP): Delete macros.
1962 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1963 * h8300-tdep.c: Replace "round_up" and "round_down" with
1964 "align_up" and "align_down".
1965 (round_up, round_down): Delete macros.
1966 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1967 "align_down".
1968 (ROUND_UP, ROUND_DOWN): Delete macros.
1969
51db5742
JB
19702003-09-18 J. Brobecker <brobecker@gnat.com>
1971
1972 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1973 hard-coded constant. Use the proper machine name instead.
1974
77949794
AC
19752003-09-17 Andrew Cagney <cagney@redhat.com>
1976
1977 * sparc-tdep.c (legacy_register_name): Delete function.
1978 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1979 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1980 * infcmd.c (gdb_register_name): Delete variable.
1981 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1982 REGISTER_NAME and "tm.h".
1983 * gdbarch.h, gdbarch.c: Regenerate.
1984 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1985 REGISTER_NAMES in comments.
1986 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1987 * m68klinux-nat.c (regmap): Ditto.
1988
b55c33cc
JB
19892003-09-17 Jim Blandy <jimb@redhat.com>
1990
1991 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1992
957e27ac
AC
19932003-09-17 Andrew Cagney <cagney@redhat.com>
1994
1995 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1996 (ppcnbsd_init_abi): Set "use_struct_convention" to
1997 "ppcnbsd_use_struct_convention".
1998
192cb3d4
MK
19992003-09-17 Mark Kettenis <kettenis@gnu.org>
2000
2001 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2002 * gdbarch.h, gdbarch.c: Regenerate.
2003 (stabs_argument_has_addr): New architecture method.
2004 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2005 * arch-utils.c: Include "buildsym.h".
2006 (default_stabs_argument_has_addr): New function.
2007 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2008 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2009
efe59759
AC
20102003-09-17 Andrew Cagney <cagney@redhat.com>
2011
2012 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2013 * gdbarch.h, gdbarch.c: Regenerate.
2014 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2015 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2016 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2017 * sparcnbsd-tdep.c: Update.
a8f4cde1 2018
62700349
AC
20192003-09-17 Andrew Cagney <cagney@redhat.com>
2020
2021 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2022 * gdbarch.h, gdbarch.c: Regenerate.
2023 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2024 * d10v-tdep.c, frame.c: Update.
2025 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2026 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2027 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2028 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2029 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2030 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2031 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2032 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2033 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2034 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2035 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2036 * config/pa/nm-hppah.h: Update.
2037
b9ff3018
AC
20382003-09-16 Andrew Cagney <cagney@redhat.com>
2039
2040 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2041 "use_struct_convention" to "ppc_linux_use_struct_convention".
2042 (ppc_linux_use_struct_convention): New function.
2043 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2044 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2045 "rs6000_use_struct_convention".
2046 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2047 declaration.
2048 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2049 Delete function.
2050
aa1ee363
AC
20512003-09-16 Andrew Cagney <cagney@redhat.com>
2052
2053 * buildsym.c: Remove more occurances of "register".
2054 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2055 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2056 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2057 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2058 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2059 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2060 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2061 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2062
f2ea0907
CV
20632003-09-16 Corinna Vinschen <vinschen@redhat.com>
2064
2065 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2066 numbers to enumeration values.
2067 * sh-tdep.c: Accomodate above change.
2068 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2069 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2070 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2071 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2072 (IS_FPUSH): Rename from IS_FMOV.
2073 (sh_extract_struct_value_address): Remove useless comment.
2074 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2075 instead of own local values.
2076 (sh_dump_tdep): Remove.
2077 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2078 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2079
1c704f11
AC
20802003-09-15 Andrew Cagney <cagney@redhat.com>
2081
2082 * doublest.c (convert_floatformat_to_doublest): No longer need to
2083 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2084
ac79b88b
DJ
20852003-09-15 Daniel Jacobowitz <drow@mvista.com>
2086
2087 * values.c (unpack_double): Call floatformat_is_valid.
2088
1c671366
MK
20892003-09-15 Mark Kettenis <kettenis@gnu.org>
2090
de5227fb
MK
2091 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2092 ps_strings into a long.
2093
1c671366
MK
2094 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2095 _initialize_am64fbsd_nat.
2096
a604369a
KB
20972003-09-15 Kevin Buettner <kevinb@redhat.com>
2098
2099 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2100 associated with DW_AT_ranges attribute is out of bounds.
2101
b3cacbee
DL
21022003-09-15 David Lecomber <dsl@sources.redhat.com>
2103
2104 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2105
d0f37bb2
MC
21062003-09-14 Michael Chastain <mec@shout.net>
2107
2108 * config/m68k/nm-apollo68v.h: Delete.
2109 * config/m68k/xm-apollo68v.h: Delete.
2110
69517000
AC
21112003-09-14 Andrew Cagney <cagney@redhat.com>
2112
2113 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2114 * dcache.c: Update copyrights and descriptions.
2115 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2116
ef8b349d
AC
21172003-09-14 Andrew Cagney <cagney@redhat.com>
2118
2119 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2120 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2121
52f0bd74
AC
21222003-09-14 Andrew Cagney <cagney@redhat.com>
2123
2124 * alpha-nat.c: Remove some occurances of "register".
2125 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2126 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2127 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2128 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2129 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2130 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2131 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2132 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2133 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2134 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2135 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2136 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2137 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2138 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2139 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2140 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2141 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2142 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2143 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2144 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2145 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2146 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2147
4a4b3fed
AC
21482003-09-13 Andrew Cagney <cagney@redhat.com>
2149
2150 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2151 * ppc-tdep.h (struct regcache): Declare opaque.
2152 * objfiles.h (struct objfile_data): Declare opaque.
2153 * cp-support.h (struct objfile): Declare opaque.
2154 * linux-nat.h (target_waitstatus): Declare opaque.
2155
2110b94f
MK
21562003-09-14 Mark Kettenis <kettenis@gnu.org>
2157
1c671366
MK
2158 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2159 (stabs_argument_has_addr): New architecture method.
2160 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2161 * arch-utils.c: Include "buildsym.h".
2162 (default_stabs_argument_has_addr): New function.
2163 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2164 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2165
2110b94f
MK
2166 * cris-tdep.c (cris_gdbarch_init): Set
2167 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2168 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2169 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2170 * mips-tdep.c (mips_gdbarch_init): Likewise.
2171 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2172 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2173
48436ce6
AC
21742003-09-13 Andrew Cagney <cagney@redhat.com>
2175
2176 * values.c (using_struct_return): Delete "function" and "funcaddr"
2177 parameters.
2178 * value.h (using_struct_return): Update declaration.
2179 * infcmd.c (finish_command_continuation): Update.
2180 (finish_command): Update.
2181 * infcall.c (call_function_by_hand): Update.
2182 * eval.c (evaluate_subexp_standard): Update.
2183
403d9909
CF
21842003-09-13 Christopher Faylor <cgf@redhat.com>
2185
2186 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2187 SSE registers since gdb will not operate correctly without this.
2188 Restore include file ordering munged in previous change.
2189 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2190
ebf7d56b
MK
21912003-09-13 Mark Kettenis <kettenis@gnu.org>
2192
8e823e25
MK
2193 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2194 REG_STRUCT_HAS_ADDR.
2195 * gdbarch.c, gdbarch.h: Updated.
2196 * infcall.c (call_function_by_hand): Update.
2197 * stabsread.c (define_symbol): Updated.
a8f4cde1 2198
ebf7d56b
MK
2199 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2200
d3f13f72
CF
22012003-09-12 Christopher Faylor <cgf@redhat.com>
2202
2203 * win32-nat.c: Reorganize so that defines used by target headers are
2204 actually defined by the system headers.
2205 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2206 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2207
14f75137
JB
22082003-09-12 Jim Blandy <jimb@redhat.com>
2209
d646061f
JB
2210 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2211 the file has no .data, .bss, or .rodata sections. Instead wait
2212 until we see a variable alleged to live in one of those sections.
2213
2a13f9bc
JB
2214 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2215 .bss section, presume that any variables we find live in the
2216 .rodata section.
2217
4f49b26b
JB
2218 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2219 offsets for global and static variables.
2220
14f75137
JB
2221 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2222 symbol types are, by definition, in the .data section, so it is
2223 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2224 If there is no .data section, there should be no N_DATA or N_DATA
2225 | N_EXT symbols.
2226
212c460c
MK
22272003-09-12 Mark Kettenis <kettenis@gnu.org>
2228
2229 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2230 (amd64fbsd_sigcontext_addr): Rewrite.
2231 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2232 with correct values.
2233 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2234 (amd64fbsd_init_abi): Fix typo.
2235
68856ea3
AC
22362003-09-12 Andrew Cagney <cagney@redhat.com>
2237
2238 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2239 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2240
627b3ba2
AC
22412003-09-12 Andrew Cagney <cagney@redhat.com>
2242
2243 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2244 "entry_file_highpc". Update comments.
2245 * defs.h (deprecated_inside_entry_file): Rename
2246 "inside_entry_file".
2247 * blockframe.c (deprecated_inside_entry_file): Rename
2248 "inside_entry_file".
2249 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2250 * vax-tdep.c (vax_frame_chain): Update.
2251 * sh64-tdep.c (sh64_frame_chain): Update.
2252 * sh-tdep.c (sh_frame_chain): Update.
2253 * rs6000-tdep.c (rs6000_frame_chain): Update.
2254 * ns32k-tdep.c (ns32k_frame_chain): Update.
2255 * mips-tdep.c (mips_frame_chain): Update.
2256 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2257 * m32r-tdep.c (m32r_frame_this_id): Update.
2258 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2259 * frv-tdep.c (frv_frame_this_id): Update.
2260 * d10v-tdep.c (d10v_frame_this_id): Update.
2261 * cris-tdep.c (cris_frame_chain): Update.
2262 * blockframe.c (legacy_frame_chain_valid): Update.
2263 * avr-tdep.c (avr_frame_this_id): Update.
2264 * arm-tdep.c (arm_prologue_this_id): Update.
2265 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2266 * objfiles.c (objfile_relocate): Update.
2267 * mipsread.c (mipscoff_symfile_read): Update.
2268 (mipscoff_symfile_read): Update.
2269 * mdebugread.c (parse_partial_symbols): Update.
2270 * dwarfread.c (read_file_scope): Update.
2271 * dwarf2read.c (read_file_scope): Update.
2272 * dbxread.c (read_dbx_symtab): Update.
2273 (read_dbx_symtab): Update.
2274 * coffread.c (complete_symtab): Update.
2275
b0abbc58
JJ
22762003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2277
2278 * top.c (quit_target): New static helper function.
2279 (quit_force): Moved code to quit_target(). Call quit_target()
2280 via catch_errors() to catch errors during quit.
2281
a1632d59
DC
22822003-09-11 David Carlton <carlton@kealia.com>
2283
2284 * buildsym.c (finish_block): Use allocate_block to allocate the
2285 block.
2286 * mdebugread.c (new_block): Add FIXME.
2287
5c4e30ca
DC
22882003-09-11 David Carlton <carlton@kealia.com>
2289
2290 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2291 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2292 (recursive_dump_type): Ditto.
2293 * printcmd.c (print_formatted): Ditto.
2294 * typeprint.c (print_type_scalar): Ditto.
2295 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2296 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2297 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2298 maint_cplus_cmd_list.
2299 * cp-support.c: Make maint_cplus_cmd_list extern.
2300 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2301 command.h.
2302 (lookup_symbol_file): Look in possible namespace blocks when
2303 appropriate.
2304 (initialize_namespace_symtab): New.
2305 (get_possible_namespace_block, free_namespace_block)
2306 (check_possible_namespace_symbols)
2307 (check_possible_namespace_symbols_loop)
2308 (check_one_possible_namespace_symbol)
2309 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2310 (_initialize_cp_namespace): Ditto.
2311 * block.h: Declare allocate_block.
2312 * block.c (allocate_block): New.
2313 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2314 allocate_block.
2315 * symfile.h: Update declaration of add_psymbol_to_list.
2316 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2317 question.
2318 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2319 scan_partial_symbols_call.
2320 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2321 helper functions.
2322 (add_partial_symbol): If necessary, scan mangled names for names
2323 of namespaces.
2324 (add_partial_namespace): Add NAMESPACE argument; generate partial
2325 symbols associated to namespaces.
2326 (add_partial_enumeration): Add NAMESPACE argument.
2327 (new_symbol): Allow namespace syms.
2328 (read_namespace): Generate namespace syms.
2329 * objfiles.h: Add opaque declaration of struct symtab.
2330 (struct objfile): Add cp_namespace_symtab member.
2331 * objfiles.c (allocate_objfile): Set
2332 objfile->cp_namespace_symtab.
2333 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2334 dictionary_h, command_h.
2335
33a7c2fc
AC
23362003-09-11 Andrew Cagney <cagney@redhat.com>
2337
2338 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2339 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2340 near the function's end.
2341 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2342 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2343 regcache_raw_write_signed to set SP_REGNUM.
2344
63cd24fe
EZ
23452003-09-11 Elena Zannoni <ezannoni@redhat.com>
2346
2347 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2348 orig_addrs is set up properly.
2349
f27dd7fd
AC
23502003-09-11 Andrew Cagney <cagney@redhat.com>
2351
2352 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2353 * gdbarch.h, gdbarch.c: Re-generate.
2354 * infcall.c (call_function_by_hand): Update.
2355 * hppa-tdep.c (hppa_push_arguments): Update.
2356 * ada-lang.c (place_on_stack): Update.
2357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2358 * sparc-tdep.c (sparc_gdbarch_init): Update.
2359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2360 * hppa-tdep.c (hppa_gdbarch_init): Update.
2361 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2362 stack_align.
2363
f630a401
DJ
23642003-09-11 Daniel Jacobowitz <drow@mvista.com>
2365
2366 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2367 register do need a frame.
2368
0ddabb4c
AC
23692003-09-11 Andrew Cagney <cagney@redhat.com>
2370
2371 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2372 buildable since GDB 5.0.
2373 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2374 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2375 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2376 * irix4-nat.c: Delete file.
2377 * config/mips/irix4.mh: Delete file.
2378 * config/mips/irix3.mh: Delete file.
2379 * config/mips/irix3.mt: Delete file.
2380 * config/mips/tm-irix3.h: Delete file.
2381 * config/mips/nm-irix3.h: Delete file.
2382 * config/mips/xm-irix3.h: Delete file.
2383 * config/mips/nm-irix4.h: Delete file.
2384 * config/mips/xm-irix4.h: Delete file.
2385 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2386
fde2cceb
JB
23872003-09-10 J. Brobecker <brobecker@gnat.com>
2388
2389 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2390 * Makefile.in (hppa-tdep.o): Update dependencies.
2391
66f667f5
JW
23922003-09-10 James E Wilson <wilson@specifixinc.com>
2393
ef5fd69f
JW
2394 * MAINTAINERS: Change my e-mail address. Move to paper trail
2395 section.
66f667f5 2396
53e8aaea
KB
23972003-09-10 Kevin Buettner <kevinb@redhat.com>
2398
2399 * MAINTAINERS (frv): New ISA entry.
2400
dcc6aaff
KB
24012003-09-10 Kevin Buettner <kevinb@redhat.com>
2402
2403 * frv-tdep.c (dis-asm.h): Include.
2404 * Makefile.in (frv-tdep.o): Update dependencies.
2405
932644f0
JJ
24062003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2407
2408 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2409 Fix typo for high range of floating registers.
2410
91c24f0a
DC
24112003-09-09 David Carlton <carlton@kealia.com>
2412
2413 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2414 highpc initialization here out of scan_partial_symbols.
2415 (scan_partial_symbols): Restructure into a recursive version,
2416 calling add_partial_namespace and add_partial_enumeration when
2417 appropriate.
2418 (add_partial_namespace): New.
2419 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2420
c9263853
AC
24212003-09-09 Andrew Cagney <cagney@redhat.com>
2422
e56a0ecc
AC
2423 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2424 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2425 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2426 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2427
794a477a
AC
2428 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2429 (rs6000_push_dummy_call): Set the "TOC" register.
2430
c9263853
AC
2431 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2432 methods "max_register_raw_size", "max_register_virtual_size" or
2433 "register_virtual_size".
2434
afa7d0b2
ILT
24352003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2436
2437 * MAINTAINERS: Update my e-mail address.
2438
7a41266b
AC
24392003-09-09 Andrew Cagney <cagney@redhat.com>
2440
2441 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2442 (rs6000_push_dummy_call): Store the struct return address.
2443 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2444
77b2b6d4
AC
24452003-09-09 Andrew Cagney <cagney@redhat.com>
2446
2447 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2448 "ppc_sysv_abi_push_arguments".
2449 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2450 "ppc_sysv_abi_push_arguments".
2451 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2452 instead of "push_arguments".
2453 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2454
e8a7b686
AC
24552003-09-09 Andrew Cagney <cagney@redhat.com>
2456
2457 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2458 instead of CALL_DUMMY_ADDRESS.
2459
f86f5ca3
PH
24602003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2461
2462 * p-lang.c: Eliminate "register".
2463 * c-lang.c: Ditto.
2464 * expprint.c: Ditto.
2465 * f-lang.c: Ditto.
2466 * jv-lang.c: Ditto.
2467 * language.c: Ditto.
2468 * m2-lang.c: Ditto.
2469 * parse.c: Ditto.
2470 * scm-lang.c: Ditto.
2471 * objc-lang.c: Ditto.
2472
83ee270e
NC
24732003-09-09 Nick Clifton <nickc@redhat.com>
2474
2475 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2476
a89aa300
AC
24772003-09-04 Andrew Cagney <cagney@redhat.com>
2478
2479 * avr-tdep.c: Include "dis-asm.h".
2480 * cris-tdep.c: Include "dis-asm.h".
2481 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2482 instead of corresponding typedef.
2483 * h8300-tdep.c: Include "dis-asm.h".
2484 * ia64-tdep.c: Include "dis-asm.h".
2485 * i386-tdep.c: Include "dis-asm.h".
2486 (i386_print_insn): Use "struct disassemble_info" instead of
2487 corresponding typedef.
2488 * m68k-tdep.c: Include "dis-asm.h".
2489 * mcore-tdep.c: Include "dis-asm.h".
2490 * mips-tdep.c: Include "dis-asm.h".
2491 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2492 instead of corresponding typedef.
2493 * ns32k-tdep.c: Include "dis-asm.h".
2494 * s390-tdep.c: Include "dis-asm.h".
2495 * sparc-tdep.c: Include "dis-asm.h".
2496 * vax-tdep.c: Include "dis-asm.h".
2497 * v850-tdep.c: Include "dis-asm.h".
2498 * mn10300-tdep.c: Include "dis-asm.h".
2499 * rs6000-tdep.c: Include "dis-asm.h".
2500 * xstormy16-tdep.c: Include "dis-asm.h".
2501 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2502 print_insn_xstormy16.
2503 * Makefile.in (v850-tdep.o): Update dependencies.
2504 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2505 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2506 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2507 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2508 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2509 (gdbarch_h): Remove $(dis_asm_h).
2510 * disasm.c: Include "dis-asm.h".
2511 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2512 corresponding typedef.
2513 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2514 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2515 * gdbarch.sh: Do not include "dis-asm.h".
2516 (struct disassemble_info): Declare opaque.
2517 (TARGET_PRINT_INSN): Update declaration.
2518 * gdbarch.h, gdbarch.c: Re-generate.
2519
88a82a65
AC
25202003-09-08 Andrew Cagney <cagney@redhat.com>
2521
2522 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2523 CALL_DUMMY_ADDRESS, change to a predicate.
2524 * gdbarch.h, gdbarch.c: Re-generate.
2525 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2526 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2527 * infcall.c (call_function_by_hand): Ditto.
2528 * sparc-tdep.c (sparc_push_return_address): Ditto.
2529 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2530 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2531 CALL_DUMMY_ADDRESS with entry_point_address.
2532 * v850-tdep.c (v850_push_return_address): Ditto.
2533 * s390-tdep.c (s390_push_return_address): Ditto.
2534 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2535 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2536 * mcore-tdep.c (mcore_push_return_address): Ditto.
2537 * cris-tdep.c (cris_push_return_address): Ditto.
2538 * arm-tdep.c (arm_push_return_address): Ditto.
2539
3e2c4033
AC
25402003-09-08 Andrew Cagney <cagney@redhat.com>
2541
2542 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2543 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2544 and REG_UNMODIFIED to REG_SAME_VALUE.
2545 (execute_cfa_program): Update.
2546 (dwarf2_frame_cache): Update. Initialize table to
2547 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2548 location.
2549 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2550
39efb398
AC
25512003-09-08 Andrew Cagney <cagney@redhat.com>
2552
2553 * gnu-nat.c: Remove "inline" function attribute.
2554 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2555
f5cb5aca
KB
25562003-09-08 Kevin Buettner <kevinb@redhat.com>
2557
2558 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2559 target.
2560
1cb761c7
KB
25612003-09-08 Kevin Buettner <kevinb@redhat.com>
2562
2563 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2564 (frame_extra_info): Rename this struct to frv_unwind_cache.
2565 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2566 Add fields ``prev_sp'' and ``base''.
2567 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2568 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2569 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2570 Delete.
2571 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2572 Revise all callers. Fill in the unwind cache argument and make
2573 other adjustments to account for new frame mechanisms.
2574 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2575 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2576 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2577 (frv_frame_unwind, frv_frame_base): New structs.
2578 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2579 additional arguments expected by this method and adjust function
2580 body accordingly.
2581 (frv_gdbarch_init): Remove calls to the following functions:
2582 set_gdbarch_deprecated_init_frame_pc(),
2583 set_gdbarch_deprecated_saved_pc_after_call(),
2584 set_gdbarch_deprecated_frame_chain(),
2585 set_gdbarch_deprecated_frame_saved_pc(),
2586 set_gdbarch_deprecated_frame_init_saved_regs(),
2587 set_gdbarch_deprecated_push_arguments(),
2588 set_gdbarch_deprecated_push_return_address(),
2589 set_gdbarch_deprecated_pop_frame(),
2590 set_gdbarch_deprecated_call_dummy_words(),
2591 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2592 set_gdbarch_deprecated_init_extra_frame_info(),
2593 set_gdbarch_deprecated_dummy_write_sp(), and
2594 set_gdbarch_deprecated_pc_in_call_dummy().
2595 Add calls to the following functions:
2596 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2597 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2598 frame_base_set_default().
2599 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2600
68f6cf99
MK
26012003-09-09 Mark Kettenis <kettenis@gnu.org>
2602
2603 * dwarf2-frame.c (read_encoded_value): Add support for
2604 DW_EH_PE_aligned encoding.
2605
73b65bb0
DJ
26062003-09-08 Daniel Jacobowitz <drow@mvista.com>
2607
2608 * infrun.c (normal_stop): Don't print a message if the inferior
2609 has exited.
2610
7c8a5605
JB
26112003-09-08 Jim Blandy <jimb@redhat.com>
2612
2613 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2614 * dbxread.c: #include "gdb_assert.h".
2615 (read_dbx_symtab): If the objfile has no .data section, use the
2616 section index for the .bss section instead.
2617
7dd88986
DJ
26182003-09-08 Daniel Jacobowitz <drow@mvista.com>
2619
2620 * frame.c (deprecated_safe_get_selected_frame): New function.
2621 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2622 * findvar.c (read_var_value): Call it.
2623
55ff77ac
CV
26242003-09-08 Corinna Vinschen <vinschen@redhat.com>
2625
2626 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2627 (sh64-tdep.o): Add dependencies.
2628 * configure.tgt: Add FIXME to sh-*-linux*.
2629 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2630 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2631 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2632 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2633 * sh64-tdep.c: New file, containing all sh64 related code from
2634 sh-tdep.c.
2635 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2636 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2637 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2638 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2639 * config/sh/wince.mt (TDEPFILES): Ditto.
2640
bfb39158
DJ
26412003-09-07 Daniel Jacobowitz <drow@mvista.com>
2642
2643 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2644 (stop_wait_callback): Handle !lp->signalled also.
2645 (lin_lwp_has_pending, flush_callback): New functions.
2646 (lin_lwp_wait): Call flush_callback.
2647 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2648 (linux_proc_pending_signals): New function.
2649 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2650
9407de8e
DJ
26512003-09-07 Daniel Jacobowitz <drow@mvista.com>
2652
2653 From Nick Kelsey <nickk@ubicom.com>:
2654 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2655 when the stop PC is at the beginning of a function also.
2656
2ef47cd0
DJ
26572003-09-06 Daniel Jacobowitz <drow@mvista.com>
2658
2659 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2660 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2661
6f4492c8
MK
26622003-09-06 Mark Kettenis <kettenis@gnu.org>
2663
2664 * sol-thread.c: Include "gdb_string.h".
2665
d3420b2f
MK
26662003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2667
2668 * gcore.c: Reorder include files in alphabetical order. Include
2669 "gdb_assert.h". Various coding style fixes.
2670 (derive_stack_segment, derive_heap_segment): Replace check for
2671 non-null BOTTOM and TOP with gdb_assert.
2672 (derive_heap_segment): Replace check for successful creation of
2673 ZERO with gdb_assert.
2674 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2675
5220ea4c
AC
26762003-09-04 Andrew Cagney <cagney@redhat.com>
2677
2678 * thread-db.c (verbose_dlsym): New function.
2679 (thread_db_load): Use verbose_dlsym
2680 (thread_db_new_objfile): Print that libthread_db was loaded, and
2681 that thread debugging was enabled.
2682
6e8c2c06
AC
26832003-09-04 Andrew Cagney <cagney@redhat.com>
2684
2685 * configure.tgt: Add "mips64*-*-*" target. Delete
2686 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2687 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2688 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2689 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2690 mips*-sony-*, and mips64*-*-elf* targets.
2691 * config/mips/embedl.mt: Delete file.
2692 * config/mips/embedl64.mt: Delete file.
2693 * config/mips/mips.mt: Delete file.
2694 * config/mips/mips64.mt: Delete file.
2695 * config/mips/tm-embed.h: Delete file.
2696 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2697 * config/mips/embed64.mt: Delete out-of-date comment.
2698
3a3bc038
AC
26992003-09-04 Andrew Cagney <cagney@redhat.com>
2700
2701 * hppa-tdep.c (hppa_gdbarch_init): Set
2702 "have_nonsteppable_watchpoint".
2703 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2704 * mips-tdep.c (mips_dump_tdep): Do not print
2705 HAVE_NONSTEPPABLE_WATCHPOINT.
2706 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2707 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2708 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2709 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2710
a957e642
CV
27112003-09-04 Corinna Vinschen <vinschen@redhat.com>
2712
2713 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2714 unused code. Add comment.
2715
a6fbcf2f
CV
27162003-09-04 Corinna Vinschen <vinschen@redhat.com>
2717
2718 * breakpoint.c (watchpoint_check): Check for pc being in an
2719 epilogue if watchpoint frame couldn't be found.
2720
c14a44d5
AC
27212003-09-04 Andrew Cagney <cagney@redhat.com>
2722
2723 * Makefile.in: Re-generate all dependencies.
2724
f6c40618
AC
27252003-09-03 Andrew Cagney <cagney@redhat.com>
2726
2727 * arch-utils.h (legacy_print_insn): Delete declaration.
2728 * arch-utils.c (legacy_print_insn): Delete function.
2729 * disasm.c (deprecated_tm_print_insn_info): Delete.
2730 (_initialize_disasm): Delete function, contained code initializing
2731 deprecated_tm_print_insn_info.
2732 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2733 (deprecated_tm_print_insn_info): Delete.
2734 (TARGET_PRINT_INSN): Do not provide a default.
2735 * gdbarch.h, gdbarch.c: Re-generate.
2736
242e8be5
AC
27372003-09-03 Andrew Cagney <cagney@redhat.com>
2738
2739 * disasm.c (fprintf_disasm): New function.
2740 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2741 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2742 reverts 2003-08-14 change.
2743 (_initialize_disasm): Call "init_disassemble_info", instead of
2744 INIT_DISASSEMBLE_INFO_NO_ARCH.
2745
3ffc3dda
MS
27462003-09-03 Michael Snyder <msnyder@redhat.com>
2747
2748 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2749
52d16ba8
AC
27502003-09-03 Andrew Cagney <cagney@redhat.com>
2751
2752 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2753 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2754 * symfile.c (syms_from_objfile): Update.
2755 (reread_symbols): `Update
2756 * exec.c (exec_file_attach): Update.
2757 (exec_file_attach): Update.
2758 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2759 2003-08-29 change.
2760 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2761
eb5492fa
DJ
27622003-09-03 Daniel Jacobowitz <drow@mvista.com>
2763
2764 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2765 trad-frame.h.
2766 (arm_get_cache): Delete macro.
2767 (struct arm_prologue_cache): Update comments. Make saved_regs into
2768 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2769 to prev_sp.
2770 (thumb_scan_prologue): Update for cache changes. Don't call
2771 DEPRECATED_PC_IN_CALL_DUMMY.
2772 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2773 argument and use it in desperation search for our prologue. Do not
2774 search past the specified PC.
2775 (arm_make_prologue_cache): Simplify.
2776
2777 (arm_prologue_this_id, arm_prologue_prev_register)
2778 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2779 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2780 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2781 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2782 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2783
2784 (arm_frame_chain_valid, arm_find_callers_reg)
2785 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2786 (arm_pop_frame): Delete obsolete methods.
2787 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2788
2789 (arm_gdbarch_init): Update for new frame methods. Register prologue
2790 and sigtramp unwinders. Set the default frame base method.
2791
2792 * Makefile.in (arm-tdep.o): Update dependencies.
2793 * varobj.c (find_frame_addr_in_frame_chain): Call
2794 get_frame_base_address.
2795 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2796
24de872b
DJ
27972003-09-03 Daniel Jacobowitz <drow@mvista.com>
2798
2799 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2800 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2801 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2802 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2803 Take NEXT_FRAME and CACHE arguments. Call
2804 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2805 Set unwound_pc in CACHE instead of modifying the frame argument.
2806 Don't bother checking the frame type when looking for sigtramp
2807 frames.
2808 (arm_make_prologue_cache, arm_frame_chain)
2809 (arm_init_extra_frame_info): New functions.
2810
9b8d791a
DJ
28112003-09-03 Daniel Jacobowitz <drow@mvista.com>
2812
2813 * arm-tdep.c (arm_get_cache): Define.
2814 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2815 unwound_sp, unwound_pc, and saved_regs.
2816 (thumb_scan_prologue): Take a cache instead of the frame.
2817 (arm_scan_prologue): Likewise.
2818 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2819 instead of a temporary frame.
2820 (arm_init_extra_frame_info): Allocate and use a cache.
2821 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2822
7ee3275f
AC
28232003-09-03 Andrew Cagney <cagney@redhat.com>
2824
2825 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2826 * config/mips/wince.mt (TM_CLIBS): Ditto.
2827 * config/sh/wince.mt (TM_CLIBS): Ditto.
2828 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2829 * config/sparc/sp64.mt (CC): Delete.
2830
57b29be7
AC
28312003-09-03 Andrew Cagney <cagney@redhat.com>
2832
2833 * defs.h: Do not include "arch-utils.h".
2834 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2835 GDB_MULTI_ARCH_PURE.
2836 * configure.in (GDB_MULTI_ARCH): Do not define.
2837 * configure, config.in: Regenerate.
2838 * configure.tgt: Do not set variable "gdb_multi_arch".
2839 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2840 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2841 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2842 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2843 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2844 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2845 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2846 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2847 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2848 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2849 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2850 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2851 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2852 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2853 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2854 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2855 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2856 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 2857
12e035e2
MC
28582003-08-30 Michael Chastain <mec@shout.net>
2859
2860 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2861 * config/m68k/nm-hp300hpux.h: Delete.
2862 * config/m68k/tm-hp300hpux.h: Delete.
2863 * config/m68k/xm-hp300hpux.h: Delete.
2864 * config/m68k/xm-hp300bsd.h: Delete.
2865 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2866 tm-hp300hpux.h, xm-hp300hpux.h.
2867 * somsolib.c: Remove comment about hp300 shared libraries.
2868
bda34dc2
MK
28692003-08-31 Mark Kettenis <kettenis@gnu.org>
2870
5bca7895
MK
2871 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2872 Only define PTRACE_GET_THREAD_AREA is not already defined.
2873 Various style fixes in code and comments and some additional
2874 spelling fixes in comments. Move after functions dealing with
2875 debug registers.
2876 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2877 Fix coding-style.
2878
bda34dc2
MK
2879 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2880 frame_unwind_register_unsigned instead of
2881 frame_unwind_unsigned_register.
2882
c890192f
MK
28832003-08-30 Mark Kettenis <kettenis@gnu.org>
2884
2885 * configure.in: Search for gethostbyname in libnsl.
2886 * configure: Regenerated.
2887
60fac5b8
MK
28882003-08-29 Mark Kettenis <kettenis@gnu.org>
2889
e294916c
MK
2890 * configure.in: Remove redundant AC_MSG_RESULT in check for
2891 uintptr_t in stdint.h.
2892 * configure: Regenerated.
2893
c40d267a
MK
2894 * amd64-nat.h (struct regcache): Add opaque declaration.
2895
60fac5b8
MK
2896 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2897 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2898 Change "register array" to "register cache" in comments.
2899 (x86_64_linux_gregset64_reg_offset): New variable.
2900 (GETREGS_SUPPLIES): Remove macro.
2901 (supply_gregset): Call amd64_supply_native_gregset instead of
2902 x86_64_linux_supply_gregset.
2903 (fill_gregset): Rename `regno' to `regnum'. Call
2904 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2905 (store_regs): Rename `regno' to `regnum'.
2906 (store_fpregs): Rename `regno' to `regnum'.
2907 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2908 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2909 Reorganize function a bit.
2910 (store_inferior_registers): Rename `regno' to `regnum'. Use
2911 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2912 Reorganize function a bit.
2913 (_initialize_x86_64_linux_nat): New function.
2914 * config/i386/x86-64linux.mh.
2915
546143b6
AC
29162003-08-29 Andrew Cagney <cagney@redhat.com>
2917
2918 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2919 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2920 (target_remove_watchpoint): Delete macro.
2921 (target_insert_watchpoint): Delete macro.
2922 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2923 (remote_mips_stopped_by_watchpoint): Delete declaration.
2924 (remote_mips_remove_watchpoint): Delete declaration.
2925 (remote_mips_set_watchpoint): Delete declaration.
2926 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2927 * remote-mips.c (_initialize_remote_mips): Set
2928 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2929 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2930 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2931 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2932 (mips_stopped_by_watchpoint): Rename
2933 remote_mips_stopped_by_watchpoint.
2934 (mips_can_hardware_watchpoint): Rename
2935 remote_mips_can_use_hardware_watchpoint, update function
2936 signature.
2937
7bace51b
MK
29382003-08-29 Mark Kettenis <kettenis@gnu.org>
2939
b0f5c6f2
MK
2940 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2941 USER_DS. We haven't given them a register number yet.
2942
2a6d284d
MK
2943 * amd64-nat.h: New file.
2944 * amd64-nat.c: New file.
2945 * amd64fbsd-nat.c: Include "amd64-nat.h".
2946 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2947 (amd64fbsd32_r_reg_offset): New variable.
2948 (supply_gregset): Simply call amd64_supply_native_gregset.
2949 (fill_gregset): Rename `regno' to `regnum'. Simply call
2950 amd64_collect_native_gregset.
2951 (fill_fpregset): Rename `regno' to `regnum'.
2952 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2953 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2954 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2955 `fpregset_t'. Call amd64_supply_native_gregset instead of
2956 supply_gregset. Call x86_64_supply_fxsave instead of
2957 supply_fpregset.
2958 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2959 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2960 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2961 `fpregset_t'. Call amd64_collect_native_gregset instead of
2962 fill_gregset. Call x86_64_collect_fxsave instead of
2963 fill_fpregset.
2964 (_initialize_am64fbsd_nat): Initialize
2965 amd64_native_gregset32_reg_offset and
2966 amd64_native_gregset64_reg_offset.
2967 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2968
a16d75cc
MK
2969 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2970 null pointer. Fix typo in comment.
2971
7bace51b
MK
2972 * regcache.c (supply_register): Reimplement to call
2973 regcache_raw_supply.
2974 (regcache_collect): Reimplement by calling regcache_raw_collect.
2975
9a661b68
MK
29762003-08-28 Mark Kettenis <kettenis@gnu.org>
2977
2978 * regcache.c (register_buffer): Consitify first argument.
2979 (regcache_raw_supply, regcache_raw_collect): New
2980 functions.
2981
e94cc8fa
DJ
29822003-08-28 Daniel Jacobowitz <drow@mvista.com>
2983
2984 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2985 by Nathan J. Williams.
2986
c64bd0ce
DJ
29872003-08-28 Daniel Jacobowitz <drow@mvista.com>
2988
2989 * lin-lwp.c (wait_lwp): New function, copied from
2990 stop_wait_callback. Clean up.
2991 (stop_wait_callback): Use wait_lwp.
2992
e5ab0dce
AC
29932003-08-28 Andrew Cagney <cagney@redhat.com>
2994
2995 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2996 flavour and disassembler options.
2997 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2998 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2999 deprecated_tm_print_insn_info.
a8f4cde1 3000
a788de9b
AC
30012003-08-27 Andrew Cagney <cagney@redhat.com>
3002
3003 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3004 Use target_read_memory.
3005 (s390_get_frame_info): Update. Do not reference
3006 deprecated_tm_print_insn_info.
3007 (s390_check_function_end, s390_is_sigreturn): Ditto.
3008
36482093
AC
30092003-08-27 Andrew Cagney <cagney@redhat.com>
3010
3011 * Makefile.in (cris-tdep.o): Update dependencies.
3012 * cris-tdep.c: Include "gdb_assert.h".
3013 (cris_gdbarch_init): Set print_insn.
3014 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3015 (cris_delayed_get_disassembler): Simplify, directly call the
3016 disassembler returned by cris_get_disassembler.
3017 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3018 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3019 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3020 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3021 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3022 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3023 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3024 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3025 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3026 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3027 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3028 (gdb_print_insn_sparc): Delete function.
3029 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3030 deprecated_tm_print_insn_info.
3031 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3032 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3033 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3035 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3036 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3037 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3038 (s390_gdbarch_init): Set print_insn.
3039
0285512f
AC
30402003-08-27 Andrew Cagney <cagney@redhat.com>
3041
3042 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3043 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3044 * infcall.c (call_function_by_hand): Convert the entry point
3045 address into a code address.
3046
cdcd5552
AC
30472003-08-27 Andrew Cagney <cagney@redhat.com>
3048
3049 * dsrec.c: Include "gdb_string.h".
3050 * Makefile.in (dsrec.o): Update dependencies.
3051
e85cddad
MC
30522003-08-27 Michael Chastain <mec@shout.net>
3053
3054 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3055
8bbfbb23
AC
30562003-08-27 Andrew Cagney <cagney@redhat.com>
3057
3058 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3059 (alpha_osf1_init_abi): Do not set call_dummy_address.
3060
ba058b66
DC
30612003-08-27 David Carlton <carlton@kealia.com>
3062
3063 From Randolph Chung <tausq@debian.org>:
3064 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3065 compiles with -Wformat-nonliteral -Werror.
3066
87f84c9d
JB
30672003-08-26 Jim Blandy <jimb@redhat.com>
3068
3069 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3070 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3071 bfd_lookup_symbol, since we only want symbols in code sections.
3072 (look_for_base): Pass zero as the SECT_FLAGS argument to
3073 bfd_lookup_symbol, since we're not concerned about which section
3074 the symbol is in.
3075
102d615a
JJ
30762003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3077
3078 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3079 we are frameless or the return address register is already known.
102d615a 3080
cc7ad3ea
AC
30812003-08-26 Andrew Cagney <cagney@redhat.com>
3082
3083 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3084 in size. Add comments.
3085
af8b88dd
JJ
30862003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3087
3088 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3089 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3090
e0a4f5a1
JM
30912003-08-26 Jason Merrill <jason@redhat.com>
3092
3093 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3094 case out of #ifdef MIPS block.
3095
4ae9ee8e
DJ
30962003-08-25 Daniel Jacobowitz <drow@mvista.com>
3097
3098 PR java/1322
3099 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3100 available before calling SECT_OFF_TEXT.
3c164570 3101 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3102
004d836a
JJ
31032003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3104
a8f4cde1 3105 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3106 bof, and nat0-nat127 as pseudo-registers.
3107 (ia64_frame_cache): New struct used to cache frame info.
3108 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3109 register grouping so registers without names are still saved and
004d836a 3110 restored.
a8f4cde1 3111 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3112 pseudo values.
3113 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3114 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3115 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3116 ia64_frame_cache.
3117 (examine_prologue): Change prototype to add next_frame pointer.
3118 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3119 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3120 alloc insn and if equal, mark as not frameless. At end of routine,
3121 if not frameless, calculate registers for the previous frame and store
3122 in the cache, if a cache is provided.
3123 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3124 and pass 0 for next_frame.
3125 (ia64_store_return_value): Change to use convert_typed_floating()
3126 instead of calling ia64_convert_to_raw().
3127 (ia64_extract_return_value): Change to use convert_typed_floating()
3128 instead of calling ia64_convert_to_virtual().
3129 (ia64_frame_cache): New routine to support new frame model.
3130 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3131 (ia64_frame_sniffer): Ditto.
3132 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3133 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3134 (ia64_sigtramp_frame_prev_register): Ditto.
3135 (ia64_sigtramp_frame_sniffer): Ditto.
3136 (ia64_frame_base_address): Ditto.
3137 (ia64_extract_struct_value_address): Change to issue error message.
3138 (ia64_frame_align): New routine to align sp.
3139 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3140 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3141 ia64_push_dummy_call().
3142 (ia64_push_return_address): Ditto.
3143 (ia64_unwind_dummy_id): New function.
3144 (ia64_unwind_pc): Ditto.
3145 (ia64_convert_register_p): Ditto.
3146 (ia64_register_to_value): Ditto.
3147 (ia64_value_to_register): Ditto.
3148 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3149 (ia64_register_byte, ia64_register_raw_size): Ditto.
3150 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3151 (ia64_saved_pc_after_call): Ditto.
3152 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3153 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3154 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3155 (ia64_register_convert_to_raw): Ditto.
3156 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3157 (ia64_init_extra_frame_info): Ditto.
3158 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3159 (ia64_gdbarch_init): Remove registering of deprecated functions that
3160 are no longer used. Add registration of new gdbarch functions.
3161 Remove registering deprecated_write_sp. Replace
3162 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3163 Delete set_gdbarch_deprecated_register_convertible(),
3164 set_gdbarch_deprecated_register_convert_to_virtual(), and
3165 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3166 set_gdbarch_deprecated_register_size(),
3167 set_gdbarch_deprecated_register_bytes(),
3168 set_gdbarch_pcregnum(),
3169 set_gdbarch_deprecated_register_byte(),
3170 set_gdbarch_deprecated_register_raw_size(),
3171 set_gdbarch_deprecated_max_register_raw_size(),
3172 set_gdbarch_deprecated_register_virtual_size(),
3173 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3174 Replace set_gdbarch_deprecated_extract_return_value() with
3175 set_gdbarch_extract_return_value(). Remove calls to:
3176 set_gdbarch_deprecated_saved_pc_after_call();
3177 set_gdbarch_deprecated_frame_chain(),
3178 set_gdbarch_deprecated_frame_saved_pc(),
3179 set_gdbarch_deprecated_frame_init_saved_regs(),
3180 set_gdbarch_deprecated_get_saved_register(),
3181 set_gdbarch_deprecated_call_dummy_words(),
3182 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3183 set_gdbarch_deprecated_init_extra_frame_info(),
3184 set_gdbarch_deprecated_frame_args_address(),
3185 set_gdbarch_deprecated_frame_locals_address(),
3186 and set_gdbarch_deprecated_dummy_write_sp().
3187 Add set_gdbarch_convert_register_p(),
3188 set_gdbarch_register_to_value(),
3189 set_gdbarch_value_to_register(),
3190 set_gdbarch_push_dummy_call(),
3191 set_gdbarch_frame_align(),
3192 set_gdbarch_unwind_dummy_id(),
3193 set_gdbarch_unwind_pc(),
3194 frame_unwind_append_sniffer(),
3195 frame_unwind_append_sniffer(),
3196 and frame_base_set_default().
3197
aede7613
CD
31982003-08-25 Chris Demetriou <cgd@broadcom.com>
3199
3200 * configure.tgt: Document need for special "mipsisa64" handling.
3201 (mipsisa64*-*-linux64): Handle as target linux64.
3202 (mipsisa64*-*-*): Handle as target embed64.
3203
43c3a82e
MC
32042003-08-18 Michael Chastain <mec@shout.net>
3205
3206 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3207 objfile bug.
3208
6564f77d
MK
32092003-08-24 Mark Kettenis <kettenis@gnu.org>
3210
2de139ba
MK
3211 * i387-tdep.h: Update copyright date.
3212 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3213
6564f77d
MK
3214 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3215 CFLAGS games to reflect reality.
3216
42cf1509
AC
32172003-08-24 Andrew Cagney <cagney@redhat.com>
3218
3219 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3220 GDB_MULTI_ARCH is always non-zero.
3221 * osabi.c (_initialize_gdb_osabi): Ditto.
3222 (gdbarch_init_osabi): Ditto.
3223 * sparc-tdep.c: Ditto for #if code.
3224
0485f6ad
MK
32252003-08-23 Mark Kettenis <kettenis@gnu.org>
3226
3227 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3228 Update comments.
3229 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3230 comments.
3231 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3232 x86_64_supply_fxsave.
3233 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3234 x86_64_supply_fxsave.
3235 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3236 x86_64_supply_fxsave.
3237
c7716133
AJ
32382003-08-23 Andreas Jaeger <aj@suse.de>
3239
3240 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3241 i387_supply_fxsave.
3242
ed504bdf
MK
32432003-08-23 Mark Kettenis <kettenis@gnu.org>
3244
3245 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3246 i387_supply_register.
3247 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3248 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3249 i387_supply_fsave.
3250 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3251 i387_supply_fxsave.
3252 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3253 i387_supply_fsave.
3254 * i386bsd-nat.c (supply_fpregset): Adjust call to
3255 i387_supply_fsave.
3256 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3257 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3258 supply_fpregset.
3259 (store_inferior_registers): Remove extraneous whitespace. Call
3260 i387_fill_fsave instead of fill_fpregset.
3261 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3262 (supply_fpregset): Likewise.
3263 * i386v4-nat.c (supply_fpregset): Adjust call to
3264 i387_supply_fsave.
3265 * i386-interix-nat.c (supply_fpregset): Adjust call to
3266 i387_supply_fsave.
3267 * i386-linux-nat.c (supply_fpregset): Adjust call to
3268 i387_supply_fsave.
3269 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3270 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3271 i387supply_fsave and i387_supply_fxsave.
3272 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3273 Incorporate code from `i387_supply_register.
3274 (i387_supply_register): Remove.
3275 (i387_supply_fxsave): Add `regnum' argument.
3276 Update comments.
3277 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3278 prototype.
3279 (i387_supply_register): remove prototype.
3280 Update comments.
a8f4cde1 3281
4be5d520
MC
32822003-08-22 Michael Chastain <mec@shout.net>
3283
3284 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3285 Add lines for files in gdb/testsuite/gdb.cp/* that are
3286 still not 8.3 unique.
3287
7ed85d26
DJ
32882003-08-22 Daniel Jacobowitz <drow@mvista.com>
3289
3290 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3291 TYPE_VPTR_FIELDNO is valid.
3292
eb0d3137
MK
32932003-08-19 Mark Kettenis <kettenis@gnu.org>
3294
3295 * utils.c (set_width_command): Remove prototypes.
3296 (set_screen_size): New prototype.
3297 (init_page_info): Simplify by fetching the screen size from
3298 Readline. Call set_screen_size.
3299 (set_screen_size): New function.
3300 (set_width): Add missing whitespace in comment.
3301 (set_width_command): Call set_screen_size.
3302 (set_height_command): New function.
3303 (initialize_utils): Fix formatting. Make "set height" command
3304 call set_height_command. Remove redundant code that turns off
3305 pagination if output isn't a terminal. Remove redundant call to
3306 set_width_command.
a8f4cde1 3307
7e6d0ac8
MK
33082003-08-22 Mark Kettenis <kettenis@gnu.org>
3309
3567a8ea
MK
3310 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3311 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3312 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3313 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3314 `case' keyword.
3315 (sparc64_register_info): Give the reister with number
3316 SPARC64_STATE_REGNUM a name.
3317 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3318 %asi and %ccr.
3319 (sparc64_push_dummy_call): Take BIAS into account when checking
3320 stcak alignment.
3321 (sparc_software_single_step): Remove assertions that check whether
3322 NPC and NNPC were zero.
3323 (sparc_supply_rwindow): Make public. Merge functionality with
3324 sparc64_supply_rwindow.
3325 (sparc_fill_rwindow): Make public. Merge functionality with
3326 sparc64_fill_rwindow.
3327 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3328 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3329 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3330 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3331 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3332
7e6d0ac8
MK
3333 * reggroups.c: Add whitespace after declarations of local
3334 variables in functions.
3335
72e5f484
MC
33362003-08-21 Michael Chastain <mec@shout.net>
3337
3338 * gdbtypes.h: Change array bound type from an int to enum.
3339
435ac228
AC
33402003-08-21 Andrew Cagney <cagney@redhat.com>
3341
3342 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3343 * config/sparc/tm-sparc.h: Ditto.
3344 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3345 unconditionally.
3346 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3347
0d0e1a63
MK
33482003-07-13 Mark Kettenis <kettenis@gnu.org>
3349
3350 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3351 (register_objfile_data, set_objfile_data, objfile_data): New
3352 prototypes.
3353 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3354 prototypes.
3355 (allocate_objfile): Call objfile_alloc_data.
3356 (free_objfile): Call objfile_free_data.
3357 (struct objfile_data): New.
3358 (struct objfile_data_registration): New.
3359 (struct objfile_data_registry): New.
3360 (objfile_data_registry): New variable.
3361 (register_objfile_data): New function.
3362 (objfile_alloc_data, objfile_free_data): New functions.
3363 (set_objfile_data, objfile_data): New functions.
3364 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3365 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3366 (_initialize_dwarf2_frame): New function and prototype.
3367
d90cf509
AC
33682003-08-21 Andrew Cagney <cagney@redhat.com>
3369
3370 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3371 a specific architecture.
3372 * arch-utils.h (set_architecture_from_arch_mach): Delete
3373 declaration.
3374 (target_architecture_hook): Delete declaration.
3375 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3376 (default_float_format): Assume GDB_MULTI_ARCH.
3377 (default_double_format): Assume GDB_MULTI_ARCH.
3378 (set_endian_from_file): Delete function.
3379 (arch_ok): Delete function.
3380 (set_arch): Delete function.
3381 (set_architecture_from_arch_mach): Delete function.
3382 (set_architecture_from_file): Delete function.
3383 (set_architecture): Assume GDB_MULTI_ARCH.
3384 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3385
8b39fe56
MK
33862003-08-21 Mark Kettenis <kettenis@gnu.org>
3387
3388 Rewrite FreeBSD/sparc64 native configuration.
3389 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3390 * sparc64fbsd-nat.c: New file.
3391 * sparc64fbsd-tdep.c: New file.
3392 * sparc64-tdep.c sparc64-tdep.h: New files.
3393 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3394 sparc64fbsd-tdep.o): New dependencies.
3395 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3396 and sparc64fbsd-tdep.c.
3397 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3398 * config/sparc/fbsd.mh: Remove copyright notice.
3399 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3400 sparcbsd-nat.o.
3401 * config/sparc/fbsd.mt: Remove copyright notice.
3402 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3403 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3404 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3405 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3406 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3407 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3408 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3409 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3410 "sparc/tm-sp64.h".
3411 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3412 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3413
a7f19c79
MC
34142003-08-21 Michael Chastain <mec@shout.net>
3415
3416 * symtab.h: Add doco on the space critical structures and
3417 some measurements of space usage.
3418
da08ea5b
MS
34192003-08-21 Michael Snyder <msnyder@redhat.com>
3420
3421 * tracepoint.c (trace_dump_command): Trace break address
3422 is subject to DECR_PC_AFTER_BREAK.
3423 (set_traceframe_context): Make "trace_line" an int.
3424 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3425
6df2bf50
MS
34262003-08-20 Michael Snyder <msnyder@redhat.com>
3427
3428 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3429 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3430 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3431 argument passing.
a8f4cde1 3432 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3433 functions, replace sh_push_dummy_call.
3434 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3435
0955bbf0
MC
34362003-08-20 Michael Chastain <mec@shout.net>
3437
3438 * gdbtypes.h (struct main_type): Rearrange to save space.
3439
260a4188
MS
34402003-08-20 Michael Snyder <msnyder@redhat.com>
3441
3442 * trad-frame.c: Comment typo fix.
3443
8baa6f92
KB
34442003-08-20 Michael Snyder <msnyder@redhat.com>
3445 Kevin Buettner <kevinb@redhat.com>
3446
3447 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3448 (frv_frame_init_saved_regs): Add declaration.
3449 (frame_extra_info): Add new field ``saved_regs''.
3450 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3451 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3452 Update frame related code.
3453 (frv_extract_struct_value_address): Adjust formatting.
3454 * Makefile.in (frv-tdep.o): Update dependencies.
3455 * config/frv/tm-frv.h (target_insert_watchpoint)
3456 (target_remove_watchpoint, target_insert_hw_breakpoint)
3457 (target_remove_hw_breakpoint): Delete these macros.
3458 (remote_insert_watchpoint, remote_remove_watchpoint)
3459 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3460 these declarations.
3461
87193939
MC
34622003-08-20 Michael Chastain <mec@shout.net>
3463
3464 * defs.h (ENUM_BITFIELD): New macro.
3465 * symtab.h (ENUM_BITFIELD): Use it.
3466 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3467
062103ba
SA
34682003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3469
3470 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3471
8b148df9
AC
34722003-08-18 Andrew Cagney <cagney@redhat.com>
3473
3474 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3475 * gdbarch.h, gdbarch.c: Re-generate.
3476 * infcall.c (call_function_by_hand): Adjust the SP by
3477 frame_red_zone_size before allocating any stack space.
3478 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3479 * x86-64-tdep.c (x86_64_frame_align): New function.
3480 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3481
3482 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3483 Remove code adjusting SP so that it skips over the Red Zone.
3484
954a4db8
MK
34852003-08-18 Mark Kettenis <kettenis@gnu.org>
3486
3487 * NEWS (New native configurations): Mention FreeBSD/amd64.
3488
1a241548
AC
34892003-08-18 Andrew Cagney <cagney@redhat.com>
3490
3491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3492 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3493 "m68k_frame_p".
3494 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3495
f82b2acd
MK
34962003-08-18 Mark Kettenis <kettenis@gnu.org>
3497
3498 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3499
4056d258
ML
35002003-08-18 Michal Ludvig <mludvig@suse.cz>
3501
3502 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3503 Define.
3504 * i386-linux-nat.c: Include "linux-nat.h".
3505 (child_post_startup_inferior): New function.
a8f4cde1 3506
99ab4326
MK
35072003-08-18 Mark Kettenis <kettenis@gnu.org>
3508
3509 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3510 at the start of a frameless function. This probably fixes PR
3511 backtrace/1338.
3512
c8d5f0d6
MC
35132003-08-17 Michael Chastain <mec@shout.net>
3514
3515 * symfile.c (find_sym_fns): Remove special case for apollo target.
3516
9016a515
DJ
35172003-08-17 Daniel Jacobowitz <drow@mvista.com>
3518
3519 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3520 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3521 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3522 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3523 (linux_supports_tracevforkdone): New function.
3524 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3525 TRACEVFORKDONE.
3526 (child_follow_fork): Handle vfork.
3527 (linux_handle_extended_wait): Likewise. Also handle exec.
3528 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3529 * NEWS: Mention fork tracing.
3530
c538c11c
DJ
35312003-08-17 Daniel Jacobowitz <drow@mvista.com>
3532
3533 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3534
4de4c07c
DJ
35352003-08-17 Daniel Jacobowitz <drow@mvista.com>
3536
3537 * Makefile.in (i386-linux-nat.o): Update dependencies.
3538 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3539 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3540 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3541 * i386-linux-nat.c: Include "linux-nat.h".
3542 (child_post_startup_inferior): New function.
3543 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3544 * infptrace.c (kill_inferior): Wrap in #ifdef.
3545 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3546 attaching to each LWP.
3547 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3548 (init_lin_lwp_ops): Fill in some more operations.
3549 * linux-nat.h (linux_enable_event_reporting)
3550 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3551 prototypes.
3552 * linux-nat.c (linux_enable_event_reporting): New function.
3553 (child_post_attach, linux_child_post_startup_inferior)
3554 (child_post_startup_inferior, child_follow_fork)
3555 (linux_handle_extended_wait, kill_inferior): New functions.
3556
7996bcec
AC
35572003-08-16 Andrew Cagney <cagney@redhat.com>
3558
3559 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3560 * gdbarch.h, gdbarch.c: Re-generate.
3561
3d48a7a0
MK
35622003-08-16 Mark Kettenis <kettenis@gnu.org>
3563
3564 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3565
7989c619
AC
35662003-08-16 Andrew Cagney <cagney@redhat.com>
3567
3568 * NEWS: Mention that "set prompt-escape-char" was deleted.
3569 * top.c (get_prompt_1): Delete function.
3570 (gdb_prompt_escape):
3571 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3572 prompt-escape-char" command.
3573 (MAX_PROMPT_SIZE): Delete macro.
3574 (get_prompt): Simplify, do not call get_prompt_1.
3575
07978cd8
AC
35762003-08-16 Andrew Cagney <cagney@redhat.com>
3577
3578 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3579 -Werror. -Wformat-nonliteral problems.
3580
3ff7cf9e
JB
35812003-08-15 J. Brobecker <brobecker@gnat.com>
3582
3583 Further multiarching work mostly for hppa64-*-hpux11:
3584 * hppa-tdep.h: New file.
3585 * hppa-tdep.c: #include hppa-tdep.c.
3586 (hppa32_num_regs): Renamed from hppa_num_regs.
3587 (hppa64_num_regs): New constant.
3588 (hppa64_call_dummy_breakpoint_offset): New constant.
3589 (hppa32_call_dummy_length): New constant.
3590 (hppa64_call_dummy_length): New constant.
3591 (hppa32_stack_align): Make name 32bit explicit.
3592 (hppa32_register_virtual_type): Likewise.
3593 (hppa32_extract_return_value): Likewise.
3594 (hppa32_use_struct_convention): Likewise.
3595 (hppa32_store_return_value): Likewise.
3596 (hppa64_register_virtual_type): New function.
3597 (hppa64_extract_return_value): New function.
3598 (hppa64_use_struct_convention): New function.
3599 (hppa64_store_return_value): New function.
3600 (hppa_frame_locals_address): Remove declaration, function does
3601 not exist anymore.
3602 (hppa_register_byte): Add support for PA64 ABI.
3603 (hppa_gdbarch_init): Add support for PA64 ABI.
3604 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3605 Make name 32bit explicit.
3606 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3607 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3608 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3609 (hppa64_hpux_frame_base_before_sigtramp): New function.
3610 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3611 * config/pa/tm-hppa64.h: Remove macros that are no longer
3612 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3613 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3614 * config/pa/tm-hppah.h: Update function calls in macros
3615 following the function renaming in hppa-hpux-tdep.c.
3616 * Makefile.in (hppa_tdep_h): New variable.
3617 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3618
5d05ca6d
MS
36192003-08-14 Michael Snyder <msnyder@redhat.com>
3620
3621 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3622
37ba2569
JB
36232003-08-13 J. Brobecker <brobecker@gnat.com>
3624
3625 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3626 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3627 routine.
3628
aed7f26a
MS
36292003-08-13 Michael Snyder <msnyder@redhat.com>
3630
3631 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3632 (frv_saved_pc_after_call): Use deprecated ftype.
3633 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3634 (frv_remote_translate_xfer_address): Remove.
3635 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3636
752d4ac1
JB
36372003-08-13 J. Brobecker <brobecker@gnat.com>
3638
3639 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3640 initialization after the common gdbarch initialization, not before.
3641
1426ac1d
JB
36422003-08-13 J. Brobecker <brobecker@gnat.com>
3643
3644 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3645 (ADDR_BITS_REMOVE): Remove, redundant.
3646
b6fbdd1d
JB
36472003-08-13 J. Brobecker <brobecker@gnat.com>
3648
3649 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3650 gdbarch method to clear the 2 low bits of text addresses.
3651
44160db3
AC
36522003-08-12 Andrew Cagney <cagney@redhat.com>
3653
3654 * Makefile.in (dsrec.o): Update dependencies.
3655 * dsrec.c: Include "gdb_assert.h".
3656 (make_srec): Use snprintf instead of sprintf, use a literal format
3657 string.
3658
bcf7d3ca
AC
36592003-08-12 Andrew Cagney <cagney@redhat.com>
3660
3661 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3662 FRAME_OBSTACK_ZALLOC.
3663
49ed40de
KB
36642003-08-12 Kevin Buettner <kevinb@redhat.com>
3665
3666 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3667 SSE registers.
3668
b246147c
MK
36692003-08-10 Mark Kettenis <kettenis@gnu.org>
3670
3671 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3672 amd64fbsd_sc_reg_offset): Add extern declarations.
3673 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3674 declarations.
3675
d95fdc0d
BE
36762003-08-11 Ben Elliston <bje@wasabisystems.com>
3677
3678 * MAINTAINERS (write after approval): Update my mail address.
3679
cf6a0e73
AC
36802003-08-10 Andrew Cagney <cagney@redhat.com>
3681
3682 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3683
f837910f
MK
36842003-08-10 Mark Kettenis <kettenis@gnu.org>
3685
e2dbbd2d
MK
3686 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3687 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3688 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3689 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3690 i386bsd_sc_reg_offset): Add extern declarations.
3691 * i386obsd-nat.c: Include "i386-tdep.h"
3692 (_initialize_i386obsd_nat): Remove extern declarations.
3693 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3694 declarations.
3695 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3696 declarations.
3697
f837910f
MK
3698 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3699 instead of frame_read_register.
3700 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3701 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3702 SP_REGNUM.
3703 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3704 instead of frame_unwind_unsigned_register. Use
3705 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3706 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3707 instead of read_register. Use builtin_type_void_data_ptr instead
3708 of builtin_type_void_func_ptr when extracting the address of the
3709 jmp_buf.
3710 (i386_extract_return_value, i386_store_return_value,
3711 i386_pseudo_register_read, i386_pseudo_register_write): Use
3712 register_size instead REGISTER_RAW_SIZE.
3713
edcf254d
AC
37142003-08-10 Andrew Cagney <cagney@redhat.com>
3715
3716 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3717 sprintf. Make "name" constant.
3718
26604a34
MK
37192003-08-10 Mark Kettenis <kettenis@gnu.org>
3720
192285c6
MK
3721 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3722 instead of frame_read_register.
f837910f
MK
3723 (i387_print_float_info): Use get_frame_register and
3724 get_frame_register_unsigned instead of frame_register_read.
192285c6 3725
f0925262
MK
3726 * i386fbsd-nat.c: Include "i386-tdep.h".
3727 (child_resume): Make `eflags' an ULONGEST. Use
3728 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3729 instead of register_read and register_write.
3730
a144416f
MK
3731 * i386bsd-nat.c (fetch_inferior_registers,
3732 store_inferior_registers): Don't use && at the end of a line.
3733 (_initialize_i386bsd_nat): Fix typo.
3734
fec74868
MK
3735 * frame.c (_initialize_frame): Add missing backslash.
3736
87232496
MK
3737 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3738 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3739 and supply_register instead of manipulating the register buffer
3740 directly.
3741
c9b9de0b
MK
3742 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3743 * config/i386/nm-i386sol2.h
3744 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3745
26604a34
MK
3746 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3747 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3748 instructions that GCC likes to mingle into the prologue. Fixes
3749 gdb/1253 and gdb/1255.
3750
25d29d70
AC
37512003-08-09 Andrew Cagney <cagney@redhat.com>
3752
3753 Fix GDB PR cli/926.
3754 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3755 * command.h (add_setshow_uinteger_cmd): Declare.
3756 * frame.c (set_backtrace_cmd): New function.
3757 (show_backtrace_cmd): New function.
3758 * frame.c (_initialize_frame): Replace "set/show
3759 backtrace-below-main" with "set/show backtrace past-main". Add
3760 command "set/show backtrace limit".
3761 (backtrace_past_main): Rename "backtrace_below_main".
3762 (backtrace_limit): New variable.
3763 (get_prev_frame): Update. Check the backtrace_limit.
3764
9ebf4acf
AC
37652003-08-09 Andrew Cagney <cagney@redhat.com>
3766
3767 * defs.h (xstrprintf): Declare.
3768 * utils.c (xstrprintf): New function.
3769 * breakpoint.c (insert_breakpoints): Replace sprintf and
3770 non-literal format strings, with xstrprintf and cleanups.
3771 (delete_breakpoint,breakpoint_re_set): Ditto.
3772 (commands_command, insert_breakpoints): Ditto.
3773 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3774 (break_at_finish_command_1): Ditto.
3775
3771659b
AC
37762003-08-09 Andrew Cagney <cagney@redhat.com>
3777
3778 * MAINTAINERS (language support): List Adam Fedor as Objective C
3779 maintainer.
3780
b4263afa
JB
37812003-08-08 J. Brobecker <brobecker@gnat.com>
3782
3783 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3784 are now multiarched.
3785
d84defb1
JB
37862003-08-08 J. Brobecker <brobecker@gnat.com>
3787
3788 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3789 longer necessary now that hppa64 is partially multiarch'ed.
3790
f786f615
AC
37912003-08-08 Andrew Cagney <cagney@redhat.com>
3792
3793 * interps.c (interp_set): Check for a NULL "old_interp".
3794
c938e9b0
L
37952003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3796
3797 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3798 (install-only): Support DESTDIR.
3799 (uninstall): Likewise.
3800 (install-gdbtk): Likewise.
3801
9a146a11
EZ
38022003-08-08 Elena Zannoni <ezannoni@redhat.com>
3803
3804 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3805 contains something meaningful at all times.
3806
3807Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 3808
62599e99 3809 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 3810
56296155
BC
3811Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3812
62599e99 3813 * MAINTAINERS (write after approval): Added self.
56296155 3814
9710e734
AC
38152003-08-07 Andrew Cagney <cagney@redhat.com>
3816
3817 * inferior.h (AT_SYMBOL): Define.
3818 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3819 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3820 * mips-tdep.c (mips_call_dummy_address): Delete function.
3821 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3822 set call_dummy_address.
3823
98b3ab73
AC
38242003-08-07 Andrew Cagney <cagney@redhat.com>
3825
3826 * language.c (op_error): Delete function.
3827 (binop_type_check): Delete function.
3828 * language.h (type_op_error, range_op_error): Delete macros.
3829 (op_error): Delete declaration.
3830
2fcf52f0
AC
38312003-08-07 Andrew Cagney <cagney@redhat.com>
3832
3833 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3834
abd4220e 38352003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 3836
abd4220e 3837 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 3838 (x86_64_push_arguments): Skip the red zone.
abd4220e 3839
9dd5f34f
AC
38402003-08-05 Andrew Cagney <cagney@redhat.com>
3841
3842 * reggroups.c (reggroup_next): Check for the final entry.
3843
e5e78edc
AC
38442003-08-04 Andrew Cagney <cagney@redhat.com>
3845
ab4e3d93
AC
3846 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3847 * cli/cli-script.c (define_command): Call query directly, instead
3848 of passing it a buffer.
3849 * ocd.c (ocd_error): Pass error a constant format string.
3850 * remote-mips.c (mips_error): Use fputs_filtered.
3851
1062ca82
AC
3852 * solib-svr4.c (_initialize_svr4_solib): Update
3853 register_gdbarch_data call.
3854 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3855
fcc1c85c
AC
3856 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3857 (register_gdbarch_data): Delete "free" parameter. Update
3858 comments.
3859 * gdbarch.h, gdbarch.c: Re-generate.
3860 * reggroups.c (_initialize_reggroup): Update.
3861 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3862 * frame-base.c (_initialize_frame_base): Update.
3863 * frame-unwind.c (_initialize_frame_unwind): Update.
3864 * user-regs.c (_initialize_user_regs): Update.
3865 * remote.c (_initialize_remote): Update.
3866 * regcache.c (_initialize_regcache): Update.
3867
116f06ea
AC
3868 * regcache.c (xfree_regcache_descr): Delete function.
3869 (_initialize_regcache): Update call to register_gdbarch_data.
3870 (init_regcache_descr, init_legacy_regcache_descr): Use
3871 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3872
e5e78edc
AC
3873 * remote.c (free_remote_state): Delete function.
3874 (_initialize_remote): Update register_gdbarch_data.
3875 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3876 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3877
6c7d17ba
AC
38782003-08-04 Andrew Cagney <cagney@redhat.com>
3879
3880 * reggroups.c (struct reggroup_el): Define.
3881 (struct reggroups): Delete field "nr_group". Replace array
3882 "group" with a "first" to "last" linked list.
3883 (reggroups_init): Update. Allocate using gdbarch's obstack.
3884 (reggroups_free): Delete function.
3885 (add_group): Update. Add "el" parameter.
3886 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3887 (default_groups): Update.
3888 (reggroup_next): Replace reggroups.
3889 (reggroups_dump): Update.
3890 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3891 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3892 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3893
89b7795b
DJ
38942003-08-04 Daniel Jacobowitz <drow@mvista.com>
3895
3896 * Makefile.in (tui-interp.o): Update dependencies.
3897
306d9ac5
DC
38982003-08-04 David Carlton <carlton@kealia.com>
3899
3900 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3901 to internal_error call.
3902 * source.c (forward_search_command): Add "%s" format argument.
3903 (reverse_search_command): Ditto.
3904 * top.c (quit_confirm): Ditto.
3905 * cli/cli-setshow.c (do_setshow_command): Ditto.
3906 * cp-valprint.c (cp_print_class_method): Replace
3907 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3908 (cp_print_class_member): Ditto.
3909 * event-top.c (command_line_handler): Ditto.
3910 * linux-proc.c (linux_info_proc_cmd): Ditto.
3911 * p-typeprint.c (pascal_type_print_base): Ditto.
3912 * p-valprint.c (pascal_object_print_class_method): Ditto.
3913 (pascal_object_print_class_member): Ditto.
3914 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3915 * remote.c (remote_cisco_section_offsets): Ditto.
3916 * top.c (command_line_input): Ditto.
3917 * utils.c (vwarning,error_stream,quit): Ditto.
3918 * valprint.c (print_floating,print_binary_chars)
3919 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3920
57bfe177
AC
39212003-08-04 Andrew Cagney <cagney@redhat.com>
3922
3923 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3924
e546b999
AC
39252003-08-02 Andrew Cagney <cagney@redhat.com>
3926
3927 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3928 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3929 amd64fbsd-nat.c.
3930
91092ee5
AC
39312003-08-02 Andrew Cagney <cagney@redhat.com>
3932
3933 * Makefile.in: Update all dependencies and definitions.
3934
889f28e2
AF
39352003-08-02 Adam Fedor <fedor@gnu.org>
3936
3937 * linespec.c (is_objc_method_format): New function
3938 (decode_line_1, locate_first_half): Use it.
3939 Fixes PR objc/1298
3940
880bc914
AC
39412003-08-01 Andrew Cagney <cagney@redhat.com>
3942
3943 * NEWS: Mention that m32r is multi-arch.
3944 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3945 * configure.tgt: Recognize m32r-*-*.
3946 * config/m32r/tm-m32r.h: Delete file.
3947 * config/m32r/m32r.mt: New file.
a8f4cde1 3948 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
3949 gethostname succeeds, in order to avoid a compilation
3950 warning.
3951 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3952 compiler warning.
3953
19f59343
MS
39542003-08-01 Michael Snyder <msnyder@redhat.com>
3955
3956 * sh-tdep.c (sh_frame_align): New gdbarch method.
3957 (sh_gdbarch_init): Set up frame_align method.
3958
4e7d7511
MS
39592003-07-31 Michael Snyder <msnyder@redhat.com>
3960
3961 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3962 which is already covered by the new frames infrastructure.
3963
63022984
AC
39642003-07-31 Andrew Cagney <cagney@redhat.com>
3965
3966 * user-regs.c (struct user_reg): Add "next" link.
3967 (struct user_regs): Replace "user" with "first" and "last" links.
3968 (append_user_reg): Add pre-allocated "reg" parameter.
3969 (builtin_user_regs): Provide initial value for "last".
3970 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3971 (user_regs_init): Allocate memory from the gdbarch obstack.
3972 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3973 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3974 linked list.
3975 (usernum_to_user_reg): New function.
3976 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3977 (value_of_user_reg): Use usernum_to_user_reg.
3978 (user_regs_free): Delete function.
3979 (_initialize_user_regs): Update register_gdbarch_data call.
3980
7cf6e574
DJ
39812003-07-31 Daniel Jacobowitz <drow@mvista.com>
3982
3983 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3984
c48a845b
MS
39852003-07-30 Michael Snyder <msnyder@redhat.com>
3986
4e7d7511 3987 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3988 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3989 value_being_returned.
3990 * infcmd.c (print_return_value): Pass zero as struct_addr.
3991 * values.c (value_being_returned): If struct_addr is passed,
3992 use it instead of trying to recover it from the inferior.
3993
f0d8db19
KB
39942003-07-30 Kevin Buettner <kevinb@redhat.com>
3995
3996 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3997 the prologue analyzer won't need to attempt to extract the pc
3998 value from the woefully incomplete dummy frame.
3999 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4000 possible. Disable code which modifies the frame.
4001
e5c113a1
AC
40022003-07-28 Andrew Cagney <cagney@redhat.com>
4003
4004 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4005 to level 2.
4006 (annotate_breakpoints_table, annotate_record): Ditto.
4007 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4008 (annotate_field_name_end, annotate_field_value): Ditto.
4009 (annotate_field_end, annotate_frame_source_begin): Ditto.
4010 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4011 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4012 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4013 (annotate_frame_address_end, annotate_frame_address): Ditto.
4014 (annotate_frame_args, annotate_frame_end): Ditto.
4015 (annotate_frame_where, annotate_arg_begin): Ditto.
4016 (annotate_arg_name_end, annotate_arg_value): Ditto.
4017 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4018 (annotate_function_call, annotate_signal_name): Ditto.
4019 (annotate_signal_string, annotate_signal_name_end): Ditto.
4020 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4021 (annotate_value_begin, annotate_value_history_value): Ditto.
4022 (annotate_value_history_end, annotate_value_end): Ditto.
4023 (annotate_display_begin, annotate_display_number_end): Ditto.
4024 (annotate_display_format, annotate_display_expression): Ditto.
4025 (annotate_display_expression_end, annotate_display_value): Ditto.
4026 (annotate_display_end, annotate_array_section_begin): Ditto.
4027 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4028 (annotate_elt, annotate_array_section_end): Ditto.
4029
bb1db049
AC
40302003-07-28 Andrew Cagney <cagney@redhat.com>
4031
4032 * regcache.c (struct regcache_descr): Update comments on
4033 nr_raw_registers.
4034 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4035 sizeof_raw_register_valid_p.
4036 (init_regcache_descr): Set nr_raw_registers and
4037 sizeof_raw_register_valid_p before calling
4038 init_legacy_regcache_descr.
4039
20e6603c
AC
40402003-07-28 Andrew Cagney <cagney@redhat.com>
4041
4042 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4043 MOD NUM_REGS.
4044
db742940
DJ
40452003-07-28 Daniel Jacobowitz <drow@mvista.com>
4046
4047 * thread.c (info_threads_command): Use get_selected_frame ().
4048 Check that there is at least one non-sentinel frame.
4049
ce7f4371
SC
40502003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4051
4052 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4053 (m68hc11_pop_frame): Remove.
4054 (m68hc11_frame_saved_pc): Remove.
4055 (m68hc11_frame_chain): Remove.
4056 (m68hc11_frame_init_saved_regs): Remove.
4057 (m68hc11_init_extra_frame_info): Remove.
4058 (m68hc11_store_struct_return): Remove.
4059 (m68hc11_saved_pc_after_call): Remove.
4060
1ea653ae
SC
40612003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4062
4063 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4064 frame unwind information.
4065 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4066 and adapted for frame unwinding.
4067 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4068 (m68hc11_unwind_pc): New function.
4069 (m68hc11_frame_unwind_cache): New function to analyze frames.
4070 (m68hc11_frame_this_id): New function to create new frame struct.
4071 (m68hc11_frame_prev_register): New function to unwind a register from
4072 the frame.
4073 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4074 (m68hc11_frame_p): New function for the above.
4075 (m68hc11_frame_base_address): New function to return fp of frame.
4076 (m68hc11_frame_args_address): Update for frame.
4077 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4078 (m68hc11_unwind_sp): New function.
4079 (m68hc11_unwind_dummy_id): New function.
4080 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4081 calls.
4082
c8a7f6ac
SC
40832003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4084
4085 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4086 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4087 when we are beyond the current pc.
4088
3dc990bf
SC
40892003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4090
4091 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4092 from m68hc11_push_arguments.
4093 (m68hc11_push_arguments): Remove.
4094 (m68hc11_push_return_address): Remove.
4095 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4096 handlers; remove deprecated_extra_stack_alignment_needed.
4097
222e5d1d
AC
40982003-07-27 Andrew Cagney <cagney@redhat.com>
4099
4100 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4101 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4102 REAL_PC and not the pointer.
4103 * hppa-hpux-tdep.c: Include frame.h
4104
a7e9a47e
AC
41052003-07-27 Andrew Cagney <cagney@redhat.com>
4106
4107 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4108 GDB_MULTI_ACH_PARTIAL.
4109
7e3dd49e
AC
41102003-07-27 Andrew Cagney <cagney@redhat.com>
4111
4112 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4113 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4114 operator at start and not end of line.
4115 (decode_prologue): Ditto.
4116 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4117 frame_unwind_register_unsigned instead of
4118 frame_unwind_unsigned_register.
4119 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4120 read_register.
4121 (m32r_push_dummy_call): Use register_size instead of
4122 REGISTER_RAW_SIZE.
4123 (m32r_frame_sniffer): Replace m32r_frame_p.
4124 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4125 * m32r-rom.c (report_transfer_performance): Delete extern
4126 declaration.
4127 (m32r_load, m32r_upload_command): Use print_transfer_performance
4128 instead of report_transfer_performance.
4129 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4130 / add_show_from_set.
4131
0880807f
AC
41322003-07-26 Andrew Cagney <cagney@redhat.com>
4133
4134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4135 store_return_value and extract_struct_value_address.
4136
64ae9269
DJ
41372003-07-26 Daniel Jacobowitz <drow@mvista.com>
4138
4139 PR c++/1267
4140 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4141 NULL, default to the section containing PC.
4142
e286caf2
SC
41432003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4144
4145 * NEWS: Mention "regs" deprecated for m68hc11 too.
4146
4147 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4148 (m68hc11_print_register): New function to print out one register.
4149 (m68hc11_print_registers_info): New function to print registers.
4150 (show_regs): Deprecate and use the above.
4151 (m68hc11_gdbarch_init): Install the print_registers_info.
4152
705b278b
JJ
41532003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4154
4155 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4156 that we have a SIGTRAP before returning non-zero.
4157
63cd4198
EZ
41582003-07-23 Michal Ludvig <mludvig@suse.cz>
4159 Elena Zannoni <ezannoni@redhat.com>
4160
a8f4cde1 4161 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4162 find_function_start_sal() returns empty record.
4163
6926787d
AS
41642003-07-23 Andreas Schwab <schwab@suse.de>
4165
4166 * ia64-tdep.c (ia64_print_insn): New function.
4167 (ia64_gdbarch_init): Set print_insn to it.
4168 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4169 deprecated_tm_print_insn_info.
4170
708cc1b6
MS
41712003-07-22 Michael Snyder <msnyder@redhat.com>
4172
4173 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4174 handle 8-bit returns (long long).
4175 (h8300h_extract_return_value): Ditto.
4176 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4177
aebd7893
AC
41782003-07-22 Andrew Cagney <cagney@redhat.com>
4179
4180 * gdbarch.c Include "gdb_obstack.h".
4181 (struct gdbarch): Add an "obstack".
4182 (alloc_gdbarch_data): Allocate the gdbarch data using
4183 GDBARCH_OBSTACK_CALLOC.
4184 (free_gdbarch_data): Delete function.
4185 (gdbarch_obstack_zalloc): New function.
4186 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4187 Assert that the architecture is not initialized.
4188 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4189 vector from the obstack.
4190 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4191 architecture obstack.
4192 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4193 (set_gdbarch_data): Assert that the data is not initialized.
4194 (struct gdbarch_data): Delete member "free".
4195 (register_gdbarch_data): Do not initialize "free".
4196 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4197
153721e6
AC
41982003-07-22 Andrew Cagney <cagney@redhat.com>
4199
4200 * configure.in (build_warnings): Add -Wformat-nonliteral.
4201 * configure: Re-generate.
4202
c193f044 42032003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4204
4205 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4206
c3228f12
EZ
42072003-07-22 Elena Zannoni <ezannoni@redhat.com>
4208
4209 * findvar.c (read_var_value): Remove case for thread local storage
4210 variables. It is now entirely handled by the dwarf2 location
4211 expression code.
4212 * printcmd.c (address_info): Ditto.
4213 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4214 enumeration value.
4215 (struct symbol): Remove objfile field, which was used by
4216 LOC_THREAD_LOCAL_STATIC only.
4217 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4218 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4219 usage of objfile pointer.
4220 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4221 thread local variables.
4222 Add include of objfiles.h.
4223 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4224 storage variables.
4225 * Makefile.in (dwarf2loc.o): Update dependencies.
4226
aef9bcd2
AC
42272003-07-22 Andrew Cagney <cagney@redhat.com>
4228
4229 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4230 get_frame_base.
4231 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4232 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4233 (struct value): Add opaque declaration.
4234 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4235
d95a8903
AC
42362003-07-21 Andrew Cagney <cagney@redhat.com>
4237
4238 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4239 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4240
4db73d49
SC
42412003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4242
a8f4cde1 4243 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4244 regcache_cooked_read_unsigned instead of read_register.
4245 (m68hc11_saved_pc_after_call): Likewise.
4246 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4247 instead of write_register.
4248 (m68hc11_register_type): New function.
4249 (m68hc11_register_virtual_type): Remove.
4250 (m68hc11_store_return_value): Convert to use the regcache.
4251 (m68hc11_extract_struct_value_address): Likewise.
4252 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4253 m68hc11_register_type; undeprecate store_return_value and
4254 extract_struct_value_address.
4255
ef2b8fcd
SC
42562003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4257
4258 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4259 and translate to use regcache.
4260 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4261
625b0b97
AC
42622003-07-18 Andrew Cagney <cagney@redhat.com>
4263
4264 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4265 * gdbarch.h, gdbarch.c: Re-generate.
4266 * i386-tdep.c (i386_gdbarch_init): Do not set
4267 DWARF2_BUILD_FRAME_INFO.
4268 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4269 unconditionally.
4270 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4271 DWARF2_BUILD_FRAME_INFO.
4272
22b0d388
AC
42732003-07-18 Andrew Cagney <cagney@redhat.com>
4274
4275 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4276 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4277
1ce5d6dd
AC
42782003-07-18 Andrew Cagney <cagney@redhat.com>
4279
4280 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4281 frame_unwind_address_in_block, instead of frame_pc_unwind.
4282 (dwarf2_frame_cache): Ditto.
4283
e6e5e94c
AC
42842003-07-18 Andrew Cagney <cagney@redhat.com>
4285
4286 * user-regs.h (struct gdbarch): Declare opaque.
4287 * ui-out.h (struct ui_file): Declare opaque.
4288 * dwarf2-frame.h (struct frame_info): Declare opaque.
4289
5483d879
KW
42902003-07-18 Kris Warkentin <kewarken@qnx.com>
4291
4292 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4293 #include "...".
4294 (procfs_meminfo): Change strerror to safe_strerror.
4295 (procfs_can_run): Remove K&R badness.
4296
278a7cf7
MS
42972003-07-17 Michael Snyder <msnyder@redhat.com>
4298
4299 * remote-sim.c: Comment typo fix.
4300
606e3b82
AC
43012003-07-17 Andrew Cagney <cagney@redhat.com>
4302
4303 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4304 configure.
4305 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4306 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4307 GDB_MULTI_ARCH_PARTIAL.
4308
c43af07c
EZ
43092003-07-17 Elena Zannoni <ezannoni@redhat.com>
4310
4311 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4312 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4313 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4314
3b85b0f1
TR
43152003-07-16 Theodore A. Roth <troth@openavr.org>
4316
4317 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4318 found.
4319 (avr_frame_unwind_cache): Don't unwind FP for main.
4320 Update a comment.
4321 Save the computed prev_sp.
4322 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4323 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4324 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4325
336d1bba
AC
43262003-07-16 Andrew Cagney <cagney@redhat.com>
4327
4328 * frame-base.h (frame_base_p_ftype): Delete definition.
4329 (frame_base_append_predicate): Delete declaration.
4330 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4331 (frame_unwind_append_predicate): Delete declaration.
4332 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4333 (append_predicate): Delete parameter "p".
4334 (frame_unwind_append_predicate): Delete function.
4335 (frame_unwind_append_sniffer): Update call to append_predicate.
4336 (frame_unwind_free): Delete function.
4337 (_initialize_frame_unwind): Pass NULL as "free" to
4338 register_gdbarch_data.
4339 (frame_unwind_init): Append the dummy_frame_sniffer.
4340 (frame_unwind_find_by_frame): Simplify.
4341 * frame-base.c (struct frame_base_table): Delete field "p".
4342 (append_predicate): Delete parameter "p".
4343 (frame_base_append_predicate): Delete function.
4344 (frame_base_append_sniffer): Update call to append_predicate.
4345 (frame_base_free): Delete function.
4346 (frame_base_find_by_frame): Simplify.
4347 (_initialize_frame_base): Pass NULL as "free" to
4348 register_gdbarch_data.
4349 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4350 (x86_64_sigtramp_frame_sniffer): Replace
4351 "x86_64_sigtramp_frame_p".
4352 (x86_64_init_abi): Set the frame unwind sniffers.
4353 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4354 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4355 (m68k_gdbarch_init): Set the frame unwind sniffers.
4356 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4357 "i386_sigtramp_frame_p".
4358 (i386_frame_sniffer): Replace "i386_frame_p".
4359 (i386_gdbarch_init): Set the frame unwind sniffers.
4360 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4361 (avr_gdbarch_init): Set the frame unwind sniffers.
4362 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4363 "alpha_sigtramp_frame_p"
4364 (alpha_heuristic_frame_sniffer): Replace
4365 "alpha_heuristic_frame_p".
4366 (alpha_gdbarch_init): Set the frame unwind sniffers.
4367 (alpha_dwarf2_init_abi): Ditto.
4368 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4369 "alpha_debug_frame_p".
4370 (alpha_mdebug_frame_base_sniffer): Replace
4371 "alpha_mdebug_frame_base_p".
4372 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4373 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4374 (d10v_gdbarch_init): Set the frame unwind sniffer.
4375 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4376 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4377 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4378 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4379 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4380 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4381
48db5a3c
CV
43822003-07-16 Michael Snyder <msnyder@redhat.com>
4383
4384 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4385 should go thru sh_dsp_register_sim_regno, else the dsp regs
4386 will not get the right values.
4387
43882003-07-16 Corinna Vinschen <vinschen@redhat.com>
4389
4390 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4391 deprecated_store_floating by call to store_typed_floating.
4392 (sh_sh4_register_convert_to_raw): Substitute call to
4393 deprecated_extract_floating by call to extract_typed_floating.
4394
43952003-07-16 Corinna Vinschen <vinschen@redhat.com>
4396
4397 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4398
43992003-07-16 Corinna Vinschen <vinschen@redhat.com>
4400
4401 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4402 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4403 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4404 as possible.
4405 (do_pseudo_register): Remove.
4406 (sh_push_dummy_code): New function.
4407 (sh64_store_struct_return): Rename from sh_store_struct_return.
4408 Only called for sh64 now.
4409 (sh_extract_struct_value_address): Regcache'ify.
4410 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4411 and accomodate new tasks.
4412 (sh64_push_return_address): Rename from sh_push_return_address.
4413 Only called for sh64 now.
4414 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4415 Regcache'ify.
4416 (sh3e_sh4_extract_return_value): Regcache'ify.
4417 (sh_default_store_return_value): Ditto.
4418 (sh3e_sh4_store_return_value): Ditto.
4419 (sh_default_register_byte): Remove.
4420 (sh_sh4_register_byte): Remove.
4421 (sh_default_register_raw_size): Remove.
4422 (sh_sh4_register_raw_size): Remove.
4423 (sh_register_virtual_size): Remove.
4424 (sh_sh3e_register_virtual_type): Remove.
4425 (sh_sh3e_register_type): New function.
4426 (sh_sh4_register_virtual_type): Remove.
4427 (sh_sh4_register_type): New function.
4428 (sh_default_register_virtual_type): Remove.
4429 (sh_default_register_type): New function.
4430 (do_fv_register_info): Add parameters to accomodate call from
4431 sh_print_registers_info.
4432 (do_dr_register_info): Ditto.
4433 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4434 Add parameters to accomodate call from sh_print_registers_info.
4435 (sh_do_fp_register): Ditto.
4436 (sh64_do_pseudo_register): Call do_dr_register_info,
4437 do_fv_register_info and sh_do_fp_register with default parameters.
4438 (sh_do_register): Add parameters to accomodate call from
4439 sh_print_registers_info.
4440 (sh_print_register): Ditto.
4441 (sh_print_registers_info): Rename from sh_do_registers_info.
4442 Add parameters to be used as gdbarch_print_registers_info
4443 implementation. Accomodate removed do_pseudo_register function
4444 pointer.
4445 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4446 function pointer. Call sh_print_register with default parameters.
4447 (sh64_do_registers_info): Call sh_print_registers_info instead of
4448 sh_do_registers_info.
4449 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4450 detection of deprecated vs. non-deprecated functionality.
4451 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4452 function pointer assignments by direct function calls.
4453
e8a89fe2
AC
44542003-07-15 Andrew Cagney <cagney@redhat.com>
4455
4456 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4457 (frame_register_unwind, create_new_frame): Ditto.
4458 (legacy_get_prev_frame, get_frame_type): Ditto.
4459 (get_frame_base_address): Use frame_base_find_by_frame.
4460 (get_frame_locals_address): Use frame_base_find_by_frame.
4461 (get_frame_args_address): Use frame_base_find_by_frame.
4462 * frame-base.h (frame_base_sniffer_ftype): Declare.
4463 (frame_base_append_sniffer): Declare.
4464 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4465 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4466 (frame_base_append_sniffer): New function.
4467 (frame_base_append_predicate): Add a NULL sniffer.
4468 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4469 (struct frame_base_table): Add "sniffer".
4470 (frame_base_free): Free the "sniffer" table.
4471 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4472 (frame_unwind_append_sniffer): Declare.
4473 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4474 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4475 (struct frame_unwind_table): Add "sniffer", delete "middle".
4476 (append_predicate): Add "sniffer" parameter, append the sniffer.
4477 (frame_unwind_init): Update append_predicate call.
4478 (frame_unwind_append_sniffer): New function.
4479 (frame_unwind_append_predicate): Update append_predicate call.
4480 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4481
0714963c
AC
44822003-07-15 Andrew Cagney <cagney@redhat.com>
4483
4484 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4485 before code inhibiting repeated unwind attempts. Add to
4486 commentary on that test's problems.
4487 * blockframe.c (inside_main_func): Look for "main" in the minimal
4488 symbol table.
4489 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4490 identical.
4491
d9170e22
AC
44922003-07-15 Andrew Cagney <cagney@redhat.com>
4493
4494 * complaints.c (struct explanation): Define.
4495 (struct complaints): Change type of "explanation" to "struct
4496 explanation".
4497 (symfile_explanations): Convert to a "struct explanation" table.
4498 (vcomplaint): Update.
4499
eba29c8c
ML
45002003-07-15 Michal Ludvig <mludvig@suse.cz>
4501
4502 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4503 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4504 x86_64_linux_(fill,supply)_gregset functions.
4505 * x86-64-linux-tdep.c (USER_*): New defines.
4506 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4507 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4508 New functions.
4509 (fetch_core_registers): Ditto.
4510 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4511 * x86-64-linux-tdep.h: New file.
4512 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4513 and core-regset.o.
4514 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4515
68cc0bfb
MK
45162003-07-13 Mark Kettenis <kettenis@gnu.org>
4517
88a115f7
MK
4518 * x86-64-tdep.c (x86_64_store_return_value): Use
4519 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4520
68cc0bfb
MK
4521 * configure.host: Add x86_64-*-freebsd*.
4522 * configure.tgt: Add x86_64-*-freebsd*.
4523 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4524 * amd64fbsd-nat.c: New file.
4525 * amd64fbsd-tdep.c: New file.
4526 * config/i386/nm-fbsd64.h: New file.
4527 * config/i386/fbsd64.mh: New file.
4528 * config/i386/fbsd64.mt: New file.
4529
138e7be5
MK
45302003-07-11 Mark Kettenis <kettenis@gnu.org>
4531
4532 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4533 `sc_regs_offset' and `sc_fpregs_offset'.
4534 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4535 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4536 (alpha_sigtramp_register_address): Rewrite to use new members of
4537 `struct gdbarch_tdep'.
4538 (alpha_gdbarch_init): Initialize new members of struct
4539 gdbarch_tdep'.
4540 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4541 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4542 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4543 (alphafbsd_pc_in_sigtramp): Implement.
4544 (alphafbsd_sigtramp_offset): New function.
4545 (alphafbsd_sigcontext_addr): New function.
4546 (alphafbsd_init_abi): Initialize signal trampoline related members
4547 of `struct gdbarch_tdep'.
4548 (_initialize_alphafbsd_tdep): Add prototype.
4549
95303a68
TR
45502003-07-11 Theodore A. Roth <troth@openavr.org>
4551
ba292e4c
TR
4552 * Makefile.in (install-only): Quote sed expression when generating
4553 transformed_name.
95303a68 4554
6896c0c7
RH
45552003-07-11 Richard Henderson <rth@redhat.com>
4556
4557 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4558 * dwarf2-frame.c: Include complaints.h.
4559 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4560 variable initialization; return NULL on error.
4561 (decode_frame_entry): New.
4562
8edd5d01
AC
45632003-07-11 Andrew Cagney <cagney@redhat.com>
4564
c4a09524
AC
4565 * frame.h (frame_address_in_block): Delete declaration.
4566 * blockframe.c (frame_address_in_block): Delete function.
4567 (get_frame_block): Use get_frame_address_in_block.
4568 (block_innermost_frame): Ditto.
4569 * stack.c (print_frame, backtrace_command_1): Ditto.
4570
8edd5d01
AC
4571 * frame.h (get_frame_address_in_block): Declare.
4572 (frame_unwind_address_in_block): Declare.
4573 * frame.c (frame_unwind_address_in_block): New function.
4574 (get_frame_address_in_block): New function.
4575
f7968451
AC
45762003-07-10 Andrew Cagney <cagney@redhat.com>
4577
4578 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4579 pre-default. Note: re-generate has no effect.
a8f4cde1 4580
ae99b398
AC
45812003-07-10 Andrew Cagney <cagney@redhat.com>
4582
4583 * gdbarch.sh: When a variable, but not a function, compare against
4584 0. Fix problem in previous patch.
4585 * gdbarch.c: Re-generate.
a8f4cde1 4586
956ac328
AC
45872003-07-10 Andrew Cagney <cagney@redhat.com>
4588
4589 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4590 functions against NULL, not 0.
4591 * gdbarch.c: Re-generate.
a8f4cde1 4592
287c3240
FF
45932003-07-10 Fred Fish <fnf@ninemoons.com>
4594
4595 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4596 null string instead of a null pointer.
4597 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4598
32f63c4b
MS
45992003-07-09 Michael Snyder <msnyder@redhat.com>
4600
4601 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4602
402ecd56
MK
46032003-07-09 Mark Kettenis <kettenis@gnu.org>
4604
4605 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4606 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4607 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4608 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4609 * x86-64-tdep.c: ... from here.
4610
c481dac7
AS
46112003-07-09 Andreas Schwab <schwab@suse.de>
4612
4613 * m68k-tdep.h (enum struct_return): Define.
4614 (struct gdbarch_tdep): Add struct_return.
4615 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4616 bytes are padded to the right, not to the left. Pass struct value
4617 address in register %a1, not on stack.
4618 (m68k_use_struct_convention): New function.
4619 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4620 struct_return in tdep to pcc_struct_return.
4621 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4622 reg_struct_return.
4623
a8f4cde1 46242003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4625
a8f4cde1 4626 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4627
96a4ee76
AC
46282003-07-09 Andrew Cagney <cagney@redhat.com>
4629
4630 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4631 Add comments about the checks.
4632
1517c6d1
AC
46332003-07-08 Andrew Cagney <cagney@redhat.com>
4634
4635 * Makefile.in: Make dependency section headers consistent.
4636 (config_h): Move to $BUILD headers section.
4637 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4638 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4639 (ada-exp.tab.c): Move to YACC/LEX section.
4640 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4641 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4642
dc5dd1eb
KW
46432003-07-08 Kris Warkentin <kewarken@qnx.com>
4644
4645 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4646 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4647 of strerror with safe_strerror, use ISO C function definitions,
4648 and replace instances of sprintf with snprintf.
dc5dd1eb 4649
612dde91
AC
46502003-07-07 Andrew Cagney <cagney@redhat.com>
4651
4652 * frame.c (get_prev_frame): Enable check for identical frames.
4653 Update comments. Update error messages.
4654
492c11d3
JB
46552003-07-07 Joel Brobecker <brobecker@gnat.com>
4656
4657 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4658
376a5a49
JB
46592003-07-07 Joel Brobecker <brobecker@gnat.com>
4660
4661 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4662 sort_symtab_syms, no longer necessary.
4663
22b4a9ad
JB
46642003-07-07 Joel Brobecker <brobecker@gnat.com>
4665
4666 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4667
5bbcb741
JB
46682003-07-07 Joel Brobecker <brobecker@gnat.com>
4669
4670 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4671 (mips_register_byte): Likewise.
4672
c139e7d9
DJ
46732003-07-07 Daniel Jacobowitz <drow@mvista.com>
4674
4675 * Makefile.in (sparc_tdep_h): New.
4676 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4677 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4678 * sparc-linux-nat.c: Include "sparc-tdep.h".
4679 * sparc-nat.c: Likewise.
4680 * sparc-tdep.c: Likewise.
4681 * sparc64nbsd-nat.c: Likewise.
4682 * sparcnbsd-nat.c: Likewise.
4683 * sparcnbsd-tdep.c: Likewise.
4684 * sparc-tdep.h: New file.
4685 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4686 and sparc_npc_regnum.
4687
fd8f87c5
DJ
46882003-07-07 Daniel Jacobowitz <drow@mvista.com>
4689
4690 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4691 (mips_linux_cannot_store_register): List supported instead of
4692 unsupported registers.
4693
13adf674
DJ
46942003-07-07 Daniel Jacobowitz <drow@mvista.com>
4695
4696 * disasm.c (dump_insns): Separate instructions from addresses.
4697
8de307e0
AS
46982003-07-07 Andreas Schwab <schwab@suse.de>
4699
4700 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4701 dependencies.
4702 * m68k-tdep.c (NUM_FREGS): Delete.
4703 (SIG_PC_FP_OFFSET): Delete.
4704 (TARGET_M68K): Delete.
4705 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4706 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4707 P_MOVEL_SP, P_MOVEML_SP): Define.
4708 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4709 P_TRAP): Delete.
4710 (m68k_register_raw_size): Delete.
4711 (m68k_register_virtual_size): Delete.
4712 (m68k_register_type): Renamed from m68k_register_virtual_type and
4713 add gdbarch argument.
4714 (m68k_store_struct_return): Delete.
4715 (m68k_deprecated_extract_return_value): Delete.
4716 (m68k_deprecated_extract_struct_value_address): Delete.
4717 (m68k_frame_chain): Delete.
4718 (m68k_frame_saved_pc): Delete.
4719 (m68k_fix_call_dummy): Delete.
4720 (m68k_push_dummy_frame): Delete.
4721 (m68k_pop_frame): Delete.
4722 (m68k_extract_return_value): New function.
4723 (m68k_store_return_value): Rewrite using regcache.
4724 (m68k_extract_struct_value_address): Rewrite using regcache.
4725 (m68k_push_dummy_call): New function.
4726 (struct m68k_frame_cache): Define.
4727 (m68k_alloc_frame_cache): New function.
4728 (m68k_analyze_frame_setup): New function.
4729 (m68k_analyze_register_saves): New function.
4730 (m68k_analyze_prologue): New function.
4731 (m68k_skip_prologue): Rewrite using above functions.
4732 (m68k_unwind_pc): New function.
4733 (m68k_frame_cache): New function.
4734 (m68k_frame_this_id): New function.
4735 (m68k_frame_prev_register): New function.
4736 (m68k_frame_unwind): New variable.
4737 (m68k_frame_p): New function.
4738 (m68k_sigtramp_frame_cache): New function.
4739 (m68k_sigtramp_frame_this_id): New function.
4740 (m68k_sigtramp_frame_prev_register): New function.
4741 (m68k_sigtramp_frame_unwind): New variable.
4742 (m68k_sigtramp_frame_p): New function.
4743 (m68k_frame_base_address): New function.
4744 (m68k_frame_base): New function.
4745 (m68k_unwind_dummy_id): New function.
4746 (fill_gregset): Use regcache_collect.
4747 (fill_fpregset): Likewise.
4748 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4749 defined.
4750 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4751 deprecated_init_frame_pc, deprecated_store_struct_return,
4752 deprecated_extract_return_value, deprecated_store_return_value,
4753 deprecated_frame_chain, deprecated_frame_saved_pc,
4754 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4755 deprecated_register_virtual_size,
4756 deprecated_max_register_raw_size,
4757 deprecated_max_register_virtual_size,
4758 deprecated_register_virtual_type, deprecated_register_size,
4759 deprecated_register_byte, deprecated_register_bytes,
4760 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4761 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4762 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4763 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4764 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4765 deprecated_push_dummy_frame, deprecated_pop_frame,
4766 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4767 only if SYSCALL_TRAP is defined. Set extract_return_value,
4768 store_return_value, extract_struct_value_address, register_type,
4769 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4770 predicates.
4771 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4772 M68K_MAX_REGISTER_SIZE): Define.
4773 (struct m68k_sigtramp_info): Define.
4774 (struct gdbarch_tdep): Add get_sigtramp_info.
4775 * m68klinux-nat.c (fetch_register): Use register_size instead of
4776 REGISTER_RAW_SIZE. Don't put assignment in if.
4777 (store_register): Likewise.
4778 (fetch_inferior_registers): Likewise.
4779 (store_inferior_registers): Likewise.
4780 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4781 (m68k_linux_frame_saved_pc): Delete.
4782 (m68k_linux_sigcontext_reg_offset,
4783 m68k_linux_ucontext_reg_offset): Define.
4784 (m68k_linux_get_sigtramp_info): New function.
4785 (m68k_linux_extract_return_value): Rewrite using regcache.
4786 (m68k_linux_store_return_value): Likewise.
4787 (m68k_linux_extract_struct_value_address): Likewise.
4788 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4789 Don't set deprecated_frame_saved_pc,
4790 deprecated_extract_return_value, deprecated_store_return_value,
4791 deprecated_extract_struct_value_address. Set
4792 extract_return_value, store_return_value,
4793 extract_struct_value_address.
4794
eb8bc282
AC
47952003-07-07 Andrew Cagney <cagney@redhat.com>
4796
4797 * expprint.c: Include "user-regs.h" instead of "frame.h".
4798 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4799 frame_map_regnum_to_name.
4800 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4801 (frame_map_name_to_regnum): Simplify, call
4802 user_reg_map_name_to_regnum.
4803 (frame_map_regnum_to_name): Simplify, call
4804 user_reg_map_regnum_to_name.
4805 (frame_register_unwind): Update.
4806 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4807 (_initialize_frame_reg): Call user_reg_add_builtin.
4808 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4809 (value_of_register): Use value_of_user_reg.
4810 * eval.c (evaluate_subexp_standard): Update.
4811 * parse.c (write_dollar_variable): Update.
4812 * d10v-tdep.c (d10v_print_registers_info): Update.
4813 * infcmd.c (registers_info): Update.
4814 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4815 (builtin_regs_h): Delete macro.
4816 (user_regs_h): Define.
4817 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4818 (builtin-regs.o): Delete target.
4819 (user-regs.o): Specify dependencies.
4820 (expprint.o): Update dependencies.
4821 (findvar.o): Update dependencies.
4822 (frame.o): Update dependencies.
4823 (std-regs.o): Update dependencies.
4824
9f476a01
CF
48252003-07-06 Christopher Faylor <cgf@redhat.com>
4826
4827 * win32-nat.c (solib_symbols_add): Use one variable for all section
4828 address stuff. Pass variable rather than address of variable to
4829 safe_symbol_file_add.
4830
a731b831
AS
48312003-07-06 Andreas Schwab <schwab@suse.de>
4832
4833 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4834
9f83329d
JB
48352003-07-04 Joel Brobecker <brobecker@gnat.com>
4836
4837 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4838
27e28cc5
KW
48392003-07-04 Kris Warkentin <kewarken@qnx.com>
4840
4841 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4842
48432003-07-04 Kris Warkentin <kewarken@qnx.com>
4844
4845 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4846 * config/i386/nto.mh: New file.
4847 * config/i386/nm-nto.h: New file.
4848 * configure.host: Add i[3456]86-*-nto*.
4849
100f2e98
JB
48502003-07-03 Joel Brobecker <brobecker@gnat.com>
4851
4852 * remote-vx.c (vx_add_symbols): Fix compilation error.
4853
e23457df
AC
48542003-07-03 Andrew Cagney <cagney@redhat.com>
4855
4856 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4857 * gdbarch.h, gdbarch.c: Re-generate.
4858 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4859 (legacy_register_name): Declare.
4860 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4861 (REGISTER_NAME): Define.
4862 * sparc-tdep.c (legacy_register_name): New function.
4863 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4864 (REGISTER_NAME): Define.
4865 (hppa64_register_name): Declare.
4866 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4867 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4868 (hppa64_register_name): New function.
4869 (hppa_register_name): New function.
4870 * arch-utils.c (legacy_register_name): Delete.
4871 * arch-utils.h (legacy_register_name): Delete.
4872
38caaeec
DJ
48732003-07-03 Daniel Jacobowitz <drow@mvista.com>
4874
4875 * cli/cli-interp.c (cli_interpreter_resume): Update the
4876 cli_uiout's stream to gdb_stdout.
4877
dadd712e
AC
48782003-07-03 Andrew Cagney <cagney@redhat.com>
4879
4880 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4881 predicate.
4882 * gdbarch.h, gdbarch.c: Re-generate.
4883 * regcache.c (init_regcache_descr): Use legacy code when either
4884 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4885
c7f1390e
DJ
48862003-07-02 Daniel Jacobowitz <drow@mvista.com>
4887
4888 * NEWS: Move "set logging" entry into GDB 6.0 section.
4889
4bc8c588
JB
48902003-07-02 Jim Blandy <jimb@redhat.com>
4891
a9dd42f1
JB
4892 * s390-tdep.c (struct frame_extra_info): new member:
4893 'stack_bought_valid'.
4894 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4895 initialize fextra_info->stack_bought.
4896 (s390_frameless_function_invocation): Don't trust the value of
4897 fextra_info_ptr->stack_bought unless
4898 fextra_info->stack_bought_valid is set.
4899
4bc8c588
JB
4900 New S390 prologue analyzer.
4901 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4902 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4903 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4904 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4905 compute_x_addr, s390_on_stack, s390_store,
4906 s390_get_signal_frame_info): New functions.
4907 (S390_NUM_SPILL_SLOTS): New macro.
4908 (s390_get_frame_info): Rewritten.
4909 (is_arg_reg): Deleted.
4910
4911 Break out the decoding of S/390 instructions into separate
4912 functions, to make it more legible, and easier to check
4913 against the spec.
4914 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4915 is_rx, is_rxe): New functions.
4916 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4917 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4918 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4919 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4920 enums for opcode values. (Is this an improvement?)
4921
fd13a04a
AC
49222003-07-02 Andrew Cagney <cagney@redhat.com>
4923
4924 * i386-tdep.c: Revert change committed as part of trad-frame code
4925 below.
4926
3f8091c1
DJ
49272003-07-02 Daniel Jacobowitz <drow@mvista.com>
4928
4929 * breakpoint.c (insert_catchpoint): Make static.
4930
8dd5115e
AS
49312003-07-02 Andreas Schwab <schwab@suse.de>
4932
4933 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4934 former ia64_push_arguments and ia64_push_return_address, and use
4935 regcache functions instead of read/write_register.
4936 (ia64_gdbarch_init): Set push_dummy_call instead of
4937 deprecated_push_arguments and deprecated_push_return_address.
4938
a2229c23
AJ
49392003-07-01 Andreas Jaeger <aj@suse.de>
4940
4941 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4942 before the call.
4943 Set %rax only to number of SSE registers used.
4944
3b3850e8
AC
49452003-07-01 Andrew Cagney <cagney@redhat.com>
4946
4947 * trad-frame.h: Update comments, a -1 .addr is reserved.
4948 (trad_frame_value_p, trad_frame_addr_p): Declare.
4949 (trad_frame_reg_p): Declare.
4950 (trad_frame_set_value): Rename trad_frame_register_value.
4951 (trad_frame_set_unknown): Declare.
4952 * trad-frame.c (trad_frame_realreg_p): New function.
4953 (trad_frame_addr_p, trad_frame_value_p): New function.
4954 (trad_frame_set_unknown): New function.
4955 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4956 (trad_frame_prev_register): Use trad_frame_realreg_p,
4957 trad_frame_addr_p and trad_frame_value_p.
4958 (trad_frame_set_value): Rename trad_frame_register_value.
4959 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4960 and trad_frame_set_value.
a2229c23 4961
4d819d0e
JB
49622003-06-30 Jim Blandy <jimb@redhat.com>
4963
4964 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4965 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4966 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4967 for 16 registers, and then 32 more bytes.
4968 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4969 New macros.
4970 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4971 Move up in the file, since it's now used by is_simple_arg.
4972 (is_simple_arg): Don't assume registers are four bytes long.
4973 Exclude all double arguments. Extended floats are not simple
4974 args.
4975 (is_power_of_two): New function.
4976 (pass_by_copy_ref): Call is_power_of_two, and check that the
4977 length fits in a register, rather than listing all the acceptable
4978 sizes. Extended floats are not passed by reference.
4979 (s390_push_arguments): Don't assume registers are four bytes long.
4980 Reserve an argument register to point to the buffer for structures
4981 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4982 S390_STACK_FRAME_OVERHEAD.
4983
1ad828f1
AS
49842003-06-30 Andreas Schwab <schwab@suse.de>
4985
4986 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4987 format error message.
4988
39b00981
JB
49892003-06-30 Joel Brobecker <brobecker@gnat.com>
4990
4991 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4992
b2a7f303
DC
49932003-06-30 David Carlton <carlton@kealia.com>
4994
4995 Band-aid for PR c++/1245.
4996 * Makefile.in (cp-support.o): Depend on complaints_h.
4997 * cp-support.c: Include complaints.h. Add declaration for
4998 find_last_component.
4999 (cp_find_first_component): Separate code into
5000 cp_find_first_component_aux.
5001 (cp_find_first_component_aux): Call demangled_name_complaint.
5002 (demangled_name_complaint): New.
5003
a257b5bb
AC
50042003-06-30 Andrew Cagney <cagney@redhat.com>
5005
5006 * remote.c (remote_write_bytes): Explicitly compute and then use
5007 the payload size. Update comments to reflect. Fixes problem of
5008 GDB not sending small packets as found by Fred Fish.
5009
0a2cfde4
AC
50102003-06-30 Andrew Cagney <cagney@redhat.com>
5011
5012 * remote.c (remote_async_wait): Fix -Wformat problem.
5013
3fcb8548
AC
50142003-06-29 Andrew Cagney <cagney@redhat.com>
5015
5016 * remote.c (remote_wait): Call error, and not warning, when the
5017 packet is corrupt.
5018 (remote_async_wait): Ditto.
5019
9f9970a3
DJ
50202003-06-29 Daniel Jacobowitz <drow@mvista.com>
5021
5022 * sparc-tdep.c (sparc_y_regnum): Make external again.
5023
83a8ccca
DJ
50242003-06-29 Daniel Jacobowitz <drow@mvista.com>
5025
5026 * cli/cli-logging.c (pop_output_files): Add void to function
5027 definition.
5028
d2cf594a
AC
50292003-06-29 Andrew Cagney <cagney@redhat.com>
5030
5031 * frame.c (frame_register_unwind): Use unsigned char when dumping
5032 the buffer contents.
5033
0fac0b41
DJ
50342003-06-28 Daniel Jacobowitz <drow@mvista.com>
5035
5036 * cli/cli-logging.c: New file.
5037 * cli-out.c (struct ui_out_data): Add original_stream.
5038 (cli_redirect): New function.
5039 (cli_ui_out_impl): Add cli_redirect.
5040 (cli_out_new): Initialize original_stream.
5041 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5042 (uo_redirect, ui_out_redirect): New.
5043 * ui-out.h (struct ui_out_impl): Add redirect member.
5044 (redirect_ftype): New.
5045 (ui_out_redirect): Add prototype.
5046 * Makefile.in: Add rules for cli-logging.c.
5047 * NEWS: Mention "set logging".
5048
88a07d7c
EZ
50492003-06-27 Elena Zannoni <ezannoni@redhat.com>
5050
5051 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5052
4eb58876
AC
50532003-06-27 Andrew Cagney <cagney@redhat.com>
5054
5055 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5056 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5057 * avr-tdep.c (avr_call_dummy_address): Delete function.
5058 (avr_gdbarch_init): Do not set call_dummy_address.
5059
1549f619
EZ
50602003-06-27 Elena Zannoni <ezannoni@redhat.com>
5061
5062 * symfile.c (syms_from_objfile): Move variables to inner block.
5063 Move the checks for the non-mainline case a bit earlier to avoid
5064 doing some useless computations.
5065
3cb3398d
EZ
50662003-06-27 Elena Zannoni <ezannoni@redhat.com>
5067
5068 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5069
3799ccc6
EZ
50702003-06-26 Elena Zannoni <ezannoni@redhat.com>
5071
5072 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5073 sections.
5074
ce1f6491
MC
50752003-06-26 Michael Chastain <mec@shout.net>
5076
5077 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5078 gdb/testsuite/gdb.c++/pr-1210.exp.
5079
d958dfd0
AC
50802003-06-26 Andrew Cagney <cagney@redhat.com>
5081
5082 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5083 altivec_expression.h and altivec_registers.h.
5084
d31431ed
AC
50852003-06-26 Andrew Cagney <cagney@redhat.com>
5086
5087 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5088 info->mach when MIPS16. Patch suggested by Fred Fish.
5089
714b1282
AC
50902003-06-26 Andrew Cagney <cagney@redhat.com>
5091
5092 * utils.c (internal_vproblem): Print the problem to a reason
5093 buffer and then pass to query. Make the msg variable more local.
5094
42efa47a
AC
50952003-06-26 Andrew Cagney <cagney@redhat.com>
5096
5097 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5098 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5099 * gdbarch.h, gdbarch.c: Re-generate.
5100 * frame-base.c (default_frame_args_address): Update. Use
5101 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5102 not available.
5103 (default_frame_locals_address): Ditto for
5104 DEPRECATED_FRAME_LOCALS_ADDRESS.
5105 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5106 (vax_frame_num_args): Update.
5107 (vax_gdbarch_init): Update.
5108 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5109 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5110 * mcore-tdep.c (mcore_gdbarch_init): Update.
5111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5112 * ia64-tdep.c (ia64_gdbarch_init): Update.
5113 * symtab.h (address_class): Update comments.
5114 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5115 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5116 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5117 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5118 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5119 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5120 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5121 * alpha-mdebug-tdep.c: Update.
5122 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5123
8ffd9b1b
AJ
51242003-06-26 Andreas Jaeger <aj@suse.de>
5125
5126 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5127 of SSE registers so that varargs functions work. Rework handling
5128 of passing arguments on the stack.
5129 (x86_64_store_return_value): Return double and float values in SSE
5130 register.
5131
e8ac10a6
MC
51322003-06-24 Michael Chastain <mec@shout.net>
5133
5134 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5135 the "constructor breakpoints ignored" bug.
5136
986af8e6
DC
51372003-06-25 David Carlton <carlton@kealia.com>
5138
5139 * MAINTAINERS: Update e-mail address.
5140
d64558a5
JB
51412003-06-24 Jim Blandy <jimb@redhat.com>
5142
e538d2d7
JB
5143 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5144
02631ec0
JB
5145 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5146 function.
5147 (ppc_linux_init_abi): Register it as the
5148 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5149
e716d87a
JB
5150 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5151 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5152 method.
5153
d64558a5
JB
5154 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5155 (ppc64_standard_linkage_target): Use it.
5156
449a5da4
AC
51572003-06-23 Andrew Cagney <cagney@redhat.com>
5158
5159 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5160 for 0 "int0" and 4 "int32" sized registers.
5161 * gdbtypes.c (builtin_type_int0): Define.
5162 (build_gdbtypes): Initialize builtin_type_int0.
5163 * gdbtypes.h (builtin_type_int0): Declare.
5164
b2a02dda
SC
51652003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5166
5167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5168 as characters are unsigned.
5169
fba3138e
DJ
51702003-06-22 Daniel Jacobowitz <drow@mvista.com>
5171
5172 PR gdb/1179
5173 * dwarfread.c (struct_type): Skip static fields without crashing.
5174
f6c8180b
AC
51752003-06-22 Andrew Cagney <cagney@redhat.com>
5176
5177 GDB 6.0 branch created.
f2c06f52
AC
5178 * README: Update.
5179 * PROBLEMS: Update. Empty.
5180 * NEWS: Update.
f6c8180b 5181
ae822768
DJ
51822003-06-22 Daniel Jacobowitz <drow@mvista.com>
5183
5184 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5185 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5186
261de166
AC
51872003-06-22 Andrew Cagney <cagney@redhat.com>
5188
5189 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5190 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5191 Velikov.
5192
30e94205
DJ
51932003-06-22 Daniel Jacobowitz <drow@mvista.com>
5194
5195 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5196 compilers.
5197
9e14d721
DJ
51982003-06-21 Daniel Jacobowitz <drow@mvista.com>
5199
5200 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5201 argument of val_print.
5202 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5203 to the address argument of baseclass_offset or target_read_memory.
5204 Do add it to the argument of cp_print_value_fields.
5205
a4b8ebc8
AC
52062003-06-21 Andrew Cagney <cagney@redhat.com>
5207
5208 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5209 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5210 instead of 0..NUM_REGS.
5211 (mips_register_reggroup_p): New function.
5212 (mips_pseudo_register_write): New function.
5213 (mips_pseudo_register_read): New function.
5214 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5215 based on the register's type.
5216 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5217 cooked.
5218 (mips_get_saved_register): Simplify. Assert that REGNO is a
5219 pseudo / cooked.
5220 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5221 (mips_register_type): Replace mips_register_virtual_type. Map
5222 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5223 when available.
5224 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5225 that the register is cooked / virtual.
5226 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5227 Only get the extra info when needed.
5228 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5229 (mips32_heuristic_proc_desc): Fetch the cooked register.
5230 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5231 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5232 (mips_print_register): Use gdbarch_register_type, instead of
5233 REGISTER_VIRTUAL_TYPE.
5234 (print_gp_register_row): Use gdbarch_register_type, instead of
5235 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5236 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5237 Print the pseudo / cooked registers.
5238 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5239 Print the pseudo / cooked registers.
5240 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5241 REG_NUM is pseudo / cooked.
5242 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5243 (mips_n32n64_xfer_return_value): Ditto.
5244 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5245 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5246 (mips_register_sim_regno): New function.
5247 (mips_gdbarch_init): Set deprecated_register_byte,
5248 register_group_p, pseudo_register_write, pseudo_register_read,
5249 register_sim_regno, and num_pseudo_regs. Set register_type,
5250 instead of register_virtual_type.
5251 * Makefile.in (mips-tdep.o): Update dependencies.
5252 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5253 REGISTER_VIRTUAL_TYPE.
5254 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5255 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5256 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5257 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5258 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5259
325ed089
DJ
52602003-06-21 Daniel Jacobowitz <drow@mvista.com>
5261
5262 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5263 * cli/cli-cmds.c: Include "gdb_vfork.h".
5264 (shell_escape): Use vfork.
5265
f0e7d0e8
AC
52662003-06-21 Andrew Cagney <cagney@redhat.com>
5267
c57bb9fa
AC
5268 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5269 32 bit floating-point register saves.
5270
6e51443a
AC
5271 * frame.h (deprecated_unwind_get_saved_register): Delete.
5272 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5273 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5274 and deprecated_get_next_frame_hack instead of
5275 deprecated_unwind_get_saved_register.
5276
ed183c7c
AC
5277 * mips-tdep.c (mips_dump_tdep): Do not print
5278 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5279
f0e7d0e8
AC
5280 * frame.c (get_frame_register): New function.
5281 (frame_unwind_register_signed): New function.
5282 (get_frame_register_signed): New function.
5283 (frame_unwind_register_unsigned): New function.
5284 (get_frame_register_unsigned): New function.
5285 * frame.h: Add comments on naming schema.
5286 (get_frame_register, frame_unwind_register_signed): Declare.
5287 (get_frame_register_signed, get_frame_register_signed): Declare.
5288 (frame_unwind_register_unsigned): Declare.
5289 (get_frame_register_unsigned): Declare.
5290
2224d941
TR
52912003-06-20 Theodore A. Roth <troth@openavr.org>
5292
5293 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5294
8619218d
TR
52952003-06-20 Theodore A. Roth <troth@openavr.org>
5296
5297 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5298 (avr_read_sp): Ditto.
5299
0b1b50c0
DJ
53002003-06-20 Daniel Jacobowitz <drow@mvista.com>
5301
5302 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5303 * config/arm/nm-linux.h: Likewise.
5304 * config/arm/tm-linux.h: Likewise.
5305 * config/ia64/nm-linux.h: Likewise.
5306 * config/ia64/tm-ia64.h: Likewise.
5307 * config/s390/tm-linux.h: Likewise.
5308 * config/s390/tm-s390.h: Likewise.
5309 * s390-nat.c: Likewise.
5310 * s390-tdep.c: Likewise.
5311
5312 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5313 * config/ia64/linux.mt: Likewise.
5314 * config/m68k/linux.mh: Likewise.
5315 * config/mips/linux.mt: Likewise.
5316 * config/powerpc/linux.mh: Likewise.
5317 * config/sh/linux.mt: Likewise.
5318
c8c18e65
KW
53192003-06-19 Kris Warkentin <kewarken@qnx.com>
5320
5321 * solib.c (solib_open): Change tests for whether to search
5322 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5323 comments.
5324
dcccef2e
TR
53252003-06-19 Theodore A. Roth <troth@openavr.org>
5326
5327 * avr-tdep.c (avr_frame_address): Delete function.
5328 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5329 set_gdbarch_frame_args_address.
5330
5861a190
AC
53312003-06-19 Andrew Cagney <cagney@redhat.com>
5332
5333 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5334 (REGISTER_CONVERT_FROM_TYPE): Delete.
5335 (mips_register_convert_to_type): Delete declaration.
5336 (mips_register_convert_from_type): Delete declaration.
5337 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5338 kernel/.
5339
0274a8ce
MS
53402003-06-19 Michael Snyder <msnyder@redhat.com>
5341
5342 * linux-nat.h: New file.
5343 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5344 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5345 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5346 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5347 (linux_make_note_section): Iterate over lwps instead of threads.
5348 (linux_do_thread_registers): Use lwp instead of merged pid.
5349 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5350 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5351 Add dependency on linux_nat_h.
5352
adf5f719
TR
53532003-06-19 Theodore A. Roth <troth@openavr.org>
5354
5355 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5356
6766a268
DJ
53572003-06-19 Daniel Jacobowitz <drow@mvista.com>
5358
5359 * varobj.c (get_type, get_target_type): Use check_typedef.
5360
1171114a
DJ
53612003-06-19 Daniel Jacobowitz <drow@mvista.com>
5362
5363 * breakpoint.c (insert_catchpoint): Call internal_error.
5364
adcf68a2
TR
53652003-06-19 Theodore A. Roth <troth@openavr.org>
5366
5367 * avr-tdep.c (avr_push_dummy_code): Delete function.
5368 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5369
ea67f13b
DJ
53702003-06-19 Daniel Jacobowitz <drow@mvista.com>
5371
5372 * arch-utils.c (default_prepare_to_proceed): Remove.
5373 (generic_prepare_to_proceed): Remove.
5374 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5375 (generic_prepare_to_proceed): Remove prototype.
5376 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5377 * gdbarch.c: Regenerate.
5378 * gdbarch.h: Regenerate.
5379 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5380 * hppah-nat.c (hppa_switched_threads): Remove.
5381 * infrun.c (prepare_to_proceed): New static function, copied from
5382 generic_prepare_to_proceed. Remove select_it argument.
5383 (proceed): Call prepare_to_proceed.
5384 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5385 variables.
5386 (ptrace_wait): Don't set the removed variables.
5387 (hppa_switched_threads): Remove.
5388 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5389 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5390 (lin_lwp_prepare_to_proceed): Remove prototype.
5391 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5392 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5393
4add8633
TR
53942003-06-18 Theodore A. Roth <troth@openavr.org>
5395
5396 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5397 trad-frame.h.
5398 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5399 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5400 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5401 (AVR_PROLOGUE_*): Enumerate prologue types.
5402 (struct frame_extra_info): Remove.
5403 (struct avr_unwind_cache): Define.
5404 (avr_write_sp): Delete function.
5405 (avr_read_fp): Ditto.
5406 (avr_init_extra_frame_info): Ditto.
5407 (avr_pop_frame): Ditto.
5408 (avr_frame_saved_pc): Ditto.
5409 (avr_saved_pc_after_call): Ditto.
5410 (avr_push_return_address): Ditto.
5411 (avr_frame_chain): Ditto.
5412 (avr_store_struct_return): Ditto.
5413 (avr_push_arguments): Ditto.
5414 (avr_scan_prologue): Update comments. Changed to set up the info for
5415 cache unwinding. Now returns end of prologue PC.
5416 (avr_skip_prologue): Better handling of functions lacking a prologue
5417 by using avr_scan_prologue.
5418 (avr_scan_arg_moves): New function.
5419 (avr_saved_regs_unwinder): Ditto.
5420 (avr_frame_unwind_cache): Ditto.
5421 (avr_unwind_pc): Ditto.
5422 (avr_frame_this_id): Ditto.
5423 (avr_frame_prev_register): Ditto.
5424 (avr_frame_p): Ditto.
5425 (avr_frame_base_address ): Ditto.
5426 (avr_unwind_dummy_id): Ditto.
5427 (avr_push_dummy_code): Ditto.
5428 (push_stack_item): Ditto.
5429 (pop_stack_item): Ditto.
5430 (avr_push_dummy_call): Ditto.
5431 (struct stack_item): Define.
5432 (avr_frame_unwind): Declare structure.
5433 (avr_frame_base): Ditto.
5434 (avr_gdbarch_init): Remove calls to
5435 set_gdbarch_deprecated_init_frame_pc,
5436 set_gdbarch_deprecated_target_read_fp,
5437 set_gdbarch_deprecated_dummy_write_sp,
5438 set_gdbarch_deprecated_fp_regnum,
5439 set_gdbarch_deprecated_push_arguments,
5440 set_gdbarch_deprecated_push_return_address,
5441 set_gdbarch_deprecated_pop_frame,
5442 set_gdbarch_deprecated_store_struct_return,
5443 set_gdbarch_deprecated_frame_init_saved_regs,
5444 set_gdbarch_deprecated_init_extra_frame_info,
5445 set_gdbarch_deprecated_frame_chain,
5446 set_gdbarch_deprecated_frame_saved_pc,
5447 set_gdbarch_deprecated_saved_pc_after_call.
5448 Add calls to set_gdbarch_push_dummy_call,
5449 set_gdbarch_push_dummy_code,
5450 frame_unwind_append_predicate,
5451 frame_base_set_default,
5452 set_gdbarch_unwind_dummy_id,
5453 set_gdbarch_unwind_pc.
5454 Wrap a long line.
5455
7be04a68
MS
54562003-06-18 Corinna Vinschen <vinschen@redhat.com>
5457
5458 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5459 registers for H8/300S.
5460 (h8300_print_registers_info): Ditto.
8ffd9b1b 5461 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5462
ae087d01
DJ
54632003-06-18 Daniel Jacobowitz <drow@mvista.com>
5464
5465 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5466 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5467 (lin_lwp_wait): Likewise. Update comments.
5468 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5469 (pull_pid_from_list, linux_record_stopped_pid): New.
5470
07d8f827
SC
54712003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5472
5473 * ada-lang.c (scan_discrim_bound): Name first argument.
5474 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5475 declared by ALL_BLOCK_SYMBOLS.
5476
7cb47b14
SC
54772003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5478
5479 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5480 ("regcache.h"): Include it.
5481 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5482
6ad8ae5c
DJ
54832003-06-17 Daniel Jacobowitz <drow@mvista.com>
5484
5485 * NEWS: Mention gdbserver detach change and "disconnect" command.
5486 * infcmd.c (disconnect_command): New function.
5487 (_initialize_infcmd): Add ``disconnect'' command.
5488 * remote.c (remote_async_detach): Delete.
5489 (remote_detach): Merge remote_async_detach.
5490 (remote_disconnect): New.
5491 (init_remote_ops): Set to_disconnect.
5492 (init_remote_cisco_ops): Likewise.
5493 (init_remote_async_ops): Likewise. Use remote_detach.
5494 * target.c (cleanup_target): Default to_disconnect.
5495 (update_current_target): Inherit to_disconnect.
5496 (target_disconnect, debug_to_disconnect): New functions.
5497 (setup_target_debug): Set to_disconnect.
5498 * target.h (struct target_ops): Add to_disconnect.
5499 (target_disconnect): Add prototype.
5500
687595f9
DJ
55012003-06-17 Daniel Jacobowitz <drow@mvista.com>
5502
5503 * breakpoint.c (insert_catchpoint): New function.
5504 (insert_breakpoints): Use catch_exceptions to call
5505 insert_catchpoint. Disable catchpoints if they fail to insert.
5506
29239a8f
DJ
55072003-06-17 Daniel Jacobowitz <drow@mvista.com>
5508
5509 * symfile.c (reread_symbols): Clear sym_private.
5510
2cdf3c63
AC
55112003-06-17 Andrew Cagney <cagney@redhat.com>
5512
5513 * trad-frame.h (struct frame_info): Add opaque declaration.
5514 * remote-fileio.h (struct cmd_list_element): Add opaque
5515 declaration.
5516 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5517 comments.
5518
cf0e1e0d
DJ
55192003-06-17 Daniel Jacobowitz <drow@mvista.com>
5520
5521 * remote.c (remote_prepare_to_store): Replace call to
5522 deprecated_read_register_bytes with multiple regcache_raw_read
5523 calls.
5524
192cdb19
KW
55252003-06-17 Kris Warkentin <kewarken@qnx.com>
5526
5527 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5528 (nto_find_and_open_solib): Likewise.
5529 (nto_init_solib_absolute_prefix): Likewise.
5530 (_initialize_nto_tdep): Fix indentation.
5531
89929b45
KW
55322003-06-17 Kris Warkentin <kewarken@qnx.com>
5533
5534 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5535
46019f27
KW
55362003-06-17 Kris Warkentin <kewarken@qnx.com>
5537
5538 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5539
1a38736e
JB
55402003-06-17 Jim Blandy <jimb@redhat.com>
5541
5542 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5543
3605c34a
TR
55442003-06-16 Theodore A. Roth <troth@openavr.org>
5545
5546 * avr-tdep.c (avr_extract_return_value): New function.
5547 (avr_gdbarch_init): Set extract_return_value method.
5548
870b3035
AC
55492003-06-16 Andrew Cagney <cagney@redhat.com>
5550
5551 * frame.h (deprecated_get_next_frame_hack): Declare.
5552 * frame.c (legacy_saved_regs_prev_register): Only require
5553 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5554 there are always saved regs.
5555 (deprecated_generic_get_saved_register): Do not require
5556 DEPRECATED_FRAME_INIT_SAVED_REGS.
5557 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5558 use frame ID unwind instead.
5559 (deprecated_get_next_frame_hack): New function.
5560
63d47a7d
CV
55612003-06-16 Corinna Vinschen <vinschen@redhat.com>
5562
5563 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5564 (h8300_push_dummy_call): ...this function. Some minor optimization.
5565 (h8300_push_return_address): Remove.
5566 (h8300_gdbarch_init): Remove calls to
5567 set_gdbarch_deprecated_dummy_write_sp,
5568 set_gdbarch_deprecated_push_arguments and
5569 set_gdbarch_deprecated_push_return_address.
5570 Add call to set_gdbarch_push_dummy_call.
5571
4bb1dc5e
CV
55722003-06-16 Corinna Vinschen <vinschen@redhat.com>
5573
5574 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5575 (E_PSEUDO_EXR_REGNUM): Ditto.
5576 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5577 registers into safe registers.
4bb1dc5e
CV
5578 (h8300_skip_prologue): Check for stm instruction to push registers
5579 used for register variables onto stack.
5580 (gdb_print_insn_h8300): Remove.
5581 (h8300_examine_prologue): Add a comment.
5582 (h8300_register_name): Take pseudo registers into account.
5583 (h8300s_register_name): Ditto.
5584 (h8300sx_register_name): Ditto.
5585 (h8300_print_register): Ditto.
5586 (h8300_print_registers_info): Define "nice" printing order.
5587 (h8300_saved_pc_after_call): Take pseudo registers into account.
5588 (h8300_register_type): Ditto. Return type used for remote connection
5589 when requesting real CCR or EXR register, return actual type when
5590 requesting pseudo CCR or EXR.
5591 (h8300_pseudo_register_read): New function.
5592 (h8300_pseudo_register_write): Ditto.
5593 (h8300_dbg_reg_to_regnum): Ditto.
5594 (h8300s_dbg_reg_to_regnum): Ditto.
5595 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5596 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5597 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5598 set_gdbarch_print_insn architecture dependent.
5599 Call set_gdbarch_pseudo_register_read and
5600 set_gdbarch_pseudo_register_write.
5601 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5602
a59fe496
AC
56032003-06-16 Andrew Cagney <cagney@redhat.com>
5604
5605 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5606 * gdbarch.h, gdbarch.c: Re-generate.
5607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5608 * s390-tdep.c (s390_gdbarch_init): Update.
5609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5610 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5611 * mips-tdep.c (mips_gdbarch_init): Update.
5612 * mcore-tdep.c (mcore_gdbarch_init): Update.
5613 * cris-tdep.c (cris_gdbarch_init): Update.
5614 * infcall.c (call_function_by_hand): Update.
5615 * ia64-tdep.c (ia64_push_arguments): Update comment.
5616 * frame.c (legacy_get_prev_frame): Do not assume
5617 SAVE_DUMMY_FRAME_TOS_P.
5618 * dummy-frame.c (find_dummy_frame): Update comment.
5619
6f4e5a41
AC
56202003-06-16 Andrew Cagney <cagney@redhat.com>
5621
5622 * regcache.c (do_cooked_read): Do not use register_valid_p.
5623
72fab697
TR
56242003-06-15 Theodore A. Roth <troth@openavr.org>
5625
5626 * avr-tdep.c (avr_register_type): Remove a blank line.
5627 (avr_scan_prologue): Correct some comments.
5628
e3d8b004
TR
56292003-06-15 Theodore A. Roth <troth@openavr.org>
5630
5631 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5632 prologue types.
8ffd9b1b 5633 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5634 option.
5635 Add code to scan -mcall-prologues for mega devices.
5636
866b76ea
TR
56372003-06-15 Theodore A. Roth <troth@openavr.org>
5638
5639 * avr-tdep.c (avr_register_byte): Delete function.
5640 (avr_register_raw_size): Delete function.
5641 (avr_register_virtual_size): Delete function.
5642 (avr_register_virtual_type): Delete function.
5643 (avr_register_type): New function.
5644 (avr_address_to_pointer): Remove unused code.
5645 (avr_read_fp): Need to read FP as two separate bytes due to change to
5646 avr_register_type() usage.
5647 (avr_gdbarch_init): Don't set deprecated_register_size.
5648 Don't set deprecated_register_bytes.
5649 Don't set deprecated_register_byte.
5650 Don't set deprecated_register_raw_size.
5651 Don't set deprecated_max_register_raw_size.
5652 Don't set deprecated_register_virtual_size.
5653 Don't set deprecated_max_register_virtual_size.
5654 Don't set deprecated_register_virtual_type.
5655 Set register_type method.
5656
3993f6b1
DJ
56572003-06-15 Daniel Jacobowitz <drow@mvista.com>
5658
5659 * Makefile.in (linux-nat.o): Add rule.
5660 * linux-nat.c: New file.
5661 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5662 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5663 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5664 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5665 * config/arm/linux.mh (NATDEPFILES): Likewise.
5666 * config/i386/linux.mh (NATDEPFILES): Likewise.
5667 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5668 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5669 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5670 * config/mips/linux.mh (NATDEPFILES): Likewise.
5671 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5672 * config/s390/s390.mh (NATDEPFILES): Likewise.
5673 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5674
786a90bb
MK
56752003-06-15 Mark Kettenis <kettenis@gnu.org>
5676
5677 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5678 replace out-of-date comment.
5679
3bd3f01e
AC
56802003-06-15 Andrew Cagney <cagney@redhat.com>
5681
5682 * rdi-share/host.h (Fail): Change to a varargs function.
5683 * remote-rdi.c (Fail): Update.
8ffd9b1b 5684
de5b9bb9
MK
56852003-06-15 Mark Kettenis <kettenis@gnu.org>
5686
5687 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5688 (i386_convert_register_p, i386_register_to_value,
5689 i386_register_from_value): Handle types longer than 8 bytes.
5690
d532c08f
MK
56912003-06-15 Mark Kettenis <kettenis@gnu.org>
5692
5693 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5694 Move floating-point code to new function in i387-tdep.c.
5695 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5696 New functions containing code moved here from i386-tdep.c.
5697 * i387-tdep.h: Add opaque declaration for `struct type'.
5698 (i387_register_to_value, i387_value_to_register): New prototypes.
5699 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5700 (x86_64_init_abi): Set convert_register_p, register_to_value and
5701 value_to_register here.
8ffd9b1b 5702
42c466d7
AC
57032003-06-14 Andrew Cagney <cagney@redhat.com>
5704
5705 * mips-tdep.c (mips_register_to_value): Make static.
5706 (mips_value_to_register): Make static.
5707 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5708 * ia64-tdep.c (ia64_register_raw_size): Make static.
5709 (ia64_register_virtual_size): Make static.
5710 (ia64_register_byte): Make static.
5711 * i387-tdep.c: Include "i387-tdep.h".
5712 (print_387_control_word): Delete function.
5713 (print_387_status_word): Delete function.
5714 (print_387_status_bits): Delete function.
5715 (print_387_control_bits): Delete function.
5716 * Makefile.in (i387-tdep.o): Update dependencies.
5717 * rdi-share/host.h (Fail): Declare.
5718 * remote-rdi.c (Fail): Update to match declaration.
5719
2a9cda49
AC
57202003-06-14 Andrew Cagney <cagney@redhat.com>
5721
5722 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5723 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5724 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5725 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5726 * README: Delete reference to remote-array.
5727 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5728 (remote-array.o): Delete target.
5729 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5730 * remote-array.c: Delete file.
5731
ff2e87ac
AC
57322003-06-14 Andrew Cagney <cagney@redhat.com>
5733 Mark Kettenis <kettenis@gnu.org>
5734
5735 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5736 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5737 parameter with "frame".
5738 * gdbarch.h, gdbarch.c: Re-generate.
5739 * frame.h (put_frame_register): Declare.
5740 * frame.c (put_frame_register): New function.
5741 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5742 (legacy_register_to_value): Rewrite, use "frame" to get the
5743 register value.
5744 (legacy_value_to_register): Rewrite, use "frame" to find the
5745 register's location before storing.
5746 * arch-utils.h (legacy_convert_register_p): Update.
5747 (legacy_register_to_value, legacy_value_to_register): Update.
5748 * findvar.c (value_from_register): Rewrite, eliminate use of
5749 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5750 "frame" to REGISTER_TO_VALUE.
5751 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5752 lval_reg_frame_relative + lval_register branch of the switch. Do
5753 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5754 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5755 I386_EDI_REGNUM): New defines.
5756 (i386_next_regnum, i386_convert_register_p,
5757 i386_register_to_value, i386_value_to_register): New functions.
5758 (i386_register_convertible, i386_register_convert_to_virtual,
5759 i386_convert_to_raw): Remove functions.
5760 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5761 value_to_register instead of register_convertible,
5762 register_convert_to_virtual and register_convert_to_raw.
5763 * mips-tdep.c (mips_convert_register_p): New function.
5764 (mips_value_to_register): Replace mips_register_convert_from_type.
5765 (mips_register_to_value): Replace mips_register_convert_to_type.
5766 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5767 register_to_value.
5768 * alpha-tdep.c (alpha_convert_register_p): Update.
5769 (alpha_value_to_register): Update, store the register.
5770 (alpha_register_to_value): Update, fetch the register.
5771
98be1e77
TR
57722003-06-14 Theodore A. Roth <troth@openavr.org>
5773
5774 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5775 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5776 Don't set deprecated_call_dummy_words.
5777 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5778 Don't set remote_translate_xfer_address.
5779 (avr_io_reg_read_command): Remove commented out debug printf.
5780 Wrap a long line.
5781
57bc6122
TR
57822003-06-14 Theodore A. Roth <troth@openavr.org>
5783
5784 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5785 causes gdb to seg fault.
5786
eb01fc62
DJ
57872003-06-14 Daniel Jacobowitz <drow@mvista.com>
5788
5789 * sparc-nat.c (fetch_inferior_registers): Correct
5790 a reference to "registers".
5791
3b3e6bee
DJ
57922003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5793
5794 * Makefile.in (exc_request_U_h): Define
5795 (exc_request_S_h): Likewise.
5796 (msg_reply_S_h): Likewise.
5797 (msg_U_h): Likewise.
5798 (notify_S_h): Likewise.
5799 (process_reply_S_h): Likewise.
5800 (gnu-nat.o): Depend on gdb_obstack_h
5801 * gnu-nat.c: Include "gdb_obstack.h".
5802
b8de8283
AC
58032003-06-13 Andrew Cagney <cagney@redhat.com>
5804
5805 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5806 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 5807
f3be58bc
AC
58082003-06-13 Andrew Cagney <cagney@redhat.com>
5809
5810 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5811 when deprecated REGISTER macros can be deleted.
5812 * gdbarch.h, gdbarch.c: Re-generate.
5813
4c0122c8
JB
58142003-06-13 Jim Blandy <jimb@redhat.com>
5815
5816 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5817 Linux entry point symbols for _dl_debug_state, too.
5818
3e210248
AC
58192003-06-13 Andrew Cagney <cagney@redhat.com>
5820
5821 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5822 available, do not use the FP register, and always save the TOS.
5823 * dummy-frame.c (dummy_frame_this_id): Do not assert
5824 SAVE_DUMMY_FRAME_TOS.
5825 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5826 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5827 (i386_push_dummy_call): Add 8 to the returned SP.
5828 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5829 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5830 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5831 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5832 (x86_64_push_dummy_call): Return "sp + 16".
5833 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5834 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5835 save_dummy_frame_tos.
5836
0b65af49
JB
58372003-06-13 Jim Blandy <jimb@redhat.com>
5838
5839 * frv-tdep.c (frv_use_struct_convention): Delete static
5840 declaration for function deleted in my change of 2003-06-12.
5841
4ea2465e
TR
58422003-06-13 Theodore A. Roth <troth@openavr.org>
5843
5844 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5845 (avr_pointer_to_address): Shift code addrs left 1 bit.
5846 (avr_convert_from_func_ptr_addr): Delete function since operation is
5847 better handled by avr_address_to_pointer and avr_pointer_to_address.
5848 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5849
1581182a
MK
58502003-06-13 Mark Kettenis <kettenis@gnu.org>
5851
5852 From Kelley Cook <kelleycook@wideopenwest.com>:
5853 * configure.host: Accept i[34567]86 variants.
5854 * configure.tgt: Likewise.
5855 * nlm/configure.in: Likewise.
5856 * nlm/configure: Regenerated.
5857
7aa1783e
RE
58582003-06-13 Richard Earnshaw <rearnsha@arm.com>
5859
5860 * arm-tdep.c (solib-svr4.h): Dont' include it.
5861 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5862 * arm-linux-tdep.c: ... here. Make static.
5863 (arm_linux_init_abi): Register it.
5864 (solib-svr4.h): Include it.
5865 * Makefile.in: Update dependencies.
5866 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5867 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5868
0261a0d0
CV
58692003-06-13 Corinna Vinschen <vinschen@redhat.com>
5870
5871 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5872 indicate registers used for return values.
5873 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5874 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5875 members.
5876 (h8300_init_extra_frame_info): Ditto.
5877 (h8300_frame_locals_address): Removed.
5878 (h8300_frame_args_address): Removed.
5879 (h8300_extract_return_value): Use new regcache structure. Only care
5880 for 16 bit CPUs.
5881 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5882 (h8300_store_return_value): Use new regcache structure. Only care
5883 for 16 bit CPUs.
5884 (h8300h_store_return_value): Same function for 32 bit CPUs.
5885 (h8300_store_struct_return): Removed.
5886 (h8300_extract_struct_value_address): Use new regcache structure.
5887 (h8300h_extract_struct_value_address): Removed.
5888 (h8300_push_dummy_code): New function.
5889 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5890 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5891 set_gdbarch_store_return_value architecture dependent.
5892 Call set_gdbarch_push_dummy_code and
5893 set_gdbarch_extract_struct_value_address.
5894 Remove calls to set_gdbarch_frame_args_address,
5895 set_gdbarch_frame_locals_address,
5896 set_gdbarch_deprecated_store_struct_return,
5897 set_gdbarch_deprecated_extract_return_value,
5898 set_gdbarch_deprecated_extract_struct_value_address,
5899 set_gdbarch_deprecated_call_dummy_words and
5900 set_gdbarch_deprecated_sizeof_call_dummy_words.
5901
055c394a
CV
59022003-06-13 Corinna Vinschen <vinschen@redhat.com>
5903
5904 * h8300-tdep.c (h8300_register_byte): Remove.
5905 (h8300h_register_byte): Remove.
5906 (h8300_register_virtual_type): Remove. Substitute by...
5907 (h8300_register_type): New function.
5908 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5909 (h8300h_extract_struct_value_address): Ditto.
5910 (h8300_gdbarch_init): Drop calls to
5911 set_gdbarch_deprecated_register_byte and
5912 set_gdbarch_deprecated_register_virtual_type.
5913 Add call to set_gdbarch_register_type.
5914
9c04cab7
AC
59152003-06-13 Andrew Cagney <cagney@redhat.com>
5916
5917 * gdbarch.sh: Update comments on registers.
5918 (deprecated_register_byte): Rename register_byte.
5919 (deprecated_register_raw_size): Rename register_raw_size.
5920 (deprecated_register_virtual_size): Rename register_virtual_size.
5921 (deprecated_register_virtual_type): Rename register_virtual_type.
5922 * gdbarch.h, gdbarch.c: Re-generate.
5923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5924 * vax-tdep.c (vax_gdbarch_init): Update.
5925 * v850-tdep.c (v850_gdbarch_init): Update.
5926 * sparc-tdep.c (sparc_gdbarch_init): Update.
5927 * sh-tdep.c (sh_gdbarch_init): Update.
5928 * s390-tdep.c (s390_gdbarch_init): Update.
5929 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5930 * ns32k-tdep.c: Update.
5931 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5932 * mips-tdep.c (mips_gdbarch_init): Update.
5933 * mcore-tdep.c (mcore_gdbarch_init): Update.
5934 * m68k-tdep.c (m68k_gdbarch_init): Update.
5935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5936 * ia64-tdep.c (ia64_gdbarch_init): Update.
5937 * hppa-tdep.c (hppa_gdbarch_init): Update.
5938 * h8300-tdep.c (h8300_gdbarch_init): Update.
5939 * frv-tdep.c (frv_gdbarch_init): Update.
5940 * cris-tdep.c (cris_gdbarch_init): Update.
5941 * avr-tdep.c (avr_gdbarch_init): Update.
5942 * alpha-tdep.c (alpha_gdbarch_init): Update.
5943 * arm-tdep.c (arm_gdbarch_init): Update.
5944
b060cbea
AC
59452003-06-13 Andrew Cagney <cagney@redhat.com>
5946
5947 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5948 mips_o32_use_struct_convention with always_use_struct_convention.
5949
0fc9922a
DC
59502003-06-12 David Carlton <carlton@kealia.com>
5951
5952 * cp-namespace.c (cp_set_block_scope): Comment out
5953 processing_has_namespace_info branch.
5954
1fd35568
JB
59552003-06-12 Jim Blandy <jimb@redhat.com>
5956
f470a70a
JB
5957 Recognize and skip 64-bit PowerPC Linux linkage functions.
5958 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5959 insn_pattern, insns_match_pattern, d_field, ds_field): New
5960 functions, macros, and types for working with PPC instructions.
5961 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5962 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5963 ppc64_skip_trampoline_code): New functions, variables, and macros
5964 for recognizing and skipping linkage functions.
5965 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5966 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5967
49ff75ad
JB
5968 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5969 register offsets for both the 32- and 64-bit interfaces.
5970
bd918c83
JB
5971 Actually finish the job started by my change of 2003-05-29.
5972 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5973 other #definition of this.
5974 (ppc_linux_skip_trampoline_code): Remove declaration.
5975 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5976 static.
5977 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5978 method for GDBARCH.
5979
5980 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5981 'long' on ppc64-*-linux*.
5982
f8c59253
JB
5983 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5984 isn't #defined, assume the register doesn't exist: act as if
5985 tdep->ppc_mq_regnum were -1.
5986
8fbb30b1
JB
5987 * configure.host, configure.tgt: Add entries for
5988 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5989 powerpc/linux.mt.
5990 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5991 New files.
5992
1fd35568
JB
5993 * arch-utils.c (always_use_struct_convention): New function.
5994 * arch-utils.h (always_use_struct_convention): New prototype.
5995 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5996 (alpha_gdbarch_init): Register always_use_struct_convention,
5997 instead of alpha_use_struct_convention.
5998 * cris-tdep.c (cris_use_struct_convention): Delete.
5999 (cris_gdbarch_init): Register always_use_struct_convention,
6000 instead of cris_use_struct_convention.
6001 * frv-tdep.c (frv_use_struct_convention): Delete.
6002 (frv_gdbarch_init): Register always_use_struct_convention,
6003 instead of frv_use_struct_convention.
6004 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6005 (h8300_gdbarch_init): Register always_use_struct_convention,
6006 instead of h8300_use_struct_convention.
e3305dd9 6007 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6008 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6009 instead of mips_o32_use_struct_convention.
6010
e14e6e9c
AC
60112003-06-12 Andrew Cagney <cagney@redhat.com>
6012
6013 * wince.c: Include "mips-tdep.h".
6014 * mips-tdep.h (mips_next_pc): Declare.
6015 * mcore-tdep.c: Make more local functions static.
6016 * Makefile.in (wince.o): Update dependencies.
6017
2335f48e
DC
60182003-06-12 David Carlton <carlton@kealia.com>
6019
6020 * symtab.c (lookup_symbol_aux_minsyms): Replace
6021 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6022 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6023 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6024 SYMBOL_NATURAL_NAME.
6025
f70a7d61
AS
60262003-06-12 Andreas Schwab <schwab@suse.de>
6027
6028 * Makefile.in (tuiDisassem.o): Update dependencies.
6029
b6429628
DC
60302003-06-12 David Carlton <carlton@bactrian.org>
6031
6032 * symtab.h: Delete declaration of make_symbol_overload_list.
6033 Add declaration of lookup_partial_symbol.
6034 * symtab.c (remove_params): Move to cp-support.c.
6035 (overload_list_add_symbol, make_symbol_overload_list)
6036 (sym_return_val_size, sym_return_val_index): Ditto.
6037 (lookup_partial_symbol): Make extern.
6038 * cp-support.h: Add declaration of make_symbol_overload_list.
6039 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6040 symtab.h, and block.h.
6041 (remove_params): Move here from symtab.c.
6042 (overload_list_add_symbol, make_symbol_overload_list)
6043 (sym_return_val_size, sym_return_val_index): Ditto.
6044 * valops.c: Include cp-support.h.
6045 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6046 frame_h, and block_h.
6047 (valops.o): Depend on cp_support_h.
6048
084edea5
CV
60492003-06-12 Corinna Vinschen <vinschen@redhat.com>
6050
6051 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6052 substitute by NUM_REGS throughout.
6053 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6054 (h8300s_register_name): New function for H8S registers.
6055 (h8300sx_register_name): Ditto for H8SX registers.
6056 (h8300_print_register): Revise register printing, avoid depending
6057 on 32 bit long.
0261a0d0 6058 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6059 (h8300h_register_byte): New function for any other architecture.
6060 (h8300_register_raw_size): Remove.
6061 (h8300_register_virtual_type): Revise to return actually useful
6062 type.
6063 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6064 (h8300h_extract_struct_value_address): New function for any other
6065 architecture.
6066 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6067 set_gdbarch_register_name, set_gdbarch_register_byte,
6068 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6069 Remove calls to set_gdbarch_deprecated_register_size,
6070 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6071 set_gdbarch_deprecated_max_register_raw_size,
6072 set_gdbarch_register_virtual_size and
6073 set_gdbarch_deprecated_max_register_virtual_size entirely.
6074 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6075 set_gdbarch_long_double_bit.
6076
06194148
JJ
60772003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6078
8ffd9b1b
AJ
6079 * doublest.c (convert_doublest_to_floatformat): When dealing
6080 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6081 processing a full 32 bits of mantissa.
6082
de4f826b
DC
60832003-06-11 David Carlton <carlton@bactrian.org>
6084
6085 * dictionary.h: New.
6086 * dictionary.c: New.
6087 * block.h: Add opaque declaration for struct dictionary.
6088 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6089 'sym' members.
6090 (BLOCK_DICT): New macro.
6091 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6092 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6093 BLOCK_SHOULD_SORT.
6094 (ALL_BLOCK_SYMBOLS): Update definition.
6095 * Makefile.in (SFILES): Add dictionary.c.
6096 (dictionary_h): New.
6097 (COMMON_OBS): Add dictionary.o.
6098 (dictionary.o): New.
6099 (ada-lang.o): Depend on dictionary_h.
6100 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6101 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6102 (mi-cmd-stack.o): Ditto.
6103 (gdbtk-cmds.o): Update dependencies.
6104 (gdbtk-stack.o): Ditto.
6105 * ada-lang.c: Include dictionary.h.
6106 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6107 (fill_in_ada_prototype, debug_print_block): Ditto.
6108 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6109 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6110 'is_sorted'.
6111 * mdebugread.c: Include dictionary.h.
6112 (struct parse_stack): Delete 'maxsyms' member.
6113 (parse_symbol): Update calls to new_block. Delete calls to
6114 shrink_block. Use dictionary methods.
6115 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6116 Update calls to new_symtab. Don't maintain maxsyms data.
6117 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6118 (add_symbol): Just call dict_add_symbol.
6119 (new_symtab): Delete 'maxsyms' argument.
6120 (new_symtab): Update calls to new_block.
6121 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6122 (shrink_block): Delete function.
6123 (fixup_sigtramp): Update call to new_block. Add symbol via
6124 dict_add_symbol.
6125 * jv-lang.c: Include dictionary.h.
6126 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6127 appropriately. Set class_symtab->free_func. Make sure the
6128 blockvector is big enough to hold two blocks.
6129 (add_class_symtab_symbol): Use dictionary methods.
6130 (free_class_block): New function.
6131 (type_from_class): Replace explicit iteration by
6132 ALL_BLOCK_SYMBOLS.
6133 * symtab.h (struct symtab): Replace 'free_ptr' method by
6134 'free_func'.
6135 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6136 sort_symtab_syms.
6137 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6138 sort_symtab_syms.
6139 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6140 Include dictionary.h.
6141 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6142 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6143 sort_symtab_syms.
6144 * objfiles.c: Include dictionary.h.
6145 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6146 * buildsym.c: Include dictionary.h.
6147 (finish_block): Use dictionary methods.
6148 (end_symtab): Set free_func to NULL, not free_ptr.
6149 * tracepoint.c: Include dictionary.h.
6150 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6151 (scope_info): Ditto.
6152 * stack.c: Include dictionary.h.
6153 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6154 (print_block_frame_labels, print_frame_arg_vars)
6155 (print_frame_args): Ditto.
6156 * symmisc.c (free_symtab_block): Use dictionary methods.
6157 (dump_symtab): Ditto.
6158 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6159 Include dictionary.h.
6160 * symfile.h: Delete declarations of sort_block_syms,
6161 sort_symtab_syms.
6162 * symfile.c (sort_block_syms): Delete.
6163 (sort_symtab_syms): Delete.
6164 * symtab.c: Include dictionary.h.
6165 (lookup_block_symbol): Use dictionary iterators.
6166 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6167 (search_symbols, make_symbol_completion_list): Ditto.
6168 (make_symbol_overload_list): Ditto.
6169 * valops.c (value_of_local): Use dict_empty.
6170 Include dictionary.h.
6171
a31f978c
JB
61722003-06-11 J. Brobecker <brobecker@gnat.com>
6173
6174 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6175
526e70c0
DC
61762003-06-11 David Carlton <carlton@bactrian.org>
6177
6178 * block.h (BLOCK_SHOULD_SORT): Delete.
6179 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6180 blocks.
6181 * ada-lang.c (ada_add_block_symbols): Ditto.
6182 * symfile.c (sort_block_syms): Delete.
6183 (sort_symtab_syms): Ditto.
6184 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6185 declarations.
6186 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6187 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6188 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6189 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6190 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6191 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6192 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6193
33c08150
JJ
61942003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6195
8ffd9b1b 6196 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6197 bits to 128.
6198
781a750d
AC
61992003-06-11 Andrew Cagney <cagney@redhat.com>
6200
6201 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6202 REGISTER_CONVERTIBLE.
6203 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6204 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6205 * gdbarch.h, gdbarch.c: Re-generate.
6206 * arch-utils.h (deprecated_register_convertible_not): Rename
6207 generic_register_convertible_not.
6208 * arch-utils.c (deprecated_register_convertible_not): Rename
6209 generic_register_convertible.
6210 (legacy_convert_register_p, legacy_register_to_value): Update.
6211 * sh-tdep.c (sh64_push_arguments): Update.
6212 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6213 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6214 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6215 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6216 * arch-utils.c (legacy_value_to_register): Update.
6217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6218 (rs6000_register_convert_to_raw): Make parameter "from" const.
6219 * mips-tdep.c (mips_gdbarch_init): Update.
6220 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6221 * infcmd.c (default_print_registers_info): Update.
6222 * ia64-tdep.c (ia64_gdbarch_init): Update.
6223 (ia64_register_convert_to_raw): Make parameter "from" const.
6224 * i386-tdep.c (i386_gdbarch_init): Update.
6225 (i386_register_convert_to_raw): Update.
6226
cd90e54f
AC
62272003-06-11 Andrew Cagney <cagney@redhat.com>
6228
6229 * remote-fileio.c: Include "remote-fileio.h".
6230 * Makefile.in (remote-fileio.o): Update dependencies.
6231 (remote_fileio_h): Fix typo.
6232
a78f21af
AC
62332003-06-11 Andrew Cagney <cagney@redhat.com>
6234
6235 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6236 (xstormy16_save_dummy_frame_tos): Make static.
6237 (_initialize_xstormy16_tdep): Add declaration.
6238 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6239 * v850-tdep.c: Make local functions static.
6240 (_initialize_v850_tdep): Add declaration.
6241 * sparc-tdep.c: Make local functions static.
6242 (_initialize_sparc_tdep): Add declaration.
6243 * sh-tdep.c: Make local functions static.
6244 (_initialize_sh_tdep): Add declaration.
6245 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6246 * s390-tdep.c: Make local functions static.
6247 (_initialize_s390_tdep): Add declaration.
6248 * dbxread.c (find_stab_function_addr): Make static.
6249 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6250 * ocd.c (_initialize_remote_ocd): Add declaration.
6251 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6252 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6253 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6254 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6255 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6256 * remote-array.c (_initialize_array): Add declaration.
6257 (_initialize_remote_monitors): Add declaration.
6258 * remote-mips.c: Make local functions static.
6259 (_initialize_remote_mips): Add declaration.
6260 * mcore-tdep.c: Make all local functions static.
6261 (_initialize_mcore_tdep): Add declaration.
6262 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6263 * abug-rom.c (_initialize_abug_rom): Add declaration.
6264 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6265 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6266 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6267 * remote-est.c (_initialize_est): Add declaration.
6268 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6269 (m68hc11_call_dummy_address): Make static.
6270 * ia64-tdep.c: Make local functions static.
6271 (_initialize_ia64_tdep): Add declaration.
6272 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6273 * monitor.c (monitor_wait_filter): Make static.
6274 (_initialize_remote_monitors): Add declaration.
6275 * remote-hms.c (_initialize_remote_hms): Add declaration.
6276 * remote-e7000.c (fetch_regs_from_dump): Make static.
6277 (expect_n): Make static.
6278 (_initialize_remote_e7000): Add declaration.
6279 * ser-e7kpc.c: Always include "defs.h".
6280 (_initialize_ser_e7000pc): Add declaration.
6281 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6282 * cris-tdep.c: Make all but one function static.
6283 (_initialize_cris_tdep): Add declaration.
6284 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6285 * solib.c (update_solib_list): Make static.
6286 (_initialize_solib): Add declaration.
6287 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6288 (_initialize_avr_tdep): Add declaration.
6289 * remote-rdi.c (voiddummy): Make static.
6290 (_initialize_remote_rdi): Add declaration.
6291 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6292 * remote-rdp.c (send_rdp): Make static.
6293 (_initialize_remote_rdp): Add declaration.
6294 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6295
cbcdb1f5
CV
62962003-06-11 Corinna Vinschen <vinschen@redhat.com>
6297
6298 * remote-fileio.c: Make ari happy.
6299
a191ea8d
JB
63002003-06-10 J. Brobecker <brobecker@gnat.com>
6301
6302 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6303 fetching the trailing bytes of the buffer we are about to write.
6304
0ef75e11
AC
63052003-06-10 Andrew Cagney <cagney@redhat.com>
6306
6307 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6308 * Makefile.in (remote-fileio.o): Update dependencies.
6309 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6310 include <setjmp.h>, or <sys/types.h> conditional on USG.
6311 (remote_fio_jmp_buf): Delete global variable.
6312
449092f6 63132003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6314 Martin M. Hunt <hunt@redhat.com>
449092f6 6315
559fa028
AC
6316 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6317 (SFILES): Add remote-fileio.c.
6318 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6319 dependencies for building remote.o.
449092f6
CV
6320 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6321 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6322 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6323 static storage class.
6324 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6325 'F' packet.
6326 (_initialize_remote): Call initialize_remote_fileio().
6327 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6328 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6329 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6330 (captured_main): Initialize new ui_files.
6331 * ui-file.c: Add read and fgets input functions.
6332 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6333 (null_file_read): New function.
6334 (ui_file_read): New function.
6335 (set_ui_file_read): New function.
6336 (stdio_file_read): New function.
6337 * ui-file.h: New type ui_file_read_ftype.
6338 (set_ui_file_read): Declare.
6339 (ui_file_read): Declare.
6340
248de703
AC
63412003-06-09 Andrew Cagney <cagney@redhat.com>
6342
6343 * frame.h (deprecated_unwind_get_saved_register): Rename
6344 generic_unwind_get_saved_register, update comments.
6345 * mips-tdep.c (mips_get_saved_register): Update.
6346 * frame.c (deprecated_unwind_get_saved_register): Update.
6347
0ed8aa57
AC
63482003-06-09 Andrew Cagney <cagney@redhat.com>
6349
6350 * vax-tdep.c (vax_frame_locals_address): Delete function.
6351 (vax_gdbarch_init): Do not set frame_locals_address.
6352 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6353 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6354 * s390-tdep.c (s390_frame_args_address): Delete function.
6355 (s390_gdbarch_init): Do not set frame_args_address or
6356 frame_locals_address.
6357 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6358 (ns32k_gdbarch_init): Do not set frame_locals_address.
6359 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6360 (hppa_frame_locals_address): Delete function.
6361 (hppa_gdbarch_init): Do not set frame_args_address, or
6362 frame_locals_address.
6363 * arm-tdep.c (arm_frame_args_address): Delete.
6364 (arm_frame_locals_address): Delete.
6365 (arm_gdbarch_init): Do not set frame_args_address, or
6366 frame_locals_address.
6367
983a287a
AC
63682003-06-09 Andrew Cagney <cagney@redhat.com>
6369
6370 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6371 * gdbarch.h, gdbarch.c: Re-generate.
6372 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6373 * arch-utils.c (frame_num_args_unknown): Delete function.
6374 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6375 (frame_info): Use FRAME_NUM_ARGS_P.
6376 * arm-tdep.c (arm_frame_num_args): Delete function.
6377 (arm_gdbarch_init): Do not set frame_num_args.
6378 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6379 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6380 (hppa_gdbarch_init): Do not set frame_num_args.
6381 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6383 frame_num_args to default frame_num_args_unknown.
6384 * v850-tdep.c (v850_gdbarch_init): Ditto.
6385 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6386 * sh-tdep.c (sh_gdbarch_init): Ditto.
6387 * s390-tdep.c (s390_gdbarch_init): Ditto.
6388 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6389 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6390 * mips-tdep.c (mips_gdbarch_init): Ditto.
6391 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6392 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6394 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6395 * i386-tdep.c (i386_gdbarch_init): Ditto.
6396 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6397 * frv-tdep.c (frv_gdbarch_init): Ditto.
6398 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6399 * cris-tdep.c (cris_gdbarch_init): Ditto.
6400 * avr-tdep.c (avr_gdbarch_init): Ditto.
6401 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6402
8d3b0994
AC
64032003-06-09 Andrew Cagney <cagney@redhat.com>
6404
6405 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6406 (print_frame_args): Moved to "stack.c".
6407 * stack.c: Include "gdb_assert.h".
6408 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6409 (print_frame_args): Moved from "printcmd.c".
6410 * frame.h (print_frame_args): Delete declaration.
6411 * Makefile.in (stack.o): Update dependencies.
6412
25e3a86b
AC
64132003-06-08 Andrew Cagney <cagney@redhat.com>
6414
6415 * frame.c (get_prev_frame): Remove reference to
6416 frame_args_address_correct in comments.
6417 * frame-base.c (default_frame_args_address): Delete code
6418 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6419 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6420 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6421 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6422 (vax_frame_args_address_correct): Delete declaration.
6423
a9e5fdc2
AC
64242003-06-08 Andrew Cagney <cagney@redhat.com>
6425
6426 * gdbarch.sh (UNWIND_SP): Add.
6427 * gdbarch.h, gdbarch.c: Re-generate.
6428 * frame.c (frame_sp_unwind): New function.
6429 (get_frame_sp): New function.
6430 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6431 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6432 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6433 value.
6434 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6435 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6436
8983bd83
AC
64372003-06-08 Andrew Cagney <cagney@redhat.com>
6438
7fec2c59
AC
6439 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6440 REMOTE_BREAKPOINT.
6441 * remote.c: Update.
6442 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6443 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6444 * config/m68k/tm-sun3.h: Update.
6445 * config/m68k/tm-m68klynx.h: Update.
6446 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6447
8983bd83
AC
6448 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6449 trad_frame". Update comments.
6450 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6451 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6452 (trad_frame_register_value, trad_frame_prev_register): Update.
6453
b9362cc7
AC
64542003-06-08 Andrew Cagney <cagney@redhat.com>
6455
6456 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6457 from GCC's acinclude.m4.
6458 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6459 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6460 * main.c (error_init): Delete declaration.
6461 * defs.h (error_init): Declare.
6462 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6463 (rs6000_convert_from_func_ptr_addr): Make static.
6464 (_initialize_rs6000_tdep): Add declaration.
6465 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6466 (show_commands, set_verbose, show_history): Delete declaration.
6467 * top.h (set_verbose): Add declaration.
6468 (show_history, set_history, show_commands): Add declaration.
6469 (do_restore_instream_cleanup): Add declaration.
6470 * objc-lang.c (specialcmp): Make static.
6471 (print_object_command): Make static.
6472 (find_objc_msgsend): Make static.
6473 (find_objc_msgcall_submethod_helper): Make static.
6474 (find_objc_msgcall_submethod): Make static.
6475 (_initialize_objc_language): Add declaration.
6476 (find_implementation_from_class): Make static.
6477 (find_implementation): Make static.
6478 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6479 * objc-lang.h (lookup_struct_typedef): Add declaration.
6480 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6481 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6482 (do_restore_user_call_depth): Make static.
6483 (do_restore_instream_cleanup): Delete declaration.
6484 (dont_repeat): Delete declaration.
6485 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6486 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6487 * reggroups.c (_initialize_reggroup): Add declaration.
6488 * cp-support.c (_initialize_cp_support): Add declaration.
6489 * cp-abi.c (_initialize_cp_abi): Add declaration.
6490 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6491 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6492 (_initialize_gnu_v3_abi): Add declaration.
6493 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6494 (_initialize_gnu_v2_abi): Add declaration.
6495 * frame-base.c (_initialize_frame_base): Add declaration.
6496 * doublest.c (floatformat_from_length): Make static.
6497 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6498 * frame.c (create_sentinel_frame): Make static.
6499 (_initialize_frame): Add declaration.
6500 * top.c (do_catch_errors): Make static.
6501 (gdb_rl_operate_and_get_next_completion): Make static.
6502 * typeprint.c: Include "typeprint.h".
6503 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6504 (sentinel_frame_this_id): Make static.
6505 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6506 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6507 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6508 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6509 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6510 * maint.c (maintenance_print_architecture): Make static.
6511 * signals/signals.c (_initialize_signals): Add declaration.
6512 * std-regs.c (_initialize_frame_reg): Add declaration.
6513 * jv-exp.y (push_variable): ISO C definition.
6514 (push_qualified_expression_name): Ditto.
6515 * memattr.c (_initialize_mem): Add declaration.
6516 * remote.c (remote_check_watch_resources): Make static.
6517 (remote_stopped_by_watchpoint): Make static.
6518 (remote_stopped_data_address): Make static.
6519 * d10v-tdep.c (nr_dmap_regs): Make static.
6520 (a0_regnum): Make static.
6521 (d10v_frame_unwind_cache): Make static.
6522 (d10v_frame_p): Make static.
6523 * osabi.c (show_osabi): Make static.
6524 (_initialize_gdb_osabi): Add extern declaration.
6525 * gdbtypes.c (make_qualified_type): Make static.
6526 (safe_parse_type): Make static.
6527 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6528 * macrotab.c (macro_bcache_free): Make static.
6529 * interps.c (interp_set_quiet): Make static.
6530 (interpreter_exec_cmd): Make static.
6531 * stack.h (select_frame_command): New file.
6532 * stack.c: Include "stack.h".
6533 (select_frame_command_wrapper): Delete function.
6534 (select_frame_command): Make global.
6535 * infcall.c: Include "infcall.h".
6536 * linespec.c: Include "linespec.h".
6537 * symfile.c (sections_overlap): Make static.
6538 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6539 * charset.c (_initialize_charset): Add missing prototype.
6540 * regcache.c (init_legacy_regcache_descr): Make static.
6541 (do_regcache_xfree): Make static.
6542 (regcache_xfer_part): Make static.
6543 (_initialize_regcache): Add missing prototype.
6544 * breakpoint.c (parse_breakpoint_sals): Make static.
6545 (breakpoint_sals_to_pc): Make static.
6546 * interps.h (clear_interpreter_hooks): ISO C declaration.
6547 * Makefile.in (stack_h): Define.
6548 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6549 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6550
a0f267c7
AC
65512003-06-08 Andrew Cagney <cagney@redhat.com>
6552
6553 * Makefile.in (d10v-tdep.o): Update dependencies.
6554 (SFILES): Add trad-frame.c.
6555 (trad_frame_h): Define.
6556 (COMMON_OBS): Add trad-frame.o.
6557 (trad-frame.o): Specify dependencies.
6558 * d10v-tdep.c: Include "trad-frame.h".
6559 (saved_regs_unwinder): Delete function.
6560 (d10v_frame_prev_register): Use trad_frame_prev_register.
6561 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6562 trad_frame", delete "regs" and "prev_sp".
6563 (prologue_find_regs): Use trad-frame.
6564 * trad-frame.h, trad-frame.c: New files.
6565
4538b4f4
MK
65662003-06-08 Mark Kettenis <kettenis@gnu.org>
6567
6568 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6569
a0273b2f
AF
65702003-06-07 Adam Fedor <fedor@gnu.org>
6571
6572 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6573 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6574 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6575 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6576 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6577 Use it.
6578
3a6c3343
AC
65792003-06-07 Andrew Cagney <cagney@redhat.com>
6580
6581 * symfile.h: Re-indent, clean up comments.
6582
b46e02f6
AC
65832003-06-07 Andrew Cagney <cagney@redhat.com>
6584
6585 * inferior.h (deprecated_write_sp): Replace
6586 generic_target_write_sp.
6587 * regcache.c (deprecated_write_sp): Replace
6588 generic_target_write_sp.
6589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6590 * vax-tdep.c (vax_gdbarch_init): Update.
6591 * v850-tdep.c (v850_gdbarch_init): Update.
6592 * sparc-tdep.c (sparc_gdbarch_init): Update.
6593 * sh-tdep.c (sh_gdbarch_init): Update.
6594 * s390-tdep.c (s390_gdbarch_init): Update.
6595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6596 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6597 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6598 * mcore-tdep.c (mcore_gdbarch_init): Update.
6599 * m68k-tdep.c (m68k_gdbarch_init): Update.
6600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6601 * ia64-tdep.c (ia64_gdbarch_init): Update.
6602 * h8300-tdep.c (h8300_gdbarch_init): Update.
6603 * frv-tdep.c (frv_gdbarch_init): Update.
6604 * cris-tdep.c (cris_gdbarch_init): Update.
6605 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6606
a42e117c
AC
66072003-06-07 Andrew Cagney <cagney@redhat.com>
6608
6609 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6610 Assert that PC_REGNUM is valid.
6611 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6612
bd1ce8ba
AC
66132003-06-07 Andrew Cagney <cagney@redhat.com>
6614
6615 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6616 * gdbarch.h, gdbarch.c: Regenerate.
6617 * mn10300-tdep.c: Include "gdb_assert.h".
6618 (mn10300_read_fp): New function.
6619 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6620 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6621 * ia64-tdep.c: Include "gdb_assert.h".
6622 (ia64_read_fp): New function.
6623 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6624 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6625 * regcache.c (generic_target_read_sp): Delete function.
6626 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6627 * inferior.h (generic_target_read_sp): Delete declaration.
6628 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6629 generic_target_read_sp.
6630 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6631 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6632 * sh-tdep.c (sh_gdbarch_init): Ditto.
6633 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6634 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6635
ec5cbaec
AC
66362003-06-07 Andrew Cagney <cagney@redhat.com>
6637
6638 * gdbarch.sh: Comment each field of startup_gdbarch.
6639 * gdbarch.h, gdbarch.c: Re-generate.
6640
cde9ea48
AC
66412003-06-07 Andrew Cagney <cagney@redhat.com>
6642
6643 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6644 * gdbarch.h, gdbarch.c: Re-generate.
6645 * regcache.c: Update comments on read_pc et.al.
6646 (generic_target_read_pc): Delete function.
6647 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6648 * inferior.h (generic_target_read_pc): Delete declaration.
6649 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6650 generic_target_read_pc.
6651 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6652 * sh-tdep.c (sh_gdbarch_init): Ditto.
6653 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6655
9a90a780
AC
66562003-06-07 Andrew Cagney <cagney@redhat.com>
6657
6658 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6659 "index" with "special_local_sect". Use strcmp instead of STREQ.
6660 Append period to coments.
6661
a39a16c4
MM
66622003-06-06 Mark Mitchell <mark@codesourcery.com>
6663
6664 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6665 (elfstab_offset_sections): Likewise.
6666 * gdb-stabs.h (stab_section_info): Likewise.
6667 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6668 * objfiles.c (objfile_relocate): Likewise.
6669 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6670 * remote.c (get_offsets): Likewise.
6671 (remote_cisco_objfile_relocate): Likewise.
6672 * somread.c (som_symfile_offsets): Likewise.
6673 * symfile.c (alloc_section_addr_info): New function.
6674 (build_section_addr_info_from_section_tab): Use it.
6675 (free_section_addr_info): Adjust.
6676 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6677 (syms_from_objfile): Allocate local_addr dynamically.
6678 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6679 dynamically.
6680 (add_symbol_file_command): Allocate sect_opts dynamically.
6681 (reread_symbols): Avoid use of SECT_OFF_MAX.
6682 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6683 (alloc_section_addr_info): Declare it.
6684 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6685 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6686 dynamically.
6687 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6688
20c6c2f8
AC
66892003-06-06 Andrew Cagney <cagney@redhat.com>
6690
6691 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6692 (d10v_frame_unwind_cache): Do not set "return_pc".
6693
884a26c8
MS
66942003-06-06 Michael Snyder <msnyder@redhat.com>
6695
6696 * h8300-tdep.c: Make tidy (long lines).
6697
088ce440
ML
66982003-06-06 Michal Ludvig <mludvig@suse.cz>
6699
8ffd9b1b 6700 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6701 to regcache_collect().
6702
7d773d96
JB
67032003-06-05 J. Brobecker <brobecker@gnat.com>
6704
6705 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6706 pc_in_sigtramp multiarch method.
6707 (hppa_hpux_som_init_abi): Use it.
6708 (hppa_hpux_elf_init_abi): Likewise.
6709 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6710 macro has been multiarched.
6711 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6712 macro here, as hppa64 isn't multiarched yet.
6713
1df6926e
AC
67142003-06-05 Andrew Cagney <cagney@redhat.com>
6715
6716 * Makefile.in (value_h): Add $(frame_h).
6717 * value.h: Include "frame.h".
6718 (struct value): Replace "frame_addr" with "frame_id".
6719 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6720 * values.c (allocate_value): Use VALUE_FRAME_ID.
6721 (value_copy): Use VALUE_FRAME_ID.
6722 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6723 * valops.c (value_assign): Update. Use frame_find_by_id.
6724
6b53acc6
ML
67252003-06-05 Michal Ludvig <mludvig@suse.cz>
6726
6727 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6728 in each pass.
6729
4d9850d3
JJ
67302003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6731
6732 * thread-db.c (check_event): For create/death event breakpoints,
6733 loop through all messages to ensure that we read the message
6734 corresponding to the breakpoint we are at.
6735
8efca6ba
MS
67362003-06-04 Michael Snyder <msnyder@redhat.com>
6737
6738 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6739
0912c7f2
MK
67402003-06-04 Mark Kettenis <kettenis@gnu.org>
6741
6742 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6743 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6744 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6745 when handling .eh_frame sections.
6746
4e370325
JB
67472003-06-04 J. Brobecker <brobecker@gnat.com>
6748
6749 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6750 prepare_to_proceed procedure instead of the hppa-specific one.
6751 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6752
b757528f 67532003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6754
b757528f
JJ
6755 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6756 * config.in: Regenerated.
6757 * configure.in: Add test for syscall function and check for
6758 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6759 * configure: Regenerated.
6760 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6761 <sys/syscall.h>.
6762 (kill_lwp): New function that uses tkill syscall or
6763 uses kill, depending on whether threading model is nptl or not.
6764 All callers of kill() changed to use kill_lwp().
6765 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6766 see if all threads have already exited in the nptl model.
6767 (stop_and_resume_callback): New callback function used by the
6768 lin_lwp_wait thread exit handling code.
6769 (stop_wait_callback): Check for threads already having exited and
6770 delete such threads fromt the lwp list when discovered.
6771 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6772
b757528f
JJ
6773 Roland McGrath <roland@redhat.com>
6774 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6775 nptl libthread_db.
6776
087779b1
RH
67772003-06-03 Richard Henderson <rth@redhat.com>
6778
b21fd293
RH
6779 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6780 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6781 (alpha_sigtramp_frame_prev_register): Likewise.
6782 (alpha_heuristic_frame_prev_register): Likewise.
6783 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6784
8ffd9b1b 6785 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6786 alpha-specific register id names.
6787 (alpha_mdebug_frame_unwind_cache): Likewise.
6788 (alpha_mdebug_frame_prev_register): Likewise.
6789
baa490c4
RH
67902003-06-03 Richard Henderson <rth@redhat.com>
6791
6792 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6793 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6794 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6795 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6796 unwind routines.
6797 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6798 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6799 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6800
6801 * alpha-linux-tdep.c: Remove unnecessary includes.
6802 * Makefile.in (alpha-linux-tdep.o): Update.
6803
68042003-06-03 Richard Henderson <rth@redhat.com>
6805
6806 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6807 (alphabsd_fill_fpreg): Likewise.
6808
f534e522
JB
68092003-06-03 J. Brobecker <brobecker@gnat.com>
6810
6811 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6812 references to struct frame_info fields by calls to the equivalent
6813 accessors. Necessary now that frame_info is opaque.
6814
4035536b
JB
68152003-06-03 J. Brobecker <brobecker@gnat.com>
6816
6817 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6818 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6819 structure, field no longer exists.
6820
0bd79c5c
JB
68212003-06-03 J. Brobecker <brobecker@gnat.com>
6822
6823 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6824 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6825
37bb6d9f
JB
68262003-06-03 J. Brobecker <brobecker@gnat.com>
6827
6828 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6829 references to struct frame_info fields by calls to the equivalent
6830 accessors. Necessary now that frame_info is opaque.
6831
852ee05c
JB
68322003-06-03 J. Brobecker <brobecker@gnat.com>
6833
6834 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6835 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6836 structure, field no longer exists.
6837
7d58c67d
TR
68382003-06-03 Theodore A. Roth <troth@openavr.org>
6839
8ffd9b1b 6840 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
6841 accumulation of the size of all registers instead of blindly using
6842 DEPRECATED_REGISTER_BYTES.
6843
0a48e7e8
MS
68442003-06-03 Michael Snyder <msnyder@redhat.com>
6845
6846 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6847 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6848 for h8300sx.
6849
9798ab0d
JB
68502003-06-03 J. Brobecker <brobecker@gnat.com>
6851
6852 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6853 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6854
00b037e2
AC
68552003-06-03 Andrew Cagney <cagney@redhat.com>
6856
6857 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6858 (sparc_convert_to_raw): Delete function.
6859 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6860 register_convert_to_virtual.
6861
043b2f77
JJ
68622003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6863
6864 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6865 layer if not dealing with a statically-linked threaded program.
6866
f43caff8
KW
68672003-06-03 Kris Warkentin <kewarken@qnx.com>
6868
6869 * solib.c (solib_open): Update comment to reflect actual search order.
6870
ae1e7417
AC
68712003-06-03 Andrew Cagney <cagney@redhat.com>
6872
6873 * frame.c (get_frame_memory_signed): New function.
6874 (get_frame_memory, get_frame_memory_unsigned): New function.
6875 (get_frame_arch): New function.
6876 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6877 (get_frame_memory, get_frame_unsigned_memory): Declare.
6878 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6879 get_frame_memory_unsigned and get_frame_arch.
6880 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6881
cb123844
RG
68822003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6883
6884 * MAINTAINERS (write after approval): Add myself.
6885
1bb792e9
JB
68862003-06-03 Jim Blandy <jimb@redhat.com>
6887
6888 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6889 elements of gregset_t are 64 bits each, but access registers
6890 are still 32 bits, so they're packed two per gregset_t
6891 element. Unpack/pack them properly.
6892
aee8d8ba
DC
68932003-06-02 David Carlton <carlton@bactrian.org>
6894
6895 * linespec.c (find_methods): Break out code into
6896 add_matching_methods and add_constructors.
6897 (add_matching_methods): New.
6898 (add_constructors): Ditto.
6899
bf7488d2
AC
69002003-06-02 Andrew Cagney <cagney@redhat.com>
6901
bf7488d2
AC
6902 * sparc-tdep.c (sparc_print_registers): Delete call to
6903 REGISTER_CONVERTIBLE.
6904 (sparc_gdbarch_init): Do not set register_convertible.
6905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6906 * frv-tdep.c (frv_gdbarch_init): Ditto.
6907 * cris-tdep.c (cris_gdbarch_init): Ditto.
6908
adedef68
EZ
69092003-06-02 Elena Zannoni <ezannoni@redhat.com>
6910
8ffd9b1b 6911 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
6912 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6913 (syms_from_objfile): Ditto.
6914
650fcc91
AS
69152003-06-03 Andreas Schwab <schwab@suse.de>
6916
6917 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6918 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6919
df4a182b
RH
69202003-06-02 Richard Henderson <rth@redhat.com>
6921
6922 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6923 a member of all_reggroup.
6924
c483c494
RH
69252003-06-02 Richard Henderson <rth@redhat.com>
6926
6927 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6928 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6929 (alpha_lds, alpha_sts): New.
6930 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 6931 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
6932 restructure and fail for type sizes other than 4 or 8.
6933 (alpha_value_to_register): Similarly.
6934 (alpha_extract_return_value): Use alpha_sts.
6935 (alpha_store_return_value): Use alpha_lds.
6936 (alpha_gdbarch_init): Update hooks.
6937
b38b6be2
RH
69382003-06-02 Richard Henderson <rth@redhat.com>
6939
6940 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6941 regnum identifiers.
6942 (alpha_sigtramp_register_address): Likewise.
6943
98a8e1e5
RH
69442003-06-02 Richard Henderson <rth@redhat.com>
6945
6946 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6947 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6948 * alpha-tdep.h: Declare them.
6949
6950 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6951 Remove zerobuf. Don't error on UNIQUE.
6952 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6953 (ALPHA_REGSET_UNIQUE): Provide default.
6954 (supply_gregset): Use alpha_supply_int_regs.
6955 (fill_gregset): Use alpha_fill_int_regs.
6956 (supply_fpregset): Use alpha_supply_fp_regs.
6957 (fill_fpregset): Use alpha_fill_fp_regs.
6958 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6959 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6960 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6961 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6962 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6963 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6964
67dfac52
RH
69652003-06-02 Richard Henderson <rth@redhat.com>
6966
f75d70cc
RH
6967 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6968
67dfac52
RH
6969 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6970 (alpha_store_return_value): Likewise.
6971
0cf566ec
DC
69722003-06-02 David Carlton <carlton@math.stanford.edu>
6973
6974 * block.c (contained_in): Add 'const' to arguments.
6975 (block_function): Ditto.
6976 * block.h: Update declarations for block_function and
6977 contained_in.
6978
cdef89d0
DC
69792003-06-02 David Carlton <carlton@math.stanford.edu>
6980
6981 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6982 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6983 * p-valprint.c (pascal_val_print): Ditto.
6984 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6985
72667056
RH
69862003-06-02 Richard Henderson <rth@redhat.com>
6987
98a8e1e5
RH
6988 * alpha-tdep.c (alpha_push_dummy_call): Use
6989 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6990
8ffd9b1b 6991 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6992 sign-extension of 32-bit values.
6993 (alpha_store_return_value): Similarly.
0ede8eca 6994
98a8e1e5
RH
6995 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6996 (alpha_extract_return_value): Likewise.
6997 (alpha_store_return_value): Likewise.
7b5e1cb3 6998
98a8e1e5
RH
6999 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7000 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7001
98a8e1e5
RH
7002 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7003 (alpha_extract_struct_value_address): Likewise.
7004 (alpha_store_return_value): Likewise.
7005 (alpha_store_struct_return): Remove.
7006 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7007
98a8e1e5
RH
7008 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7009 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7010 macros where appropriate.
7011 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7012 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7013
98a8e1e5
RH
7014 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7015 for SP, GP; void_func_ptr for PC; non-language-specific types
7016 for all others.
7017 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7018
6dd77b81
RH
70192003-06-02 Richard Henderson <rth@redhat.com>
7020
7021 * top.h (lim_at_start): Declare.
7022 * main.c (captured_main): Set it.
7023 * top.c (lim_at_start): Define.
7024 (command_loop): Use it instead of &environ.
7025 * event-top.c (command_handler): Likewise.
7026
f4dbdb54
JT
70272003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7028
7029 * mipsnbsd-tdep.c: Update copyright years.
7030 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7031
8f285956
RH
70322003-06-01 Richard Henderson <rth@redhat.com>
7033
98a8e1e5
RH
7034 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7035 (alpha-linux-tdep.o): Update dependencies.
7036 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7037 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7038
615967cb
RH
70392003-06-01 Richard Henderson <rth@redhat.com>
7040
98a8e1e5
RH
7041 * alpha-tdep.c (alpha_register_reggroup_p): New.
7042 (alpha_gdbarch_init): Register it.
615967cb 7043
b59661bd
AC
70442003-06-02 Andrew Cagney <cagney@redhat.com>
7045
7046 * dwarfread.c: Eliminate "register"
7047 (decode_die_type): Eliminate assignment within "if".
7048 (struct_type, decode_array_element_type): Ditto.
7049 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7050 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7051 (decode_modified_type, completedieinfo): Ditto.
7052 * block.c: Eliminate "register".
7053 (blockvector_for_pc_sect): Eliminate assignment within "if".
7054 * cp-support.h (struct symbol): Opaque declaration.
7055 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7056
5ef165c2
RH
70572003-06-01 Richard Henderson <rth@redhat.com>
7058
98a8e1e5
RH
7059 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7060 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7061
143985b7
AF
70622003-06-01 Adam Fedor <fedor@gnu.org>
7063
7064 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7065 * gdbarch.[ch]: Regenerate.
7066 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7067 (hppa_gdbarch_init): Set it in the gdbarch vector.
7068 * i386-tdep.c (i386_fetch_pointer_argument): New
7069 (i386_gdbarch_init): Set it into gdbarch.
7070 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7071 (rs6000_gdbarch_init): Set it in gdbarch.
7072 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7073 (sparc_gdbarch_init): Set it in gdbarch.
7074
ae0167b9
AC
70752003-06-01 Andrew Cagney <cagney@redhat.com>
7076
7c0b4a20
AC
7077 * defs.h (extract_address): Delete declaration.
7078 * findvar.c (extract_address): Delete function.
7079 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7080 extract_address with the inline equivalent,
7081 extract_unsigned_integer.
7082 (xstormy16_extract_struct_value_address): Ditto.
7083 (xstormy16_pointer_to_address): Ditto.
7084 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7085 * v850-tdep.c (v850_push_arguments): Ditto.
7086 (v850_extract_return_value): Ditto.
7087 (v850_extract_struct_value_address): Ditto.
7088 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7089 (sparcnbsd_get_longjmp_target_64): Ditto.
7090 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7091 (get_longjmp_target): Ditto.
7092 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7093 (sh64_extract_struct_value_address): Ditto.
7094 (sh_push_arguments): Ditto.
7095 (sh64_push_arguments): Ditto.
7096 * remote-vxsparc.c (vx_read_register): Ditto.
7097 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7098 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7099 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7100 * mipsv4-nat.c (get_longjmp_target): Ditto.
7101 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7102 * mips-nat.c (get_longjmp_target): Ditto.
7103 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7104 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7105 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7106 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7107 * irix5-nat.c (get_longjmp_target): Ditto.
7108 * irix4-nat.c (get_longjmp_target): Ditto.
7109 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7110 (ia64_push_arguments): Ditto.
7111 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7112 * h8300-tdep.c (h8300_push_arguments): Ditto.
7113 (h8300_store_return_value): Ditto.
7114 (h8300_extract_struct_value_address): Ditto.
7115 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7116 (frv_push_arguments): Ditto.
7117 * avr-tdep.c (avr_pointer_to_address): Ditto.
7118 (avr_push_arguments): Ditto.
7119 * arm-tdep.c (arm_push_dummy_call): Ditto.
7120 (arm_get_longjmp_target): Ditto.
7121 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7122 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7123 (alpha_get_longjmp_target): Ditto.
7124
ae0167b9
AC
7125 * solib-irix.c (extract_mips_address): Inline extract_address,
7126 replacing it with extract_signed_integer.
7127 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7128 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7129 (first_link_map_member, open_symbol_file_object): Ditto.
7130 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7131 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7132 (LM_NEXT, LM_NAME): Ditto.
7133
44d88583
RH
71342003-06-01 Richard Henderson <rth@redhat.com>
7135
98a8e1e5
RH
7136 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7137 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7138 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7139 (alpha_cannot_store_register): Likewise.
7140 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7141 * alpha-nat.c (supply_gregset): Likewise.
7142 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7143
310e9b6a
AC
71442003-06-01 Andrew Cagney <cagney@redhat.com>
7145
7146 * infcall.c (call_function_by_hand): Update comment on
7147 DEPRECATED_DUMMY_WRITE_SP.
7148
7149 * mips-tdep.c (mips_gdbarch_init): Do not set
7150 deprecated_dummy_write_sp.
7151 (mips_eabi_push_dummy_call): Set the SP register.
7152 (mips_o64_push_dummy_call): Set the SP register.
7153 (mips_o32_push_dummy_call): Set the SP register.
7154 (mips_n32n64_push_dummy_call): Set the SP register.
7155
5ab84872
RH
71562003-06-01 Richard Henderson <rth@redhat.com>
7157
98a8e1e5
RH
7158 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7159 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7160 (supply_gregset): Likewise.
7161 * alpha-tdep.c (alpha_store_return_value): Likewise.
7162 (alpha_get_longjmp_target): Likewise.
7163 (alpha_register_name): Constify array.
7164 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7165 deprecated_register_size, deprecated_register_bytes,
7166 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7167 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7168 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7169
09cc52fd
RH
71702003-06-01 Richard Henderson <rth@redhat.com>
7171
7172 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7173 from arg_reg_buffer to regcache to avoid double conversion.
7174
c7f16359
MK
71752003-06-01 Mark Kettenis <kettenis@gnu.org>
7176
7177 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7178 SP_REGNUM.
7179 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7180 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7181
7131cb6e
RH
71822003-06-01 Richard Henderson <rth@redhat.com>
7183
98a8e1e5
RH
7184 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7185 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7186
f3e0f90b
RH
71872003-06-01 Richard Henderson <rth@redhat.com>
7188
98a8e1e5
RH
7189 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7190 not overlapping PC_REGNUM.
f3e0f90b 7191
c88e30c0
RH
71922003-06-01 Richard Henderson <rth@redhat.com>
7193
98a8e1e5
RH
7194 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7195 alpha_push_arguments. Don't dump argument register data to
7196 the target stack. Fix float and 128-bit long double semantics.
7197 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7198 (alpha_fix_call_dummy): Remove.
7199 (alpha_call_dummy_words): Remove.
7200 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7201
f1a559ae
RH
72022003-06-01 Richard Henderson <rth@redhat.com>
7203
7204 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7205
5e045346
AC
72062003-06-01 Andrew Cagney <cagney@redhat.com>
7207
95404a3e
AC
7208 * mips-tdep.c (is_mips16_addr): New function.
7209 (make_mips16_addr, unmake_mips16_addr): New functions.
7210 (pc_is_mips16, mips_fetch_instruction): Use.
7211 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7212 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7213 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7214 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7215 TARGET_MIPS.
7216 * config/mips/tm-mips.h: Update copyright.
7217 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7218 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7219 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7220 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7221 (TM_PRINT_INSN_MACH): Delete.
7222 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7223
5e045346
AC
7224 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7225 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7226 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7227 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7228 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7229 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7230 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7231 mips*-*-riscos* and mips*-*-sysv* onto mips.
7232 * config/mips/mips64.mt: New file.
7233 * config/mips/mips.mt: New file.
7234 * config/mips/littlemips.mt: Delete file.
7235 * config/mips/decstation.mt: Delete file.
7236 * config/mips/vr4300el.mt: Delete file.
7237 * config/mips/vr5000el.mt: Delete file.
7238 * config/mips/vr5000.mt: Delete file.
7239 * config/mips/vr4100.mt: Delete file.
7240 * config/mips/vr4xxxel.mt: Delete file.
7241 * config/mips/vr4300.mt: Delete file.
7242 * config/mips/vr4xxx.mt: Delete file.
7243 * config/mips/bigmips.mt: Delete file.
7244 * config/mips/bigmips64.mt: Delete file.
7245 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7246 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7247 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7248 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7249 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7250 "tm-bigmips.h".
7251 * config/mips/tm-irix3.h: Ditto.
7252 * config/mips/tm-mipsv4.h: Ditto.
7253 * config/mips/tm-embed.h: Ditto.
7254 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7255 "tm-bigmips64.h".
7256 * config/mips/tm-vr5000el.h: Delete file.
7257 * config/mips/tm-tx39l.h: Delete file.
7258 * config/mips/tm-vr4300el.h: Delete file.
7259 * config/mips/tm-vr4xxxel.h: Delete file.
7260 * config/mips/tm-vr4300.h: Delete file.
7261 * config/mips/tm-vr4100.h: Delete file.
7262 * config/mips/tm-vr4xxx.h: Delete file.
7263 * config/mips/tm-vr5000.h: Delete file.
7264 * config/mips/tm-embedl64.h: Delete file.
7265 * config/mips/tm-embedl.h: Delete file.
7266 * config/mips/tm-embed64.h: Delete file.
7267 * config/mips/tm-bigmips64.h: Delete file.
7268 * config/mips/tm-bigmips.h: Delete file.
7269
2473a4a9
MK
72702003-06-01 Mark Kettenis <kettenis@gnu.org>
7271
97a5b208
MK
7272 Fix gdb/1216.
7273 * shnbsd-nat.c: Include "sh-tdep.h".
7274
2473a4a9
MK
7275 From Richard Henderson <rth@redhat.com>:
7276 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7277
e0f7ec59
AC
72782003-05-31 Andrew Cagney <cagney@redhat.com>
7279
7280 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7281 forward declaration.
7282 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7283 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7284 (mips_find_saved_regs): Use set_reg_offset.
7285 (mips_frame_init_saved_regs): Delete function.
7286 (mips_pop_frame): Call mips_find_saved_regs instead of
7287 DEPRECATED_FRAME_INIT_SAVED_REGS.
7288
68dcc709
AC
72892003-05-31 Andrew Cagney <cagney@redhat.com>
7290
7291 * mips-tdep.c (mips_gdbarch_init): Do not set
7292 deprecated_max_register_raw_size, register_virtual_size, and
7293 deprecated_max_register_virtual_size.
7294
cfc14b3a
MK
72952003-05-31 Mark Kettenis <kettenis@gnu.org>
7296
6405b0a6
MK
7297 * i386-tdep.c: Include "dwarf2-frame.h".
7298 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7299 * Makefile.in (i386-tdep.o): Update dependencies.
7300
cfc14b3a
MK
7301 * dwarf2-frame.c, dwarf2-frame.h: New files.
7302 * Makefile.in (SFILES): Add dwarf2-frame.c.
7303 (dwarf2_frame_h): Define.
7304 (COMMON_OBS): Add dwarf2-frame.o.
7305 (dwarf2-frame.o): Add dependencies.
7306
6a2751d2
AJ
73072003-05-31 Andreas Jaeger <aj@suse.de>
7308
7309 * x86-64-linux-nat.c: Fix comment.
7310
1c3545ae
MK
73112003-05-31 Mark Kettenis <kettenis@gnu.org>
7312
10f93086
MK
7313 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7314 function signature.
7315
1c3545ae
MK
7316 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7317 have a sigcontext_addr handler.
7318 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7319 sigcontext_addr handler.
7320
e11c53d2
AC
73212003-05-31 Andrew Cagney <cagney@redhat.com>
7322
7323 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7324 (print_fp_register_row): Replace do_fp_register_row.
7325 (mips_print_fp_register): Add "file" and "frame" parameters.
7326 (mips_print_register): Add "file" and "frame" parameters.
7327 (mips_print_registers_info): Replace mips_do_registers_info.
7328 (mips_gdbarch_init): Set print_registers_info instead of
7329 deprecated_do_registers_info.
7330 (mips_read_fp_register_single): Add "frame" parameter.
7331 (mips_read_fp_register_double): Add "frame" parameter.
7332
a3386186
MK
73332003-05-31 Mark Kettenis <kettenis@gnu.org>
7334
70913449
MK
7335 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7336 Fixes a bug where GDB would print the wrong register names for
7337 targets without SSE.
7338
2b5e0749
MK
7339 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7340 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7341 registers.
7342
7343 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7344 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7345 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7346 TDEP->sc_sp_offset.
7347
a3386186
MK
7348 From Michal Ludvig <mludvig@suse.cz>:
7349 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7350 and `sc_num_regs'.
7351 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7352 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7353 I386_ST0_REGNUM): Move here from...
7354 * i386-tdep.c: ... here.
7355 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7356 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7357 registers if possible.
7358 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7359 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7360 Remove variables.
7361 (i386bsd_sc_reg_offset): New variable.
7362 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7363 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7364 TDEP->sc_sp_offset.
7365 (i386fbsd_sc_reg_offset): New variable.
7366 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7367 TDEP->sc_num_regs.
7368 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7369 variables.
7370 (i386fbsd4_sc_reg_offset): New variable.
7371 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7372 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7373 TDEP->sc_sp_offset.
7374 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7375 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7376 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7377 Remove variables.
7378 (i386nbsd_sc_reg_offset): New variable.
7379 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7380 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7381 TDEP->sc_sp_offset.
7382 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7383 Remove variables.
7384 (i386obsd_sc_reg_offset): New variable.
7385 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7386 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7387 TDEP->sc_sp_offset.
7388 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7389 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7390 for frame pointer offset in `struct sigcontext'.
7391
25ab4790
AC
73922003-05-31 Andrew Cagney <cagney@redhat.com>
7393
7394 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7395 architecture methods call_dummy_words, sizeof_call_dummy_words,
7396 push_return_address, store_struct_return, and fix_call_dummy. Set
7397 push_dummy_call instead of deprecated_push_arguments.
7398 (mips_store_struct_return): Delete function.
7399 (mips_fix_call_dummy): Delete function.
7400 (mips_push_return_address): Delete function.
7401 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7402 RA_REGNUM and T9_REGNUM.
7403 (mips_n32n64_push_dummy_call): Ditto for
7404 mips_n32n64_push_arguments.
7405 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7406 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7407
6a65450a
AC
74082003-05-31 Andrew Cagney <cagney@redhat.com>
7409
7410 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7411 "dummy_addr" to "bp_addr".
7412 * infcall.c (call_function_by_hand): Pass "funaddr" to
7413 gdbarch_push_dummy_call.
7414 * gdbarch.h, gdbarch.c: Re-generate.
7415 * i386-tdep.c (i386_push_dummy_call): Update.
7416 * arm-tdep.c (arm_push_dummy_call): Update.
7417 * d10v-tdep.c (d10v_push_dummy_call): Update.
7418
c4f35dd8
MK
74192003-05-31 Mark Kettenis <kettenis@gnu.org>
7420
7421 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7422 variable declarations.
7423 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7424 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7425 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7426 x86_64_init_frame_pc, x86_64_init_frame_pc,
7427 x86_64_function_has_prologue): Remove prototypes.
7428 (X86_64_NUM_GREGS): New define.
7429 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7430 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7431 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7432 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7433 XMM1_REGNUM): Remove defines.
7434 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7435 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7436 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7437 X86_64_XMM1_REGNUM): New defines.
7438 (struct x86_64_register_info): Renamed from `struct
7439 register_info'. Remove `size' member.
7440 (x86_64_register_info_table): Remove variable.
7441 (x86_64_register_info): New variable.
7442 (X86_64_NUM_REGS): New define.
7443 (X86_64_NUM_GREGS): Remove define.
7444 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7445 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7446 Remove variables.
7447 (x86_54_dwarf2_reg_to_regnum): Remove function.
7448 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7449 (x86_64_dwarf_reg_to_regnum): New function.
7450 (x86_64_register_name): Rewrite.
7451 (x86_64_register_raw_size): Remove function.
7452 (x86_64_register_byte_table): Remove variable.
7453 (x86_64_register_byte): Remove function.
7454 (x86_64_register_virtual_type): Remove function.
7455 (x86_64_register_type): New function.
7456 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7457 x86_64_register_convert_to_raw): Remove functions.
7458 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7459 (x86_64_use_struct_convention): Make static. Adjust for renamed
7460 defines.
7461 (x86_64_frame_init_saved_regs): Remove function.
7462 (x86_64_push_arguments): Make static. Change to accept a regcache
7463 as argument.
7464 (x86_64_store_return_value, x86_64_extract_return_value): Make
7465 static. Rewrite based on i386 counterparts.
7466 (x86_64_push_dummy_call): New function.
7467 (X86_64_NUM_SAVED_REGS): New define.
7468 (x86_64_register_number): Remove function.
7469 (x86_64_store_struct_return): Remove function.
7470 (x86_64_frameless_function_invocation,
7471 x86_64_function_has_prologue): Remove functions.
7472 (PROLOG_BUFSIZE): Remove define.
7473 (struct x86_64_frame_cache): New structure.
7474 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7475 x86_64_frame_cache, x86_64_frame_this_id,
7476 x86_64_frame_prev_register, x86_64_frame_p,
7477 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7478 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7479 functions.
7480 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7481 variables.
7482 (x86_64_skip_prologue): Rewrite in terms of
7483 x86_64_analyze_prologue.
7484 (x86_64_frame_base_address): New function.
7485 (x86_64_frame_base): New variable.
7486 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7487 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7488 set deprecated_fp_regnum, deprecated_register_size,
7489 deprecated_register_bytes, register_raw_size, register_byte,
7490 register_virtual_type, register_convertiable,
7491 register_convert_to_virtual, convert_to_raw,
7492 deprecated_get_saved_register, deprecated_target_read_fp,
7493 deprecated_push_arguments, deprecated_push_return_address,
7494 deprecated_pop_frame, deprecated_store_struct_return,
7495 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7496 frameless_function_invocation, deprecated_frame_saved_pc,
7497 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7498 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7499 deprecated_init_frame_pc and virtual_frame_pointer. Call
7500 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7501 and x86_64_frame_p. Call frame_base_set_default to register
7502 x86_64_frame_base.
7503 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7504 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7505 (_initialize_x86_64_tdep): Remove function.
7506 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7507 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7508 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7509 define.
7510 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7511 (x86_64_linux_sigcontext_addr): Rewrite.
7512 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7513 x86_64_linux_frame_saved_pc): Remove functions.
7514 (x86_64_linux_pc_in_sigtramp): Renamed from
7515 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7516 trampoline.
7517 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7518 Remove_functions.
7519 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7520 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7521 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7522 (x86_64_regmap): Rename to regmap.
7523 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7524 x86_64_num_gregs.
7525 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7526 x86_64_regmap.
7527 (x86_64_fxsave_offset): Remove function.
7528 (supply_fpregset): Simply call x86_64_supply_fxsave.
7529 (fill_fpregset): Simply call x86_64_fill_fxsave.
7530 (fetch_inferior_registers, store_inferior_registers): Avoid
7531 asignment in if-statement.
7532 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7533 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7534 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7535 (fetch_core_registers): Remove function.
7536 (linux_elf_core_fns): Remove.
7537 (offsetoff): Don't define.
7538 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7539 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7540 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7541 add core-regset.o.
7542 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7543 protection against multiple includes instead of NM_X86_64_h. Add
7544 various comments. Include "config/nm-linux.h". Don't include
7545 <signal.h>.
7546 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7547 GET_THREAD_SIGNALS): Remove defines.
7548 (x86_64_register_u_addr, kernel_u_size,
7549 lin_thread_get_thread_signals): Remove prototypes.
7550 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7551 [HAVE_LINK_H]: Don't include "solib.h".
7552 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7553 * config/i386/tm-x86-64linux.h: Fix comments.
7554 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7555 x86-64-tdep.o): Update dependencies.
7556
c25083af
AC
75572003-05-30 Andrew Cagney <cagney@redhat.com>
7558
c8f55a7b
AC
7559 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7560 Change parameter type to a "struct regcache *".
7561
c25083af
AC
7562 * gdbarch.sh: Regardless of the multi-arch level, always define
7563 the macro when not already defined.
7564 * gdbarch.h, gdbarch.c: Re-generate.
7565
fbe586ae
RH
75662003-05-30 Richard Henderson <rth@redhat.com>
7567
7568 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7569 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7570 (alpha_mdebug_frame_this_id): Likewise.
7571 (alpha_mdebug_frame_prev_register): Likewise.
7572 (alpha_mdebug_frame_base_address): Likewise.
7573 (alpha_mdebug_frame_locals_address): Likewise.
7574 (alpha_mdebug_frame_args_address): Likewise.
7575 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7576 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7577 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7578 loop increment.
7579 (alpha_heuristic_frame_this_id): Make static.
7580 (alpha_heuristic_frame_prev_register): Likewise.
7581 (alpha_heuristic_frame_base_address): Likewise.
7582 * alpha-tdep.h: Update.
7583
acd5c798
MK
75842003-05-30 Mark Kettenis <kettenis@gnu.org>
7585
7586 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7587 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7588 defenitions.
7589 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7590 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7591 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7592 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7593 I386_ST0_REGNUM): New defines.
7594 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7595 codestream_get): Remove define.
7596 (codestream_next_addr, condestream_addr, condestream_buf,
7597 codestream_off, codestream_cnt): Remove variables.
7598 (codestream_fill, codestream_seek, codestream_read): Remove
7599 functions.
7600 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7601 functionality.
7602 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7603 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7604 i386_frame_saved_pc, i386_saved_pc_after_call,
7605 i386_frame_num_args, i386_frame_init_saved_regs,
7606 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7607 i386_push_arguments): Remove functions.
7608 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7609 functionality. Use i386_analyze_prologue instead of
7610 i386_get_frame_setup.
7611 (I386_NUM_SAVED_REGS): New define.
7612 (struct i386_frame_cache): New structure.
7613 (i386_alloc_frame_cache, i386_analyze_struct_return,
7614 i386_skip_probe, i386_analyze_frame_setup,
7615 i386_analyze_register_saves, i386_analyze_prologue,
7616 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7617 i386_frame_prev_register, i386_sigtramp_frame_cache,
7618 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7619 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7620 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7621 New functions.
7622 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7623 New variables.
7624 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7625 I386_EAX_REGNUM and I386_EDX_REGNUM.
7626 (i386_extract_return_value, i386_store_return_value): Use
7627 I386_ST0_REGNUM where appropriate.
7628 (i386_extract_struct_value_address): Rewrite to use extract_address.
7629 (i386_svr4_pc_in_sigtramp): Add comment.
7630 (i386_svr4_sigcontext_addr): Rewrite.
7631 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7632 TDEP->sc_sp_offset.
7633 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7634 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7635 of new defines. Set push_dummy_call, don't set
7636 deprecated_push_arguments, deprecated_push_return_address,
7637 deprecated_pop_frame. Don't set parm_boundary. Don't set
7638 deprecated_frame_chain, deprecated_frame_saved_pc,
7639 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7640 save_dummy_frame_tos, unwind_pc. Call
7641 frame_unwind_append_predicate and frame_base_set_default. Don't
7642 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7643 Don't set frameless_function_invocation. Don't set
7644 deprecated_register_bytes, deprecated_register_size,
7645 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7646 * i386-linux-tdep.c: Fix formatting in some comments.
7647 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7648 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7649 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7650 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7651 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7652 redundant parentheses.
7653 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7654 (i386_linux_sigcontext_addr): Use it. Rewrite.
7655 (find_minsym_and_objfile): Change name of second argument.
7656 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7657 changed. Use frame_pc_unwind instead of
7658 DEPRECATED_SAVED_PC_AFTER_CALL.
7659 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7660 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7661 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7662 unwinder.
7663 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7664 "dummy-frame.h".
7665 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7666 (_initialize_i386_cygwin_tdep): New prototype.
7667 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7668 deprecated_frame_chain_valid.
7669 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7670 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7671 Rely on the SVR4 defaults.
7672 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7673 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7674
c89b70f1
AC
76752003-05-30 Andrew Cagney <cagney@redhat.com>
7676
7677 * infcall.c (call_function_by_hand): Always call
7678 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7679
85b32d22
RH
76802003-05-30 Richard Henderson <rth@redhat.com>
7681
c89b70f1
AC
7682 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7683 increment.
85b32d22 7684
bfe51b1e
JB
76852003-05-29 Jim Blandy <jimb@redhat.com>
7686
7687 Use gdbarch methods for solib stuff on PowerPC Linux.
7688 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7689 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7690 show through.
7691 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7692 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7693 giving the same effect as the #definitions above.
7694
1abf022c
AF
76952003-05-29 Adam Fedor <fedor@gnu.org>
7696
7697 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7698 (find_implementation_from_class): Replace it with the standard
7699 case i.e. do nothing.
7700
d2427a71
RH
77012003-05-29 Richard Henderson <rth@redhat.com>
7702
7703 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7704 (alpha_linux_sigtramp_offset): Use it. Make static.
7705 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7706 update for new frame model.
7707 * alpha-mdebug-tdep.c: New file.
7708 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7709 (alpha_osf1_init_abi): Install it.
7710 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7711 (linked_proc_desc_table): Remove.
7712 (alpha_frame_past_sigtramp_frame): Remove.
7713 (alpha_dynamic_sigtramp_offset): Remove.
7714 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7715 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7716 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7717 (push_sigtramp_desc): Remove.
7718 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7719 (alpha_cannot_store_register): Likewise.
7720 (alpha_sigcontext_addr): Remove.
7721 (alpha_find_saved_regs): Remove.
7722 (alpha_frame_init_saved_regs): Remove.
7723 (alpha_init_frame_pc_first): Remove.
7724 (read_next_frame_reg): Remove.
7725 (alpha_frame_saved_pc): Remove.
7726 (alpha_saved_pc_after_call): Remove.
7727 (temp_proc_desc, temp_saved_regs): Remove.
7728 (alpha_about_to_return): Remove.
7729 (cached_proc_desc): Remove.
7730 (alpha_frame_chain): Remove.
7731 (alpha_print_extra_frame_info): Remove.
7732 (alpha_init_extra_frame_info): Remove.
7733 (alpha_frame_locals_address): Remove.
7734 (alpha_frame_args_address): Remove.
7735 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7736 (alpha_push_dummy_frame): Remove.
7737 (alpha_pop_frame): Remove.
7738 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7739 (alpha_read_insn): New.
7740 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7741 for different insn encodings.
7742 (alpha_in_lenient_prologue): Remove.
7743 (struct alpha_sigtramp_unwind_cache): New.
7744 (alpha_sigtramp_frame_unwind_cache): New.
7745 (alpha_sigtramp_register_address): New.
7746 (alpha_sigtramp_frame_this_id): New.
7747 (alpha_sigtramp_frame_prev_register): New.
7748 (alpha_sigtramp_frame_unwind): New.
7749 (alpha_sigtramp_frame_p): New.
7750 (struct alpha_heuristic_unwind_cache): New.
7751 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7752 don't count nop insns that occur between functions.
7753 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7754 heuristic_proc_desc, but without the mdebug wrapping.
7755 (alpha_heuristic_frame_this_id): New.
7756 (alpha_heuristic_frame_prev_register): New.
7757 (alpha_heuristic_frame_unwind): New.
7758 (alpha_heuristic_frame_p): New.
7759 (alpha_heuristic_frame_base_address): New.
7760 (alpha_heuristic_frame_base): New.
7761 (alpha_unwind_dummy_id): New.
7762 (alpha_unwind_pc): New.
7763 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7764 frame related deprecated initializations; install replacements.
7765 (alpha_dump_tdep): Remove.
7766 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7767 (alpha_read_insn, alpha_after_prologue,
7768 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7769 alpha_heuristic_frame_prev_register,
7770 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7771 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7772 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7773 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7774
93ec1121
AC
77752003-05-29 Andrew Cagney <cagney@redhat.com>
7776
7777 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7778 dependant on the availability of ASSERT_FUNCTION.
7779 (ASSERT_FUNCTION): Do not define when there is no function name.
7780
98f08d3d
KB
77812003-05-29 Kevin Buettner <kevinb@redhat.com>
7782
7783 From Jimi X <jimix@watson.ibm.com>:
7784 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7785
0897f59b
JB
77862003-05-28 Jim Blandy <jimb@redhat.com>
7787
7788 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7789 argument to ptrace to int; the system headers should give it the
7790 right type, and pointers don't fit in ints on powerpc64-*-*.
7791
14898363
L
77922003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7793
7794 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7795 DW_TAG_catch_block.
7796
a7a48797
EZ
77972003-05-26 Elena Zannoni <ezannoni@redhat.com>
7798
7799 * stabsread.c (dbx_lookup_type): Make static.
7800 (read_type): Ditto.
7801 (add_undefined_type): Ditto.
7802 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7803 not export.
7804
f5479e9c
EZ
78052003-05-26 Elena Zannoni <ezannoni@redhat.com>
7806
7807 * hpread.c (hpread_has_name): Make static.
7808 (hpread_psymtab_to_symtab): Ditto.
7809 (file_exists): Ditto.
7810 (hpread_call_pxdb): Ditto.
7811 (hpread_pxdb_needed): Ditto.
7812 (hpread_quick_traverse): Ditto.
7813 (hpread_get_header): Ditto.
7814 (hpread_get_lntt): Ditto.
7815 (hpread_get_slt): Ditto.
7816 (class_of): Ditto.
7817
eb2e12d7
AS
78182003-05-25 Andreas Schwab <schwab@suse.de>
7819
78bf922a
AS
7820 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7821 stack_align and deprecated_extra_stack_alignment_needed.
7822 (m68k_stack_align): Delete.
7823
eb2e12d7
AS
7824 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7825 (m68k_register_virtual_size): Likewise.
7826 (altos_skip_prologue): Remove obsolete function.
7827 (isi_frame_num_args): Likewise.
7828 (news_frame_num_args): Likewise.
7829 (m68k_fix_call_dummy): Make static.
7830 (m68k_push_dummy_frame): Likewise.
7831 (m68k_pop_frame): Likewise.
7832 (m68k_skip_prologue): Likewise.
7833 (m68k_frame_init_saved_regs): Likewise.
7834 (m68k_saved_pc_after_call): Likewise.
7835 (m68k_get_longjmp_target): Make multi-arch.
7836 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7837 structure. Register m68k_get_longjmp_target if enabled.
7838 * m68k-tdep.h (struct gdbarch_tdep): Define.
7839 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7840
7841 * Makefile.in (config.status): Also depend on configure.tgt
7842 and configure.host.
7843 (m68klinux-tdep.o): Update dependencies.
7844 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7845 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7846 (M68K_LINUX_JB_PC): Define.
7847 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7848 and take additional parameter.
7849 (m68k_linux_sigtramp_saved_pc): Update.
7850 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7851 m68k_linux_pc_in_sigtramp, in_plt_section,
7852 find_solib_trampoline_target.
7853 * config/m68k/tm-linux.h: Don't include any tm headers.
7854 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7855 (JB_ELEMENT_SIZE): Likewise.
7856 (JB_PC): Likewise.
7857 (GET_LONGJMP_TARGET): Likewise.
7858 (IN_SIGTRAMP): Likewise.
7859 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7860
eb2c22dc
MK
78612003-05-25 Mark Kettenis <kettenis@gnu.org>
7862
7863 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7864 (sparc32_push_arguments): Re-implement by calling
7865 sparc32_do_push_arguments.
7866
44b7b84e
MK
78672003-05-25 Mark Kettenis <kettenis@gnu.org>
7868
7869 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7870 SPARC_O1_REGNUM): New defines.
7871 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7872 (sparc32_store_return_value): New function.
7873 (sparc_extract_struct_value_address): Rewrite to operate on a
7874 regcache.
7875 (sparc_gdbarch_init): Don't set
7876 deprecated_extract_struct_value_address. Set
7877 extract_struct_value_address instead. Don't set
7878 deprecated_extract_return_value and deprecated_store_return_value
7879 for 32-bit targets. Set extract_return_value and
7880 store_return_value instead.
7881 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7882 DEPRECTAED_EXTRACT_RETURN_VALUE,
7883 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7884 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7885 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7886 (sparc_store_return_value): Remove prototype.
7887 (sparc32_store_return_value): New prototype.
7888 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7889 Adjust prototypes.
7890
f6ad61e3
MK
78912003-05-24 Mark Kettenis <kettenis@gnu.org>
7892
7893 * sparcnbsd-tdep.c: Include "gdb_string.h".
7894
b276f1bb
AC
78952003-05-23 Andrew Cagney <cagney@redhat.com>
7896
7897 * p-valprint.c (pascal_val_print): Replace extract_address with
7898 the inline equivalent extract_unsigned_integer.
7899 * jv-valprint.c (java_value_print): Ditto.
7900 * ada-valprint.c (ada_val_print_1): Ditto.
7901 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7902
e76c5fcc
TR
79032003-05-23 Theodore A. Roth <troth@openavr.org>
7904
7905 * blockframe.c (frameless_look_for_prologue): Remove unused
7906 after_prologue variable.
7907
2cdd89cb
MK
79082003-05-23 Mark Kettenis <kettenis@gnu.org>
7909
7910 * blockframe.c (get_pc_function_start): Rewrite to avoid
7911 asignments in if-statements.
7912
182d43bc
EZ
79132003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7914
7915 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 7916 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
7917 files, don't relocate absolute symbols (and do use mst_abs).
7918
e8f3fcdd
AC
79192003-05-23 Andrew Cagney <cagney@redhat.com>
7920
7921 * objc-lang.c: Include "gdb_assert.h".
7922 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7923 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7924 (gdb_check, gdb_check_fatal): Delete functions.
7925 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7926 gdb_assert.
7927 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7928 * Makefile.in (objc-lang.o): Update dependencies.
7929
3c23e6fb
ILT
79302003-05-22 Ian Lance Taylor <ian@airs.com>
7931
7932 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7933 with fprintf_filtered, not fprintf_unfiltered.
7934
af1342ab
AC
79352003-05-22 Andrew Cagney <cagney@redhat.com>
7936
7937 * stack.c (frame_info): Inline extract_address, replacing it with
7938 extract_unsigned_integer.
7939 * findvar.c (unsigned_pointer_to_address): Ditto.
7940 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7941 * dwarf2expr.c (dwarf2_read_address): Ditto.
7942 * frame.c (frame_pc_unwind): Update comment.
7943 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7944
47e242ec
JJ
79452003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7946
7947 * infptrace.c (detach): Call print_sys_errmsg rather than
7948 perror_with_name to issue warning message when errno is non-zero
7949 after calling ptrace detach.
7950
e2ac8128
JB
79512003-05-21 J. Brobecker <brobecker@gnat.com>
7952
7953 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7954 macro definitions from here...
7955 * hppa-tdep.c: ...to there.
7956
92b3541e
KB
79572003-05-20 Kevin Buettner <kevinb@redhat.com>
7958
7959 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7960 register_ptrace_addr(). Fix all callers.
7961
55809acb
AS
79622003-05-21 Andreas Schwab <schwab@suse.de>
7963
7964 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7965 dependencies.
7966 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7967 end.
7968 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7969 (_initialize_m68k_linux_tdep): New function.
7970 (m68k_linux_frame_saved_pc): Make static.
7971 (m68k_linux_extract_return_value): Likewise.
7972 (m68k_linux_store_return_value): Likewise.
7973 (m68k_linux_extract_struct_value_address): Likewise.
7974 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7975 Remove.
7976 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7977 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7978 (DEPRECATED_FRAME_SAVED_PC): Remove.
7979
0fbc10f7
KW
79802003-05-20 Kris Warkentin <kewarken@qnx.com>
7981
7982 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7983 regset numbering rather than our own.
7984
58da2eb2
DC
79852003-05-19 David Carlton <carlton@bactrian.org>
7986
7987 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7988
1fcb5155
DC
79892003-05-19 David Carlton <carlton@bactrian.org>
7990
7991 Partial fix for PR c++/827.
7992 * cp-support.h: Include symtab.h.
7993 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7994 * cp-namespace.c: Update contributors.
7995 (cp_lookup_symbol_nonlocal): New.
7996 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7997 (lookup_symbol_file): Ditto.
7998 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7999 * block.h: Declare block_scope, block_using, block_global_block.
8000 * block.c (block_scope): New.
8001 (block_using, block_global_block): Ditto.
8002 * Makefile.in (cp_support_h): Depend on symtab_h.
8003 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8004
5f9a71c3
DC
80052003-05-19 David Carlton <carlton@bactrian.org>
8006
8007 * language.h (struct language_defn): Add 'la_value_of_this'
8008 and 'la_lookup_symbol_nonlocal' members.
8009 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8010 lookup_symbol_static, lookup_symbol_global,
8011 lookup_symbol_aux_block.
8012 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8013 if we should search fields of this and how to do static/global
8014 lookup.
8015 (lookup_symbol_aux_block): Make extern.
8016 (basic_lookup_symbol_nonlocal): New.
8017 (lookup_symbol_static, lookup_symbol_global): Ditto.
8018 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8019 'la_lookup_symbol_nonlocal' members.
8020 * c-lang.c (c_language_defn, cplus_language_defn)
8021 (asm_language_defn, minimal_language_defn): Ditto.
8022 * jv-lang.c (java_language_defn): Ditto.
8023 * language.c (unknown_language_defn, auto_language_defn)
8024 (local_language_defn): Ditto.
8025 * m2-lang.c (m2_language_defn): Ditto.
8026 * objc-lang.c (objc_language_defn): Ditto.
8027 * scm-lang.c (scm_language_defn): Ditto.
8028 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8029 * p-lang.c (pascal_language_defn): Ditto for both.
8030 * Makefile.in (f-lang.o): Depend on value_h.
8031 (p-lang.o): Ditto.
8032
89a9d1b1
DC
80332003-05-19 David Carlton <carlton@bactrian.org>
8034
8035 * block.h: Declare block_static_block.
8036 * block.c (block_static_block): New.
8037 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8038 lookup_symbol_aux_local, calling block_static_block instead.
8039 (lookup_symbol_aux_local): Delete 'static_block' argument.
8040
eed3f8ab
DC
80412003-05-19 David Carlton <carlton@bactrian.org>
8042
8043 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8044
a09d8bda
ML
80452003-05-19 Michal Ludvig <mludvig@suse.cz>
8046
8047 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8048 register numbers mapping.
8049
69636828
AF
80502003-05-18 Adam Fedor <fedor@gnu.org>
8051
8052 * symtab.c (completion_list_objc_symbol): New function.
8053 (make_symbol_completion_list): Use it to add ObjC symbols
8054 when looking though the list.
8055 (language_search_unquoted_string): New function.
8056 (make_file_symbol_completion_list): Use it.
8057
55baeb84
AS
80582003-05-18 Andreas Schwab <schwab@suse.de>
8059
d0b45d99
AS
8060 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8061 dependencies.
8062 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8063 as m68k_linux_extract_return_value.
8064 (DEPRECATED_STORE_RETURN_VALUE): Define as
8065 m68k_linux_store_return_value.
8066 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8067 m68k_linux_extract_struct_value_address.
8068 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8069 get_next_frame, get_frame_base, get_frame_pc.
8070 (m68k_linux_frame_saved_pc): Use get_frame_base.
8071 (m68k_linux_extract_return_value): New function.
8072 (m68k_linux_store_return_value): New function.
8073 (m68k_linux_extract_struct_value_address): New function.
8074 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8075
55baeb84
AS
8076 * c-exp.y (typebase): Remove duplicate occurence of
8077 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8078 of lookup_signed_typename.
55baeb84 8079
b6b08ebf
MK
80802003-05-18 Mark Kettenis <kettenis@gnu.org>
8081
8082 * dwarf2loc.c (find_location_expression): Change type of second
8083 argument to `size_t *'.
8084 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8085 for size variable.
8086
5ad1c190
DC
80872003-05-18 David Carlton <carlton@bactrian.org>
8088
8089 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8090 'linkage_name'. Add comment.
8091 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8092 'linkage_name'.
8093 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8094 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8095 (lookup_block_symbol): Ditto.
8096
b8b527c5
AC
80972003-05-16 Andrew Cagney <cagney@redhat.com>
8098
8099 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8100 * gdbarch.h, gdbarch.c: Re-generate.
8101 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8102 * TODO (REGISTER_BYTES): Delete reference.
8103 * alpha-tdep.c (alpha_gdbarch_init): Update.
8104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8105 * x86-64-tdep.c (x86_64_init_abi): Update.
8106 * vax-tdep.c (vax_gdbarch_init): Update.
8107 * v850-tdep.c (v850_gdbarch_init): Update.
8108 * sparc-tdep.c (sparc_gdbarch_init): Update.
8109 * sh-tdep.c (sh_gdbarch_init): Update.
8110 * s390-tdep.c (s390_gdbarch_init): Update.
8111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8112 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8113 (ns32k_gdbarch_init_32382): Update.
8114 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8115 * mcore-tdep.c (mcore_gdbarch_init): Update.
8116 * m68k-tdep.c (m68k_gdbarch_init): Update.
8117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8118 * ia64-tdep.c (ia64_gdbarch_init): Update.
8119 * i386-tdep.c (i386_gdbarch_init): Update.
8120 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8121 * hppa-tdep.c (hppa_gdbarch_init): Update.
8122 * h8300-tdep.c (h8300_gdbarch_init): Update.
8123 * frv-tdep.c (frv_gdbarch_init): Update.
8124 * cris-tdep.c (cris_gdbarch_init): Update.
8125 * avr-tdep.c (avr_gdbarch_init): Update.
8126 * arm-tdep.c (arm_gdbarch_init): Update.
8127 * sparc-tdep.c (sparc_pop_frame): Update.
8128 * rs6000-tdep.c (rs6000_pop_frame): Update.
8129 * remote.c (init_remote_state): Update.
8130 (remote_prepare_to_store): Update.
8131 * remote-vx.c (vx_prepare_to_store): Update.
8132 * remote-sds.c (sds_fetch_registers): Update.
8133 (sds_prepare_to_store): Update.
8134 * remote-array.c: Update.
8135 * regcache.c (init_legacy_regcache_descr): Update.
8136 (init_regcache_descr): Update.
8137 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8138 (mips_o64_extract_return_value): Update.
8139 * irix5-nat.c (fetch_core_registers): Update.
8140 * irix4-nat.c (fetch_core_registers): Update.
8141 * i386-tdep.h: Update.
8142 * hppa-tdep.c (pa_do_registers_info): Update.
8143 (pa_do_strcat_registers_info): Update.
8144 * cris-tdep.c (cris_register_bytes_ok): Update.
8145 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8146 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8147 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8148 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8149 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8150 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8151 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8152 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8153 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8154 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8155 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8156 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8157 (REGISTER_BYTES_OK): Update.
8158 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8159 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8160
ee2842e2
ILT
81612003-05-16 Ian Lance Taylor <ian@airs.com>
8162
8163 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8164 (vax_print_insn, print_insn_arg): Remove static functions.
8165 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8166 print_insn_vax from opcodes library.
8167 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8168
973177d3
AC
81692003-05-15 Andrew Cagney <cagney@redhat.com>
8170
aaab4dba
AC
8171 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8172 * target.h (memory_breakpoint_from_pc): Delete declaration.
8173 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8174 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8175 * monitor.c (monitor_insert_breakpoint): Use
8176 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8177 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8178 * gdbarch.h, gdbarch.c: Re-generate.
8179 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8180 (sparc_gdbarch_init): Set breakpoint_from_pc to
8181 sparc_breakpoint_from_pc.
8182 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8183 (BREAKPOINT_FROM_PC): Define.
8184 (sparc_breakpoint_from_pc): Declare.
8185 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8186 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8187 (BREAKPOINT_FROM_PC): Define.
8188 (BREAKPOINT): Delete macro.
8189 * target.h: Update comment.
8190 * s390-tdep.c (s390_gdbarch_init): Update comments.
8191 * remote.c: Update comments.
8192 * remote-mips.c: Update comments.
8193 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8194 * mem-break.c: Update comment.
8195 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8196 (ia64_memory_insert_breakpoint): Update.
8197 * config/sparc/tm-sparc.h: Update comment.
8198 * config/pa/tm-hppa64.h: Update comment.
8199 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8200 (rs6000_breakpoint_from_pc): Update.
8201 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8202 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8203 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8204 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8205 (mips_breakpoint_from_pc): Update.
8206 (mips_dump_tdep): Update.
8207
e06963ff
AC
8208 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8209 * minsyms.c (lookup_minimal_symbol): Inline
8210 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8211
973177d3
AC
8212 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8213 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8214 * p-lang.c (pascal_printstr): Ditto.
8215 * objc-lang.c (objc_printstr): Ditto.
8216 * m2-lang.c (m2_printstr): Ditto.
8217 * jv-valprint.c (java_print_value_fields): Ditto.
8218 * f-lang.c (f_printstr): Ditto.
8219 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8220 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8221 for repeat_count_threshold.
8222 * Makefile.in (cp-valprint.o): Update dependencies.
8223
5ea2bd7f 82242003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8225
5ea2bd7f
JJ
8226 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8227 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8228 they start with mov r2,r12. Support skipping over indirect stores
8229 of the input registers. Upon hitting a non-nop branch instruction
8230 or predicated instruction, bail out by setting lim_pc to the current
8231 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8232 beyond our calculated value and we have trust_limit set,
8233 use the lim_pc value.
8234
cc8c88f3
AC
82352003-05-15 Andrew Cagney <cagney@redhat.com>
8236
8237 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8238 generic_find_dummy_frame.
8239 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8240 (deprecated_generic_find_dummy_frame): Update.
8241 (deprecated_read_register_dummy): Update.
8242 * frame.c (deprecated_generic_get_saved_register): Update.
8243
909cd28e
TR
82442003-05-15 Theodore A. Roth <troth@openavr.org>
8245
8246 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8247 (avr_gdbarch_init): Set breakpoint_from_pc method.
8248
b923b08d
AC
82492003-05-15 Andrew Cagney <cagney@redhat.com>
8250
8251 * regcache.c (build_regcache): Set deprecated_register_valid
8252 directly.
8253 (deprecated_grub_regcache_for_register_valid): Delete function.
8254 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8255 declaration.
8256
ae2f03ac 82572003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8258
8259 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8260 * symtab.c (lookup_symbol_aux): Delete calls to
8261 lookup_symbol_aux_minsyms.
8262 (lookup_symbol_aux_minsyms): Comment out function and
8263 prototype. Delete lookup by mangled name.
ae2f03ac 8264
18ec9831
KB
82652003-05-14 Kevin Buettner <kevinb@redhat.com>
8266
8267 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8268 correctly indicate an empty stack and ``stack_allocated'' to the
8269 indicate the number of elements initially allocated.
8270 (dwarf_expr_grow_stack): Simplify method for computing new
8271 stack size. Don't loop infinitely if ``stack_len'' is zero.
8272 (execute_stack_op): Move ``ctx->in_reg'' initialization
8273 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8274 be used in conjuction with DW_OP_piece. Revise error message
8275 accordingly.
8276
de18ac1f
TR
82772003-05-14 Theodore A. Roth <troth@openavr.org>
8278
8279 * MAINTAINERS: Update my email address.
8280 * avr-tdep.c: Ditto.
8281
176620f1
EZ
82822003-05-14 Elena Zannoni <ezannoni@redhat.com>
8283
8284 * symtab.h (enum domain_enum): Rename from namespace_enum.
8285 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8286 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8287 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8288 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8289 TYPES_NAMESPACE, METHODS_NAMESPACE.
8290 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8291 (struct symbol, struct partial_symbol): Rename field
8292 'namespace_enum namespace' to 'domain_enum domain'.
8293 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8294 Delete old define kludge for namespace.
8295
8296 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8297 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8298 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8299 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8300 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8301 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8302 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8303 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8304 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8305 occurrences of the above.
8306
b7f31508
ILT
83072003-05-14 Ian Lance Taylor <ian@airs.com>
8308
8309 * Makefile.in (install-only): Use $(SHELL) when running
8310 mkinstalldirs.
8311
2fdbdd39
ILT
83122003-05-13 Ian Lance Taylor <ian@airs.com>
8313
a208d82c
ILT
8314 * MAINTAINERS (write after approval): Add myself.
8315
2fdbdd39
ILT
8316 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8317 second and third arguments.
8318 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8319 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8320
fbd9dcd3
AC
83212003-05-13 Andrew Cagney <cagney@redhat.com>
8322
8323 * defs.h (store_address): Delete declaration.
8324 findvar.c (store_address): Delete function.
8325 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8326 store_unsigned_integer.
8327 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8328 * v850-tdep.c (v850_push_arguments): Ditto.
8329 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8330 * sh-tdep.c (sh64_get_saved_register): Ditto.
8331 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8332 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8333 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8334 (mips_get_saved_register): Ditto.
8335 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8336 (find_func_descr, ia64_push_arguments): Ditto.
8337 * i386-tdep.c (i386_push_arguments): Ditto.
8338 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8339 * frv-tdep.c (frv_push_arguments): Ditto.
8340 * frame.c (legacy_saved_regs_prev_register): Ditto.
8341 (deprecated_generic_get_saved_register): Ditto.
8342 * findvar.c (unsigned_address_to_pointer): Ditto.
8343 * dwarf2read.c (dwarf2_const_value): Ditto.
8344 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8345 * alpha-tdep.c (alpha_push_arguments): Ditto.
8346
6760f9e6
JB
83472003-05-12 J. Brobecker <brobecker@gnat.com>
8348
8349 * NEWS: Mention that the hppa-hpux port has been partially
8350 multiarched (32bit ABIT only, so far).
8351
30e221b4
AC
83522003-05-11 Andrew Cagney <cagney@redhat.com>
8353
8354 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8355 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8356 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8357 sim/testsuite/sim/arm/misaligned2.ms, and
8358 sim/testsuite/sim/arm/misaligned3.ms.
8359 * disasm.h (struct ui_file): Add opaque struct declaration.
8360 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8361 * frame.h (struct ui_file): Ditto.
8362
dea7f9ba
MK
83632003-05-11 Mark Kettenis <kettenis@gnu.org>
8364
8365 * value.h: Pretty print.
8366
01986c48
MK
83672003-05-10 Mark Kettenis <kettenis@gnu.org>
8368
8369 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8370
123a958e
AC
83712003-05-08 Andrew Cagney <cagney@redhat.com>
8372
8373 * regcache.h (max_register_size): Delete declaration.
8374 * regcache.c (max_register_size): Delete function.
8375 (struct regcache_descr): Delete field "max_register_size".
8376 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8377 registers fit in MAX_REGISTER_SIZE.
8378 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8379 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8380 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8381 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8382 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8383 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8384 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8385 * dve3900-rom.c, hppa-tdep.c: Ditto.
8386
eb294659
DC
83872003-05-08 David Carlton <carlton@math.stanford.edu>
8388
8389 * valops.c (push_word): Fix typo.
8390
d9d9c31f
AC
83912003-05-08 Andrew Cagney <cagney@redhat.com>
8392
8393 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8394 * gdbarch.h: Re-generate.
8395 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8396 (legacy_max_register_raw_size): Delete declaration.
8397 * regcache.c (legacy_max_register_raw_size): Delete function.
8398 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8399 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8400 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8401 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8402 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8403 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8404 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8405 * findvar.c, dwarf2cfi.c: Ditto.
8406
22540ece
AC
84072003-05-08 Andrew Cagney <cagney@redhat.com>
8408
8409 * mips-tdep.c (read_signed_register): New function, moved to here
8410 from "regcache.c".
8411 (read_signed_register_pid): Ditto.
8412 * regcache.c (read_signed_register_pid): Delete function, moved to
8413 "mips-tdep.c".
8414 (read_signed_register): Ditto.
8415 * regcache.h (read_signed_register): Delete declaration.
8416 (read_signed_register_pid): Delete declaration.
8417
0c92afe8
AC
84182003-05-08 Andrew Cagney <cagney@redhat.com>
8419
8420 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8421 * gdbarch.h: Re-generate.
8422 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8423 (legacy_max_register_virtual_size): Delete declaration.
8424 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8425 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8426 * tracepoint.c (memrange_sortmerge): Ditto.
8427 * sparc-tdep.c (sparc_print_registers): Ditto.
8428 * regcache.c (legacy_max_register_virtual_size): Delete function.
8429
6037b830
JB
84302002-05-08 J. Brobecker <brobecker@gnat.com>
8431
8432 * fork-child.c (escape_bang_in_quoted_argument): New function.
8433 (fork_inferior): Escape '!' characters in quoted arguments
8434 only when needed.
8435
5d62c8b1
JB
84362003-05-08 J. Brobecker <brobecker@gnat.com>
8437
8438 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8439 the language of the CU is not currently supported by GDB.
8440
20a0e81d
JB
84412003-05-08 J. Brobecker <brobecker@gnat.com>
8442
8443 * defs.h (language): Add language_minimal enum value.
8444 * c-lang.c (minimal_language_defn): New language definition.
8445 (_initialize_c_language): Add the new minimal language to the list
8446 of languages known to GDB.
8447
710ee10a
KB
84482003-05-08 Kevin Buettner <kevinb@redhat.com>
8449
8450 * frame.c (get_frame_type): Don't attempt to lazily initialize
8451 frame's unwinder for legacy frames.
8452
1750fa04
AC
84532003-05-07 Andrew Cagney <cagney@redhat.com>
8454
8455 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8456 and "regcache" parameters.
8457 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8458
ddf9f258 84592003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8460
8461 * dwarf2read.c (dwarf_decode_lines): Only use output of
8462 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8463 the current address.
8464
87767c29
AC
84652003-05-07 Andrew Cagney <cagney@redhat.com>
8466
8467 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8468 code.
8469
5e7b2f39
JB
84702003-05-07 Jim Blandy <jimb@redhat.com>
8471
8472 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8473 'maint info symtabs' and 'maint info psymtabs'.
8474 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8475 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8476 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8477 Declarations updated.
8478 * maint.c (maintenance_list_command): Delete.
8479 (_initialize_maint_cmds): Update calls to add_cmd.
8480 * gdbcmd.h (maintenancelistlist): Delete declaration.
8481 * cli/cli-cmds.c (maintenancelistlist): Delete.
8482 (init_cmd_lists): Don't initialize it.
8483 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8484
f6684c31
AC
84852003-05-07 Andrew Cagney <cagney@redhat.com>
8486
8487 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8488 "regcache".
8489 (d10v_print_registers_info): Update.
8490 (d10v_dmap_register, d10v_imap_register): Delete functions.
8491 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8492 and "imap_register".
8493 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8494 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8495 * arch-utils.c (generic_remote_translate_xfer_address): Add
8496 "regcache" and "gdbarch" parameters.
8497 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8498 parameter. Change class to multi-arch.
8499 * gdbarch.h, gdbarch.c: Re-generate.
8500 * remote.c (remote_xfer_memory): Use
8501 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8502
e4846b08
JJ
85032003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8504
8505 * infrun.c (prev_pc): Move declaration ahead of proceed().
8506 (proceed): Refresh prev_pc value before resuming.
8507 (stop_stepping): Remove code to refresh prev_pc.
8508
6b71b8ac
KW
85092003-05-06 Kris Warkentin <kewarken@qnx.com>
8510
8511 * nto-tdep.c: Removed stray comment.
8512
47979a4b
KW
85132003-05-06 Kris Warkentin <kewarken@qnx.com>
8514
8515 * i386-nto-tdep.c: Fix old K&R function definitions.
8516 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8517 Also change add_show_from_set() call to add_setshow_cmd().
8518 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8519
00905d52
AC
85202003-05-05 Andrew Cagney <cagney@redhat.com>
8521
8522 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8523 (fprint_dummy_frames): New function.
8524 (maintenance_print_dummy_frames): New function.
8525 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8526 * frame.c (fprint_frame_id): Make global.
8527 * frame.h (fprint_frame_id): Declare.
8528 * Makefile.in (dummy-frame.o): Update dependencies.
8529
b1e29e33
AC
85302003-05-05 Andrew Cagney <cagney@redhat.com>
8531
8532 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8533 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8534 SIZEOF_CALL_DUMMY_WORDS.
8535 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8536 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8537 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8538 CALL_DUMMY_BREAKPOINT_OFFSET.
8539 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8540 CALL_DUMMY_START_OFFSET.
8541 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8542 * gdbarch.h, gdbarch.c: Re-generate.
8543 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8544 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8545 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8546 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8547 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8548 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8549 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8550 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8551 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8552 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8553 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8554 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8555 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8556 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8557 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8558
85592003-05-05 Kris Warkentin <kewarken@qnx.com>
8560
8561 * configure.tgt: Add i[3456]86-*-nto*.
8562 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8563 * nto-tdep.c: New file. Neutrino target support routines.
8564 * nto-tdep.h: New file. Neutrino target header.
8565 * config/tm-qnxnto.h: New file.
8566 * config/i386/i386nto.mt: New file.
8567 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8568
0ce3d317
AC
85692003-05-04 Andrew Cagney <cagney@redhat.com>
8570
8571 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8572 (load_infrun_state): Ditto.
8573 (struct thread_info): Drop "prev_func_name" field.
8574 * thread.c (load_infrun_state): Update.
8575 (save_infrun_state): Update.
8576 * infrun.c (prev_func_name): Delete variable.
8577 (init_wait_for_inferior): Do not clear prev_func_name.
8578 (stop_stepping, keep_going, context_switch): Do not swap
8579 prev_func_name.
8580 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8581 instead of PC_IN_SIGTRAMP.
8582
46654a5b
AC
85832003-05-04 Andrew Cagney <cagney@redhat.com>
8584
8585 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8586 REGISTER_BYTE with register_offset_hack.
8587 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8588 that REGISTER_BYTE is consistent with the regcache.
8589 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8590 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8591
14b08c1b
MK
85922003-05-04 Mark Kettenis <kettenis@gnu.org>
8593
04c8243f
MK
8594 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8595 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8596
14b08c1b
MK
8597 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8598
c7a11e01
JB
85992003-05-03 J. Brobecker <brobecker@gnat.com>
8600
8601 From Thierry Schneider <tpschneider1@yahoo.com>
8602 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8603 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8604 (mi-cmd-symbol.o): Add rule.
8605
7043d8dc
AC
86062003-05-03 Andrew Cagney <cagney@redhat.com>
8607
8608 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8609 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8610 * gdbarch.h, gdbarch.c: Re-generate.
8611 * d10v-tdep.c (d10v_push_dummy_code): New function.
8612 (d10v_gdbarch_init): Set push_dummy_code.
8613 * infcall.c (legacy_push_dummy_code): New function.
8614 (generic_push_dummy_code): New function.
8615 (push_dummy_code): New function.
8616 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8617 instead of dummy_addr, to push_dummy_call. Move call to
8618 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8619 switch.
8620 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8621
92bf2b80
AC
86222003-05-03 Andrew Cagney <cagney@redhat.com>
8623
8624 * disasm.h (print_insn): Declare.
8625 * disasm.c (init_gdb_disassemble_info): New function.
8626 (gdb_disassembly): Call init_gdb_disassemble_info.
8627 (gdb_print_insn): New function.
8628 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8629 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8630 * mcore-tdep.c: Include "disasm.h"
8631 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8632 * d10v-tdep.c: Include "disasm.h".
8633 (display_trace): Call gdb_print_insn, instead of print_insn.
8634 (print_insn): Delete function.
8635 * printcmd.c: Include "disasm.h".
8636 (print_insn): Delete function.
8637 (print_formatted): Call gdb_print_insn, instead of print_insn.
8638 * Makefile.in (printcmd.o): Update dependencies.
8639 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8640
27d94c49
AC
86412003-05-02 Andrew Cagney <cagney@redhat.com>
8642
82de1e5b
AC
8643 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8644 PC_REGNUM, re-indent.
8645 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8646 PC_REGNUM isn't set.
8647
27d94c49
AC
8648 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8649 * gdbarch.h, gdbarch.c: Re-generate.
8650 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8651 register_virtual_size, pc_regnum, or register_bytes.
8652 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8653 (d10v_register_type): Use D10V_PC_REGNUM.
8654 (d10v_print_registers_info, d10v_read_pc): Ditto.
8655 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8656 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8657
a9c0dc7f
DC
86582003-05-02 David Carlton <carlton@bactrian.org>
8659
8660 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8661 the name with mstrsave.
8662
e33d66ec
EZ
86632003-05-02 Elena Zannoni <ezannoni@redhat.com>
8664
8665 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8666 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8667 (host_charset_name, target_charset_name): New vars for use by
8668 set/show commands.
8669 (host_charset_enum, target_charset_enum): New enums for set/show
8670 commands.
8671 (set_charset_sfunc, set_host_charset_sfunc,
8672 set_target_charset_sfunc): New functions.
8673 (set_host_charset, set_target_charset): Make static.
8674 (list_charsets, set_host_charset_command,
8675 set_target_charset_command): Delete functions.
8676 (show_charset_command): Rewrite as....
8677 (show_charset): Hook this up with the set/show command mechanism.
8678 (_initialize_charset): Change names of charsets to match the
8679 set/show enums. Use host_charset_name and target_charset_name.
8680 Use set/show mechanism for charset, host-charset, target-charset
8681 commands. Do not make 'show host-charset' and 'show
8682 target-charset' be aliases of 'show charset'.
8683
8684 * charset.h (set_host_charset, set_target_charset): Don't export,
8685 they are not used outside the file.
8686
2b6fd0d8
AC
86872003-05-01 Andrew Cagney <cagney@redhat.com>
8688
8689 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8690 (gdb_disassembly): Make "di" non static, always initialize and
8691 cleanup. Always use dis_asm_read_memory.
8692 (gdb_dis_asm_read_memory): Delete function.
8693
6ae2f580
AC
86942003-05-01 Andrew Cagney <cagney@redhat.com>
8695
8696 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8697 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8698
810ecf9f
AC
86992003-04-30 Andrew Cagney <cagney@redhat.com>
8700
8701 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8702 "tm_print_insn_info".
8703 (TARGET_PRINT_INSN_INFO): Delete macro.
8704 (dis_asm_read_memory): Delete function declaration.
8705 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8706 (tm_print_insn_info): Delete variable definition.
8707 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8708 * gdbarch.h, gdbarch.c: Re-generate.
8709 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8710 "deprecated_tm_print_insn_info".
8711 * mcore-tdep.c (mcore_dump_insn): Ditto.
8712 * mips-tdep.c (mips_gdbarch_init): Ditto.
8713 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8714 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8715 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8716 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8717 instead of TARGET_PRINT_INSN_INFO, add comment.
8718 * s390-tdep.c (s390_get_frame_info): Instead of
8719 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8720 (s390_check_function_end, s390_is_sigreturn): Ditto.
8721 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8722 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8723 * disasm.c: Include "gdbcore.h".
8724 (_initialize_disasm): New function, initialize
8725 "deprecated_tm_print_insn_info".
8726 (deprecated_tm_print_insn_info): New variable.
8727 (dis_asm_read_memory): Moved from "corefile.c", made static.
8728 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8729 * Makefile.in (disasm.o): Update dependencies.
8730
07020390
AC
87312003-04-30 Andrew Cagney <cagney@redhat.com>
8732
8733 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8734
a9fa03de
AF
87352003-04-29 Adam Fedor <fedor@gnu.org>
8736
8737 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8738 * infcall.c (find_function_addr): Make non-static.
8739 * infcall.h (find_function_addr): Declare.
8740 * Makefile.in (eval.o): Update dependencies.
8741
1bae87b9
AF
87422003-04-28 Adam Fedor <fedor@gnu.org>
8743
8744 * symtab.c (symbol_find_demangled_name): Check for and demangle
8745 ObjC symbols.
8746 (symbol_init_demangled_name): Init for language_objc as well.
8747
0ba6dca9
AC
87482003-04-28 Andrew Cagney <cagney@redhat.com>
8749
8750 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8751 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8752 * gdbarch.h, gdbarch.c: Re-generate.
8753 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8754 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8755 * inferior.h (deprecated_read_fp): Rename read_fp.
8756 (generic_target_read_fp): Delete declaration.
8757 * regcache.c (generic_target_read_fp): Delete function.
8758 (deprecated_read_fp): Replace read_fp, use
8759 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8760 * d10v-tdep.c (d10v_read_fp): Delete function.
8761 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8762
8763 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8764 deprecated_target_read_fp to generic_target_read_fp.
8765 * sh-tdep.c (sh_gdbarch_init): Ditto.
8766 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8768 * frv-tdep.c (frv_gdbarch_init): Ditto.
8769
8770 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8771 deprecated_fp_regnum.
8772 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8773 * vax-tdep.c (vax_gdbarch_init): Ditto.
8774 * v850-tdep.c (v850_gdbarch_init): Ditto.
8775 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8776 * sh-tdep.c (sh_gdbarch_init): Ditto.
8777 * s390-tdep.c (s390_gdbarch_init): Ditto.
8778 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8779 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8780 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8781 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8783 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8784 * i386-tdep.c (i386_gdbarch_init): Ditto.
8785 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8786 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8787 * frv-tdep.c (frv_gdbarch_init): Ditto.
8788 * cris-tdep.c (cris_gdbarch_init): Ditto.
8789 * avr-tdep.c (avr_gdbarch_init): Ditto.
8790 * arm-tdep.c (arm_gdbarch_init): Ditto.
8791 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8792
8793 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8794 * v850-tdep.c (v850_gdbarch_init): Ditto.
8795 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8796 * sh-tdep.c (sh_gdbarch_init): Ditto.
8797 * s390-tdep.c (s390_gdbarch_init): Ditto.
8798 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8799 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8800 * mips-tdep.c (mips_gdbarch_init): Ditto.
8801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8802 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8803 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8804 * frv-tdep.c (frv_gdbarch_init): Ditto.
8805 * avr-tdep.c (avr_gdbarch_init): Ditto.
8806 * arm-tdep.c (arm_gdbarch_init): Ditto.
8807
8808 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8809 DEPRECATED_FP_REGNUM.
8810 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8811 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8812 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8813 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8814 (sparc32_register_virtual_type): Ditto.
8815 * sh-tdep.c (sh64_frame_chain): Ditto.
8816 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8817 (sh_nofp_frame_init_saved_regs): Ditto.
8818 (sh64_nofp_frame_init_saved_regs): Ditto.
8819 (sh_fp_frame_init_saved_regs): Ditto.
8820 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8821 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8822 * procfs.c (procfs_fetch_registers): Ditto.
8823 (procfs_store_registers): Ditto.
8824 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8825 (store_inferior_registers, fetch_core_registers): Ditto.
8826 (fetch_kcore_registers, clear_regs): Ditto.
8827 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8828 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8829 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8830 * nlm/i386.c (do_status): Ditto.
8831 * mipsv4-nat.c (supply_gregset): Ditto.
8832 * mips-tdep.c: Ditto for comments.
8833 * mips-nat.c (fetch_inferior_registers): Ditto.
8834 (store_inferior_registers, fetch_core_registers): Ditto.
8835 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8836 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8837 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8838 (i386_do_pop_frame, i386_register_type): Ditto.
8839 * hppa-tdep.c (hppa_frame_chain): Ditto.
8840 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8841 (hppa_pop_frame, hppa_read_fp): Ditto.
8842 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8843 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8844 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8845 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8846 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8847 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8848 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8849 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8850 * blockframe.c: Ditto for comments.
8851 * arch-utils.h: Ditto for comments.
8852 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8853 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8854 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8855 * alpha-tdep.h: Ditto for comments.
8856 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8857 (alpha_cannot_store_register): Ditto.
8858 (alpha_push_dummy_frame): Ditto.
8859 * alpha-nat.c (supply_gregset): Ditto.
8860
8861 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8862 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8863 * config/sparc/tm-sparc.h: Update comment.
8864
8865 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8866 deprecated_read_fp instead of TARGET_READ_FP.
8867 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8868 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8869 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8870 deprecated_read_fp instead of read_fp.
8871 * s390-tdep.c (s390_push_arguments): Ditto.
8872 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8873 * frame.h: Ditto in comments.
8874 * frame.c (legacy_get_prev_frame): Ditto.
8875 * dummy-frame.c (dummy_frame_this_id): Ditto.
8876 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8877
d7a27068
AC
88782003-04-28 Andrew Cagney <cagney@redhat.com>
8879
8880 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8881 * gdbarch.h, gdbarch.c: Re-generate.
8882 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8883 * vax-tdep.c (_initialize_vax_tdep): Update.
8884 * v850-tdep.c (_initialize_v850_tdep): Update.
8885 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8886 * s390-tdep.c (_initialize_s390_tdep): Update.
8887 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8888 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8889 * mips-tdep.c (_initialize_mips_tdep): Update.
8890 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8891 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8892 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8893 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8894 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8895 * frv-tdep.c (_initialize_frv_tdep): Update.
8896 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8897 (_initialize_cris_tdep): Update.
8898 * arch-utils.c (legacy_print_insn): Update.
8899 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8900
d2630e69
AF
89012003-04-26 Adam Fedor <fedor@gnu.org>
8902
8903 * linespec.c (decode_objc): New function to decode ObjC calls
8904 (decode_line_1): Check for ObjC calls (using decode_objc)
8905 * Makefile (linespec.o): Update dependencies.
8906
3086aeae
DJ
89072003-04-26 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * breakpoint.h (struct breakpoint_ops): New.
8910 (struct breakpoint): Add ops member.
8911
8912 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8913 (mention): Use new breakpoint ops member.
8914 (set_raw_breakpoint): Initialize ops field to NULL.
8915 (print_exception_catchpoint, print_one_exception_catchpoint)
8916 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8917 (gnu_v3_exception_catchpoint_ops): New.
8918 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8919
1fbec6c3
AF
89202003-04-25 Adam Fedor <fedor@gnu.org>
8921
8922 * Makefile.in (COMMON_OBS): Add objc-lang.o
8923
0ef21242
AC
89242003-04-25 Andrew Cagney <cagney@redhat.com>
8925
8926 * d10v-tdep.c (print_insn): Delete function.
8927 (display_trace): Use TARGET_PRINT_INSN.
8928 (_initialize_d10v_tdep): Do not set tm_print_insn.
8929 (d10v_gdbarch_init): Set print_insn.
8930
f75493ed
AC
89312003-04-25 Andrew Cagney <cagney@redhat.com>
8932
8933 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8934 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8935 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8936 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8937 (nr_dmap_regs, a0_regnum): ... new functions.
8938 (d10v_print_registers_info): Use a0_regnum, use register_size.
8939 (d10v_register_byte): Delete function.
8940 (d10v_register_raw_size): Delete function.
8941 (d10v_register_type): Use a0_regnum.
8942 (d10v_print_registers_info): Use a0_regnum.
8943 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8944 (d10v_gdbarch_init): Do not set register_byte or
8945 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8946 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8947 extract_address.
8948 (trace_command): Use XCALLOC.
8949 (print_insn): Delete reference to tm_print_insn.
8950 (saved_regs_unwinder): Use store_unsigned_integer instead of
8951 store_address.
8952 * frame.h (FRAME_OBSTACK_CALLOC): Define
8953
2202b100
DC
89542003-04-25 David Carlton <carlton@bactrian.org>
8955
8956 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8957
4e45ca2e
AF
89582003-04-24 Adam Fedor <fedor@gnu.org>
8959
8960 * objc-lang.c: Include "valprint.h"
8961 * Makefile.in (objc-lang.o): Update dependencies.
8962
93de3e7f
AF
89632003-04-24 Adam Fedor <fedor@gnu.org>
8964
8ffd9b1b 8965 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
8966 architecture dependant compilation and mark as unimplemented
8967 (until they get put in the gdbarch vector).
8968
0f20eeea
DC
89692003-04-23 David Carlton <carlton@bactrian.org>
8970
8971 * cp-support.c (cp_find_first_component): Accept 'operator' in
8972 more locations.
8973
74cfe982
AC
89742003-04-23 Andrew Cagney <cagney@redhat.com>
8975
8976 * infcall.c (call_function_by_hand): Eliminate redundant
8977 indentation. Move "saved_async" and "old_cleanups" to where they
8978 are needed.
8ffd9b1b 8979
52557533
AC
89802003-04-23 Andrew Cagney <cagney@redhat.com>
8981
8982 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8983 and "buffer". Move the "name" code to where it is needed.
8984
158775de
AC
89852003-04-23 Andrew Cagney <cagney@redhat.com>
8986
8987 * infcall.c (call_function_by_hand): Move variables "start_sp",
8988 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8989 code to ON_STACK switch branch.
8ffd9b1b 8990
ebc7896c
AC
89912003-04-23 Andrew Cagney <cagney@redhat.com>
8992
8993 * infcall.c (call_function_by_hand): Make declaration of "i",
8994 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8995 lint.
8996
d727590f
AC
89972003-04-23 Andrew Cagney <cagney@redhat.com>
8998
8999 * infcall.c (call_function_by_hand): Delete variable
9000 "n_method_args". Localize "param_type"'s declaration to the loop
9001 that it is used. Reinstate code assigning to said variable -
9002 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9003 Rationalize code using "param_type".
9004
d585e13a
AC
90052003-04-22 Andrew Cagney <cagney@redhat.com>
9006
9007 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9008 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9009 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9010 to DEPRECATED_PUSH_RETURN_ADDRESS.
9011
051caad9
KB
90122003-04-22 Kevin Buettner <kevinb@redhat.com>
9013
9014 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9015 on the DWARF2 register number prior to fetching a register.
9016
77296879
JB
90172003-04-22 J. Brobecker <brobecker@gnat.com>
9018
9019 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9020 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9021 this macro was always set to 0.
77296879
JB
9022 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9023 considering the fact that this macro was always set to 0.
9024 * hppa-tdep.h (hppa_store_return_value): Likewise.
9025 (hppa_extract_return_value): Likewise.
9026
4252f1df
JB
90272003-04-22 J. Brobecker <brobecker@gnat.com>
9028
9029 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9030 the hppa-pro target only.
9031
14604c6b
JB
90322003-04-21 J. Brobecker <brobecker@gnat.com>
9033
9034 Ongoing multi-arch conversion effort for HP/UX:
9035 * config/pa/tm-hppa.h: Move all macro that are no longer
9036 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9037 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9038
77eb01d1
JB
90392003-04-21 J. Brobecker <brobecker@gnat.com>
9040
9041 * config/pa/tm-hppa.h: Obsolete a section that was only used
9042 for hppa-pro.
9043
61995b3b
JB
90442003-04-21 J. Brobecker <brobecker@gnat.com>
9045
9046 Ongoing multi-arch conversion for HP/UX.
9047 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9048 if already defined (allows hppa64 to stay non-multiarched for now).
9049 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9050
4aa79dcc
AC
90512003-04-21 Andrew Cagney <cagney@redhat.com>
9052
9053 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9054
0f751ff2
AC
90552003-04-21 Andrew Cagney <cagney@redhat.com>
9056
9057 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9058 "i386_num_mmx_regs".
9059
04714b91
AC
90602003-04-21 Andrew Cagney <cagney@redhat.com>
9061
9062 * infcall.c: New file.
9063 * infcall.h: New file.
9064 * valarith.c: Include "infcall.h".
9065 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9066 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9067 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9068 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9069 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9070 (SFILES): Add "infcall.c"
9071 (COMMON_OBS): Add "infcall.o".
9072 (infcall.o): Specify dependencies.
9073 * value.h (call_function_by_hand): Delete declaration.
9074 * inferior.h (run_stack_dummy): Delete declaration.
9075 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9076 (run_stack_dummy): Move to "infcall.c", merged into
9077 call_function_by_hand.
9078 * valops.c (call_function_by_hand): Moved to "infcall.c".
9079 (find_function_addr, value_arg_coerce): Ditto.
9080 (unwindonsignal_p, coerce_float_to_double): Ditto.
9081 (_initialize_valops): Move "set/show coerce-float-to-double", and
9082 "set/show unwindonsignal" commands to "infcall.c".
9083 * v850-tdep.c, target.h: Update comments.
9084 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9085 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9086 (sh64_init_extra_frame_info): Update comments.
9087 * mn10300-tdep.c: Update comments.
9088 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9089 * config/sparc/tm-sparc.h: Update comments.
9090 * breakpoint.h: Update comments.
9091 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9092 * arm-tdep.c: Update comment.
9093
f9d3c2a8
MK
90942003-04-19 Mark Kettenis <kettenis@gnu.org>
9095
c40e1eab
MK
9096 * i386-tdep.c (i386_num_register_names): New variable.
9097 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9098 (MM0_REGNUM): Remove redundant parentheses in define.
9099 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9100 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9101 i386_mxcsr_regnum_p): Remove redundant parentheses.
9102 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9103
94ea66b3
MK
9104 * i386-tdep.c (i386_extract_return_value,
9105 i386_store_return_value): Correct check for availability of
9106 floating-point registers.
9107
54299a1d
MK
9108 * i386-tdep.c (i386_frame_num_args): Remove function.
9109 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9110
c86c27af
MK
9111 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9112 mmx_regnum_to_fp_regnum. Adjust all callers.
9113
f9d3c2a8
MK
9114 * i386-tdep.c (i386_get_longjmp_target): Use
9115 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9116 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9117 extract_address.
9118
94ba74a9
MK
91192003-04-19 Mark Kettenis <kettenis@gnu.org>
9120
9121 * core-regset.c: Update comments to reflect reality. Re-order
9122 includes.
9123 (fetch_core_registers): Use switch instead of if. Remove
9124 redundant prototype.
9125
4074e13c
JB
91262003-04-18 Jim Blandy <jimb@redhat.com>
9127
9128 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9129 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9130
e3ab4aba
RH
91312003-04-17 Richard Henderson <rth@redhat.com>
9132
9133 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9134
627bf7c1
EZ
91352003-04-17 Michael Snyder <msnyder@redhat.com>
9136 Karen Bennet <bennet@redhat.com>
9137
9138 Committed by Elena Zannoni <ezannoni@redhat.com>
9139 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9140
514621a9
EZ
91412003-04-17 Elena Zannoni <ezannoni@redhat.com>
9142
9143 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9144 value if the return type is void.
514621a9 9145
b4acd559
JJ
91462003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9147
9148 * thread-db.c: Reindented.
8ffd9b1b 9149
530b167e 91502003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9151
9152 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9153 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9154 as types.
9155
0a48e7e8
MS
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
8ffd9b1b 9179
ab9fe00e
KB
91802003-04-16 Kevin Buettner <kevinb@redhat.com>
9181
610a3745 9182 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9183 the size of ``long double'' to 16, instead of 8.
9184
e64a344c
MK
91852003-04-16 Mark Kettenis <kettenis@gnu.org>
9186
9187 * i386-linux-nat.c: Add some whitespace to make things more
9188 readable.
9189 (fetch_register, store_register, fetch_inferior_registers,
9190 store_inferior_registers): Get rid of assignment in if-statement.
9191 (store_register): Fix typo in error message.
9192
25d41031
AC
91932003-04-16 Andrew Cagney <cagney@redhat.com>
9194
9195 * utils.c (xmmalloc): Always allocate something, matches
9196 libiberty/xmalloc's semantics.
9197 (xmrealloc, xmcalloc): Ditto.
9198
c50901fd
AC
91992003-04-16 Andrew Cagney <cagney@redhat.com>
9200
9201 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9202 update comments.
9203 (get_frame_type): Initialize unwind and type when needed.
9204 (get_frame_id, frame_register_unwind): Ditto.
9205
f81824a9
AC
92062003-04-16 Andrew Cagney <cagney@redhat.com>
9207
9208 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9209 obsolete.
9210 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9211 * sparcl-stub.c: Obsolete file.
9212 * config/sparc/tm-sparclet.h: Obsolete file.
9213 * sparclet-stub.c: Obsolete file.
9214 * sparclet-rom.c: Obsolete file.
9215 * sparcl-tdep.c: Obsolete file.
9216 * config/sparc/tm-sparclite.h: Obsolete file.
9217 * config/sparc/sparclite.mt: Obsolete file.
9218 * config/sparc/sparclet.mt: Obsolete file.
9219 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9220 sparc86x-*-* obsolete.
9221
9219021c
DC
92222003-04-15 David Carlton <carlton@math.stanford.edu>
9223
9224 * Makefile.in (SFILES): Add cp-namespace.c.
9225 (COMMON_OBS): Add cp-namespace.o.
9226 (block.o): Depend on gdb_obstack_h and cp_support_h.
9227 (buildsym.o): Depend on cp_support_h.
9228 (cp-namespace.o): New.
9229 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9230 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9231 (dwarf2read.o): Depend on cp_support_h.
9232 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9233 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9234 processing_current_namespace.
9235 (read_namespace): Update processing_current_namespace; check for
9236 anonymous namespaces.
9237 (dwarf2_name): New function.
9238 (dwarf2_extension): Ditto.
9239 * cp-support.h: Update copyright, contributors.
9240 Add inclusion guards.
9241 Add opaque declaration for structs obstack, block, symbol.
9242 (struct using_direct): New struct.
9243 Add declarations for cp_find_first_component,
9244 cp_entire_prefix_len, processing_has_namespace_info,
9245 processing_current_namespace, cp_is_anonymous,
9246 cp_add_using_directive, cp_initialize_namespace,
9247 cp_finalize_namespace, cp_set_block_scope,
9248 cp_scan_for_anonymous_namespaces.
9249 * cp-namespace.c: New file.
9250 * cp-support.c: Update copyright.
9251 Include ctype.h, gdb_assert.h, gdbcmd.h.
9252 New variable maint_cplus_cmd_list.
9253 (cp_find_first_component): New function.
9254 (cp_entire_prefix_len, maint_cplus_command)
9255 (first_component_command, _initialize_cp_support): Ditto.
9256 * buildsym.c: Include cp-support.h.
9257 New variable using_list.
9258 (add_symbol_to_list): Check for anonymous namespaces.
9259 (finish_block): Set block's scope.
9260 (start_symtab): Initialize C++ namespace support.
9261 (end_symtab): Finalize C++ namespace support.
9262 * block.h: Add opaque declarations for structs
9263 block_namespace_info, using_direct, and obstack.
9264 Add declarations for block_set_scope and block_set_using.
9265 (struct block): Add 'language_specific' member.
9266 (BLOCK_NAMESPACE): New macro.
9267 * block.c: Include gdb_obstack.h and cp-support.h.
9268 (struct block_namespace_info): New struct.
9269 (block_set_scope): New function.
9270 (block_set_using, block_initialize_namespace): Ditto.
9271
d5a921c9
KB
92722003-04-14 Kevin Buettner <kevinb@redhat.com>
9273
9274 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9275 (locate_base): Return early if there aren't any link map offsets.
9276 (svr4_solib_create_inferior_hook): Warn if shared library support
9277 is unavailable.
9278
d2a52b27
DC
92792003-04-14 David Carlton <carlton@math.stanford.edu>
9280
9281 * symtab.c (symbol_set_names): Add prefix when storing Java names
9282 in hash table. Fix for PR java/1039.
9283
980cae7a
DC
92842003-04-14 David Carlton <carlton@math.stanford.edu>
9285
9286 * symtab.c (symbol_set_names): Rename 'name' arg to
9287 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9288 * symtab.h: Change 'name' argument in declaration of
9289 symbol_set_names to 'linkage_name'.
9290 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9291
e227b13c
AC
92922003-04-14 Andrew Cagney <cagney@redhat.com>
9293
9294 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9295 return the fully sign-extended register value.
9296 (get_frame_pointer): Ditto.
9297 (mips_pop_frame): Initialize "proc_desc" after checking for a
9298 dummy frame.
9299
36712a20
AC
93002003-04-14 Andrew Cagney <cagney@redhat.com>
9301
9302 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9303 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9304 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9305 (mips_push_register): Delete function.
9306 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9307 PUSH_FP_REGNUM.
9308
44ea7b70
JB
93092003-04-14 Jim Blandy <jimb@redhat.com>
9310
9311 * symmisc.c: #include "gdb_regex.h".
9312 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9313 functions.
9314 * maint.c (maintenance_list_command): New function.
9315 (_initialize_maint_cmds): Register the above as commands.
9316 * symtab.h (maintenance_list_symtabs,
9317 maintenance_list_psymtabs): New declarations.
9318 * cli/cli-cmds.c (maintenancelistlist): New variable.
9319 (init_cmd_lists): Initialize it.
9320 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9321 * gdbcmd.h (maintenancelistlist): New declaration.
9322 * Makefile.in (symmisc.o): Update dependencies.
9323
2d0c7962
EZ
93242003-04-14 Elena Zannoni <ezannoni@redhat.com>
9325
9326 * s390-nat.c: Include asm/types.h for addr_t.
9327
1947a811
CV
93282003-04-14 Corinna Vinschen <vinschen@redhat.com>
9329
9330 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9331 actually incoming type.
9332
adb616d7
AC
93332003-04-13 Andrew Cagney <cagney@redhat.com>
9334
9335 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9336 get_next_frame and get_frame_saved_regs.
9337
9b5e151c
AC
93382003-04-13 Andrew Cagney <cagney@redhat.com>
9339
9340 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9341 of gdbarch_num_regs.
9342
ef6e7e13
AC
93432003-04-13 Andrew Cagney <cagney@redhat.com>
9344
9345 * frame.h: Mention what replaced what in "struct frame_info".
9346 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9347 deprecated_update_frame_base_hack and
9348 deprecated_update_frame_pc_hack.
9349 * hppa-tdep.c: Ditto.
9350
61fbb938
DJ
93512003-04-13 Daniel Jacobowitz <drow@mvista.com>
9352
9353 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9354 to read_reg and update its comment. Remove regnum member.
9355 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9356 Don't call read_reg when setting in_reg. Call read_reg to get
9357 the frame base if it's in a register. Return the register number
9358 on the stack instead of in the context. Remove extra arguments
9359 to read_reg.
9360 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9361 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9362 the register number on the expression stack.
9363 (needs_frame_read_reg): Remove extra arguments.
9364
0d53c4c4
DJ
93652003-04-13 Daniel Jacobowitz <drow@mvista.com>
9366
9367 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9368 made non-static.
9369 (execute_stack_op): All callers updated.
9370 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9371 * dwarf2loc.c (find_location_expression): New function.
9372 (dwarf_expr_frame_base): Call it.
9373 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9374 (dwarf2_tracepoint_var_ref): New function, broken out from
9375 locexpr_tracepoint_var_ref.
9376 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9377 Make static.
9378 (loclist_read_variable, loclist_read_needs_frame): New functions.
9379 (loclist_describe_location, loclist_tracepoint_var_ref): New
9380 functions.
9381 (dwarf2_loclist_funcs): New struct location_funcs.
9382 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9383 (struct dwarf2_locexpr_baton): Add comments.
9384 (dwarf2_loclist_funcs): New extern.
9385 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9386 base_address and base_known.
9387 (dwarf_loc_buffer): New variable.
9388 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9389 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9390 (dwarf2_has_info): Initialize dwarf_loc_offset.
9391 (dwarf2_build_psymtabs): Read in .debug_loc.
9392 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9393 DWARF_LOC_SIZE.
9394 (psymtab_to_symtab_1): Likewise. Move base address calculation
9395 here, from...
9396 (dwarf2_get_pc_bounds): ... here. Use the base address from
9397 cu_header.
9398 (dwarf2_symbol_mark_computed): Handle location lists.
9399
6aca59a3
DJ
94002003-04-13 Daniel Jacobowitz <drow@mvista.com>
9401
9402 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9403 if the linkage name demangled successfully.
9404
aca1fcd0
MK
94052003-04-13 Mark Kettenis <kettenis@gnu.org>
9406
97095916
MK
9407 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9408 disassmbly_flavour): Removed.
9409
aca1fcd0
MK
9410 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9411
562a961f
MK
94122003-04-13 Mark Kettenis <kettenis@gnu.org>
9413
9414 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9415
bd013d54
AC
94162003-04-12 Andrew Cagney <cagney@redhat.com>
9417
9418 * frame.h (struct frame_info): Move definition from here ...
9419 * frame.c (struct frame_info): ... to here.
9420
167ef8b1
AC
94212003-04-12 Andrew Cagney <cagney@redhat.com>
9422
9423 * gdbthread.h (save_infrun_state): Delete parameter
9424 "prev_func_start".
9425 (struct thread_info): Delete field "prev_func_start".
9426 (load_infrun_state): Ditto.
9427 * thread.c (load_infrun_state, save_infrun_state): Update.
9428 * infrun.c (prev_func_start): Delete variable.
9429 (context_switch, init_wait_for_inferior): Update.
9430 (stop_stepping, keep_going): Update.
9431
da3331ec
AC
94322003-04-12 Andrew Cagney <cagney@redhat.com>
9433
9434 * gdbarch.sh: Add missing opaque declarations.
9435 * gdbarch.h: Regnerate.
9436 * symtab.h: Add missing opaque declarations.
9437 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9438 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9439 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9440 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9441 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9442 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9443 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9444 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9445 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9446 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9447 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9448 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9449 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9450
18adea3f
AC
94512003-04-11 Andrew Cagney <cagney@redhat.com>
9452
9453 * frame.c (get_frame_id): Return this frame's "id".
9454 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9455 function start.
9456 (legacy_saved_regs_this_id): Replace function body with
9457 internal-error.
9458 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9459 FRAME_OBSTACK_ZALLOC.
9460 (create_new_frame): Mark the frame ID as valid.
9461
2252e863
AO
94622003-04-11 Alexandre Oliva <aoliva@redhat.com>
9463
9464 * Makefile.in (libbfd_h): Added missing setting.
9465 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9466 according to the selected ABI.
9467
a8245ab8
JJ
94682003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9469
9470 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9471
6913c89a
AC
94722003-04-11 Andrew Cagney <cagney@redhat.com>
9473
9474 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9475 SAVED_PC_AFTER_CALL.
9476 * gdbarch.h, gdbarch.c: Regenerate.
9477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9478 * x86-64-tdep.c (x86_64_init_abi): Update.
9479 * vax-tdep.c (vax_gdbarch_init): Update.
9480 * v850-tdep.c (v850_gdbarch_init): Update.
9481 * sparc-tdep.c (sparc_gdbarch_init): Update.
9482 * sh-tdep.c (sh_gdbarch_init): Update.
9483 * s390-tdep.c (s390_gdbarch_init): Update.
9484 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9485 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9486 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9487 * mips-tdep.c (mips_gdbarch_init): Update.
9488 * mcore-tdep.c (mcore_gdbarch_init): Update.
9489 * m68k-tdep.c (m68k_gdbarch_init): Update.
9490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9491 * ia64-tdep.c (ia64_gdbarch_init): Update.
9492 (ia64_saved_pc_after_call): Update declaration.
9493 * i386ly-tdep.c (i386lynx_init_abi): Update.
9494 * i386-tdep.c (i386_gdbarch_init): Update.
9495 * hppa-tdep.c (hppa_gdbarch_init): Update.
9496 * h8300-tdep.c (h8300_gdbarch_init): Update.
9497 * frv-tdep.c (frv_gdbarch_init): Update.
9498 * cris-tdep.c (cris_gdbarch_init): Update.
9499 * avr-tdep.c (avr_gdbarch_init): Update.
9500 * arm-tdep.c (arm_gdbarch_init): Update.
9501 * alpha-tdep.c (alpha_gdbarch_init): Update.
9502 * ns32knbsd-nat.c (frame_num_args): Update.
9503 * ns32k-tdep.c (umax_frame_num_args): Update.
9504 * mips-tdep.c (mips_init_frame_pc_first): Update.
9505 * infrun.c (step_over_function): Update.
9506 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9507 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9508 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9509 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9510 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9511 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9512 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9513 * arch-utils.c (init_frame_pc_default): Update.
9514 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9515 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9516 declaration.
8ffd9b1b 9517
38edeab8
AC
95182003-04-11 Andrew Cagney <cagney@redhat.com>
9519
9520 * i387-tdep.c: Update copyright.
9521 (i387_to_double): Delete function.
9522 (double_to_i387): Delete function.
9523
81f8a206
AC
95242003-04-10 Andrew Cagney <cagney@redhat.com>
9525
9526 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9527 frame's function's address. Simplify.
9528 (d10v_frame_unwind_cache): Check that the frame's function is
9529 non-zero.
9530
6e691f7a
JB
95312003-04-10 Jim Blandy <jimb@redhat.com>
9532
9533 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9534 call to set_gdbarch_deprecated_push_arguments.
9535
7f78e237
AC
95362003-04-10 Andrew Cagney <cagney@redhat.com>
9537
9538 * frame.c (fprint_frame_id): New function.
9539 (fprint_frame_type, fprint_frame): New function.
9540 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9541 (create_sentinel_frame, get_frame_id): Ditto.
9542 (frame_id_p, frame_id_eq): Ditto.
9543 (frame_id_inner, create_new_frame): Ditto.
9544 (legacy_get_prev_frame, get_prev_frame): Ditto.
9545 (deprecated_update_frame_pc_hack): Ditto.
9546 (frame_register_unwind): Ditto.
9547 (deprecated_update_frame_base_hack): Ditto.
9548
f870b49b
CV
95492003-04-10 Corinna Vinschen <vinschen@redhat.com>
9550
9551 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9552 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9553 frame_chain function.
9554 * Makefile.in: Add dependencies due to above change.
9555
7c86889b
CV
95562003-04-10 Corinna Vinschen <vinschen@redhat.com>
9557
9558 * blockframe.c (legacy_frame_chain_valid): Move call to
9559 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9560 inside_entry_file.
9561
d0a55772
AC
95622003-04-09 Andrew Cagney <cagney@redhat.com>
9563
9564 * frame.h (struct frame_id): Replace "pc" and "base" with
9565 "stack_addr" and "code_addr". Update comments.
9566 (frame_id_build): Update parameter names and comment.
9567 (struct frame_info): Replace "id_p" and "id" with "this_id".
9568 * dummy-frame.c (dummy_frame_this_id): Update.
9569 * breakpoint.c (print_one_breakpoint): Update.
9570 * frame.c (get_frame_id): Update.
9571 (get_frame_base, frame_id_build): Update.
9572 (create_sentinel_frame, legacy_get_prev_frame): Update.
9573 (deprecated_update_frame_base_hack): Update.
9574 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9575 (frame_id_inner): Ditto.
9576
ac16bf07
AC
95772003-04-09 Andrew Cagney <cagney@redhat.com>
9578
9579 * defs.h (gdb_print_host_address): Make "addr" parameter a
9580 pointer constant.
9581 * utils.c (gdb_print_host_address): Update.
9582
366cfc9e
KB
95832003-04-09 Kevin Buettner <kevinb@redhat.com>
9584
9585 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9586 register number for R0 is 0.
9587
cd983b5c
JB
95882003-04-09 J. Brobecker <brobecker@gnat.com>
9589
9590 * frame.h (struct gdbarch): Add opaque structure definition
9591 to avoid a compilation warning on LynxOS 4.0.
9592
d1340264
AC
95932003-04-09 Andrew Cagney <cagney@redhat.com>
9594
9595 * frame.h (struct frame_info): Delete field "pc". Replace
9596 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9597 structure.
9598 * frame.c (frame_pc_unwind): Update.
9599 (create_sentinel_frame): Do not set "pc".
9600 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9601 (get_frame_pc): Call frame_pc_unwind.
9602 (deprecated_update_frame_pc_hack): Update.
9603 (create_new_frame): Use "pc" not "->pc".
9604
90a6fffb
AC
96052003-04-09 Andrew Cagney <cagney@redhat.com>
9606
9607 * frame.c (get_frame_id): Eliminate code updating "frame".
9608 (legacy_get_prev_frame): Ditto.
9609 (get_frame_base): Return id.base directly.
9610 (deprecated_update_frame_base_hack): Update "id.base".
9611 * frame.h (struct frame_info): Delete field "frame".
9612
2fbce691
AC
96132003-04-09 Andrew Cagney <cagney@redhat.com>
9614
9615 * NEWS: Mention that the "Sequent family" is obsolete.
9616 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9617 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9618 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9619 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9620 * config/i386/tm-ptx4.h: Obsolete file.
9621 * config/i386/tm-ptx.h: Obsolete file.
9622 * symm-tdep.c: Obsolete file.
9623 * config/i386/symmetry.mt: Obsolete file.
9624 * config/i386/tm-symmetry.h: Obsolete file.
9625 * symm-nat.c: Obsolete file.
9626 * config/i386/nm-symmetry.h: Obsolete file.
9627 * config/i386/xm-symmetry.h: Obsolete file.
9628 * config/i386/symmetry.mh: Obsolete file.
9629 * config/i386/nm-ptx4.h: Obsolete file.
9630 * config/i386/ptx4.mh: Obsolete file.
9631 * config/i386/ptx.mt: Obsolete file.
9632 * config/i386/ptx.mh: Obsolete file.
9633 * config/i386/xm-ptx4.h: Obsolete file.
9634 * config/i386/xm-ptx.h: Obsolete file.
9635
78c43945
AC
96362003-04-09 Andrew Cagney <cagney@redhat.com>
9637
9638 Obsolete mips*-*-mach3*.
9639 * NEWS: Mention that mips*-*-mach3* is obsolete.
9640 * m3-nat.c: Obsolete file.
9641 * config/nm-m3.h: Obsolete file.
9642 * config/mips/tm-mipsm3.h: Obsolete file.
9643 * config/mips/mipsm3.mt: Obsolete file.
9644 * config/mips/mipsm3.mh: Obsolete file.
9645 * config/mips/xm-mipsm3.h: Obsolete file.
9646 * mipsm3-nat.c: Obsolete file.
9647 * configure.host: Obsolete mips-dec-mach3*.
9648 * configure.tgt: Obsolete mips*-*-mach3*.
9649
f1908289
AC
96502003-04-09 Andrew Cagney <cagney@redhat.com>
9651
9652 * doublest.h: Update copyright.
9653 (deprecated_store_floating, deprecated_extract_floating): Rename
9654 store_floating and extract_floating. Update comments.
9655 * doublest.c: Update copyright.
9656 (extract_floating_by_length): Replace extract_floating.
9657 (store_floating_by_length): Replace store_floating.
9658 (deprecated_extract_floating): New function.
9659 (deprecated_store_floating): New function.
9660 (extract_typed_floating): Call extract_floating_by_length.
9661 (store_typed_floating): Call store_floating_by_length.
9662 * x86-64-tdep.c (x86_64_store_return_value): Update.
9663 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9664 (sh64_extract_return_value): Update.
9665 (sh_sh4_register_convert_to_virtual): Update.
9666 (sh_sh64_register_convert_to_virtual): Update.
9667 (sh_sh4_register_convert_to_raw): Update.
9668 (sh_sh64_register_convert_to_raw): Update.
9669 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9670 (rs6000_register_convert_to_raw): Update.
9671 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9672 (ia64_register_convert_to_raw): Update.
9673 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9674 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9675 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9676 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9677 (alpha_register_convert_to_raw): Update.
9678
4443bd83
AC
96792003-04-08 Andrew Cagney <cagney@redhat.com>
9680
9681 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9682 * gdbarch.h, gdbarch.c: Re-generate.
9683 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9684 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9685 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9686 conditionally, use frame_pc_unwind as an alternative. Add
9687 comments.
9688 * arch-utils.c (init_frame_pc_default): Only call
9689 SAVED_PC_AFTER_CALL when available.
9690
c0236d92
EZ
96912003-04-08 Elena Zannoni <ezannoni@redhat.com>
9692
fbe586ae 9693 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9694 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9695 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9696 (start_remote): Ditto.
9697 (handle_inferior_event): Ditto.
9698 (save_inferior_status): Ditto.
9699 (restore_inferior_status): Ditto.
9700 * infcmd.c (attach_command): Ditto.
9701 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9702 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9703 * alpha-tdep.c (heuristic_proc_start): Ditto.
9704 * mips-tdep.c (heuristic_proc_start): Ditto.
9705 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9706 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9707 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9708 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9709 * remote-vx.c (vx_create_inferior): Ditto.
9710
97112003-04-08 Elena Zannoni <ezannoni@redhat.com>
9712
9713 * infrun.c (stop_soon_quietly): Make it an enum, to better
9714 override the default behavior of handle_inferior_event.
9715 (clear_proceed_status): Update uses of stop_soon_quietly to
9716 reflect that it is now an enum.
9717 (start_remote): Ditto.
9718 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9719 is set to handle the new GNU/Linux kernel behavior for
9720 attach/sigstop. Update uses of stop_soon_quietly.
9721 * inferior.h (enum stop_kind): New enum.
9722 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9723 Reset normal handle_inferior_event behavior, afterwards.
9724 * fork-child.c (startup_inferior): Update.
9725 * alpha-tdep.c (heuristic_proc_start): Update.
9726 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9727 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9728 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9729 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9730 * remote-vx.c (vx_create_inferior): Update.
9731 * mips-tdep.c (heuristic_proc_start): Update.
9732
1211bce3
EZ
97332003-04-07 Elena Zannoni <ezannoni@redhat.com>
9734
9735 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9736 be freed more than once, causing wild memory corruptions.
1211bce3 9737 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9738 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9739 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9740 with the "core" target.
1211bce3 9741
f0ef6b29
KB
97422003-04-07 Kevin Buettner <kevinb@redhat.com>
9743
9744 * mips-tdep.c (mips_print_fp_register): New function, created from
9745 do_fp_register_row(). Registers are now (also) printed as hex.
9746 Only one register is printed per row.
9747 (mips_print_register, do_fp_register_row): Print floating point
9748 registers with mips_print_fp_register().
9749
8cf71652
AC
97502003-04-06 Andrew Cagney <cagney@redhat.com>
9751
5e488a7b
AC
9752 * valprint.h (inspect_it): Add extern declaration.
9753 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9754 (selectors_info, classes_info): Ditto.
9755 (find_objc_msgcall): Fix indentation.
9756 (objc_printstr): Delete extern declarations.
9757
8cf71652
AC
9758 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9759
e6ba3bc9
AC
97602003-04-06 Andrew Cagney <cagney@redhat.com>
9761
9762 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9763 Update comment.
9764 * frame.c (legacy_saved_regs_this_id): Update.
9765 (legacy_get_prev_frame): Update.
9766 * xstormy16-tdep.c: Update comment.
9767 * sparc-tdep.c (sparc_frame_chain): Update comment.
9768 * blockframe.c (legacy_frame_chain_valid): Update.
9769
55e1d7e7
AC
97702003-04-06 Andrew Cagney <cagney@redhat.com>
9771
996179ee
AC
9772 * valprint.c (val_print_type_code_int): Delete #ifdef
9773 PRINT_TYPELESS_INTEGER code.
9774
55e1d7e7
AC
9775 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9776 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9777 multi-arch definition.
9778 * gdbarch.h: Re-generate.
9779
43bd9a9e
AC
97802003-04-05 Andrew Cagney <cagney@redhat.com>
9781
9782 Eliminate FRAME_FIND_SAVED_REGS.
9783 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9784 Change FSR parameter to a pointer.
9785 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9786 Assume FSR parameter is a pointer.
9787 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9788 Make fsr a pointer.
9789 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9790 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9791 saved_regs a pointer.
9792 (hppa_frame_saved_pc): Ditto.
9793 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9794 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9795 pointer.
9796 (restore_pc_queue): Make fsr a pointer.
9797 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9798 (hppa_frame_chain): Make saved_regs a pointer, call
9799 hppa_frame_init_saved_regs.
9800 * sparc-tdep.c: Include "gdb_assert.h".
9801 (sparc_frame_find_saved_regs): Replace internal_error with
9802 gdb_assert.
9803 * remote-vxsparc.c (vx_read_register): Delete reference to
9804 FRAME_FIND_SAVED_REGS.
9805 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9806 * gdbarch.h: Regenerate.
9807 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9808 (deprecated_get_frame_saved_regs): Delete declaration.
9809 (struct frame_saved_regs): Delete definition.
9810 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9811 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9812 (hppa_frame_find_saved_regs): Delete declaration.
9813 (FRAME_FIND_SAVED_REGS): Delete macro.
9814 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9815 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9816 FRAME_FIND_SAVED_REGS in comment.
9817
be41e9f4
AC
98182003-04-05 Andrew Cagney <cagney@redhat.com>
9819
9820 * frame.c (frame_func_unwind, get_frame_func): New functions.
9821 * frame.h (get_frame_func, frame_func_unwind): Declare.
9822 (struct frame_info): Add field "prev_func" for caching the
9823 previous frame's function address.
9824 * arm-tdep.c (arm_frameless_function_invocation): Combine
9825 get_pc_function_start and get_frame_pc into get_frame_func.
9826 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9827 (sh64_nofp_frame_init_saved_regs): Ditto.
9828 * s390-tdep.c (s390_function_start): Ditto.
9829 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9830 (rs6000_frameless_function_invocation): Ditto.
9831 (rs6000_frame_saved_pc): Ditto.
9832 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9833 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9834 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9835 (i386_frame_init_saved_regs): Ditto.
9836 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9837 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9838 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9839 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9840 * blockframe.c (frameless_look_for_prologue): Ditto.
9841
a01dd7cc
AC
98422003-04-05 Andrew Cagney <cagney@redhat.com>
9843
9844 * frame.c (legacy_get_prev_frame): Link prev to next at the
9845 function start. Update comments.
9846
5e5592e6
AC
98472003-04-05 Andrew Cagney <cagney@redhat.com>
9848
9849 * frame.c (get_frame_id): Update comment.
9850 (legacy_get_prev_frame): Update comment.
9851 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9852 * gdbarch.h: Regenerate.
9853 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9854 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9855
6fba5002
AC
98562003-04-05 Andrew Cagney <cagney@redhat.com>
9857
9858 * stack.c (print_frame_info): Use get_frame_pc.
9859
7df05f2b
AC
98602003-04-04 Andrew Cagney <cagney@redhat.com>
9861
9862 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9863 the frame's type from the unwinder.
9864 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9865 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9866 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9867 (get_frame_base_address): Use get_frame_type.
9868 (get_frame_locals_address, get_frame_args_address): Ditto.
9869 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9870 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9871 (struct frame_info): Add comment explaining why the frame contains
9872 a "type" field.
9873 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9874 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9875 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9876 NORMAL_FRAME.
9877 * frame-unwind.h: Include "frame.h".
9878 (struct frame_unwind): Add "type" field.
9879 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 9880
11889732
AC
98812003-04-04 Andrew Cagney <cagney@redhat.com>
9882
9883 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9884 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9885 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9886 get_frame_base.
9887 (d10v_unwind_dummy_id): Use frame_id_build.
9888 * frame.c (find_frame_sal): Use get_frame_pc.
9889 (create_new_frame): Use deprecated_update_frame_pc_hack and
9890 deprecated_update_frame_base_hack.
9891 (create_sentinel_frame): Add comment about ->pc going away.
9892 (get_prev_frame): Add comment about ->pc going away.
9893 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9894 frame_id_build, deprecated_update_frame_pc_hack and
9895 deprecated_update_frame_base_hack.
9896 (select_frame): Use get_frame_pc.
9897 (legacy_saved_regs_this_id): Use frame_id_build.
9898
50c46a0d
EZ
98992003-04-04 Elena Zannoni <ezannoni@redhat.com>
9900
fbe586ae
RH
9901 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9902 signed integer case.
9903 (classify_argument): Handle enumerations and references.
50c46a0d 9904
50bbdbd9
AC
99052003-04-04 Andrew Cagney <cagney@redhat.com>
9906
9907 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9908 ID to NULL.
9909
36018d2e
AF
99102003-04-01 Adam Fedor <fedor@gnu.org>
9911
9912 * gdb/objc-lang.c (selectors_info): Replace calls to
9913 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9914 SYMBOL_NATURAL_NAME.
9915 (classes_info, find_methods): Likewise.
9916
35cec841
KB
99172003-04-03 Kevin Buettner <kevinb@redhat.com>
9918
9919 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9920 ``mach'' to the value determined by bfd_default_set_arch_mach().
9921
43136899
BR
99222003-04-02 Bob Rossi <bob_rossi@cox.net>
9923
9924 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9925 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9926 (mi-cmd-file.o): Update dependencies.
9927
040b99fd
KB
99282003-04-01 Kevin Buettner <kevinb@redhat.com>
9929
9930 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9931 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9932
9a3d7dfd
AF
99332003-04-01 Adam Fedor <fedor@gnu.org>
9934
9935 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9936 * language.h (struct language_defn): Add la_demangle.
9937 (language_demangle): Declare.
9938 * language.c (language_demangle): New function.
9939 (unk_lang_demangle): Likewise.
9940 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 9941 Add ukn_lang_demangle.
9a3d7dfd 9942 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 9943 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
9944 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9945 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9946 * jv-lang.c (java_demangle): New function
9947 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
9948 * objc-lang.c (objc_demangle): Add options argument
9949 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
9950 * maint.c (maintenance_demangle): Replace switch with
9951 call to language_demangle.
9952 * utils.c (fprintf_symbol_filtered): Likewise.
9953
5e074003
AC
99542003-04-01 Andrew Cagney <cagney@redhat.com>
9955
9956 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9957 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9958 PRINT_TYPELESS_INTEGER.
9959 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9960 PUSH_RETURN_ADDRESS.
9961
270cb5d6
AC
99622003-04-01 Andrew Cagney <cagney@redhat.com>
9963
9964 * Makefile.in (d10v-tdep.o): Update dependencies.
9965 * d10v-tdep.c: Include "frame-base.h".
9966 (d10v_frame_unwind): Make constant.
9967 (d10v_frame_base_address): New function.
9968 (d10v_frame_base): New variable.
9969 (d10v_gdbarch_init): Set frame_base default.
9970 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9971 comment for base.
9972 (d10v_frame_unwind_cache): Set and use "prev_sp".
9973 (d10v_frame_this_id): Use the previous frame's inner most stack
9974 address and this frame's func address for the frame ID. Use
9975 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 9976
6bfb3e36
AC
99772003-04-01 Andrew Cagney <cagney@redhat.com>
9978
9979 * frame.h (get_frame_locals_address, get_frame_args_address):
9980 Refer to the base address, instead of the address of the first
9981 local or parameter.
8ffd9b1b 9982
da62e633
AC
99832003-04-01 Andrew Cagney <cagney@redhat.com>
9984
9985 Add frame debug info addresses:
9986 * frame-base.c: New file.
9987 * frame-base.h: New file.
9988 * frame.h (struct frame_base): Add opaque declaration.
9989 (get_frame_base): Update comment.
9990 (get_frame_base_address): Declare.
9991 (get_frame_locals_address): Declare.
9992 (get_frame_args_address): Declare.
9993 (struct frame_info): Add "base" and "base_cache". Update
9994 comments on the unwinder.
9995 * frame.c: Include "frame-base.h".
9996 (get_frame_locals_address): New function.
9997 (get_frame_base_address): New function.
9998 (get_frame_args_address): New function.
9999 * findvar.c (read_var_value): Use get_frame_locals_address and
10000 get_frame_args_address.
10001 * stack.c (frame_info): Use get_frame_locals_address and
10002 get_frame_args_address.
10003 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10004 moved to "frame-base.c".
10005 * printcmd.c (print_frame_nameless_args): Ditto.
10006 * symtab.h (address_class): Update comments.
10007 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10008 get_frame_base_address.
10009 * dwarf2expr.c (execute_stack_op): Ditto.
10010 * Makefile.in (frame_base_h): Define.
10011 (frame.o): Update dependencies.
10012 (frame-base.o): Add dependencies.
10013 (SFILES): Add frame-base.c.
10014 (COMMON_OBS): Add frame-base.o.
10015
3d30e9c2
AC
100162003-04-01 Andrew Cagney <cagney@redhat.com>
10017
10018 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10019 CALL_DUMMY_LENGTH): Ditto.
10020 * gdbarch.c: Re-generate.
10021 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10022 (CALL_DUMMY_LENGTH): Delete macro.
10023 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10024 * arm-tdep.c (arm_gdbarch_init): Ditto.
10025 * avr-tdep.c (avr_gdbarch_init): Ditto.
10026 * cris-tdep.c (cris_gdbarch_init): Ditto.
10027 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10028 * frv-tdep.c (frv_gdbarch_init): Ditto.
10029 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10030 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10031 * i386-tdep.c (i386_gdbarch_init): Ditto.
10032 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10034 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10035 * mips-tdep.c (mips_gdbarch_init): Ditto.
10036 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10037 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10038 * s390-tdep.c (s390_gdbarch_init): Ditto.
10039 * sh-tdep.c (sh_gdbarch_init): Ditto.
10040 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10041 * v850-tdep.c (v850_gdbarch_init): Ditto.
10042 * vax-tdep.c (vax_gdbarch_init): Ditto.
10043 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10044
ce0c7262
CV
100452003-04-01 Corinna Vinschen <vinschen@redhat.com>
10046
10047 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10048
73dd234f
AC
100492003-04-01 Andrew Cagney <cagney@redhat.com>
10050
10051 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10052 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10053 * gdbarch.h, gdbarch.c: Re-generate.
10054 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10055 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10056 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10057 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10058 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10059 * infcmd.c (run_stack_dummy): Simplify assuming
10060 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10061 * infrun.c (handle_inferior_event): Ditto.
10062 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10063 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10064 * arm-tdep.c (arm_gdbarch_init): Ditto.
10065 * avr-tdep.c (avr_gdbarch_init): Ditto.
10066 * cris-tdep.c (cris_gdbarch_init): Ditto.
10067 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10068 * frv-tdep.c (frv_gdbarch_init): Ditto.
10069 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10070 * i386-tdep.c (i386_gdbarch_init): Ditto.
10071 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10073 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10074 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10075 * mips-tdep.c (mips_gdbarch_init): Ditto.
10076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10077 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10078 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10079 * s390-tdep.c (s390_gdbarch_init): Ditto.
10080 * sh-tdep.c (sh_gdbarch_init): Ditto.
10081 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10082 * v850-tdep.c (v850_gdbarch_init): Ditto.
10083 * vax-tdep.c (vax_gdbarch_init): Ditto.
10084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10085
97606a13
DJ
100862003-04-01 Daniel Jacobowitz <drow@mvista.com>
10087
10088 * symfile.c (symfile_relocate_debug_section): Update call to
10089 bfd_simple_get_relocated_section_contents.
10090
e8ab51f7
AC
100912003-03-31 Andrew Cagney <cagney@redhat.com>
10092
10093 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10094 * gdbarch.h, gdbarch.c: Regenerate.
10095 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10096 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10097 available.
10098 * frame.h (generic_fix_call_dummy): Delete declaration.
10099 * dummy-frame.h: Update comment.
10100 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10102 fix_call_dummy.
10103 * sh-tdep.c (sh_gdbarch_init): Ditto.
10104 * s390-tdep.c (s390_gdbarch_init): Ditto.
10105 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10106 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10108 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10109 * i386-tdep.c (i386_gdbarch_init): Ditto.
10110 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10111 * frv-tdep.c (frv_gdbarch_init): Ditto.
10112 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10113 * cris-tdep.c (cris_gdbarch_init): Ditto.
10114 * avr-tdep.c (avr_gdbarch_init): Ditto.
10115 * arm-tdep.c (arm_gdbarch_init): Ditto.
10116
018d1b48
JB
101172003-03-31 J. Brobecker <brobecker@gnat.com>
10118
10119 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10120 (INIT_FRAME_AP): Likewise.
10121 (EXTRA_FRAME_INFO): Likewise.
10122
e9a2674e
AC
101232003-03-31 Andrew Cagney <cagney@redhat.com>
10124
10125 * gdbarch.sh: Include "symfile.h".
10126 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10127 * gdbarch.h, gdbarch.c: Re-generate.
10128 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10130 call_dummy_address, the default is at entry_point_address.
10131 * v850-tdep.c (v850_gdbarch_init): Ditto.
10132 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10133 * sh-tdep.c (sh_gdbarch_init): Ditto.
10134 * s390-tdep.c (s390_gdbarch_init): Ditto.
10135 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10136 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10138 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10139 * i386-tdep.c (i386_gdbarch_init): Ditto.
10140 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10141 * frv-tdep.c (frv_gdbarch_init): Ditto.
10142 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10143 * cris-tdep.c (cris_gdbarch_init): Ditto.
10144 * arm-tdep.c (arm_gdbarch_init): Ditto.
10145
e8a8712a
AC
101462003-03-31 Andrew Cagney <cagney@redhat.com>
10147
10148 * gdbarch.sh (CALL_DUMMY_P): Delete.
10149 * gdbarch.h, gdbarch.c: Re-generate.
10150 * inferior.h (CALL_DUMMY_P): Delete macro.
10151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10152 * vax-tdep.c (vax_gdbarch_init): Update.
10153 * v850-tdep.c (v850_gdbarch_init): Update.
10154 * sparc-tdep.c (sparc_gdbarch_init): Update.
10155 * sh-tdep.c (sh_gdbarch_init): Update.
10156 * s390-tdep.c (s390_gdbarch_init): Update.
10157 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10159 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10160 * mips-tdep.c (mips_gdbarch_init): Update.
10161 * mcore-tdep.c (mcore_gdbarch_init): Update.
10162 * m68k-tdep.c (m68k_gdbarch_init): Update.
10163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10164 * ia64-tdep.c (ia64_gdbarch_init): Update.
10165 * i386-tdep.c (i386_gdbarch_init): Update.
10166 * h8300-tdep.c (h8300_gdbarch_init): Update.
10167 * frv-tdep.c (frv_gdbarch_init): Update.
10168 * d10v-tdep.c (d10v_gdbarch_init): Update.
10169 * cris-tdep.c (cris_gdbarch_init): Update.
10170 * breakpoint.c (deprecated_frame_in_dummy): Update.
10171 * avr-tdep.c (avr_gdbarch_init): Update.
10172 * alpha-tdep.c (alpha_gdbarch_init): Update.
10173 * arm-tdep.c (arm_gdbarch_init): Update.
10174 * dummy-frame.c (dummy_frame_this_id): Update comments.
10175 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10176 * frame.c (legacy_get_prev_frame): Ditto.
10177 * valops.c (call_function_by_hand): Delete function.
10178 (hand_function_call): Rename to call_function_by_hand
10179
ed234cf8
AC
101802003-03-30 Andrew Cagney <cagney@redhat.com>
10181
10182 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10183 * value.h (struct value): Update comment.
ed234cf8 10184
06c77151
AC
101852003-03-30 Andrew Cagney <cagney@redhat.com>
10186
6c2b5168
AC
10187 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10188 D10V_FP_REGNUM.
10189 (d10v_gdbarch_init): Do not set fp_regnum.
10190
06c77151
AC
10191 * frame.c (get_frame_base): Force ID initialization.
10192 (get_prev_frame): Move computation of the frame ID from here ...
10193 (get_frame_id): ... to here.
10194 (legacy_get_prev_frame): Mark the frame ID as valid.
10195 * frame.h (struct frame_info): Add field "id_p".
10196
97a1a11c
MK
101972003-03-30 Mark Kettenis <kettenis@gnu.org>
10198
10199 * i386-tdep.c (i386_store_struct_return): Removed.
10200 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10201
6c0e89ed
AC
102022003-03-30 Andrew Cagney <cagney@redhat.com>
10203
10204 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10205 * gdbarch.h, gdbarch.c: Regenerate.
10206 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10208 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10209 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10210 * i386-tdep.c (i386_gdbarch_init): Ditto.
10211 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10212 * cris-tdep.c (cris_gdbarch_init): Ditto.
10213 * vax-tdep.c (vax_gdbarch_init): Ditto.
10214 * s390-tdep.c (s390_gdbarch_init): Ditto.
10215 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10216 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10217 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10218 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10219 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10220 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10221 * sparc-tdep.c (sparc_gdbarch_init): Update.
10222 * sh-tdep.c (sh_gdbarch_init): Update.
10223 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10224 * mips-tdep.c (mips_gdbarch_init): Update.
10225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10226 * ia64-tdep.c (ia64_gdbarch_init): Update.
10227 * frv-tdep.c (frv_gdbarch_init): Update.
10228 * avr-tdep.c (avr_gdbarch_init): Update.
10229 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10230 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10231 instead of when push_dummy_call is not available.
8ffd9b1b 10232
f7dd6af2
AC
102332003-03-30 Andrew Cagney <cagney@redhat.com>
10234
10235 * infttrace.c: Include "gdbthread.h".
10236 (parent_attach_all): Fix function signature.
10237 (call_ptrace): Update call.
10238 * Makefile.in (infttrace.o): Update dependencies.
10239
28f617b3
AC
102402003-03-30 Andrew Cagney <cagney@redhat.com>
10241
10242 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10243 PUSH_RETURN_ADDRESS.
10244 * gdbarch.h, gdbarch.c: Regenerate.
10245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10246 * x86-64-tdep.c (x86_64_init_abi): Update.
10247 * v850-tdep.c (v850_gdbarch_init): Update.
10248 * sparc-tdep.c (sparc_gdbarch_init): Update.
10249 * sh-tdep.c (sh_gdbarch_init): Update.
10250 * s390-tdep.c (s390_gdbarch_init): Update.
10251 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10252 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10253 * mips-tdep.c (mips_gdbarch_init): Update.
10254 * mcore-tdep.c (mcore_gdbarch_init): Update.
10255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10256 * ia64-tdep.c (ia64_gdbarch_init): Update.
10257 * i386-tdep.c (i386_gdbarch_init): Update.
10258 * h8300-tdep.c (h8300_gdbarch_init): Update.
10259 * frv-tdep.c (frv_gdbarch_init): Update.
10260 * cris-tdep.c (cris_gdbarch_init): Update.
10261 * avr-tdep.c (avr_gdbarch_init): Update.
10262 * arm-tdep.c (arm_gdbarch_init): Update.
10263 * valops.c (hand_function_call): Update.
10264
4d628cd7
AC
102652003-03-29 Andrew Cagney <cagney@redhat.com>
10266
10267 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10268 sizeof_call_dummy_words.
10269 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10270 define.
10271 * gdbarch.h: Regenerate.
8ffd9b1b 10272
65e82032
AC
102732003-03-29 Andrew Cagney <cagney@redhat.com>
10274
10275 * infttrace.h: New file.
10276 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10277 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10278 (hpread_read_doc_function_type): Detect an initialized type1.
10279 (hpread_quick_traverse): Initialize mod_name_string.
10280 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10281 (som_solib_get_solib_by_pc): Declare.
10282 (so_lib_thread_start_addr): Declare.
10283 (no_shared_libraries): Declare.
10284 * somread.c (init_import_symbols): Make static. Add forward
10285 declaration.
10286 * config/pa/nm-hppah.h: Include "infttrace.h" for
10287 parent_attach_all.
10288 (hppa_insert_hw_watchpoint): Declare.
10289 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10290 * hppah-nat.c: Include "gdb_string.h".
10291 (parent_attach_all): Delete extern declaration, moved to
10292 "infttrace.h".
10293 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10294 int.
10295 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10296 * Makefile.in (infttrace_h): Define.
10297 (hpread.o): Update dependencies.
10298 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10299 * hppa-hpux-tdep.c: Include "gdb_string.h".
10300 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10301 * infrun.c (handle_inferior_event): Always initialize
10302 stepped_after_stopped_by_watchpoint. Add default and remove
10303 fallthrough in switch statement.
10304 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10305 parameter to int.
10306 (hppa_remove_hw_watchpoint): Ditto.
10307
2c3bbe77
AC
103082003-03-29 Andrew Cagney <cagney@redhat.com>
10309
10310 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10311 offset.
10312
2dd604e7
RE
103132003-03-29 Richard Earnshaw <rearnsha@arm.com>
10314
10315 * arm-tdep.c (arm_push_arguments): Delete.
10316 (struct stack_item): New type.
10317 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10318 (arm_store_struct_return): Delte.
10319 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10320 arm_push_arguments or arm_store_struct_return.
10321
e8933a55
AC
103222003-03-28 Andrew Cagney <cagney@redhat.com>
10323
10324 * Makefile.in (d10v-tdep.o): Update dependencies.
10325 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10326 * d10v-tdep.c: Include "remote.h".
10327 (target_resume_hook): Delete extern declaration.
10328 (target_wait_loop_hook): Ditto.
10329 (tdisassemble_command): Eliminate assignment in "if" conditional.
10330 (d10v_ts2_register_sim_regno): Eliminate call to
10331 legacy_register_sim_regno.
10332 (d10v_ts3_register_sim_regno): Ditto.
10333
6949171e
JJ
103342003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10335
10336 * thread.c: Reindented.
10337 * lin-lwp.c: Ditto.
10338 * linux-proc.c: Ditto.
10339
98c7071f
BR
103402003-03-28 Bob Rossi <bob_rossi@cox.net>
10341
fbe586ae 10342 * MAINTAINERS (write after approval): Add myself.
98c7071f 10343
5edc9ca6
TR
103442003-03-27 Theodore A. Roth <troth@openavr.org>
10345
10346 * objc-exp.y: Add missing semi-colons.
10347
378bfd1b
AC
103482003-03-27 Andrew Cagney <cagney@redhat.com>
10349
10350 * regcache.c (write_sp): Delete function and references.
10351 * inferior.h (write_sp): Delete declaration.
10352 * valops.c (hand_function_call): Replace write_sp with
10353 TARGET_WRITE_SP.
10354 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10355 (sparc_pop_frame): Ditto.
8ffd9b1b 10356
56056df7
AC
103572003-03-27 Andrew Cagney <cagney@redhat.com>
10358
10359 * NEWS: Mention removal of support for hppa*-*-bsd* and
10360 hppa*-*-osf* natives, and hppa*-*-pro* target.
10361 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10362 * config/pa/xm-pa.h: Obsolete file.
10363 * config/pa/xm-hppab.h: Obsolete file.
10364 * config/pa/nm-hppab.h: Obsolete file.
10365 * config/pa/tm-hppab.h: Obsolete file.
10366 * config/pa/tm-hppao.h: Obsolete file.
10367 * config/pa/nm-hppao.h: Obsolete file.
10368 * config/pa/tm-pro.h: Obsolete file.
10369 * config/pa/hppaosf.mt: Obsolete file.
10370 * config/pa/hppaosf.mh: Obsolete file.
10371 * config/pa/hppapro.mt: Obsolete file.
10372 * config/pa/hppabsd.mt: Obsolete file.
10373 * config/pa/hppabsd.mh: Obsolete file.
10374 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10375 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10376 hppa*-*-osf*.
10377
5873a88d
AC
103782003-03-27 Andrew Cagney <cagney@redhat.com>
10379
10380 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10381 push_arguments. Don't set push_return_address or write_sp.
10382 (d10v_push_dummy_call): Replace d10v_push_arguments.
10383 (d10v_push_return_address, d10v_write_sp): Delete function,
10384 handled by push_dummy_call.
10385
b81774d8
AC
103862003-03-26 Andrew Cagney <cagney@redhat.com>
10387
10388 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10389 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10390 regcache and dummy_addr parameters.
10391 * gdbarch.h, gdbarch.c: Re-generate.
10392 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10393 available; assume it will handle stack alignment and return
10394 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10395 legacy_push_arguments.
10396 (legacy_push_arguments): Rename default_push_arguments.
10397 * value.h (legacy_push_arguments): Rename default_push_arguments.
10398 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10399 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10400 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10401 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10402 * config/i386/tm-symmetry.h: Update.
10403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10404 * x86-64-tdep.c (x86_64_init_abi): Update.
10405 * v850-tdep.c (v850_gdbarch_init): Update.
10406 * sparc-tdep.c (sparc_gdbarch_init): Update.
10407 * sh-tdep.c (sh_gdbarch_init): Update.
10408 * s390-tdep.c (s390_gdbarch_init): Update.
10409 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10410 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10411 * mips-tdep.c (mips_gdbarch_init): Update.
10412 * mcore-tdep.c (mcore_gdbarch_init): Update.
10413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10414 * ia64-tdep.c (ia64_gdbarch_init): Update.
10415 * i386-tdep.c (i386_gdbarch_init): Update.
10416 * hppa-tdep.c (hppa_gdbarch_init): Update.
10417 * h8300-tdep.c (h8300_gdbarch_init): Update.
10418 * frv-tdep.c (frv_gdbarch_init): Update.
10419 * d10v-tdep.c (d10v_gdbarch_init): Update.
10420 * cris-tdep.c (cris_gdbarch_init): Update.
10421 * avr-tdep.c (avr_gdbarch_init): Update.
10422 * arm-tdep.c (arm_gdbarch_init): Update.
10423 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10424 * alpha-tdep.c (alpha_gdbarch_init): Update.
10425
f541410f
DJ
104262003-03-26 Daniel Jacobowitz <drow@mvista.com>
10427
10428 * signals/signals.c (do_target_signal_to_host): Correct realtime
10429 signal range test.
10430
69f567ae
DJ
104312003-03-26 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10434 (struct sal_chain, map_catch_names): Remove.
10435 (catch_exception_command_1): Don't call
10436 handle_gnu_4_16_catch_command.
10437
d5d14a5a
DJ
104382003-03-26 Daniel Jacobowitz <drow@mvista.com>
10439
10440 From Mark Dettinger <dettinge@de.ibm.com>:
10441 * dwarf2cfi.c (read_2u): Increment pointer by two.
10442
bdd73e22
DJ
104432003-03-26 Daniel Jacobowitz <drow@mvista.com>
10444
10445 * signals/signals.c: Fix typos in last change.
10446
960cb555
DJ
104472003-03-26 Daniel Jacobowitz <drow@mvista.com>
10448
10449 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10450 not already defined. Use __SIGRTMIN if available.
10451 (target_signal_from_host): Remove SIGRTMIN block.
10452 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10453 the signal is within the realtime range.
10454
f636b87d
AF
104552003-03-25 Adam Fedor <fedor@gnu.org>
10456
10457 * Makefile.in (infrun.o): Add $(language_h)
10458 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10459 for language specific trampolines.
10460 * language.h (struct language_defn): Add skip_trampoline.
10461 (skip_language_trampoline): Declare.
10462 * language.c (unk_lang_trampoline, skip_language_trampoline):
10463 New functions.
10464 (unknown_language_defn, auto_language_defn, local_language_defn):
10465 Add ukn_lang_trampoline.
10466 * ada-lang.c (ada_language_defn): Add NULL for language
10467 specific skip_trampoline.
10468 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10469 scm-lang.c: Likewise.
10470 * objc-lang.c (objc_skip_trampoline): New function.
10471 (objc_language_defn): Add objc_skip_trampoline.
10472
28f617b3 104732003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10474
10475 * frame.c (get_prev_frame): Delay validating a frame's ID -
10476 non-NULL, didn't go backwards - until an attempt to unwind it to
10477 the previous frame.
10478
f933a9c5
AC
104792003-03-25 Andrew Cagney <cagney@redhat.com>
10480
10481 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10482 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10483 * gdbarch.h, gdbarch.c: Re-generate.
10484 * config/sparc/tm-sparc.h
10485 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10486 * sparc-tdep.c (sparc_gdbarch_init): Set
10487 deprecated_extra_stack_alignment_needed.
10488 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10490 extra_stack_alignment_needed.
10491 * v850-tdep.c (v850_gdbarch_init): Ditto.
10492 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10493 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10494 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10495 * cris-tdep.c (cris_gdbarch_init): Ditto.
10496 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10498
4183d812
AC
104992003-03-25 Andrew Cagney <cagney@redhat.com>
10500
10501 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10502 STORE_STRUCT_RETURN.
10503 * gdbarch.h, gdbarch.c: Regenerate.
10504 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10505 (d10v_push_arguments): Set the struct return register.
10506 (d10v_gdbarch_init): Update.
10507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10508 * x86-64-tdep.c (x86_64_init_abi): Update.
10509 * vax-tdep.c (vax_gdbarch_init): Update.
10510 * v850-tdep.c (v850_gdbarch_init): Update.
10511 * sparc-tdep.c (sparc_gdbarch_init): Update.
10512 * sh-tdep.c (sh_gdbarch_init): Update.
10513 * s390-tdep.c (s390_gdbarch_init): Update.
10514 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10515 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10516 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10517 * mips-tdep.c (mips_gdbarch_init): Update.
10518 * mcore-tdep.c (mcore_gdbarch_init): Update.
10519 * m68k-tdep.c (m68k_gdbarch_init): Update.
10520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10521 * ia64-tdep.c (ia64_gdbarch_init): Update.
10522 * i386-tdep.c (i386_gdbarch_init): Update.
10523 * hppa-tdep.c (hppa_gdbarch_init): Update.
10524 * h8300-tdep.c (h8300_gdbarch_init): Update.
10525 * frv-tdep.c (frv_gdbarch_init): Update.
10526 * cris-tdep.c (cris_gdbarch_init): Update.
10527 * avr-tdep.c (avr_gdbarch_init): Update.
10528 * arm-tdep.c (arm_gdbarch_init): Update.
10529 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10530
1bf6d5cc
AC
105312003-03-25 Andrew Cagney <cagney@redhat.com>
10532
10533 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10534 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10535 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10536 * gdbarch.h, gdbarch.c: Regenerate.
10537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10538 call_dummy_stack_adjust_p.
10539 * vax-tdep.c (vax_gdbarch_init): Ditto.
10540 * v850-tdep.c (v850_gdbarch_init): Ditto.
10541 * sh-tdep.c (sh_gdbarch_init): Ditto.
10542 * s390-tdep.c (s390_gdbarch_init): Ditto.
10543 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10544 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10545 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10546 * mips-tdep.c (mips_gdbarch_init): Ditto.
10547 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10548 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10550 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10551 * i386-tdep.c (i386_gdbarch_init): Ditto.
10552 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10553 * frv-tdep.c (frv_gdbarch_init): Ditto.
10554 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10555 * cris-tdep.c (cris_gdbarch_init): Ditto.
10556 * avr-tdep.c (avr_gdbarch_init): Ditto.
10557 * arm-tdep.c (arm_gdbarch_init): Ditto.
10558 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10559 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10560 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10561 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10562 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10563 call_dummy_stack_adjust_p.
10564 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10565 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10566 * sparc-tdep.c (sparc32_push_arguments): Update.
10567 * valops.c (hand_function_call): Update.
10568
71c08af0
CV
105692003-03-25 Corinna Vinschen <vinschen@redhat.com>
10570
10571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10572 set_gdbarch_char_signed.
10573
30757f90
RE
105742003-03-25 Richard Earnshaw <rearnsha@arm.com>
10575
10576 PR cli/548
10577 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10578
03d48a7d
RE
105792003-03-25 Richard Earnshaw <rearnsha@arm.com>
10580
10581 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10582 (_initialize_arm_tdep): Don't set tm_print_insn.
10583
2cf6873c
AF
105842003-03-24 Adam Fedor <fedor@gnu.org>
10585
10586 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10587 * objc-lang.h: Add multiple inclusion protection.
10588 (start_msglist, add_msglist, end_msglist): Additional declarations.
10589
17c0759e
RE
105902003-03-24 Richard Earnshaw <rearnsha@arm.com>
10591
10592 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10593 value was renamed to ARM_FLOAT_SOFT_FPA.
10594
618ce49f
AC
105952003-03-23 Andrew Cagney <cagney@redhat.com>
10596
10597 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10598 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10599 * gdbarch.h, gdbarch.c: Regenerate.
10600 * valops.c (hand_function_call): Update.
10601 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10602 * frame.c (legacy_saved_regs_this_id): Update.
10603 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10604 * dummy-frame.h: Update.
10605 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10606 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10607 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10608 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10609 * config/m68k/tm-sun3.h: Update.
10610 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10612 * x86-64-tdep.c (x86_64_init_abi): Update.
10613 * vax-tdep.c (vax_gdbarch_init): Update.
10614 * v850-tdep.c (v850_gdbarch_init): Update.
10615 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10616 * sh-tdep.c (sh_gdbarch_init): Update.
10617 * s390-tdep.c (s390_gdbarch_init): Update.
10618 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10619 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10620 (frame_get_saved_regs): Update.
10621 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10622 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10624 * mips-tdep.c (mips_gdbarch_init): Update.
10625 * mcore-tdep.c (mcore_gdbarch_init): Update.
10626 * m68k-tdep.c (m68k_gdbarch_init): Update.
10627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10628 * ia64-tdep.c (ia64_gdbarch_init): Update.
10629 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10630 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10631 (i386_interix_back_one_frame): Update.
10632 * hppa-tdep.c (hppa_gdbarch_init): Update.
10633 (hppa_init_extra_frame_info): Update.
10634 * h8300-tdep.c (h8300_gdbarch_init): Update.
10635 * frv-tdep.c (frv_gdbarch_init): Update.
10636 * cris-tdep.c (cris_gdbarch_init): Update.
10637 * avr-tdep.c (avr_gdbarch_init): Update.
10638 * arm-tdep.c (arm_gdbarch_init): Update.
10639 * alpha-tdep.c (alpha_gdbarch_init): Update.
10640
fd50bc42
RE
106412003-03-22 Richard Earnshaw <rearnsha@arm.com>
10642
10643 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10644 (arm_get_fp_model): Declare.
10645 * arm-tdep.c (fp_model_strings): New string array.
10646 (arm_fp_model, current_fp_model): New variables.
10647 (arm_get_fp_model): New function.
10648 (arm_set_fp): New function.
10649 (set_fp_model_sfunc): New function.
10650 (show_fp_model): New function.
10651 (_initialize_arm_tdep): Add new command to set/show the FPU.
10652 (arm_extract_return_value): Use arm_get_fp_model.
10653 (arm_store_return_value): Likewise.
10654 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10655 to initialize the floating-point data types.
10656 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10657 model is FPA.
10658
26304000
RE
106592003-03-22 Richard Earnshaw <rearnsha@arm.com>
10660
10661 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10662 the current setting of each value.
10663 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10664 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10665 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10666 commands and add new version as subcommands of "set/show arm".
10667
afd7eef0
RE
106682003-03-22 Richard Earnshaw <rearnsha@arm.com>
10669
10670 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10671 (set_arm_command, show_arm_command): New functions.
10672 (_initialize_arm_tdep): Add them.
10673 (num_disassembly_options): Renamed from num_flavor_options.
10674 (valid_disassembly_styles): Renamed from valid_flavors.
10675 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10676 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10677 set_disassembly_flavor_sfunc.
10678 (set_disassembly_style): Renamed from set_disassembly_flavor.
10679 (arm_othernames): Updated.
10680 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10681 command. Add "set/show arm disassembly" commands. Deprecate
10682 "othernames" command.
10683
299a7944
RE
106842003-03-22 Richard Earnshaw <rearnsha@arm.com>
10685
10686 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10687 (arm-tdep.o): Depend on elf_arm_h.
10688
c1dac9e6
RE
106892003-03-22 Richard Earnshaw <rearnsha@arm.com>
10690
10691 * Makefile.in (coff_internal_h): Define.
10692 (arm-tdep.o): Update dependencies.
10693
2702d96c
RE
106942003-03-22 Richard Earnshaw <rearnsha@arm.com>
10695
10696 * arm-tdep.c (prologue_cache): Delete.
10697 (check_prologue_cache, save_prologue_cache): Delete.
10698 (arm_scan_prologue): Don't check or update the prologue_cache.
10699 (arm_gdb_arch_init): Don't initialize it.
10700 (_initialize_arm_tdep): Likewise.
10701
27d5d74b
SC
107022003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10703
10704 * MAINTAINERS (tui): Maintainer of tui code.
10705
1762d96d
CV
107062003-03-21 Corinna Vinschen <vinschen@redhat.com>
10707
10708 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10709 (i386-cygwin-tdep.o): Add dependencies.
10710 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10711 * i386-cygwin-tdep.c: New file.
10712 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10713 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10714
4c2e2391
AC
107152003-03-20 Andrew Cagney <cagney@redhat.com>
10716
f20d38b7
AC
10717 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10718 (handle_inferior_event): Remove code calling
10719 DYNAMIC_TRAMPOLINE_NEXTPC.
10720
0022b738
AC
10721 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10722 already has a full path.
10723
864dbc90
AC
10724 * main.c (gdb_main): Return 1.
10725 (captured_main): Call error to report an invalid interpreter.
10726
4c2e2391
AC
10727 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10728 * alpha-osf1-tdep.c: Include "gdb_string.h".
10729
5ef7553b
JB
107302003-03-19 J. Brobecker <brobecker@gnat.com>
10731
10732 Continuing work to convert the hppa targets to multiarch partial.
10733
10734 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10735 method, now that hppa_push_dummy_frame has a conformant prototype.
10736 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10737 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10738 for the switch to multiarch partial.
10739
7bde8967
KB
107402003-03-19 Kevin Buettner <kevinb@redhat.com>
10741
10742 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10743 when iss is issNull.
10744
b006a9e9
KB
107452003-03-18 Kevin Buettner <kevinb@redhat.com>
10746
10747 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10748 NUM_REGS bounds check.
10749
5e2e9765
KB
107502003-03-18 Kevin Buettner <kevinb@redhat.com>
10751
10752 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10753 * mips-tdep.c (gdb_assert.h): Include.
10754 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10755 (mips_register_name): Handle integer registers explicitly. Add
10756 bounds checking.
10757 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10758 (mips_lsi33k_reg_names): Don't list integer registers; they're
10759 handled by mips_register_name() now.
10760 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10761 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10762 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10763 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10764 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10765
a2867626
AC
107662003-03-18 Andrew Cagney <cagney@redhat.com>
10767
10768 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10769 a void pointer.
10770 * gdbtypes.h (print_scalar_formatted): Update declaration.
10771 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10772
06600e06
JB
107732003-03-18 J. Brobecker <brobecker@gnat.com>
10774
10775 * infrun.c (observer.h): Add #include.
10776 (normal_stop): Add call to observer_notify_normal_stop.
10777 * Makefile.in (infrun.o): Add dependency on observer.h.
10778
7daf4f5b
JB
107792003-03-18 J. Brobecker <brobecker@gnat.com>
10780
10781 Continuing work to convert the hppa targets to multiarch partial.
10782 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10783 parameter. Reformat comment.
10784 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10785 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10786 to match new profile.
10787
3371ccc0
JB
107882003-03-18 J. Brobecker <brobecker@gnat.com>
10789
10790 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10791 appear to be working in any case.
10792
4fbe891e
JB
107932003-03-18 J. Brobecker <brobecker@gnat.com>
10794
10795 * observer.c (observer_test_first_observer): New static variable.
10796 (observer_test_second_observer): Likewise.
10797 (observer_test_third_observer): Likewise.
10798 (observer_test_first_notification_function): New static function.
10799 (observer_test_second_notification_function): Likewise.
10800 (observer_test_third_notification_function): Likewise.
10801
a7ff40e7
JB
108022003-03-17 J. Brobecker <brobecker@gnat.com>
10803
10804 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10805 * somsolib.c (gdb_assert.h): Likewise.
10806 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10807 (somsolib.o): Likewise.
10808
26ca4152
AC
108092003-03-17 Andrew Cagney <cagney@redhat.com>
10810
10811 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10812 BFD. Simplify setting of di.endian.
10813
0a613259
AC
108142003-03-17 Andrew Cagney <cagney@redhat.com>
10815
10816 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10817 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10818
10819 From Elena Zannoni <ezannoni@redhat.com>
10820 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10821 vector and floating-point parameters.
10822 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10823 convention.
10824 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10825
1132738f
FN
108262003-03-17 Fernando Nasser <fnasser@redhat.com>
10827
10828 * MAINTAINERS: Remove my name from several maintainership roles.
10829
6dc42492
AC
108302003-03-17 Andrew Cagney <cagney@redhat.com>
10831
10832 Fix frame off-by-one bug.
10833 * frame-unwind.h (frame_this_id_ftype): Replace
10834 frame_unwind_id_ftype.
10835 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10836 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10837 with "prev_register".
10838 * frame-unwind.c (frame_unwind_find_by_pc): Return
10839 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10840 comment.
10841 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10842 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10843 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10844 (dummy_frame_unwind): Update.
10845 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10846 sentinel_frame_register_unwind.
10847 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10848 (sentinel_frame_unwinder): Update.
10849 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10850 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10851 * frame.c (create_sentinel_frame): Update. Initialize
10852 "prologue_cache" instead of "unwind_cache".
10853 (frame_register_unwind): Call this frame's prev_register with the
10854 next frame and this frame's prologue cache.
10855 (get_prev_frame): Simplify. Always call prev frame's this_id with
10856 this frame and prev frame's prologue cache. Document that this
10857 call is shifted one to the left when compared to the
10858 frame_register_unwind call.
10859 (legacy_saved_regs_prev_register): Replace
10860 frame_saved_regs_register_unwind.
10861 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10862 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10863 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10864 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10865 (d10v_frame_unwind): Update.
10866 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10867 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10868 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10869 "saved_regs" with "this_saved_regs".
10870
efd710d6
AC
108712003-03-16 Andrew Cagney <cagney@redhat.com>
10872
10873 * frame.c (frame_pop): Don't call target_store_registers. Fix
10874 problem reported by Mark Kettenis.
10875
4e259f09
MK
108762003-03-16 Mark Kettenis <kettenis@gnu.org>
10877
10878 * i386-tdep.c (i386_register_type): Renamed from
10879 i386_register_virtual_type. Adjust function signature.
10880 (i386_gdbarch_init): Set register_type instead of
10881 deprecated_max_register_raw_size,
10882 deprecated_max_register_virtual_size and register_virtual_type.
10883
055bb976
AC
108842003-03-14 Andrew Cagney <cagney@redhat.com>
10885
10886 * frame.c (get_prev_frame): When a legacy frame, always call
10887 legacy_get_prev_frame. Simplify unwind code using assumption that
10888 the unwinder is new.
10889 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10890 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10891 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10892
ac2adee5
AC
108932003-03-14 Andrew Cagney <cagney@redhat.com>
10894
10895 * frame.c (get_saved_register): Delete function.
10896 * frame.h (get_saved_register): Delete declaration.
10897 * xstormy16-tdep.c: Update comment.
10898 * regcache.h: Update comments.
10899 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10900 get_saved_register and extract_address, use
10901 frame_read_unsigned_register.
10902 (sparc_frame_saved_pc): Ditto.
10903 (sparc_get_saved_register): Instead of get_saved_register, use
10904 frame_register.
10905 (sparc_pop_frame): Ditto.
10906 * findvar.c: Update comments.
10907 (value_of_register): Call frame_register instead of
10908 get_saved_register.
10909 (value_from_register): Ditto.
10910 * config/sparc/tm-sparc.h: Update comment.
10911 * breakpoint.c: Update comment.
10912
129c1cd6
AC
109132003-03-14 Andrew Cagney <cagney@redhat.com>
10914
10915 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10916 GET_SAVED_REGISTER.
10917 * gdbarch.h, gdbarch.c: Re-generate.
10918 * frame.h: Update comments.
10919 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10920 * x86-64-tdep.c (x86_64_init_abi): Update.
10921 * sparc-tdep.c (sparc_gdbarch_init): Update.
10922 * sh-tdep.c (sh_gdbarch_init): Update.
10923 * mips-tdep.c (mips_gdbarch_init): Update.
10924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10925 * cris-tdep.c (cris_gdbarch_init): Update.
10926 * ia64-tdep.c (ia64_gdbarch_init): Update.
10927 * frame.c (frame_register): Update.
10928 (get_saved_register): Update.
10929 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 10930
749b82f6
AC
109312003-03-13 Andrew Cagney <cagney@redhat.com>
10932
10933 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10934 * gdbarch.h, gdbarch.c: Regenerate.
10935 * valops.c (hand_function_call): Update comment.
10936 * stack.c (return_command): Update comment.
10937 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10938 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10940 * x86-64-tdep.c (x86_64_init_abi): Update.
10941 * vax-tdep.c (vax_gdbarch_init): Update.
10942 * v850-tdep.c (v850_gdbarch_init): Update.
10943 * sparc-tdep.c (sparc_gdbarch_init): Update.
10944 * sh-tdep.c (sh_gdbarch_init): Update.
10945 * s390-tdep.c (s390_gdbarch_init): Update.
10946 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10947 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10949 * mips-tdep.c (mips_gdbarch_init): Update.
10950 * mcore-tdep.c (mcore_gdbarch_init): Update.
10951 * m68k-tdep.c (m68k_gdbarch_init): Update.
10952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10953 * ia64-tdep.c (ia64_gdbarch_init): Update.
10954 * i386-tdep.c (i386_gdbarch_init): Update.
10955 * hppa-tdep.c (hppa_gdbarch_init): Update.
10956 * h8300-tdep.c (h8300_gdbarch_init): Update.
10957 * frv-tdep.c (frv_gdbarch_init): Update.
10958 * cris-tdep.c (cris_gdbarch_init): Update.
10959 * avr-tdep.c (avr_gdbarch_init): Update.
10960 * arm-tdep.c (arm_gdbarch_init): Update.
10961 * alpha-tdep.c (alpha_gdbarch_init): Update.
10962
1594fa56
AC
109632003-03-13 Andrew Cagney <cagney@redhat.com>
10964
10965 * frame.c (legacy_frame_p): New function.
10966 (get_prev_frame): Use legacy_frame_p.
10967 * frame.h (legacy_frame_p): Declare.
10968
7717fda3
V
109692003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10970
fbe586ae 10971 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
10972 listing corrected.
10973
0c67cbe9
V
109742003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10975
fbe586ae 10976 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 10977
03febf99
AC
109782003-03-12 Andrew Cagney <cagney@redhat.com>
10979
10980 * frame.c (get_prev_frame): Rename the frame parameter to
10981 "this_frame".
10982 (get_next_frame, legacy_get_prev_frame): Ditto.
10983
0a1e1ca1
AC
109842003-03-12 Andrew Cagney <cagney@redhat.com>
10985
10986 * frame.c (get_current_frame): Check target_has_registers before
10987 checking target_has_stack.
10988 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10989 instead of deprecated_selected_frame.
10990 * findvar.c (value_of_register): Pass "frame", not
10991 deprecated_selected_frame, to value_of_builtin_reg.
10992
a66a9c23
AC
109932003-03-12 Andrew Cagney <cagney@redhat.com>
10994
10995 * regcache.c (regcache_cooked_write_signed): New function.
10996 (regcache_cooked_write_unsigned): New function.
10997 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10998 (regcache_cooked_read_signed): Fix regnum in range assertion.
10999 * regcache.h (regcache_cooked_write_signed): Declare.
11000 (regcache_cooked_write_unsigned): Declare.
11001
8bedc050
AC
110022003-03-12 Andrew Cagney <cagney@redhat.com>
11003
11004 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11005 * gdbarch.h, gdbarch.c: Re-generate.
11006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11007 * x86-64-tdep.h: Update.
11008 * x86-64-tdep.c (x86_64_init_abi): Update.
11009 * v850-tdep.c (v850_gdbarch_init): Update.
11010 * sparc-tdep.c (sparc_gdbarch_init): Update.
11011 * sh-tdep.c (sh_gdbarch_init): Update.
11012 * s390-tdep.c (s390_gdbarch_init): Update.
11013 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11014 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11015 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11016 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11017 * mips-tdep.c (mips_gdbarch_init): Update.
11018 * mcore-tdep.c (mcore_gdbarch_init): Update.
11019 * m68k-tdep.c (m68k_gdbarch_init): Update.
11020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11021 * ia64-tdep.c (ia64_gdbarch_init): Update.
11022 * i386-tdep.c (i386_gdbarch_init): Update.
11023 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11024 * hppa-tdep.c (hppa_gdbarch_init): Update.
11025 * h8300-tdep.c (h8300_gdbarch_init): Update.
11026 * frv-tdep.c (frv_gdbarch_init): Update.
11027 * cris-tdep.c (cris_gdbarch_init): Update.
11028 * avr-tdep.c (avr_gdbarch_init): Update.
11029 * arm-tdep.c (arm_gdbarch_init): Update.
11030 * alpha-tdep.c (alpha_gdbarch_init): Update.
11031 * sh-tdep.c (sh_init_extra_frame_info): Update.
11032 (sh64_init_extra_frame_info): Update.
11033 * ns32knbsd-nat.c (frame_num_args): Update.
11034 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11035 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11036 (xstormy16_frame_chain_valid): Update.
11037 * vax-tdep.c (vax_saved_pc_after_call): Update.
11038 * v850-tdep.c (v850_frame_chain): Update.
11039 (v850_pop_frame): Update.
11040 (v850_init_extra_frame_info): Update.
11041 * sparc-tdep.c (setup_arbitrary_frame): Update.
11042 * ns32k-tdep.c (umax_frame_num_args): Update.
11043 * s390-tdep.c (s390_pop_frame_regular): Update.
11044 * mn10300-tdep.c (mn10300_frame_chain): Update.
11045 (mn10300_pop_frame_regular): Update.
11046 (mn10300_init_extra_frame_info): Update.
11047 * mips-tdep.c (mips_init_frame_pc_first): Update.
11048 (mips_frame_chain): Update.
11049 (mips_pop_frame): Update.
11050 * mcore-tdep.c (mcore_frame_chain): Update.
11051 (mcore_pop_frame): Update.
11052 (mcore_init_extra_frame_info): Update.
11053 * arch-utils.c (init_frame_pc_default): Update.
11054 * m68k-tdep.c (isi_frame_num_args): Update.
11055 (delta68_frame_num_args): Update.
11056 (news_frame_num_args): Update.
11057 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11058 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11059 (alpha_frame_chain): Update.
11060 (alpha_pop_frame): Update.
11061 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11062 (hppa_init_extra_frame_info): Update.
11063 (hppa_frame_chain): Update.
11064 (hppa_frame_chain_valid): Update.
11065 * cris-tdep.c (cris_init_extra_frame_info): Update.
11066 * avr-tdep.c (avr_init_extra_frame_info): Update.
11067 * arm-tdep.c (arm_frame_chain_valid): Update.
11068 (arm_init_extra_frame_info): Update.
11069 (arm_pop_frame): Update.
11070 * frame.c (frame_pc_unwind): Update.
11071 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11072 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11073 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11074 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11075 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11076 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11077
7a25a7c1
AC
110782003-03-12 Andrew Cagney <cagney@redhat.com>
11079
11080 Eliminate the need for POP_FRAME.
11081 * frame.c (do_frame_unwind_register): New function.
11082 (frame_pop): When no POP_FRAME, pop the frame using register
11083 unwind and a scratch regcache.
11084 (frame_saved_regs_pop): Delete function.
11085 (trad_frame_unwinder): Update.
11086 * d10v-tdep.c (d10v_frame_pop): Delete function.
11087 (d10v_frame_unwind): Update.
11088 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11089 (sentinel_frame_unwinder): Update.
11090 * dummy-frame.c (dummy_frame_pop): Delete function.
11091 (dummy_frame_unwind): Update.
11092 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11093 (struct frame_unwind): Update.
11094
2f38ef89
KB
110952003-03-11 Kevin Buettner <kevinb@redhat.com>
11096
11097 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11098 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11099 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11100 Do range checks on register number obtained from debugging info.
11101 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11102 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11103 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11104 mapping function.
11105 (do_fp_register_row): Fix typo which caused double type to be
11106 used when attempting to unpack a float.
11107
552f4abf
JB
111082003-03-11 J. Brobecker <brobecker@gnat.com>
11109
11110 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11111
e0d2ae16
AC
111122003-03-11 Andrew Cagney <cagney@redhat.com>
11113
11114 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11115 frame. Problem found by Corinna Vinschen.
11116
ddbfdd06
PM
111172003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11118
11119 * doublest.c (floatformat_from_length): Accept also
11120 the real size of 'long double' type.
11121
088b2ddc 111222003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11123
088b2ddc 11124 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11125 * breakpoint.c (bpstat_copy): Copy the command lines as well
11126 as the old value, to match what is freed in bpstat_clear.
11127
f56f77c1
DC
111282003-03-10 David Carlton <carlton@math.stanford.edu>
11129
11130 * minsyms.c (add_minsym_to_hash_table): Replace
11131 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11132 (compare_minimal_symbols, compact_minimal_symbols)
11133 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11134 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11135 of DEPRECATED_SYMBOL_MATCHES_NAME.
11136 (lookup_minimal_symbol_solib_trampoline): Ditto.
11137
5602984a
AC
111382003-03-10 Andrew Cagney <cagney@redhat.com>
11139
11140 * regcache.h (regcache_cooked_read_ftype): Define.
11141 (regcache_save, regcache_restore): Add a cooked_read parameter.
11142 * regcache.c (regcache_save, regcache_restore): Update.
11143 (do_cooked_read): New function.
11144 (regcache_cpy): Pass do_cooked_read to regcache_save and
11145 regcache_restore.
11146
8bedc050
AC
111472003-03-10 Andrew Cagney <cagney@redhat.com>
11148
11149 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11150 * gdbarch.h, gdbarch.c: Re-generate.
11151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11152 * x86-64-tdep.h: Update.
11153 * x86-64-tdep.c (x86_64_init_abi): Update.
11154 * v850-tdep.c (v850_gdbarch_init): Update.
11155 * sparc-tdep.c (sparc_gdbarch_init): Update.
11156 * sh-tdep.c (sh_gdbarch_init): Update.
11157 * s390-tdep.c (s390_gdbarch_init): Update.
11158 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11159 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11160 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11162 * mips-tdep.c (mips_gdbarch_init): Update.
11163 * mcore-tdep.c (mcore_gdbarch_init): Update.
11164 * m68k-tdep.c (m68k_gdbarch_init): Update.
11165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11166 * ia64-tdep.c (ia64_gdbarch_init): Update.
11167 * i386-tdep.c (i386_gdbarch_init): Update.
11168 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11169 * hppa-tdep.c (hppa_gdbarch_init): Update.
11170 * h8300-tdep.c (h8300_gdbarch_init): Update.
11171 * frv-tdep.c (frv_gdbarch_init): Update.
11172 * cris-tdep.c (cris_gdbarch_init): Update.
11173 * avr-tdep.c (avr_gdbarch_init): Update.
11174 * arm-tdep.c (arm_gdbarch_init): Update.
11175 * alpha-tdep.c (alpha_gdbarch_init): Update.
11176 * sh-tdep.c (sh_init_extra_frame_info): Update.
11177 (sh64_init_extra_frame_info): Update.
11178 * ns32knbsd-nat.c (frame_num_args): Update.
11179 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11180 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11181 (xstormy16_frame_chain_valid): Update.
11182 * vax-tdep.c (vax_saved_pc_after_call): Update.
11183 * v850-tdep.c (v850_frame_chain): Update.
11184 (v850_pop_frame): Update.
11185 (v850_init_extra_frame_info): Update.
11186 * sparc-tdep.c (setup_arbitrary_frame): Update.
11187 * ns32k-tdep.c (umax_frame_num_args): Update.
11188 * s390-tdep.c (s390_pop_frame_regular): Update.
11189 * mn10300-tdep.c (mn10300_frame_chain): Update.
11190 (mn10300_pop_frame_regular): Update.
11191 (mn10300_init_extra_frame_info): Update.
11192 * mips-tdep.c (mips_init_frame_pc_first): Update.
11193 (mips_frame_chain): Update.
11194 (mips_pop_frame): Update.
11195 * mcore-tdep.c (mcore_frame_chain): Update.
11196 (mcore_pop_frame): Update.
11197 (mcore_init_extra_frame_info): Update.
11198 * arch-utils.c (init_frame_pc_default): Update.
11199 * m68k-tdep.c (isi_frame_num_args): Update.
11200 (delta68_frame_num_args): Update.
11201 (news_frame_num_args): Update.
11202 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11203 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11204 (alpha_frame_chain): Update.
11205 (alpha_pop_frame): Update.
11206 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11207 (hppa_init_extra_frame_info): Update.
11208 (hppa_frame_chain): Update.
11209 (hppa_frame_chain_valid): Update.
11210 * cris-tdep.c (cris_init_extra_frame_info): Update.
11211 * avr-tdep.c (avr_init_extra_frame_info): Update.
11212 * arm-tdep.c (arm_frame_chain_valid): Update.
11213 (arm_init_extra_frame_info): Update.
11214 (arm_pop_frame): Update.
11215 * frame.c (frame_pc_unwind): Update.
11216 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11217 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11218 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11219 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11220 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11221 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11222
12cc2063
AC
112232003-03-10 Andrew Cagney <cagney@redhat.com>
11224
11225 * gdbarch.sh (gdbarch_unwind_pc): New method.
11226 * gdbarch.h, gdbarch.c: Regenerate.
11227 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11228 but use read_pc and FRAME_SAVED_PC as fall backs.
11229 (frame_saved_regs_pc_unwind): Delete function.
11230 (trad_frame_unwinder): Update.
11231 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11232 (struct frame_unwind): Update.
11233 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11234 (dummy_frame_unwind): Update.
11235 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11236 (sentinel_frame_unwinder): Update.
11237 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11238 (d10v_frame_unwind): Update.
11239 (d10v_unwind_pc): New function.
11240 (d10v_gdbarch_init): Set unwind_pc.
11241
ef840a37
AC
112422003-03-10 Andrew Cagney <cagney@redhat.com>
11243
a2ce2e56
AC
11244 * gdbarch.h: Re-generate.
11245
ef840a37
AC
11246 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11247 PC.
11248 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11249 the PC register.
11250
08f3424b
MK
112512003-03-08 Mark Kettenis <kettenis@gnu.org>
11252
11253 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11254
1248ede2
AC
112552003-03-08 Andrew Cagney <cagney@redhat.com>
11256
11257 * cli-out.c: Update copyright.
11258 (cli_out_data): Define typedef. Use instead of ui_out_data.
11259
f49bacc8
AC
112602003-03-08 Andrew Cagney <cagney@redhat.com>
11261
11262 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11263 the result.
11264
9b05f993
AC
112652003-03-07 Andrew Cagney <cagney@redhat.com>
11266
11267 * gdbarch.sh: Don't generate two macro definitions when an
11268 undefined macro taking no arguments.
11269 * gdbarch.h: Regenerate.
8ffd9b1b 11270
166f4c7b
ML
112712002-03-07 Michal Ludvig <mludvig@suse.cz>
11272
11273 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11274 (x86_64_unwind_dummy_id): New functions.
11275 (x86_64_init_abi): Register these two new functions.
11276
6d686a84
ML
112772003-03-07 Michal Ludvig <mludvig@suse.cz>
11278
11279 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11280 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11281 separate function.
11282 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11283
6314f104
AC
112842003-03-05 Andrew Cagney <cagney@redhat.com>
11285
11286 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11287 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11288 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11289 to use unwind_dummy_id when a dummy frame.
11290 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11291 predicate.
11292 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11293
ceea5145
AC
112942003-03-05 Andrew Cagney <cagney@redhat.com>
11295
11296 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11297 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11298 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11299 values.
11300
0d843116
AC
113012003-03-05 Andrew Cagney <cagney@redhat.com>
11302
11303 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11304 (struct d10v_unwind_cache): Delete field "frameless". Replace
11305 "next_addr" with "sp_offset". Add "r11_offset".
11306 (d10v_frame_unwind_cache): Update.
11307 (prologue_find_regs): Update. When "mv r11, sp", save the
11308 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11309 RN was saved in r11_offset.
11310
b2579786
AC
113112003-03-05 Andrew Cagney <cagney@redhat.com>
11312
11313 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11314 cached PC value in the next frame.
11315
218e5956
AC
113162003-03-05 Andrew Cagney <cagney@redhat.com>
11317
11318 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11319 "id_unwind_cache" with "id".
11320 (frame_id_unwind): Delete declaration.
11321 * frame.c (frame_id_unwind): Delete function.
11322 (get_prev_frame): Call the frame id unwind method directly. Store
11323 the returned next frame's ID value in NEXT_FRAME. Note that there
11324 is a problem with the wrong unwind ID being called with the wrong
11325 unwind cache.
11326
ed363b1b
DJ
113272003-03-05 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11330
fe1f4a5e
DJ
113312003-03-05 James Ingham <jingham@apple.com>
11332 Daniel Jacobowitz <drow@mvista.com>
11333
11334 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11335 (auto_cp_abi): New variable.
11336 (current_cp_abi, num_cp_abis): Make static.
11337 (CP_ABI_MAX): Define.
11338 (cp_abis): Turn into an array.
11339 (value_virtual_fn_field): Fix formatting.
11340 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11341 takes a pointer.
11342 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11343 (list_cp_abis, _initialize_cp_abi): New functions.
11344 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11345 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11346 switch_to_cp_abi. Update prototype for register_cp_abi.
11347 * Makefile.in (cp-abi.o): Update dependencies.
11348 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11349 instead of switch_to_cp_abi.
11350 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11351 register_cp_abi.
11352 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11353 register_cp_abi.
11354 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11355
e4adbba9
DJ
113562003-03-05 Daniel Jacobowitz <drow@mvista.com>
11357
11358 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11359 * dwarf2loc.c: Include "regcache.h".
11360 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11361 register_size.
11362 * Makefile.in (dwarf2loc.o): Update dependencies.
11363
91ccbfc1
TR
113642003-03-04 Theodore A. Roth <troth@openavr.org>
11365
11366 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11367 number of io registers reported by remote target is not a multiple of
11368 step.
11369
3d4e8fd2
DC
113702003-03-04 David Carlton <carlton@math.stanford.edu>
11371
11372 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11373 (lookup_symbol_aux_psymtabs): Update call to
11374 lookup_partial_symbol.
11375 (lookup_transparent_type, find_main_psymtab)
11376 (make_symbol_overload_list): Ditto.
11377
ed42d87b
KH
113782003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11379
11380 * MAINTAINERS (Write after approval): Update my email address.
11381
a0ed5532
AC
113822003-03-03 Andrew Cagney <cagney@redhat.com>
11383
11384 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11385 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11386 predicate. Replace MAX_REGISTER_RAW_SIZE.
11387 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11388 MAX_REGISTER_VIRTUAL_SIZE.
11389 * regcache.c (legacy_max_register_raw_size): New function.
11390 (legacy_max_register_virtual_size): New function.
11391 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11392 (MAX_REGISTER_RAW_SIZE): Define.
11393 (legacy_max_register_raw_size): Declare.
11394 (legacy_max_register_virtual_size): Declare.
11395 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11396 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11397 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11398 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11399 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11400 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11401 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11402 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11403 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11405 * vax-tdep.c (vax_gdbarch_init): Update.
11406 * v850-tdep.c (v850_gdbarch_init): Update.
11407 * sparc-tdep.c (sparc_gdbarch_init): Update.
11408 * sh-tdep.c (sh_gdbarch_init): Update.
11409 * s390-tdep.c (s390_gdbarch_init): Update.
11410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11411 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11413 * mips-tdep.c (mips_gdbarch_init): Update.
11414 * mcore-tdep.c (mcore_gdbarch_init): Update.
11415 * m68k-tdep.c (m68k_gdbarch_init): Update.
11416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11417 * ia64-tdep.c (ia64_gdbarch_init): Update.
11418 * i386-tdep.c (i386_gdbarch_init): Update.
11419 * hppa-tdep.c (hppa_gdbarch_init): Update.
11420 * h8300-tdep.c (h8300_gdbarch_init): Update.
11421 * frv-tdep.c (frv_gdbarch_init): Update.
11422 * cris-tdep.c (cris_gdbarch_init): Update.
11423 * avr-tdep.c (avr_gdbarch_init): Update.
11424 * arm-tdep.c (arm_gdbarch_init): Update.
11425 * alpha-tdep.c (alpha_gdbarch_init): Update.
11426 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11427 max_register_raw_size or max_register_virtual_size.
11428
8e437497
DC
114292003-03-03 David Carlton <carlton@math.stanford.edu>
11430
11431 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11432 SYMBOL_MATCHES_NAME, add comment.
11433 (SYMBOL_MATCHES_NATURAL_NAME): New.
11434 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11435 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11436 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11437 * symtab.c (lookup_partial_symbol): Use
11438 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11439 unhelpful comment.
11440 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11441 SYMBOL_MATCHES_NAME.
11442 Fix for PR c++/33.
11443
25120b0d
DC
114442003-03-03 David Carlton <carlton@math.stanford.edu>
11445
11446 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11447 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11448 by regexp matching against SYMBOL_NATURAL_NAME.
11449
78a11fb4
DC
114502003-03-03 David Carlton <carlton@math.stanford.edu>
11451
11452 * linespec.c (find_method): Extract code into collect_methods.
11453 (collect_methods): New.
11454
645dd519
MK
114552003-03-02 Mark Kettenis <kettenis@gnu.org>
11456
b4700d91
MK
11457 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11458 get_frame_base.
11459
645dd519
MK
11460 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11461 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11462
0aa7e1aa
SC
114632003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11464
8ffd9b1b 11465 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11466 and not regnum when summing the size of all registers up to regnum.
11467
f30ee0bc
AC
114682003-03-01 Andrew Cagney <cagney@redhat.com>
11469
11470 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11471 FRAME_INIT_SAVED_REGS.
11472 * gdbarch.h, gdbarch.c: Regenerate.
11473 * stack.c (frame_info): Update.
11474 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11475 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11476 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11477 * ns32k-tdep.c (ns32k_pop_frame): Update.
11478 * mips-tdep.c (mips_pop_frame): Update.
11479 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11480 * ia64-tdep.c (ia64_frame_chain): Update.
11481 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11482 (ia64_frameless_function_invocation): Update.
11483 (ia64_init_extra_frame_info): Update.
11484 (ia64_pop_frame_regular): Update.
11485 * frame.h (struct frame_info): Update comment.
11486 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11487 * frame.c (frame_saved_regs_register_unwind): Update.
11488 (frame_saved_regs_register_unwind): Update.
11489 (deprecated_generic_get_saved_register): Update.
11490 * cris-tdep.c: Update comment.
11491 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11492 Rename macro.
11493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11494 * x86-64-tdep.c (x86_64_init_abi): Update.
11495 * vax-tdep.c (vax_gdbarch_init): Update.
11496 * v850-tdep.c (v850_gdbarch_init): Update.
11497 * sparc-tdep.c (sparc_gdbarch_init): Update.
11498 * sh-tdep.c (sh_gdbarch_init): Update.
11499 * s390-tdep.c (s390_gdbarch_init): Update.
11500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11501 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11502 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11503 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11504 * mips-tdep.c (mips_gdbarch_init): Update.
11505 * mcore-tdep.c (mcore_gdbarch_init): Update.
11506 * m68k-tdep.c (m68k_gdbarch_init): Update.
11507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11508 * ia64-tdep.c (ia64_gdbarch_init): Update.
11509 * i386-tdep.c (i386_gdbarch_init): Update.
11510 * frv-tdep.c (frv_gdbarch_init): Update.
11511 * avr-tdep.c (avr_gdbarch_init): Update.
11512 * arm-tdep.c (arm_gdbarch_init): Update.
11513 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11514
42fa7c0f
AC
115152003-03-01 Andrew Cagney <cagney@redhat.com>
11516
11517 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11518 option enum and switch. When no windows, set the interpreter to
11519 INTERP_CONSOLE.
8ffd9b1b 11520
49c7e338
AC
115212003-03-01 Andrew Cagney <cagney@redhat.com>
11522
11523 * main.c (captured_main): Replace magic option characters with an
11524 enum.
11525
e9582e71
AC
115262003-03-01 Andrew Cagney <cagney@redhat.com>
11527
11528 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11529 INIT_EXTRA_FRAME_INFO.
11530 * gdbarch.h, gdbarch.c: Regenerate.
11531 * arm-tdep.c: Update comments.
11532 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11533 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11534 * frame.h, avr-tdep.c: Ditto.
11535 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11536 (create_new_frame, legacy_get_prev_frame): Ditto.
11537 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11538 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11540 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11541 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11542 * v850-tdep.c (v850_gdbarch_init): Ditto.
11543 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11544 * sh-tdep.c (sh_gdbarch_init): Ditto.
11545 * s390-tdep.c (s390_gdbarch_init): Ditto.
11546 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11548 * mips-tdep.c (mips_gdbarch_init): Ditto.
11549 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11551 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11552 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11553 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11554 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11555 * frv-tdep.c (frv_gdbarch_init): Ditto.
11556 * cris-tdep.c (cris_gdbarch_init): Ditto.
11557 * avr-tdep.c (avr_gdbarch_init): Ditto.
11558 * arm-tdep.c (arm_gdbarch_init): Ditto.
11559 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11560 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11561
35cac7cf
AC
115622003-03-01 Andrew Cagney <cagney@redhat.com>
11563
11564 * gdbarch.sh (register_type): New function with predicate.
11565 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11566 * gdbarch.h, gdbarch.c: Re-generate.
11567 * arch-utils.c (generic_register_byte): Use generic_register_size.
11568 (generic_register_size): When available, use
11569 gdbarch_register_type.
11570 * regcache.c (init_regcache_descr): When available, initialize the
11571 register type array using gdbarch_register_type. If the
11572 architecture supplies gdbarch_register_type, do not use the legacy
11573 regcache layout.
11574 * d10v-tdep.c (d10v_register_type): Replace
11575 d10v_register_virtual_type.
11576 (d10v_gdbarch_init): Set register_type instead of
11577 register_virtual_type.
11578
7b83296f
AC
115792003-03-01 Andrew Cagney <cagney@redhat.com>
11580
11581 * Makefile.in (ax-gdb.o): Update dependencies.
11582 * ax-gdb.c: Include "regcache.h".
11583 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11584 * findvar.c (value_of_register): Ditto.
11585 * infcmd.c (default_print_registers_info): Ditto.
11586
eadc1c87
MK
115872003-03-01 Mark Kettenis <kettenis@gnu.org>
11588
11589 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11590 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11591
14143612
MK
115922003-03-01 Mark Kettenis <kettenis@gnu.org>
11593
11594 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11595 of STREQ.
11596
a55cc764
DJ
115972003-02-28 Daniel Jacobowitz <drow@mvista.com>
11598
11599 * Makefile.in (dwarf2loc.o): Update dependencies.
11600 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11601 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11602 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11603 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11604 (locexpr_tracepoint_var_ref): New function.
11605 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11606
08a617da
AC
116072003-02-28 Andrew Cagney <cagney@redhat.com>
11608
11609 * regcache.c (register_size): New function.
11610 * regcache.h (register_size): Declare
11611 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11612 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11613
4224873a
DC
116142003-02-28 David Carlton <carlton@math.stanford.edu>
11615
11616 * linespec.c (decode_compound): Extract code into find_method.
11617 (find_method): New.
11618
ccdc5d7f
JB
116192003-02-28 J. Brobecker <brobecker@gnat.com>
11620
11621 * Makefile.in: Add rules to build and link in observer.o.
11622
974e8ced
JB
116232003-02-27 J. Brobecker <brobecker@gnat.com>
11624
11625 * observer.c: Minor comments edits.
11626
7a28f973
JB
116272003-02-27 J. Brobecker <brobecker@gnat.com>
11628
11629 * observer.h, observer.c: New file.
11630
27cddce2
AC
116312003-02-27 Andrew Cagney <cagney@redhat.com>
11632
11633 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11634
b94a41a1
SC
116352003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11636
11637 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11638 (M6812_OP_STS_EXT): Likewise.
11639 (m6811_prologue): Use the above to recognize prologue.
11640 (m6812_prologue): Likewise.
11641
c8be8951
DC
116422003-02-27 David Carlton <carlton@math.stanford.edu>
11643
11644 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11645 SYMBOL_PRINT_NAME.
11646 (compare_psymbols): Ditto.
11647 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11648
d05bb1fc
MS
116492003-02-27 Michael Snyder <msnyder@redhat.com>
11650
4e845cd3
MS
11651 * f-lang.c (build_fortran_types): New function.
11652 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11653 * doublest.c (extract_floating): Fix warning text.
11654
f3824013
AC
116552003-02-27 Andrew Cagney <cagney@redhat.com>
11656
11657 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11658 predicate. Replaces PUSH_DUMMY_FRAME.
11659 * gdbarch.h, gdbarch.c: Regnerate.
11660 * valops.c (hand_function_call): Update. Call
11661 generic_push_dummy_frame directly.
11662 * vax-tdep.c (vax_gdbarch_init): Update.
11663 * sparc-tdep.c (sparc_gdbarch_init): Update.
11664 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11665 * m68k-tdep.c (m68k_gdbarch_init): Update.
11666 * hppa-tdep.c (hppa_gdbarch_init): Update.
11667 * alpha-tdep.c (alpha_gdbarch_init): Update.
11668 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11669 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11670 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11672 push_dummy_frame to generic_push_dummy_frame.
11673 * v850-tdep.c (v850_gdbarch_init): Ditto.
11674 * sh-tdep.c (sh_gdbarch_init): Ditto.
11675 * s390-tdep.c (s390_gdbarch_init): Ditto.
11676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11678 * mips-tdep.c (mips_gdbarch_init): Ditto.
11679 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11681 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11682 * i386-tdep.c (i386_gdbarch_init): Ditto.
11683 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11684 * frv-tdep.c (frv_gdbarch_init): Ditto.
11685 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11686 * cris-tdep.c (cris_gdbarch_init): Ditto.
11687 * avr-tdep.c (avr_gdbarch_init): Ditto.
11688 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11689
ad188201
KB
116902003-02-26 Kevin Buettner <kevinb@redhat.com>
11691
11692 * mips-tdep.c (show_mips_abi): New function.
11693 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11694 command ``show mips abi''.
11695
6b37567a 116962003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11697
6b37567a 11698 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11699 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11700 more sline entries have been seen for the function.
11701
d3e0a5bf
MC
117022003-02-26 Michael Chastain <mec@shout.net>
11703
11704 * configure: Regenerate with autoconf 000227.
11705
18972eea
MC
117062003-02-26 Michael Chastain <mec@shout.net>
11707
11708 Close PR build/660.
11709 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11710 for old libc5/glibc.
11711 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11712
0bbde931
KW
117132003-02-26 Kris Warkentin <kewarken@qnx.com>
11714
11715 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11716 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11717
27ca5dad
MC
117182003-02-26 Michael Chastain <mec@shout.net>
11719
11720 * configure.in: New variable HAVE_UINTPTR_T.
11721 * configure, config.in: Regenerated.
11722
6f88d630
DJ
117232003-02-26 Daniel Jacobowitz <drow@mvista.com>
11724
11725 Fix PR build/1097.
11726 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11727
b14185ce
AC
117282003-02-25 Andrew Cagney <cagney@redhat.com>
11729
11730 * frame.c (get_prev_frame): Add comment on check for
11731 inside_entry_func. Only check for inside_entry_file when not a
11732 dummy and not a sentinel. Check that the new frame is not inner
11733 to the old frame.
11734
ac2bd0a9
AC
117352003-02-25 Andrew Cagney <cagney@redhat.com>
11736
11737 * frame.c (frame_debug): New variable.
11738 (_initialize_frame): Add "set/show debug frame" command.
11739 (get_prev_frame): When frame_debug, print reason why unwind
11740 failed.
11741
b18a0fd2
MC
117422003-02-25 Michael Chastain <mec@shout.net>
11743
11744 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11745 to avoid uintptr_t definition problems.
11746
22abf04a
DC
117472003-02-25 David Carlton <carlton@math.stanford.edu>
11748
11749 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11750 (SYMBOL_LINKAGE_NAME): Ditto.
11751 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11752 SYMBOL_LINKAGE_NAME.
11753 (struct general_symbol_info): Expand comment.
11754 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11755 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11756 (SYMBOL_MATCHES_REGEXP): Ditto.
11757 * symtab.c (symbol_natural_name): New function.
11758 * objfiles.h: Replace all uses of SYMBOL_NAME by
11759 DEPRECATED_SYMBOL_NAME.
11760 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11761 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11762 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11763 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11764 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11765 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11766 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11767 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11768 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11769 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11770 * ada-exp.y: Ditto.
11771 * ada-exp.y: Update copyright.
11772 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11773 * cp-valprint.c: Ditto.
11774
1a5848f6
JJ
117752003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11776
11777 * infptrace.c (detach): Do not flag error if ptrace detach fails
11778 and errno is set to ESRCH.
11779
7343d46a
AC
117802003-02-24 Andrew Cagney <cagney@redhat.com>
11781
11782 * infptrace.c (udot_info): Change type of udot_off to long. Use
11783 paddr when printing udot_off's value.
11784
49fa1dc2
DC
117852003-02-24 David Carlton <carlton@math.stanford.edu>
11786
11787 * symtab.c (make_symbol_overload_list): Only read in partial
11788 symtabs containing a matching partial symbol.
11789
0fe19209
DC
117902003-02-24 David Carlton <carlton@math.stanford.edu>
11791
11792 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11793 do the comparison, not strcmp.
11794 * symfile.c (compare_psymbols): Ditto.
11795 * defs.h: Declare strcmp_iw_ordered.
11796 * utils.c (strcmp_iw_ordered): New function.
11797
8e3ee7b5
JB
117982003-02-24 Jim Blandy <jimb@redhat.com>
11799
11800 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11801 support, shared libs): Remove my name from here, to better reflect
11802 reality.
11803
7df1a324
KW
118042003-02-24 Kris Warkentin <kewarken@qnx.com>
11805
11806 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11807 (target_ops): Add to_have_continuable_watchpoint.
11808 * target.c (update_current_target): Add INHERIT line for
11809 to_have_continuable_watchpoint.
11810 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11811 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11812 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11813 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11814
d1c76907
EZ
118152003-02-24 Elena Zannoni <ezannoni@redhat.com>
11816
11817 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11818 maintainership.
11819
2610b0bf
KW
118202003-02-24 Kris Warkentin <kewarken@qnx.com>
11821
f46169db
KW
11822 * solib.c (solib_open): Call target defined search function after
11823 failing with solib-search-path.
11824 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11825 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 11826
9a3c34fe
KW
118272003-02-24 Kris Warkentin <kewarken@qnx.com>
11828
f46169db 11829 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 11830
2417dd25
SC
118312003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11832
11833 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11834
b631436b
SC
118352003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11836
11837 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11838 (m68hc11_add_reggroups): New function.
11839 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11840 (m68hc11_gdbarch_init): Install the reggroups.
11841 (_initialize_m68hc11_tdep): Initialize them.
11842
0aa8c1e4
JW
118432003-02-21 James E Wilson <wilson@tuliptree.org>
11844
11845 * MAINTAINERS: Update my email address.
11846
50ceaba5
DC
118472003-02-21 David Carlton <carlton@math.stanford.edu>
11848
11849 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11850
4c2df51b
DJ
118512003-02-21 Daniel Jacobowitz <drow@mvista.com>
11852
11853 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11854 * symtab.h: Add opaque declarations of struct axs_value and
11855 struct agent_expr.
11856 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11857 (struct location_funcs): New type.
11858 (struct symbol): Add "loc" to aux_value.
11859 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11860 * dwarf2read.c: Include "dwarf2expr.h".
11861 (dwarf2_symbol_mark_computed): New function.
11862 (read_func_scope): Use it.
11863 (var_decode_location): New function.
11864 (new_symbol): Use it.
11865 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11866
11867 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11868 (dwarf2expr_h, dwarf2loc_h): New variables.
11869 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11870 (dwarf2expr.o, dwarf2loc.o): New rules.
11871 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11872 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11873 LOC_COMPUTED_ARG.
11874 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11875 * m2-exp.y (yylex): Likewise.
11876 * printcmd.c (address_info, print_frame_args): Likewise.
11877 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11878 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11879 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11880 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11881 * symtab.c (lookup_block_symbol): Likewise.
11882
5784d15e
AF
118832003-02-20 Adam Fedor <fedor@gnu.org>
11884
11885 * symtab.h: Remove objc_specific struct
11886 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11887 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11888 Have language_objc use cplus_specific struct.
11889
d4cad8db
TT
118902003-02-20 Tom Tromey <tromey@redhat.com>
11891
11892 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11893 TYPE_NAME, when printing a String value. PR java/1075.
11894
2f9a90b4
AF
118952003-02-20 Adam Fedor <fedor@gnu.org>
11896
d38074a8 11897 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 11898 * objc-lang.c (find_methods): Make static.
2f9a90b4 11899
6f17862b
CF
119002003-02-20 Christopher Faylor <cgf@redhat.com>
11901
11902 * win32-nat.c (get_image_name): Check return value from
11903 ReadProcessMemory.
11904 (child_xfer_memory): Ditto.
11905
715d1656
AO
119062003-02-20 Alexandre Oliva <aoliva@redhat.com>
11907
11908 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11909 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11910 '${exec_prefix}' (in addition to the expansion thereof) as
11911 relocatable.
11912 * configure: Rebuilt.
11913
b1262a02
DC
119142003-02-20 David Carlton <carlton@math.stanford.edu>
11915
11916 * symtab.c (search_symbols): Revert the search_symbols part of my
11917 2002-12-23 patch. Add comment.
11918
7134143f
DJ
119192002-02-20 Daniel Jacobowitz <drow@mvista.com>
11920
11921 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11922 * dbxread.c (elfstab_build_psymtabs): Don't call
11923 install_minimal_symbols.
11924 (stabsect_build_psymtabs): Likewise.
11925 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11926 earlier.
11927 * somread.c (som_symfile_read): Call install_minimal_symbols
11928 and do_cleanups earlier.
11929 * nlmread.c (nlm_symfile_read): Likewise.
11930 * mdebugread.c (elfmdebug_build_psymtabs): Call
11931 install_minimal_symbols and make appropriate cleanups.
11932
cf466558
KB
119332003-02-20 Kevin Buettner <kevinb@redhat.com>
11934
11935 * solib.c (reload_shared_libraries): New function.
11936 (_initialize_solib): Add callbacks for ``set solib-search-path''
11937 and ``set solib-absolute-prefix''.
11938
de5ad195
DC
119392003-02-20 David Carlton <carlton@math.stanford.edu>
11940
11941 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11942 expand comment.
11943 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11944 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11945 * ada-typeprint.c (ada_typedef_print): Ditto.
11946 * ax-gdb.c (gen_var_ref): Ditto.
11947 * breakpoint.c (print_one_breakpoint): Ditto.
11948 * buildsym.c (finish_block): Ditto.
11949 * c-valprint.c (c_val_print): Ditto.
11950 * expprint.c (print_subexp): Ditto.
11951 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
11952 * infcmd.c (jump_command): Ditto.
11953 * linespec.c (decode_line_2, decode_compound): Ditto.
11954 * maint.c (maintenance_translate_address): Ditto.
11955 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
11956 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11957 Ditto.
8ffd9b1b
AJ
11958 * p-valprint.c (pascal_val_print): Ditto.
11959 * stabsread.c (define_symbol): Ditto.
de5ad195 11960 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
11961 (print_frame_arg_vars, return_command): Ditto.
11962 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11963 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
11964 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11965 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
11966 (rbreak_command): Ditto.
11967 * tracepoint.c (tracepoints_info): Ditto.
11968 * typeprint.c (typedef_print): Ditto.
11969 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
11970 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11971 * ada-typeprint.c: Update Copyright.
11972 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11973 * tracepoint.c, cli/cli-cmds.c: Ditto.
11974
f796e4be
KB
119752003-02-20 Kevin Buettner <kevinb@redhat.com>
11976
11977 * frame.c (generic_unwind_get_saved_register): Make non-static.
11978 * frame.h (generic_unwind_get_saved_register): Declare.
11979 * mips-tdep.c (read_next_frame_reg): Fetch register from
11980 current regcache when frame is NULL.
11981 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11982 that must be NULL.
11983 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11984 instead of frame_register_unwind().
11985
836cc9f4
AC
119862003-02-20 Andrew Cagney <ac131313@redhat.com>
11987
11988 * remote-sim.c (gdbsim_insert_breakpoint)
11989 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11990 code.
11991
501eef12
AC
119922003-02-20 Andrew Cagney <ac131313@redhat.com>
11993
11994 * remote.c (_initialize_remote): Add commands "set/show remote
11995 hardware-watchpoint-limit" and "set/show remote
11996 hardware-breakpoint-limit".
11997 (remote_hw_watchpoint_limit): Initialize to -1.
11998 (remote_hw_breakpoint_limit): Ditto.
11999 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12000
1b6bc7e0
CF
120012003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12002
12003 * coff-pe-read.c: New file - support reading of minimal symbols from a
12004 portable executable using the export table.
12005 * coff-pe-read.h: New file.
12006 * coffread.c: Include coff-pe-read.h.
12007 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12008 debugging symbols found.
12009 * Makefile.in (SFILES): Add coff-pe-read.o.
12010 (coff_pe_read_h): Define.
12011 (COMMON_OBS): Add coff-pe-read.o.
12012 (coffread.o): Add coff_pe_read_h dependency.
12013 (coff-pe-read.o): New target.
12014
fe898f56
DC
120152003-02-19 David Carlton <carlton@math.stanford.edu>
12016
12017 * Makefile.in (SFILES): Add block.c.
12018 (block_h): New.
12019 (COMMON_OBS): Add block.o.
12020 (block.o): New.
12021 (x86-64-tdep.o): Add $(block_h).
12022 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12023 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12024 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12025 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12026 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12027 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12028 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12029 * value.h: Add opaque declaration for struct block.
12030 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12031 * ada-lang.h: Ditto.
12032 * x86-64-tdep.c: #include "block.h"
12033 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12034 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12035 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12036 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12037 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12038 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12039 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12040 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12041 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12042 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12043 * symtab.c (block_function): Ditto.
12044 (contained_in): Ditto.
12045 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12046 block.h. Add opaque declaration for struct block.
12047 * symtab.h: Move block_function and contained_in declarations to
12048 block.h. Add opaque declarations for struct block, struct
12049 blockvector.
12050 (struct block): Move to block.h.
12051 (struct blockvector): Ditto.
12052 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12053 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12054 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12055 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12056 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12057 Ditto.
12058 * block.c: New file.
12059 * block.h: New file.
12060
173345b5
TR
120612003-02-19 Theodore A. Roth <troth@openavr.org>
12062
12063 * avr-tdep.c (avr_extract_return_value): Remove function.
12064 (avr_store_return_value): Remove function.
12065 (avr_extract_struct_value_address): Remove function.
12066 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12067
338ef23d
AC
120682003-02-19 Andrew Cagney <ac131313@redhat.com>
12069
12070 * rs6000-tdep.c: Include "gdb_assert.h".
12071 (registers_e500): Add "acc" and "spefscr".
12072 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12073 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12074 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12075 really is "r0".
12076 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12077
5412f5f3
KS
120782003-02-18 Keith Seitz <keiths@redhat.com>
12079
12080 * Makefile.in: Add gdbtk-interps.c.
12081
881324eb
KB
120822003-02-18 Kevin Buettner <kevinb@redhat.com>
12083
12084 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12085 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12086
6a2f5abf
AC
120872003-02-18 Andrew Cagney <cagney@redhat.com>
12088
12089 * symtab.h (struct objfile): Add opaque declaration.
12090
54c7009d
EZ
120912003-02-18 Elena Zannoni <ezannoni@redhat.com>
12092
12093 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12094 * dbxread.c (process_one_symbol): Use last_function_start rather
12095 than function_start_offset to find the real beginning of the
12096 current function. The latter is just the text section offset on
12097 some systems, the former is always the real function start.
54c7009d 12098
7ee6d7eb
AC
120992003-02-17 Andrew Cagney <cagney@redhat.com>
12100
12101 * configure.in: Revert ${target} != ${host}.
12102
2846da9b
AC
121032003-02-17 Andrew Cagney <ac131313@redhat.com>
12104
12105 * configure.in (Makefile): Use the test ${target} != ${host},
12106 instead of the absence of the "nm.h" file, to determine of the
12107 configuration non-native.
12108 * configure: Regenerate.
8ffd9b1b 12109
3b27aeea
EZ
121102003-02-14 Elena Zannoni <ezannoni@redhat.com>
12111
fbe586ae 12112 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12113
12114 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12115 conditionalize tui_active test.
12116 (lookup_cmd_1): Ditto.
12117
b0b1c2c0
MK
121182003-02-14 Mark Kettenis <kettenis@gnu.org>
12119
12120 * configure.in: Add check for _etext.
12121 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12122 available.
12123 * config.in, configure: regenerated.
12124
8f05cde5
DJ
121252003-02-14 Daniel Jacobowitz <drow@mvista.com>
12126
12127 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12128
021e7609
AC
121292003-02-14 Andrew Cagney <ac131313@redhat.com>
12130
12131 * main.c (tui_version): Delete variable.
12132 (captured_main): When --tui, set interpreter_p to "tui" instead of
12133 enabling tui_version.
12134 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12135 tui_version.
12136 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12137 * cli/cli-cmds.c (disassemble_command): Ditto.
12138 * defs.h (tui_version): Delete declaration.
12139 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12140 (tui-interp.o): Add rules.
12141 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12142
e325dcec
CF
121432003-02-14 Christopher Faylor <cgf@redhat.com>
12144
36ffb041 12145 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12146 just-loaded dll.
12147
c4f90d87
JM
121482003-02-12 Jason Molenda (jmolenda@apple.com)
12149
fbe586ae
RH
12150 * symmisc.c (print_objfile_statistics): Include information about
12151 the number of psymtabs and symtabs in each object file.
c4f90d87 12152
e46e5ccd
KS
121532003-02-13 Keith R Seitz <keiths@redhat.com>
12154
12155 * main.h (struct captured_main_args): Add interpreter_p.
12156 * main.c (captured_main): Initialize interpreter_p from context.
12157 * gdb.c (main): Set interpreter_p argument.
12158 * Makefile.in (gdb.o): Add dependency for interps.h.
12159
fe97fe9c
AC
121602003-02-12 Andrew Cagney <ac131313@redhat.com>
12161
12162 * event-top.c (cli_command_loop): Delete declaration.
12163 (_initialize_event_loop): Delete function setting event_loop_hook.
12164 * event-top.h (cli_command_loop): Declare. Update copyright.
12165 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12166 * interps.c (current_interp_command_loop): When event_loop_p, call
12167 cli_command_loop.
12168
1cdac4ef
AC
121692003-02-12 Andrew Cagney <ac131313@redhat.com>
12170
12171 * interps.h (interp_command_loop_ftype): Change return type to
12172 void.
12173
48037ead
ML
121742003-02-12 Michal Ludvig <mludvig@suse.cz>
12175
12176 * x86-64-tdep.c (x86_64_extract_return_value)
12177 (x86_64_store_return_value): Use regcache instead of regbuf.
12178 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12179 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12180
033afc63
AC
121812003-02-11 Andrew Cagney <ac131313@redhat.com>
12182
12183 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12184 * aclocal.m4: Regenerate.
12185 * configure: Regenerate.
12186
12187 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12188 TCL_LD_SEARCH_FLAGS.
12189
40d02bca
ML
121902003-02-10 Michal Ludvig <mludvig@suse.cz>
12191
12192 * dwarf2cfi.c: Reindented.
12193
11308a41
AC
121942003-02-09 Andrew Cagney <ac131313@redhat.com>
12195
12196 * interps.c (clear_interpreter_hooks): Convert function definition
12197 to ISO C.
12198
e1c1c0f6
DC
121992003-02-07 David Carlton <carlton@math.stanford.edu>
12200
12201 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12202
ab5d3da6
KB
122032003-02-07 Kevin Buettner <kevinb@redhat.com>
12204
12205 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12206 (struct type): ...to here.
12207 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12208 field.
12209 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12210 (replace_type): Set length on all type variants for a given type.
12211
b8a92b82
AC
122122003-02-07 Andrew Cagney <ac131313@redhat.com>
12213
12214 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12215 <sys/stat.h>.
12216 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12217
5cb316ef
AC
122182003-02-06 Andrew Cagney <ac131313@redhat.com>
12219
2555fe1a
AC
12220 * Makefile.in (symm-nat.o): Update dependencies.
12221 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12222 (lynx-nat.o, ia64-linux-nat.): Ditto.
12223 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12224 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12225 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12226
44270758
AC
12227 * Makefile.in (inflow_h): Define.
12228 (procfs.o, inflow.o, procfs.o): Update dependencies.
12229 * inftarg.c (child_stop): Delete extern declaration of
12230 inferior_process_group. Include "inflow.h".
12231 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12232 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12233 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12234 (our_process_group, inferior_process_group): Extern declarations.
12235
df8f7274
AC
12236 * procfs.c: Include "gdb_assert.h".
12237
5cb316ef
AC
12238 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12239 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12240 * jv-typeprint.c (java_type_print_base): Ditto.
12241 * typeprint.c (typedef_print): Eliminate STREQ.
12242 * cli/cli-script.c (define_command, define_command): Ditto.
12243 * main.c (captured_main): Ditto.
12244 * values.c (lookup_internalvar): Ditto.
12245 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12246 within `if' conditional.
12247 * linespec.c (decode_line_2): Ditto.
12248 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12249 (bfd_openw_with_cleanup): Ditto.
12250
2a28ccea
MK
122512003-02-07 Mark Kettenis <kettenis@gnu.org>
12252
12253 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12254 legacy_extract_return_value and store_return_value to
12255 legacy_return_value.
12256
786b8124
CF
122572003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12258
12259 * win32-nat.c (get_relocated_section_addrs): New function. Find
12260 section load addresses for symbol handling in relocated DLLs.
12261 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12262
b871e4ec
FF
122632003-02-05 Fred Fish <fnf@intrinsity.com>
12264
12265 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12266 '=' and '!='.
12267 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12268 with '&' and '=='.
12269 (angel_RDI_info): Ditto.
12270 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12271 with '&' and '!='.
12272 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12273
4389a95a 122742003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12275 Keith Seitz <keiths@redhat.com>
12276 Elena Zannoni <ezannoni@redhat.com>
12277 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12278
12279 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12280 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12281 (SUBDIR_MI_OBS): Add "mi-interp.o".
12282 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12283 (SFILES): Add "interps.c".
12284 (COMMON_OBS): Add "interps.o".
12285 (interps_h, mi_main_h): Define.
12286 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12287 (mi-main.o, main.o, event-top.o): Update dependencies.
12288 * cli/cli-interp.c: New file.
12289 * interps.h, interps.c: New files.
12290 * top.c: (gdb_init): Don't install the default interpreter, handed
12291 by captured_main.
12292 * main.c: Include "interps.h".
12293 (interpreter_p): Note that it should malloc'ed.
12294 (captured_command_loop): Call current_interp_command_loop.
12295 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12296 xfree and xstrdup when updating interpreter_p. Install the
12297 default interpreter. Add hack to stop mi1's copyright notice
12298 being encoded.
12299 * event-top.h (gdb_setup_readline): Declare.
12300 (gdb_disable_readline): Declare.
12301 * event-top.c: Include "interps.h".
12302 (display_gdb_prompt): Call current_interp_display_prompt_p.
12303 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12304 gdb_stdlog, and gdb_stdtarg.
12305 (_initialize_event_loop): Don't call gdb_setup_readline.
12306 * cli-out.c (cli_out_set_stream): New function.
12307 * cli-out.h (cli_out_set_stream): Declare.
12308
ff3b5810
MK
123092003-02-06 Mark Kettenis <kettenis@gnu.org>
12310
12311 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12312 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12313 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12314 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12315 config/i386/i386v42mp.mt: Removed.
12316
5b729aa5
MK
123172003-02-05 Mark Kettenis <kettenis@gnu.org>
12318
12319 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12320 GDB_OSABI_SOLARIS.
12321
8cc15142
MC
123222003-02-05 Michael Chastain <mec@shout.net>
12323
12324 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12325 2.12.1 and earlier versions.
12326
5aa5d4b9
AC
123272003-02-05 Andrew Cagney <ac131313@redhat.com>
12328
12329 Remove orphaned hosts, targets and files.
12330 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12331 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12332 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12333 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12334 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12335 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12336 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12337 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12338 * config/sparc/tm-sp64sim.h: Delete.
12339 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12340 hosts.
12341 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12342 mips*-dec-mach3* targets.
12343
b68767c1
MC
123442003-02-04 Michael Chastain <mec@shout.net>
12345
12346 * NEWS: Fix typo: sepcifying -> specifying.
12347
5ae7ca1d
MC
123482003-02-04 Michael Chastain <mec@shout.net>
12349
12350 * dwarfread.c: Add documentation on the state of dwarf-1,
12351 looking towards obsoletion.
12352
d08a4280
MC
123532003-02-03 Michael Chastain <mec@shout.net>
12354
12355 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12356 gdb/testsuite/gdb.c++/pr-1023.exp.
12357
e9be73e4
AC
123582003-02-04 Andrew Cagney <ac131313@redhat.com>
12359
12360 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12361 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12362
12363 * utils.c (init_page_info): Delete reference to MPW in comments.
12364 * main.c (captured_main): Delete #ifdef MPW.
12365
05d57f6f
AC
123662003-02-04 Andrew Cagney <ac131313@redhat.com>
12367
8ffd9b1b 12368 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12369 * monitor.c (monitor_expect): Obsolete reference to m32r.
12370 * configure.tgt: Mark m32r-*-elf* as obsolete.
12371 * MAINTAINERS: Mark m32k as obsolete.
12372 * m32r-rom.c: Obsolete file.
12373 * config/m32r/m32r.mt: Obsolete file.
12374 * config/m32r/tm-m32r.h: Obsolete file.
12375 * m32r-stub.c: Obsolete file.
12376 * m32r-tdep.c: Obsolete file.
12377
8b0e5691
AC
123782003-02-04 Andrew Cagney <ac131313@redhat.com>
12379
12380 * NEWS: Mention that the z8k-zilog-none is obsolete.
12381 * MAINTAINERS: Mark z8k as obsolete.
12382 * configure.tgt: Obsolete the z8k-*-coff* target.
12383 * config/z8k/z8k.mt: Obsolete file.
12384 * config/z8k/tm-z8k.h: Obsolete file.
12385 * z8k-tdep.c: Obsolete file.
12386
67f16606
AC
123872003-02-04 Andrew Cagney <ac131313@redhat.com>
12388
12389 * NEWS: Mention that the mn10200-elf is obsolete.
12390 * configure.tgt: Obsolete mn10200-*-* target.
12391 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12392 mention that the mn10200 is obsolete.
12393 * breakpoint.h: Ditto.
12394 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12395 * config/mn10200/mn10200.mt: Obsolete file.
12396 * config/mn10200/tm-mn10200.h: Obsolete file.
12397 * mn10200-tdep.c: Obsolete file.
12398
fd2299bd
AC
123992003-02-04 Andrew Cagney <ac131313@redhat.com>
12400
12401 * MAINTAINERS: Mark h8500 as obsolete.
12402 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12403 * findvar.c (value_from_register): Ditto.
12404 * h8500-tdep.c: Mark file as obsolete.
12405 * config/h8500/h8500.mt: Ditto.
12406 * config/h8500/tm-h8500.h: Ditto.
12407 * NEWS: Mention that h8500 is obsolete.
12408
eb9a305d
DC
124092003-02-04 David Carlton <carlton@math.stanford.edu>
12410
12411 * objfiles.c (allocate_objfile): Always set name. Add comment at
12412 start of function.
12413 * jv-lang.c (get_dynamics_objfile): Add comment.
12414
406fc7fb
DC
124152003-02-04 David Carlton <carlton@math.stanford.edu>
12416
12417 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12418 * printcmd.c (build_address_symbolic): Replace uses of
12419 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12420 SYMBOL_NAME, and asm_demangle.
12421 Update copyright.
12422
93d91629
DC
124232003-02-04 David Carlton <carlton@math.stanford.edu>
12424
12425 * linespec.c (decode_compound): Extract code into
12426 lookup_prefix_sym.
12427 (lookup_prefix_sym): New function.
12428
1c5cb38e
DC
124292003-02-04 David Carlton <carlton@math.stanford.edu>
12430
12431 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12432 FLOAT_COERCION_BADNESS.
12433 * gdbtypes.c (rank_one_type): Replace all uses of
12434 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12435
0cf824c9
JB
124362003-02-04 Jim Blandy <jimb@redhat.com>
12437
12438 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12439 section, let dwarf_macinfo_section point to it, not
12440 dwarf_loc_section.
12441
a2d356b0
DJ
124422003-02-04 Daniel Jacobowitz <drow@mvista.com>
12443
12444 Pointed out by Anton Blanchard <anton@samba.org>.
12445 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12446 (ppc_linux_at_sigtramp_return_path): Use it.
12447
2de7ced7
DJ
124482003-02-04 Daniel Jacobowitz <drow@mvista.com>
12449
12450 * defs.h (streq): Add prototype.
12451 * utils.c (streq): New function.
12452
12453 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12454 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12455 * mdebugread.c (new_symbol): Likewise.
12456 * stabsread.c (define_symbol): Likewise.
12457 * coffread.c (process_coff_symbol): Likewise.
12458 * dwarfread.c (new_symbol): Likewise.
12459
12460 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12461 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12462 here.
12463 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12464 SYMBOL_INIT_DEMANGLED_NAME.
12465 * objfiles.c: Include "hashtab.h".
12466 (allocate_objfile): Call htab_set_functions_ex for the
12467 demangled_names_hash.
12468 (free_objfile): Call htab_delete for the demangled_names_hash.
12469 * objfiles.h (struct htab): Add declaration.
12470 (struct objfile): Add demangled_names_hash.
12471 * symfile.c: Include "hashtab.h".
12472 (reread_symbols): Call htab_delete for the demangled_names_hash.
12473 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12474 SYMBOL_NAME in the bcache.
12475 * symtab.c: Include "hashtab.h". Update comments.
12476 (create_demangled_names_hash, symbol_set_names): New functions.
12477 (symbol_find_demangled_name): New function, broken out from
12478 symbol_init_demangled_names.
12479 (symbol_init_demangled_names): Use it.
12480 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12481 (SYMBOL_SET_NAMES): New macro.
12482 (symbol_set_names): Add prototype.
12483
15831452
JB
124842003-02-03 Jim Blandy <jimb@redhat.com>
12485
12486 Use a single, consistent representation for an empty minimal
12487 symbol table in an objfile.
12488 * objfiles.c (terminate_minimal_symbol_table): New function.
12489 (allocate_objfile): Call it.
12490 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12491 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12492 non-NULL.
15831452
JB
12493 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12494 objfile has minimal symbols, compare minimal_symbol_count to zero,
12495 instead of comparing msymbols with NULL.
12496 * objfiles.c (have_minimal_symbols): Same.
12497 * solib-sunos.c (solib_add_common_symbols): Call
12498 terminate_minimal_symbol_table.
12499 * symfile.c (reread_symbols): Same.
8ffd9b1b 12500
ffc65945
KB
125012003-02-03 Kevin Buettner <kevinb@redhat.com>
12502
12503 * s390-tdep.c (s390_address_class_type_flags)
12504 (s390_address_class_type_flags_to_name)
12505 (s390_address_class_name_to_type_flags): New functions.
12506 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12507 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12508
f211c6d4
MS
125092003-02-03 Michael Snyder <msnyder@redhat.com>
12510
12511 * arm-tdep.c: Fix spell-o in comment.
12512
659b0389
ML
125132003-02-03 Michal Ludvig <mludvig@suse.cz>
12514
12515 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12516 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12517 error messages to contain BFD filename.
659b0389 12518
3b31d625
EZ
125192003-02-02 Elena Zannoni <ezannoni@redhat.com>
12520
997b089a 12521 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12522 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12523 (do_mixed_source_and_assembly): Use
12524 make_cleanup_ui_out_tuple_begin_end and
12525 make_cleanup_ui_out_tuple_begin_end.
12526 (do_mixed_source_and_assembly): Ditto.
12527 * thread.c (do_captured_list_thread_ids): Ditto.
12528 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12529 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12530 ui_out_tuple_end): Delete prototypes.
12531 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12532 ui_out_list_end, ui_out_tuple_end): Delete.
12533
12534 From Kevin Buettner <kevinb@redhat.com>:
12535 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12536 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12537 (do_cleanup_table_end): New functions.
12538 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12539 Use cleanups to invoke_ui_out_tuple_end().
12540 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12541 * cli/cli-setshow.c (cmd_show_list): Use
12542 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12543
5b181d62
AC
125442003-02-02 Andrew Cagney <ac131313@redhat.com>
12545
12546 * frame.c (frame_unwind_register): New function.
12547 (frame_unwind_unsigned_register): Use.
12548 (frame_unwind_signed_register): Use.
12549 (frame_read_register): New function.
12550 * frame.h (frame_unwind_register): Declare.
12551 (frame_read_register): Declare.
12552
12553 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12554 and frame_unwind_register instead of read_memory, write_register
12555 and deprecated_write_register_bytes.
12556
5f601589
AC
125572003-02-02 Andrew Cagney <ac131313@redhat.com>
12558
12559 * frame.h: Note that namelen can be negative.
12560 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12561 NAME's length.
12562
12563 * NEWS: Mention that the d10v's `regs' command is deprecated.
12564 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12565 (d10v_print_registers_info): New function.
12566 (show_regs): Call d10v_print_registers_info.
12567 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12568
6a3fe0a4
MK
125692003-02-02 Mark Kettenis <kettenis@gnu.org>
12570
12571 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12572 lost in the previous patch.
12573
075559bc
AC
125742003-02-01 Andrew Cagney <ac131313@redhat.com>
12575
12576 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12577 * stack.c (print_frame_info_base): Output complete FRAME tuple
12578 for synthesized frames.
075559bc 12579
6789195b
AC
125802003-02-02 Andrew Cagney <ac131313@redhat.com>
12581
12582 * mips-nat.c (zerobuf): Delete.
12583 (fetch_inferior_registers): Alloc local zerobuf.
12584 (fetch_core_registers): Alloc local zerobuf.
12585 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12586 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12587 * thread-db.c (thread_db_store_registers): Ditto.
12588 * sh-tdep.c (sh_do_register): Ditto.
12589 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12590 * remote-sim.c (gdbsim_store_register): Ditto.
12591 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12592 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12593 * monitor.c (monitor_supply_register): Ditto.
12594 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12595 * mips-nat.c (fetch_inferior_registers): Ditto.
12596 * m68klinux-nat.c (fetch_register): Ditto.
12597 * lynx-nat.c (fetch_inferior_registers): Ditto.
12598 (fetch_inferior_registers): Ditto.
12599 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12600 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12601 (hpux_thread_store_registers): Ditto.
12602 * hppah-nat.c (fetch_register): Ditto.
12603 * hppab-nat.c (fetch_register): Ditto.
12604 * hppa-tdep.c (pa_register_look_aside): Ditto.
12605 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12606 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12607
e669114a
AC
126082003-02-01 Andrew Cagney <ac131313@redhat.com>
12609
12610 * gdbarch.sh: Explictly specify all method levels. When a
12611 variable with an empty level, provide a non-multi-arch default.
12612 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12613 * gdbarch.h: Re-generate.
12614 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12615 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12616
9a043c1d
AC
126172003-02-01 Andrew Cagney <ac131313@redhat.com>
12618
12619 * defs.h (host_pointer_to_address): Delete declaration.
12620 (address_to_host_pointer): Delete declaration.
12621 * utils.c (host_pointer_to_address): Delete function.
12622 (address_to_host_pointer): Delete function.
12623 * procfs.c (procfs_address_to_host_pointer): New function.
12624 * procfs.c (proc_set_watchpoint): Use.
12625 (procfs_can_use_hw_breakpoint): Update comments.
12626 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12627 (som_solib_add): Use.
12628 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12629 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12630
7ca9f392
AC
126312003-02-01 Andrew Cagney <ac131313@redhat.com>
12632
94bbfd30
AC
12633 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12634 strlen d_name.
12635
7ca9f392
AC
12636 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12637 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12638 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12639 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12640 (define_symbol): Update.
12641 * symfile.c (generic_load): Remove references to nindy.
12642 * symtab.c: Remove references to nindy.
12643
31a85ea2
AC
126442003-02-01 Andrew Cagney <ac131313@redhat.com>
12645
12646 * infcmd.c (print_float_info): Delete code conditional on
12647 FLOAT_INFO.
12648 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12649 * config/m68k/nm-apollo68b.h: Ditto.
12650 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12651 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12652 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12653
f6e85fc8
MK
126542003-02-01 Mark Kettenis <kettenis@gnu.org>
12655
6015b6a0
MK
12656 * config/i386/tm-i386os9k.h: Removed.
12657
f7a30bdf
MK
12658 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12659 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12660 they're identical to i[3456]86-*-sysv* now.
12661 * config/i386/i386v32.mh: Removed.
12662 * config/i386/xm-i386v32.h: Removed.
12663 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12664
28d52111
MK
12665 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12666
4d3f6bce
MK
12667 * config/i386/i386dgux.mh: Removed.
12668 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12669
f6e85fc8
MK
12670 * configure.in: Fix typo.
12671 * configure: Regenerated.
12672
53955967
DC
126732003-01-31 David Carlton <carlton@math.stanford.edu>
12674
12675 * dwarf2read.c (dwarf2_locate_sections): Set
12676 dwarf_ranges_section.
12677
b1364885
AC
126782003-01-31 Andrew Cagney <ac131313@redhat.com>
12679
8dbb1c65
AC
12680 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12681 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12682
8731e58e
AC
12683 * utils.c: Re-indent.
12684
b1364885
AC
12685 * config/djgpp/fnchange.lst: Delete nindy files.
12686 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12687 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12688 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12689 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12690 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12691 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12692 * Makefile.in (init.c): Remove nindy references.
12693 (saber_gdb): Delete rule.
12694 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12695 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12696 and a68v-nat.c.
12697 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12698 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12699 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12700 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12701 nindy-share/stop.h.
12702 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12703 * saber.suppress: Delete file.
12704
086df311
DJ
127052003-01-31 Daniel Jacobowitz <drow@mvista.com>
12706
12707 * dbxread.c (stabs_data): New static variable.
12708 (fill_symbuf): Support an in-memory buffer for stabs data.
12709 (stabs_seek): New function.
12710 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12711 (read_ofile_symtab): Use stabs_seek.
12712 (elfstab_build_psymtabs): Take an asection* instead of
12713 an offset and size. Relocate the stabs data if necessary.
12714 Save the section* for dbx_psymtab_to_symtab.
12715 * dwarf2read.c: Add section variables for each debug section.
12716 (dwarf2_locate_sections): Fill them in.
12717 (dwarf2_read_section): Take an asection* argument.
12718 Relocate the section contents if necessary.
12719 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12720 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12721 it to dwarf2_read_section.
12722 (dwarf2_build_frame_info): Update callers.
12723 * elfread.c (elf_symfile_read): Update call to
12724 elfstab_build_psymtabs.
12725 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12726 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12727 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12728 * symfile.c (symfile_dummy_outputs): New function.
12729 (symfile_relocate_debug_section): New function.
12730 * symfile.h (symfile_relocate_debug_section): Add prototype.
12731
87d1b352
RH
127322003-01-31 Richard Henderson <rth@redhat.com>
12733
12734 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12735 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12736 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12737 * alpha-tdep.c (alpha_register_name): Add "unique".
12738 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12739 (ALPHA_UNIQUE_REGNUM): New.
12740 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12741
c48861fb
AC
127422003-01-31 Andrew Cagney <ac131313@redhat.com>
12743
12744 * README: Remove reference to Ericsson 1800 monitor.
12745 * Makefile.in (remote-es.o): Delete rule.
12746 (ALLDEPFILES): Delete remote-es.c.
12747 * remote-es.c: Delete file.
12748 * config/m68k/es1800.mt: Delete file.
12749 * config/djgpp/fnchange.lst: Update.
12750 * configure.tgt: Delete m68*-ericsson-* target.
12751
d764a824
AF
127522003-01-31 Adam Fedor <fedor@gnu.org>
12753
12754 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12755 Remove duplicate/shadowing variable of same name.
12756
fe36c4f4
JB
127572003-01-30 Jim Blandy <jimb@redhat.com>
12758
12759 * symfile.c (find_separate_debug_file): Assert that the objfile's
12760 directory name we compute ends with a slash, and then assume that
12761 that's so everywhere we use it.
12762
cb741690
DJ
127632003-01-30 Daniel Jacobowitz <drow@mvista.com>
12764
12765 * valops.c (value_assign): Flush frame cache after stores to memory
12766 also.
12767
96ee5227
AC
127682003-01-30 Andrew Cagney <ac131313@redhat.com>
12769
12770 * Makefile.in (mon960-rom.o): Delete rule.
12771 * mon960-rom.c: Delete file.
12772
7f6104a9
AC
127732003-01-30 Andrew Cagney <ac131313@redhat.com>
12774
12775 * d10v-tdep.c: Include "frame-unwind.h".
12776 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12777 list.
12778 (next_addr, uses_frame): Delete.
12779 (struct d10v_unwind_cache): Define.
12780 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12781 Use info instead of next_addr and uses_frame globals.
12782 (d10v_frame_init_saved_regs): Delete function.
12783 (d10v_init_extra_frame_info): Delete function.
12784 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12785 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12786 init_frame_pc or frame_saved_pc.
12787 (d10v_pop_frame): Delete function.
12788 (do_d10v_pop_frame): Delete function.
12789 (d10v_frame_chain): Delete function.
12790 (d10v_frame_chain_valid): Delete function.
12791 (d10v_frame_pc_unwind): New function.
12792 (d10v_frame_id_unwind): New function.
12793 (saved_regs_unwinder): New function.
12794 (d10v_frame_register_unwind): New function.
12795 (d10v_frame_pop): New function.
12796 (d10v_frame_unwind): New variable.
12797 (d10v_frame_p): New function.
12798 (d10v_frame_saved_pc): Delete function.
12799 * Makefile.in (d10v-tdep.o): Update dependencies.
12800
cad2e848
JB
128012003-01-30 J. Brobecker <brobecker@gnat.com>
12802
12803 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12804 causing some regressions due to a change in the default value
12805 for this macro.
12806
af34e669
DJ
128072003-01-29 Richard Henderson <rth@redhat.com>
12808 Elena Zannoni <ezannoni@redhat.com>
12809 Daniel Jacobowitz <drow@mvista.com>
12810
12811 Fix PR gdb/961.
8ffd9b1b 12812 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
12813 variables.
12814 (RANGES_SECTION): New.
12815 (dwarf_ranges_buffer): New variable.
12816 (struct comp_unit_head): Add member "die".
12817 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12818 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12819 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12820 (dwarf2_locate_sections): Likewise.
12821 (dwarf2_build_psymtabs): Read .debug_ranges.
12822 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12823 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12824 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12825 Look for DW_AT_ranges and return the bounding box.
12826
baa93fa6
CF
128272003-01-29 Brian Ford <ford@vss.fsi.com>
12828
12829 * win32-nat.c (cygwin_pid): Removed as unused.
12830 (child_attach): Try fall back to Cygwin pid.
12831
c63f977f
JB
128322003-01-29 Jim Blandy <jimb@redhat.com>
12833
12834 * objfiles.h (struct objfile): Doc fix.
12835
d62d1979
AC
128362003-01-29 Andrew Cagney <ac131313@redhat.com>
12837
12838 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12839 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12840 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12841 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12842 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12843 (FRAME_SAVED_PC): Change to a function with predicate.
12844 * gdbarch.h, gdbarch.c: Re-generate.
12845
1ae18a04
AC
128462003-01-28 Andrew Cagney <ac131313@redhat.com>
12847
52287340
AC
12848 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12849
1ae18a04
AC
12850 * complaints.c (complain): Delete function.
12851 * complaints.h (struct deprecated_complaint): Delete definition.
12852 (complain): Delete declaration.
12853
f2c16bd6
KB
128542003-01-28 Kevin Buettner <kevinb@redhat.com>
12855
12856 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12857 dummy frames.
12858
a94dd1fd
AC
128592003-01-27 Andrew Cagney <ac131313@redhat.com>
12860
12861 * sentinel-frame.h, sentinel-frame.c: New files.
12862 * Makefile.in (frame.o): Update dependencies.
12863 (SFILES): Add sentinel-frame.c.
12864 (sentinel_frame_h): Define.
12865 (COMMON_OBS): Add sentinel-frame.o.
12866 (sentinel-frame.o): Specify dependencies.
12867 * frame.c: Include "sentinel-frame.h".
12868 (frame_register_unwind): Rewrite assuming that there is always a a
12869 ->next frame.
12870 (frame_register, generic_unwind_get_saved_register): Ditto.
12871 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12872 (create_sentinel_frame, unwind_to_current_frame): New functions.
12873 (get_current_frame): Rewrite using create_sentinel_frame and
12874 unwind_to_current_frame. When possible, always create a frame.
12875 (create_new_frame): Set next to the sentinel frame.
12876 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12877 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12878 ID cache when necessary.
12879 (frame_saved_regs_id_unwind): Use frame_relative_level.
12880 (deprecated_generic_get_saved_register): Use frame_relative_level,
12881 get_frame_saved_regs, get_frame_pc, get_frame_base and
12882 get_next_frame.
12883 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12884 frame_register.
12885
5378adc4
DJ
128862003-01-27 Daniel Jacobowitz <drow@mvista.com>
12887
12888 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12889
51ee2ddc
DJ
128902003-01-27 Daniel Jacobowitz <drow@mvista.com>
12891
12892 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12893 (maintenance_set_profile_cmd): Use error () instead of warning ().
12894
d9feb4e7
DJ
128952003-01-27 Daniel Jacobowitz <drow@mvista.com>
12896
12897 * configure.in: Check that -pg works if using --enable-profiling.
12898 Check for monstartup and _mcleanup regardless of --enable-profiling.
12899 * maint.c: Check for monstartup and _mcleanup before using them.
12900 * config.in: Regenerated.
12901 * configure: Regenerated.
12902
2d188dd3
NC
129032003-01-24 Nick Clifton <nickc@redhat.com>
12904
12905 * Add sh2e support:
12906
12907 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12908
12909 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12910 (sh2e_show_regs): New.
12911 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12912 * config/sh/tm-sh.h: Added sh2e to comments.
12913
cb3c37b2
JB
129142003-01-23 Jim Blandy <jimb@redhat.com>
12915
12916 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12917 symbols found)" message here; we haven't checked for a separate
12918 debug info file yet, so we don't know yet.
12919 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12920 we've looked everywhere. Also, there's no need to print a special
12921 message when we're loading the separate debug info file: the one
12922 symbol_file_add prints is fine.
12923
5b5d99cf
JB
129242003-01-23 Alexander Larsson <alexl@redhat.com>
12925 Jim Blandy <jimb@redhat.com>
12926
12927 Add support for executables whose debug info has been separated
12928 out into a separate file, leaving only a link behind.
12929 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12930 and separate_debug_objfile_backlink.
12931 (put_objfile_before): New declaration.
12932 * symfile.c: #include "filenames.h".
12933 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12934 debug info in a separate file, read that, too. Save the addrs
12935 argument, so we can use it again to read the separated debug info;
12936 syms_from_objfile modifies the table we pass it.
12937 (reread_symbols): After re-reading an objfile, call
12938 reread_separate_symbols to refresh its separate debug info
12939 objfile, if it has one.
12940 (reread_separate_symbols, find_separate_debug_file,
12941 get_debug_link_info, separate_debug_file_exists): New functions.
12942 (debug_file_directory): New global var.
12943 (_initialize_symfile): Initialize debug_file_directory, and
12944 provide the new `set debug-file-directory' command to let the user
12945 change it.
12946 * objfiles.c (free_objfile): If this objfile has its debug info in
12947 a separate objfile, free that one too. If this is itself a
12948 separate debug info objfile, clear our parent's backlink.
12949 (put_objfile_before): New function.
12950 * utils.c (gnu_debuglink_crc32): New function.
12951 * defs.h (gnu_debuglink_crc32): New declaration.
12952 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12953 * configure.in: Handle --with-separate-debug-dir config option.
12954 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12955 * acconfig.h (DEBUGDIR): New macro.
12956 * configure, aclocal.m4, config.in: Regenerated.
12957
7e8580c1
JB
129582003-01-22 Jim Blandy <jimb@redhat.com>
12959
7904e09f
JB
12960 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12961 like the old symbol_file_add, but taking new arguments: you can
12962 now pass in either a `struct section_addr_info' list to say where
12963 each section is loaded, or a `struct section_offsets' table. Pass
12964 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 12965 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
12966 with the appropriate quiescent values for the new arguments.
12967
7e8580c1
JB
12968 * symfile.c: #include "gdb_assert.h".
12969 (syms_from_objfile): Add the ability to pass in a section offset
12970 table directly, as an alternative to the section_addr_info table.
12971 Document arguments better.
12972 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12973 * symfile.h (syms_from_objfile): Update declaration.
12974 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12975 syms_from_objfile.
12976 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12977
d28f9cdf
DJ
129782003-01-22 Daniel Jacobowitz <drow@mvista.com>
12979
12980 Original patch by Tom Tromey <tromey@cygnus.com> and
12981 Jason Molenda <jmolenda@apple.com>.
12982 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12983 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12984 * NEWS: Mention profiling.
12985 * configure.in (--enable-gdbtk): Fix typo.
12986 (--enable-profiling): New. Set PROFILE_CFLAGS.
12987 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12988 Fill in function.
12989 (profiling_state): New variable.
12990 (mcleanup_wrapper): New function.
12991 (_initialize_maint): Remove NOTYET, fix call to
12992 add_setshow_boolean_cmd for "maint set profile".
12993 * configure: Regenerated.
12994
df21e465
MH
129952003-01-21 Martin M. Hunt <hunt@redhat.com>
12996
12997 * Makefile.in (install-gdbtk): Install PNG images too.
12998
73c1f219
AC
129992003-01-21 Andrew Cagney <ac131313@redhat.com>
13000
13001 * exec.c (text_start): Delete global variable.
13002 (exec_file_attach): Make text_start local to the function.
13003 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13004 * valops.c (hand_function_call): Delete code that handles
13005 BEFORE_TEXT_END and AFTER_TEXT_END.
13006 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13007 of CALL_DUMMY_LOCATION.
13008 * gdbarch.c: Regenerate.
13009 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13010 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13011 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13012 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13013 (text_end): Delete extern declaration.
13014
eb4f72c5
AC
130152003-01-21 Andrew Cagney <ac131313@redhat.com>
13016
13017 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13018 * blockframe.c (backtrace_below_main): Move to "frame.c".
13019 (frame_chain_valid): Delete check for backtrace_below_main.
13020 (_initialize_blockframe): Delete initialization, move ``set
13021 backtrace-below-main'' command to "frame.c".
13022 (do_flush_frames_sfunc): Delete function.
13023 * frame.c: Include "command.h" and "gdbcmd.h".
13024 (frame_type_from_pc): New function.
13025 (create_new_frame): Use frame_type_from_pc.
13026 (legacy_get_prev_frame): New function.
13027 (get_prev_frame): Rewrite. When an old style frame, call
13028 legacy_get_prev_frame. Otherwize, unwind the PC first.
13029 (_initialize_frame): Add ``set backtrace-below-main'' command.
13030 * Makefile.in (frame.o): Update dependencies.
13031
778ce8cc
AC
130322003-01-19 Andrew Cagney <ac131313@redhat.com>
13033
13034 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13035 DEPRECATED_REGISTERS_INFO.
13036
01c193c8
AC
130372003-01-19 Andrew Cagney <ac131313@redhat.com>
13038
13039 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13040 Maintainers'. Update `Various Maintainers'.
13041
dedc2a2b
AC
130422003-01-19 Andrew Cagney <ac131313@redhat.com>
13043
13044 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13045 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13046 Suppress actual parameters when `-'.
13047 * gdbarch.h, gdbarch.c: Regenerate.
13048
b7261c70
AC
130492003-01-19 Andrew Cagney <ac131313@redhat.com>
13050
13051 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13052 code handling dummy frames.
13053
dbe9fe58
AC
130542003-01-19 Andrew Cagney <ac131313@redhat.com>
13055
13056 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13057 (struct frame_unwind): Add field pop.
13058 * frame.h (frame_pop): Declare.
13059 * frame.c (frame_saved_regs_pop): New function.
13060 (trad_frame_unwinder): Add frame_saved_regs_pop.
13061 (frame_pop): New function.
13062 * dummy-frame.c (dummy_frame_pop): New function.
13063 (discard_innermost_dummy): New function.
13064 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13065 (dummy_frame_unwind): Add dummy_frame_pop.
13066 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13067 * valops.c (hand_function_call): Ditto.
13068 * stack.c (return_command): Ditto.
13069
570b8f7c
AC
130702003-01-18 Andrew Cagney <ac131313@redhat.com>
13071
13072 * cris-tdep.c: Fix function declaration indentation.
13073 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13074 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13075 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13076 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13077 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13078 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13079
130802003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13081
13082 * README (Unpacking and Installation -- quick overview):
13083 Warn against ".../gdb-5.3/gdb/configure".
13084
494cca16
AC
130852003-01-18 Andrew Cagney <ac131313@redhat.com>
13086
13087 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13088 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13089 (struct frame_unwind): Declare opaque.
13090 (dummy_frame_p): Declare function.
13091 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13092 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13093 * dummy-frame.c: Include "frame-unwind.h".
13094 (dummy_frame_p): New function.
13095 (dummy_frame_unwind): New variable.
13096 * frame.c: Include "frame-unwind.h".
13097 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13098 to use the new unwind field.
13099 (set_unwind_by_pc): Delete function.
13100 (create_new_frame, get_prev_frame): Set unwind field using
13101 frame_unwind_find_by_pc.
13102 (trad_frame_unwind, trad_frame_unwinder): New variables.
13103 * frame.h (trad_frame_unwind): Declare variable.
13104 (frame_id_unwind_ftype): Delete declaration.
13105 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13106 (struct frame_unwind): Declare opaque.
13107 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13108 register_unwind with a single unwind pointer.
13109 * frame-unwind.h, frame-unwind.c: New files.
13110 * Makefile.in (SFILES): Add frame-unwind.c.
13111 (frame_unwind_h): Define.
13112 (COMMON_OBS): Add frame-unwind.o.
13113 (frame-unwind.o): Specify dependencies.
13114 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13115
4efb68b1
AC
131162003-01-18 Andrew Cagney <ac131313@redhat.com>
13117
13118 * ada-valprint.c: Eliminate PTR.
13119 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13120 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13121 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13122 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13123 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13124 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13125 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13126
a84d24ee
AC
131272003-01-17 Andrew Cagney <ac131313@redhat.com>
13128
762f08a3
AC
13129 * main.c (captured_main): Don't use PTR.
13130 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13131 * gdbtypes.c (lookup_primitive_typename): Ditto.
13132 (lookup_struct_elt_type): Ditto.
13133 * f-valprint.c (info_common_command): Ditto.
13134 (list_all_visible_commons): Ditto.
13135 * jv-typeprint.c (java_type_print_base): Ditto.
13136
a84d24ee
AC
13137 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13138 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13139 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13140 i386-interix-nat.c and i386-interix-tdep.c. Rename
13141 m68klinux-nat.c and m68klinux-tdep.c. Rename
13142 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13143 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13144 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13145 * main.c (captured_main): Use xfree, not free.
13146
c170fb60
AC
131472003-01-16 Andrew Cagney <ac131313@redhat.com>
13148
13149 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13150 ID back using a parameter.
13151 * frame.c (frame_id_unwind): Update call.
13152 (frame_saved_regs_id_unwind): Update.
13153 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13154 * dummy-frame.h (struct frame_id): Add opaque declaration.
13155 (dummy_frame_id_unwind): Update declaration.
13156
867f3898
AC
131572003-01-15 Andrew Cagney <ac131313@redhat.com>
13158
13159 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13160
40622be8 131612003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13162
40622be8 13163 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13164
ae66c1fc
EZ
131652003-01-14 Elena Zannoni <ezannoni@redhat.com>
13166
997b089a 13167 Fix PR gdb/898
ae66c1fc
EZ
13168 * breakpoint.c (until_break_command): Add new argument. Use it to
13169 decide whether to stop only at the current frame or not.
13170 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13171 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13172 call.
13173 (advance_command): New function.
13174 (_initialize_infcmd): Update help string for 'until' command.
13175 Add new 'advance' command.
13176
a04257e6
DC
131772003-01-14 David Carlton <carlton@math.stanford.edu>
13178
13179 * linespec.c (decode_line_1): Normalize comments.
13180 (set_flags): Ditto.
13181 (locate_first_half): Ditto.
13182 (decode_compound): Ditto.
13183 (symtab_from_filename): Ditto.
13184 (decode_all_digits): Ditto.
13185 (decode_dollar): Ditto.
13186 (find_methods): Ditto.
13187 (find_toplevel_char): Ditto.
13188
1bac305b
AC
131892003-01-13 Andrew Cagney <ac131313@redhat.com>
13190
13191 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13192 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13193 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13194 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13195 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13196 * language.c, language.h, m32r-tdep.c: Update copyright.
13197 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13198 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13199 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13200 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13201 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13202 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13203
25caa7a8
EZ
132042003-01-13 Elena Zannoni <ezannoni@redhat.com>
13205
13206 * stabsread.h (process_later, resolve_cfront_continuation):
13207 Obsolete.
13208 Update copyright years.
13209 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13210 Update copyright year.
13211 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13212 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13213 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13214 Update copyright year.
13215 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13216 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13217 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13218 (parse_partial_symbols): Obsolete cfront support.
13219 * stabsread.c
13220 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13221 macros.
13222 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13223 read_cfront_baseclasses, read_cfront_member_functions,
13224 resolve_cfront_continuation,read_cfront_static_fields,
13225 copy_cfront_struct_fields): Obsolete functions.
13226 (define_symbol, read_one_struct_field): Obsolete cfront support.
13227 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13228 Update Copyright year.
13229
7789c6f5
EZ
132302003-01-13 Elena Zannoni <ezannoni@redhat.com>
13231
13232 * stack.c (print_frame_info, print_stack_frame_base_stub,
13233 print_stack_frame_base, show_and_print_stack_frame_stub,
13234 show_and_print_stack_frame, print_only_stack_frame_stub,
13235 print_only_stack_frame): Delete functions.
13236 (print_stack_frame_stub): Call print_frame_info instead of
13237 print_frame_info_base.
13238 (print_frame_info_base): Rename to print_frame_info.
13239 (backtrace_command_1): Call print_frame_info, instead of
13240 print_frame_info_base.
13241 (current_frame_command): Call print_stack_frame, instead of
13242 print_only_stack_frame.
13243 (frame_command): Call print_stack_frame, instead of
13244 show_and_print_stack_frame.
13245 (up_command): Ditto.
13246 (down_command): Ditto.
13247 * frame.h (print_only_stack_frame): Delete prototype.
13248 * infrun.c (normal_stop): Call print_stack_frame, instead of
13249 show_and_print_stack_frame.
13250 * thread.c (info_threads_command): Call print_stack_frame, instead
13251 of print_only_stack_frame.
13252
3f5a3016
AC
132532003-01-13 Andrew Cagney <ac131313@redhat.com>
13254
d99ba314
AC
13255 * README (Graphical interface to GDB): Update URL. Point at
13256 gdb/links/.
13257
3f5a3016
AC
13258 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13259 version match.
13260
083ae935
DJ
132612003-01-13 Daniel Jacobowitz <drow@mvista.com>
13262
13263 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13264 lines.
13265
5365276c
DJ
132662003-01-13 Daniel Jacobowitz <drow@mvista.com>
13267
13268 * thread-db.c (attach_thread): Prototype.
13269 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13270 thread information (ti), and valid flags (th_valid, ti_valid).
13271 (attach_thread): Move target_pid_to_str call to after the thread
13272 is added to GDB's list. Initialize the cache.
13273 (thread_get_info_callback, thread_db_map_id2thr)
13274 (thread_db_get_info): New functions.
13275 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13276 (thread_db_store_registers, thread_db_thread_alive)
13277 (thread_db_get_thread_local_address): Use them.
13278 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13279 of calling error() for threads in unknown state.
13280
13281 (clear_lwpid_callback): New function.
13282 (thread_db_resume): Use it to clear the cache.
13283
9fc30b6b
DJ
132842003-01-13 Daniel Jacobowitz <drow@mvista.com>
13285
13286 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13287 (resume_callback): Remove dead code.
13288
8f871025
AC
132892003-01-13 Andrew Cagney <ac131313@redhat.com>
13290
13291 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13292 predicate.
13293 * gdbarch.h, gdbarch.c: Regenerate.
13294 * stack.c (frame_info): Only initialize the saved registers when
13295 FRAME_INIT_SAVED_REGS_P.
13296 * frame.c (frame_saved_regs_register_unwind): Assert
13297 FRAME_INIT_SAVED_REGS_P.
13298 (deprecated_generic_get_saved_register): Ditto.
13299
3f565f1e
DJ
133002003-01-13 Daniel Jacobowitz <drow@mvista.com>
13301
13302 * source.c (openp): Squelch warning about "filename".
13303
072b1022
DJ
133042003-01-13 Daniel Jacobowitz <drow@mvista.com>
13305
13306 * source.c (openp): If the file does not exist don't necessarily
13307 search the path.
13308
973ccf8b
DJ
133092003-01-13 Daniel Jacobowitz <drow@mvista.com>
13310
13311 Fix PR gdb/872.
13312 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13313 (integer_types_same_name_p): New function.
13314 (rank_one_type): Use it.
13315 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13316
030292b7
DJ
133172003-01-13 Daniel Jacobowitz <drow@mvista.com>
13318
13319 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13320 variables.
13321 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13322 * configure.in: Add --with-sysroot.
13323 * configure: Regenerated.
13324 * main.c (gdb_sysroot): New variable.
13325 (captured_main): Initialize gdb_sysroot.
13326 * defs.h (gdb_sysroot): New extern declaration.
13327 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13328
afb5d334
MC
133292003-01-12 Michael Chastain <mec@shout.net>
13330
13331 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13332
751ceeb4
MC
133332003-01-12 Michael Chastain <mec@shout.net>
13334
13335 * top.c (print_gdb_version): Bump copyright year to 2003.
13336
94cd26f8
DC
133372003-01-12 David Carlton <carlton@bactrian.org>
13338
13339 * linespec.c (symtab_from_filename): Rename variable 's' to
13340 'file_symtab'.
13341
1ce79225
AC
133422003-01-12 Andrew Cagney <ac131313@redhat.com>
13343
13344 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13345 dummy frame.
13346 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13347
fa1fd571
AC
133482003-01-12 Andrew Cagney <ac131313@redhat.com>
13349
13350 * d10v-tdep.c: Include "gdb_assert.h".
13351 (d10v_store_return_value): Rewrite to match current interface.
13352 (d10v_extract_struct_value_address): Ditto.
13353 (d10v_extract_return_value): Ditto.
13354 (d10v_gdbarch_init): Set store_restore_value,
13355 extract_struct_value_address and extract_return_value.
13356
68b8d23e
JB
133572003-01-12 J. Brobecker <brobecker@gnat.com>
13358
13359 * hpread.c (set_namestring): New procedure replacing the
13360 SET_NAMESTRING macro.
13361 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13362 by calls to set_namestring.
13363
133642003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13365
13366 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13367 a compilation warning.
13368 (hpread_process_one_debug_symbol): Likewise.
13369
88d262ca
DC
133702003-01-10 David Carlton <carlton@math.stanford.edu>
13371
13372 * linespec.c (decode_line_1): Rename variable 's' to
13373 'file_symtab'.
13374 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13375 (decode_dollar): Ditto.
13376 (decode_variable): Ditto.
13377 (symbol_found): Ditto.
13378
86669319
MC
133792003-01-09 Michael Chastain <mec@shout.net>
13380
13381 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13382
616a9dc4
CV
133832003-01-07 Corinna Vinschen <vinschen@redhat.com>
13384
13385 * win32-nat.c (set_process_privilege): New function.
13386 (child_attach): Call set_process_privilege() to enable the
13387 SE_DEBUG_NAME user privilege if available in process token.
13388
3269bcfa
JB
133892003-01-10 J. Brobecker <brobecker@gnat.com>
13390
13391 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13392 compilation error in the previous revision.
13393
2b0ee454
DC
133942003-01-09 David Carlton <carlton@math.stanford.edu>
13395
13396 * linespec.c: Update copyright.
13397
b3ba1b44
DJ
133982003-01-09 Daniel Jacobowitz <drow@mvista.com>
13399
13400 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13401 than inferior_ptid.
13402 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13403
4ef3f3be
AC
134042003-01-09 Andrew Cagney <ac131313@redhat.com>
13405
479ab5a0
AC
13406 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13407 Update comments.
13408 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13409 (frame_saved_regs_zalloc): Update.
13410 (frame_saved_regs_register_unwind): Update.
13411 (create_new_frame): Update.
13412 (get_prev_frame): Update.
13413 (frame_extra_info_zalloc): Update.
13414 (deprecated_get_frame_saved_regs): Update.
13415 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13416 * cris-tdep.c: Update comment.
13417
bde58177
AC
13418 * somsolib.h: Fix function indentation.
13419 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13420 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13421 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13422 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13423 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13424
4ef3f3be
AC
13425 * infrun.c (follow_fork): Use ISO C definition.
13426 * expprint.c (print_subexp): Use xfree instead of free.
13427 * charset.c: Include "gdb_string.h" instead of <string.h>.
13428 (register_iconv_charsets): Use ISO C definition.
13429 (host_charset, target_charset): Ditto.
13430 * Makefile.in (charset.o): Update dependencies.
13431 (mi-cmd-env.o): Update dependencies.
13432
1c615f7a
AC
134332003-01-08 Andrew Cagney <cagney@redhat.com>
13434
13435 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13436 get_frame_base.
13437
c9a1dc08
AC
134382003-01-08 Andrew Cagney <ac131313@redhat.com>
13439
13440 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13441 build directories. Save edited gdb output in Mbuild.log. If a
13442 build fails, remove any final GDB executable.
13443
dbad9d94
AC
134442003-01-08 Andrew Cagney <ac131313@redhat.com>
13445
13446 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13447 replacing hex constants with function names and stripping leading
13448 file name directory prefixes.
13449
8d357cca
AC
134502003-01-08 Andrew Cagney <cagney@redhat.com>
13451
13452 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13453 get_frame_base.
13454
bca02a8a
DC
134552003-01-08 David Carlton <carlton@math.stanford.edu>
13456
13457 * linespec.c (decode_line_1): Move code into decode_variable.
13458 (decode_variable): New function.
13459
7f8ab3a0
AC
134602003-01-08 Andrew Cagney <ac131313@redhat.com>
13461
13462 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13463
7b5849cc
AC
134642003-01-08 Andrew Cagney <cagney@redhat.com>
13465
13466 * cris-tdep.c (cris_frame_init_saved_regs): Use
13467 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13468 saved_regs buffer.
13469 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13470 (sh64_nofp_frame_init_saved_regs): Ditto.
13471 (sh_fp_frame_init_saved_regs): Ditto.
13472 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13473 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13474 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13475 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13476
72a5efb3
DJ
134772003-01-08 Daniel Jacobowitz <drow@mvista.com>
13478
13479 * minsyms.c (lookup_minimal_symbol): Update comment.
13480 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13481 (lookup_minimal_symbol_solib_trampoline): Likewise.
13482
11c02a10
AC
134832003-01-08 Andrew Cagney <cagney@redhat.com>
13484
aab3ea25
AC
13485 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13486 frame_relative_level.
13487
da50a4b7
AC
13488 * alpha-tdep.c: Use get_frame_extra_info.
13489 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13490 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13491 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13492 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13493
11c02a10
AC
13494 * alpha-tdep.c: Use get_next_frame.
13495 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13496 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13497 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13498 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13499 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13500 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13501 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13502
1e2330ba
AC
135032003-01-07 Andrew Cagney <cagney@redhat.com>
13504
13505 * alpha-tdep.c: Use get_frame_base.
13506 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13507 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13508 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13509 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13510 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13511 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13512 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13513 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13514
2d75187b
AC
135152003-01-07 Andrew Cagney <cagney@redhat.com>
13516
13517 * frame.c (deprecated_get_frame_context): New function.
13518 (deprecated_set_frame_context): New function.
13519 * frame.h (deprecated_get_frame_context): Declare.
13520 (deprecated_set_frame_context): Declare.
13521 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13522 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13523
483d36b2
AC
135242003-01-07 Andrew Cagney <cagney@redhat.com>
13525
13526 * frame.c (deprecated_set_frame_next_hack): New function.
13527 (deprecated_set_frame_prev_hack): New function.
13528 * frame.h (deprecated_set_frame_next_hack): Declare.
13529 (deprecated_set_frame_prev_hack): Declare.
13530 * mcore-tdep.c (analyze_dummy_frame): Use
13531 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13532 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13533
14e91ac5
DC
135342003-01-07 David Carlton <carlton@math.stanford.edu>
13535
13536 * linespec.c (decode_line_1): Move code into decode_dollar.
13537 (decode_dollar): New function.
13538
b0c6b05c
AC
135392003-01-07 Andrew Cagney <cagney@redhat.com>
13540
13541 * arm-tdep.c (arm_init_extra_frame_info): Use
13542 deprecated_update_frame_base_hack.
13543 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13544 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13545 (fix_frame_pointer): Ditto.
13546 (mn10300_analyze_prologue): Ditto.
13547
a00a19e9
AC
135482003-01-07 Andrew Cagney <cagney@redhat.com>
13549
13550 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13551 extra_info using frame_extra_info_zalloc.
13552 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13553 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13554 (sh64_init_extra_frame_info): Ditto.
13555 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13556 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13557 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13558 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13559 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13560 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13561 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13562 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13563 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13564 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13565 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13566 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13567
13568 * mn10300-tdep.c (analyze_dummy_frame): Use
13569 deprecated_set_frame_extra_info_hack.
13570 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13571
1fb4c65b
JB
135722003-01-07 J. Brobecker <brobecker@gnat.com>
13573
13574 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13575 class is not scText. These do not define "real" procedures.
13576 (parse_partial_symbols): Likewise.
13577
9fe7d6bf
MS
135782003-01-06 Michael Snyder <msnyder@redhat.com>
13579
13580 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13581
f6c609c4
AC
135822003-01-06 Andrew Cagney <ac131313@redhat.com>
13583
13584 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13585 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13586 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13587 deprecated_frame_xmalloc_with_cleanup.
13588 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13589 deprecated_frame_xmalloc.
13590 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13591 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13592
d995ff4b
AC
135932003-01-06 Andrew Cagney <cagney@redhat.com>
13594
84dc46cb
AC
13595 * x86-64-linux-tdep.c: Include "osabi.h".
13596 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13597
d995ff4b
AC
13598 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13599
66140c26
AC
136002003-01-06 Andrew Cagney <cagney@redhat.com>
13601
13602 * MAINTAINERS (Target Instruction Set Architectures): Update
13603 arm-elf. Can be built with -Werror, has been multiarched.
13604
13605 * value.h (unpack_long): Make buffer parameter constant.
13606 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13607 * scm-lang.h (scm_parse): Ditto.
13608 * defs.h (extract_typed_address, extract_address): Ditto.
13609 (extract_long_unsigned_integer): Ditto.
13610 * inferior.h (unsigned_pointer_to_address): Ditto.
13611 (signed_pointer_to_address): Ditto.
13612 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13613 * gdbarch.h, gdbarch.c: Regenerate.
13614 * findvar.c (extract_long_unsigned_integer): Update.
13615 (extract_address): Update.
13616 (extract_typed_address): Update.
13617 (unsigned_pointer_to_address): Update.
13618 * values.c (unpack_long): Update.
13619 (unpack_double): Update.
13620 (unpack_pointer): Update.
13621 (unpack_field_as_long): Update.
13622 * d10v-tdep.c (d10v_pointer_to_address): Update.
13623 * avr-tdep.c (avr_pointer_to_address): Update.
13624 * scm-lang.c (scm_unpack): Update.
13625 * findvar.c (signed_pointer_to_address): Update.
13626
b089b3da
ML
136272003-01-06 Michal Ludvig <mludvig@suse.cz>
13628
8ffd9b1b 13629 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13630 since it is in i386-tdep.c.
13631
aff87235
JB
136322003-01-06 J. Brobecker <brobecker@gnat.com>
13633
13634 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13635 failure introduced in the previous change.
13636
34f5e845
MC
136372003-01-05 Michael Chastain <mec@shout.net>
13638
13639 * README: Remove references to deleted remote-*.c files:
13640 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13641 remote-nrom.c, remote-os9k.c, remote-udi.c.
13642
28bcfd30
MK
136432003-01-05 Mark Kettenis <kettenis@gnu.org>
13644
13645 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13646 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13647 i386_get_longjmp_target.
13648
15a5b3ee
AC
136492003-01-05 Andrew Cagney <ac131313@redhat.com>
13650
13651 * arm-tdep.c (prologue_cache): Change to a pointer.
13652 (_initialize_arm_tdep): Allocate prologue_cache.
13653 (check_prologue_cache): Update.
13654 (save_prologue_cache): Update.
13655 (arm_gdbarch_init): Update.
13656
c263362b
DJ
136572003-01-04 Daniel Jacobowitz <drow@mvista.com>
13658
13659 * stabsread.c (update_method_name_from_physname): Call complaint()
13660 instead of error.
13661
51603483
DJ
136622003-01-04 Daniel Jacobowitz <drow@mvista.com>
13663
13664 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13665 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13666 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13667
13668 * blockframe.c: Include "gdbcmd.h" and "command.h".
13669 (backtrace_below_main): New variable.
13670 (file_frame_chain_valid, func_frame_chain_valid)
13671 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13672 (generic_func_frame_chain_valid): Remove functions.
13673 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13674 (_initialize_blockframe): New function.
13675 * Makefile.in (blockframe.o): Update dependencies.
13676 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13677 comment. Call frame_chain_valid ().
13678 * frame.h: Remove old prototypes. Add prototype for
13679 frame_chain_valid and update comments to match.
13680 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13681 Remove old comment.
13682 * gdbarch.h: Regenerated.
13683 * gdbarch.c: Regenerated.
13684
13685 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13686 set_gdbarch_frame_chain_valid.
13687 * avr-tdep.c (avr_gdbarch_init): Likewise.
13688 * cris-tdep.c (cris_gdbarch_init): Likewise.
13689 * frv-tdep.c (frv_gdbarch_init): Likewise.
13690 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13691 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13692 (i386_nw_init_abi): Likewise.
13693 (i386_gdbarch_init): Likewise.
13694 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13696 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13697 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13698 * mips-tdep.c (mips_gdbarch_init): Likewise.
13699 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13700 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13701 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13702 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13703 * s390-tdep.c (s390_gdbarch_init): Likewise.
13704 * sh-tdep.c (sh_gdbarch_init): Likewise.
13705 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13706 * v850-tdep.c (v850_gdbarch_init): Likewise.
13707 * vax-tdep.c (vax_gdbarch_init): Likewise.
13708 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13709
13710 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13711 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13712 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13713 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13714 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13715 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13716 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13717 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13718
b00a8037
DJ
137192002-01-04 Daniel Jacobowitz <drow@mvista.com>
13720
13721 * Makefile.in (acconfig_h): Remove incorrect macro.
13722 (config_h): Define.
13723 (osabi.o): Update dependencies.
13724 * configure.tgt: Set gdb_osabi based on target triplet.
13725 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13726 * configure: Regenerated.
13727 * config.in: Regenerated.
13728 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13729 (GDB_OSABI_DEFAULT): Define if not already defined.
13730 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13731 (set_osabi_string): New variables.
13732 (gdbarch_register_osabi): Add new OS ABI to
13733 gdb_osabi_available_names.
13734 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13735 (set_osabi, show_osabi): New functions.
13736 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13737
4be87837
DJ
137382003-01-04 Daniel Jacobowitz <drow@mvista.com>
13739
13740 * arch-utils.c (gdbarch_info_init): Set osabi to
13741 GDB_OSABI_UNINITIALIZED.
13742 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13743 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13744 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13745 * gdbarch.c: Regenerated.
13746 * gdbarch.h: Regenerated.
13747 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13748 there's no BFD.
13749 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13750 * osabi.h (enum gdb_osabi): Move to defs.h.
13751 (gdbarch_init_osabi): Update prototype.
13752 * defs.h (enum gdb_osabi): Moved here.
13753 * Makefile.in: Update dependencies.
13754
13755 * alpha-tdep.h: Don't include "osabi.h".
13756 (struct gdbarch_tdep): Remove osabi member.
13757 * alpha-tdep.c: Include "osabi.h".
13758 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13759 iterate over arches. Update call to gdbarch_init_osabi.
13760 (alpha_dump_tdep): Don't dump osabi.
13761 * alpha-linux-tdep.c: Include "osabi.h".
13762 * alpha-osf1-tdep.c: Include "osabi.h".
13763 * alphafbsd-tdep.c: Include "osabi.h".
13764 * alphanbsd-tdep.c: Include "osabi.h".
13765
13766 * arm-tdep.h: Don't include "osabi.h".
13767 (struct gdbarch_tdep): Remove osabi member.
13768 * arm-tdep.c: Include "osabi.h".
13769 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13770 iterate over arches. Update call to gdbarch_init_osabi.
13771 (arm_dump_tdep): Don't dump osabi.
13772 * arm-linux-tdep.c: Include "osabi.h".
13773 * armnbsd-tdep.c: Include "osabi.h".
13774
13775 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13776 Update call to gdbarch_init_osabi.
13777
13778 * i386-tdep.h: Don't include "osabi.h".
13779 (struct gdbarch_tdep): Remove osabi member.
13780 * i386-tdep.c: Include "osabi.h".
13781 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13782 iterate over arches. Update call to gdbarch_init_osabi.
13783 (i386_dump_tdep): Don't dump osabi.
13784 * i386-linux-tdep.c: Include "osabi.h".
13785 * i386-sol2-tdep.c: Include "osabi.h".
13786 * i386bsd-tdep.c: Include "osabi.h".
13787 * i386gnu-tdep.c: Include "osabi.h".
13788 * i386ly-tdep.c: Include "osabi.h".
13789 * i386nbsd-tdep.c: Include "osabi.h".
13790 * i386obsd-tdep.c: Include "osabi.h".
13791
13792 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13793 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13794 check osabi when iterating over arches. Update call to
13795 gdbarch_init_osabi.
13796 (mips_dump_tdep): Don't dump osabi.
13797
13798 * ns32k-tdep.h: Don't include "osabi.h".
13799 (struct gdbarch_tdep): Remove.
13800 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13801 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13802 allocate tdep. Update call to gdbarch_init_osabi.
13803 (ns32k_dump_tdep): Remove.
13804 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13805 * ns32knbsd-tdep.c: Include "osabi.h".
13806
13807 * ppc-tdep.h: Don't include "osabi.h".
13808 (struct gdbarch_tdep): Remove osabi member.
13809 * rs6000-tdep.c: Include "osabi.h".
13810 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13811 osabi when iterating over arches. Update call to
13812 gdbarch_init_osabi.
13813 (rs6000_dump_tdep): Don't dump osabi.
13814 * ppc-linux-tdep.c: Include "osabi.h".
13815 * ppcnbsd-tdep.c: Include "osabi.h".
13816
13817 * sh-tdep.h: Don't include "osabi.h".
13818 (struct gdbarch_tdep): Remove osabi member.
13819 * sh-tdep.c: Include "osabi.h".
13820 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13821 iterate over arches. Update call to gdbarch_init_osabi.
13822 (sh_dump_tdep): Don't dump osabi.
13823 * shnbsd-tdep.c: Include "osabi.h".
13824
13825 * sparc-tdep.c: Include "osabi.h".
13826 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13827 iterate over arches. Update call to gdbarch_init_osabi.
13828 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13829 tdep structure.
13830
13831 * vax-tdep.h: Don't include "osabi.h".
13832 (struct gdbarch_tdep): Remove.
13833 * vax-tdep.c: Include "osabi.h".
13834 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13835 iterate over arches. Don't allocate tdep. Update call
13836 to gdbarch_init_osabi.
13837 (vax_dump_tdep): Remove.
13838 (_initialize_vax_tdep): Update call to gdbarch_register.
13839
a881cf8e
DJ
138402003-01-04 Daniel Jacobowitz <drow@mvista.com>
13841
13842 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13843 entirely.
13844 (breakpoint_re_set_one): Don't fetch the value for a disabled
13845 watchpoint.
13846
1e698235
DJ
138472003-01-04 Daniel Jacobowitz <drow@mvista.com>
13848
13849 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13850 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13851 (COERCE_FLOAT_TO_DOUBLE): Remove.
13852 * gdbarch.c: Regenerate.
13853 * gdbarch.h: Regenerate.
13854 * Makefile.in: Remove value_h from gdbarch_h.
13855 * valops.c (coerce_float_to_double): New variable.
13856 (default_coerce_float_to_double): Remove.
13857 (standard_coerce_float_to_double): Remove.
13858 (value_arg_coerce): Use coerce_float_to_double.
13859 (_initialize_valops): Add "set coerce-float-to-double".
13860 * value.h (default_coerce_float_to_double): Remove prototype.
13861 (standard_coerce_float_to_double): Remove prototype.
13862
13863 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13864 prototyped.
13865 * mdebugread.c (parse_symbol): Likewise.
13866 * stabsread.c (define_symbol): Mark all functions as prototyped.
13867
13868 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13869 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13870 set_gdbarch_coerce_float_to_double.
13871 * arm-tdep.c (arm_gdbarch_init): Likewise.
13872 * frv-tdep.c (frv_gdbarch_init): Likewise.
13873 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13874 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13875 * mips-tdep.c (mips_gdbarch_init): Likewise.
13876 (mips_coerce_float_to_double): Remove.
13877 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13878 (rs6000_coerce_float_to_double): Remove.
13879 * s390-tdep.c (s390_gdbarch_init): Likewise.
13880 * sh-tdep.c (sh_gdbarch_init): Likewise.
13881 (sh_coerce_float_to_double): Remove.
13882 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13883 (sparc_coerce_float_to_double): Remove.
13884 * v850-tdep.c (v850_gdbarch_init): Likewise.
13885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13886 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13887 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13888 (hppa_coerce_float_to_double): Remove prototype.
13889 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13890
f436a26a
DJ
138912003-01-04 Daniel Jacobowitz <drow@mvista.com>
13892
13893 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13894
248f8055
DJ
138952003-01-04 Daniel Jacobowitz <drow@mvista.com>
13896
13897 Suggested by Stewart Brown <sb24@avaya.com>:
13898 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13899 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13900 (c_type_print_varspec_suffix): Likewise.
13901
72cfdc76
MK
139022003-01-04 Mark Kettenis <kettenis@gnu.org>
13903
bfd260bb
MK
13904 * configure.in: Don't set and AC_SUBST SUBDIRS.
13905 * configure: Regenerated.
13906
72cfdc76
MK
13907 * configure.in: Remove code dealing with shared libraries.
13908 * Makefile.in: Remove HLDFLAGS and HLDENV.
13909 * configure: Regenerated.
13910
c8b8a898
AC
139112003-01-04 Andrew Cagney <ac131313@redhat.com>
13912
13913 * frame.c (deprecated_frame_xmalloc): New function.
13914 (deprecated_set_frame_saved_regs_hack): New function.
13915 (deprecated_set_frame_extra_info_hack): New function.
13916 * frame.h (deprecated_frame_xmalloc): Declare.
13917 (deprecated_set_frame_saved_regs_hack): Declare.
13918 (deprecated_set_frame_extra_info_hack): Declare.
13919
14abd0fb
MK
139202003-01-04 Mark Kettenis <kettenis@gnu.org>
13921
8ee53726
MK
13922 * configure.in: Move code that provides the --enable-gdbtk option
13923 right after the code that handles the --enable-tui option, and
13924 polish it somewhat.
13925 * configure: Regenerated.
13926
14abd0fb
MK
13927 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13928 AC_CHECK_FUNCS and remove the old check for pread64.
13929 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13930 * acconfig.h (_GNU_SOURCE): Add.
13931 (HAVE_PREAD64): Remove.
13932 * configure, aclocal.m4, config.in: Regenerated.
13933
b2fb4676
AC
139342003-01-03 Andrew Cagney <ac131313@redhat.com>
13935
13936 * alpha-tdep.c: Use get_frame_saved_regs.
13937 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13938 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13939 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13940 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13941 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13942
8dcde887
MK
139432003-01-03 Mark Kettenis <kettenis@gnu.org>
13944
13945 * configure.in: Remove all use of the SUBDIRS variable; add
13946 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13947 code providing the --enable-multi-ice option, and move it right in
13948 front of the code that checks whether gdbserver is supported.
13949 Polish that too.
13950 * configure: Regenerated.
13951 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13952 @SUBDIRS@.
13953
8ccd593b
AC
139542003-01-03 Andrew Cagney <cagney@redhat.com>
13955
13956 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13957 * avr-tdep.c, cris-tdep.c: Ditto.
13958 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13959 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 13960
91151a06
MK
139612003-01-03 Mark Kettenis <kettenis@gnu.org>
13962
13963 * configure.in: Remove --enable-netrom option.
13964 * configure: Regenerated.
13965
8fe84d01
MK
139662003-01-03 Mark Kettenis <kettenis@gnu.org>
13967
13968 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13969 declaration for `struct re_pattern_buffer' instead.
13970 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13971
f0394be6
JB
139722003-01-03 J. Brobecker <brobecker@gnat.com>
13973
13974 * mdebugread.c (parse_symbol): Count until the stEnd matching
13975 the structure name.
13976
27e9bf90
MK
139772003-01-02 Mark Kettenis <kettenis@gnu.org>
13978
93d331ba
MK
13979 * configure.in: Remove --with-cpu option.
13980 subscripts. Remove evil changequotes here.
13981 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13982 * config.in, configure: Regenerated.
8ffd9b1b 13983
27e9bf90
MK
13984 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13985 * configure.in: Cleanup section that sources GDB and BFD configure
13986 subscripts. Remove evil changequotes here.
13987 * config.in, configure: Regenerated.
13988
50abf9e5
AC
139892003-01-02 Andrew Cagney <ac131313@redhat.com>
13990
13991 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13992 frame accessor methods.
13993 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13994 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13995 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13996 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13997 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13998 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13999 * z8k-tdep.c: Ditto.
8ffd9b1b 14000
287c1a40
MK
140012003-01-02 Mark Kettenis <kettenis@gnu.org>
14002
f5dbc56d
MK
14003 * configure.in: Remove UI_OUT configuration code.
14004 * ada-lang.c: Update assuming UI_OUT is always true.
14005 * Makefile.in (UIOUT_CFLAGS): Remove.
14006 * configure: Regenerated.
14007 * TODO: Remove blurb about elimination of -DUI_OUT.
14008
627af7ea
MK
14009 * configure.in: Move code that provides the --enable-gdbcli,
14010 --enable-gdbmi options right before the code that handles the
14011 --enable-tui option. Polish a bit.
14012 * configure: Regenerated.
14013
06825bd1
MK
14014 * configure.in: Rewrite check for GNU regex and the
14015 --without-included regex option, and move it into the "Checks for
14016 library functions" section. This makes us use the system regex
14017 again by default on systems with version 2 of the GNU C library.
14018 This was apparently broken.
14019 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14020 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14021 * config.in, configure: Regenerated.
14022
287c1a40
MK
14023 * configure.in: Move code that provides the --enable-tui option
14024 before the "Checks for libraries" section. Polish the code
14025 somewhat and set need_curses to yes if we build the TUI. Rewrite
14026 code that looks for a library providing termcap functionality to
14027 match more closely what's done in the Readline library, and move
14028 it into to the "Checks for libraries" section.
14029 * configure: Regenerated.
14030 * Makefile.in (TERMCAP): Remove variable.
14031 * config/i386/go32.mh (TERMCAP): Remove variable.
14032
684e56bf
AC
140332003-01-02 Andrew Cagney <ac131313@redhat.com>
14034
14035 * MAINTAINERS: Mention gdb_mbuild.sh.
14036 * gdb_mbuild.sh: Rewrite.
14037
e1ea1d75
MK
140382003-01-02 Mark Kettenis <kettenis@gnu.org>
14039
14040 * configure.in: Fix typo in last change.
14041 * config.in, configure: Regenerated.
14042
1b831c93
AC
140432003-01-02 Andrew Cagney <ac131313@redhat.com>
14044
14045 * valarith.c (value_binop): Delete obsolete code and comments.
14046 * configure.host: Ditto.
14047 * buildsym.h (make_blockvector): Ditto.
14048 * buildsym.c (make_blockvector): Ditto.
14049 * defs.h (enum language): Ditto.
14050 (chill_demangle): Ditto.
14051 * elfread.c (elf_symtab_read): Ditto.
14052 * dwarfread.c (CHILL_PRODUCER): Ditto.
14053 (set_cu_language): Ditto.
14054 (handle_producer): Ditto.
14055 * expprint.c (print_subexp): Ditto.
14056 * gdbtypes.c (chill_varying_type): Ditto.
14057 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14058 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14059 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14060 (chill_varying_type): Ditto.
14061 * language.h (_LANG_chill): Ditto.
14062 * language.c (binop_result_type, integral_type): Ditto.
14063 (character_type, string_type, structured_type): Ditto.
14064 (lang_bool_type, binop_type_check): Ditto.
14065 * stabsread.h (os9k_stabs): Ditto.
14066 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14067 (define_symbol, read_type, read_struct_fields): Ditto.
14068 (read_array_type, read_enum_type, read_huge_number): Ditto.
14069 (read_range_type, start_stabs): Ditto.
14070 * symfile.c (init_filename_language_table): Ditto.
14071 (add_psymbol_with_dem_name_to_list): Ditto.
14072 * symtab.c (symbol_init_language_specific): Ditto.
14073 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14074 * symtab.h (struct general_symbol_info): Ditto.
14075 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14076 * typeprint.c (typedef_print): Ditto.
14077 * utils.c (fprintf_symbol_filtered): Ditto.
14078 * valops.c (value_cast, search_struct_field, value_slice): Delete
14079 obsolete code.
14080 (varying_to_slice): Delete function.
14081 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14082 (varying_to_slice): Delete declaration.
14083 * MAINTAINERS: Update.
14084
8bb2c122
MK
140852003-01-02 Mark Kettenis <kettenis@gnu.org>
14086
97bf5e38
MK
14087 * configure.in: Reorganize "Checks for library functions section"
14088 a bit. Remove check for `btowc' and `isascii' functions.
14089 * configure: Regenerated.
14090
5ee754fc
MK
14091 * acconfig.h (_MSE_INT_H): Remove.
14092 * configure.in: Create "Checks for header files" section, and move
14093 appropriate tests there. Don't check for objlist.h, wchar.h,
14094 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14095 misdetection fix. Also add "Checks for types", "Checks for
14096 compiler characteristics" and "Checks for library functions"
14097 sections.
14098 * config.in, configure: Regenerated.
14099
8bb2c122
MK
14100 * configure.in: Create "Checks for programs" section, and move
14101 appropriate tests there.
14102
9a156167
MK
141032003-01-01 Mark Kettenis <kettenis@gnu.org>
14104
14105 * configure.in: Create "Checks for libraries" section, and move
14106 appropriate tests there. Cleanup check for wctype in libw. Use
14107 AC_SEARCH_LIBS to see whether we need libsocket.
14108 * configure: Regenerated.
14109
a80e2bcb 14110For older changes see ChangeLog-2002
c906108c
SS
14111\f
14112Local Variables:
14113mode: change-log
14114left-margin: 8
14115fill-column: 74
14116version-control: never
14117End:
This page took 1.157596 seconds and 4 git commands to generate.