2003-11-10 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b60eb90d
AC
12003-11-10 Andrew Cagney <cagney@redhat.com>
2
8aa91c1e
AC
3 * target.h (struct target_ops): Order xfer buffer parameters "read
4 write" not "write read".
5 * bfd-target.c (target_bfd_xfer_partial): Update.
6 * remote.c (remote_xfer_partial): Update.
7 * inftarg.c (child_xfer_partial): Update.
8 * target.c (default_xfer_partial): Update.
9 (target_read_partial, target_write_partial): Update.
10 (debug_to_xfer_partial): Update.
11
100bcc3f
AC
12 * arch-utils.h, arch-utils.c: Fix typo in comment.
13
b60eb90d
AC
14 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
15 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
16 (set_gdbarch_from_file): Call
17 "deprecated_current_gdbarch_select_hack".
b60eb90d 18
bf922ad9
AC
192003-11-09 Andrew Cagney <cagney@redhat.com>
20
ebdba546
AC
21 * arch-utils.c (gdbarch_update_p): New function.
22 * gdbarch.sh (gdbarch_update_p): Delete function.
23 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 24 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
25 * gdbarch.c: Re-generate.
26
7de2341d
AC
27 * gdbarch.sh (clear_gdbarch_swap): Delete function.
28 (swapout_gdbarch_swap): Delete function.
29 (swapin_gdbarch_swap): Delete function.
30 (init_gdbarch_swap): Delete function.
31 (initialize_non_multiarch): Delete function.
32 (current_gdbarch_swap_in_hack): New function.
33 (current_gdbarch_swap_out_hack): New function.
34 (current_gdbarch_swap_init_hack): New function.
35 * gdbarch.c: Re-generate.
36
db446970
AC
37 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
38 parameter to "current_gdbarch". Add comment explaining why.
39 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
40 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
41 * gdbarch.c: Re-generate.
42
341e3d11
AC
43 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
44 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
45 * config/s390/xm-linux.h: Delete file.
46 * config/m88k/xm-delta88v4.h: Delete stray.
47
bf922ad9
AC
48 * Makefile.in (arch-utils.o): Update dependencies.
49 * arch-utils.c: Include "osabi.h".
50 (gdbarch_info_fill): New function.
51 * arch-utils.h (gdbarch_info_fill): Declare.
52 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
53 * gdbarch.c: Re-generate.
54
a3640c75
MK
552003-11-09 Mark Kettenis <kettenis@gnu.org>
56 David S. Miller <davem@redhat.com>
57
58 * glibc-tdep.c, glibc-tdep.h: New files.
59 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
60 * config/i386/linux.mt (TDEPFILES): Likewise.
61 * i386-linux-tdep.c (glibc-tdep.h): Include.
62 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
63 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
64 * arm-linux-tdep.c (glibc-tdep.h): Include.
65 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
66 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
67 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
68 (glibc_tdep_h): Define.
69 (glibc-tdep.o): Add dependencies.
70 (arm-linux-tdep.o): Update dependencies.
71 (i386-linux-tdep.o): Likewise.
72
e60e0ab2
AC
732003-11-09 Andrew Cagney <cagney@redhat.com>
74
75 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
76 * config/mips/nm-irix6.h: Delete file.
77 * config/mips/nm-linux.h: Update copyright.
78 (MIPS_GNULINUX_TARGET): Delete macro.
79 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
80 * config/mips/xm-irix6.h: Delete file.
81 * config/mips/linux.mh (XM_FILE): Delete definition.
82 * config/mips/xm-linux.h: Delete file.
83
181555e9
AC
842003-11-09 Andrew Cagney <cagney@redhat.com>
85
86 * d10v-tdep.c (d10v_return_value): New function.
87 (d10v_use_struct_convention): Delete function.
88 (d10v_store_return_value): Delete function.
89 (d10v_extract_struct_value_address): Delete function.
90 (d10v_gdbarch_init): Set "return_value" instead of
91 "extract_return_value", "store_return_value",
92 "extract_struct_value_address", and "use_struct_convention".
93 (RET1_REGNUM): Delete const.
94
dea0c52f
MK
952003-11-09 Mark Kettenis <kettenis@gnu.org>
96
97 From David S. Miller <davem@redhat.com>:
98 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
99 * gdbarch.c, gdbarch.h: Regenerated.
100 * arch-utils.c (generic_skip_solib_resolver): New function.
101 * arch-utils.h (generic_skip_solib_resolver): New prototype.
102 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
103
6314a349
AC
1042003-11-07 Andrew Cagney <cagney@redhat.com>
105
106 * top.c (print_gdb_version): Replace STREQ with strcmp.
107 * valops.c (value_struct_elt_for_reference): Ditto.
108 (value_struct_elt_for_reference): Ditto.
109 * symtab.c (gdb_mangle_name): Ditto.
110 (find_line_symtab): Ditto.
111 * symmisc.c (maintenance_print_symbols): Ditto.
112 * symfile.c (symbol_file_command): Ditto.
113 * stabsread.c (define_symbol, read_type): Ditto.
114 (cleanup_undefined_types, scan_file_globals): Ditto.
115 * solib.c (solib_map_sections): Ditto.
116 * solib-svr4.c (bfd_lookup_symbol): Ditto.
117 * rs6000-tdep.c (skip_prologue): Ditto.
118 * p-valprint.c (pascal_value_print): Ditto.
119 (pascal_object_is_vtbl_ptr_type): Ditto.
120 * objfiles.c (in_plt_section): Ditto.
121 * minsyms.c (lookup_minimal_symbol): Ditto.
122 (compact_minimal_symbols): Ditto.
123 (find_solib_trampoline_target): Ditto.
124 * mdebugread.c (parse_type): Ditto.
125 * language.c (set_language_command): Ditto.
126 (set_type_command, set_range_command): Ditto.
127 * f-lang.c (add_common_block): Ditto.
128 (add_common_block): Ditto.
129 (find_first_common_named): Ditto.
130 (patch_all_commons_by_name): Ditto.
131 * elfread.c (elf_locate_sections): Ditto.
132 (elf_locate_sections): Ditto.
133 (elfstab_offset_sections): Ditto.
134 * dwarf2read.c (dwarf2_locate_sections): Ditto.
135 * dbxread.c (add_old_header_file): Ditto.
136 (find_corresponding_bincl_psymtab): Ditto.
137 (read_dbx_symtab, process_one_symbol): Ditto.
138 * coffread.c (patch_opaque_types): Ditto.
139 * cli/cli-decode.c (delete_cmd): Ditto.
140 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
141 * c-typeprint.c (c_type_print_base): Ditto.
142 * breakpoint.c (bpstat_stop_status): Ditto.
143 (clear_command, breakpoint_re_set_one): Ditto.
144
49df298f
AC
1452003-11-07 Andrew Cagney <cagney@redhat.com>
146
147 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
148 * bcache.c (struct bstring): Make "length" an unsigned short, add
149 "half_hash".
150 (struct bcache): Add "half_hash_error_count".
151 (bcache): Compute and save the "half_hash". Compare the
152 "half_hash" before comparing the length. Update
153 half_hash_error_count.
154
f168dd80
AC
1552003-11-07 Andrew Cagney <cagney@redhat.com>
156
157 * inftarg.c (child_xfer_partial): New function
158 (init_child_ops): Set "to_xfer_partial".
159
05580c65
AC
1602003-11-07 Andrew Cagney <cagney@redhat.com>
161
162 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
163 set "return_value" instead of "use_struct_convention".
164 (ppc_linux_use_struct_convention): Delete function.
165 (ppc_linux_return_value): New function.
166 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
167 (ppc_sysv_abi_broken_return_value): New function.
168 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
169 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
170 static.
171 (ppc_sysv_abi_extract_return_value): Delete function.
172 (ppc_sysv_abi_broken_extract_return_value): Delete function.
173 (ppc_sysv_abi_store_return_value): Delete function.
174 (ppc_sysv_abi_broken_store_return_value): Delete function.
175 (ppc_sysv_abi_use_struct_convention): Delete function.
176 (ppc64_sysv_abi_use_struct_convention): Delete function.
177 (ppc64_sysv_abi_extract_return_value): Delete function.
178 (ppc64_sysv_abi_store_return_value): Delete function.
179 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
180 (ppcnbsd_init_abi): Set "return_value", instead of
181 "use_struct_convention", "extract_return_value", and
182 "store_return_value".
183 (ppcnbsd_use_struct_convention): Delete function.
184 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
185 (ppc_sysv_abi_return_value): Declare.
186 (ppc_sysv_abi_broken_return_value): Declare.
187 (ppc_sysv_abi_use_struct_convention): Delete.
188 (ppc_sysv_abi_store_return_value): Delete.
189 (ppc_sysv_abi_extract_return_value): Delete.
190 (ppc_sysv_abi_broken_store_return_value): Delete.
191 (ppc_sysv_abi_broken_extract_return_value): Delete.
192 (ppc64_sysv_abi_use_struct_convention): Delete.
193 (ppc64_sysv_abi_extract_return_value): Delete.
194 (ppc64_sysv_abi_store_return_value): Delete.
195 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
196 set "return_value" instead of "extract_return_value",
197 "store_return_value", and "use_struct_convention".
198
1763fba4
MK
1992003-11-07 Mark Kettenis <kettenis@gnu.org>
200
22c7ba1a
MK
201 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
202
1763fba4
MK
203 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
204 fscanf.
205
fc07cc2d
MK
2062003-11-07 Mark Kettenis <kettenis@gnu.org>
207
208 * fbsd-proc.c: Fix formatting.
209
6a748db6
KB
2102003-11-06 Kevin Buettner <kevinb@redhat.com>
211
212 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
213 Define.
214 (new_variant): Set name for iacc0_regnum.
215 (frv_register_name): Accommodate pseudo-registers.
216 (frv_register_type): Add case for iacc0_regnum.
217 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
218 (frv_gdbarch_init): Set number of pseudo registers. Establish
219 pseudo-register read/write methods.
220
bf896cb0
AC
2212003-11-06 Andrew Cagney <cagney@redhat.com>
222
223 * valops.c (destructor_name_p): Replace STREQN with strncmp.
224 * top.c (command_line_input): Ditto.
225 * objc-exp.y (yylex): Ditto.
226 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
227 * jv-exp.y (yylex): Ditto.
228 * f-exp.y (yylex): Ditto.
229 * event-top.c (command_line_handler): Ditto.
230 * environ.c (get_in_environ): Ditto.
231 (set_in_environ): Ditto.
232 * dwarfread.c (handle_producer): Ditto.
233 * dbxread.c (process_one_symbol): Ditto.
234 * c-typeprint.c (c_type_print_base): Ditto.
235 * c-exp.y (yylex): Ditto.
236
0b603eba
AC
2372003-11-06 Andrew Cagney <cagney@redhat.com>
238 Jeff Johnston <jjohnstn@redhat.com>
239
240 * target.c (add_target): Only set "to_xfer_partial" when NULL.
241 (init_dummy_target): Set "to_xfer_partial".
242
9cedbfec
AC
2432003-11-06 Andrew Cagney <cagney@redhat.com>
244
245 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
246 REGISTER_CONVENTION.
247
26bb91f3
DJ
2482003-11-06 Daniel Jacobowitz <drow@mvista.com>
249
250 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
251 static.
252
0bde7532
DJ
2532003-11-06 Daniel Jacobowitz <drow@mvista.com>
254
255 * breakpoint.c (remove_breakpoint): Take an bp_location
256 instead of a breakpoint argument. Check the bp_location's type.
257 Fix a reversed condition for hardware breakpoints.
258
259 (insert_bp_location): Update call to remove_breakpoint.
260 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
261 (remove_hw_watchpoints): Likewise.
262 (reattach_breakpoints): Likewise.
263 (detach_breakpoints): Likewise.
264 (delete_breakpoint): Likewise.
265
075f6582
DJ
2662003-11-06 Daniel Jacobowitz <drow@mvista.com>
267
268 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
269 (beakpoint_init_inferior): Likewise.
270 (breakpoint_here_p): Likewise. Only check addresses for software
271 or hardware breakpoints.
272 (breakpoint_inserted_here_p): Likewise.
273 (breakpoint_thread_match): Likewise. Correct comment.
274 (bpstat_have_active_hw_watchpoints): Likewise.
275 (check_duplicates): Likewise.
276
879bfdc2
DJ
2772003-11-06 Daniel Jacobowitz <drow@mvista.com>
278
279 * breakpoints.c (insert_bp_location): New function, broken out
280 from insert_breakpoints. Work on an bp_location instead of a
281 breakpoint.
282 (insert_breakpoints): Use it.
283
cf3a9e5b
DJ
2842003-11-06 Daniel Jacobowitz <drow@mvista.com>
285
286 * breakpoint.h (struct bp_location): Add section.
287 (struct breakpoint): Remove section.
288 * breakpoint.c (insert_breakpoints, remove_breakpoint)
289 (breakpoint_here_p, breakpoint_inserted_here_p)
290 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
291 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
292 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
293 section through loc.
294
ffce0d52
DJ
2952003-11-06 Daniel Jacobowitz <drow@mvista.com>
296
297 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
298 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
299
e049a4b5
DJ
3002003-11-06 Daniel Jacobowitz <drow@mvista.com>
301
302 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
303 arguments. Initialize owner and type for the new breakpoint
304 location item.
305 (set_raw_breakpoint): Update call to allocate_bp_location.
306
7cc221ef
DJ
3072003-11-06 Daniel Jacobowitz <drow@mvista.com>
308
309 * breakpoint.h (struct bp_location): Add a chain pointer.
310 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
311 macros.
312 (bp_location_chain): New variable.
313 (allocate_bp_location): New function.
314 (set_raw_breakpoint): Use it.
315 (delete_breakpoint): Remove ->loc from the bp_location_chain.
316
5cab636d
DJ
3172003-11-06 Daniel Jacobowitz <drow@mvista.com>
318
319 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
320 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 321 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
322 * breakpoint.c (condition_command, read_memory_nobpt)
323 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
324 (reattach_breakpoints, update_breakpoints_after_exec)
325 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
326 (breakpoint_init_inferior, breakpoint_here_p)
327 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
328 (breakpoint_thread_match, bpstat_stop_status)
329 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
330 (describe_other_breakpoints, check_duplicates)
331 (make_breakpoint_permanent, create_thread_event_breakpoint)
332 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
333 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
334 (watch_command_1, print_one_exception_catchpoint)
335 (clear_command, breakpoint_re_set_one): Adjust member accesses to
336 use the breakpoint's ->loc.
337 (set_raw_breakpoint): Likewise. Initialize ->loc.
338 (delete_breakpoint): Likewise. Free ->loc.
339
7be0c536
AC
3402003-11-05 Andrew Cagney <cagney@redhat.com>
341
4c7d882e
AC
342 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
343 macro.
344 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
345 * config/i386/tm-cygwin.h
346 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
347 * config/powerpc/tm-linux.h
348 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
349 (at_subroutine_call_instruction_target): Delete declaration.
350 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
351 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
352 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
353
7be0c536
AC
354 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
355 "struct bfd_section" and "struct bfd".
356 * target.h (struct section_table): Ditto.
357 * rs6000-nat.c (xcoff_relocate_core): Ditto.
358 * solib-svr4.c (elf_locate_base): Ditto.
359 * pa64solib.c (dld_cache_t): Ditto.
360 * objfiles.h (struct obj_section): Ditto.
361 * objfiles.c (add_to_objfile_sections): Ditto.
362 * exec.c (bfdsec_to_vmap): Ditto.
363 (add_to_section_table): Ditto.
364 (build_section_table): Ditto.
365 * corelow.c (get_core_register_section): Ditto.
366 * coffread.c (find_linenos): Ditto.
367 * elfread.c (elf_interpreter): Delete #if0'd function.
368
369 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
370 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
371 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
372 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
373
374 * arch-utils.h (generic_cannot_extract_struct_value_address):
375 Delete declaration.
376 * wince.c (_initialize_wince): Fix multi-line string.
377 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
378
d8fe84e3
EZ
3792003-11-05 Elena Zannoni <ezannoni@redhat.com>
380
381 * top.c (execute_command): Fix broken logic for command execution
382 while inferior is running in async mode.
383
cbdfc7c0
MK
3842003-11-06 Mark Kettenis <kettenis@gnu.org>
385
386 * dwarf2-frame.c (execute_cfa_program): Mark register as
387 REG_SAVED_REG for DW_CFA_register opcode.
388
dac94105
MK
3892003-11-05 Mark Kettenis <kettenis@gnu.org>
390
391 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
392 %rsp, %rip and %eflags to match ABI-change.
393
85bf2b91
JJ
3942003-11-05 Jeff Johnston <jjohnstn@redhat.com>
395
396 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
397 (ia64_gdbarch_init): Don't bother calculating the os.
398 Instead use the gdbarch_info struct and look at the osabi field.
399 Also use gdbarch_list_lookup_by_info() to look for a
400 candidate gdbarch.
401
cd31fb03
KB
4022003-11-05 Kevin Buettner <kevinb@redhat.com>
403
404 * frv-tdep.c (frv_register_byte): Delete.
405 (frv_extract_return_value, frv_store_return_value)
406 (frv_extract_struct_value_address): Don't call frv_register_byte().
407 Convert to non-deprecated form.
408 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
409 Convert calls to set_gdbarch_deprecated_extract_return_value(),
410 set_gdbarch_deprecated_store_return_value(), and
411 set_gdbarch_deprecated_extract_struct_value_address() into
412 non-deprecated forms.
413
0a056982
AC
4142003-11-05 Andrew Cagney <cagney@redhat.com>
415
416 * mips-tdep.c (mips_dump_tdep): Do not print
417 PRINT_EXTRA_FRAME_INFO.
418 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
419 Rename PRINT_EXTRA_FRAME_INFO.
420 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
421 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
422 (mips_print_extra_frame_info): Delete declaration.
423 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
424
29e0a062
EZ
4252003-11-05 Elena Zannoni <ezannoni@redhat.com>
426
427 * coffread.c (coff_symtab_read): Remove passing of info parameter
428 to prim_record_minimal_symbol_and_info.
429
8af580fc
EZ
4302003-11-05 Elena Zannoni <ezannoni@redhat.com>
431
432 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
433 (decode_base_type): Delete ifdeffed out code.
434
507836c0
AC
4352003-11-04 Andrew Cagney <cagney@redhat.com>
436
437 * symtab.c (find_active_alias): Delete function.
438 (lookup_block_symbol): Delete alias code.
439 * stabsread.c (resolve_live_range): Delete function.
440 (add_live_range): Delete function.
441 (resolve_symbol_reference): Delete function.
442 (define_symbol): Delete live range and alias code.
443 (scan_file_globals): Delete alias code.
444 * symtab.h (SYMBOL_RANGES): Delete macro.
445 (struct range_list): Delete structure.
446 (struct symbol): Delete field "ranges".
447 (SYMBOL_ALIASES): Delete macro.
448 (struct alias_list): Delete structure.
449 (struct symbol): Delete field "aliases".
450
1083b3bc
MS
4512003-11-04 Michael Snyder <msnyder@redhat.com>
452
453 * MAINTAINERS: Remove myself as owner of breakpoints and
454 of sparc/solaris.
455
474e5826
CV
4562003-11-03 Corinna Vinschen <vinschen@redhat.com>
457
458 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
459 (sh_sh4al_dsp_register_name): Ditto.
460 (sh4_nofpu_show_regs): Ditto.
461 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
462 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
463
2160782c
AC
4642003-11-03 Andrew Cagney <cagney@redhat.com>
465
466 * bcache.c: Include "gdb_assert.h".
467 (struct bcache): Add fields "expand_count" and
468 "expand_hash_count".
469 (expand_hash_table): Update the expand counts.
470 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
471 on object sizes and hashes.
472 * Makefile.in (bcache.o): Update dependencies.
473
85302095
AC
4742003-11-03 Andrew Cagney <cagney@redhat.com>
475
476 * exec.c (xfer_memory): Eliminate xfer_fn.
477
526eef89
KB
4782003-10-31 Kevin Buettner <kevinb@redhat.com>
479
480 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
481 (opcodes/frv-desc.h): Include.
482 (iacc0h_regnum, iacc0l_regnum): Define.
483 (last_spr_regnum, frv_num_regs): Update.
484 (new_variant): Don't supply default names for holes in the SPRs.
485 Supply names for iacc0h_regnum and iacc0l_regnum.
486 (frv_register_type): Use symbolic constants first_fpr_regnum and
487 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
488 builtin_type_int instead of builtin_type_int32.
489 (frv_register_sim_regno): New function.
490 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
491 * Makefile.in (gdb_sim_frv_h): Define.
492 (frv-tdep.o): Update dependencies.
493
9e815ec2
AC
4942003-10-31 Andrew Cagney <cagney@redhat.com>
495
496 * avr-tdep.c (avr_frame_this_id): Do not call
497 deprecated_inside_entry_file.
498 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
499 * m32r-tdep.c (m32r_frame_this_id): Ditto.
500 * d10v-tdep.c (d10v_frame_this_id): Ditto.
501 * arm-tdep.c (arm_prologue_this_id): Ditto.
502 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
503
e372db49
JB
5042003-10-31 Jim Blandy <jimb@redhat.com>
505
506 * elfread.c (elf_symtab_read): Allocate correct number of tail
507 elements to sectinfo structure. (Fix from Woody LaRue.)
508
e8bcf01f
AC
5092003-10-31 Andrew Cagney <cagney@redhat.com>
510
511 * stack.c (return_command): Use get_frame_type, instead of
512 CALL_DUMMY_HAS_COMPLETED.
513 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
514 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
515
4c05fe53
MK
5162003-10-31 Mark Kettenis <kettenis@gnu.org>
517
518 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
519 explicitly specify size of array.
520 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
521 TDEP->sc_num_regs.
522
c8b91b89
AC
5232003-10-31 Andrew Cagney <cagney@redhat.com>
524
525 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
526 function.
527 (s390_gdbarch_init): Set extract_struct_value_address.
528 * arch-utils.c (generic_cannot_extract_struct_value_address):
529 Delete function.
530 * arch-utils.h (generic_cannot_extract_struct_value_address):
531 Delete definition.
532
fdfb6fc8
MK
5332003-10-31 Mark Kettenis <kettenis@gnu.org>
534
535 * i386-linux-nat.c (fetch_core_registers): Remove.
536 (linux_elf_core_fns): Remove.
537 (_initialize_i386_linux_nat): Remove.
538
2f4950cd
AC
5392003-10-31 Andrew Cagney <cagney@redhat.com>
540
541 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
542 "exec.h".
543 (exec_entry_point): New function.
544 (enable_break): Create a "tmp_bfd_target", use that and
545 entry_point_address when computing the relocation offset.
546 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
547 * Makefile.in (solib-svr4.o): Update dependencies.
548
bba2d28d
AC
5492003-10-31 Andrew Cagney <cagney@redhat.com>
550
551 * defs.h (XZALLOC): Define.
552 * target.h (struct target_ops): Add "to_data";
553 * bfd-target.h, bfd-target.c: New files.
554 * Makefile.in (SFILES): Add "bfd-target.c".
555 (COMMON_OBS): Add "bfd-target.o".
556 (bfd-target.o): Specify dependencies.
557 (bfd_target_h): Define.
558 * defs.h (XZALLOC): Define.
559
6066c3de
AC
5602003-10-31 Andrew Cagney <cagney@redhat.com>
561
562 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
563 adjust_breakpoint_address.
564 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
565 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
566 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
567 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
568
4b8a223f
AC
5692003-10-31 Andrew Cagney <cagney@redhat.com>
570
571 * target.h (struct target_ops): Replace "to_read_partial" and
572 "to_write_partial" with "to_xfer_partial". Update comments.
573 * target.c (debug_to_write_partial): Delete function.
574 (debug_to_xfer_partial): Replace debug_to_read_partial.
575 (add_target, update_current_target, setup_target_debug): Set
576 "to_xfer_partial" instead of "to_read_partial" and
577 "to_write_partial".
578 (default_xfer_partial): Replace "default_write_partial".
579 (default_read_partial): Delete.
580 (target_read_partial, target_write_partial): Call
581 "to_xfer_partial".
582 * remote.c (init_remote_ops): Set "to_xfer_partial".
583 (init_remote_async_ops): Ditto.
584 (remote_xfer_partial): Replace "remote_read_partial".
585
66a72d25
MK
5862003-10-31 Mark Kettenis <kettenis@gnu.org>
587
588 * i386-tdep.c (i386_supply_fpregset): Support floating-point
589 registers in `fxsave' format.
590 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
591
9a12a2a0
MK
5922003-10-30 Mark Kettenis <kettenis@gnu.org>
593
e9f1aad5
MK
594 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
595 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
596 TDEP->gregset_num_regs and tdep->sizeof_gregset.
597
bb489b3c
MK
598 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
599 specify size of array.
600 (i386_linux_init_abi): Remove initialization of
601 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
602 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
603
da285bc4
MK
604 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
605 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
606 core-regset.o.
607
9a12a2a0
MK
608 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
609 the ELF header.
610
0e24ac5d
MK
6112003-10-29 Mark Kettenis <kettenis@gnu.org>
612
6d6d8e9c
MK
613 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
614 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
615 core-regset.o.
616
25e60c9b
MK
617 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
618
0e24ac5d
MK
619 * corelow.c: Include "arch-utils.h", "regset.h" and
620 "gdb_assert.h".
621 (core_gdbarch): New variable.
622 (sniff_core_bfd): Don't sniff if we have support for register sets
623 in CORE_GDBARCH.
624 (core_close): Reset CORE_GDBARCH.
625 (core_open): Initialize CORE_GDBARCH.
626 (get_core_register_section): Use register sets if they are
627 supported by CORE_GDBARCH.
628 (get_core_registers): Don't print error message if we have support
629 for register sets in CORE_GDBARCH.
630
0a0a4ac3
AC
6312003-10-29 Andrew Cagney <cagney@redhat.com>
632
633 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
634 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
635
7b097ae3
MK
6362003-10-29 Mark Kettenis <kettenis@gnu.org>
637
638 * objfiles.h (clear_objfile_data): New prototype.
639 * objfiles.c (clear_objfile_data): New function.
640 * symfile.c (reread_symbols): Clear per-objfile data.
641
46f45a4a
JJ
6422003-10-28 Jeff Johnston <jjohnstn@redhat.com>
643
644 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
645 printf_unfiltered instead of printf_filtered for output messages.
646 (add_symbol_file_command): Ditto.
647 (reread_symbols): Ditto.
648 (overlay_auto_command): Ditto.
649 (overlay_manual_command): Ditto.
650 (overlay_off_command): Ditto.
651
2b026650
MK
6522003-10-27 Mark Kettenis <kettenis@gnu.org>
653
654 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
655 (gdbarch_from_bfd): New function.
656 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
657 deprecated_select_gdbarch_hack.
658 * arch-utils.h (gdbarch_from_bfd): New prototype.
659
0bcad584 6602003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
661
662 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
663 arch_info. Use warning instead of fprintf_filtered. Do not use
664 deprecated bfd_printable_arch_mach.
665
7f398216
KB
6662003-10-26 Kevin Buettner <kevinb@redhat.com>
667
668 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
669 Delete.
670 (frv_register_type): Rename from frv_register_virtual_type. Add
671 ``struct gdbarch *'' parameter.
672 (frv_gdbarch_init): Delete calls to the following functions:
673 set_gdbarch_deprecated_size(),
674 set_gdbarch_deprecated_register_bytes(),
675 set_gdbarch_deprecated_register_raw_size(),
676 set_gdbarch_deprecated_max_register_raw_size(),
677 set_gdbarch_deprecated_register_virtual_size(),
678 set_gdbarch_deprecated_max_register_virtual_size(),
679 set_gdbarch_deprecated_register_virtual_size(),
680 set_gdbarch_deprecated_register_virtual_type().
681 Add call to function set_gdbarch_register_type().
682
bcf48cc7
MK
6832003-10-26 Mark Kettenis <kettenis@gnu.org>
684
6c7de422
MK
685 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
686 FDOFF_REGNUM): Remove defines.
687 * win32-nat.c (do_child_fetch_inferior_registers): Include
688 "i387-tdep.h".
3e685d41 689 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
690 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
691 undefine I387_ST0_REGNUM.
692
f783586b
MK
693 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
694 * x86-64-tdep.c (x86_64_store_return_value): Use
695 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
696
bcf48cc7
MK
697 Change register numbers to enumartion values.
698 * i386-tdep.h (enum i386_regnum): New.
699 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
700 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
701 I386_ST0_REGNUM): Remove defines.
702 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
703 I386_EDI_REGNUM): Remove defines.
704
b6591e8b
AC
7052003-10-24 Andrew Cagney <cagney@redhat.com>
706
707 * target.c: Include "gdbcore.h".
708 (get_target_memory, get_target_memory_unsigned): New functions.
709 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
710 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
711 Use get_target_memory_unsigned.
712 * Makefile.in (target.o): Update dependencies.
713
5f724446
AC
7142003-10-24 Andrew Cagney <cagney@redhat.com>
715
ce2826aa
AC
716 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
717 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
718 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
719 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
720 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
721
5f724446
AC
722 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
723 (can_run_code_for): Use the OO term "singleton".
724
fc70c2a0
AC
7252003-10-23 Andrew Cagney <cagney@redhat.com>
726
727 * Makefile.in (stack.o): Add $(regcache_h).
728 * stack.c: Include "regcache.h"
729 (return_command): Rewrite. Use get_frame_id and
730 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
731 about unhandled return-values.
732 * value.h (set_return_value): Delete declaration.
733 * values.c (set_return_value): Delete function.
734
4afcc598
JJ
7352003-10-23 Jeff Johnston <jjohnstn@redhat.com>
736
737 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
738 (pseudo_regs): Add comment regarding register stack registers.
739 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
740 (floatformat_valid): New static routine.
741 (floatformat_ia64_ext): Add name field and set up is_valid routine
742 to floatformat_valid().
743 (examine_prologue): For the previous cfm, use
744 frame_unwind_register()
745 if the cfm is not stored in a register-stack register. Save the
746 previous cfm value in the prev_cfm field. Add debug output.
747 (ia64_frame_this_id): Use frame_id_build_special() to also register
748 the bsp. Add debug output.
749 (ia64_sigtramp_frame_this_id): Ditto.
750 (ia64_frame_prev_register): Look at cache saved_regs for a few more
751 registers and also add some checks for framelessness before accepting
752 current register values for fields such as return address. For cfm,
753 use the cached prev_cfm field if available. Add comment to explain
754 PSR logic. Add debug output.
755 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
756 as part of initialization.
757 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
758 calculated. Cache the bsp and cfm values.
759 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
760 instead of using ia64_frame_prev_register() which doesn't expect most
761 registers to be saved. The saved values for bsp and sp
762 can be taken from the cache. Add debug output.
763 (ia64_push_dummy_call): Use frame_id_build_special() to also register
764 the bsp.
765
6cfae0bc
JB
7662003-10-23 Jim Blandy <jimb@redhat.com>
767
768 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
769 architecture the current arch can run code for --- but not if it's
770 a superset.
771 (can_run_code_for): New function.
772
fcd182f9
JW
7732003-10-22 James E Wilson <wilson@specifixinc.com>
774
775 * MAINTAINERS: Move myself from paper trail section back to write
776 after approval section.
777
4646aa9d
AC
7782003-10-22 Andrew Cagney <cagney@redhat.com>
779
780 * exec.h: New file.
781 * win32-nat.c: Include "exec.h".
782 * solib.c: Include "exec.h".
783 * target.h (build_section_table): Delete declaration.
784 * somsolib.c: Include "exec.h".
785 (exec_ops): Delete extern declaration.
786 * rs6000-nat.c: Update copyright. Include "exec.h".
787 (exec_ops): Delete extern declaration.
788 * pa64solib.c: Update copyright. Include "exec.h".
789 (exec_ops): Delete extern declaration.
790 * exec.c: Update copyright. Include "exec.h".
791 * corelow.c: Update dependencies. Include "exec.h".
792 * Makefile.in (exec_h): Define.
793 (exec.o, somsolib.o): Update dependencies.
794 (pa64solib.o, corelow.o): Update dependencies.
795
0088c768
AC
7962003-10-22 Andrew Cagney <cagney@redhat.com>
797
798 * target.c: Include "gdb_assert.h" (target_read): Call
799 "target_read_partial", not "target_write_partial".
800 (default_read_partial, default_write_partial): New function.
801 (target_read_partial, target_write_partial): Simplify, assume that
802 there is always a read/write method.
803 (update_current_target, add_target): Always set "to_read_partial"
804 and "to_write_partial".
805 (target_write, target_read): Fail on a zero byte transfer.
806 * Makefile.in (target.o): Update dependencies.
807 * target.h: Update copyright date.
808 (target_object): Fix typo.
809
e2d0e7eb
AC
8102003-10-22 Andrew Cagney <cagney@redhat.com>
811
812 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
813 multi-arch method, add "targ" parameter.
814 (struct target_ops): Declare.
815 * gdbarch.h, gdbarch.c: Re-generate.
816 * Makefile.in (c-valprint.o): Update dependencies.
817 * arch-utils.h: Update copyright.
818 (convert_from_func_ptr_addr_identity): Declare.
819 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
820 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
821 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
822 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
823 * infcall.c (find_function_addr, call_function_by_hand): Update.
824 * c-valprint.c: Include "target.h".
825 (print_function_pointer_address): Update.
826
f1c07ab0
AC
8272003-10-22 Andrew Cagney <cagney@redhat.com>
828
829 * target.c (target_close): New function.
830 (debug_to_close): Use "target_close".
831 (push_target): Use "target_close".
832 (unpush_target): Use "target_close".
833 (pop_target): Use "target_close".
834 * target.h (struct target_ops): Add "to_xclose".
835 (target_open): Delete macro. Move comment to "to_open".
836 (target_close): Replace macro with function that takes a target.
837 * top.c (quit_target): Pass "current_target" to "target_close".
838
5520a790
EZ
8392003-10-21 Elena Zannoni <ezannoni@redhat.com>
840
841 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
842 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
843 * symtab.h (lookup_minimal_symbol_text): Update.
844 * breakpoint.c (create_overlay_event_breakpoint,
845 create_longjmp_breakpoint): Update callers.
846 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
847 * symtab.c (find_pc_sect_line): Ditto.
848
caa92b73
AC
8492003-10-21 Andrew Cagney <cagney@redhat.com>
850
851 * target.c (errno): Delete extern declaration.
852
aa2a9a3c
JJ
8532003-10-20 Jeff Johnston <jjohnstn@redhat.com>
854
855 * ia64-tdep.c: Change all occurrences of
856 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
857 (ia64_frame_prev_register): Minor whitespace change.
858
4beec2b7
MC
8592003-10-20 Michael Chastain <mec@shout.net>
860
861 * config/djgpp/fnchange.lst: Add lines for:
862 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
863 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
864 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
865 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
866 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
867 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
868 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
869
92ad9cd9
AC
8702003-10-20 Andrew Cagney <cagney@redhat.com>
871
872 * values.c (register_value_being_returned): Update comments. Use
873 "gdbarch_return_value" when available.
874 (using_struct_return): Ditto.
875 (set_return_value): Ditto. Use "gdbarch_return_value" when
876 available.. Print a warning, and not an error, when an unhandled
877 return type is encountered.
878 * infcmd.c: Include "gdb_assert.h".
879 (print_return_value): When gdbarch_return_value_p, and using
880 struct return, assume that the value is not available.
881 * defs.h (return_value_convention): Define.
882 * gdbarch.sh (gdbarch_return_value): New predicate method.
883 * gdbarch.h, gdbarch.c: Re-generate
884 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
885
198beae2
AC
8862003-10-20 Andrew Cagney <cagney@redhat.com>
887
888 * symtab.c: Replace "struct sec" with "struct bfd_section".
889 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
890
24d693a6 8912003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
892
893 * config/djgpp/fnchange.lst: Add lines for:
894 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
895 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
896 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
897
21ad8dc3
MK
8982003-10-19 Mark Kettenis <kettenis@gnu.org>
899
900 * amd64fbsd-nat.c (fetch_inferior_registers,
901 store_inferior_registers): Remove functions.
902 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
903
cced5e27
MK
9042003-10-18 Mark Kettenis <kettenis@gnu.org>
905
906 Add NetBSD/amd64 native configuration:
907 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
908 * amd64nbsd-tdep.c: New file.
909 * amd64nbsd-nat.c: New file.
910 * amd64bsd-nat.c: New file.
911 * config/i386/nbsd64.mh: New file.
912 * config/i386/nbsd64.mt: New file.
913 * configure.host: Add x86_64-*-netbsd*.
914 * configure.tgt: Add x86_64-*-netbsd*.
915 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
916 New targets.
917 * NEWS (New native configurations): Mention NetBSD/amd64.
918
666de3fd
MC
9192003-10-17 Michael Chastain <mec@shout.net>
920
921 * config/djgpp/fnchange.lst: Remove dead lines for:
922 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
923 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
924 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
925 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
926 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
927 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
928 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
929 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
930 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
931 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
932 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
933 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
934 gdb/config/sparc/tm-sparclite.h,
935 gdb/gdbtk/generic/ChangeLog-2001,
936 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
937 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
938 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
939 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
940 gdb/testsuite/gdb.mi/mi0-var-block.exp,
941 gdb/testsuite/gdb.mi/mi0-var-child.exp,
942 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
943 gdb/testsuite/gdb.mi/mi0-var-display.exp,
944 itcl/iwidgets3.0.0/demos/extfileselectionbox,
945 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
946 itcl/iwidgets3.0.0/demos/fileselectionbox,
947 itcl/iwidgets3.0.0/demos/fileselectiondialog,
948 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
949 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
950 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
951 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
952 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
953 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
954 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
955 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
956 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
957 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
958 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
959 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
960 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
961 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
962 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
963 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
964 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
965 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
966 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
967 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
968 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
969 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
970 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
971 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
972 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
973 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
974 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
975 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
976 itcl/iwidgets3.0.0/demos/html/shell.n.html,
977 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
978 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
979 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
980 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
981 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
982 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
983 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
984 itcl/iwidgets3.0.0/demos/scrolledcanvas,
985 itcl/iwidgets3.0.0/demos/scrolledframe,
986 itcl/iwidgets3.0.0/demos/scrolledhtml,
987 itcl/iwidgets3.0.0/demos/scrolledlistbox,
988 itcl/iwidgets3.0.0/demos/scrolledtext,
989 itcl/iwidgets3.0.0/demos/selectionbox,
990 itcl/iwidgets3.0.0/demos/selectiondialog,
991 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
992 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
993 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
994 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
995 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
996 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
997 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
998 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
999 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1000 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1001 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1002 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1003 itcl/iwidgets3.0.0/doc/selectionbox.n,
1004 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1005 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1006 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1007 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1008 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1009 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1010 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1011 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1012 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1013 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1014 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1015 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1016 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1017 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1018 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1019 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1020 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1021 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1022 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1023 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1024 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1025 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1026 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1027 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1028 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1029 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1030 itcl/iwidgets3.0.0/tests/selectionbox.test,
1031 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1032 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1033 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1034 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1035 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1036 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1037 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1038 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1039 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1040 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1041 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1042 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1043 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1044 tk/mac/tkMacProjects.sit.hqx.
1045
1e3ff5ad
AC
10462003-10-17 Andrew Cagney <cagney@redhat.com>
1047
8db32d44
AC
1048 * target.c (target_section_by_addr): New function.
1049 (do_xfer_memory): Use "target_section_by_addr".
1050 * target.h (target_section_by_addr): Declare.
1051
1e3ff5ad
AC
1052 * target.h (struct target_ops): Add "to_read_partial" and
1053 "to_write_partial", delete "to_query".
1054 (target_read_partial, target_write_partial): Declare.
1055 (target_read, target_write): Declare.
1056 (target_query): Delete macro.
1057 * target.c (target_read_partial): New function.
1058 (target_write_partial, target_read, target_write): New function.
1059 (update_current_target): Delete inheritance of "to_query". Add
1060 comments about "to_read_partial" and "to_write_partial".
1061 (debug_to_partial_read, debug_to_partial_write): New functions.
1062 (debug_to_query): Delete function.
1063 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1064 instead of "to_query".
1065 * remote.c (remote_read_partial): Replace "remote_query".
1066 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1067 (init_remote_async_ops): Ditto.
1068 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1069 "target_read_partial" instead of "target_query".
1070 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1071 Use "target_read_partial" instead of "target_query".
1072
48c66725
JJ
10732003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1074
1075 * frame.h (struct frame_id): Add new field: special_addr.
1076 (frame_id_build_special): New prototype.
1077 * frame.c (frame_id_build_special): New function.
1078 (frame_id_build): Change to call frame_id_build_special().
1079 (frame_id_eq): Change to also test special_addr field.
1080 (frame_id_inner): Update comment.
1081
7998dfc3
AC
10822003-10-17 Andrew Cagney <cagney@redhat.com>
1083
1084 * target.c (update_current_target): Perform the target cleanup.
1085 Put the target stack beneath the squashed "current_target".
1086 (add_target): Delete disabled call to "cleanup_target".
1087 (cleanup_target): Delete function.
1088 (push_target, unpush_target): Do not call "cleanup_target".
1089
9c04404e 10902003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1091
1092 * target.c (target_stack): Change to a static target_ops.
1093 (update_current_target): Walk the "struct target_ops" stack.
1094 (pop_target, do_xfer_memory, target_info): Ditto.
1095 (find_target_beneath): Ditto.
1096 (push_target): Rewrite to use the "struct target_ops" stack.
1097 (unpush_target): Ditto.
1098 * target.h (struct target_stack_item): Delete definition.
1099 (target_stack): Delete declaration.
1100 (struct target_ops): Add field "beneath".
1101
c98a2b49 11022003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1103
1104 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1105 declaration.
1106 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1107 (h8300_examine_prologue): Use h8300_normal_mode flag
1108 (h8300_gdbarch_init): Set architecture info for normal mode
1109
506fb367
DJ
11102003-10-16 Daniel Jacobowitz <drow@mvista.com>
1111
1112 * remote.c (remote_protocol_vcont): New variable.
1113 (set_remote_protocol_vcont_packet_cmd): New function.
1114 (show_remote_protocol_vcont_packet_cmd): New function.
1115 (init_all_packet_configs): Handle remote_protocol_vcont.
1116 (remote_vcont_probe): New function.
1117 (remote_vcont_resume): New function.
1118 (remote_resume): Use it.
1119 (remote_async_resume): Call remote_resume.
1120 (_initialize_remote): Add verbose-resume packet commands.
1121
65815ea1
AC
11222003-10-16 Andrew Cagney <cagney@redhat.com>
1123
1124 * infrun.c (handle_inferior_event): Add comment about
1125 "frame_id_inner" being too weak.
1126
40324f1b
EZ
11272003-10-16 Elena Zannoni <ezannoni@redhat.com>
1128
1129 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1130 second parameter, which is always null. Remove
1131 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1132 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1133 accordingly.
1134 * somsolib.c (som_solib_create_inferior_hook,
1135 som_solib_desire_dynamic_linker_symbols): Update callers.
1136 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1137
11382003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1139
1140 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1141 debug interface, SDI (Scalable Debug Interface).
1142 * NEWS: Mention m32r SDI protocol was supported.
1143 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1144 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1145
51931cbb
JJ
11462003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1147
1148 * ia64-linux-tdep.c: Include gdbcore.h.
1149 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1150 (ia64_linux_sigcontext_register_addr): Find the address of the
1151 sigcontext area stored in the sigframe instead of using
1152 a magic offset constant.
1153
84e7fd53
AC
11542003-10-15 Andrew Cagney <cagney@redhat.com>
1155
1156 * remote.c (remote_search): Delete function.
1157 * target.h (target_search): Delete disabled macro.
1158 (struct target_ops): Delete disabled field "to_search".
1159
0f4d7c52
KB
11602003-10-14 Kevin Buettner <kevinb@redhat.com>
1161
1162 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1163 instead of deprecated_inside_entry_file().
1164
2e952408
CV
11652003-10-14 Corinna Vinschen <vinschen@redhat.com>
1166
1167 * sh-tdep.c: Fix copy/paste hangover in comment.
1168 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1169 mode.
1170 (sh3e_sh4_extract_return_value): Ditto.
1171
7e86466e
RH
11722003-10-13 Richard Henderson <rth@redhat.com>
1173
1174 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1175 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1176 match c_val_print a bit closer.
1177
46a16dba
KB
11782003-10-13 Kevin Buettner <kevinb@redhat.com>
1179
1180 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1181 (frv_gdbarch_adjust_breakpoint_address): New function.
1182 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1183 method.
1184
76897487
KB
11852003-10-13 Kevin Buettner <kevinb@redhat.com>
1186
1187 * breakpoint.h (struct breakpoint): Add new member
1188 ``requested_address''.
1189 * breakpoint.c (breakpoint_adjustment_warning)
1190 (adjust_breakpoint_address): New static functions.
1191 (print_it_typical): Issue warning if breakpoint's address is different
1192 from its requested address.
1193 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1194 (breakpoint_re_set_one): Set breakpoint's
1195 ``requested_address'' field. Set ``address'' field to the
1196 result of calling adjust_breakpoint_address() on the requested
1197 address.
1198
a1131521
KB
11992003-10-13 Kevin Buettner <kevinb@redhat.com>
1200
1201 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1202 * gdbarch.h, gdbarch.c: Regenerate.
1203
6ce6d90f
MK
12042003-10-11 Mark Kettenis <kettenis@gnu.org>
1205
155c1d33
MK
1206 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1207 TDEP->sc_num_regs.
1208
8a96bc77
MK
1209 * i386fbsd-tdep.c: New file.
1210 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1211 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1212 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1213 i386bsd-tdep.c.
1214 (_initialize_i386fbsd_tdep): New function.
1215 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1216 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1217 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1218 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1219 TDEP->sc_num_regs.
1220 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1221 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1222 to initialize TDEP->sc_num_regs.
1223 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1224 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1225 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1226 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1227 FreeBSD ELF OS/ABI's here.
1228 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1229 (i386fbsd-tdep.o): New target.
1230 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1231 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1232
477f40d1
MK
1233 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1234 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1235 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1236 in initialization of TDEP->sc_num_regs.
1237
c6b33596
MK
1238 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1239 (x86_64_init_abi): Initialize regset_from_core_section if
1240 appropriate.
1241
8446b36a
MK
1242 * i386-tdep.c (i386_regset_from_core_section): New function.
1243 (i386_gdbarch_init): Initialize regset_from_core_section if
1244 appropriate.
1245 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1246
c783cbd6
MK
1247 * i386-tdep.h (struct regset): Declare opaque.
1248
6ce6d90f
MK
1249 * gdbarch.sh (regset_from_core_section): New method.
1250 (struct regset): Declare opaque.
1251 * gdbarch.c, gdbarch.h: Regenerated.
1252
b98ed7be
AM
12532003-10-11 Alan Modra <amodra@bigpond.net.au>
1254
1255 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1256 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1257 Correct test for pc within section.
1258
f6214256
MK
12592003-10-11 Mark Kettenis <kettenis@gnu.org>
1260
1261 * gdbarch.sh: Remove trailing whitepsace from comments.
1262
a8f4cde1
RM
12632003-10-08 Roland McGrath <roland@redhat.com>
1264
1265 * gcore.c (make_mem_sec): Function removed, folded into ...
1266 (gcore_create_callback): ... here. To omit a section, clear its
1267 SEC_LOAD bit rather than zeroing its size.
1268 Omit read-only sections only if they correspond to a known disk file.
1269 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1270
74276724
MS
12712003-10-10 Michael Snyder <msnyder@redhat.com>
1272
1273 * d10v-tdep.c: Fix typo in comment.
1274
e754ae69
AC
12752003-10-10 Andrew Cagney <cagney@redhat.com>
1276
1277 * rs6000-tdep.c (e500_store_return_value): Delete function.
1278 (e500_extract_return_value): Delete function.
1279 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1280 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1281 "ppc_sysv_abi_restore_return_value" where applicable.
1282 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1283 (ppc_sysv_abi_extract_return_value): Declare.
1284 (ppc_sysv_abi_broken_store_return_value): Declare.
1285 (ppc_sysv_abi_broken_extract_return_value): Declare.
1286 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1287 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1288 start of file.
1289 (do_ppc_sysv_return_value): New function.
1290 (ppc_sysv_abi_extract_return_value): New function.
1291 (ppc_sysv_abi_store_return_value): New function.
1292 (ppc_sysv_abi_broken_extract_return_value): New function.
1293 (ppc_sysv_abi_broken_store_return_value): New function.
1294 (ppc_sysv_abi_use_struct_convention): Call
1295 do_ppc_sysv_return_value.
1296
8d4ce20a
JB
12972003-10-10 J. Brobecker <brobecker@gnat.com>
1298
1299 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1300 to lookup the main function symbol.
1301
afce3d2a
CV
13022003-10-10 Corinna Vinschen <vinschen@redhat.com>
1303
1304 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1305 types correctly.
1306 (sh_push_dummy_call_fpu): Fix argument passing rules.
1307 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1308 float types.
1309 (sh3e_sh4_store_return_value): Ditto.
1310
7fe958be
EZ
13112003-10-10 Elena Zannoni <ezannoni@redhat.com>
1312
1313 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1314 comment.
1315
3f997a97
CV
13162003-10-10 Corinna Vinschen <vinschen@redhat.com>
1317
1318 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1319 more readable code. Accomodate passing of bitfields.
1320
8be9034a
AC
13212003-10-10 Andrew Cagney <cagney@redhat.com>
1322
1323 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1324 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1325 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1326 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1327 (ppc64_sysv_abi_push_dummy_call): New function.
1328 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1329 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1330 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1331
85a453d5
KI
13322003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1333
1334 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1335 * README: Ditto.
1336 * d10v-tdep.c: Ditto.
1337 * h8300-tdep.c: Ditto.
1338 * remote-e7000.c: Ditto.
1339 * remote-hms.c: Ditto.
1340 * ser-e7kpc.c: Ditto.
1341 * sh-stub.c: Ditto.
1342 * sh-tdep.c: Ditto.
1343 * sh-tdep.h: Ditto.
1344 * sh3-rom.c: Ditto.
1345 * sh64-tdep.c: Ditto.
1346 * top.c: Ditto.
1347 * wince.c: Ditto.
1348 * config/d10v/d10v.mt: Ditto.
1349 * config/sh/embed.mt: Ditto.
1350 * config/sh/linux.mt: Ditto.
1351 * config/sh/tm-linux.h: Ditto.
1352 * config/sh/tm-sh.h: Ditto.
1353 * config/sh/wince.mt: Ditto.
1354
221c12ff
AC
13552003-10-09 Andrew Cagney <cagney@redhat.com>
1356
1357 * ppc-tdep.h (struct type): Declare opaque.
1358 * x86-64-tdep.h (struct regcache): Declare opaque.
1359 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1360 coding style.
1361
ef5200c1
AC
13622003-10-09 Andrew Cagney <cagney@redhat.com>
1363
1364 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1365 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1366 (SOFTWARE_SINGLE_STEP_P): Ditto.
1367 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1368 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1369 (SOFTWARE_SINGLE_STEP_P): Ditto.
1370 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1371 software_single_step to rs6000_software_single_step.
a8f4cde1 1372
9644bbdd
AC
13732003-10-09 Andrew Cagney <cagney@redhat.com>
1374
1375 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1376
db72fa6b
MS
13772003-10-09 Michael Snyder <msnyder@redhat.com>
1378
f3efb16c
MS
1379 * frame.h: Fix typo in comment.
1380 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1381 * d10v-tdep.c: Random whitespace/comment tweaks.
1382
9a5cef92
EZ
13832003-10-09 Elena Zannoni <ezannoni@redhat.com>
1384
1385 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1386 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1387 on stack.
a8f4cde1 1388
9a5cef92
EZ
1389 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1390 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1391 in detail.
a8f4cde1 1392
0f317a0c
DJ
13932003-10-09 Daniel Jacobowitz <drow@mvista.com>
1394
1395 * remote-mips.c (mips_initialize): Remove unneeded call to
1396 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1397
bbab2f46
DJ
13982003-10-09 Daniel Jacobowitz <drow@mvista.com>
1399
1400 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1401 a memory pointer.
1402
550950b8
JJ
14032003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1404
1405 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1406 for any lwp we resume.
1407 (running_callback): Add lwps that have pending status events
1408 against them to be considered running.
1409
15c69bc7
KI
14102003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1411
1412 * m32r-tdep.c : Include "dis-asm.h".
1413 * Makefile.in (m32r-tdep.o): Update dependencies.
1414
51065942
JB
14152003-10-06 J. Brobecker <brobecker@gnat.com>
1416
1417 * completer.h (get_gdb_completer_word_break_characters): Delete.
1418 * completer.c: include language.h.
1419 (gdb_completer_word_break_characters): Delete.
1420 (get_gdb_completer_word_break_characters): Delete.
1421 (location_completer): Use the word break characters of the current
1422 language.
1423 (complete_line): Likewise.
1424 (line_completion_function): Likewise.
1425 (skip_quoted_chars): Likewise.
1426 * Makefile.in (completer.o): Add dependency on language.h.
1427 * top.c (init_main): Set the readline word break characters
1428 to GDB's default word break characters.
1429
6084f43a
JB
14302003-10-06 J. Brobecker <brobecker@gnat.com>
1431
1432 * language.h (language_defn): new field, la_word_break_characters.
1433 * language.c (unknown_language_defn): Set new field to
1434 default_word_break_characters.
1435 (auto_language_defn): Likewise.
1436 (local_language_defn): Likewise.
1437 * ada-lang.c (ada_language_defn): Likewise.
1438 * c-lang.c (c_language_defn): Likewise.
1439 (cplus_language_defn): Likewise.
1440 (asm_language_defn): Likewise.
1441 (minimal_language_defn): Likewise.
1442 * f-lang.c (f_language_defn): Likewise.
1443 * jv-lang.c (java_language_defn): Likewise.
1444 * m2-lang.c (m2_language_defn): Likewise.
1445 * objc-lang.c (objc_language_defn): Likewise.
1446 * p-lang.c (pascal_language_defn): Likewise.
1447 * scm-lang.c (scm_language_defn): Likewise.
1448
944fcfab
AC
14492003-10-06 Andrew Cagney <cagney@redhat.com>
1450
1451 * ppc-sysv-tdep.c: Re-indent.
1452
9f0a5303
JB
14532003-10-06 J. Brobecker <brobecker@gnat.com>
1454
1455 * language.h (default_word_break_characters): Add prototype.
1456 * language.c (default_word_break_characters): New function.
1457
7270b6ed
AS
14582003-10-06 Andreas Schwab <schwab@suse.de>
1459
1460 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1461 with %eax.
1462
a5d61f66
AC
14632003-10-06 Andrew Cagney <cagney@redhat.com>
1464
1465 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1466 "h8500-tdep.c".
1467 (z8k-tdep.o): Delete custom build rule.
1468
28a86f5c
AC
14692003-10-06 Andrew Cagney <cagney@redhat.com>
1470
1bfd8a83
AC
1471 * Makefile.in: Update all dependencies.
1472
17144ef8
AC
1473 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1474 No longer list PA as as obsolete candidate. List m32r as
1475 broken instead of obsolete.
a8f4cde1 1476
a5679ae5
AC
1477 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1478 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1479 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1480 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1481 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1482 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1483 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1484 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1485 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1486 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1487 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1488 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1489 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1490 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1491 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1492 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1493 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1494 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1495 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1496 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1497 * config/z8k/z8k.mt: Ditto.
1498
4a8269c0
AC
1499 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1500 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1501 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1502 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1503 sparclite were removed.
1504 * configure.host, configure.tgt: Remove corresponding tuples.
1505
41989fcd
AC
1506 * breakpoint.c, breakpoint.h: Remove obsolete code.
1507 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1508 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1509 * stabsread.h, xcoffread.c: Ditto.
1510
28a86f5c
AC
1511 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1512 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1513 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1514 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1515
4efdaa0d
DL
15162003-10-06 David Lecomber <dsl@sources.redhat.com>
1517
1518 * f-valprint.c: Reformatting
1519
ae53de43
MK
15202003-10-06 Mark Kettenis <kettenis@gnu.org>
1521
a8bb57e7
MK
1522 * x86-64-tdep.c: Remove duplicate comment.
1523
ae53de43
MK
1524 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1525 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1526 names for return values. This fixes a bug since we looked at %rbx
1527 instead of %rdx.
1528
473f17b0
MK
15292003-10-05 Mark Kettenis <kettenis@gnu.org>
1530
2c261fae
MK
1531 * x86-64-tdep.c: Include "regset.h".
1532
473f17b0
MK
1533 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1534 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1535 sizeof_fpregset.
1536 * i386-tdep.c: Include "regset.h".
1537 (i386_supply_gregset): New function.
1538 (i386_supply_fpregset): New function.
1539 (i386_gdbarch_init): Initialze register set-related members of
1540 TDEP.
1541 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1542 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1543
afd48b75
AC
15442003-10-03 Andrew Cagney <cagney@redhat.com>
1545
1546 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1547 set extract_return_value, store_return_value and
1548 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1549 ppc64_sysv_abi_store_return_value and
1550 ppc64_sysv_abi_use_struct_convention.
1551 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1552 (ppc64_sysv_abi_store_return_value): Declare.
1553 (ppc64_sysv_abi_use_struct_convention): Declare.
1554 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1555 (ppc64_sysv_abi_extract_return_value): New function.
1556 (ppc64_sysv_abi_store_return_value): New function.
1557 (ppc64_sysv_abi_use_struct_convention): New function.
1558 (ppc64_sysv_abi_return_value): New function.
1559
9b540880
AC
15602003-10-03 Andrew Cagney <cagney@redhat.com>
1561
1562 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1563 convert a descriptor to a function when it's in the ".opd"
1564 section.
1565
8748518b
CV
15662003-10-03 Corinna Vinschen <vinschen@redhat.com>
1567
1568 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1569 reg_size to keep GCC silent.
1570
0fd85043
CV
15712003-10-03 Corinna Vinschen <vinschen@redhat.com>
1572
1573 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1574 base for DW_EH_PE_textrel encodings.
1575 (read_encoded_value): Add a DW_EH_PE_textrel case.
1576 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1577 section.
1578
37b517aa
MK
15792003-10-03 Mark Kettenis <kettenis@gnu.org>
1580
1581 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1582
12c266ea
AC
15832003-10-02 Andrew Cagney <cagney@redhat.com>
1584
1585 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1586 REGISTER_RAW_SIZE.
1587 * gdbarch.h, gdbarch.c: Re-generate.
1588 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1589 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1590 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1591 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1592 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1593 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1594 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1595 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1596 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1597 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1598 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1599 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1600 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1601 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
1602 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
1603 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 1604
78ba4af6
JB
16052003-10-02 Jim Blandy <jimb@redhat.com>
1606
1607 * dwarf2read.c (struct die_info): Doc fix.
1608
617daa0e
CV
16092003-10-02 Corinna Vinschen <vinschen@redhat.com>
1610
1611 * sh-tdep.c: Running thru gdb_indent.sh.
1612
e5e33cd9
CV
16132003-10-02 Corinna Vinschen <vinschen@redhat.com>
1614
1615 * sh-tdep.c (sh_justify_value_in_reg): New function.
1616 (sh_stack_allocsize): Ditto.
1617 (flt_argreg_array): New array used for floating point argument
1618 passing.
1619 (sh_init_flt_argreg): New function.
a8f4cde1 1620 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
1621 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
1622 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
1623 Fix argument passing strategy.
1624 (sh_push_dummy_call_nofpu): Ditto.
1625
5fe830e4
AC
16262003-10-01 Andrew Cagney <cagney@redhat.com>
1627
1628 * value.h (register_value_being_returned): Declare. Replace
1629 "value_being_returned".
1630 * infcall.c (call_function_by_hand): Use
1631 register_value_being_returned.
1632 * infcmd.c (print_return_value): Call
1633 "register_value_being_returned", handle struct return locally.
1634 * values.c (register_value_being_returned): New function. Replace
1635 "value_being_returned".
a8f4cde1 1636
5fe830e4 16372003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
1638
1639 * linux-proc.c (linux_do_registers): New function.
1640 (linux_make_note_section): Use linux_do_registers in case of
1641 single threaded inferior programs.
1642
64f395bf
AC
16432003-10-01 Andrew Cagney <cagney@redhat.com>
1644
1645 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
1646 use STRUCT_ADDR. When not using "struct return convention", pass
1647 "0" to "value_being_returned". Add FIXMEs.
1648 * infcmd.c (print_return_value): Pass an explicit 0/1 to
1649 value_being_returned. Add comments.
1650 * values.c (value_being_returned): Add fixme.
1651 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
1652 (hppa_value_returned_from_stack): Add FIXME.
1653
639d11d3
DC
16542003-09-30 David Carlton <carlton@kealia.com>
1655
1656 * dwarf2read.c (struct die_info): Add 'parent' field; replace
1657 'has_children' and 'next' by 'child' and 'sibling'.
1658 (read_comp_unit): Rework algorithm, breaking body into
1659 read_die_and_children and read_die_and_siblings.
1660 (read_die_and_children, read_die_and_siblings): New.
1661 (read_full_die): Add 'has_children' argument; set it instead of
1662 the die's 'has_children' field. Minor formatting cleanup.
1663 (free_die_list): Use die->child and die->sibling instead of
1664 die->next.
1665 (dump_die_list): Ditto.
1666 (sibling_die): Use die->sibling.
1667 (psymtab_to_symtab_1): Use die's 'child' field in place of its
1668 'has_children' and 'next' fields.
a8f4cde1
RM
1669 (process_die, read_file_scope, read_func_scope)
1670 (read_lexical_block_scope, read_structure_scope)
1671 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
1672 (read_namespace, read_subroutine_type, dump_die): Ditto.
1673
5bffac25
AC
16742003-09-30 Andrew Cagney <cagney@redhat.com>
1675
1676 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
1677 to 224, not 220.
1678
f30992d4
AC
16792003-09-30 Andrew Cagney <cagney@redhat.com>
1680
1681 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
1682 REGISTER_VIRTUAL_SIZE.
1683 * gdbarch.h, gdbarch.c: Regenerate.
1684 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
1685 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
1686 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
1687
2e092625
AC
16882003-09-29 Andrew Cagney <cagney@redhat.com>
1689
1690 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
1691 DEPRECATED_REGISTER_VIRTUAL_TYPE.
1692 * gdbarch.h, gdbarch.c: Regenerate.
1693 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
1694 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
1695
1696 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
1697 * remote-vxmips.c (vx_read_register): Ditto.
1698 * remote-vx68.c (vx_read_register): Ditto.
1699 * gnu-nat.c (inf_validate_procs): Ditto.
1700
7a5dd6ee
JB
17012003-09-29 J. Brobecker <brobecker@gnat.com>
1702
1703 * infcall.c (call_function_by_hand): Fix build failure
1704 introduced in the previous change to this file.
1705
1fe43d45
AC
17062003-09-29 Andrew Cagney <cagney@redhat.com>
1707
1708 * NEWS: Mention Objective-C.
1709
e28a332c
JG
17102003-09-29 Jerome Guitton <guitton@act-europe.fr>
1711
1712 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
1713 test if the register has been saved on the stack.
1714 (arm_scan_prologue_cache): When analysing the instruction
1715 "str lr, [sp, #-4]", save the address where lr has been stored.
1716
9ff63c35
AC
17172003-09-28 Andrew Cagney <cagney@redhat.com>
1718
7f5f525d
AC
1719 * frame.c (frame_read_unsigned_register): Delete function.
1720 * frame.h (frame_read_unsigned_register): Delete declaration.
1721 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1722 get_frame_register_unsigned.
1723 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
1724 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1725 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 1726
7f5f525d
AC
1727 * frame.h (frame_read_register): Delete declaration.
1728 * frame.c (frame_read_register): Delete function.
1729 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
1730 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
1731 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
1732 * mips-tdep.c (mips_register_to_value): Ditto.
1733 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
1734 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1735
1736 * frame.c (frame_read_signed_register): Delete function.
1737 (frame_read_unsigned_register): Update comments.
1738 * frame.h (frame_read_signed_register): Delete declaration.
1739 * h8300-tdep.c (h8300_print_register): Use
1740 get_frame_register_signed.
1741 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
1742
9ff63c35
AC
1743 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
1744 Rename VALUE_RETURNED_FROM_STACK.
1745 * infcmd.c (print_return_value): Update.
1746 * infcall.c (call_function_by_hand): Update.
1747
41d041d6
MK
17482003-09-28 Mark Kettenis <kettenis@gnu.org>
1749
1750 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
1751 regcache argument and reverse the order of the other two
1752 arguments. Remove local regcache variable. Determine
1753 architecture from REGCACHE. Update comments.
1754 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
1755 reverse the order of the other two arguments. Remove local
1756 regcache variable. Determine architecture from REGCACHE. Update
1757 comments.
1758 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
1759 prototypes. Update comments.
1760 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
1761 comment.
1762 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
1763 Update.
1764 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
1765 * i386-interix-nat.c (supply_fpregset): Update.
1766 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
1767 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
1768 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
1769 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
1770 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
1771 Update.
1772 * i386obsd-tdep.c (fetch_core_registers): Update.
1773 * i386v4-nat.c (supply_fpregset): Update.
1774 * x86-64-linux-nat.c (supply_fpregset): Update.
1775 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 1776
1cb97e17
MK
17772003-09-27 Mark Kettenis <kettenis@gnu.org>
1778
5716833c
MK
1779 * i386-tdep.h: Put opaque declarations in alphabetical
1780 order. Remove spurious whitespace.
1781 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
1782 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
1783 * i386-tdep.c (MM0_REGNUM): Remove define.
1784 (i386_mmx_regnum_p): Add gdbarch argument.
1785 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
1786 Rewrite using new macro definitions for FPU/SSE registers.
1787 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
1788 definitions from i387-tdep.h.
1789 (i386_register_name): Update.
1790 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
1791 new macro definitions for FPU/SSE registers.
1792 (i386_extract_return_value): Determine whether floating-point
1793 registers are present by examining REGCACHE's architecture.
1794 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
1795 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
1796 FPU/SSE registers.
1797 (i386_register_type): Update.
1798 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
1799 definitions for FPU registers. Use REGCACHE's architecture to
1800 determine the appropriate register numbers.
1801 (i386_pseudo_register_read, i386_pseudo_register_write,
1802 i386_register_reggroup_p): Update.
1803 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
1804 TDEP->mm0_regnum.
1805 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
1806 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
1807 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
1808 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
1809 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
1810 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
1811 *' to `void *'.
1812 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
1813 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
1814 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
1815 definitions for FPU/SSE registers.
1816 (FXSAVE_MXCSR_ADDR): New define.
1817 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
1818 TDEP->mm0_regnum.
1819 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
1820 (I387_ST0_REGNUM): Define.
1821
41d35cb0
MK
1822 * regcache.h (get_regcache_arch): New prototype.
1823 * regcache.c (get_regcache_arch): New function.
1824
54e74f72
MK
1825 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1826 whitespace.
1827
1cb97e17
MK
1828 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1829 Initialize using ARRAY_SIZE.
1830
0968aa8c
AC
18312003-09-27 Andrew Cagney <cagney@redhat.com>
1832
1833 * arch-utils.c (deprecated_init_frame_pc_default): Rename
1834 "init_frame_pc_default".
1835 * arch-utils.h (deprecated_init_frame_pc_default): Update.
1836 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1837 * vax-tdep.c (vax_gdbarch_init): Update.
1838 * v850-tdep.c (v850_gdbarch_init): Update.
1839 * sh64-tdep.c (sh64_gdbarch_init): Update.
1840 * s390-tdep.c (s390_gdbarch_init): Update.
1841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1842 * mcore-tdep.c (mcore_gdbarch_init): Update.
1843 * h8300-tdep.c (h8300_gdbarch_init): Update.
1844 * cris-tdep.c (cris_gdbarch_init): Update.
1845 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1846
54c84734
MK
18472003-09-26 Mark Kettenis <kettenis@gnu.org>
1848
1849 * regset.h: New file.
1850 * Makefile.in (regset_h): Add.
1851
1b1d3794
AC
18522003-09-25 Andrew Cagney <cagney@redhat.com>
1853
1854 * frame.h (deprecated_frame_saved_regs): Rename
1855 get_frame_saved_regs.
1856 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1857 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1858 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1859 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1860 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1861
e6beb428
AC
18622003-09-25 Andrew Cagney <cagney@redhat.com>
1863
1864 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1865 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1866 and Java.
1867 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1868 arm*-*-* do not use the new frame code.
1869
710122da
DC
18702003-09-25 David Carlton <carlton@kealia.com>
1871
1872 * c-exp.y: Remove 'register' declarations.
1873 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1874
79c2c32d
DC
18752003-09-25 David Carlton <carlton@kealia.com>
1876
1877 * c-exp.y: Include cp-support.h. Add qualified_type.
1878 (yylex): Delete nested type hack; add comments.
1879 * cp-namespace.c (cp_lookup_nested_type): New function.
1880 * cp-support.h: Declare cp_lookup_nested_type.
1881 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1882 instead of value_struct_elt_for_reference.
1883 * valops.c: Include cp-support.h.
1884 (value_aggregate_elt): New function.
1885 (value_namespace_elt): Ditto.
1886 (value_struct_elt_for_reference): Make static.
1887 * value.h: Delete declaration of value_struct_elt_for_reference;
1888 add declaration for value_aggregate_elt.
1889 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1890 (valops.o): Ditto.
1891
898c62f5
DJ
18922003-09-25 Daniel Jacobowitz <drow@mvista.com>
1893
1894 * stack.c: Include "reggroups.h".
1895 (frame_info): Only display registers in all_reggroup.
1896 * Makefile.in (stack.o): Update dependencies.
1897
28cd8767
JG
18982003-09-25 Jerome Guitton <guitton@act-europe.fr>
1899
1900 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1901 "add ip, sp #n" in the prologue.
1902 (arm_scan_prologue): Ditto.
1903
a4ab2b5d
JG
19042003-09-25 Jerome Guitton <guitton@act-europe.fr>
1905
1906 * MAINTAINERS (write after approval): Add myself.
1907
3f244638
AS
19082003-09-25 Andreas Schwab <schwab@suse.de>
1909
1910 * m68k-tdep.c: Include "dwarf2-frame.h".
1911 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1912 * Makefile.in (m68k-tdep.o): Update dependencies.
1913
1c0159e0
CV
19142003-09-25 Corinna Vinschen <vinschen@redhat.com>
1915
1916 * sh-tdep.c (struct frame_extra_info): Remove.
1917 (struct sh_frame_cache): New structure.
1918 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1919 (GET_TARGET_REG): Ditto but target register.
1920 (GET_PUSHED_REG): Remove.
1921 (IS_MOV_ARG_TO_REG): New macro.
1922 (IS_MOV_ARG_TO_IND_R14): New macro.
1923 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1924 (IS_MOVW_PCREL_TO_REG): New macro.
1925 (IS_MOVL_PCREL_TO_REG): New macro.
1926 (IS_SUB_REG_FROM_SP): New macro.
1927 (IS_ARG_MOV): Remove.
1928 (IS_MOV_TO_R14): Remove.
1929 (IS_RESTORE_FP): New macro.
1930 (IS_RTS): New macro.
1931 (IS_LDS): New macro.
1932 (IS_MOV_FP_SP): New macro.
1933 (IS_ADD_REG_TO_FP): New macro.
1934 (IS_ADD_IMM_FP): New macro.
1935 (sh_skip_prologue_hard_way): Remove.
1936 (sh_saved_pc_after_call): Remove.
1937 (sh_frame_chain): Remove.
1938 (sh_find_callers_reg): Remove.
a8f4cde1 1939 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
1940 (sh_fp_frame_init_saved_regs): Remove.
1941 (sh_init_extra_frame_info): Remove.
1942 (sh_analyze_prologue): New function.
1943 (sh_skip_prologue): Remove deprecated code. Rely on new function
1944 sh_analyze_prologue when after_prologue fails.
1945 (sh_frame_saved_pc): Remove.
1946 (sh_alloc_frame_cache): New function.
1947 (sh_frame_cache): Ditto.
1948 (sh_frame_prev_register): Ditto.
1949 (sh_frame_this_id): Ditto.
1950 (sh_frame_unwind): New structure defining the heuristic frame
1951 sniffer interface.
1952 (sh_frame_sniffer): New function.
1953 (sh_unwind_sp): Ditto.
1954 (sh_unwind_pc): Ditto.
1955 (sh_unwind_dummy_id): Ditto.
1956 (sh_frame_base_address): Ditto.
1957 (sh_frame_base): New structure defining new frame base code.
1958 (sh_in_function_epilogue_p): New function.
1959 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1960 code and to call all new code instead. Initialize dwarf2 and
1961 heuristic frame sniffer.
1962
5f9769d1
PH
19632003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1964
a8f4cde1
RM
1965 * parser-defs.h (struct exp_descriptor): New definition, containing
1966 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
1967 evaluating expressions.
1968 (exp_descriptor_standard): Declare new variable.
1969 (print_subexp): Make global and declare here (from expprint.c).
1970 (dump_subexp): Ditto.
1971 (dump_subexp_body_standard): Declare.
1972 (operator_length_standard): Declare.
1973 (op_name_standard): Declare.
1974 (print_subexp): Declare.
1975 (print_subexp_standard): Declare.
1976
1977 * language.h (struct language_defn): Add la_exp_desc field to hold
1978 pointer to table for language-specific operators.
1979 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
1980
1981 * parse.c (operator_length): Move most code to new
5f9769d1 1982 operator_length_standard function. Use language-specific information.
a8f4cde1 1983 (operator_length_standard): New function taking most code from
5f9769d1
PH
1984 operator_length.
1985 (exp_descriptor_standard): New constant.
a8f4cde1
RM
1986
1987 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 1988 and OP_EXTENDED_LAST.
a8f4cde1
RM
1989
1990 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
1991 Make global; remove static declaration.
1992 Move most code to print_subexp_standard.
a8f4cde1 1993 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
1994 print_subexp.
1995 (op_name): Add expression to argument signature.
a8f4cde1 1996 Use langauge-specific op_name.
5f9769d1
PH
1997 Move most code to op_name_standard.
1998 (op_name_standard): New function, containing code formerly in op_name.
1999 (dump_subexp): Use new version of op_name function.
2000 Use language-specific dump_subexp_body, and move most existing code to
2001 dump_subexp_body_standard.
2002 (dump_raw_expression): Use new op_name interface.
2003 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2004 (dump_subexp_body_standard): New function, containing code formerly
2005 in dump_subexp_body.
a8f4cde1 2006
5f9769d1
PH
2007 * language.c (unknown_language): Add default la_exp_desc field and
2008 remove evaluate_exp field.
2009 (auto_language): Ditto.
2010 (local_language): Ditto.
2011 * f-lang.c (f_language_defn): Ditto.
2012 * c-lang.c (c_language_defn): Ditto.
2013 (cplus_language_defn): Ditto.
2014 (asm_language_defn): Ditto.
2015 (minimal_language_defn): Ditto.
2016 * p-lang.c (pascal_language_defn): Ditto.
2017 * m2-lang.c (m2_language_defn): Ditto.
2018 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2019
2020 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2021 Java-specific expression evaluator.
2022 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2023 field.
a8f4cde1 2024 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2025 Scheme-specific expression evaluator.
2026 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2027 field.
2028 * objc-lang.c (print_object_command): Take evaluate_exp from the
2029 la_exp_desc field.
a8f4cde1 2030
5f9769d1 2031 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2032
2033 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2034 la_exp_desc's type.
2035 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2036
24daaebc
PH
20372003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2038
2039 * parser-defs.h (operator_length): Declare.
a8f4cde1 2040
24daaebc
PH
2041 * parse.c (length_of_subexp): Use operator_length to get operator
2042 lengths and arities for operators.
2043 Move most code to new operator_length function.
a8f4cde1 2044 (operator_length): New function absorbing most code from
24daaebc
PH
2045 length_of_subexp.
2046 (prefixify_subexp): Remove large case and use operator_length instead.
2047 (parse_exp_1): Use renamings:
a8f4cde1 2048 dump_prefix_expression => dump_raw_expression and
24daaebc 2049 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2050
24daaebc
PH
2051 * expression.h (dump_prefix_expression): Rename to ...
2052 (dump_raw_expression): New name.
2053 (dump_postfix_expression): Rename to ...
2054 (dump_prefix_expression): New name.
a8f4cde1 2055
24daaebc
PH
2056 * expprint.c (dump_subexp): Make global. Add comment.
2057 Move most existing code to dump_subexp_body.
2058 (dump_subexp_body): New function.
2059 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2060 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2061 work before the expression is prefixified.
2062 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2063 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2064 that's what it does.
a8f4cde1 2065 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2066 prefixified expression.
2067 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2068
8c2957c4
JB
20692003-09-22 Jim Blandy <jimb@redhat.com>
2070
2071 * dwarf2read.c (read_array_type): When building the type for an
2072 array of unspecified length, make sure to choose the upper bound
2073 so that the array's total length comes out to be zero --- that's
2074 how we represent such arrays.
2075
592e3010
MC
20762003-09-22 Michael Chastain <mec@shout.net>
2077
2078 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2079
365c70b1
JJ
20802003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2081
2082 * top.c (quit_force): Fix indirect call to quit_target so
2083 a struct qt_args pointer is passed.
2084
5d6eb653
AC
20852003-09-22 Andrew Cagney <cagney@redhat.com>
2086
2087 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2088 * arch-utils.c (init_frame_pc_noop): Delete function.
2089 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2090 "init_frame_pc".
2091 * mips-tdep.c (mips_gdbarch_init): Ditto.
2092 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2093 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2094 declaration.
2095 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2096 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2097 declaration.
2098 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2099
b222a67f
AG
21002003-09-22 Anthony Green <green@redhat.com>
2101
2102 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2103 declaration.
2104
d5b5ac79
AC
21052003-09-20 Andrew Cagney <cagney@redhat.com>
2106
deafb061
AC
2107 * breakpoint.c: Eliminate ARGSUSED.
2108 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2109 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2110 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2111 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2112 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2113 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2114 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2115 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2116 * wince.c, remote-vx.c: Ditto.
2117
d5b5ac79
AC
2118 * cli/cli-script.c: Remove "register" attributes.
2119 * config/pa/tm-hppa.h: Ditto.
2120 * cli/cli-decode.c: Ditto.
2121 * cli/cli-cmds.c: Ditto.
2122
c6316faa
AC
21232003-09-19 Andrew Cagney <cagney@redhat.com>
2124
2125 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2126 DEPRECATED_NPC_REGNUM.
2127 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2128
f4f99b11
CF
21292003-09-19 Christopher Faylor <cgf@redhat.com>
2130
2131 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2132
1708f284
JB
21332003-09-19 Jim Blandy <jimb@redhat.com>
2134
2135 * macrotab.c (macro_include): Use the correct comparison to find
2136 the appropriate place for this inclusion in the list.
2137
b9fbf434
AC
21382003-09-19 Andrew Cagney <cagney@redhat.com>
2139
2140 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2141 (DEPRECATED_HPUX_TEXT_END): Define.
2142 (deprecated_hpux_text_end): Declare.
2143 (struct target_ops): Declare opaque.
2144 * hppah-nat.c (text_end): Make static.
2145 (deprecated_hpux_text_end): New function.
2146 * exec.c (text_end): Delete global variable.
2147 (NEED_TEXT_START_END): Do not define.
2148 (exec_file_attach): Replace code computing "text_end" code with
2149 call to DEPRECATED_HPUX_TEXT_END.
2150
5b03f266
AC
21512003-09-19 Andrew Cagney <cagney@redhat.com>
2152
2153 * utils.c (align_up, align_down): New functions.
2154 * defs.h (align_up, align_down): Declare.
2155 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2156 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2157 and "align_down".
2158 (round_up, round_down): Delete functions.
2159 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2160 "align_down".
2161 (ROUND_DOWN, ROUND_UP): Delete macros.
2162 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2163 * h8300-tdep.c: Replace "round_up" and "round_down" with
2164 "align_up" and "align_down".
2165 (round_up, round_down): Delete macros.
2166 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2167 "align_down".
2168 (ROUND_UP, ROUND_DOWN): Delete macros.
2169
51db5742
JB
21702003-09-18 J. Brobecker <brobecker@gnat.com>
2171
2172 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2173 hard-coded constant. Use the proper machine name instead.
2174
77949794
AC
21752003-09-17 Andrew Cagney <cagney@redhat.com>
2176
2177 * sparc-tdep.c (legacy_register_name): Delete function.
2178 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2179 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2180 * infcmd.c (gdb_register_name): Delete variable.
2181 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2182 REGISTER_NAME and "tm.h".
2183 * gdbarch.h, gdbarch.c: Regenerate.
2184 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2185 REGISTER_NAMES in comments.
2186 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2187 * m68klinux-nat.c (regmap): Ditto.
2188
b55c33cc
JB
21892003-09-17 Jim Blandy <jimb@redhat.com>
2190
2191 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2192
957e27ac
AC
21932003-09-17 Andrew Cagney <cagney@redhat.com>
2194
2195 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2196 (ppcnbsd_init_abi): Set "use_struct_convention" to
2197 "ppcnbsd_use_struct_convention".
2198
192cb3d4
MK
21992003-09-17 Mark Kettenis <kettenis@gnu.org>
2200
2201 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2202 * gdbarch.h, gdbarch.c: Regenerate.
2203 (stabs_argument_has_addr): New architecture method.
2204 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2205 * arch-utils.c: Include "buildsym.h".
2206 (default_stabs_argument_has_addr): New function.
2207 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2208 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2209
efe59759
AC
22102003-09-17 Andrew Cagney <cagney@redhat.com>
2211
2212 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2213 * gdbarch.h, gdbarch.c: Regenerate.
2214 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2215 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2216 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2217 * sparcnbsd-tdep.c: Update.
a8f4cde1 2218
62700349
AC
22192003-09-17 Andrew Cagney <cagney@redhat.com>
2220
2221 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2222 * gdbarch.h, gdbarch.c: Regenerate.
2223 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2224 * d10v-tdep.c, frame.c: Update.
2225 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2226 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2227 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2228 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2229 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2230 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2231 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2232 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2233 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2234 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2235 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2236 * config/pa/nm-hppah.h: Update.
2237
b9ff3018
AC
22382003-09-16 Andrew Cagney <cagney@redhat.com>
2239
2240 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2241 "use_struct_convention" to "ppc_linux_use_struct_convention".
2242 (ppc_linux_use_struct_convention): New function.
2243 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2244 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2245 "rs6000_use_struct_convention".
2246 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2247 declaration.
2248 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2249 Delete function.
2250
aa1ee363
AC
22512003-09-16 Andrew Cagney <cagney@redhat.com>
2252
2253 * buildsym.c: Remove more occurances of "register".
2254 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2255 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2256 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2257 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2258 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2259 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2260 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2261 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2262
f2ea0907
CV
22632003-09-16 Corinna Vinschen <vinschen@redhat.com>
2264
2265 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2266 numbers to enumeration values.
2267 * sh-tdep.c: Accomodate above change.
2268 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2269 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2270 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2271 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2272 (IS_FPUSH): Rename from IS_FMOV.
2273 (sh_extract_struct_value_address): Remove useless comment.
2274 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2275 instead of own local values.
2276 (sh_dump_tdep): Remove.
2277 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2278 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2279
1c704f11
AC
22802003-09-15 Andrew Cagney <cagney@redhat.com>
2281
2282 * doublest.c (convert_floatformat_to_doublest): No longer need to
2283 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2284
ac79b88b
DJ
22852003-09-15 Daniel Jacobowitz <drow@mvista.com>
2286
2287 * values.c (unpack_double): Call floatformat_is_valid.
2288
1c671366
MK
22892003-09-15 Mark Kettenis <kettenis@gnu.org>
2290
de5227fb
MK
2291 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2292 ps_strings into a long.
2293
1c671366
MK
2294 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2295 _initialize_am64fbsd_nat.
2296
a604369a
KB
22972003-09-15 Kevin Buettner <kevinb@redhat.com>
2298
2299 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2300 associated with DW_AT_ranges attribute is out of bounds.
2301
b3cacbee
DL
23022003-09-15 David Lecomber <dsl@sources.redhat.com>
2303
2304 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2305
d0f37bb2
MC
23062003-09-14 Michael Chastain <mec@shout.net>
2307
2308 * config/m68k/nm-apollo68v.h: Delete.
2309 * config/m68k/xm-apollo68v.h: Delete.
2310
69517000
AC
23112003-09-14 Andrew Cagney <cagney@redhat.com>
2312
2313 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2314 * dcache.c: Update copyrights and descriptions.
2315 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2316
ef8b349d
AC
23172003-09-14 Andrew Cagney <cagney@redhat.com>
2318
2319 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2320 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2321
52f0bd74
AC
23222003-09-14 Andrew Cagney <cagney@redhat.com>
2323
2324 * alpha-nat.c: Remove some occurances of "register".
2325 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2326 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2327 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2328 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2329 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2330 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2331 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2332 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2333 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2334 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2335 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2336 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2337 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2338 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2339 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2340 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2341 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2342 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2343 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2344 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2345 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2346 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2347
4a4b3fed
AC
23482003-09-13 Andrew Cagney <cagney@redhat.com>
2349
2350 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2351 * ppc-tdep.h (struct regcache): Declare opaque.
2352 * objfiles.h (struct objfile_data): Declare opaque.
2353 * cp-support.h (struct objfile): Declare opaque.
2354 * linux-nat.h (target_waitstatus): Declare opaque.
2355
2110b94f
MK
23562003-09-14 Mark Kettenis <kettenis@gnu.org>
2357
1c671366
MK
2358 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2359 (stabs_argument_has_addr): New architecture method.
2360 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2361 * arch-utils.c: Include "buildsym.h".
2362 (default_stabs_argument_has_addr): New function.
2363 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2364 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2365
2110b94f
MK
2366 * cris-tdep.c (cris_gdbarch_init): Set
2367 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2368 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2369 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2370 * mips-tdep.c (mips_gdbarch_init): Likewise.
2371 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2372 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2373
48436ce6
AC
23742003-09-13 Andrew Cagney <cagney@redhat.com>
2375
2376 * values.c (using_struct_return): Delete "function" and "funcaddr"
2377 parameters.
2378 * value.h (using_struct_return): Update declaration.
2379 * infcmd.c (finish_command_continuation): Update.
2380 (finish_command): Update.
2381 * infcall.c (call_function_by_hand): Update.
2382 * eval.c (evaluate_subexp_standard): Update.
2383
403d9909
CF
23842003-09-13 Christopher Faylor <cgf@redhat.com>
2385
2386 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2387 SSE registers since gdb will not operate correctly without this.
2388 Restore include file ordering munged in previous change.
2389 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2390
ebf7d56b
MK
23912003-09-13 Mark Kettenis <kettenis@gnu.org>
2392
8e823e25
MK
2393 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2394 REG_STRUCT_HAS_ADDR.
2395 * gdbarch.c, gdbarch.h: Updated.
2396 * infcall.c (call_function_by_hand): Update.
2397 * stabsread.c (define_symbol): Updated.
a8f4cde1 2398
ebf7d56b
MK
2399 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2400
d3f13f72
CF
24012003-09-12 Christopher Faylor <cgf@redhat.com>
2402
2403 * win32-nat.c: Reorganize so that defines used by target headers are
2404 actually defined by the system headers.
2405 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2406 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2407
14f75137
JB
24082003-09-12 Jim Blandy <jimb@redhat.com>
2409
d646061f
JB
2410 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2411 the file has no .data, .bss, or .rodata sections. Instead wait
2412 until we see a variable alleged to live in one of those sections.
2413
2a13f9bc
JB
2414 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2415 .bss section, presume that any variables we find live in the
2416 .rodata section.
2417
4f49b26b
JB
2418 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2419 offsets for global and static variables.
2420
14f75137
JB
2421 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2422 symbol types are, by definition, in the .data section, so it is
2423 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2424 If there is no .data section, there should be no N_DATA or N_DATA
2425 | N_EXT symbols.
2426
212c460c
MK
24272003-09-12 Mark Kettenis <kettenis@gnu.org>
2428
2429 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2430 (amd64fbsd_sigcontext_addr): Rewrite.
2431 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2432 with correct values.
2433 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2434 (amd64fbsd_init_abi): Fix typo.
2435
68856ea3
AC
24362003-09-12 Andrew Cagney <cagney@redhat.com>
2437
2438 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2439 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2440
627b3ba2
AC
24412003-09-12 Andrew Cagney <cagney@redhat.com>
2442
2443 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2444 "entry_file_highpc". Update comments.
2445 * defs.h (deprecated_inside_entry_file): Rename
2446 "inside_entry_file".
2447 * blockframe.c (deprecated_inside_entry_file): Rename
2448 "inside_entry_file".
2449 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2450 * vax-tdep.c (vax_frame_chain): Update.
2451 * sh64-tdep.c (sh64_frame_chain): Update.
2452 * sh-tdep.c (sh_frame_chain): Update.
2453 * rs6000-tdep.c (rs6000_frame_chain): Update.
2454 * ns32k-tdep.c (ns32k_frame_chain): Update.
2455 * mips-tdep.c (mips_frame_chain): Update.
2456 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2457 * m32r-tdep.c (m32r_frame_this_id): Update.
2458 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2459 * frv-tdep.c (frv_frame_this_id): Update.
2460 * d10v-tdep.c (d10v_frame_this_id): Update.
2461 * cris-tdep.c (cris_frame_chain): Update.
2462 * blockframe.c (legacy_frame_chain_valid): Update.
2463 * avr-tdep.c (avr_frame_this_id): Update.
2464 * arm-tdep.c (arm_prologue_this_id): Update.
2465 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2466 * objfiles.c (objfile_relocate): Update.
2467 * mipsread.c (mipscoff_symfile_read): Update.
2468 (mipscoff_symfile_read): Update.
2469 * mdebugread.c (parse_partial_symbols): Update.
2470 * dwarfread.c (read_file_scope): Update.
2471 * dwarf2read.c (read_file_scope): Update.
2472 * dbxread.c (read_dbx_symtab): Update.
2473 (read_dbx_symtab): Update.
2474 * coffread.c (complete_symtab): Update.
2475
b0abbc58
JJ
24762003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2477
2478 * top.c (quit_target): New static helper function.
2479 (quit_force): Moved code to quit_target(). Call quit_target()
2480 via catch_errors() to catch errors during quit.
2481
a1632d59
DC
24822003-09-11 David Carlton <carlton@kealia.com>
2483
2484 * buildsym.c (finish_block): Use allocate_block to allocate the
2485 block.
2486 * mdebugread.c (new_block): Add FIXME.
2487
5c4e30ca
DC
24882003-09-11 David Carlton <carlton@kealia.com>
2489
2490 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2491 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2492 (recursive_dump_type): Ditto.
2493 * printcmd.c (print_formatted): Ditto.
2494 * typeprint.c (print_type_scalar): Ditto.
2495 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2496 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2497 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2498 maint_cplus_cmd_list.
2499 * cp-support.c: Make maint_cplus_cmd_list extern.
2500 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2501 command.h.
2502 (lookup_symbol_file): Look in possible namespace blocks when
2503 appropriate.
2504 (initialize_namespace_symtab): New.
2505 (get_possible_namespace_block, free_namespace_block)
2506 (check_possible_namespace_symbols)
2507 (check_possible_namespace_symbols_loop)
2508 (check_one_possible_namespace_symbol)
2509 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2510 (_initialize_cp_namespace): Ditto.
2511 * block.h: Declare allocate_block.
2512 * block.c (allocate_block): New.
2513 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2514 allocate_block.
2515 * symfile.h: Update declaration of add_psymbol_to_list.
2516 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2517 question.
2518 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2519 scan_partial_symbols_call.
2520 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2521 helper functions.
2522 (add_partial_symbol): If necessary, scan mangled names for names
2523 of namespaces.
2524 (add_partial_namespace): Add NAMESPACE argument; generate partial
2525 symbols associated to namespaces.
2526 (add_partial_enumeration): Add NAMESPACE argument.
2527 (new_symbol): Allow namespace syms.
2528 (read_namespace): Generate namespace syms.
2529 * objfiles.h: Add opaque declaration of struct symtab.
2530 (struct objfile): Add cp_namespace_symtab member.
2531 * objfiles.c (allocate_objfile): Set
2532 objfile->cp_namespace_symtab.
2533 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2534 dictionary_h, command_h.
2535
33a7c2fc
AC
25362003-09-11 Andrew Cagney <cagney@redhat.com>
2537
2538 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2539 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2540 near the function's end.
2541 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2542 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2543 regcache_raw_write_signed to set SP_REGNUM.
2544
63cd24fe
EZ
25452003-09-11 Elena Zannoni <ezannoni@redhat.com>
2546
2547 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2548 orig_addrs is set up properly.
2549
f27dd7fd
AC
25502003-09-11 Andrew Cagney <cagney@redhat.com>
2551
2552 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2553 * gdbarch.h, gdbarch.c: Re-generate.
2554 * infcall.c (call_function_by_hand): Update.
2555 * hppa-tdep.c (hppa_push_arguments): Update.
2556 * ada-lang.c (place_on_stack): Update.
2557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2558 * sparc-tdep.c (sparc_gdbarch_init): Update.
2559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2560 * hppa-tdep.c (hppa_gdbarch_init): Update.
2561 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2562 stack_align.
2563
f630a401
DJ
25642003-09-11 Daniel Jacobowitz <drow@mvista.com>
2565
2566 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2567 register do need a frame.
2568
0ddabb4c
AC
25692003-09-11 Andrew Cagney <cagney@redhat.com>
2570
2571 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2572 buildable since GDB 5.0.
2573 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2574 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2575 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2576 * irix4-nat.c: Delete file.
2577 * config/mips/irix4.mh: Delete file.
2578 * config/mips/irix3.mh: Delete file.
2579 * config/mips/irix3.mt: Delete file.
2580 * config/mips/tm-irix3.h: Delete file.
2581 * config/mips/nm-irix3.h: Delete file.
2582 * config/mips/xm-irix3.h: Delete file.
2583 * config/mips/nm-irix4.h: Delete file.
2584 * config/mips/xm-irix4.h: Delete file.
2585 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2586
fde2cceb
JB
25872003-09-10 J. Brobecker <brobecker@gnat.com>
2588
2589 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2590 * Makefile.in (hppa-tdep.o): Update dependencies.
2591
66f667f5
JW
25922003-09-10 James E Wilson <wilson@specifixinc.com>
2593
ef5fd69f
JW
2594 * MAINTAINERS: Change my e-mail address. Move to paper trail
2595 section.
66f667f5 2596
53e8aaea
KB
25972003-09-10 Kevin Buettner <kevinb@redhat.com>
2598
2599 * MAINTAINERS (frv): New ISA entry.
2600
dcc6aaff
KB
26012003-09-10 Kevin Buettner <kevinb@redhat.com>
2602
2603 * frv-tdep.c (dis-asm.h): Include.
2604 * Makefile.in (frv-tdep.o): Update dependencies.
2605
932644f0
JJ
26062003-09-09 Jeff Johnston <jjohnstn@redhat.com>
2607
2608 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
2609 Fix typo for high range of floating registers.
2610
91c24f0a
DC
26112003-09-09 David Carlton <carlton@kealia.com>
2612
2613 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
2614 highpc initialization here out of scan_partial_symbols.
2615 (scan_partial_symbols): Restructure into a recursive version,
2616 calling add_partial_namespace and add_partial_enumeration when
2617 appropriate.
2618 (add_partial_namespace): New.
2619 (add_partial_enumeration, locate_pdi_sibling): Ditto.
2620
c9263853
AC
26212003-09-09 Andrew Cagney <cagney@redhat.com>
2622
e56a0ecc
AC
2623 * rs6000-tdep.c (ppc_push_return_address): Delete function.
2624 (rs6000_push_dummy_call): Set LR to BP_ADDR.
2625 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
2626 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2627
794a477a
AC
2628 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
2629 (rs6000_push_dummy_call): Set the "TOC" register.
2630
c9263853
AC
2631 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
2632 methods "max_register_raw_size", "max_register_virtual_size" or
2633 "register_virtual_size".
2634
afa7d0b2
ILT
26352003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
2636
2637 * MAINTAINERS: Update my e-mail address.
2638
7a41266b
AC
26392003-09-09 Andrew Cagney <cagney@redhat.com>
2640
2641 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
2642 (rs6000_push_dummy_call): Store the struct return address.
2643 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
2644
77b2b6d4
AC
26452003-09-09 Andrew Cagney <cagney@redhat.com>
2646
2647 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
2648 "ppc_sysv_abi_push_arguments".
2649 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
2650 "ppc_sysv_abi_push_arguments".
2651 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
2652 instead of "push_arguments".
2653 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
2654
e8a7b686
AC
26552003-09-09 Andrew Cagney <cagney@redhat.com>
2656
2657 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
2658 instead of CALL_DUMMY_ADDRESS.
2659
f86f5ca3
PH
26602003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
2661
2662 * p-lang.c: Eliminate "register".
2663 * c-lang.c: Ditto.
2664 * expprint.c: Ditto.
2665 * f-lang.c: Ditto.
2666 * jv-lang.c: Ditto.
2667 * language.c: Ditto.
2668 * m2-lang.c: Ditto.
2669 * parse.c: Ditto.
2670 * scm-lang.c: Ditto.
2671 * objc-lang.c: Ditto.
2672
83ee270e
NC
26732003-09-09 Nick Clifton <nickc@redhat.com>
2674
2675 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
2676
a89aa300
AC
26772003-09-04 Andrew Cagney <cagney@redhat.com>
2678
2679 * avr-tdep.c: Include "dis-asm.h".
2680 * cris-tdep.c: Include "dis-asm.h".
2681 (cris_delayed_get_disassembler): Use "struct disassemble_info"
2682 instead of corresponding typedef.
2683 * h8300-tdep.c: Include "dis-asm.h".
2684 * ia64-tdep.c: Include "dis-asm.h".
2685 * i386-tdep.c: Include "dis-asm.h".
2686 (i386_print_insn): Use "struct disassemble_info" instead of
2687 corresponding typedef.
2688 * m68k-tdep.c: Include "dis-asm.h".
2689 * mcore-tdep.c: Include "dis-asm.h".
2690 * mips-tdep.c: Include "dis-asm.h".
2691 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
2692 instead of corresponding typedef.
2693 * ns32k-tdep.c: Include "dis-asm.h".
2694 * s390-tdep.c: Include "dis-asm.h".
2695 * sparc-tdep.c: Include "dis-asm.h".
2696 * vax-tdep.c: Include "dis-asm.h".
2697 * v850-tdep.c: Include "dis-asm.h".
2698 * mn10300-tdep.c: Include "dis-asm.h".
2699 * rs6000-tdep.c: Include "dis-asm.h".
2700 * xstormy16-tdep.c: Include "dis-asm.h".
2701 (_initialize_xstormy16_tdep): Delete "extern" declaration of
2702 print_insn_xstormy16.
2703 * Makefile.in (v850-tdep.o): Update dependencies.
2704 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
2705 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
2706 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
2707 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
2708 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
2709 (gdbarch_h): Remove $(dis_asm_h).
2710 * disasm.c: Include "dis-asm.h".
2711 (dis_asm_read_memory): Use "struct disassemble_info" instead of
2712 corresponding typedef.
2713 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
2714 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
2715 * gdbarch.sh: Do not include "dis-asm.h".
2716 (struct disassemble_info): Declare opaque.
2717 (TARGET_PRINT_INSN): Update declaration.
2718 * gdbarch.h, gdbarch.c: Re-generate.
2719
88a82a65
AC
27202003-09-08 Andrew Cagney <cagney@redhat.com>
2721
2722 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
2723 CALL_DUMMY_ADDRESS, change to a predicate.
2724 * gdbarch.h, gdbarch.c: Re-generate.
2725 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2726 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
2727 * infcall.c (call_function_by_hand): Ditto.
2728 * sparc-tdep.c (sparc_push_return_address): Ditto.
2729 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
2730 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
2731 CALL_DUMMY_ADDRESS with entry_point_address.
2732 * v850-tdep.c (v850_push_return_address): Ditto.
2733 * s390-tdep.c (s390_push_return_address): Ditto.
2734 * rs6000-tdep.c (ppc_push_return_address): Ditto.
2735 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
2736 * mcore-tdep.c (mcore_push_return_address): Ditto.
2737 * cris-tdep.c (cris_push_return_address): Ditto.
2738 * arm-tdep.c (arm_push_return_address): Ditto.
2739
3e2c4033
AC
27402003-09-08 Andrew Cagney <cagney@redhat.com>
2741
2742 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
2743 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
2744 and REG_UNMODIFIED to REG_SAME_VALUE.
2745 (execute_cfa_program): Update.
2746 (dwarf2_frame_cache): Update. Initialize table to
2747 REG_UNSPECIFIED, complain if CFI fails to specify a register's
2748 location.
2749 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
2750
39efb398
AC
27512003-09-08 Andrew Cagney <cagney@redhat.com>
2752
2753 * gnu-nat.c: Remove "inline" function attribute.
2754 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2755
f5cb5aca
KB
27562003-09-08 Kevin Buettner <kevinb@redhat.com>
2757
2758 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
2759 target.
2760
1cb761c7
KB
27612003-09-08 Kevin Buettner <kevinb@redhat.com>
2762
2763 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
2764 (frame_extra_info): Rename this struct to frv_unwind_cache.
2765 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
2766 Add fields ``prev_sp'' and ``base''.
2767 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
2768 (frv_saved_pc_after_call, frv_init_extra_frame_info)
2769 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
2770 Delete.
2771 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
2772 Revise all callers. Fill in the unwind cache argument and make
2773 other adjustments to account for new frame mechanisms.
2774 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
2775 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
2776 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
2777 (frv_frame_unwind, frv_frame_base): New structs.
2778 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
2779 additional arguments expected by this method and adjust function
2780 body accordingly.
2781 (frv_gdbarch_init): Remove calls to the following functions:
2782 set_gdbarch_deprecated_init_frame_pc(),
2783 set_gdbarch_deprecated_saved_pc_after_call(),
2784 set_gdbarch_deprecated_frame_chain(),
2785 set_gdbarch_deprecated_frame_saved_pc(),
2786 set_gdbarch_deprecated_frame_init_saved_regs(),
2787 set_gdbarch_deprecated_push_arguments(),
2788 set_gdbarch_deprecated_push_return_address(),
2789 set_gdbarch_deprecated_pop_frame(),
2790 set_gdbarch_deprecated_call_dummy_words(),
2791 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2792 set_gdbarch_deprecated_init_extra_frame_info(),
2793 set_gdbarch_deprecated_dummy_write_sp(), and
2794 set_gdbarch_deprecated_pc_in_call_dummy().
2795 Add calls to the following functions:
2796 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
2797 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
2798 frame_base_set_default().
2799 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 2800
68f6cf99
MK
28012003-09-09 Mark Kettenis <kettenis@gnu.org>
2802
2803 * dwarf2-frame.c (read_encoded_value): Add support for
2804 DW_EH_PE_aligned encoding.
2805
73b65bb0
DJ
28062003-09-08 Daniel Jacobowitz <drow@mvista.com>
2807
2808 * infrun.c (normal_stop): Don't print a message if the inferior
2809 has exited.
2810
7c8a5605
JB
28112003-09-08 Jim Blandy <jimb@redhat.com>
2812
2813 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
2814 * dbxread.c: #include "gdb_assert.h".
2815 (read_dbx_symtab): If the objfile has no .data section, use the
2816 section index for the .bss section instead.
2817
7dd88986
DJ
28182003-09-08 Daniel Jacobowitz <drow@mvista.com>
2819
2820 * frame.c (deprecated_safe_get_selected_frame): New function.
2821 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
2822 * findvar.c (read_var_value): Call it.
2823
55ff77ac
CV
28242003-09-08 Corinna Vinschen <vinschen@redhat.com>
2825
2826 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2827 (sh64-tdep.o): Add dependencies.
2828 * configure.tgt: Add FIXME to sh-*-linux*.
2829 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2830 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 2831 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
2832 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2833 * sh64-tdep.c: New file, containing all sh64 related code from
2834 sh-tdep.c.
2835 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2836 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 2837 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
2838 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2839 * config/sh/wince.mt (TDEPFILES): Ditto.
2840
bfb39158
DJ
28412003-09-07 Daniel Jacobowitz <drow@mvista.com>
2842
2843 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2844 (stop_wait_callback): Handle !lp->signalled also.
2845 (lin_lwp_has_pending, flush_callback): New functions.
2846 (lin_lwp_wait): Call flush_callback.
2847 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2848 (linux_proc_pending_signals): New function.
2849 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2850
9407de8e
DJ
28512003-09-07 Daniel Jacobowitz <drow@mvista.com>
2852
2853 From Nick Kelsey <nickk@ubicom.com>:
2854 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2855 when the stop PC is at the beginning of a function also.
2856
2ef47cd0
DJ
28572003-09-06 Daniel Jacobowitz <drow@mvista.com>
2858
2859 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2860 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2861
6f4492c8
MK
28622003-09-06 Mark Kettenis <kettenis@gnu.org>
2863
2864 * sol-thread.c: Include "gdb_string.h".
2865
d3420b2f
MK
28662003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2867
2868 * gcore.c: Reorder include files in alphabetical order. Include
2869 "gdb_assert.h". Various coding style fixes.
2870 (derive_stack_segment, derive_heap_segment): Replace check for
2871 non-null BOTTOM and TOP with gdb_assert.
2872 (derive_heap_segment): Replace check for successful creation of
2873 ZERO with gdb_assert.
2874 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2875
5220ea4c
AC
28762003-09-04 Andrew Cagney <cagney@redhat.com>
2877
2878 * thread-db.c (verbose_dlsym): New function.
2879 (thread_db_load): Use verbose_dlsym
2880 (thread_db_new_objfile): Print that libthread_db was loaded, and
2881 that thread debugging was enabled.
2882
6e8c2c06
AC
28832003-09-04 Andrew Cagney <cagney@redhat.com>
2884
2885 * configure.tgt: Add "mips64*-*-*" target. Delete
2886 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2887 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2888 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2889 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2890 mips*-sony-*, and mips64*-*-elf* targets.
2891 * config/mips/embedl.mt: Delete file.
2892 * config/mips/embedl64.mt: Delete file.
2893 * config/mips/mips.mt: Delete file.
2894 * config/mips/mips64.mt: Delete file.
2895 * config/mips/tm-embed.h: Delete file.
2896 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2897 * config/mips/embed64.mt: Delete out-of-date comment.
2898
3a3bc038
AC
28992003-09-04 Andrew Cagney <cagney@redhat.com>
2900
2901 * hppa-tdep.c (hppa_gdbarch_init): Set
2902 "have_nonsteppable_watchpoint".
2903 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2904 * mips-tdep.c (mips_dump_tdep): Do not print
2905 HAVE_NONSTEPPABLE_WATCHPOINT.
2906 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2907 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2908 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2909 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2910
a957e642
CV
29112003-09-04 Corinna Vinschen <vinschen@redhat.com>
2912
2913 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2914 unused code. Add comment.
2915
a6fbcf2f
CV
29162003-09-04 Corinna Vinschen <vinschen@redhat.com>
2917
2918 * breakpoint.c (watchpoint_check): Check for pc being in an
2919 epilogue if watchpoint frame couldn't be found.
2920
c14a44d5
AC
29212003-09-04 Andrew Cagney <cagney@redhat.com>
2922
2923 * Makefile.in: Re-generate all dependencies.
2924
f6c40618
AC
29252003-09-03 Andrew Cagney <cagney@redhat.com>
2926
2927 * arch-utils.h (legacy_print_insn): Delete declaration.
2928 * arch-utils.c (legacy_print_insn): Delete function.
2929 * disasm.c (deprecated_tm_print_insn_info): Delete.
2930 (_initialize_disasm): Delete function, contained code initializing
2931 deprecated_tm_print_insn_info.
2932 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2933 (deprecated_tm_print_insn_info): Delete.
2934 (TARGET_PRINT_INSN): Do not provide a default.
2935 * gdbarch.h, gdbarch.c: Re-generate.
2936
242e8be5
AC
29372003-09-03 Andrew Cagney <cagney@redhat.com>
2938
2939 * disasm.c (fprintf_disasm): New function.
2940 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2941 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2942 reverts 2003-08-14 change.
2943 (_initialize_disasm): Call "init_disassemble_info", instead of
2944 INIT_DISASSEMBLE_INFO_NO_ARCH.
2945
3ffc3dda
MS
29462003-09-03 Michael Snyder <msnyder@redhat.com>
2947
2948 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2949
52d16ba8
AC
29502003-09-03 Andrew Cagney <cagney@redhat.com>
2951
2952 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2953 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2954 * symfile.c (syms_from_objfile): Update.
2955 (reread_symbols): `Update
2956 * exec.c (exec_file_attach): Update.
2957 (exec_file_attach): Update.
2958 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2959 2003-08-29 change.
2960 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2961
eb5492fa
DJ
29622003-09-03 Daniel Jacobowitz <drow@mvista.com>
2963
2964 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2965 trad-frame.h.
2966 (arm_get_cache): Delete macro.
2967 (struct arm_prologue_cache): Update comments. Make saved_regs into
2968 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2969 to prev_sp.
2970 (thumb_scan_prologue): Update for cache changes. Don't call
2971 DEPRECATED_PC_IN_CALL_DUMMY.
2972 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2973 argument and use it in desperation search for our prologue. Do not
2974 search past the specified PC.
2975 (arm_make_prologue_cache): Simplify.
2976
2977 (arm_prologue_this_id, arm_prologue_prev_register)
2978 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2979 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2980 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2981 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2982 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2983
2984 (arm_frame_chain_valid, arm_find_callers_reg)
2985 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2986 (arm_pop_frame): Delete obsolete methods.
2987 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2988
2989 (arm_gdbarch_init): Update for new frame methods. Register prologue
2990 and sigtramp unwinders. Set the default frame base method.
2991
2992 * Makefile.in (arm-tdep.o): Update dependencies.
2993 * varobj.c (find_frame_addr_in_frame_chain): Call
2994 get_frame_base_address.
2995 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2996
24de872b
DJ
29972003-09-03 Daniel Jacobowitz <drow@mvista.com>
2998
2999 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3000 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3001 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3002 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3003 Take NEXT_FRAME and CACHE arguments. Call
3004 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3005 Set unwound_pc in CACHE instead of modifying the frame argument.
3006 Don't bother checking the frame type when looking for sigtramp
3007 frames.
3008 (arm_make_prologue_cache, arm_frame_chain)
3009 (arm_init_extra_frame_info): New functions.
3010
9b8d791a
DJ
30112003-09-03 Daniel Jacobowitz <drow@mvista.com>
3012
3013 * arm-tdep.c (arm_get_cache): Define.
3014 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3015 unwound_sp, unwound_pc, and saved_regs.
3016 (thumb_scan_prologue): Take a cache instead of the frame.
3017 (arm_scan_prologue): Likewise.
3018 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3019 instead of a temporary frame.
3020 (arm_init_extra_frame_info): Allocate and use a cache.
3021 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3022
7ee3275f
AC
30232003-09-03 Andrew Cagney <cagney@redhat.com>
3024
3025 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3026 * config/mips/wince.mt (TM_CLIBS): Ditto.
3027 * config/sh/wince.mt (TM_CLIBS): Ditto.
3028 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3029 * config/sparc/sp64.mt (CC): Delete.
3030
57b29be7
AC
30312003-09-03 Andrew Cagney <cagney@redhat.com>
3032
3033 * defs.h: Do not include "arch-utils.h".
3034 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3035 GDB_MULTI_ARCH_PURE.
3036 * configure.in (GDB_MULTI_ARCH): Do not define.
3037 * configure, config.in: Regenerate.
3038 * configure.tgt: Do not set variable "gdb_multi_arch".
3039 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3040 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3041 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3042 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3043 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3044 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3045 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3046 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3047 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3048 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3049 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3050 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3051 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3052 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3053 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3054 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3055 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3056 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3057
12e035e2
MC
30582003-08-30 Michael Chastain <mec@shout.net>
3059
3060 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3061 * config/m68k/nm-hp300hpux.h: Delete.
3062 * config/m68k/tm-hp300hpux.h: Delete.
3063 * config/m68k/xm-hp300hpux.h: Delete.
3064 * config/m68k/xm-hp300bsd.h: Delete.
3065 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3066 tm-hp300hpux.h, xm-hp300hpux.h.
3067 * somsolib.c: Remove comment about hp300 shared libraries.
3068
bda34dc2
MK
30692003-08-31 Mark Kettenis <kettenis@gnu.org>
3070
5bca7895
MK
3071 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3072 Only define PTRACE_GET_THREAD_AREA is not already defined.
3073 Various style fixes in code and comments and some additional
3074 spelling fixes in comments. Move after functions dealing with
3075 debug registers.
3076 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3077 Fix coding-style.
3078
bda34dc2
MK
3079 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3080 frame_unwind_register_unsigned instead of
3081 frame_unwind_unsigned_register.
3082
c890192f
MK
30832003-08-30 Mark Kettenis <kettenis@gnu.org>
3084
3085 * configure.in: Search for gethostbyname in libnsl.
3086 * configure: Regenerated.
3087
60fac5b8
MK
30882003-08-29 Mark Kettenis <kettenis@gnu.org>
3089
e294916c
MK
3090 * configure.in: Remove redundant AC_MSG_RESULT in check for
3091 uintptr_t in stdint.h.
3092 * configure: Regenerated.
3093
c40d267a
MK
3094 * amd64-nat.h (struct regcache): Add opaque declaration.
3095
60fac5b8
MK
3096 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3097 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3098 Change "register array" to "register cache" in comments.
3099 (x86_64_linux_gregset64_reg_offset): New variable.
3100 (GETREGS_SUPPLIES): Remove macro.
3101 (supply_gregset): Call amd64_supply_native_gregset instead of
3102 x86_64_linux_supply_gregset.
3103 (fill_gregset): Rename `regno' to `regnum'. Call
3104 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3105 (store_regs): Rename `regno' to `regnum'.
3106 (store_fpregs): Rename `regno' to `regnum'.
3107 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3108 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3109 Reorganize function a bit.
3110 (store_inferior_registers): Rename `regno' to `regnum'. Use
3111 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3112 Reorganize function a bit.
3113 (_initialize_x86_64_linux_nat): New function.
3114 * config/i386/x86-64linux.mh.
3115
546143b6
AC
31162003-08-29 Andrew Cagney <cagney@redhat.com>
3117
3118 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3119 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3120 (target_remove_watchpoint): Delete macro.
3121 (target_insert_watchpoint): Delete macro.
3122 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3123 (remote_mips_stopped_by_watchpoint): Delete declaration.
3124 (remote_mips_remove_watchpoint): Delete declaration.
3125 (remote_mips_set_watchpoint): Delete declaration.
3126 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3127 * remote-mips.c (_initialize_remote_mips): Set
3128 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3129 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3130 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3131 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3132 (mips_stopped_by_watchpoint): Rename
3133 remote_mips_stopped_by_watchpoint.
3134 (mips_can_hardware_watchpoint): Rename
3135 remote_mips_can_use_hardware_watchpoint, update function
3136 signature.
3137
7bace51b
MK
31382003-08-29 Mark Kettenis <kettenis@gnu.org>
3139
b0f5c6f2
MK
3140 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3141 USER_DS. We haven't given them a register number yet.
3142
2a6d284d
MK
3143 * amd64-nat.h: New file.
3144 * amd64-nat.c: New file.
3145 * amd64fbsd-nat.c: Include "amd64-nat.h".
3146 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3147 (amd64fbsd32_r_reg_offset): New variable.
3148 (supply_gregset): Simply call amd64_supply_native_gregset.
3149 (fill_gregset): Rename `regno' to `regnum'. Simply call
3150 amd64_collect_native_gregset.
3151 (fill_fpregset): Rename `regno' to `regnum'.
3152 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3153 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3154 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3155 `fpregset_t'. Call amd64_supply_native_gregset instead of
3156 supply_gregset. Call x86_64_supply_fxsave instead of
3157 supply_fpregset.
3158 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3159 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3160 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3161 `fpregset_t'. Call amd64_collect_native_gregset instead of
3162 fill_gregset. Call x86_64_collect_fxsave instead of
3163 fill_fpregset.
3164 (_initialize_am64fbsd_nat): Initialize
3165 amd64_native_gregset32_reg_offset and
3166 amd64_native_gregset64_reg_offset.
3167 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3168
a16d75cc
MK
3169 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3170 null pointer. Fix typo in comment.
3171
7bace51b
MK
3172 * regcache.c (supply_register): Reimplement to call
3173 regcache_raw_supply.
3174 (regcache_collect): Reimplement by calling regcache_raw_collect.
3175
9a661b68
MK
31762003-08-28 Mark Kettenis <kettenis@gnu.org>
3177
3178 * regcache.c (register_buffer): Consitify first argument.
3179 (regcache_raw_supply, regcache_raw_collect): New
3180 functions.
3181
e94cc8fa
DJ
31822003-08-28 Daniel Jacobowitz <drow@mvista.com>
3183
3184 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3185 by Nathan J. Williams.
3186
c64bd0ce
DJ
31872003-08-28 Daniel Jacobowitz <drow@mvista.com>
3188
3189 * lin-lwp.c (wait_lwp): New function, copied from
3190 stop_wait_callback. Clean up.
3191 (stop_wait_callback): Use wait_lwp.
3192
e5ab0dce
AC
31932003-08-28 Andrew Cagney <cagney@redhat.com>
3194
3195 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3196 flavour and disassembler options.
3197 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3198 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3199 deprecated_tm_print_insn_info.
a8f4cde1 3200
a788de9b
AC
32012003-08-27 Andrew Cagney <cagney@redhat.com>
3202
3203 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3204 Use target_read_memory.
3205 (s390_get_frame_info): Update. Do not reference
3206 deprecated_tm_print_insn_info.
3207 (s390_check_function_end, s390_is_sigreturn): Ditto.
3208
36482093
AC
32092003-08-27 Andrew Cagney <cagney@redhat.com>
3210
3211 * Makefile.in (cris-tdep.o): Update dependencies.
3212 * cris-tdep.c: Include "gdb_assert.h".
3213 (cris_gdbarch_init): Set print_insn.
3214 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3215 (cris_delayed_get_disassembler): Simplify, directly call the
3216 disassembler returned by cris_get_disassembler.
3217 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3218 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3219 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3220 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3221 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3222 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3223 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3224 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3225 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3226 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3227 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3228 (gdb_print_insn_sparc): Delete function.
3229 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3230 deprecated_tm_print_insn_info.
3231 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3232 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3233 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3235 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3236 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3237 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3238 (s390_gdbarch_init): Set print_insn.
3239
0285512f
AC
32402003-08-27 Andrew Cagney <cagney@redhat.com>
3241
3242 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3243 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3244 * infcall.c (call_function_by_hand): Convert the entry point
3245 address into a code address.
3246
cdcd5552
AC
32472003-08-27 Andrew Cagney <cagney@redhat.com>
3248
3249 * dsrec.c: Include "gdb_string.h".
3250 * Makefile.in (dsrec.o): Update dependencies.
3251
e85cddad
MC
32522003-08-27 Michael Chastain <mec@shout.net>
3253
3254 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3255
8bbfbb23
AC
32562003-08-27 Andrew Cagney <cagney@redhat.com>
3257
3258 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3259 (alpha_osf1_init_abi): Do not set call_dummy_address.
3260
ba058b66
DC
32612003-08-27 David Carlton <carlton@kealia.com>
3262
3263 From Randolph Chung <tausq@debian.org>:
3264 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3265 compiles with -Wformat-nonliteral -Werror.
3266
87f84c9d
JB
32672003-08-26 Jim Blandy <jimb@redhat.com>
3268
3269 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3270 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3271 bfd_lookup_symbol, since we only want symbols in code sections.
3272 (look_for_base): Pass zero as the SECT_FLAGS argument to
3273 bfd_lookup_symbol, since we're not concerned about which section
3274 the symbol is in.
3275
102d615a
JJ
32762003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3277
3278 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3279 we are frameless or the return address register is already known.
102d615a 3280
cc7ad3ea
AC
32812003-08-26 Andrew Cagney <cagney@redhat.com>
3282
3283 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3284 in size. Add comments.
3285
af8b88dd
JJ
32862003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3287
3288 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3289 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3290
e0a4f5a1
JM
32912003-08-26 Jason Merrill <jason@redhat.com>
3292
3293 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3294 case out of #ifdef MIPS block.
3295
4ae9ee8e
DJ
32962003-08-25 Daniel Jacobowitz <drow@mvista.com>
3297
3298 PR java/1322
3299 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3300 available before calling SECT_OFF_TEXT.
3c164570 3301 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3302
004d836a
JJ
33032003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3304
a8f4cde1 3305 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3306 bof, and nat0-nat127 as pseudo-registers.
3307 (ia64_frame_cache): New struct used to cache frame info.
3308 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3309 register grouping so registers without names are still saved and
004d836a 3310 restored.
a8f4cde1 3311 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3312 pseudo values.
3313 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3314 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3315 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3316 ia64_frame_cache.
3317 (examine_prologue): Change prototype to add next_frame pointer.
3318 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3319 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3320 alloc insn and if equal, mark as not frameless. At end of routine,
3321 if not frameless, calculate registers for the previous frame and store
3322 in the cache, if a cache is provided.
3323 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3324 and pass 0 for next_frame.
3325 (ia64_store_return_value): Change to use convert_typed_floating()
3326 instead of calling ia64_convert_to_raw().
3327 (ia64_extract_return_value): Change to use convert_typed_floating()
3328 instead of calling ia64_convert_to_virtual().
3329 (ia64_frame_cache): New routine to support new frame model.
3330 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3331 (ia64_frame_sniffer): Ditto.
3332 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3333 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3334 (ia64_sigtramp_frame_prev_register): Ditto.
3335 (ia64_sigtramp_frame_sniffer): Ditto.
3336 (ia64_frame_base_address): Ditto.
3337 (ia64_extract_struct_value_address): Change to issue error message.
3338 (ia64_frame_align): New routine to align sp.
3339 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3340 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3341 ia64_push_dummy_call().
3342 (ia64_push_return_address): Ditto.
3343 (ia64_unwind_dummy_id): New function.
3344 (ia64_unwind_pc): Ditto.
3345 (ia64_convert_register_p): Ditto.
3346 (ia64_register_to_value): Ditto.
3347 (ia64_value_to_register): Ditto.
3348 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3349 (ia64_register_byte, ia64_register_raw_size): Ditto.
3350 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3351 (ia64_saved_pc_after_call): Ditto.
3352 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3353 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3354 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3355 (ia64_register_convert_to_raw): Ditto.
3356 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3357 (ia64_init_extra_frame_info): Ditto.
3358 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3359 (ia64_gdbarch_init): Remove registering of deprecated functions that
3360 are no longer used. Add registration of new gdbarch functions.
3361 Remove registering deprecated_write_sp. Replace
3362 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3363 Delete set_gdbarch_deprecated_register_convertible(),
3364 set_gdbarch_deprecated_register_convert_to_virtual(), and
3365 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3366 set_gdbarch_deprecated_register_size(),
3367 set_gdbarch_deprecated_register_bytes(),
3368 set_gdbarch_pcregnum(),
3369 set_gdbarch_deprecated_register_byte(),
3370 set_gdbarch_deprecated_register_raw_size(),
3371 set_gdbarch_deprecated_max_register_raw_size(),
3372 set_gdbarch_deprecated_register_virtual_size(),
3373 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3374 Replace set_gdbarch_deprecated_extract_return_value() with
3375 set_gdbarch_extract_return_value(). Remove calls to:
3376 set_gdbarch_deprecated_saved_pc_after_call();
3377 set_gdbarch_deprecated_frame_chain(),
3378 set_gdbarch_deprecated_frame_saved_pc(),
3379 set_gdbarch_deprecated_frame_init_saved_regs(),
3380 set_gdbarch_deprecated_get_saved_register(),
3381 set_gdbarch_deprecated_call_dummy_words(),
3382 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3383 set_gdbarch_deprecated_init_extra_frame_info(),
3384 set_gdbarch_deprecated_frame_args_address(),
3385 set_gdbarch_deprecated_frame_locals_address(),
3386 and set_gdbarch_deprecated_dummy_write_sp().
3387 Add set_gdbarch_convert_register_p(),
3388 set_gdbarch_register_to_value(),
3389 set_gdbarch_value_to_register(),
3390 set_gdbarch_push_dummy_call(),
3391 set_gdbarch_frame_align(),
3392 set_gdbarch_unwind_dummy_id(),
3393 set_gdbarch_unwind_pc(),
3394 frame_unwind_append_sniffer(),
3395 frame_unwind_append_sniffer(),
3396 and frame_base_set_default().
3397
aede7613
CD
33982003-08-25 Chris Demetriou <cgd@broadcom.com>
3399
3400 * configure.tgt: Document need for special "mipsisa64" handling.
3401 (mipsisa64*-*-linux64): Handle as target linux64.
3402 (mipsisa64*-*-*): Handle as target embed64.
3403
43c3a82e
MC
34042003-08-18 Michael Chastain <mec@shout.net>
3405
3406 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3407 objfile bug.
3408
6564f77d
MK
34092003-08-24 Mark Kettenis <kettenis@gnu.org>
3410
2de139ba
MK
3411 * i387-tdep.h: Update copyright date.
3412 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3413
6564f77d
MK
3414 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3415 CFLAGS games to reflect reality.
3416
42cf1509
AC
34172003-08-24 Andrew Cagney <cagney@redhat.com>
3418
3419 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3420 GDB_MULTI_ARCH is always non-zero.
3421 * osabi.c (_initialize_gdb_osabi): Ditto.
3422 (gdbarch_init_osabi): Ditto.
3423 * sparc-tdep.c: Ditto for #if code.
3424
0485f6ad
MK
34252003-08-23 Mark Kettenis <kettenis@gnu.org>
3426
3427 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3428 Update comments.
3429 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3430 comments.
3431 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3432 x86_64_supply_fxsave.
3433 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3434 x86_64_supply_fxsave.
3435 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3436 x86_64_supply_fxsave.
3437
c7716133
AJ
34382003-08-23 Andreas Jaeger <aj@suse.de>
3439
3440 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3441 i387_supply_fxsave.
3442
ed504bdf
MK
34432003-08-23 Mark Kettenis <kettenis@gnu.org>
3444
3445 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3446 i387_supply_register.
3447 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3448 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3449 i387_supply_fsave.
3450 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3451 i387_supply_fxsave.
3452 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3453 i387_supply_fsave.
3454 * i386bsd-nat.c (supply_fpregset): Adjust call to
3455 i387_supply_fsave.
3456 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3457 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3458 supply_fpregset.
3459 (store_inferior_registers): Remove extraneous whitespace. Call
3460 i387_fill_fsave instead of fill_fpregset.
3461 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3462 (supply_fpregset): Likewise.
3463 * i386v4-nat.c (supply_fpregset): Adjust call to
3464 i387_supply_fsave.
3465 * i386-interix-nat.c (supply_fpregset): Adjust call to
3466 i387_supply_fsave.
3467 * i386-linux-nat.c (supply_fpregset): Adjust call to
3468 i387_supply_fsave.
3469 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3470 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3471 i387supply_fsave and i387_supply_fxsave.
3472 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3473 Incorporate code from `i387_supply_register.
3474 (i387_supply_register): Remove.
3475 (i387_supply_fxsave): Add `regnum' argument.
3476 Update comments.
3477 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3478 prototype.
3479 (i387_supply_register): remove prototype.
3480 Update comments.
a8f4cde1 3481
4be5d520
MC
34822003-08-22 Michael Chastain <mec@shout.net>
3483
3484 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3485 Add lines for files in gdb/testsuite/gdb.cp/* that are
3486 still not 8.3 unique.
3487
7ed85d26
DJ
34882003-08-22 Daniel Jacobowitz <drow@mvista.com>
3489
3490 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3491 TYPE_VPTR_FIELDNO is valid.
3492
eb0d3137
MK
34932003-08-19 Mark Kettenis <kettenis@gnu.org>
3494
3495 * utils.c (set_width_command): Remove prototypes.
3496 (set_screen_size): New prototype.
3497 (init_page_info): Simplify by fetching the screen size from
3498 Readline. Call set_screen_size.
3499 (set_screen_size): New function.
3500 (set_width): Add missing whitespace in comment.
3501 (set_width_command): Call set_screen_size.
3502 (set_height_command): New function.
3503 (initialize_utils): Fix formatting. Make "set height" command
3504 call set_height_command. Remove redundant code that turns off
3505 pagination if output isn't a terminal. Remove redundant call to
3506 set_width_command.
a8f4cde1 3507
7e6d0ac8
MK
35082003-08-22 Mark Kettenis <kettenis@gnu.org>
3509
3567a8ea
MK
3510 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3511 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3512 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3513 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3514 `case' keyword.
3515 (sparc64_register_info): Give the reister with number
3516 SPARC64_STATE_REGNUM a name.
3517 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3518 %asi and %ccr.
3519 (sparc64_push_dummy_call): Take BIAS into account when checking
3520 stcak alignment.
3521 (sparc_software_single_step): Remove assertions that check whether
3522 NPC and NNPC were zero.
3523 (sparc_supply_rwindow): Make public. Merge functionality with
3524 sparc64_supply_rwindow.
3525 (sparc_fill_rwindow): Make public. Merge functionality with
3526 sparc64_fill_rwindow.
3527 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3528 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3529 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3530 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3531 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3532
7e6d0ac8
MK
3533 * reggroups.c: Add whitespace after declarations of local
3534 variables in functions.
3535
72e5f484
MC
35362003-08-21 Michael Chastain <mec@shout.net>
3537
3538 * gdbtypes.h: Change array bound type from an int to enum.
3539
435ac228
AC
35402003-08-21 Andrew Cagney <cagney@redhat.com>
3541
3542 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3543 * config/sparc/tm-sparc.h: Ditto.
3544 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3545 unconditionally.
3546 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3547
0d0e1a63
MK
35482003-07-13 Mark Kettenis <kettenis@gnu.org>
3549
3550 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3551 (register_objfile_data, set_objfile_data, objfile_data): New
3552 prototypes.
3553 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3554 prototypes.
3555 (allocate_objfile): Call objfile_alloc_data.
3556 (free_objfile): Call objfile_free_data.
3557 (struct objfile_data): New.
3558 (struct objfile_data_registration): New.
3559 (struct objfile_data_registry): New.
3560 (objfile_data_registry): New variable.
3561 (register_objfile_data): New function.
3562 (objfile_alloc_data, objfile_free_data): New functions.
3563 (set_objfile_data, objfile_data): New functions.
3564 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3565 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3566 (_initialize_dwarf2_frame): New function and prototype.
3567
d90cf509
AC
35682003-08-21 Andrew Cagney <cagney@redhat.com>
3569
3570 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3571 a specific architecture.
3572 * arch-utils.h (set_architecture_from_arch_mach): Delete
3573 declaration.
3574 (target_architecture_hook): Delete declaration.
3575 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3576 (default_float_format): Assume GDB_MULTI_ARCH.
3577 (default_double_format): Assume GDB_MULTI_ARCH.
3578 (set_endian_from_file): Delete function.
3579 (arch_ok): Delete function.
3580 (set_arch): Delete function.
3581 (set_architecture_from_arch_mach): Delete function.
3582 (set_architecture_from_file): Delete function.
3583 (set_architecture): Assume GDB_MULTI_ARCH.
3584 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3585
8b39fe56
MK
35862003-08-21 Mark Kettenis <kettenis@gnu.org>
3587
3588 Rewrite FreeBSD/sparc64 native configuration.
3589 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3590 * sparc64fbsd-nat.c: New file.
3591 * sparc64fbsd-tdep.c: New file.
3592 * sparc64-tdep.c sparc64-tdep.h: New files.
3593 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3594 sparc64fbsd-tdep.o): New dependencies.
3595 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3596 and sparc64fbsd-tdep.c.
3597 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3598 * config/sparc/fbsd.mh: Remove copyright notice.
3599 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3600 sparcbsd-nat.o.
3601 * config/sparc/fbsd.mt: Remove copyright notice.
3602 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
3603 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
3604 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
3605 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
3606 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
3607 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
3608 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
3609 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
3610 "sparc/tm-sp64.h".
3611 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
3612 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
3613
a7f19c79
MC
36142003-08-21 Michael Chastain <mec@shout.net>
3615
3616 * symtab.h: Add doco on the space critical structures and
3617 some measurements of space usage.
3618
da08ea5b
MS
36192003-08-21 Michael Snyder <msnyder@redhat.com>
3620
3621 * tracepoint.c (trace_dump_command): Trace break address
3622 is subject to DECR_PC_AFTER_BREAK.
3623 (set_traceframe_context): Make "trace_line" an int.
3624 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 3625
6df2bf50
MS
36262003-08-20 Michael Snyder <msnyder@redhat.com>
3627
3628 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
3629 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
3630 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 3631 argument passing.
a8f4cde1 3632 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
3633 functions, replace sh_push_dummy_call.
3634 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
3635
0955bbf0
MC
36362003-08-20 Michael Chastain <mec@shout.net>
3637
3638 * gdbtypes.h (struct main_type): Rearrange to save space.
3639
260a4188
MS
36402003-08-20 Michael Snyder <msnyder@redhat.com>
3641
3642 * trad-frame.c: Comment typo fix.
3643
8baa6f92
KB
36442003-08-20 Michael Snyder <msnyder@redhat.com>
3645 Kevin Buettner <kevinb@redhat.com>
3646
3647 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
3648 (frv_frame_init_saved_regs): Add declaration.
3649 (frame_extra_info): Add new field ``saved_regs''.
3650 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
3651 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
3652 Update frame related code.
3653 (frv_extract_struct_value_address): Adjust formatting.
3654 * Makefile.in (frv-tdep.o): Update dependencies.
3655 * config/frv/tm-frv.h (target_insert_watchpoint)
3656 (target_remove_watchpoint, target_insert_hw_breakpoint)
3657 (target_remove_hw_breakpoint): Delete these macros.
3658 (remote_insert_watchpoint, remote_remove_watchpoint)
3659 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
3660 these declarations.
3661
87193939
MC
36622003-08-20 Michael Chastain <mec@shout.net>
3663
3664 * defs.h (ENUM_BITFIELD): New macro.
3665 * symtab.h (ENUM_BITFIELD): Use it.
3666 (BYTE_BITFIELD): Remove old macro, which was already disabled.
3667
062103ba
SA
36682003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
3669
3670 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 3671
8b148df9
AC
36722003-08-18 Andrew Cagney <cagney@redhat.com>
3673
3674 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
3675 * gdbarch.h, gdbarch.c: Re-generate.
3676 * infcall.c (call_function_by_hand): Adjust the SP by
3677 frame_red_zone_size before allocating any stack space.
3678 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
3679 * x86-64-tdep.c (x86_64_frame_align): New function.
3680 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
3681
3682 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
3683 Remove code adjusting SP so that it skips over the Red Zone.
3684
954a4db8
MK
36852003-08-18 Mark Kettenis <kettenis@gnu.org>
3686
3687 * NEWS (New native configurations): Mention FreeBSD/amd64.
3688
1a241548
AC
36892003-08-18 Andrew Cagney <cagney@redhat.com>
3690
3691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
3692 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
3693 "m68k_frame_p".
3694 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
3695
f82b2acd
MK
36962003-08-18 Mark Kettenis <kettenis@gnu.org>
3697
3698 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
3699
4056d258
ML
37002003-08-18 Michal Ludvig <mludvig@suse.cz>
3701
3702 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
3703 Define.
3704 * i386-linux-nat.c: Include "linux-nat.h".
3705 (child_post_startup_inferior): New function.
a8f4cde1 3706
99ab4326
MK
37072003-08-18 Mark Kettenis <kettenis@gnu.org>
3708
3709 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
3710 at the start of a frameless function. This probably fixes PR
3711 backtrace/1338.
3712
c8d5f0d6
MC
37132003-08-17 Michael Chastain <mec@shout.net>
3714
3715 * symfile.c (find_sym_fns): Remove special case for apollo target.
3716
9016a515
DJ
37172003-08-17 Daniel Jacobowitz <drow@mvista.com>
3718
3719 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
3720 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
3721 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
3722 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
3723 (linux_supports_tracevforkdone): New function.
3724 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
3725 TRACEVFORKDONE.
3726 (child_follow_fork): Handle vfork.
3727 (linux_handle_extended_wait): Likewise. Also handle exec.
3728 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
3729 * NEWS: Mention fork tracing.
3730
c538c11c
DJ
37312003-08-17 Daniel Jacobowitz <drow@mvista.com>
3732
3733 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3734
4de4c07c
DJ
37352003-08-17 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * Makefile.in (i386-linux-nat.o): Update dependencies.
3738 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
3739 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
3740 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
3741 * i386-linux-nat.c: Include "linux-nat.h".
3742 (child_post_startup_inferior): New function.
3743 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
3744 * infptrace.c (kill_inferior): Wrap in #ifdef.
3745 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
3746 attaching to each LWP.
3747 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
3748 (init_lin_lwp_ops): Fill in some more operations.
3749 * linux-nat.h (linux_enable_event_reporting)
3750 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
3751 prototypes.
3752 * linux-nat.c (linux_enable_event_reporting): New function.
3753 (child_post_attach, linux_child_post_startup_inferior)
3754 (child_post_startup_inferior, child_follow_fork)
3755 (linux_handle_extended_wait, kill_inferior): New functions.
3756
7996bcec
AC
37572003-08-16 Andrew Cagney <cagney@redhat.com>
3758
3759 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
3760 * gdbarch.h, gdbarch.c: Re-generate.
3761
3d48a7a0
MK
37622003-08-16 Mark Kettenis <kettenis@gnu.org>
3763
3764 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
3765
7989c619
AC
37662003-08-16 Andrew Cagney <cagney@redhat.com>
3767
3768 * NEWS: Mention that "set prompt-escape-char" was deleted.
3769 * top.c (get_prompt_1): Delete function.
3770 (gdb_prompt_escape):
3771 (init_main): Do not clear "gdb_prompt_escape". Delete "set
3772 prompt-escape-char" command.
3773 (MAX_PROMPT_SIZE): Delete macro.
3774 (get_prompt): Simplify, do not call get_prompt_1.
3775
07978cd8
AC
37762003-08-16 Andrew Cagney <cagney@redhat.com>
3777
3778 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
3779 -Werror. -Wformat-nonliteral problems.
3780
3ff7cf9e
JB
37812003-08-15 J. Brobecker <brobecker@gnat.com>
3782
3783 Further multiarching work mostly for hppa64-*-hpux11:
3784 * hppa-tdep.h: New file.
3785 * hppa-tdep.c: #include hppa-tdep.c.
3786 (hppa32_num_regs): Renamed from hppa_num_regs.
3787 (hppa64_num_regs): New constant.
3788 (hppa64_call_dummy_breakpoint_offset): New constant.
3789 (hppa32_call_dummy_length): New constant.
3790 (hppa64_call_dummy_length): New constant.
3791 (hppa32_stack_align): Make name 32bit explicit.
3792 (hppa32_register_virtual_type): Likewise.
3793 (hppa32_extract_return_value): Likewise.
3794 (hppa32_use_struct_convention): Likewise.
3795 (hppa32_store_return_value): Likewise.
3796 (hppa64_register_virtual_type): New function.
3797 (hppa64_extract_return_value): New function.
3798 (hppa64_use_struct_convention): New function.
3799 (hppa64_store_return_value): New function.
3800 (hppa_frame_locals_address): Remove declaration, function does
3801 not exist anymore.
3802 (hppa_register_byte): Add support for PA64 ABI.
3803 (hppa_gdbarch_init): Add support for PA64 ABI.
3804 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
3805 Make name 32bit explicit.
3806 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
3807 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
3808 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
3809 (hppa64_hpux_frame_base_before_sigtramp): New function.
3810 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
3811 * config/pa/tm-hppa64.h: Remove macros that are no longer
3812 necessary now that the gdbarch vector is properly setup.
a8f4cde1 3813 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
3814 * config/pa/tm-hppah.h: Update function calls in macros
3815 following the function renaming in hppa-hpux-tdep.c.
3816 * Makefile.in (hppa_tdep_h): New variable.
3817 (hppa-tdep.o): Add dependency over hppa_tdep_h.
3818
5d05ca6d
MS
38192003-08-14 Michael Snyder <msnyder@redhat.com>
3820
3821 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
3822
37ba2569
JB
38232003-08-13 J. Brobecker <brobecker@gnat.com>
3824
3825 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3826 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3827 routine.
3828
aed7f26a
MS
38292003-08-13 Michael Snyder <msnyder@redhat.com>
3830
3831 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3832 (frv_saved_pc_after_call): Use deprecated ftype.
3833 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3834 (frv_remote_translate_xfer_address): Remove.
3835 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3836
752d4ac1
JB
38372003-08-13 J. Brobecker <brobecker@gnat.com>
3838
3839 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3840 initialization after the common gdbarch initialization, not before.
3841
1426ac1d
JB
38422003-08-13 J. Brobecker <brobecker@gnat.com>
3843
3844 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3845 (ADDR_BITS_REMOVE): Remove, redundant.
3846
b6fbdd1d
JB
38472003-08-13 J. Brobecker <brobecker@gnat.com>
3848
3849 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3850 gdbarch method to clear the 2 low bits of text addresses.
3851
44160db3
AC
38522003-08-12 Andrew Cagney <cagney@redhat.com>
3853
3854 * Makefile.in (dsrec.o): Update dependencies.
3855 * dsrec.c: Include "gdb_assert.h".
3856 (make_srec): Use snprintf instead of sprintf, use a literal format
3857 string.
3858
bcf7d3ca
AC
38592003-08-12 Andrew Cagney <cagney@redhat.com>
3860
3861 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3862 FRAME_OBSTACK_ZALLOC.
3863
49ed40de
KB
38642003-08-12 Kevin Buettner <kevinb@redhat.com>
3865
3866 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3867 SSE registers.
3868
b246147c
MK
38692003-08-10 Mark Kettenis <kettenis@gnu.org>
3870
3871 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3872 amd64fbsd_sc_reg_offset): Add extern declarations.
3873 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3874 declarations.
3875
d95fdc0d
BE
38762003-08-11 Ben Elliston <bje@wasabisystems.com>
3877
3878 * MAINTAINERS (write after approval): Update my mail address.
3879
cf6a0e73
AC
38802003-08-10 Andrew Cagney <cagney@redhat.com>
3881
3882 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3883
f837910f
MK
38842003-08-10 Mark Kettenis <kettenis@gnu.org>
3885
e2dbbd2d
MK
3886 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3887 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3888 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3889 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3890 i386bsd_sc_reg_offset): Add extern declarations.
3891 * i386obsd-nat.c: Include "i386-tdep.h"
3892 (_initialize_i386obsd_nat): Remove extern declarations.
3893 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3894 declarations.
3895 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3896 declarations.
3897
f837910f
MK
3898 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3899 instead of frame_read_register.
3900 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3901 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3902 SP_REGNUM.
3903 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3904 instead of frame_unwind_unsigned_register. Use
3905 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3906 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3907 instead of read_register. Use builtin_type_void_data_ptr instead
3908 of builtin_type_void_func_ptr when extracting the address of the
3909 jmp_buf.
3910 (i386_extract_return_value, i386_store_return_value,
3911 i386_pseudo_register_read, i386_pseudo_register_write): Use
3912 register_size instead REGISTER_RAW_SIZE.
3913
edcf254d
AC
39142003-08-10 Andrew Cagney <cagney@redhat.com>
3915
3916 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3917 sprintf. Make "name" constant.
3918
26604a34
MK
39192003-08-10 Mark Kettenis <kettenis@gnu.org>
3920
192285c6
MK
3921 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3922 instead of frame_read_register.
f837910f
MK
3923 (i387_print_float_info): Use get_frame_register and
3924 get_frame_register_unsigned instead of frame_register_read.
192285c6 3925
f0925262
MK
3926 * i386fbsd-nat.c: Include "i386-tdep.h".
3927 (child_resume): Make `eflags' an ULONGEST. Use
3928 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3929 instead of register_read and register_write.
3930
a144416f
MK
3931 * i386bsd-nat.c (fetch_inferior_registers,
3932 store_inferior_registers): Don't use && at the end of a line.
3933 (_initialize_i386bsd_nat): Fix typo.
3934
fec74868
MK
3935 * frame.c (_initialize_frame): Add missing backslash.
3936
87232496
MK
3937 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3938 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3939 and supply_register instead of manipulating the register buffer
3940 directly.
3941
c9b9de0b
MK
3942 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3943 * config/i386/nm-i386sol2.h
3944 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3945
26604a34
MK
3946 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3947 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3948 instructions that GCC likes to mingle into the prologue. Fixes
3949 gdb/1253 and gdb/1255.
3950
25d29d70
AC
39512003-08-09 Andrew Cagney <cagney@redhat.com>
3952
3953 Fix GDB PR cli/926.
3954 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3955 * command.h (add_setshow_uinteger_cmd): Declare.
3956 * frame.c (set_backtrace_cmd): New function.
3957 (show_backtrace_cmd): New function.
3958 * frame.c (_initialize_frame): Replace "set/show
3959 backtrace-below-main" with "set/show backtrace past-main". Add
3960 command "set/show backtrace limit".
3961 (backtrace_past_main): Rename "backtrace_below_main".
3962 (backtrace_limit): New variable.
3963 (get_prev_frame): Update. Check the backtrace_limit.
3964
9ebf4acf
AC
39652003-08-09 Andrew Cagney <cagney@redhat.com>
3966
3967 * defs.h (xstrprintf): Declare.
3968 * utils.c (xstrprintf): New function.
3969 * breakpoint.c (insert_breakpoints): Replace sprintf and
3970 non-literal format strings, with xstrprintf and cleanups.
3971 (delete_breakpoint,breakpoint_re_set): Ditto.
3972 (commands_command, insert_breakpoints): Ditto.
3973 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3974 (break_at_finish_command_1): Ditto.
3975
3771659b
AC
39762003-08-09 Andrew Cagney <cagney@redhat.com>
3977
3978 * MAINTAINERS (language support): List Adam Fedor as Objective C
3979 maintainer.
3980
b4263afa
JB
39812003-08-08 J. Brobecker <brobecker@gnat.com>
3982
3983 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3984 are now multiarched.
3985
d84defb1
JB
39862003-08-08 J. Brobecker <brobecker@gnat.com>
3987
3988 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3989 longer necessary now that hppa64 is partially multiarch'ed.
3990
f786f615
AC
39912003-08-08 Andrew Cagney <cagney@redhat.com>
3992
3993 * interps.c (interp_set): Check for a NULL "old_interp".
3994
c938e9b0
L
39952003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3996
3997 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3998 (install-only): Support DESTDIR.
3999 (uninstall): Likewise.
4000 (install-gdbtk): Likewise.
4001
9a146a11
EZ
40022003-08-08 Elena Zannoni <ezannoni@redhat.com>
4003
4004 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4005 contains something meaningful at all times.
4006
4007Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4008
62599e99 4009 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4010
56296155
BC
4011Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4012
62599e99 4013 * MAINTAINERS (write after approval): Added self.
56296155 4014
9710e734
AC
40152003-08-07 Andrew Cagney <cagney@redhat.com>
4016
4017 * inferior.h (AT_SYMBOL): Define.
4018 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4019 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4020 * mips-tdep.c (mips_call_dummy_address): Delete function.
4021 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4022 set call_dummy_address.
4023
98b3ab73
AC
40242003-08-07 Andrew Cagney <cagney@redhat.com>
4025
4026 * language.c (op_error): Delete function.
4027 (binop_type_check): Delete function.
4028 * language.h (type_op_error, range_op_error): Delete macros.
4029 (op_error): Delete declaration.
4030
2fcf52f0
AC
40312003-08-07 Andrew Cagney <cagney@redhat.com>
4032
4033 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4034
abd4220e 40352003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4036
abd4220e 4037 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4038 (x86_64_push_arguments): Skip the red zone.
abd4220e 4039
9dd5f34f
AC
40402003-08-05 Andrew Cagney <cagney@redhat.com>
4041
4042 * reggroups.c (reggroup_next): Check for the final entry.
4043
e5e78edc
AC
40442003-08-04 Andrew Cagney <cagney@redhat.com>
4045
ab4e3d93
AC
4046 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4047 * cli/cli-script.c (define_command): Call query directly, instead
4048 of passing it a buffer.
4049 * ocd.c (ocd_error): Pass error a constant format string.
4050 * remote-mips.c (mips_error): Use fputs_filtered.
4051
1062ca82
AC
4052 * solib-svr4.c (_initialize_svr4_solib): Update
4053 register_gdbarch_data call.
4054 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4055
fcc1c85c
AC
4056 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4057 (register_gdbarch_data): Delete "free" parameter. Update
4058 comments.
4059 * gdbarch.h, gdbarch.c: Re-generate.
4060 * reggroups.c (_initialize_reggroup): Update.
4061 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4062 * frame-base.c (_initialize_frame_base): Update.
4063 * frame-unwind.c (_initialize_frame_unwind): Update.
4064 * user-regs.c (_initialize_user_regs): Update.
4065 * remote.c (_initialize_remote): Update.
4066 * regcache.c (_initialize_regcache): Update.
4067
116f06ea
AC
4068 * regcache.c (xfree_regcache_descr): Delete function.
4069 (_initialize_regcache): Update call to register_gdbarch_data.
4070 (init_regcache_descr, init_legacy_regcache_descr): Use
4071 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4072
e5e78edc
AC
4073 * remote.c (free_remote_state): Delete function.
4074 (_initialize_remote): Update register_gdbarch_data.
4075 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4076 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4077
6c7d17ba
AC
40782003-08-04 Andrew Cagney <cagney@redhat.com>
4079
4080 * reggroups.c (struct reggroup_el): Define.
4081 (struct reggroups): Delete field "nr_group". Replace array
4082 "group" with a "first" to "last" linked list.
4083 (reggroups_init): Update. Allocate using gdbarch's obstack.
4084 (reggroups_free): Delete function.
4085 (add_group): Update. Add "el" parameter.
4086 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4087 (default_groups): Update.
4088 (reggroup_next): Replace reggroups.
4089 (reggroups_dump): Update.
4090 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4091 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4092 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4093
89b7795b
DJ
40942003-08-04 Daniel Jacobowitz <drow@mvista.com>
4095
4096 * Makefile.in (tui-interp.o): Update dependencies.
4097
306d9ac5
DC
40982003-08-04 David Carlton <carlton@kealia.com>
4099
4100 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4101 to internal_error call.
4102 * source.c (forward_search_command): Add "%s" format argument.
4103 (reverse_search_command): Ditto.
4104 * top.c (quit_confirm): Ditto.
4105 * cli/cli-setshow.c (do_setshow_command): Ditto.
4106 * cp-valprint.c (cp_print_class_method): Replace
4107 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4108 (cp_print_class_member): Ditto.
4109 * event-top.c (command_line_handler): Ditto.
4110 * linux-proc.c (linux_info_proc_cmd): Ditto.
4111 * p-typeprint.c (pascal_type_print_base): Ditto.
4112 * p-valprint.c (pascal_object_print_class_method): Ditto.
4113 (pascal_object_print_class_member): Ditto.
4114 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4115 * remote.c (remote_cisco_section_offsets): Ditto.
4116 * top.c (command_line_input): Ditto.
4117 * utils.c (vwarning,error_stream,quit): Ditto.
4118 * valprint.c (print_floating,print_binary_chars)
4119 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4120
57bfe177
AC
41212003-08-04 Andrew Cagney <cagney@redhat.com>
4122
4123 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4124
e546b999
AC
41252003-08-02 Andrew Cagney <cagney@redhat.com>
4126
4127 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4128 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4129 amd64fbsd-nat.c.
4130
91092ee5
AC
41312003-08-02 Andrew Cagney <cagney@redhat.com>
4132
4133 * Makefile.in: Update all dependencies and definitions.
4134
889f28e2
AF
41352003-08-02 Adam Fedor <fedor@gnu.org>
4136
4137 * linespec.c (is_objc_method_format): New function
4138 (decode_line_1, locate_first_half): Use it.
4139 Fixes PR objc/1298
4140
880bc914
AC
41412003-08-01 Andrew Cagney <cagney@redhat.com>
4142
4143 * NEWS: Mention that m32r is multi-arch.
4144 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4145 * configure.tgt: Recognize m32r-*-*.
4146 * config/m32r/tm-m32r.h: Delete file.
4147 * config/m32r/m32r.mt: New file.
a8f4cde1 4148 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4149 gethostname succeeds, in order to avoid a compilation
4150 warning.
4151 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4152 compiler warning.
4153
19f59343
MS
41542003-08-01 Michael Snyder <msnyder@redhat.com>
4155
4156 * sh-tdep.c (sh_frame_align): New gdbarch method.
4157 (sh_gdbarch_init): Set up frame_align method.
4158
4e7d7511
MS
41592003-07-31 Michael Snyder <msnyder@redhat.com>
4160
4161 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4162 which is already covered by the new frames infrastructure.
4163
63022984
AC
41642003-07-31 Andrew Cagney <cagney@redhat.com>
4165
4166 * user-regs.c (struct user_reg): Add "next" link.
4167 (struct user_regs): Replace "user" with "first" and "last" links.
4168 (append_user_reg): Add pre-allocated "reg" parameter.
4169 (builtin_user_regs): Provide initial value for "last".
4170 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4171 (user_regs_init): Allocate memory from the gdbarch obstack.
4172 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4173 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4174 linked list.
4175 (usernum_to_user_reg): New function.
4176 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4177 (value_of_user_reg): Use usernum_to_user_reg.
4178 (user_regs_free): Delete function.
4179 (_initialize_user_regs): Update register_gdbarch_data call.
4180
7cf6e574
DJ
41812003-07-31 Daniel Jacobowitz <drow@mvista.com>
4182
4183 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4184
c48a845b
MS
41852003-07-30 Michael Snyder <msnyder@redhat.com>
4186
4e7d7511 4187 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4188 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4189 value_being_returned.
4190 * infcmd.c (print_return_value): Pass zero as struct_addr.
4191 * values.c (value_being_returned): If struct_addr is passed,
4192 use it instead of trying to recover it from the inferior.
4193
f0d8db19
KB
41942003-07-30 Kevin Buettner <kevinb@redhat.com>
4195
4196 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4197 the prologue analyzer won't need to attempt to extract the pc
4198 value from the woefully incomplete dummy frame.
4199 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4200 possible. Disable code which modifies the frame.
4201
e5c113a1
AC
42022003-07-28 Andrew Cagney <cagney@redhat.com>
4203
4204 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4205 to level 2.
4206 (annotate_breakpoints_table, annotate_record): Ditto.
4207 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4208 (annotate_field_name_end, annotate_field_value): Ditto.
4209 (annotate_field_end, annotate_frame_source_begin): Ditto.
4210 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4211 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4212 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4213 (annotate_frame_address_end, annotate_frame_address): Ditto.
4214 (annotate_frame_args, annotate_frame_end): Ditto.
4215 (annotate_frame_where, annotate_arg_begin): Ditto.
4216 (annotate_arg_name_end, annotate_arg_value): Ditto.
4217 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4218 (annotate_function_call, annotate_signal_name): Ditto.
4219 (annotate_signal_string, annotate_signal_name_end): Ditto.
4220 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4221 (annotate_value_begin, annotate_value_history_value): Ditto.
4222 (annotate_value_history_end, annotate_value_end): Ditto.
4223 (annotate_display_begin, annotate_display_number_end): Ditto.
4224 (annotate_display_format, annotate_display_expression): Ditto.
4225 (annotate_display_expression_end, annotate_display_value): Ditto.
4226 (annotate_display_end, annotate_array_section_begin): Ditto.
4227 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4228 (annotate_elt, annotate_array_section_end): Ditto.
4229
bb1db049
AC
42302003-07-28 Andrew Cagney <cagney@redhat.com>
4231
4232 * regcache.c (struct regcache_descr): Update comments on
4233 nr_raw_registers.
4234 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4235 sizeof_raw_register_valid_p.
4236 (init_regcache_descr): Set nr_raw_registers and
4237 sizeof_raw_register_valid_p before calling
4238 init_legacy_regcache_descr.
4239
20e6603c
AC
42402003-07-28 Andrew Cagney <cagney@redhat.com>
4241
4242 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4243 MOD NUM_REGS.
4244
db742940
DJ
42452003-07-28 Daniel Jacobowitz <drow@mvista.com>
4246
4247 * thread.c (info_threads_command): Use get_selected_frame ().
4248 Check that there is at least one non-sentinel frame.
4249
ce7f4371
SC
42502003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4251
4252 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4253 (m68hc11_pop_frame): Remove.
4254 (m68hc11_frame_saved_pc): Remove.
4255 (m68hc11_frame_chain): Remove.
4256 (m68hc11_frame_init_saved_regs): Remove.
4257 (m68hc11_init_extra_frame_info): Remove.
4258 (m68hc11_store_struct_return): Remove.
4259 (m68hc11_saved_pc_after_call): Remove.
4260
1ea653ae
SC
42612003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4262
4263 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4264 frame unwind information.
4265 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4266 and adapted for frame unwinding.
4267 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4268 (m68hc11_unwind_pc): New function.
4269 (m68hc11_frame_unwind_cache): New function to analyze frames.
4270 (m68hc11_frame_this_id): New function to create new frame struct.
4271 (m68hc11_frame_prev_register): New function to unwind a register from
4272 the frame.
4273 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4274 (m68hc11_frame_p): New function for the above.
4275 (m68hc11_frame_base_address): New function to return fp of frame.
4276 (m68hc11_frame_args_address): Update for frame.
4277 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4278 (m68hc11_unwind_sp): New function.
4279 (m68hc11_unwind_dummy_id): New function.
4280 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4281 calls.
4282
c8a7f6ac
SC
42832003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4284
4285 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4286 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4287 when we are beyond the current pc.
4288
3dc990bf
SC
42892003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4290
4291 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4292 from m68hc11_push_arguments.
4293 (m68hc11_push_arguments): Remove.
4294 (m68hc11_push_return_address): Remove.
4295 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4296 handlers; remove deprecated_extra_stack_alignment_needed.
4297
222e5d1d
AC
42982003-07-27 Andrew Cagney <cagney@redhat.com>
4299
4300 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4301 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4302 REAL_PC and not the pointer.
4303 * hppa-hpux-tdep.c: Include frame.h
4304
a7e9a47e
AC
43052003-07-27 Andrew Cagney <cagney@redhat.com>
4306
4307 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4308 GDB_MULTI_ACH_PARTIAL.
4309
7e3dd49e
AC
43102003-07-27 Andrew Cagney <cagney@redhat.com>
4311
4312 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4313 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4314 operator at start and not end of line.
4315 (decode_prologue): Ditto.
4316 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4317 frame_unwind_register_unsigned instead of
4318 frame_unwind_unsigned_register.
4319 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4320 read_register.
4321 (m32r_push_dummy_call): Use register_size instead of
4322 REGISTER_RAW_SIZE.
4323 (m32r_frame_sniffer): Replace m32r_frame_p.
4324 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4325 * m32r-rom.c (report_transfer_performance): Delete extern
4326 declaration.
4327 (m32r_load, m32r_upload_command): Use print_transfer_performance
4328 instead of report_transfer_performance.
4329 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4330 / add_show_from_set.
4331
0880807f
AC
43322003-07-26 Andrew Cagney <cagney@redhat.com>
4333
4334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4335 store_return_value and extract_struct_value_address.
4336
64ae9269
DJ
43372003-07-26 Daniel Jacobowitz <drow@mvista.com>
4338
4339 PR c++/1267
4340 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4341 NULL, default to the section containing PC.
4342
e286caf2
SC
43432003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4344
4345 * NEWS: Mention "regs" deprecated for m68hc11 too.
4346
4347 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4348 (m68hc11_print_register): New function to print out one register.
4349 (m68hc11_print_registers_info): New function to print registers.
4350 (show_regs): Deprecate and use the above.
4351 (m68hc11_gdbarch_init): Install the print_registers_info.
4352
705b278b
JJ
43532003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4354
4355 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4356 that we have a SIGTRAP before returning non-zero.
4357
63cd4198
EZ
43582003-07-23 Michal Ludvig <mludvig@suse.cz>
4359 Elena Zannoni <ezannoni@redhat.com>
4360
a8f4cde1 4361 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4362 find_function_start_sal() returns empty record.
4363
6926787d
AS
43642003-07-23 Andreas Schwab <schwab@suse.de>
4365
4366 * ia64-tdep.c (ia64_print_insn): New function.
4367 (ia64_gdbarch_init): Set print_insn to it.
4368 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4369 deprecated_tm_print_insn_info.
4370
708cc1b6
MS
43712003-07-22 Michael Snyder <msnyder@redhat.com>
4372
4373 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4374 handle 8-bit returns (long long).
4375 (h8300h_extract_return_value): Ditto.
4376 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4377
aebd7893
AC
43782003-07-22 Andrew Cagney <cagney@redhat.com>
4379
4380 * gdbarch.c Include "gdb_obstack.h".
4381 (struct gdbarch): Add an "obstack".
4382 (alloc_gdbarch_data): Allocate the gdbarch data using
4383 GDBARCH_OBSTACK_CALLOC.
4384 (free_gdbarch_data): Delete function.
4385 (gdbarch_obstack_zalloc): New function.
4386 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4387 Assert that the architecture is not initialized.
4388 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4389 vector from the obstack.
4390 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4391 architecture obstack.
4392 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4393 (set_gdbarch_data): Assert that the data is not initialized.
4394 (struct gdbarch_data): Delete member "free".
4395 (register_gdbarch_data): Do not initialize "free".
4396 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4397
153721e6
AC
43982003-07-22 Andrew Cagney <cagney@redhat.com>
4399
4400 * configure.in (build_warnings): Add -Wformat-nonliteral.
4401 * configure: Re-generate.
4402
c193f044 44032003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4404
4405 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4406
c3228f12
EZ
44072003-07-22 Elena Zannoni <ezannoni@redhat.com>
4408
4409 * findvar.c (read_var_value): Remove case for thread local storage
4410 variables. It is now entirely handled by the dwarf2 location
4411 expression code.
4412 * printcmd.c (address_info): Ditto.
4413 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4414 enumeration value.
4415 (struct symbol): Remove objfile field, which was used by
4416 LOC_THREAD_LOCAL_STATIC only.
4417 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4418 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4419 usage of objfile pointer.
4420 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4421 thread local variables.
4422 Add include of objfiles.h.
4423 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4424 storage variables.
4425 * Makefile.in (dwarf2loc.o): Update dependencies.
4426
aef9bcd2
AC
44272003-07-22 Andrew Cagney <cagney@redhat.com>
4428
4429 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4430 get_frame_base.
4431 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4432 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4433 (struct value): Add opaque declaration.
4434 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4435
d95a8903
AC
44362003-07-21 Andrew Cagney <cagney@redhat.com>
4437
4438 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4439 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4440
4db73d49
SC
44412003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4442
a8f4cde1 4443 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4444 regcache_cooked_read_unsigned instead of read_register.
4445 (m68hc11_saved_pc_after_call): Likewise.
4446 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4447 instead of write_register.
4448 (m68hc11_register_type): New function.
4449 (m68hc11_register_virtual_type): Remove.
4450 (m68hc11_store_return_value): Convert to use the regcache.
4451 (m68hc11_extract_struct_value_address): Likewise.
4452 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4453 m68hc11_register_type; undeprecate store_return_value and
4454 extract_struct_value_address.
4455
ef2b8fcd
SC
44562003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4457
4458 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4459 and translate to use regcache.
4460 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4461
625b0b97
AC
44622003-07-18 Andrew Cagney <cagney@redhat.com>
4463
4464 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4465 * gdbarch.h, gdbarch.c: Re-generate.
4466 * i386-tdep.c (i386_gdbarch_init): Do not set
4467 DWARF2_BUILD_FRAME_INFO.
4468 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4469 unconditionally.
4470 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4471 DWARF2_BUILD_FRAME_INFO.
4472
22b0d388
AC
44732003-07-18 Andrew Cagney <cagney@redhat.com>
4474
4475 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4476 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4477
1ce5d6dd
AC
44782003-07-18 Andrew Cagney <cagney@redhat.com>
4479
4480 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4481 frame_unwind_address_in_block, instead of frame_pc_unwind.
4482 (dwarf2_frame_cache): Ditto.
4483
e6e5e94c
AC
44842003-07-18 Andrew Cagney <cagney@redhat.com>
4485
4486 * user-regs.h (struct gdbarch): Declare opaque.
4487 * ui-out.h (struct ui_file): Declare opaque.
4488 * dwarf2-frame.h (struct frame_info): Declare opaque.
4489
5483d879
KW
44902003-07-18 Kris Warkentin <kewarken@qnx.com>
4491
4492 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4493 #include "...".
4494 (procfs_meminfo): Change strerror to safe_strerror.
4495 (procfs_can_run): Remove K&R badness.
4496
278a7cf7
MS
44972003-07-17 Michael Snyder <msnyder@redhat.com>
4498
4499 * remote-sim.c: Comment typo fix.
4500
606e3b82
AC
45012003-07-17 Andrew Cagney <cagney@redhat.com>
4502
4503 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4504 configure.
4505 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4506 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4507 GDB_MULTI_ARCH_PARTIAL.
4508
c43af07c
EZ
45092003-07-17 Elena Zannoni <ezannoni@redhat.com>
4510
4511 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4512 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4513 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4514
3b85b0f1
TR
45152003-07-16 Theodore A. Roth <troth@openavr.org>
4516
4517 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4518 found.
4519 (avr_frame_unwind_cache): Don't unwind FP for main.
4520 Update a comment.
4521 Save the computed prev_sp.
4522 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4523 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4524 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4525
336d1bba
AC
45262003-07-16 Andrew Cagney <cagney@redhat.com>
4527
4528 * frame-base.h (frame_base_p_ftype): Delete definition.
4529 (frame_base_append_predicate): Delete declaration.
4530 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4531 (frame_unwind_append_predicate): Delete declaration.
4532 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4533 (append_predicate): Delete parameter "p".
4534 (frame_unwind_append_predicate): Delete function.
4535 (frame_unwind_append_sniffer): Update call to append_predicate.
4536 (frame_unwind_free): Delete function.
4537 (_initialize_frame_unwind): Pass NULL as "free" to
4538 register_gdbarch_data.
4539 (frame_unwind_init): Append the dummy_frame_sniffer.
4540 (frame_unwind_find_by_frame): Simplify.
4541 * frame-base.c (struct frame_base_table): Delete field "p".
4542 (append_predicate): Delete parameter "p".
4543 (frame_base_append_predicate): Delete function.
4544 (frame_base_append_sniffer): Update call to append_predicate.
4545 (frame_base_free): Delete function.
4546 (frame_base_find_by_frame): Simplify.
4547 (_initialize_frame_base): Pass NULL as "free" to
4548 register_gdbarch_data.
4549 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4550 (x86_64_sigtramp_frame_sniffer): Replace
4551 "x86_64_sigtramp_frame_p".
4552 (x86_64_init_abi): Set the frame unwind sniffers.
4553 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4554 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4555 (m68k_gdbarch_init): Set the frame unwind sniffers.
4556 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4557 "i386_sigtramp_frame_p".
4558 (i386_frame_sniffer): Replace "i386_frame_p".
4559 (i386_gdbarch_init): Set the frame unwind sniffers.
4560 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4561 (avr_gdbarch_init): Set the frame unwind sniffers.
4562 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4563 "alpha_sigtramp_frame_p"
4564 (alpha_heuristic_frame_sniffer): Replace
4565 "alpha_heuristic_frame_p".
4566 (alpha_gdbarch_init): Set the frame unwind sniffers.
4567 (alpha_dwarf2_init_abi): Ditto.
4568 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4569 "alpha_debug_frame_p".
4570 (alpha_mdebug_frame_base_sniffer): Replace
4571 "alpha_mdebug_frame_base_p".
4572 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4573 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4574 (d10v_gdbarch_init): Set the frame unwind sniffer.
4575 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4576 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4577 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4578 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4579 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4580 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4581
48db5a3c
CV
45822003-07-16 Michael Snyder <msnyder@redhat.com>
4583
4584 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4585 should go thru sh_dsp_register_sim_regno, else the dsp regs
4586 will not get the right values.
4587
45882003-07-16 Corinna Vinschen <vinschen@redhat.com>
4589
4590 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4591 deprecated_store_floating by call to store_typed_floating.
4592 (sh_sh4_register_convert_to_raw): Substitute call to
4593 deprecated_extract_floating by call to extract_typed_floating.
4594
45952003-07-16 Corinna Vinschen <vinschen@redhat.com>
4596
4597 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4598
45992003-07-16 Corinna Vinschen <vinschen@redhat.com>
4600
4601 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
4602 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
4603 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
4604 as possible.
4605 (do_pseudo_register): Remove.
4606 (sh_push_dummy_code): New function.
4607 (sh64_store_struct_return): Rename from sh_store_struct_return.
4608 Only called for sh64 now.
4609 (sh_extract_struct_value_address): Regcache'ify.
4610 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
4611 and accomodate new tasks.
4612 (sh64_push_return_address): Rename from sh_push_return_address.
4613 Only called for sh64 now.
4614 (sh_default_extract_return_value): Rename from sh_extract_return_value.
4615 Regcache'ify.
4616 (sh3e_sh4_extract_return_value): Regcache'ify.
4617 (sh_default_store_return_value): Ditto.
4618 (sh3e_sh4_store_return_value): Ditto.
4619 (sh_default_register_byte): Remove.
4620 (sh_sh4_register_byte): Remove.
4621 (sh_default_register_raw_size): Remove.
4622 (sh_sh4_register_raw_size): Remove.
4623 (sh_register_virtual_size): Remove.
4624 (sh_sh3e_register_virtual_type): Remove.
4625 (sh_sh3e_register_type): New function.
4626 (sh_sh4_register_virtual_type): Remove.
4627 (sh_sh4_register_type): New function.
4628 (sh_default_register_virtual_type): Remove.
4629 (sh_default_register_type): New function.
4630 (do_fv_register_info): Add parameters to accomodate call from
4631 sh_print_registers_info.
4632 (do_dr_register_info): Ditto.
4633 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
4634 Add parameters to accomodate call from sh_print_registers_info.
4635 (sh_do_fp_register): Ditto.
4636 (sh64_do_pseudo_register): Call do_dr_register_info,
4637 do_fv_register_info and sh_do_fp_register with default parameters.
4638 (sh_do_register): Add parameters to accomodate call from
4639 sh_print_registers_info.
4640 (sh_print_register): Ditto.
4641 (sh_print_registers_info): Rename from sh_do_registers_info.
4642 Add parameters to be used as gdbarch_print_registers_info
4643 implementation. Accomodate removed do_pseudo_register function
4644 pointer.
4645 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
4646 function pointer. Call sh_print_register with default parameters.
4647 (sh64_do_registers_info): Call sh_print_registers_info instead of
4648 sh_do_registers_info.
4649 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
4650 detection of deprecated vs. non-deprecated functionality.
4651 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
4652 function pointer assignments by direct function calls.
4653
e8a89fe2
AC
46542003-07-15 Andrew Cagney <cagney@redhat.com>
4655
4656 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
4657 (frame_register_unwind, create_new_frame): Ditto.
4658 (legacy_get_prev_frame, get_frame_type): Ditto.
4659 (get_frame_base_address): Use frame_base_find_by_frame.
4660 (get_frame_locals_address): Use frame_base_find_by_frame.
4661 (get_frame_args_address): Use frame_base_find_by_frame.
4662 * frame-base.h (frame_base_sniffer_ftype): Declare.
4663 (frame_base_append_sniffer): Declare.
4664 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
4665 * frame-base.c (append_predicate): Add a "sniffer" parameter.
4666 (frame_base_append_sniffer): New function.
4667 (frame_base_append_predicate): Add a NULL sniffer.
4668 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
4669 (struct frame_base_table): Add "sniffer".
4670 (frame_base_free): Free the "sniffer" table.
4671 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
4672 (frame_unwind_append_sniffer): Declare.
4673 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4674 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
4675 (struct frame_unwind_table): Add "sniffer", delete "middle".
4676 (append_predicate): Add "sniffer" parameter, append the sniffer.
4677 (frame_unwind_init): Update append_predicate call.
4678 (frame_unwind_append_sniffer): New function.
4679 (frame_unwind_append_predicate): Update append_predicate call.
4680 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
4681
0714963c
AC
46822003-07-15 Andrew Cagney <cagney@redhat.com>
4683
4684 * frame.c (get_prev_frame): Move disabled inside_entry_func to
4685 before code inhibiting repeated unwind attempts. Add to
4686 commentary on that test's problems.
4687 * blockframe.c (inside_main_func): Look for "main" in the minimal
4688 symbol table.
4689 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
4690 identical.
4691
d9170e22
AC
46922003-07-15 Andrew Cagney <cagney@redhat.com>
4693
4694 * complaints.c (struct explanation): Define.
4695 (struct complaints): Change type of "explanation" to "struct
4696 explanation".
4697 (symfile_explanations): Convert to a "struct explanation" table.
4698 (vcomplaint): Update.
4699
eba29c8c
ML
47002003-07-15 Michal Ludvig <mludvig@suse.cz>
4701
4702 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 4703 (supply_gregset, fill_gregset): Call
eba29c8c
ML
4704 x86_64_linux_(fill,supply)_gregset functions.
4705 * x86-64-linux-tdep.c (USER_*): New defines.
4706 (user_to_gdb_regmap, x86_64_core_fns): New structure.
4707 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
4708 New functions.
4709 (fetch_core_registers): Ditto.
4710 (_initialize_x86_64_linux_tdep): Call add_core_fns().
4711 * x86-64-linux-tdep.h: New file.
4712 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
4713 and core-regset.o.
4714 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
4715
68cc0bfb
MK
47162003-07-13 Mark Kettenis <kettenis@gnu.org>
4717
88a115f7
MK
4718 * x86-64-tdep.c (x86_64_store_return_value): Use
4719 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 4720
68cc0bfb
MK
4721 * configure.host: Add x86_64-*-freebsd*.
4722 * configure.tgt: Add x86_64-*-freebsd*.
4723 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
4724 * amd64fbsd-nat.c: New file.
4725 * amd64fbsd-tdep.c: New file.
4726 * config/i386/nm-fbsd64.h: New file.
4727 * config/i386/fbsd64.mh: New file.
4728 * config/i386/fbsd64.mt: New file.
4729
138e7be5
MK
47302003-07-11 Mark Kettenis <kettenis@gnu.org>
4731
4732 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
4733 `sc_regs_offset' and `sc_fpregs_offset'.
4734 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
4735 SIGFRAME_FPREGSAVE_OFF): Remove defines.
4736 (alpha_sigtramp_register_address): Rewrite to use new members of
4737 `struct gdbarch_tdep'.
4738 (alpha_gdbarch_init): Initialize new members of struct
4739 gdbarch_tdep'.
4740 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
4741 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
4742 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
4743 (alphafbsd_pc_in_sigtramp): Implement.
4744 (alphafbsd_sigtramp_offset): New function.
4745 (alphafbsd_sigcontext_addr): New function.
4746 (alphafbsd_init_abi): Initialize signal trampoline related members
4747 of `struct gdbarch_tdep'.
4748 (_initialize_alphafbsd_tdep): Add prototype.
4749
95303a68
TR
47502003-07-11 Theodore A. Roth <troth@openavr.org>
4751
ba292e4c
TR
4752 * Makefile.in (install-only): Quote sed expression when generating
4753 transformed_name.
95303a68 4754
6896c0c7
RH
47552003-07-11 Richard Henderson <rth@redhat.com>
4756
4757 * Makefile.in (dwarf2-frame.o): Add complaints_h.
4758 * dwarf2-frame.c: Include complaints.h.
4759 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
4760 variable initialization; return NULL on error.
4761 (decode_frame_entry): New.
4762
8edd5d01
AC
47632003-07-11 Andrew Cagney <cagney@redhat.com>
4764
c4a09524
AC
4765 * frame.h (frame_address_in_block): Delete declaration.
4766 * blockframe.c (frame_address_in_block): Delete function.
4767 (get_frame_block): Use get_frame_address_in_block.
4768 (block_innermost_frame): Ditto.
4769 * stack.c (print_frame, backtrace_command_1): Ditto.
4770
8edd5d01
AC
4771 * frame.h (get_frame_address_in_block): Declare.
4772 (frame_unwind_address_in_block): Declare.
4773 * frame.c (frame_unwind_address_in_block): New function.
4774 (get_frame_address_in_block): New function.
4775
f7968451
AC
47762003-07-10 Andrew Cagney <cagney@redhat.com>
4777
4778 * gdbarch.sh: Simplify predicate methods. Remove need to provide
4779 pre-default. Note: re-generate has no effect.
a8f4cde1 4780
ae99b398
AC
47812003-07-10 Andrew Cagney <cagney@redhat.com>
4782
4783 * gdbarch.sh: When a variable, but not a function, compare against
4784 0. Fix problem in previous patch.
4785 * gdbarch.c: Re-generate.
a8f4cde1 4786
956ac328
AC
47872003-07-10 Andrew Cagney <cagney@redhat.com>
4788
4789 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
4790 functions against NULL, not 0.
4791 * gdbarch.c: Re-generate.
a8f4cde1 4792
287c3240
FF
47932003-07-10 Fred Fish <fnf@ninemoons.com>
4794
4795 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
4796 null string instead of a null pointer.
4797 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
4798
32f63c4b
MS
47992003-07-09 Michael Snyder <msnyder@redhat.com>
4800
4801 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
4802
402ecd56
MK
48032003-07-09 Mark Kettenis <kettenis@gnu.org>
4804
4805 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
4806 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
4807 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
4808 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
4809 * x86-64-tdep.c: ... from here.
4810
c481dac7
AS
48112003-07-09 Andreas Schwab <schwab@suse.de>
4812
4813 * m68k-tdep.h (enum struct_return): Define.
4814 (struct gdbarch_tdep): Add struct_return.
4815 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
4816 bytes are padded to the right, not to the left. Pass struct value
4817 address in register %a1, not on stack.
4818 (m68k_use_struct_convention): New function.
4819 (m68k_gdbarch_init): Set use_struct_convention. Initialize
4820 struct_return in tdep to pcc_struct_return.
4821 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
4822 reg_struct_return.
4823
a8f4cde1 48242003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 4825
a8f4cde1 4826 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 4827
96a4ee76
AC
48282003-07-09 Andrew Cagney <cagney@redhat.com>
4829
4830 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4831 Add comments about the checks.
4832
1517c6d1
AC
48332003-07-08 Andrew Cagney <cagney@redhat.com>
4834
4835 * Makefile.in: Make dependency section headers consistent.
4836 (config_h): Move to $BUILD headers section.
4837 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4838 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4839 (ada-exp.tab.c): Move to YACC/LEX section.
4840 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4841 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4842
dc5dd1eb
KW
48432003-07-08 Kris Warkentin <kewarken@qnx.com>
4844
4845 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
4846 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4847 of strerror with safe_strerror, use ISO C function definitions,
4848 and replace instances of sprintf with snprintf.
dc5dd1eb 4849
612dde91
AC
48502003-07-07 Andrew Cagney <cagney@redhat.com>
4851
4852 * frame.c (get_prev_frame): Enable check for identical frames.
4853 Update comments. Update error messages.
4854
492c11d3
JB
48552003-07-07 Joel Brobecker <brobecker@gnat.com>
4856
4857 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4858
376a5a49
JB
48592003-07-07 Joel Brobecker <brobecker@gnat.com>
4860
4861 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4862 sort_symtab_syms, no longer necessary.
4863
22b4a9ad
JB
48642003-07-07 Joel Brobecker <brobecker@gnat.com>
4865
4866 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4867
5bbcb741
JB
48682003-07-07 Joel Brobecker <brobecker@gnat.com>
4869
4870 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4871 (mips_register_byte): Likewise.
4872
c139e7d9
DJ
48732003-07-07 Daniel Jacobowitz <drow@mvista.com>
4874
4875 * Makefile.in (sparc_tdep_h): New.
4876 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4877 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4878 * sparc-linux-nat.c: Include "sparc-tdep.h".
4879 * sparc-nat.c: Likewise.
4880 * sparc-tdep.c: Likewise.
4881 * sparc64nbsd-nat.c: Likewise.
4882 * sparcnbsd-nat.c: Likewise.
4883 * sparcnbsd-tdep.c: Likewise.
4884 * sparc-tdep.h: New file.
4885 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4886 and sparc_npc_regnum.
4887
fd8f87c5
DJ
48882003-07-07 Daniel Jacobowitz <drow@mvista.com>
4889
4890 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4891 (mips_linux_cannot_store_register): List supported instead of
4892 unsupported registers.
4893
13adf674
DJ
48942003-07-07 Daniel Jacobowitz <drow@mvista.com>
4895
4896 * disasm.c (dump_insns): Separate instructions from addresses.
4897
8de307e0
AS
48982003-07-07 Andreas Schwab <schwab@suse.de>
4899
4900 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4901 dependencies.
4902 * m68k-tdep.c (NUM_FREGS): Delete.
4903 (SIG_PC_FP_OFFSET): Delete.
4904 (TARGET_M68K): Delete.
4905 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4906 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4907 P_MOVEL_SP, P_MOVEML_SP): Define.
4908 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4909 P_TRAP): Delete.
4910 (m68k_register_raw_size): Delete.
4911 (m68k_register_virtual_size): Delete.
4912 (m68k_register_type): Renamed from m68k_register_virtual_type and
4913 add gdbarch argument.
4914 (m68k_store_struct_return): Delete.
4915 (m68k_deprecated_extract_return_value): Delete.
4916 (m68k_deprecated_extract_struct_value_address): Delete.
4917 (m68k_frame_chain): Delete.
4918 (m68k_frame_saved_pc): Delete.
4919 (m68k_fix_call_dummy): Delete.
4920 (m68k_push_dummy_frame): Delete.
4921 (m68k_pop_frame): Delete.
4922 (m68k_extract_return_value): New function.
4923 (m68k_store_return_value): Rewrite using regcache.
4924 (m68k_extract_struct_value_address): Rewrite using regcache.
4925 (m68k_push_dummy_call): New function.
4926 (struct m68k_frame_cache): Define.
4927 (m68k_alloc_frame_cache): New function.
4928 (m68k_analyze_frame_setup): New function.
4929 (m68k_analyze_register_saves): New function.
4930 (m68k_analyze_prologue): New function.
4931 (m68k_skip_prologue): Rewrite using above functions.
4932 (m68k_unwind_pc): New function.
4933 (m68k_frame_cache): New function.
4934 (m68k_frame_this_id): New function.
4935 (m68k_frame_prev_register): New function.
4936 (m68k_frame_unwind): New variable.
4937 (m68k_frame_p): New function.
4938 (m68k_sigtramp_frame_cache): New function.
4939 (m68k_sigtramp_frame_this_id): New function.
4940 (m68k_sigtramp_frame_prev_register): New function.
4941 (m68k_sigtramp_frame_unwind): New variable.
4942 (m68k_sigtramp_frame_p): New function.
4943 (m68k_frame_base_address): New function.
4944 (m68k_frame_base): New function.
4945 (m68k_unwind_dummy_id): New function.
4946 (fill_gregset): Use regcache_collect.
4947 (fill_fpregset): Likewise.
4948 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4949 defined.
4950 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4951 deprecated_init_frame_pc, deprecated_store_struct_return,
4952 deprecated_extract_return_value, deprecated_store_return_value,
4953 deprecated_frame_chain, deprecated_frame_saved_pc,
4954 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4955 deprecated_register_virtual_size,
4956 deprecated_max_register_raw_size,
4957 deprecated_max_register_virtual_size,
4958 deprecated_register_virtual_type, deprecated_register_size,
4959 deprecated_register_byte, deprecated_register_bytes,
4960 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4961 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4962 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4963 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4964 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4965 deprecated_push_dummy_frame, deprecated_pop_frame,
4966 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4967 only if SYSCALL_TRAP is defined. Set extract_return_value,
4968 store_return_value, extract_struct_value_address, register_type,
4969 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4970 predicates.
4971 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4972 M68K_MAX_REGISTER_SIZE): Define.
4973 (struct m68k_sigtramp_info): Define.
4974 (struct gdbarch_tdep): Add get_sigtramp_info.
4975 * m68klinux-nat.c (fetch_register): Use register_size instead of
4976 REGISTER_RAW_SIZE. Don't put assignment in if.
4977 (store_register): Likewise.
4978 (fetch_inferior_registers): Likewise.
4979 (store_inferior_registers): Likewise.
4980 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4981 (m68k_linux_frame_saved_pc): Delete.
4982 (m68k_linux_sigcontext_reg_offset,
4983 m68k_linux_ucontext_reg_offset): Define.
4984 (m68k_linux_get_sigtramp_info): New function.
4985 (m68k_linux_extract_return_value): Rewrite using regcache.
4986 (m68k_linux_store_return_value): Likewise.
4987 (m68k_linux_extract_struct_value_address): Likewise.
4988 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4989 Don't set deprecated_frame_saved_pc,
4990 deprecated_extract_return_value, deprecated_store_return_value,
4991 deprecated_extract_struct_value_address. Set
4992 extract_return_value, store_return_value,
4993 extract_struct_value_address.
4994
eb8bc282
AC
49952003-07-07 Andrew Cagney <cagney@redhat.com>
4996
4997 * expprint.c: Include "user-regs.h" instead of "frame.h".
4998 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4999 frame_map_regnum_to_name.
5000 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5001 (frame_map_name_to_regnum): Simplify, call
5002 user_reg_map_name_to_regnum.
5003 (frame_map_regnum_to_name): Simplify, call
5004 user_reg_map_regnum_to_name.
5005 (frame_register_unwind): Update.
5006 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5007 (_initialize_frame_reg): Call user_reg_add_builtin.
5008 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5009 (value_of_register): Use value_of_user_reg.
5010 * eval.c (evaluate_subexp_standard): Update.
5011 * parse.c (write_dollar_variable): Update.
5012 * d10v-tdep.c (d10v_print_registers_info): Update.
5013 * infcmd.c (registers_info): Update.
5014 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5015 (builtin_regs_h): Delete macro.
5016 (user_regs_h): Define.
5017 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5018 (builtin-regs.o): Delete target.
5019 (user-regs.o): Specify dependencies.
5020 (expprint.o): Update dependencies.
5021 (findvar.o): Update dependencies.
5022 (frame.o): Update dependencies.
5023 (std-regs.o): Update dependencies.
5024
9f476a01
CF
50252003-07-06 Christopher Faylor <cgf@redhat.com>
5026
5027 * win32-nat.c (solib_symbols_add): Use one variable for all section
5028 address stuff. Pass variable rather than address of variable to
5029 safe_symbol_file_add.
5030
a731b831
AS
50312003-07-06 Andreas Schwab <schwab@suse.de>
5032
5033 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5034
9f83329d
JB
50352003-07-04 Joel Brobecker <brobecker@gnat.com>
5036
5037 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5038
27e28cc5
KW
50392003-07-04 Kris Warkentin <kewarken@qnx.com>
5040
5041 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5042
50432003-07-04 Kris Warkentin <kewarken@qnx.com>
5044
5045 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5046 * config/i386/nto.mh: New file.
5047 * config/i386/nm-nto.h: New file.
5048 * configure.host: Add i[3456]86-*-nto*.
5049
100f2e98
JB
50502003-07-03 Joel Brobecker <brobecker@gnat.com>
5051
5052 * remote-vx.c (vx_add_symbols): Fix compilation error.
5053
e23457df
AC
50542003-07-03 Andrew Cagney <cagney@redhat.com>
5055
5056 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5057 * gdbarch.h, gdbarch.c: Re-generate.
5058 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5059 (legacy_register_name): Declare.
5060 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5061 (REGISTER_NAME): Define.
5062 * sparc-tdep.c (legacy_register_name): New function.
5063 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5064 (REGISTER_NAME): Define.
5065 (hppa64_register_name): Declare.
5066 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5067 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5068 (hppa64_register_name): New function.
5069 (hppa_register_name): New function.
5070 * arch-utils.c (legacy_register_name): Delete.
5071 * arch-utils.h (legacy_register_name): Delete.
5072
38caaeec
DJ
50732003-07-03 Daniel Jacobowitz <drow@mvista.com>
5074
5075 * cli/cli-interp.c (cli_interpreter_resume): Update the
5076 cli_uiout's stream to gdb_stdout.
5077
dadd712e
AC
50782003-07-03 Andrew Cagney <cagney@redhat.com>
5079
5080 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5081 predicate.
5082 * gdbarch.h, gdbarch.c: Re-generate.
5083 * regcache.c (init_regcache_descr): Use legacy code when either
5084 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5085
c7f1390e
DJ
50862003-07-02 Daniel Jacobowitz <drow@mvista.com>
5087
5088 * NEWS: Move "set logging" entry into GDB 6.0 section.
5089
4bc8c588
JB
50902003-07-02 Jim Blandy <jimb@redhat.com>
5091
a9dd42f1
JB
5092 * s390-tdep.c (struct frame_extra_info): new member:
5093 'stack_bought_valid'.
5094 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5095 initialize fextra_info->stack_bought.
5096 (s390_frameless_function_invocation): Don't trust the value of
5097 fextra_info_ptr->stack_bought unless
5098 fextra_info->stack_bought_valid is set.
5099
4bc8c588
JB
5100 New S390 prologue analyzer.
5101 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5102 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5103 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5104 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5105 compute_x_addr, s390_on_stack, s390_store,
5106 s390_get_signal_frame_info): New functions.
5107 (S390_NUM_SPILL_SLOTS): New macro.
5108 (s390_get_frame_info): Rewritten.
5109 (is_arg_reg): Deleted.
5110
5111 Break out the decoding of S/390 instructions into separate
5112 functions, to make it more legible, and easier to check
5113 against the spec.
5114 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5115 is_rx, is_rxe): New functions.
5116 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5117 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5118 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5119 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5120 enums for opcode values. (Is this an improvement?)
5121
fd13a04a
AC
51222003-07-02 Andrew Cagney <cagney@redhat.com>
5123
5124 * i386-tdep.c: Revert change committed as part of trad-frame code
5125 below.
5126
3f8091c1
DJ
51272003-07-02 Daniel Jacobowitz <drow@mvista.com>
5128
5129 * breakpoint.c (insert_catchpoint): Make static.
5130
8dd5115e
AS
51312003-07-02 Andreas Schwab <schwab@suse.de>
5132
5133 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5134 former ia64_push_arguments and ia64_push_return_address, and use
5135 regcache functions instead of read/write_register.
5136 (ia64_gdbarch_init): Set push_dummy_call instead of
5137 deprecated_push_arguments and deprecated_push_return_address.
5138
a2229c23
AJ
51392003-07-01 Andreas Jaeger <aj@suse.de>
5140
5141 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5142 before the call.
5143 Set %rax only to number of SSE registers used.
5144
3b3850e8
AC
51452003-07-01 Andrew Cagney <cagney@redhat.com>
5146
5147 * trad-frame.h: Update comments, a -1 .addr is reserved.
5148 (trad_frame_value_p, trad_frame_addr_p): Declare.
5149 (trad_frame_reg_p): Declare.
5150 (trad_frame_set_value): Rename trad_frame_register_value.
5151 (trad_frame_set_unknown): Declare.
5152 * trad-frame.c (trad_frame_realreg_p): New function.
5153 (trad_frame_addr_p, trad_frame_value_p): New function.
5154 (trad_frame_set_unknown): New function.
5155 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5156 (trad_frame_prev_register): Use trad_frame_realreg_p,
5157 trad_frame_addr_p and trad_frame_value_p.
5158 (trad_frame_set_value): Rename trad_frame_register_value.
5159 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5160 and trad_frame_set_value.
a2229c23 5161
4d819d0e
JB
51622003-06-30 Jim Blandy <jimb@redhat.com>
5163
5164 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5165 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5166 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5167 for 16 registers, and then 32 more bytes.
5168 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5169 New macros.
5170 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5171 Move up in the file, since it's now used by is_simple_arg.
5172 (is_simple_arg): Don't assume registers are four bytes long.
5173 Exclude all double arguments. Extended floats are not simple
5174 args.
5175 (is_power_of_two): New function.
5176 (pass_by_copy_ref): Call is_power_of_two, and check that the
5177 length fits in a register, rather than listing all the acceptable
5178 sizes. Extended floats are not passed by reference.
5179 (s390_push_arguments): Don't assume registers are four bytes long.
5180 Reserve an argument register to point to the buffer for structures
5181 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5182 S390_STACK_FRAME_OVERHEAD.
5183
1ad828f1
AS
51842003-06-30 Andreas Schwab <schwab@suse.de>
5185
5186 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5187 format error message.
5188
39b00981
JB
51892003-06-30 Joel Brobecker <brobecker@gnat.com>
5190
5191 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5192
b2a7f303
DC
51932003-06-30 David Carlton <carlton@kealia.com>
5194
5195 Band-aid for PR c++/1245.
5196 * Makefile.in (cp-support.o): Depend on complaints_h.
5197 * cp-support.c: Include complaints.h. Add declaration for
5198 find_last_component.
5199 (cp_find_first_component): Separate code into
5200 cp_find_first_component_aux.
5201 (cp_find_first_component_aux): Call demangled_name_complaint.
5202 (demangled_name_complaint): New.
5203
a257b5bb
AC
52042003-06-30 Andrew Cagney <cagney@redhat.com>
5205
5206 * remote.c (remote_write_bytes): Explicitly compute and then use
5207 the payload size. Update comments to reflect. Fixes problem of
5208 GDB not sending small packets as found by Fred Fish.
5209
0a2cfde4
AC
52102003-06-30 Andrew Cagney <cagney@redhat.com>
5211
5212 * remote.c (remote_async_wait): Fix -Wformat problem.
5213
3fcb8548
AC
52142003-06-29 Andrew Cagney <cagney@redhat.com>
5215
5216 * remote.c (remote_wait): Call error, and not warning, when the
5217 packet is corrupt.
5218 (remote_async_wait): Ditto.
5219
9f9970a3
DJ
52202003-06-29 Daniel Jacobowitz <drow@mvista.com>
5221
5222 * sparc-tdep.c (sparc_y_regnum): Make external again.
5223
83a8ccca
DJ
52242003-06-29 Daniel Jacobowitz <drow@mvista.com>
5225
5226 * cli/cli-logging.c (pop_output_files): Add void to function
5227 definition.
5228
d2cf594a
AC
52292003-06-29 Andrew Cagney <cagney@redhat.com>
5230
5231 * frame.c (frame_register_unwind): Use unsigned char when dumping
5232 the buffer contents.
5233
0fac0b41
DJ
52342003-06-28 Daniel Jacobowitz <drow@mvista.com>
5235
5236 * cli/cli-logging.c: New file.
5237 * cli-out.c (struct ui_out_data): Add original_stream.
5238 (cli_redirect): New function.
5239 (cli_ui_out_impl): Add cli_redirect.
5240 (cli_out_new): Initialize original_stream.
5241 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5242 (uo_redirect, ui_out_redirect): New.
5243 * ui-out.h (struct ui_out_impl): Add redirect member.
5244 (redirect_ftype): New.
5245 (ui_out_redirect): Add prototype.
5246 * Makefile.in: Add rules for cli-logging.c.
5247 * NEWS: Mention "set logging".
5248
88a07d7c
EZ
52492003-06-27 Elena Zannoni <ezannoni@redhat.com>
5250
5251 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5252
4eb58876
AC
52532003-06-27 Andrew Cagney <cagney@redhat.com>
5254
5255 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5256 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5257 * avr-tdep.c (avr_call_dummy_address): Delete function.
5258 (avr_gdbarch_init): Do not set call_dummy_address.
5259
1549f619
EZ
52602003-06-27 Elena Zannoni <ezannoni@redhat.com>
5261
5262 * symfile.c (syms_from_objfile): Move variables to inner block.
5263 Move the checks for the non-mainline case a bit earlier to avoid
5264 doing some useless computations.
5265
3cb3398d
EZ
52662003-06-27 Elena Zannoni <ezannoni@redhat.com>
5267
5268 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5269
3799ccc6
EZ
52702003-06-26 Elena Zannoni <ezannoni@redhat.com>
5271
5272 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5273 sections.
5274
ce1f6491
MC
52752003-06-26 Michael Chastain <mec@shout.net>
5276
5277 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5278 gdb/testsuite/gdb.c++/pr-1210.exp.
5279
d958dfd0
AC
52802003-06-26 Andrew Cagney <cagney@redhat.com>
5281
5282 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5283 altivec_expression.h and altivec_registers.h.
5284
d31431ed
AC
52852003-06-26 Andrew Cagney <cagney@redhat.com>
5286
5287 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5288 info->mach when MIPS16. Patch suggested by Fred Fish.
5289
714b1282
AC
52902003-06-26 Andrew Cagney <cagney@redhat.com>
5291
5292 * utils.c (internal_vproblem): Print the problem to a reason
5293 buffer and then pass to query. Make the msg variable more local.
5294
42efa47a
AC
52952003-06-26 Andrew Cagney <cagney@redhat.com>
5296
5297 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5298 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5299 * gdbarch.h, gdbarch.c: Re-generate.
5300 * frame-base.c (default_frame_args_address): Update. Use
5301 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5302 not available.
5303 (default_frame_locals_address): Ditto for
5304 DEPRECATED_FRAME_LOCALS_ADDRESS.
5305 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5306 (vax_frame_num_args): Update.
5307 (vax_gdbarch_init): Update.
5308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5309 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5310 * mcore-tdep.c (mcore_gdbarch_init): Update.
5311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5312 * ia64-tdep.c (ia64_gdbarch_init): Update.
5313 * symtab.h (address_class): Update comments.
5314 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5315 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5316 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5317 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5318 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5319 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5320 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5321 * alpha-mdebug-tdep.c: Update.
5322 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5323
8ffd9b1b
AJ
53242003-06-26 Andreas Jaeger <aj@suse.de>
5325
5326 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5327 of SSE registers so that varargs functions work. Rework handling
5328 of passing arguments on the stack.
5329 (x86_64_store_return_value): Return double and float values in SSE
5330 register.
5331
e8ac10a6
MC
53322003-06-24 Michael Chastain <mec@shout.net>
5333
5334 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5335 the "constructor breakpoints ignored" bug.
5336
986af8e6
DC
53372003-06-25 David Carlton <carlton@kealia.com>
5338
5339 * MAINTAINERS: Update e-mail address.
5340
d64558a5
JB
53412003-06-24 Jim Blandy <jimb@redhat.com>
5342
e538d2d7
JB
5343 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5344
02631ec0
JB
5345 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5346 function.
5347 (ppc_linux_init_abi): Register it as the
5348 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5349
e716d87a
JB
5350 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5351 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5352 method.
5353
d64558a5
JB
5354 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5355 (ppc64_standard_linkage_target): Use it.
5356
449a5da4
AC
53572003-06-23 Andrew Cagney <cagney@redhat.com>
5358
5359 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5360 for 0 "int0" and 4 "int32" sized registers.
5361 * gdbtypes.c (builtin_type_int0): Define.
5362 (build_gdbtypes): Initialize builtin_type_int0.
5363 * gdbtypes.h (builtin_type_int0): Declare.
5364
b2a02dda
SC
53652003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5366
5367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5368 as characters are unsigned.
5369
fba3138e
DJ
53702003-06-22 Daniel Jacobowitz <drow@mvista.com>
5371
5372 PR gdb/1179
5373 * dwarfread.c (struct_type): Skip static fields without crashing.
5374
f6c8180b
AC
53752003-06-22 Andrew Cagney <cagney@redhat.com>
5376
5377 GDB 6.0 branch created.
f2c06f52
AC
5378 * README: Update.
5379 * PROBLEMS: Update. Empty.
5380 * NEWS: Update.
f6c8180b 5381
ae822768
DJ
53822003-06-22 Daniel Jacobowitz <drow@mvista.com>
5383
5384 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5385 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5386
261de166
AC
53872003-06-22 Andrew Cagney <cagney@redhat.com>
5388
5389 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5390 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5391 Velikov.
5392
30e94205
DJ
53932003-06-22 Daniel Jacobowitz <drow@mvista.com>
5394
5395 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5396 compilers.
5397
9e14d721
DJ
53982003-06-21 Daniel Jacobowitz <drow@mvista.com>
5399
5400 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5401 argument of val_print.
5402 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5403 to the address argument of baseclass_offset or target_read_memory.
5404 Do add it to the argument of cp_print_value_fields.
5405
a4b8ebc8
AC
54062003-06-21 Andrew Cagney <cagney@redhat.com>
5407
5408 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5409 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5410 instead of 0..NUM_REGS.
5411 (mips_register_reggroup_p): New function.
5412 (mips_pseudo_register_write): New function.
5413 (mips_pseudo_register_read): New function.
5414 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5415 based on the register's type.
5416 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5417 cooked.
5418 (mips_get_saved_register): Simplify. Assert that REGNO is a
5419 pseudo / cooked.
5420 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5421 (mips_register_type): Replace mips_register_virtual_type. Map
5422 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5423 when available.
5424 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5425 that the register is cooked / virtual.
5426 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5427 Only get the extra info when needed.
5428 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5429 (mips32_heuristic_proc_desc): Fetch the cooked register.
5430 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5431 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5432 (mips_print_register): Use gdbarch_register_type, instead of
5433 REGISTER_VIRTUAL_TYPE.
5434 (print_gp_register_row): Use gdbarch_register_type, instead of
5435 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5436 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5437 Print the pseudo / cooked registers.
5438 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5439 Print the pseudo / cooked registers.
5440 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5441 REG_NUM is pseudo / cooked.
5442 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5443 (mips_n32n64_xfer_return_value): Ditto.
5444 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5445 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5446 (mips_register_sim_regno): New function.
5447 (mips_gdbarch_init): Set deprecated_register_byte,
5448 register_group_p, pseudo_register_write, pseudo_register_read,
5449 register_sim_regno, and num_pseudo_regs. Set register_type,
5450 instead of register_virtual_type.
5451 * Makefile.in (mips-tdep.o): Update dependencies.
5452 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5453 REGISTER_VIRTUAL_TYPE.
5454 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5455 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5456 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5457 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5458 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5459
325ed089
DJ
54602003-06-21 Daniel Jacobowitz <drow@mvista.com>
5461
5462 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5463 * cli/cli-cmds.c: Include "gdb_vfork.h".
5464 (shell_escape): Use vfork.
5465
f0e7d0e8
AC
54662003-06-21 Andrew Cagney <cagney@redhat.com>
5467
c57bb9fa
AC
5468 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5469 32 bit floating-point register saves.
5470
6e51443a
AC
5471 * frame.h (deprecated_unwind_get_saved_register): Delete.
5472 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5473 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5474 and deprecated_get_next_frame_hack instead of
5475 deprecated_unwind_get_saved_register.
5476
ed183c7c
AC
5477 * mips-tdep.c (mips_dump_tdep): Do not print
5478 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5479
f0e7d0e8
AC
5480 * frame.c (get_frame_register): New function.
5481 (frame_unwind_register_signed): New function.
5482 (get_frame_register_signed): New function.
5483 (frame_unwind_register_unsigned): New function.
5484 (get_frame_register_unsigned): New function.
5485 * frame.h: Add comments on naming schema.
5486 (get_frame_register, frame_unwind_register_signed): Declare.
5487 (get_frame_register_signed, get_frame_register_signed): Declare.
5488 (frame_unwind_register_unsigned): Declare.
5489 (get_frame_register_unsigned): Declare.
5490
2224d941
TR
54912003-06-20 Theodore A. Roth <troth@openavr.org>
5492
5493 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5494
8619218d
TR
54952003-06-20 Theodore A. Roth <troth@openavr.org>
5496
5497 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5498 (avr_read_sp): Ditto.
5499
0b1b50c0
DJ
55002003-06-20 Daniel Jacobowitz <drow@mvista.com>
5501
5502 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5503 * config/arm/nm-linux.h: Likewise.
5504 * config/arm/tm-linux.h: Likewise.
5505 * config/ia64/nm-linux.h: Likewise.
5506 * config/ia64/tm-ia64.h: Likewise.
5507 * config/s390/tm-linux.h: Likewise.
5508 * config/s390/tm-s390.h: Likewise.
5509 * s390-nat.c: Likewise.
5510 * s390-tdep.c: Likewise.
5511
5512 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5513 * config/ia64/linux.mt: Likewise.
5514 * config/m68k/linux.mh: Likewise.
5515 * config/mips/linux.mt: Likewise.
5516 * config/powerpc/linux.mh: Likewise.
5517 * config/sh/linux.mt: Likewise.
5518
c8c18e65
KW
55192003-06-19 Kris Warkentin <kewarken@qnx.com>
5520
5521 * solib.c (solib_open): Change tests for whether to search
5522 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5523 comments.
5524
dcccef2e
TR
55252003-06-19 Theodore A. Roth <troth@openavr.org>
5526
5527 * avr-tdep.c (avr_frame_address): Delete function.
5528 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5529 set_gdbarch_frame_args_address.
5530
5861a190
AC
55312003-06-19 Andrew Cagney <cagney@redhat.com>
5532
5533 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5534 (REGISTER_CONVERT_FROM_TYPE): Delete.
5535 (mips_register_convert_to_type): Delete declaration.
5536 (mips_register_convert_from_type): Delete declaration.
5537 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5538 kernel/.
5539
0274a8ce
MS
55402003-06-19 Michael Snyder <msnyder@redhat.com>
5541
5542 * linux-nat.h: New file.
5543 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5544 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5545 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5546 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5547 (linux_make_note_section): Iterate over lwps instead of threads.
5548 (linux_do_thread_registers): Use lwp instead of merged pid.
5549 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5550 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5551 Add dependency on linux_nat_h.
5552
adf5f719
TR
55532003-06-19 Theodore A. Roth <troth@openavr.org>
5554
5555 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5556
6766a268
DJ
55572003-06-19 Daniel Jacobowitz <drow@mvista.com>
5558
5559 * varobj.c (get_type, get_target_type): Use check_typedef.
5560
1171114a
DJ
55612003-06-19 Daniel Jacobowitz <drow@mvista.com>
5562
5563 * breakpoint.c (insert_catchpoint): Call internal_error.
5564
adcf68a2
TR
55652003-06-19 Theodore A. Roth <troth@openavr.org>
5566
5567 * avr-tdep.c (avr_push_dummy_code): Delete function.
5568 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5569
ea67f13b
DJ
55702003-06-19 Daniel Jacobowitz <drow@mvista.com>
5571
5572 * arch-utils.c (default_prepare_to_proceed): Remove.
5573 (generic_prepare_to_proceed): Remove.
5574 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5575 (generic_prepare_to_proceed): Remove prototype.
5576 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5577 * gdbarch.c: Regenerate.
5578 * gdbarch.h: Regenerate.
5579 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5580 * hppah-nat.c (hppa_switched_threads): Remove.
5581 * infrun.c (prepare_to_proceed): New static function, copied from
5582 generic_prepare_to_proceed. Remove select_it argument.
5583 (proceed): Call prepare_to_proceed.
5584 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5585 variables.
5586 (ptrace_wait): Don't set the removed variables.
5587 (hppa_switched_threads): Remove.
5588 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5589 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5590 (lin_lwp_prepare_to_proceed): Remove prototype.
5591 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5592 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5593
4add8633
TR
55942003-06-18 Theodore A. Roth <troth@openavr.org>
5595
5596 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5597 trad-frame.h.
5598 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5599 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5600 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5601 (AVR_PROLOGUE_*): Enumerate prologue types.
5602 (struct frame_extra_info): Remove.
5603 (struct avr_unwind_cache): Define.
5604 (avr_write_sp): Delete function.
5605 (avr_read_fp): Ditto.
5606 (avr_init_extra_frame_info): Ditto.
5607 (avr_pop_frame): Ditto.
5608 (avr_frame_saved_pc): Ditto.
5609 (avr_saved_pc_after_call): Ditto.
5610 (avr_push_return_address): Ditto.
5611 (avr_frame_chain): Ditto.
5612 (avr_store_struct_return): Ditto.
5613 (avr_push_arguments): Ditto.
5614 (avr_scan_prologue): Update comments. Changed to set up the info for
5615 cache unwinding. Now returns end of prologue PC.
5616 (avr_skip_prologue): Better handling of functions lacking a prologue
5617 by using avr_scan_prologue.
5618 (avr_scan_arg_moves): New function.
5619 (avr_saved_regs_unwinder): Ditto.
5620 (avr_frame_unwind_cache): Ditto.
5621 (avr_unwind_pc): Ditto.
5622 (avr_frame_this_id): Ditto.
5623 (avr_frame_prev_register): Ditto.
5624 (avr_frame_p): Ditto.
5625 (avr_frame_base_address ): Ditto.
5626 (avr_unwind_dummy_id): Ditto.
5627 (avr_push_dummy_code): Ditto.
5628 (push_stack_item): Ditto.
5629 (pop_stack_item): Ditto.
5630 (avr_push_dummy_call): Ditto.
5631 (struct stack_item): Define.
5632 (avr_frame_unwind): Declare structure.
5633 (avr_frame_base): Ditto.
5634 (avr_gdbarch_init): Remove calls to
5635 set_gdbarch_deprecated_init_frame_pc,
5636 set_gdbarch_deprecated_target_read_fp,
5637 set_gdbarch_deprecated_dummy_write_sp,
5638 set_gdbarch_deprecated_fp_regnum,
5639 set_gdbarch_deprecated_push_arguments,
5640 set_gdbarch_deprecated_push_return_address,
5641 set_gdbarch_deprecated_pop_frame,
5642 set_gdbarch_deprecated_store_struct_return,
5643 set_gdbarch_deprecated_frame_init_saved_regs,
5644 set_gdbarch_deprecated_init_extra_frame_info,
5645 set_gdbarch_deprecated_frame_chain,
5646 set_gdbarch_deprecated_frame_saved_pc,
5647 set_gdbarch_deprecated_saved_pc_after_call.
5648 Add calls to set_gdbarch_push_dummy_call,
5649 set_gdbarch_push_dummy_code,
5650 frame_unwind_append_predicate,
5651 frame_base_set_default,
5652 set_gdbarch_unwind_dummy_id,
5653 set_gdbarch_unwind_pc.
5654 Wrap a long line.
5655
7be04a68
MS
56562003-06-18 Corinna Vinschen <vinschen@redhat.com>
5657
5658 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
5659 registers for H8/300S.
5660 (h8300_print_registers_info): Ditto.
8ffd9b1b 5661 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 5662
ae087d01
DJ
56632003-06-18 Daniel Jacobowitz <drow@mvista.com>
5664
5665 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
5666 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
5667 (lin_lwp_wait): Likewise. Update comments.
5668 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
5669 (pull_pid_from_list, linux_record_stopped_pid): New.
5670
07d8f827
SC
56712003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5672
5673 * ada-lang.c (scan_discrim_bound): Name first argument.
5674 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
5675 declared by ALL_BLOCK_SYMBOLS.
5676
7cb47b14
SC
56772003-06-17 Stephane Carrez <stcarrez@nerim.fr>
5678
5679 * ada-tasks.c (find_function_in_inferior): Don't declare it.
5680 ("regcache.h"): Include it.
5681 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
5682
6ad8ae5c
DJ
56832003-06-17 Daniel Jacobowitz <drow@mvista.com>
5684
5685 * NEWS: Mention gdbserver detach change and "disconnect" command.
5686 * infcmd.c (disconnect_command): New function.
5687 (_initialize_infcmd): Add ``disconnect'' command.
5688 * remote.c (remote_async_detach): Delete.
5689 (remote_detach): Merge remote_async_detach.
5690 (remote_disconnect): New.
5691 (init_remote_ops): Set to_disconnect.
5692 (init_remote_cisco_ops): Likewise.
5693 (init_remote_async_ops): Likewise. Use remote_detach.
5694 * target.c (cleanup_target): Default to_disconnect.
5695 (update_current_target): Inherit to_disconnect.
5696 (target_disconnect, debug_to_disconnect): New functions.
5697 (setup_target_debug): Set to_disconnect.
5698 * target.h (struct target_ops): Add to_disconnect.
5699 (target_disconnect): Add prototype.
5700
687595f9
DJ
57012003-06-17 Daniel Jacobowitz <drow@mvista.com>
5702
5703 * breakpoint.c (insert_catchpoint): New function.
5704 (insert_breakpoints): Use catch_exceptions to call
5705 insert_catchpoint. Disable catchpoints if they fail to insert.
5706
29239a8f
DJ
57072003-06-17 Daniel Jacobowitz <drow@mvista.com>
5708
5709 * symfile.c (reread_symbols): Clear sym_private.
5710
2cdf3c63
AC
57112003-06-17 Andrew Cagney <cagney@redhat.com>
5712
5713 * trad-frame.h (struct frame_info): Add opaque declaration.
5714 * remote-fileio.h (struct cmd_list_element): Add opaque
5715 declaration.
5716 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
5717 comments.
5718
cf0e1e0d
DJ
57192003-06-17 Daniel Jacobowitz <drow@mvista.com>
5720
5721 * remote.c (remote_prepare_to_store): Replace call to
5722 deprecated_read_register_bytes with multiple regcache_raw_read
5723 calls.
5724
192cdb19
KW
57252003-06-17 Kris Warkentin <kewarken@qnx.com>
5726
5727 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
5728 (nto_find_and_open_solib): Likewise.
5729 (nto_init_solib_absolute_prefix): Likewise.
5730 (_initialize_nto_tdep): Fix indentation.
5731
89929b45
KW
57322003-06-17 Kris Warkentin <kewarken@qnx.com>
5733
5734 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
5735
46019f27
KW
57362003-06-17 Kris Warkentin <kewarken@qnx.com>
5737
5738 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
5739
1a38736e
JB
57402003-06-17 Jim Blandy <jimb@redhat.com>
5741
5742 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
5743
3605c34a
TR
57442003-06-16 Theodore A. Roth <troth@openavr.org>
5745
5746 * avr-tdep.c (avr_extract_return_value): New function.
5747 (avr_gdbarch_init): Set extract_return_value method.
5748
870b3035
AC
57492003-06-16 Andrew Cagney <cagney@redhat.com>
5750
5751 * frame.h (deprecated_get_next_frame_hack): Declare.
5752 * frame.c (legacy_saved_regs_prev_register): Only require
5753 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
5754 there are always saved regs.
5755 (deprecated_generic_get_saved_register): Do not require
5756 DEPRECATED_FRAME_INIT_SAVED_REGS.
5757 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
5758 use frame ID unwind instead.
5759 (deprecated_get_next_frame_hack): New function.
5760
63d47a7d
CV
57612003-06-16 Corinna Vinschen <vinschen@redhat.com>
5762
5763 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
5764 (h8300_push_dummy_call): ...this function. Some minor optimization.
5765 (h8300_push_return_address): Remove.
5766 (h8300_gdbarch_init): Remove calls to
5767 set_gdbarch_deprecated_dummy_write_sp,
5768 set_gdbarch_deprecated_push_arguments and
5769 set_gdbarch_deprecated_push_return_address.
5770 Add call to set_gdbarch_push_dummy_call.
5771
4bb1dc5e
CV
57722003-06-16 Corinna Vinschen <vinschen@redhat.com>
5773
5774 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
5775 (E_PSEUDO_EXR_REGNUM): Ditto.
5776 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 5777 registers into safe registers.
4bb1dc5e
CV
5778 (h8300_skip_prologue): Check for stm instruction to push registers
5779 used for register variables onto stack.
5780 (gdb_print_insn_h8300): Remove.
5781 (h8300_examine_prologue): Add a comment.
5782 (h8300_register_name): Take pseudo registers into account.
5783 (h8300s_register_name): Ditto.
5784 (h8300sx_register_name): Ditto.
5785 (h8300_print_register): Ditto.
5786 (h8300_print_registers_info): Define "nice" printing order.
5787 (h8300_saved_pc_after_call): Take pseudo registers into account.
5788 (h8300_register_type): Ditto. Return type used for remote connection
5789 when requesting real CCR or EXR register, return actual type when
5790 requesting pseudo CCR or EXR.
5791 (h8300_pseudo_register_read): New function.
5792 (h8300_pseudo_register_write): Ditto.
5793 (h8300_dbg_reg_to_regnum): Ditto.
5794 (h8300s_dbg_reg_to_regnum): Ditto.
5795 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
5796 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
5797 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
5798 set_gdbarch_print_insn architecture dependent.
5799 Call set_gdbarch_pseudo_register_read and
5800 set_gdbarch_pseudo_register_write.
5801 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
5802
a59fe496
AC
58032003-06-16 Andrew Cagney <cagney@redhat.com>
5804
5805 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
5806 * gdbarch.h, gdbarch.c: Re-generate.
5807 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5808 * s390-tdep.c (s390_gdbarch_init): Update.
5809 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5810 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5811 * mips-tdep.c (mips_gdbarch_init): Update.
5812 * mcore-tdep.c (mcore_gdbarch_init): Update.
5813 * cris-tdep.c (cris_gdbarch_init): Update.
5814 * infcall.c (call_function_by_hand): Update.
5815 * ia64-tdep.c (ia64_push_arguments): Update comment.
5816 * frame.c (legacy_get_prev_frame): Do not assume
5817 SAVE_DUMMY_FRAME_TOS_P.
5818 * dummy-frame.c (find_dummy_frame): Update comment.
5819
6f4e5a41
AC
58202003-06-16 Andrew Cagney <cagney@redhat.com>
5821
5822 * regcache.c (do_cooked_read): Do not use register_valid_p.
5823
72fab697
TR
58242003-06-15 Theodore A. Roth <troth@openavr.org>
5825
5826 * avr-tdep.c (avr_register_type): Remove a blank line.
5827 (avr_scan_prologue): Correct some comments.
5828
e3d8b004
TR
58292003-06-15 Theodore A. Roth <troth@openavr.org>
5830
5831 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5832 prologue types.
8ffd9b1b 5833 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
5834 option.
5835 Add code to scan -mcall-prologues for mega devices.
5836
866b76ea
TR
58372003-06-15 Theodore A. Roth <troth@openavr.org>
5838
5839 * avr-tdep.c (avr_register_byte): Delete function.
5840 (avr_register_raw_size): Delete function.
5841 (avr_register_virtual_size): Delete function.
5842 (avr_register_virtual_type): Delete function.
5843 (avr_register_type): New function.
5844 (avr_address_to_pointer): Remove unused code.
5845 (avr_read_fp): Need to read FP as two separate bytes due to change to
5846 avr_register_type() usage.
5847 (avr_gdbarch_init): Don't set deprecated_register_size.
5848 Don't set deprecated_register_bytes.
5849 Don't set deprecated_register_byte.
5850 Don't set deprecated_register_raw_size.
5851 Don't set deprecated_max_register_raw_size.
5852 Don't set deprecated_register_virtual_size.
5853 Don't set deprecated_max_register_virtual_size.
5854 Don't set deprecated_register_virtual_type.
5855 Set register_type method.
5856
3993f6b1
DJ
58572003-06-15 Daniel Jacobowitz <drow@mvista.com>
5858
5859 * Makefile.in (linux-nat.o): Add rule.
5860 * linux-nat.c: New file.
5861 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5862 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5863 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5864 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5865 * config/arm/linux.mh (NATDEPFILES): Likewise.
5866 * config/i386/linux.mh (NATDEPFILES): Likewise.
5867 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5868 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5869 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5870 * config/mips/linux.mh (NATDEPFILES): Likewise.
5871 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5872 * config/s390/s390.mh (NATDEPFILES): Likewise.
5873 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5874
786a90bb
MK
58752003-06-15 Mark Kettenis <kettenis@gnu.org>
5876
5877 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5878 replace out-of-date comment.
5879
3bd3f01e
AC
58802003-06-15 Andrew Cagney <cagney@redhat.com>
5881
5882 * rdi-share/host.h (Fail): Change to a varargs function.
5883 * remote-rdi.c (Fail): Update.
8ffd9b1b 5884
de5b9bb9
MK
58852003-06-15 Mark Kettenis <kettenis@gnu.org>
5886
5887 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5888 (i386_convert_register_p, i386_register_to_value,
5889 i386_register_from_value): Handle types longer than 8 bytes.
5890
d532c08f
MK
58912003-06-15 Mark Kettenis <kettenis@gnu.org>
5892
5893 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5894 Move floating-point code to new function in i387-tdep.c.
5895 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5896 New functions containing code moved here from i386-tdep.c.
5897 * i387-tdep.h: Add opaque declaration for `struct type'.
5898 (i387_register_to_value, i387_value_to_register): New prototypes.
5899 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5900 (x86_64_init_abi): Set convert_register_p, register_to_value and
5901 value_to_register here.
8ffd9b1b 5902
42c466d7
AC
59032003-06-14 Andrew Cagney <cagney@redhat.com>
5904
5905 * mips-tdep.c (mips_register_to_value): Make static.
5906 (mips_value_to_register): Make static.
5907 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5908 * ia64-tdep.c (ia64_register_raw_size): Make static.
5909 (ia64_register_virtual_size): Make static.
5910 (ia64_register_byte): Make static.
5911 * i387-tdep.c: Include "i387-tdep.h".
5912 (print_387_control_word): Delete function.
5913 (print_387_status_word): Delete function.
5914 (print_387_status_bits): Delete function.
5915 (print_387_control_bits): Delete function.
5916 * Makefile.in (i387-tdep.o): Update dependencies.
5917 * rdi-share/host.h (Fail): Declare.
5918 * remote-rdi.c (Fail): Update to match declaration.
5919
2a9cda49
AC
59202003-06-14 Andrew Cagney <cagney@redhat.com>
5921
5922 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5923 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5924 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5925 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5926 * README: Delete reference to remote-array.
5927 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5928 (remote-array.o): Delete target.
5929 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5930 * remote-array.c: Delete file.
5931
ff2e87ac
AC
59322003-06-14 Andrew Cagney <cagney@redhat.com>
5933 Mark Kettenis <kettenis@gnu.org>
5934
5935 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5936 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5937 parameter with "frame".
5938 * gdbarch.h, gdbarch.c: Re-generate.
5939 * frame.h (put_frame_register): Declare.
5940 * frame.c (put_frame_register): New function.
5941 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5942 (legacy_register_to_value): Rewrite, use "frame" to get the
5943 register value.
5944 (legacy_value_to_register): Rewrite, use "frame" to find the
5945 register's location before storing.
5946 * arch-utils.h (legacy_convert_register_p): Update.
5947 (legacy_register_to_value, legacy_value_to_register): Update.
5948 * findvar.c (value_from_register): Rewrite, eliminate use of
5949 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5950 "frame" to REGISTER_TO_VALUE.
5951 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5952 lval_reg_frame_relative + lval_register branch of the switch. Do
5953 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5954 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5955 I386_EDI_REGNUM): New defines.
5956 (i386_next_regnum, i386_convert_register_p,
5957 i386_register_to_value, i386_value_to_register): New functions.
5958 (i386_register_convertible, i386_register_convert_to_virtual,
5959 i386_convert_to_raw): Remove functions.
5960 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5961 value_to_register instead of register_convertible,
5962 register_convert_to_virtual and register_convert_to_raw.
5963 * mips-tdep.c (mips_convert_register_p): New function.
5964 (mips_value_to_register): Replace mips_register_convert_from_type.
5965 (mips_register_to_value): Replace mips_register_convert_to_type.
5966 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5967 register_to_value.
5968 * alpha-tdep.c (alpha_convert_register_p): Update.
5969 (alpha_value_to_register): Update, store the register.
5970 (alpha_register_to_value): Update, fetch the register.
5971
98be1e77
TR
59722003-06-14 Theodore A. Roth <troth@openavr.org>
5973
5974 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5975 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5976 Don't set deprecated_call_dummy_words.
5977 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5978 Don't set remote_translate_xfer_address.
5979 (avr_io_reg_read_command): Remove commented out debug printf.
5980 Wrap a long line.
5981
57bc6122
TR
59822003-06-14 Theodore A. Roth <troth@openavr.org>
5983
5984 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5985 causes gdb to seg fault.
5986
eb01fc62
DJ
59872003-06-14 Daniel Jacobowitz <drow@mvista.com>
5988
5989 * sparc-nat.c (fetch_inferior_registers): Correct
5990 a reference to "registers".
5991
3b3e6bee
DJ
59922003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5993
5994 * Makefile.in (exc_request_U_h): Define
5995 (exc_request_S_h): Likewise.
5996 (msg_reply_S_h): Likewise.
5997 (msg_U_h): Likewise.
5998 (notify_S_h): Likewise.
5999 (process_reply_S_h): Likewise.
6000 (gnu-nat.o): Depend on gdb_obstack_h
6001 * gnu-nat.c: Include "gdb_obstack.h".
6002
b8de8283
AC
60032003-06-13 Andrew Cagney <cagney@redhat.com>
6004
6005 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6006 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6007
f3be58bc
AC
60082003-06-13 Andrew Cagney <cagney@redhat.com>
6009
6010 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6011 when deprecated REGISTER macros can be deleted.
6012 * gdbarch.h, gdbarch.c: Re-generate.
6013
4c0122c8
JB
60142003-06-13 Jim Blandy <jimb@redhat.com>
6015
6016 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6017 Linux entry point symbols for _dl_debug_state, too.
6018
3e210248
AC
60192003-06-13 Andrew Cagney <cagney@redhat.com>
6020
6021 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6022 available, do not use the FP register, and always save the TOS.
6023 * dummy-frame.c (dummy_frame_this_id): Do not assert
6024 SAVE_DUMMY_FRAME_TOS.
6025 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6026 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6027 (i386_push_dummy_call): Add 8 to the returned SP.
6028 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6029 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6030 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6031 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6032 (x86_64_push_dummy_call): Return "sp + 16".
6033 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6034 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6035 save_dummy_frame_tos.
6036
0b65af49
JB
60372003-06-13 Jim Blandy <jimb@redhat.com>
6038
6039 * frv-tdep.c (frv_use_struct_convention): Delete static
6040 declaration for function deleted in my change of 2003-06-12.
6041
4ea2465e
TR
60422003-06-13 Theodore A. Roth <troth@openavr.org>
6043
6044 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6045 (avr_pointer_to_address): Shift code addrs left 1 bit.
6046 (avr_convert_from_func_ptr_addr): Delete function since operation is
6047 better handled by avr_address_to_pointer and avr_pointer_to_address.
6048 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6049
1581182a
MK
60502003-06-13 Mark Kettenis <kettenis@gnu.org>
6051
6052 From Kelley Cook <kelleycook@wideopenwest.com>:
6053 * configure.host: Accept i[34567]86 variants.
6054 * configure.tgt: Likewise.
6055 * nlm/configure.in: Likewise.
6056 * nlm/configure: Regenerated.
6057
7aa1783e
RE
60582003-06-13 Richard Earnshaw <rearnsha@arm.com>
6059
6060 * arm-tdep.c (solib-svr4.h): Dont' include it.
6061 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6062 * arm-linux-tdep.c: ... here. Make static.
6063 (arm_linux_init_abi): Register it.
6064 (solib-svr4.h): Include it.
6065 * Makefile.in: Update dependencies.
6066 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6067 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6068
0261a0d0
CV
60692003-06-13 Corinna Vinschen <vinschen@redhat.com>
6070
6071 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6072 indicate registers used for return values.
6073 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6074 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6075 members.
6076 (h8300_init_extra_frame_info): Ditto.
6077 (h8300_frame_locals_address): Removed.
6078 (h8300_frame_args_address): Removed.
6079 (h8300_extract_return_value): Use new regcache structure. Only care
6080 for 16 bit CPUs.
6081 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6082 (h8300_store_return_value): Use new regcache structure. Only care
6083 for 16 bit CPUs.
6084 (h8300h_store_return_value): Same function for 32 bit CPUs.
6085 (h8300_store_struct_return): Removed.
6086 (h8300_extract_struct_value_address): Use new regcache structure.
6087 (h8300h_extract_struct_value_address): Removed.
6088 (h8300_push_dummy_code): New function.
6089 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6090 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6091 set_gdbarch_store_return_value architecture dependent.
6092 Call set_gdbarch_push_dummy_code and
6093 set_gdbarch_extract_struct_value_address.
6094 Remove calls to set_gdbarch_frame_args_address,
6095 set_gdbarch_frame_locals_address,
6096 set_gdbarch_deprecated_store_struct_return,
6097 set_gdbarch_deprecated_extract_return_value,
6098 set_gdbarch_deprecated_extract_struct_value_address,
6099 set_gdbarch_deprecated_call_dummy_words and
6100 set_gdbarch_deprecated_sizeof_call_dummy_words.
6101
055c394a
CV
61022003-06-13 Corinna Vinschen <vinschen@redhat.com>
6103
6104 * h8300-tdep.c (h8300_register_byte): Remove.
6105 (h8300h_register_byte): Remove.
6106 (h8300_register_virtual_type): Remove. Substitute by...
6107 (h8300_register_type): New function.
6108 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6109 (h8300h_extract_struct_value_address): Ditto.
6110 (h8300_gdbarch_init): Drop calls to
6111 set_gdbarch_deprecated_register_byte and
6112 set_gdbarch_deprecated_register_virtual_type.
6113 Add call to set_gdbarch_register_type.
6114
9c04cab7
AC
61152003-06-13 Andrew Cagney <cagney@redhat.com>
6116
6117 * gdbarch.sh: Update comments on registers.
6118 (deprecated_register_byte): Rename register_byte.
6119 (deprecated_register_raw_size): Rename register_raw_size.
6120 (deprecated_register_virtual_size): Rename register_virtual_size.
6121 (deprecated_register_virtual_type): Rename register_virtual_type.
6122 * gdbarch.h, gdbarch.c: Re-generate.
6123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6124 * vax-tdep.c (vax_gdbarch_init): Update.
6125 * v850-tdep.c (v850_gdbarch_init): Update.
6126 * sparc-tdep.c (sparc_gdbarch_init): Update.
6127 * sh-tdep.c (sh_gdbarch_init): Update.
6128 * s390-tdep.c (s390_gdbarch_init): Update.
6129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6130 * ns32k-tdep.c: Update.
6131 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6132 * mips-tdep.c (mips_gdbarch_init): Update.
6133 * mcore-tdep.c (mcore_gdbarch_init): Update.
6134 * m68k-tdep.c (m68k_gdbarch_init): Update.
6135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6136 * ia64-tdep.c (ia64_gdbarch_init): Update.
6137 * hppa-tdep.c (hppa_gdbarch_init): Update.
6138 * h8300-tdep.c (h8300_gdbarch_init): Update.
6139 * frv-tdep.c (frv_gdbarch_init): Update.
6140 * cris-tdep.c (cris_gdbarch_init): Update.
6141 * avr-tdep.c (avr_gdbarch_init): Update.
6142 * alpha-tdep.c (alpha_gdbarch_init): Update.
6143 * arm-tdep.c (arm_gdbarch_init): Update.
6144
b060cbea
AC
61452003-06-13 Andrew Cagney <cagney@redhat.com>
6146
6147 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6148 mips_o32_use_struct_convention with always_use_struct_convention.
6149
0fc9922a
DC
61502003-06-12 David Carlton <carlton@kealia.com>
6151
6152 * cp-namespace.c (cp_set_block_scope): Comment out
6153 processing_has_namespace_info branch.
6154
1fd35568
JB
61552003-06-12 Jim Blandy <jimb@redhat.com>
6156
f470a70a
JB
6157 Recognize and skip 64-bit PowerPC Linux linkage functions.
6158 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6159 insn_pattern, insns_match_pattern, d_field, ds_field): New
6160 functions, macros, and types for working with PPC instructions.
6161 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6162 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6163 ppc64_skip_trampoline_code): New functions, variables, and macros
6164 for recognizing and skipping linkage functions.
6165 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6166 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6167
49ff75ad
JB
6168 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6169 register offsets for both the 32- and 64-bit interfaces.
6170
bd918c83
JB
6171 Actually finish the job started by my change of 2003-05-29.
6172 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6173 other #definition of this.
6174 (ppc_linux_skip_trampoline_code): Remove declaration.
6175 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6176 static.
6177 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6178 method for GDBARCH.
6179
6180 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6181 'long' on ppc64-*-linux*.
6182
f8c59253
JB
6183 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6184 isn't #defined, assume the register doesn't exist: act as if
6185 tdep->ppc_mq_regnum were -1.
6186
8fbb30b1
JB
6187 * configure.host, configure.tgt: Add entries for
6188 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6189 powerpc/linux.mt.
6190 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6191 New files.
6192
1fd35568
JB
6193 * arch-utils.c (always_use_struct_convention): New function.
6194 * arch-utils.h (always_use_struct_convention): New prototype.
6195 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6196 (alpha_gdbarch_init): Register always_use_struct_convention,
6197 instead of alpha_use_struct_convention.
6198 * cris-tdep.c (cris_use_struct_convention): Delete.
6199 (cris_gdbarch_init): Register always_use_struct_convention,
6200 instead of cris_use_struct_convention.
6201 * frv-tdep.c (frv_use_struct_convention): Delete.
6202 (frv_gdbarch_init): Register always_use_struct_convention,
6203 instead of frv_use_struct_convention.
6204 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6205 (h8300_gdbarch_init): Register always_use_struct_convention,
6206 instead of h8300_use_struct_convention.
e3305dd9 6207 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6208 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6209 instead of mips_o32_use_struct_convention.
6210
e14e6e9c
AC
62112003-06-12 Andrew Cagney <cagney@redhat.com>
6212
6213 * wince.c: Include "mips-tdep.h".
6214 * mips-tdep.h (mips_next_pc): Declare.
6215 * mcore-tdep.c: Make more local functions static.
6216 * Makefile.in (wince.o): Update dependencies.
6217
2335f48e
DC
62182003-06-12 David Carlton <carlton@kealia.com>
6219
6220 * symtab.c (lookup_symbol_aux_minsyms): Replace
6221 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6222 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6223 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6224 SYMBOL_NATURAL_NAME.
6225
f70a7d61
AS
62262003-06-12 Andreas Schwab <schwab@suse.de>
6227
6228 * Makefile.in (tuiDisassem.o): Update dependencies.
6229
b6429628
DC
62302003-06-12 David Carlton <carlton@bactrian.org>
6231
6232 * symtab.h: Delete declaration of make_symbol_overload_list.
6233 Add declaration of lookup_partial_symbol.
6234 * symtab.c (remove_params): Move to cp-support.c.
6235 (overload_list_add_symbol, make_symbol_overload_list)
6236 (sym_return_val_size, sym_return_val_index): Ditto.
6237 (lookup_partial_symbol): Make extern.
6238 * cp-support.h: Add declaration of make_symbol_overload_list.
6239 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6240 symtab.h, and block.h.
6241 (remove_params): Move here from symtab.c.
6242 (overload_list_add_symbol, make_symbol_overload_list)
6243 (sym_return_val_size, sym_return_val_index): Ditto.
6244 * valops.c: Include cp-support.h.
6245 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6246 frame_h, and block_h.
6247 (valops.o): Depend on cp_support_h.
6248
084edea5
CV
62492003-06-12 Corinna Vinschen <vinschen@redhat.com>
6250
6251 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6252 substitute by NUM_REGS throughout.
6253 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6254 (h8300s_register_name): New function for H8S registers.
6255 (h8300sx_register_name): Ditto for H8SX registers.
6256 (h8300_print_register): Revise register printing, avoid depending
6257 on 32 bit long.
0261a0d0 6258 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6259 (h8300h_register_byte): New function for any other architecture.
6260 (h8300_register_raw_size): Remove.
6261 (h8300_register_virtual_type): Revise to return actually useful
6262 type.
6263 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6264 (h8300h_extract_struct_value_address): New function for any other
6265 architecture.
6266 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6267 set_gdbarch_register_name, set_gdbarch_register_byte,
6268 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6269 Remove calls to set_gdbarch_deprecated_register_size,
6270 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6271 set_gdbarch_deprecated_max_register_raw_size,
6272 set_gdbarch_register_virtual_size and
6273 set_gdbarch_deprecated_max_register_virtual_size entirely.
6274 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6275 set_gdbarch_long_double_bit.
6276
06194148
JJ
62772003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6278
8ffd9b1b
AJ
6279 * doublest.c (convert_doublest_to_floatformat): When dealing
6280 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6281 processing a full 32 bits of mantissa.
6282
de4f826b
DC
62832003-06-11 David Carlton <carlton@bactrian.org>
6284
6285 * dictionary.h: New.
6286 * dictionary.c: New.
6287 * block.h: Add opaque declaration for struct dictionary.
6288 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6289 'sym' members.
6290 (BLOCK_DICT): New macro.
6291 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6292 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6293 BLOCK_SHOULD_SORT.
6294 (ALL_BLOCK_SYMBOLS): Update definition.
6295 * Makefile.in (SFILES): Add dictionary.c.
6296 (dictionary_h): New.
6297 (COMMON_OBS): Add dictionary.o.
6298 (dictionary.o): New.
6299 (ada-lang.o): Depend on dictionary_h.
6300 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6301 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6302 (mi-cmd-stack.o): Ditto.
6303 (gdbtk-cmds.o): Update dependencies.
6304 (gdbtk-stack.o): Ditto.
6305 * ada-lang.c: Include dictionary.h.
6306 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6307 (fill_in_ada_prototype, debug_print_block): Ditto.
6308 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6309 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6310 'is_sorted'.
6311 * mdebugread.c: Include dictionary.h.
6312 (struct parse_stack): Delete 'maxsyms' member.
6313 (parse_symbol): Update calls to new_block. Delete calls to
6314 shrink_block. Use dictionary methods.
6315 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6316 Update calls to new_symtab. Don't maintain maxsyms data.
6317 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6318 (add_symbol): Just call dict_add_symbol.
6319 (new_symtab): Delete 'maxsyms' argument.
6320 (new_symtab): Update calls to new_block.
6321 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6322 (shrink_block): Delete function.
6323 (fixup_sigtramp): Update call to new_block. Add symbol via
6324 dict_add_symbol.
6325 * jv-lang.c: Include dictionary.h.
6326 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6327 appropriately. Set class_symtab->free_func. Make sure the
6328 blockvector is big enough to hold two blocks.
6329 (add_class_symtab_symbol): Use dictionary methods.
6330 (free_class_block): New function.
6331 (type_from_class): Replace explicit iteration by
6332 ALL_BLOCK_SYMBOLS.
6333 * symtab.h (struct symtab): Replace 'free_ptr' method by
6334 'free_func'.
6335 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6336 sort_symtab_syms.
6337 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6338 sort_symtab_syms.
6339 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6340 Include dictionary.h.
6341 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6342 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6343 sort_symtab_syms.
6344 * objfiles.c: Include dictionary.h.
6345 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6346 * buildsym.c: Include dictionary.h.
6347 (finish_block): Use dictionary methods.
6348 (end_symtab): Set free_func to NULL, not free_ptr.
6349 * tracepoint.c: Include dictionary.h.
6350 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6351 (scope_info): Ditto.
6352 * stack.c: Include dictionary.h.
6353 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6354 (print_block_frame_labels, print_frame_arg_vars)
6355 (print_frame_args): Ditto.
6356 * symmisc.c (free_symtab_block): Use dictionary methods.
6357 (dump_symtab): Ditto.
6358 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6359 Include dictionary.h.
6360 * symfile.h: Delete declarations of sort_block_syms,
6361 sort_symtab_syms.
6362 * symfile.c (sort_block_syms): Delete.
6363 (sort_symtab_syms): Delete.
6364 * symtab.c: Include dictionary.h.
6365 (lookup_block_symbol): Use dictionary iterators.
6366 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6367 (search_symbols, make_symbol_completion_list): Ditto.
6368 (make_symbol_overload_list): Ditto.
6369 * valops.c (value_of_local): Use dict_empty.
6370 Include dictionary.h.
6371
a31f978c
JB
63722003-06-11 J. Brobecker <brobecker@gnat.com>
6373
6374 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6375
526e70c0
DC
63762003-06-11 David Carlton <carlton@bactrian.org>
6377
6378 * block.h (BLOCK_SHOULD_SORT): Delete.
6379 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6380 blocks.
6381 * ada-lang.c (ada_add_block_symbols): Ditto.
6382 * symfile.c (sort_block_syms): Delete.
6383 (sort_symtab_syms): Ditto.
6384 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6385 declarations.
6386 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6387 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6388 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6389 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6390 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6391 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6392 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6393
33c08150
JJ
63942003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6395
8ffd9b1b 6396 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6397 bits to 128.
6398
781a750d
AC
63992003-06-11 Andrew Cagney <cagney@redhat.com>
6400
6401 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6402 REGISTER_CONVERTIBLE.
6403 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6404 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6405 * gdbarch.h, gdbarch.c: Re-generate.
6406 * arch-utils.h (deprecated_register_convertible_not): Rename
6407 generic_register_convertible_not.
6408 * arch-utils.c (deprecated_register_convertible_not): Rename
6409 generic_register_convertible.
6410 (legacy_convert_register_p, legacy_register_to_value): Update.
6411 * sh-tdep.c (sh64_push_arguments): Update.
6412 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6413 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6414 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6415 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6416 * arch-utils.c (legacy_value_to_register): Update.
6417 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6418 (rs6000_register_convert_to_raw): Make parameter "from" const.
6419 * mips-tdep.c (mips_gdbarch_init): Update.
6420 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6421 * infcmd.c (default_print_registers_info): Update.
6422 * ia64-tdep.c (ia64_gdbarch_init): Update.
6423 (ia64_register_convert_to_raw): Make parameter "from" const.
6424 * i386-tdep.c (i386_gdbarch_init): Update.
6425 (i386_register_convert_to_raw): Update.
6426
cd90e54f
AC
64272003-06-11 Andrew Cagney <cagney@redhat.com>
6428
6429 * remote-fileio.c: Include "remote-fileio.h".
6430 * Makefile.in (remote-fileio.o): Update dependencies.
6431 (remote_fileio_h): Fix typo.
6432
a78f21af
AC
64332003-06-11 Andrew Cagney <cagney@redhat.com>
6434
6435 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6436 (xstormy16_save_dummy_frame_tos): Make static.
6437 (_initialize_xstormy16_tdep): Add declaration.
6438 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6439 * v850-tdep.c: Make local functions static.
6440 (_initialize_v850_tdep): Add declaration.
6441 * sparc-tdep.c: Make local functions static.
6442 (_initialize_sparc_tdep): Add declaration.
6443 * sh-tdep.c: Make local functions static.
6444 (_initialize_sh_tdep): Add declaration.
6445 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6446 * s390-tdep.c: Make local functions static.
6447 (_initialize_s390_tdep): Add declaration.
6448 * dbxread.c (find_stab_function_addr): Make static.
6449 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6450 * ocd.c (_initialize_remote_ocd): Add declaration.
6451 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6452 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6453 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6454 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6455 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6456 * remote-array.c (_initialize_array): Add declaration.
6457 (_initialize_remote_monitors): Add declaration.
6458 * remote-mips.c: Make local functions static.
6459 (_initialize_remote_mips): Add declaration.
6460 * mcore-tdep.c: Make all local functions static.
6461 (_initialize_mcore_tdep): Add declaration.
6462 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6463 * abug-rom.c (_initialize_abug_rom): Add declaration.
6464 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6465 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6466 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6467 * remote-est.c (_initialize_est): Add declaration.
6468 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6469 (m68hc11_call_dummy_address): Make static.
6470 * ia64-tdep.c: Make local functions static.
6471 (_initialize_ia64_tdep): Add declaration.
6472 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6473 * monitor.c (monitor_wait_filter): Make static.
6474 (_initialize_remote_monitors): Add declaration.
6475 * remote-hms.c (_initialize_remote_hms): Add declaration.
6476 * remote-e7000.c (fetch_regs_from_dump): Make static.
6477 (expect_n): Make static.
6478 (_initialize_remote_e7000): Add declaration.
6479 * ser-e7kpc.c: Always include "defs.h".
6480 (_initialize_ser_e7000pc): Add declaration.
6481 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6482 * cris-tdep.c: Make all but one function static.
6483 (_initialize_cris_tdep): Add declaration.
6484 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6485 * solib.c (update_solib_list): Make static.
6486 (_initialize_solib): Add declaration.
6487 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6488 (_initialize_avr_tdep): Add declaration.
6489 * remote-rdi.c (voiddummy): Make static.
6490 (_initialize_remote_rdi): Add declaration.
6491 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6492 * remote-rdp.c (send_rdp): Make static.
6493 (_initialize_remote_rdp): Add declaration.
6494 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6495
cbcdb1f5
CV
64962003-06-11 Corinna Vinschen <vinschen@redhat.com>
6497
6498 * remote-fileio.c: Make ari happy.
6499
a191ea8d
JB
65002003-06-10 J. Brobecker <brobecker@gnat.com>
6501
6502 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6503 fetching the trailing bytes of the buffer we are about to write.
6504
0ef75e11
AC
65052003-06-10 Andrew Cagney <cagney@redhat.com>
6506
6507 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6508 * Makefile.in (remote-fileio.o): Update dependencies.
6509 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6510 include <setjmp.h>, or <sys/types.h> conditional on USG.
6511 (remote_fio_jmp_buf): Delete global variable.
6512
449092f6 65132003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6514 Martin M. Hunt <hunt@redhat.com>
449092f6 6515
559fa028
AC
6516 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6517 (SFILES): Add remote-fileio.c.
6518 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6519 dependencies for building remote.o.
449092f6
CV
6520 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6521 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6522 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6523 static storage class.
6524 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6525 'F' packet.
6526 (_initialize_remote): Call initialize_remote_fileio().
6527 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6528 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6529 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6530 (captured_main): Initialize new ui_files.
6531 * ui-file.c: Add read and fgets input functions.
6532 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6533 (null_file_read): New function.
6534 (ui_file_read): New function.
6535 (set_ui_file_read): New function.
6536 (stdio_file_read): New function.
6537 * ui-file.h: New type ui_file_read_ftype.
6538 (set_ui_file_read): Declare.
6539 (ui_file_read): Declare.
6540
248de703
AC
65412003-06-09 Andrew Cagney <cagney@redhat.com>
6542
6543 * frame.h (deprecated_unwind_get_saved_register): Rename
6544 generic_unwind_get_saved_register, update comments.
6545 * mips-tdep.c (mips_get_saved_register): Update.
6546 * frame.c (deprecated_unwind_get_saved_register): Update.
6547
0ed8aa57
AC
65482003-06-09 Andrew Cagney <cagney@redhat.com>
6549
6550 * vax-tdep.c (vax_frame_locals_address): Delete function.
6551 (vax_gdbarch_init): Do not set frame_locals_address.
6552 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6553 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6554 * s390-tdep.c (s390_frame_args_address): Delete function.
6555 (s390_gdbarch_init): Do not set frame_args_address or
6556 frame_locals_address.
6557 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6558 (ns32k_gdbarch_init): Do not set frame_locals_address.
6559 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6560 (hppa_frame_locals_address): Delete function.
6561 (hppa_gdbarch_init): Do not set frame_args_address, or
6562 frame_locals_address.
6563 * arm-tdep.c (arm_frame_args_address): Delete.
6564 (arm_frame_locals_address): Delete.
6565 (arm_gdbarch_init): Do not set frame_args_address, or
6566 frame_locals_address.
6567
983a287a
AC
65682003-06-09 Andrew Cagney <cagney@redhat.com>
6569
6570 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6571 * gdbarch.h, gdbarch.c: Re-generate.
6572 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6573 * arch-utils.c (frame_num_args_unknown): Delete function.
6574 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6575 (frame_info): Use FRAME_NUM_ARGS_P.
6576 * arm-tdep.c (arm_frame_num_args): Delete function.
6577 (arm_gdbarch_init): Do not set frame_num_args.
6578 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6579 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6580 (hppa_gdbarch_init): Do not set frame_num_args.
6581 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6583 frame_num_args to default frame_num_args_unknown.
6584 * v850-tdep.c (v850_gdbarch_init): Ditto.
6585 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6586 * sh-tdep.c (sh_gdbarch_init): Ditto.
6587 * s390-tdep.c (s390_gdbarch_init): Ditto.
6588 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6589 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6590 * mips-tdep.c (mips_gdbarch_init): Ditto.
6591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6592 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6594 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6595 * i386-tdep.c (i386_gdbarch_init): Ditto.
6596 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6597 * frv-tdep.c (frv_gdbarch_init): Ditto.
6598 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6599 * cris-tdep.c (cris_gdbarch_init): Ditto.
6600 * avr-tdep.c (avr_gdbarch_init): Ditto.
6601 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6602
8d3b0994
AC
66032003-06-09 Andrew Cagney <cagney@redhat.com>
6604
6605 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
6606 (print_frame_args): Moved to "stack.c".
6607 * stack.c: Include "gdb_assert.h".
6608 (print_frame_nameless_args): Moved from "printcmd.c", made static.
6609 (print_frame_args): Moved from "printcmd.c".
6610 * frame.h (print_frame_args): Delete declaration.
6611 * Makefile.in (stack.o): Update dependencies.
6612
25e3a86b
AC
66132003-06-08 Andrew Cagney <cagney@redhat.com>
6614
6615 * frame.c (get_prev_frame): Remove reference to
6616 frame_args_address_correct in comments.
6617 * frame-base.c (default_frame_args_address): Delete code
6618 conditional on FRAME_ARGS_ADDRESS_CORRECT.
6619 * vax-tdep.c (vax_frame_args_address_correct): Delete.
6620 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
6621 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
6622 (vax_frame_args_address_correct): Delete declaration.
6623
a9e5fdc2
AC
66242003-06-08 Andrew Cagney <cagney@redhat.com>
6625
6626 * gdbarch.sh (UNWIND_SP): Add.
6627 * gdbarch.h, gdbarch.c: Re-generate.
6628 * frame.c (frame_sp_unwind): New function.
6629 (get_frame_sp): New function.
6630 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
6631 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
6632 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
6633 value.
6634 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
6635 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
6636
8983bd83
AC
66372003-06-08 Andrew Cagney <cagney@redhat.com>
6638
7fec2c59
AC
6639 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
6640 REMOTE_BREAKPOINT.
6641 * remote.c: Update.
6642 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
6643 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
6644 * config/m68k/tm-sun3.h: Update.
6645 * config/m68k/tm-m68klynx.h: Update.
6646 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
6647
8983bd83
AC
6648 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
6649 trad_frame". Update comments.
6650 * d10v-tdep.c (struct d10v_unwind_cache): Update.
6651 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
6652 (trad_frame_register_value, trad_frame_prev_register): Update.
6653
b9362cc7
AC
66542003-06-08 Andrew Cagney <cagney@redhat.com>
6655
6656 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
6657 from GCC's acinclude.m4.
6658 * configure.in: Check for getopt's delcaration.
8ffd9b1b 6659 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
6660 * main.c (error_init): Delete declaration.
6661 * defs.h (error_init): Declare.
6662 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
6663 (rs6000_convert_from_func_ptr_addr): Make static.
6664 (_initialize_rs6000_tdep): Add declaration.
6665 * cli/cli-cmds.c (dont_repeat): Delete declaration.
6666 (show_commands, set_verbose, show_history): Delete declaration.
6667 * top.h (set_verbose): Add declaration.
6668 (show_history, set_history, show_commands): Add declaration.
6669 (do_restore_instream_cleanup): Add declaration.
6670 * objc-lang.c (specialcmp): Make static.
6671 (print_object_command): Make static.
6672 (find_objc_msgsend): Make static.
6673 (find_objc_msgcall_submethod_helper): Make static.
6674 (find_objc_msgcall_submethod): Make static.
6675 (_initialize_objc_language): Add declaration.
6676 (find_implementation_from_class): Make static.
6677 (find_implementation): Make static.
6678 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
6679 * objc-lang.h (lookup_struct_typedef): Add declaration.
6680 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6681 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
6682 (do_restore_user_call_depth): Make static.
6683 (do_restore_instream_cleanup): Delete declaration.
6684 (dont_repeat): Delete declaration.
6685 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
6686 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6687 * reggroups.c (_initialize_reggroup): Add declaration.
6688 * cp-support.c (_initialize_cp_support): Add declaration.
6689 * cp-abi.c (_initialize_cp_abi): Add declaration.
6690 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
6691 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
6692 (_initialize_gnu_v3_abi): Add declaration.
6693 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
6694 (_initialize_gnu_v2_abi): Add declaration.
6695 * frame-base.c (_initialize_frame_base): Add declaration.
6696 * doublest.c (floatformat_from_length): Make static.
6697 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6698 * frame.c (create_sentinel_frame): Make static.
6699 (_initialize_frame): Add declaration.
6700 * top.c (do_catch_errors): Make static.
6701 (gdb_rl_operate_and_get_next_completion): Make static.
6702 * typeprint.c: Include "typeprint.h".
6703 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
6704 (sentinel_frame_this_id): Make static.
6705 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6706 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
6707 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
6708 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
6709 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
6710 * maint.c (maintenance_print_architecture): Make static.
6711 * signals/signals.c (_initialize_signals): Add declaration.
6712 * std-regs.c (_initialize_frame_reg): Add declaration.
6713 * jv-exp.y (push_variable): ISO C definition.
6714 (push_qualified_expression_name): Ditto.
6715 * memattr.c (_initialize_mem): Add declaration.
6716 * remote.c (remote_check_watch_resources): Make static.
6717 (remote_stopped_by_watchpoint): Make static.
6718 (remote_stopped_data_address): Make static.
6719 * d10v-tdep.c (nr_dmap_regs): Make static.
6720 (a0_regnum): Make static.
6721 (d10v_frame_unwind_cache): Make static.
6722 (d10v_frame_p): Make static.
6723 * osabi.c (show_osabi): Make static.
6724 (_initialize_gdb_osabi): Add extern declaration.
6725 * gdbtypes.c (make_qualified_type): Make static.
6726 (safe_parse_type): Make static.
6727 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
6728 * macrotab.c (macro_bcache_free): Make static.
6729 * interps.c (interp_set_quiet): Make static.
6730 (interpreter_exec_cmd): Make static.
6731 * stack.h (select_frame_command): New file.
6732 * stack.c: Include "stack.h".
6733 (select_frame_command_wrapper): Delete function.
6734 (select_frame_command): Make global.
6735 * infcall.c: Include "infcall.h".
6736 * linespec.c: Include "linespec.h".
6737 * symfile.c (sections_overlap): Make static.
6738 * cp-support.h (cp_initialize_namespace): ISO C declaration.
6739 * charset.c (_initialize_charset): Add missing prototype.
6740 * regcache.c (init_legacy_regcache_descr): Make static.
6741 (do_regcache_xfree): Make static.
6742 (regcache_xfer_part): Make static.
6743 (_initialize_regcache): Add missing prototype.
6744 * breakpoint.c (parse_breakpoint_sals): Make static.
6745 (breakpoint_sals_to_pc): Make static.
6746 * interps.h (clear_interpreter_hooks): ISO C declaration.
6747 * Makefile.in (stack_h): Define.
6748 (stack.o, typeprint.o, mi-main.o): Update dependencies.
6749 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
6750
a0f267c7
AC
67512003-06-08 Andrew Cagney <cagney@redhat.com>
6752
6753 * Makefile.in (d10v-tdep.o): Update dependencies.
6754 (SFILES): Add trad-frame.c.
6755 (trad_frame_h): Define.
6756 (COMMON_OBS): Add trad-frame.o.
6757 (trad-frame.o): Specify dependencies.
6758 * d10v-tdep.c: Include "trad-frame.h".
6759 (saved_regs_unwinder): Delete function.
6760 (d10v_frame_prev_register): Use trad_frame_prev_register.
6761 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
6762 trad_frame", delete "regs" and "prev_sp".
6763 (prologue_find_regs): Use trad-frame.
6764 * trad-frame.h, trad-frame.c: New files.
6765
4538b4f4
MK
67662003-06-08 Mark Kettenis <kettenis@gnu.org>
6767
6768 * dwarf2cfi.c, dwarf2cfi.h: Remove.
6769
a0273b2f
AF
67702003-06-07 Adam Fedor <fedor@gnu.org>
6771
6772 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
6773 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
6774 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6775 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 6776 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
6777 Use it.
6778
3a6c3343
AC
67792003-06-07 Andrew Cagney <cagney@redhat.com>
6780
6781 * symfile.h: Re-indent, clean up comments.
6782
b46e02f6
AC
67832003-06-07 Andrew Cagney <cagney@redhat.com>
6784
6785 * inferior.h (deprecated_write_sp): Replace
6786 generic_target_write_sp.
6787 * regcache.c (deprecated_write_sp): Replace
6788 generic_target_write_sp.
6789 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6790 * vax-tdep.c (vax_gdbarch_init): Update.
6791 * v850-tdep.c (v850_gdbarch_init): Update.
6792 * sparc-tdep.c (sparc_gdbarch_init): Update.
6793 * sh-tdep.c (sh_gdbarch_init): Update.
6794 * s390-tdep.c (s390_gdbarch_init): Update.
6795 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6796 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6797 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6798 * mcore-tdep.c (mcore_gdbarch_init): Update.
6799 * m68k-tdep.c (m68k_gdbarch_init): Update.
6800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6801 * ia64-tdep.c (ia64_gdbarch_init): Update.
6802 * h8300-tdep.c (h8300_gdbarch_init): Update.
6803 * frv-tdep.c (frv_gdbarch_init): Update.
6804 * cris-tdep.c (cris_gdbarch_init): Update.
6805 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6806
a42e117c
AC
68072003-06-07 Andrew Cagney <cagney@redhat.com>
6808
6809 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
6810 Assert that PC_REGNUM is valid.
6811 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
6812
bd1ce8ba
AC
68132003-06-07 Andrew Cagney <cagney@redhat.com>
6814
6815 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
6816 * gdbarch.h, gdbarch.c: Regenerate.
6817 * mn10300-tdep.c: Include "gdb_assert.h".
6818 (mn10300_read_fp): New function.
6819 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
6820 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
6821 * ia64-tdep.c: Include "gdb_assert.h".
6822 (ia64_read_fp): New function.
6823 (ia64_gdbarch_init): Set deprecated_target_read_fp to
6824 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
6825 * regcache.c (generic_target_read_sp): Delete function.
6826 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6827 * inferior.h (generic_target_read_sp): Delete declaration.
6828 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6829 generic_target_read_sp.
6830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6831 * sparc-tdep.c (sparc_gdbarch_init): Ditto
6832 * sh-tdep.c (sh_gdbarch_init): Ditto.
6833 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6834 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6835
ec5cbaec
AC
68362003-06-07 Andrew Cagney <cagney@redhat.com>
6837
6838 * gdbarch.sh: Comment each field of startup_gdbarch.
6839 * gdbarch.h, gdbarch.c: Re-generate.
6840
cde9ea48
AC
68412003-06-07 Andrew Cagney <cagney@redhat.com>
6842
6843 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6844 * gdbarch.h, gdbarch.c: Re-generate.
6845 * regcache.c: Update comments on read_pc et.al.
6846 (generic_target_read_pc): Delete function.
6847 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6848 * inferior.h (generic_target_read_pc): Delete declaration.
6849 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6850 generic_target_read_pc.
6851 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6852 * sh-tdep.c (sh_gdbarch_init): Ditto.
6853 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6855
9a90a780
AC
68562003-06-07 Andrew Cagney <cagney@redhat.com>
6857
6858 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6859 "index" with "special_local_sect". Use strcmp instead of STREQ.
6860 Append period to coments.
6861
a39a16c4
MM
68622003-06-06 Mark Mitchell <mark@codesourcery.com>
6863
6864 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6865 (elfstab_offset_sections): Likewise.
6866 * gdb-stabs.h (stab_section_info): Likewise.
6867 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6868 * objfiles.c (objfile_relocate): Likewise.
6869 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6870 * remote.c (get_offsets): Likewise.
6871 (remote_cisco_objfile_relocate): Likewise.
6872 * somread.c (som_symfile_offsets): Likewise.
6873 * symfile.c (alloc_section_addr_info): New function.
6874 (build_section_addr_info_from_section_tab): Use it.
6875 (free_section_addr_info): Adjust.
6876 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6877 (syms_from_objfile): Allocate local_addr dynamically.
6878 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6879 dynamically.
6880 (add_symbol_file_command): Allocate sect_opts dynamically.
6881 (reread_symbols): Avoid use of SECT_OFF_MAX.
6882 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6883 (alloc_section_addr_info): Declare it.
6884 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6885 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6886 dynamically.
6887 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 6888
20c6c2f8
AC
68892003-06-06 Andrew Cagney <cagney@redhat.com>
6890
6891 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6892 (d10v_frame_unwind_cache): Do not set "return_pc".
6893
884a26c8
MS
68942003-06-06 Michael Snyder <msnyder@redhat.com>
6895
6896 * h8300-tdep.c: Make tidy (long lines).
6897
088ce440
ML
68982003-06-06 Michal Ludvig <mludvig@suse.cz>
6899
8ffd9b1b 6900 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
6901 to regcache_collect().
6902
7d773d96
JB
69032003-06-05 J. Brobecker <brobecker@gnat.com>
6904
6905 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6906 pc_in_sigtramp multiarch method.
6907 (hppa_hpux_som_init_abi): Use it.
6908 (hppa_hpux_elf_init_abi): Likewise.
6909 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6910 macro has been multiarched.
6911 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6912 macro here, as hppa64 isn't multiarched yet.
6913
1df6926e
AC
69142003-06-05 Andrew Cagney <cagney@redhat.com>
6915
6916 * Makefile.in (value_h): Add $(frame_h).
6917 * value.h: Include "frame.h".
6918 (struct value): Replace "frame_addr" with "frame_id".
6919 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6920 * values.c (allocate_value): Use VALUE_FRAME_ID.
6921 (value_copy): Use VALUE_FRAME_ID.
6922 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6923 * valops.c (value_assign): Update. Use frame_find_by_id.
6924
6b53acc6
ML
69252003-06-05 Michal Ludvig <mludvig@suse.cz>
6926
6927 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6928 in each pass.
6929
4d9850d3
JJ
69302003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6931
6932 * thread-db.c (check_event): For create/death event breakpoints,
6933 loop through all messages to ensure that we read the message
6934 corresponding to the breakpoint we are at.
6935
8efca6ba
MS
69362003-06-04 Michael Snyder <msnyder@redhat.com>
6937
6938 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6939
0912c7f2
MK
69402003-06-04 Mark Kettenis <kettenis@gnu.org>
6941
6942 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6943 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6944 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6945 when handling .eh_frame sections.
6946
4e370325
JB
69472003-06-04 J. Brobecker <brobecker@gnat.com>
6948
6949 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6950 prepare_to_proceed procedure instead of the hppa-specific one.
6951 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6952
b757528f 69532003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6954
b757528f
JJ
6955 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6956 * config.in: Regenerated.
6957 * configure.in: Add test for syscall function and check for
6958 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6959 * configure: Regenerated.
6960 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6961 <sys/syscall.h>.
6962 (kill_lwp): New function that uses tkill syscall or
6963 uses kill, depending on whether threading model is nptl or not.
6964 All callers of kill() changed to use kill_lwp().
6965 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6966 see if all threads have already exited in the nptl model.
6967 (stop_and_resume_callback): New callback function used by the
6968 lin_lwp_wait thread exit handling code.
6969 (stop_wait_callback): Check for threads already having exited and
6970 delete such threads fromt the lwp list when discovered.
6971 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 6972
b757528f
JJ
6973 Roland McGrath <roland@redhat.com>
6974 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6975 nptl libthread_db.
6976
087779b1
RH
69772003-06-03 Richard Henderson <rth@redhat.com>
6978
b21fd293
RH
6979 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6980 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6981 (alpha_sigtramp_frame_prev_register): Likewise.
6982 (alpha_heuristic_frame_prev_register): Likewise.
6983 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6984
8ffd9b1b 6985 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
6986 alpha-specific register id names.
6987 (alpha_mdebug_frame_unwind_cache): Likewise.
6988 (alpha_mdebug_frame_prev_register): Likewise.
6989
baa490c4
RH
69902003-06-03 Richard Henderson <rth@redhat.com>
6991
6992 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6993 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6994 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6995 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6996 unwind routines.
6997 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6998 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6999 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7000
7001 * alpha-linux-tdep.c: Remove unnecessary includes.
7002 * Makefile.in (alpha-linux-tdep.o): Update.
7003
70042003-06-03 Richard Henderson <rth@redhat.com>
7005
7006 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7007 (alphabsd_fill_fpreg): Likewise.
7008
f534e522
JB
70092003-06-03 J. Brobecker <brobecker@gnat.com>
7010
7011 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7012 references to struct frame_info fields by calls to the equivalent
7013 accessors. Necessary now that frame_info is opaque.
7014
4035536b
JB
70152003-06-03 J. Brobecker <brobecker@gnat.com>
7016
7017 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7018 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7019 structure, field no longer exists.
7020
0bd79c5c
JB
70212003-06-03 J. Brobecker <brobecker@gnat.com>
7022
7023 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7024 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7025
37bb6d9f
JB
70262003-06-03 J. Brobecker <brobecker@gnat.com>
7027
7028 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7029 references to struct frame_info fields by calls to the equivalent
7030 accessors. Necessary now that frame_info is opaque.
7031
852ee05c
JB
70322003-06-03 J. Brobecker <brobecker@gnat.com>
7033
7034 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7035 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7036 structure, field no longer exists.
7037
7d58c67d
TR
70382003-06-03 Theodore A. Roth <troth@openavr.org>
7039
8ffd9b1b 7040 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7041 accumulation of the size of all registers instead of blindly using
7042 DEPRECATED_REGISTER_BYTES.
7043
0a48e7e8
MS
70442003-06-03 Michael Snyder <msnyder@redhat.com>
7045
7046 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7047 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7048 for h8300sx.
7049
9798ab0d
JB
70502003-06-03 J. Brobecker <brobecker@gnat.com>
7051
7052 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7053 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7054
00b037e2
AC
70552003-06-03 Andrew Cagney <cagney@redhat.com>
7056
7057 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7058 (sparc_convert_to_raw): Delete function.
7059 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7060 register_convert_to_virtual.
7061
043b2f77
JJ
70622003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7063
7064 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7065 layer if not dealing with a statically-linked threaded program.
7066
f43caff8
KW
70672003-06-03 Kris Warkentin <kewarken@qnx.com>
7068
7069 * solib.c (solib_open): Update comment to reflect actual search order.
7070
ae1e7417
AC
70712003-06-03 Andrew Cagney <cagney@redhat.com>
7072
7073 * frame.c (get_frame_memory_signed): New function.
7074 (get_frame_memory, get_frame_memory_unsigned): New function.
7075 (get_frame_arch): New function.
7076 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7077 (get_frame_memory, get_frame_unsigned_memory): Declare.
7078 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7079 get_frame_memory_unsigned and get_frame_arch.
7080 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7081
cb123844
RG
70822003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7083
7084 * MAINTAINERS (write after approval): Add myself.
7085
1bb792e9
JB
70862003-06-03 Jim Blandy <jimb@redhat.com>
7087
7088 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7089 elements of gregset_t are 64 bits each, but access registers
7090 are still 32 bits, so they're packed two per gregset_t
7091 element. Unpack/pack them properly.
7092
aee8d8ba
DC
70932003-06-02 David Carlton <carlton@bactrian.org>
7094
7095 * linespec.c (find_methods): Break out code into
7096 add_matching_methods and add_constructors.
7097 (add_matching_methods): New.
7098 (add_constructors): Ditto.
7099
bf7488d2
AC
71002003-06-02 Andrew Cagney <cagney@redhat.com>
7101
bf7488d2
AC
7102 * sparc-tdep.c (sparc_print_registers): Delete call to
7103 REGISTER_CONVERTIBLE.
7104 (sparc_gdbarch_init): Do not set register_convertible.
7105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7106 * frv-tdep.c (frv_gdbarch_init): Ditto.
7107 * cris-tdep.c (cris_gdbarch_init): Ditto.
7108
adedef68
EZ
71092003-06-02 Elena Zannoni <ezannoni@redhat.com>
7110
8ffd9b1b 7111 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7112 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7113 (syms_from_objfile): Ditto.
7114
650fcc91
AS
71152003-06-03 Andreas Schwab <schwab@suse.de>
7116
7117 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7118 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7119
df4a182b
RH
71202003-06-02 Richard Henderson <rth@redhat.com>
7121
7122 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7123 a member of all_reggroup.
7124
c483c494
RH
71252003-06-02 Richard Henderson <rth@redhat.com>
7126
7127 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7128 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7129 (alpha_lds, alpha_sts): New.
7130 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7131 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7132 restructure and fail for type sizes other than 4 or 8.
7133 (alpha_value_to_register): Similarly.
7134 (alpha_extract_return_value): Use alpha_sts.
7135 (alpha_store_return_value): Use alpha_lds.
7136 (alpha_gdbarch_init): Update hooks.
7137
b38b6be2
RH
71382003-06-02 Richard Henderson <rth@redhat.com>
7139
7140 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7141 regnum identifiers.
7142 (alpha_sigtramp_register_address): Likewise.
7143
98a8e1e5
RH
71442003-06-02 Richard Henderson <rth@redhat.com>
7145
7146 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7147 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7148 * alpha-tdep.h: Declare them.
7149
7150 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7151 Remove zerobuf. Don't error on UNIQUE.
7152 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7153 (ALPHA_REGSET_UNIQUE): Provide default.
7154 (supply_gregset): Use alpha_supply_int_regs.
7155 (fill_gregset): Use alpha_fill_int_regs.
7156 (supply_fpregset): Use alpha_supply_fp_regs.
7157 (fill_fpregset): Use alpha_fill_fp_regs.
7158 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7159 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7160 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7161 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7162 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7163 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7164
67dfac52
RH
71652003-06-02 Richard Henderson <rth@redhat.com>
7166
f75d70cc
RH
7167 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7168
67dfac52
RH
7169 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7170 (alpha_store_return_value): Likewise.
7171
0cf566ec
DC
71722003-06-02 David Carlton <carlton@math.stanford.edu>
7173
7174 * block.c (contained_in): Add 'const' to arguments.
7175 (block_function): Ditto.
7176 * block.h: Update declarations for block_function and
7177 contained_in.
7178
cdef89d0
DC
71792003-06-02 David Carlton <carlton@math.stanford.edu>
7180
7181 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7182 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7183 * p-valprint.c (pascal_val_print): Ditto.
7184 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7185
72667056
RH
71862003-06-02 Richard Henderson <rth@redhat.com>
7187
98a8e1e5
RH
7188 * alpha-tdep.c (alpha_push_dummy_call): Use
7189 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7190
8ffd9b1b 7191 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7192 sign-extension of 32-bit values.
7193 (alpha_store_return_value): Similarly.
0ede8eca 7194
98a8e1e5
RH
7195 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7196 (alpha_extract_return_value): Likewise.
7197 (alpha_store_return_value): Likewise.
7b5e1cb3 7198
98a8e1e5
RH
7199 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7200 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7201
98a8e1e5
RH
7202 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7203 (alpha_extract_struct_value_address): Likewise.
7204 (alpha_store_return_value): Likewise.
7205 (alpha_store_struct_return): Remove.
7206 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7207
98a8e1e5
RH
7208 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7209 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7210 macros where appropriate.
7211 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7212 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7213
98a8e1e5
RH
7214 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7215 for SP, GP; void_func_ptr for PC; non-language-specific types
7216 for all others.
7217 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7218
6dd77b81
RH
72192003-06-02 Richard Henderson <rth@redhat.com>
7220
7221 * top.h (lim_at_start): Declare.
7222 * main.c (captured_main): Set it.
7223 * top.c (lim_at_start): Define.
7224 (command_loop): Use it instead of &environ.
7225 * event-top.c (command_handler): Likewise.
7226
f4dbdb54
JT
72272003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7228
7229 * mipsnbsd-tdep.c: Update copyright years.
7230 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7231
8f285956
RH
72322003-06-01 Richard Henderson <rth@redhat.com>
7233
98a8e1e5
RH
7234 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7235 (alpha-linux-tdep.o): Update dependencies.
7236 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7237 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7238
615967cb
RH
72392003-06-01 Richard Henderson <rth@redhat.com>
7240
98a8e1e5
RH
7241 * alpha-tdep.c (alpha_register_reggroup_p): New.
7242 (alpha_gdbarch_init): Register it.
615967cb 7243
b59661bd
AC
72442003-06-02 Andrew Cagney <cagney@redhat.com>
7245
7246 * dwarfread.c: Eliminate "register"
7247 (decode_die_type): Eliminate assignment within "if".
7248 (struct_type, decode_array_element_type): Ditto.
7249 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7250 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7251 (decode_modified_type, completedieinfo): Ditto.
7252 * block.c: Eliminate "register".
7253 (blockvector_for_pc_sect): Eliminate assignment within "if".
7254 * cp-support.h (struct symbol): Opaque declaration.
7255 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7256
5ef165c2
RH
72572003-06-01 Richard Henderson <rth@redhat.com>
7258
98a8e1e5
RH
7259 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7260 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7261
143985b7
AF
72622003-06-01 Adam Fedor <fedor@gnu.org>
7263
7264 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7265 * gdbarch.[ch]: Regenerate.
7266 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7267 (hppa_gdbarch_init): Set it in the gdbarch vector.
7268 * i386-tdep.c (i386_fetch_pointer_argument): New
7269 (i386_gdbarch_init): Set it into gdbarch.
7270 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7271 (rs6000_gdbarch_init): Set it in gdbarch.
7272 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7273 (sparc_gdbarch_init): Set it in gdbarch.
7274
ae0167b9
AC
72752003-06-01 Andrew Cagney <cagney@redhat.com>
7276
7c0b4a20
AC
7277 * defs.h (extract_address): Delete declaration.
7278 * findvar.c (extract_address): Delete function.
7279 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7280 extract_address with the inline equivalent,
7281 extract_unsigned_integer.
7282 (xstormy16_extract_struct_value_address): Ditto.
7283 (xstormy16_pointer_to_address): Ditto.
7284 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7285 * v850-tdep.c (v850_push_arguments): Ditto.
7286 (v850_extract_return_value): Ditto.
7287 (v850_extract_struct_value_address): Ditto.
7288 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7289 (sparcnbsd_get_longjmp_target_64): Ditto.
7290 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7291 (get_longjmp_target): Ditto.
7292 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7293 (sh64_extract_struct_value_address): Ditto.
7294 (sh_push_arguments): Ditto.
7295 (sh64_push_arguments): Ditto.
7296 * remote-vxsparc.c (vx_read_register): Ditto.
7297 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7298 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7299 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7300 * mipsv4-nat.c (get_longjmp_target): Ditto.
7301 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7302 * mips-nat.c (get_longjmp_target): Ditto.
7303 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7304 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7305 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7306 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7307 * irix5-nat.c (get_longjmp_target): Ditto.
7308 * irix4-nat.c (get_longjmp_target): Ditto.
7309 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7310 (ia64_push_arguments): Ditto.
7311 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7312 * h8300-tdep.c (h8300_push_arguments): Ditto.
7313 (h8300_store_return_value): Ditto.
7314 (h8300_extract_struct_value_address): Ditto.
7315 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7316 (frv_push_arguments): Ditto.
7317 * avr-tdep.c (avr_pointer_to_address): Ditto.
7318 (avr_push_arguments): Ditto.
7319 * arm-tdep.c (arm_push_dummy_call): Ditto.
7320 (arm_get_longjmp_target): Ditto.
7321 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7322 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7323 (alpha_get_longjmp_target): Ditto.
7324
ae0167b9
AC
7325 * solib-irix.c (extract_mips_address): Inline extract_address,
7326 replacing it with extract_signed_integer.
7327 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7328 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7329 (first_link_map_member, open_symbol_file_object): Ditto.
7330 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7331 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7332 (LM_NEXT, LM_NAME): Ditto.
7333
44d88583
RH
73342003-06-01 Richard Henderson <rth@redhat.com>
7335
98a8e1e5
RH
7336 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7337 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7338 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7339 (alpha_cannot_store_register): Likewise.
7340 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7341 * alpha-nat.c (supply_gregset): Likewise.
7342 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7343
310e9b6a
AC
73442003-06-01 Andrew Cagney <cagney@redhat.com>
7345
7346 * infcall.c (call_function_by_hand): Update comment on
7347 DEPRECATED_DUMMY_WRITE_SP.
7348
7349 * mips-tdep.c (mips_gdbarch_init): Do not set
7350 deprecated_dummy_write_sp.
7351 (mips_eabi_push_dummy_call): Set the SP register.
7352 (mips_o64_push_dummy_call): Set the SP register.
7353 (mips_o32_push_dummy_call): Set the SP register.
7354 (mips_n32n64_push_dummy_call): Set the SP register.
7355
5ab84872
RH
73562003-06-01 Richard Henderson <rth@redhat.com>
7357
98a8e1e5
RH
7358 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7359 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7360 (supply_gregset): Likewise.
7361 * alpha-tdep.c (alpha_store_return_value): Likewise.
7362 (alpha_get_longjmp_target): Likewise.
7363 (alpha_register_name): Constify array.
7364 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7365 deprecated_register_size, deprecated_register_bytes,
7366 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7367 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7368 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7369
09cc52fd
RH
73702003-06-01 Richard Henderson <rth@redhat.com>
7371
7372 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7373 from arg_reg_buffer to regcache to avoid double conversion.
7374
c7f16359
MK
73752003-06-01 Mark Kettenis <kettenis@gnu.org>
7376
7377 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7378 SP_REGNUM.
7379 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7380 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7381
7131cb6e
RH
73822003-06-01 Richard Henderson <rth@redhat.com>
7383
98a8e1e5
RH
7384 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7385 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7386
f3e0f90b
RH
73872003-06-01 Richard Henderson <rth@redhat.com>
7388
98a8e1e5
RH
7389 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7390 not overlapping PC_REGNUM.
f3e0f90b 7391
c88e30c0
RH
73922003-06-01 Richard Henderson <rth@redhat.com>
7393
98a8e1e5
RH
7394 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7395 alpha_push_arguments. Don't dump argument register data to
7396 the target stack. Fix float and 128-bit long double semantics.
7397 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7398 (alpha_fix_call_dummy): Remove.
7399 (alpha_call_dummy_words): Remove.
7400 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7401
f1a559ae
RH
74022003-06-01 Richard Henderson <rth@redhat.com>
7403
7404 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7405
5e045346
AC
74062003-06-01 Andrew Cagney <cagney@redhat.com>
7407
95404a3e
AC
7408 * mips-tdep.c (is_mips16_addr): New function.
7409 (make_mips16_addr, unmake_mips16_addr): New functions.
7410 (pc_is_mips16, mips_fetch_instruction): Use.
7411 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7412 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7413 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7414 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7415 TARGET_MIPS.
7416 * config/mips/tm-mips.h: Update copyright.
7417 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7418 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7419 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7420 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7421 (TM_PRINT_INSN_MACH): Delete.
7422 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7423
5e045346
AC
7424 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7425 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7426 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7427 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7428 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7429 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7430 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7431 mips*-*-riscos* and mips*-*-sysv* onto mips.
7432 * config/mips/mips64.mt: New file.
7433 * config/mips/mips.mt: New file.
7434 * config/mips/littlemips.mt: Delete file.
7435 * config/mips/decstation.mt: Delete file.
7436 * config/mips/vr4300el.mt: Delete file.
7437 * config/mips/vr5000el.mt: Delete file.
7438 * config/mips/vr5000.mt: Delete file.
7439 * config/mips/vr4100.mt: Delete file.
7440 * config/mips/vr4xxxel.mt: Delete file.
7441 * config/mips/vr4300.mt: Delete file.
7442 * config/mips/vr4xxx.mt: Delete file.
7443 * config/mips/bigmips.mt: Delete file.
7444 * config/mips/bigmips64.mt: Delete file.
7445 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7446 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7447 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7448 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7449 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7450 "tm-bigmips.h".
7451 * config/mips/tm-irix3.h: Ditto.
7452 * config/mips/tm-mipsv4.h: Ditto.
7453 * config/mips/tm-embed.h: Ditto.
7454 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7455 "tm-bigmips64.h".
7456 * config/mips/tm-vr5000el.h: Delete file.
7457 * config/mips/tm-tx39l.h: Delete file.
7458 * config/mips/tm-vr4300el.h: Delete file.
7459 * config/mips/tm-vr4xxxel.h: Delete file.
7460 * config/mips/tm-vr4300.h: Delete file.
7461 * config/mips/tm-vr4100.h: Delete file.
7462 * config/mips/tm-vr4xxx.h: Delete file.
7463 * config/mips/tm-vr5000.h: Delete file.
7464 * config/mips/tm-embedl64.h: Delete file.
7465 * config/mips/tm-embedl.h: Delete file.
7466 * config/mips/tm-embed64.h: Delete file.
7467 * config/mips/tm-bigmips64.h: Delete file.
7468 * config/mips/tm-bigmips.h: Delete file.
7469
2473a4a9
MK
74702003-06-01 Mark Kettenis <kettenis@gnu.org>
7471
97a5b208
MK
7472 Fix gdb/1216.
7473 * shnbsd-nat.c: Include "sh-tdep.h".
7474
2473a4a9
MK
7475 From Richard Henderson <rth@redhat.com>:
7476 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7477
e0f7ec59
AC
74782003-05-31 Andrew Cagney <cagney@redhat.com>
7479
7480 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7481 forward declaration.
7482 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7483 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7484 (mips_find_saved_regs): Use set_reg_offset.
7485 (mips_frame_init_saved_regs): Delete function.
7486 (mips_pop_frame): Call mips_find_saved_regs instead of
7487 DEPRECATED_FRAME_INIT_SAVED_REGS.
7488
68dcc709
AC
74892003-05-31 Andrew Cagney <cagney@redhat.com>
7490
7491 * mips-tdep.c (mips_gdbarch_init): Do not set
7492 deprecated_max_register_raw_size, register_virtual_size, and
7493 deprecated_max_register_virtual_size.
7494
cfc14b3a
MK
74952003-05-31 Mark Kettenis <kettenis@gnu.org>
7496
6405b0a6
MK
7497 * i386-tdep.c: Include "dwarf2-frame.h".
7498 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7499 * Makefile.in (i386-tdep.o): Update dependencies.
7500
cfc14b3a
MK
7501 * dwarf2-frame.c, dwarf2-frame.h: New files.
7502 * Makefile.in (SFILES): Add dwarf2-frame.c.
7503 (dwarf2_frame_h): Define.
7504 (COMMON_OBS): Add dwarf2-frame.o.
7505 (dwarf2-frame.o): Add dependencies.
7506
6a2751d2
AJ
75072003-05-31 Andreas Jaeger <aj@suse.de>
7508
7509 * x86-64-linux-nat.c: Fix comment.
7510
1c3545ae
MK
75112003-05-31 Mark Kettenis <kettenis@gnu.org>
7512
10f93086
MK
7513 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7514 function signature.
7515
1c3545ae
MK
7516 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7517 have a sigcontext_addr handler.
7518 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7519 sigcontext_addr handler.
7520
e11c53d2
AC
75212003-05-31 Andrew Cagney <cagney@redhat.com>
7522
7523 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7524 (print_fp_register_row): Replace do_fp_register_row.
7525 (mips_print_fp_register): Add "file" and "frame" parameters.
7526 (mips_print_register): Add "file" and "frame" parameters.
7527 (mips_print_registers_info): Replace mips_do_registers_info.
7528 (mips_gdbarch_init): Set print_registers_info instead of
7529 deprecated_do_registers_info.
7530 (mips_read_fp_register_single): Add "frame" parameter.
7531 (mips_read_fp_register_double): Add "frame" parameter.
7532
a3386186
MK
75332003-05-31 Mark Kettenis <kettenis@gnu.org>
7534
70913449
MK
7535 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7536 Fixes a bug where GDB would print the wrong register names for
7537 targets without SSE.
7538
2b5e0749
MK
7539 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7540 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7541 registers.
7542
7543 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7544 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7545 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7546 TDEP->sc_sp_offset.
7547
a3386186
MK
7548 From Michal Ludvig <mludvig@suse.cz>:
7549 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7550 and `sc_num_regs'.
7551 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7552 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7553 I386_ST0_REGNUM): Move here from...
7554 * i386-tdep.c: ... here.
7555 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7556 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7557 registers if possible.
7558 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7559 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7560 Remove variables.
7561 (i386bsd_sc_reg_offset): New variable.
7562 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7563 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7564 TDEP->sc_sp_offset.
7565 (i386fbsd_sc_reg_offset): New variable.
7566 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7567 TDEP->sc_num_regs.
7568 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7569 variables.
7570 (i386fbsd4_sc_reg_offset): New variable.
7571 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7572 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7573 TDEP->sc_sp_offset.
7574 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7575 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7576 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7577 Remove variables.
7578 (i386nbsd_sc_reg_offset): New variable.
7579 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7580 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7581 TDEP->sc_sp_offset.
7582 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7583 Remove variables.
7584 (i386obsd_sc_reg_offset): New variable.
7585 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7586 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7587 TDEP->sc_sp_offset.
7588 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7589 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7590 for frame pointer offset in `struct sigcontext'.
7591
25ab4790
AC
75922003-05-31 Andrew Cagney <cagney@redhat.com>
7593
7594 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7595 architecture methods call_dummy_words, sizeof_call_dummy_words,
7596 push_return_address, store_struct_return, and fix_call_dummy. Set
7597 push_dummy_call instead of deprecated_push_arguments.
7598 (mips_store_struct_return): Delete function.
7599 (mips_fix_call_dummy): Delete function.
7600 (mips_push_return_address): Delete function.
7601 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
7602 RA_REGNUM and T9_REGNUM.
7603 (mips_n32n64_push_dummy_call): Ditto for
7604 mips_n32n64_push_arguments.
7605 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
7606 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
7607
6a65450a
AC
76082003-05-31 Andrew Cagney <cagney@redhat.com>
7609
7610 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
7611 "dummy_addr" to "bp_addr".
7612 * infcall.c (call_function_by_hand): Pass "funaddr" to
7613 gdbarch_push_dummy_call.
7614 * gdbarch.h, gdbarch.c: Re-generate.
7615 * i386-tdep.c (i386_push_dummy_call): Update.
7616 * arm-tdep.c (arm_push_dummy_call): Update.
7617 * d10v-tdep.c (d10v_push_dummy_call): Update.
7618
c4f35dd8
MK
76192003-05-31 Mark Kettenis <kettenis@gnu.org>
7620
7621 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
7622 variable declarations.
7623 (x86_64_register_number, x86_64_register_name): Remove prototypes.
7624 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
7625 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
7626 x86_64_init_frame_pc, x86_64_init_frame_pc,
7627 x86_64_function_has_prologue): Remove prototypes.
7628 (X86_64_NUM_GREGS): New define.
7629 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
7630 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
7631 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
7632 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
7633 XMM1_REGNUM): Remove defines.
7634 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
7635 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
7636 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
7637 X86_64_XMM1_REGNUM): New defines.
7638 (struct x86_64_register_info): Renamed from `struct
7639 register_info'. Remove `size' member.
7640 (x86_64_register_info_table): Remove variable.
7641 (x86_64_register_info): New variable.
7642 (X86_64_NUM_REGS): New define.
7643 (X86_64_NUM_GREGS): Remove define.
7644 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
7645 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
7646 Remove variables.
7647 (x86_54_dwarf2_reg_to_regnum): Remove function.
7648 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
7649 (x86_64_dwarf_reg_to_regnum): New function.
7650 (x86_64_register_name): Rewrite.
7651 (x86_64_register_raw_size): Remove function.
7652 (x86_64_register_byte_table): Remove variable.
7653 (x86_64_register_byte): Remove function.
7654 (x86_64_register_virtual_type): Remove function.
7655 (x86_64_register_type): New function.
7656 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
7657 x86_64_register_convert_to_raw): Remove functions.
7658 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
7659 (x86_64_use_struct_convention): Make static. Adjust for renamed
7660 defines.
7661 (x86_64_frame_init_saved_regs): Remove function.
7662 (x86_64_push_arguments): Make static. Change to accept a regcache
7663 as argument.
7664 (x86_64_store_return_value, x86_64_extract_return_value): Make
7665 static. Rewrite based on i386 counterparts.
7666 (x86_64_push_dummy_call): New function.
7667 (X86_64_NUM_SAVED_REGS): New define.
7668 (x86_64_register_number): Remove function.
7669 (x86_64_store_struct_return): Remove function.
7670 (x86_64_frameless_function_invocation,
7671 x86_64_function_has_prologue): Remove functions.
7672 (PROLOG_BUFSIZE): Remove define.
7673 (struct x86_64_frame_cache): New structure.
7674 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
7675 x86_64_frame_cache, x86_64_frame_this_id,
7676 x86_64_frame_prev_register, x86_64_frame_p,
7677 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
7678 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
7679 functions.
7680 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
7681 variables.
7682 (x86_64_skip_prologue): Rewrite in terms of
7683 x86_64_analyze_prologue.
7684 (x86_64_frame_base_address): New function.
7685 (x86_64_frame_base): New variable.
7686 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
7687 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
7688 set deprecated_fp_regnum, deprecated_register_size,
7689 deprecated_register_bytes, register_raw_size, register_byte,
7690 register_virtual_type, register_convertiable,
7691 register_convert_to_virtual, convert_to_raw,
7692 deprecated_get_saved_register, deprecated_target_read_fp,
7693 deprecated_push_arguments, deprecated_push_return_address,
7694 deprecated_pop_frame, deprecated_store_struct_return,
7695 deprecated_frame_init_saved_regs, deprecated_frame_chain,
7696 frameless_function_invocation, deprecated_frame_saved_pc,
7697 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
7698 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
7699 deprecated_init_frame_pc and virtual_frame_pointer. Call
7700 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
7701 and x86_64_frame_p. Call frame_base_set_default to register
7702 x86_64_frame_base.
7703 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
7704 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
7705 (_initialize_x86_64_tdep): Remove function.
7706 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
7707 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
7708 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
7709 define.
7710 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
7711 (x86_64_linux_sigcontext_addr): Rewrite.
7712 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
7713 x86_64_linux_frame_saved_pc): Remove functions.
7714 (x86_64_linux_pc_in_sigtramp): Renamed from
7715 x86_64_linux_in_sigtramp. Try harder to recognize a signal
7716 trampoline.
7717 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
7718 Remove_functions.
7719 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
7720 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7721 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
7722 (x86_64_regmap): Rename to regmap.
7723 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
7724 x86_64_num_gregs.
7725 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
7726 x86_64_regmap.
7727 (x86_64_fxsave_offset): Remove function.
7728 (supply_fpregset): Simply call x86_64_supply_fxsave.
7729 (fill_fpregset): Simply call x86_64_fill_fxsave.
7730 (fetch_inferior_registers, store_inferior_registers): Avoid
7731 asignment in if-statement.
7732 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
7733 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
7734 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
7735 (fetch_core_registers): Remove function.
7736 (linux_elf_core_fns): Remove.
7737 (offsetoff): Don't define.
7738 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
7739 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
7740 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
7741 add core-regset.o.
7742 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
7743 protection against multiple includes instead of NM_X86_64_h. Add
7744 various comments. Include "config/nm-linux.h". Don't include
7745 <signal.h>.
7746 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
7747 GET_THREAD_SIGNALS): Remove defines.
7748 (x86_64_register_u_addr, kernel_u_size,
7749 lin_thread_get_thread_signals): Remove prototypes.
7750 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
7751 [HAVE_LINK_H]: Don't include "solib.h".
7752 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
7753 * config/i386/tm-x86-64linux.h: Fix comments.
7754 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
7755 x86-64-tdep.o): Update dependencies.
7756
c25083af
AC
77572003-05-30 Andrew Cagney <cagney@redhat.com>
7758
c8f55a7b
AC
7759 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
7760 Change parameter type to a "struct regcache *".
7761
c25083af
AC
7762 * gdbarch.sh: Regardless of the multi-arch level, always define
7763 the macro when not already defined.
7764 * gdbarch.h, gdbarch.c: Re-generate.
7765
fbe586ae
RH
77662003-05-30 Richard Henderson <rth@redhat.com>
7767
7768 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
7769 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
7770 (alpha_mdebug_frame_this_id): Likewise.
7771 (alpha_mdebug_frame_prev_register): Likewise.
7772 (alpha_mdebug_frame_base_address): Likewise.
7773 (alpha_mdebug_frame_locals_address): Likewise.
7774 (alpha_mdebug_frame_args_address): Likewise.
7775 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
7776 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
7777 (alpha_heuristic_frame_unwind_cache): Make static; add missing
7778 loop increment.
7779 (alpha_heuristic_frame_this_id): Make static.
7780 (alpha_heuristic_frame_prev_register): Likewise.
7781 (alpha_heuristic_frame_base_address): Likewise.
7782 * alpha-tdep.h: Update.
7783
acd5c798
MK
77842003-05-30 Mark Kettenis <kettenis@gnu.org>
7785
7786 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
7787 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
7788 defenitions.
7789 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
7790 * i386-tdep.c: Mark functions that are 64-bit safe as such.
7791 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7792 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7793 I386_ST0_REGNUM): New defines.
7794 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
7795 codestream_get): Remove define.
7796 (codestream_next_addr, condestream_addr, condestream_buf,
7797 codestream_off, codestream_cnt): Remove variables.
7798 (codestream_fill, codestream_seek, codestream_read): Remove
7799 functions.
7800 (i386_follow_jump): Rewrite to avoid usage of removed codestream
7801 functionality.
7802 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
7803 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
7804 i386_frame_saved_pc, i386_saved_pc_after_call,
7805 i386_frame_num_args, i386_frame_init_saved_regs,
7806 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
7807 i386_push_arguments): Remove functions.
7808 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
7809 functionality. Use i386_analyze_prologue instead of
7810 i386_get_frame_setup.
7811 (I386_NUM_SAVED_REGS): New define.
7812 (struct i386_frame_cache): New structure.
7813 (i386_alloc_frame_cache, i386_analyze_struct_return,
7814 i386_skip_probe, i386_analyze_frame_setup,
7815 i386_analyze_register_saves, i386_analyze_prologue,
7816 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
7817 i386_frame_prev_register, i386_sigtramp_frame_cache,
7818 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
7819 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
7820 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
7821 New functions.
7822 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
7823 New variables.
7824 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
7825 I386_EAX_REGNUM and I386_EDX_REGNUM.
7826 (i386_extract_return_value, i386_store_return_value): Use
7827 I386_ST0_REGNUM where appropriate.
7828 (i386_extract_struct_value_address): Rewrite to use extract_address.
7829 (i386_svr4_pc_in_sigtramp): Add comment.
7830 (i386_svr4_sigcontext_addr): Rewrite.
7831 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7832 TDEP->sc_sp_offset.
7833 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
7834 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7835 of new defines. Set push_dummy_call, don't set
7836 deprecated_push_arguments, deprecated_push_return_address,
7837 deprecated_pop_frame. Don't set parm_boundary. Don't set
7838 deprecated_frame_chain, deprecated_frame_saved_pc,
7839 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7840 save_dummy_frame_tos, unwind_pc. Call
7841 frame_unwind_append_predicate and frame_base_set_default. Don't
7842 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7843 Don't set frameless_function_invocation. Don't set
7844 deprecated_register_bytes, deprecated_register_size,
7845 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7846 * i386-linux-tdep.c: Fix formatting in some comments.
7847 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7848 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7849 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7850 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7851 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7852 redundant parentheses.
7853 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7854 (i386_linux_sigcontext_addr): Use it. Rewrite.
7855 (find_minsym_and_objfile): Change name of second argument.
7856 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7857 changed. Use frame_pc_unwind instead of
7858 DEPRECATED_SAVED_PC_AFTER_CALL.
7859 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7860 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7861 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7862 unwinder.
7863 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7864 "dummy-frame.h".
7865 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7866 (_initialize_i386_cygwin_tdep): New prototype.
7867 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7868 deprecated_frame_chain_valid.
7869 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7870 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7871 Rely on the SVR4 defaults.
7872 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7873 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7874
c89b70f1
AC
78752003-05-30 Andrew Cagney <cagney@redhat.com>
7876
7877 * infcall.c (call_function_by_hand): Always call
7878 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7879
85b32d22
RH
78802003-05-30 Richard Henderson <rth@redhat.com>
7881
c89b70f1
AC
7882 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7883 increment.
85b32d22 7884
bfe51b1e
JB
78852003-05-29 Jim Blandy <jimb@redhat.com>
7886
7887 Use gdbarch methods for solib stuff on PowerPC Linux.
7888 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7889 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7890 show through.
7891 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7892 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7893 giving the same effect as the #definitions above.
7894
1abf022c
AF
78952003-05-29 Adam Fedor <fedor@gnu.org>
7896
7897 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7898 (find_implementation_from_class): Replace it with the standard
7899 case i.e. do nothing.
7900
d2427a71
RH
79012003-05-29 Richard Henderson <rth@redhat.com>
7902
7903 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7904 (alpha_linux_sigtramp_offset): Use it. Make static.
7905 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7906 update for new frame model.
7907 * alpha-mdebug-tdep.c: New file.
7908 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7909 (alpha_osf1_init_abi): Install it.
7910 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7911 (linked_proc_desc_table): Remove.
7912 (alpha_frame_past_sigtramp_frame): Remove.
7913 (alpha_dynamic_sigtramp_offset): Remove.
7914 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7915 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7916 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7917 (push_sigtramp_desc): Remove.
7918 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7919 (alpha_cannot_store_register): Likewise.
7920 (alpha_sigcontext_addr): Remove.
7921 (alpha_find_saved_regs): Remove.
7922 (alpha_frame_init_saved_regs): Remove.
7923 (alpha_init_frame_pc_first): Remove.
7924 (read_next_frame_reg): Remove.
7925 (alpha_frame_saved_pc): Remove.
7926 (alpha_saved_pc_after_call): Remove.
7927 (temp_proc_desc, temp_saved_regs): Remove.
7928 (alpha_about_to_return): Remove.
7929 (cached_proc_desc): Remove.
7930 (alpha_frame_chain): Remove.
7931 (alpha_print_extra_frame_info): Remove.
7932 (alpha_init_extra_frame_info): Remove.
7933 (alpha_frame_locals_address): Remove.
7934 (alpha_frame_args_address): Remove.
7935 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7936 (alpha_push_dummy_frame): Remove.
7937 (alpha_pop_frame): Remove.
7938 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7939 (alpha_read_insn): New.
7940 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7941 for different insn encodings.
7942 (alpha_in_lenient_prologue): Remove.
7943 (struct alpha_sigtramp_unwind_cache): New.
7944 (alpha_sigtramp_frame_unwind_cache): New.
7945 (alpha_sigtramp_register_address): New.
7946 (alpha_sigtramp_frame_this_id): New.
7947 (alpha_sigtramp_frame_prev_register): New.
7948 (alpha_sigtramp_frame_unwind): New.
7949 (alpha_sigtramp_frame_p): New.
7950 (struct alpha_heuristic_unwind_cache): New.
7951 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7952 don't count nop insns that occur between functions.
7953 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7954 heuristic_proc_desc, but without the mdebug wrapping.
7955 (alpha_heuristic_frame_this_id): New.
7956 (alpha_heuristic_frame_prev_register): New.
7957 (alpha_heuristic_frame_unwind): New.
7958 (alpha_heuristic_frame_p): New.
7959 (alpha_heuristic_frame_base_address): New.
7960 (alpha_heuristic_frame_base): New.
7961 (alpha_unwind_dummy_id): New.
7962 (alpha_unwind_pc): New.
7963 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7964 frame related deprecated initializations; install replacements.
7965 (alpha_dump_tdep): Remove.
7966 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7967 (alpha_read_insn, alpha_after_prologue,
7968 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7969 alpha_heuristic_frame_prev_register,
7970 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7971 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7972 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7973 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7974
93ec1121
AC
79752003-05-29 Andrew Cagney <cagney@redhat.com>
7976
7977 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7978 dependant on the availability of ASSERT_FUNCTION.
7979 (ASSERT_FUNCTION): Do not define when there is no function name.
7980
98f08d3d
KB
79812003-05-29 Kevin Buettner <kevinb@redhat.com>
7982
7983 From Jimi X <jimix@watson.ibm.com>:
7984 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7985
0897f59b
JB
79862003-05-28 Jim Blandy <jimb@redhat.com>
7987
7988 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7989 argument to ptrace to int; the system headers should give it the
7990 right type, and pointers don't fit in ints on powerpc64-*-*.
7991
14898363
L
79922003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7993
7994 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7995 DW_TAG_catch_block.
7996
a7a48797
EZ
79972003-05-26 Elena Zannoni <ezannoni@redhat.com>
7998
7999 * stabsread.c (dbx_lookup_type): Make static.
8000 (read_type): Ditto.
8001 (add_undefined_type): Ditto.
8002 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8003 not export.
8004
f5479e9c
EZ
80052003-05-26 Elena Zannoni <ezannoni@redhat.com>
8006
8007 * hpread.c (hpread_has_name): Make static.
8008 (hpread_psymtab_to_symtab): Ditto.
8009 (file_exists): Ditto.
8010 (hpread_call_pxdb): Ditto.
8011 (hpread_pxdb_needed): Ditto.
8012 (hpread_quick_traverse): Ditto.
8013 (hpread_get_header): Ditto.
8014 (hpread_get_lntt): Ditto.
8015 (hpread_get_slt): Ditto.
8016 (class_of): Ditto.
8017
eb2e12d7
AS
80182003-05-25 Andreas Schwab <schwab@suse.de>
8019
78bf922a
AS
8020 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8021 stack_align and deprecated_extra_stack_alignment_needed.
8022 (m68k_stack_align): Delete.
8023
eb2e12d7
AS
8024 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8025 (m68k_register_virtual_size): Likewise.
8026 (altos_skip_prologue): Remove obsolete function.
8027 (isi_frame_num_args): Likewise.
8028 (news_frame_num_args): Likewise.
8029 (m68k_fix_call_dummy): Make static.
8030 (m68k_push_dummy_frame): Likewise.
8031 (m68k_pop_frame): Likewise.
8032 (m68k_skip_prologue): Likewise.
8033 (m68k_frame_init_saved_regs): Likewise.
8034 (m68k_saved_pc_after_call): Likewise.
8035 (m68k_get_longjmp_target): Make multi-arch.
8036 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8037 structure. Register m68k_get_longjmp_target if enabled.
8038 * m68k-tdep.h (struct gdbarch_tdep): Define.
8039 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8040
8041 * Makefile.in (config.status): Also depend on configure.tgt
8042 and configure.host.
8043 (m68klinux-tdep.o): Update dependencies.
8044 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8045 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8046 (M68K_LINUX_JB_PC): Define.
8047 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8048 and take additional parameter.
8049 (m68k_linux_sigtramp_saved_pc): Update.
8050 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8051 m68k_linux_pc_in_sigtramp, in_plt_section,
8052 find_solib_trampoline_target.
8053 * config/m68k/tm-linux.h: Don't include any tm headers.
8054 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8055 (JB_ELEMENT_SIZE): Likewise.
8056 (JB_PC): Likewise.
8057 (GET_LONGJMP_TARGET): Likewise.
8058 (IN_SIGTRAMP): Likewise.
8059 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8060
eb2c22dc
MK
80612003-05-25 Mark Kettenis <kettenis@gnu.org>
8062
8063 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8064 (sparc32_push_arguments): Re-implement by calling
8065 sparc32_do_push_arguments.
8066
44b7b84e
MK
80672003-05-25 Mark Kettenis <kettenis@gnu.org>
8068
8069 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8070 SPARC_O1_REGNUM): New defines.
8071 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8072 (sparc32_store_return_value): New function.
8073 (sparc_extract_struct_value_address): Rewrite to operate on a
8074 regcache.
8075 (sparc_gdbarch_init): Don't set
8076 deprecated_extract_struct_value_address. Set
8077 extract_struct_value_address instead. Don't set
8078 deprecated_extract_return_value and deprecated_store_return_value
8079 for 32-bit targets. Set extract_return_value and
8080 store_return_value instead.
8081 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8082 DEPRECTAED_EXTRACT_RETURN_VALUE,
8083 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8084 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8085 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8086 (sparc_store_return_value): Remove prototype.
8087 (sparc32_store_return_value): New prototype.
8088 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8089 Adjust prototypes.
8090
f6ad61e3
MK
80912003-05-24 Mark Kettenis <kettenis@gnu.org>
8092
8093 * sparcnbsd-tdep.c: Include "gdb_string.h".
8094
b276f1bb
AC
80952003-05-23 Andrew Cagney <cagney@redhat.com>
8096
8097 * p-valprint.c (pascal_val_print): Replace extract_address with
8098 the inline equivalent extract_unsigned_integer.
8099 * jv-valprint.c (java_value_print): Ditto.
8100 * ada-valprint.c (ada_val_print_1): Ditto.
8101 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8102
e76c5fcc
TR
81032003-05-23 Theodore A. Roth <troth@openavr.org>
8104
8105 * blockframe.c (frameless_look_for_prologue): Remove unused
8106 after_prologue variable.
8107
2cdd89cb
MK
81082003-05-23 Mark Kettenis <kettenis@gnu.org>
8109
8110 * blockframe.c (get_pc_function_start): Rewrite to avoid
8111 asignments in if-statements.
8112
182d43bc
EZ
81132003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8114
8115 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8116 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8117 files, don't relocate absolute symbols (and do use mst_abs).
8118
e8f3fcdd
AC
81192003-05-23 Andrew Cagney <cagney@redhat.com>
8120
8121 * objc-lang.c: Include "gdb_assert.h".
8122 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8123 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8124 (gdb_check, gdb_check_fatal): Delete functions.
8125 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8126 gdb_assert.
8127 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8128 * Makefile.in (objc-lang.o): Update dependencies.
8129
3c23e6fb
ILT
81302003-05-22 Ian Lance Taylor <ian@airs.com>
8131
8132 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8133 with fprintf_filtered, not fprintf_unfiltered.
8134
af1342ab
AC
81352003-05-22 Andrew Cagney <cagney@redhat.com>
8136
8137 * stack.c (frame_info): Inline extract_address, replacing it with
8138 extract_unsigned_integer.
8139 * findvar.c (unsigned_pointer_to_address): Ditto.
8140 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8141 * dwarf2expr.c (dwarf2_read_address): Ditto.
8142 * frame.c (frame_pc_unwind): Update comment.
8143 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8144
47e242ec
JJ
81452003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8146
8147 * infptrace.c (detach): Call print_sys_errmsg rather than
8148 perror_with_name to issue warning message when errno is non-zero
8149 after calling ptrace detach.
8150
e2ac8128
JB
81512003-05-21 J. Brobecker <brobecker@gnat.com>
8152
8153 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8154 macro definitions from here...
8155 * hppa-tdep.c: ...to there.
8156
92b3541e
KB
81572003-05-20 Kevin Buettner <kevinb@redhat.com>
8158
8159 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8160 register_ptrace_addr(). Fix all callers.
8161
55809acb
AS
81622003-05-21 Andreas Schwab <schwab@suse.de>
8163
8164 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8165 dependencies.
8166 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8167 end.
8168 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8169 (_initialize_m68k_linux_tdep): New function.
8170 (m68k_linux_frame_saved_pc): Make static.
8171 (m68k_linux_extract_return_value): Likewise.
8172 (m68k_linux_store_return_value): Likewise.
8173 (m68k_linux_extract_struct_value_address): Likewise.
8174 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8175 Remove.
8176 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8177 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8178 (DEPRECATED_FRAME_SAVED_PC): Remove.
8179
0fbc10f7
KW
81802003-05-20 Kris Warkentin <kewarken@qnx.com>
8181
8182 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8183 regset numbering rather than our own.
8184
58da2eb2
DC
81852003-05-19 David Carlton <carlton@bactrian.org>
8186
8187 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8188
1fcb5155
DC
81892003-05-19 David Carlton <carlton@bactrian.org>
8190
8191 Partial fix for PR c++/827.
8192 * cp-support.h: Include symtab.h.
8193 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8194 * cp-namespace.c: Update contributors.
8195 (cp_lookup_symbol_nonlocal): New.
8196 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8197 (lookup_symbol_file): Ditto.
8198 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8199 * block.h: Declare block_scope, block_using, block_global_block.
8200 * block.c (block_scope): New.
8201 (block_using, block_global_block): Ditto.
8202 * Makefile.in (cp_support_h): Depend on symtab_h.
8203 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8204
5f9a71c3
DC
82052003-05-19 David Carlton <carlton@bactrian.org>
8206
8207 * language.h (struct language_defn): Add 'la_value_of_this'
8208 and 'la_lookup_symbol_nonlocal' members.
8209 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8210 lookup_symbol_static, lookup_symbol_global,
8211 lookup_symbol_aux_block.
8212 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8213 if we should search fields of this and how to do static/global
8214 lookup.
8215 (lookup_symbol_aux_block): Make extern.
8216 (basic_lookup_symbol_nonlocal): New.
8217 (lookup_symbol_static, lookup_symbol_global): Ditto.
8218 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8219 'la_lookup_symbol_nonlocal' members.
8220 * c-lang.c (c_language_defn, cplus_language_defn)
8221 (asm_language_defn, minimal_language_defn): Ditto.
8222 * jv-lang.c (java_language_defn): Ditto.
8223 * language.c (unknown_language_defn, auto_language_defn)
8224 (local_language_defn): Ditto.
8225 * m2-lang.c (m2_language_defn): Ditto.
8226 * objc-lang.c (objc_language_defn): Ditto.
8227 * scm-lang.c (scm_language_defn): Ditto.
8228 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8229 * p-lang.c (pascal_language_defn): Ditto for both.
8230 * Makefile.in (f-lang.o): Depend on value_h.
8231 (p-lang.o): Ditto.
8232
89a9d1b1
DC
82332003-05-19 David Carlton <carlton@bactrian.org>
8234
8235 * block.h: Declare block_static_block.
8236 * block.c (block_static_block): New.
8237 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8238 lookup_symbol_aux_local, calling block_static_block instead.
8239 (lookup_symbol_aux_local): Delete 'static_block' argument.
8240
eed3f8ab
DC
82412003-05-19 David Carlton <carlton@bactrian.org>
8242
8243 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8244
a09d8bda
ML
82452003-05-19 Michal Ludvig <mludvig@suse.cz>
8246
8247 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8248 register numbers mapping.
8249
69636828
AF
82502003-05-18 Adam Fedor <fedor@gnu.org>
8251
8252 * symtab.c (completion_list_objc_symbol): New function.
8253 (make_symbol_completion_list): Use it to add ObjC symbols
8254 when looking though the list.
8255 (language_search_unquoted_string): New function.
8256 (make_file_symbol_completion_list): Use it.
8257
55baeb84
AS
82582003-05-18 Andreas Schwab <schwab@suse.de>
8259
d0b45d99
AS
8260 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8261 dependencies.
8262 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8263 as m68k_linux_extract_return_value.
8264 (DEPRECATED_STORE_RETURN_VALUE): Define as
8265 m68k_linux_store_return_value.
8266 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8267 m68k_linux_extract_struct_value_address.
8268 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8269 get_next_frame, get_frame_base, get_frame_pc.
8270 (m68k_linux_frame_saved_pc): Use get_frame_base.
8271 (m68k_linux_extract_return_value): New function.
8272 (m68k_linux_store_return_value): New function.
8273 (m68k_linux_extract_struct_value_address): New function.
8274 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8275
55baeb84
AS
8276 * c-exp.y (typebase): Remove duplicate occurence of
8277 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8278 of lookup_signed_typename.
55baeb84 8279
b6b08ebf
MK
82802003-05-18 Mark Kettenis <kettenis@gnu.org>
8281
8282 * dwarf2loc.c (find_location_expression): Change type of second
8283 argument to `size_t *'.
8284 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8285 for size variable.
8286
5ad1c190
DC
82872003-05-18 David Carlton <carlton@bactrian.org>
8288
8289 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8290 'linkage_name'. Add comment.
8291 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8292 'linkage_name'.
8293 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8294 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8295 (lookup_block_symbol): Ditto.
8296
b8b527c5
AC
82972003-05-16 Andrew Cagney <cagney@redhat.com>
8298
8299 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8300 * gdbarch.h, gdbarch.c: Re-generate.
8301 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8302 * TODO (REGISTER_BYTES): Delete reference.
8303 * alpha-tdep.c (alpha_gdbarch_init): Update.
8304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8305 * x86-64-tdep.c (x86_64_init_abi): Update.
8306 * vax-tdep.c (vax_gdbarch_init): Update.
8307 * v850-tdep.c (v850_gdbarch_init): Update.
8308 * sparc-tdep.c (sparc_gdbarch_init): Update.
8309 * sh-tdep.c (sh_gdbarch_init): Update.
8310 * s390-tdep.c (s390_gdbarch_init): Update.
8311 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8312 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8313 (ns32k_gdbarch_init_32382): Update.
8314 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8315 * mcore-tdep.c (mcore_gdbarch_init): Update.
8316 * m68k-tdep.c (m68k_gdbarch_init): Update.
8317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8318 * ia64-tdep.c (ia64_gdbarch_init): Update.
8319 * i386-tdep.c (i386_gdbarch_init): Update.
8320 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8321 * hppa-tdep.c (hppa_gdbarch_init): Update.
8322 * h8300-tdep.c (h8300_gdbarch_init): Update.
8323 * frv-tdep.c (frv_gdbarch_init): Update.
8324 * cris-tdep.c (cris_gdbarch_init): Update.
8325 * avr-tdep.c (avr_gdbarch_init): Update.
8326 * arm-tdep.c (arm_gdbarch_init): Update.
8327 * sparc-tdep.c (sparc_pop_frame): Update.
8328 * rs6000-tdep.c (rs6000_pop_frame): Update.
8329 * remote.c (init_remote_state): Update.
8330 (remote_prepare_to_store): Update.
8331 * remote-vx.c (vx_prepare_to_store): Update.
8332 * remote-sds.c (sds_fetch_registers): Update.
8333 (sds_prepare_to_store): Update.
8334 * remote-array.c: Update.
8335 * regcache.c (init_legacy_regcache_descr): Update.
8336 (init_regcache_descr): Update.
8337 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8338 (mips_o64_extract_return_value): Update.
8339 * irix5-nat.c (fetch_core_registers): Update.
8340 * irix4-nat.c (fetch_core_registers): Update.
8341 * i386-tdep.h: Update.
8342 * hppa-tdep.c (pa_do_registers_info): Update.
8343 (pa_do_strcat_registers_info): Update.
8344 * cris-tdep.c (cris_register_bytes_ok): Update.
8345 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8346 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8347 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8348 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8349 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8350 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8351 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8352 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8353 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8354 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8355 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8356 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8357 (REGISTER_BYTES_OK): Update.
8358 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8359 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8360
ee2842e2
ILT
83612003-05-16 Ian Lance Taylor <ian@airs.com>
8362
8363 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8364 (vax_print_insn, print_insn_arg): Remove static functions.
8365 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8366 print_insn_vax from opcodes library.
8367 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8368
973177d3
AC
83692003-05-15 Andrew Cagney <cagney@redhat.com>
8370
aaab4dba
AC
8371 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8372 * target.h (memory_breakpoint_from_pc): Delete declaration.
8373 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8374 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8375 * monitor.c (monitor_insert_breakpoint): Use
8376 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8377 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8378 * gdbarch.h, gdbarch.c: Re-generate.
8379 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8380 (sparc_gdbarch_init): Set breakpoint_from_pc to
8381 sparc_breakpoint_from_pc.
8382 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8383 (BREAKPOINT_FROM_PC): Define.
8384 (sparc_breakpoint_from_pc): Declare.
8385 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8386 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8387 (BREAKPOINT_FROM_PC): Define.
8388 (BREAKPOINT): Delete macro.
8389 * target.h: Update comment.
8390 * s390-tdep.c (s390_gdbarch_init): Update comments.
8391 * remote.c: Update comments.
8392 * remote-mips.c: Update comments.
8393 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8394 * mem-break.c: Update comment.
8395 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8396 (ia64_memory_insert_breakpoint): Update.
8397 * config/sparc/tm-sparc.h: Update comment.
8398 * config/pa/tm-hppa64.h: Update comment.
8399 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8400 (rs6000_breakpoint_from_pc): Update.
8401 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8402 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8403 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8404 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8405 (mips_breakpoint_from_pc): Update.
8406 (mips_dump_tdep): Update.
8407
e06963ff
AC
8408 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8409 * minsyms.c (lookup_minimal_symbol): Inline
8410 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8411
973177d3
AC
8412 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8413 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8414 * p-lang.c (pascal_printstr): Ditto.
8415 * objc-lang.c (objc_printstr): Ditto.
8416 * m2-lang.c (m2_printstr): Ditto.
8417 * jv-valprint.c (java_print_value_fields): Ditto.
8418 * f-lang.c (f_printstr): Ditto.
8419 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8420 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8421 for repeat_count_threshold.
8422 * Makefile.in (cp-valprint.o): Update dependencies.
8423
5ea2bd7f 84242003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8425
5ea2bd7f
JJ
8426 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8427 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8428 they start with mov r2,r12. Support skipping over indirect stores
8429 of the input registers. Upon hitting a non-nop branch instruction
8430 or predicated instruction, bail out by setting lim_pc to the current
8431 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8432 beyond our calculated value and we have trust_limit set,
8433 use the lim_pc value.
8434
cc8c88f3
AC
84352003-05-15 Andrew Cagney <cagney@redhat.com>
8436
8437 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8438 generic_find_dummy_frame.
8439 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8440 (deprecated_generic_find_dummy_frame): Update.
8441 (deprecated_read_register_dummy): Update.
8442 * frame.c (deprecated_generic_get_saved_register): Update.
8443
909cd28e
TR
84442003-05-15 Theodore A. Roth <troth@openavr.org>
8445
8446 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8447 (avr_gdbarch_init): Set breakpoint_from_pc method.
8448
b923b08d
AC
84492003-05-15 Andrew Cagney <cagney@redhat.com>
8450
8451 * regcache.c (build_regcache): Set deprecated_register_valid
8452 directly.
8453 (deprecated_grub_regcache_for_register_valid): Delete function.
8454 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8455 declaration.
8456
ae2f03ac 84572003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8458
8459 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8460 * symtab.c (lookup_symbol_aux): Delete calls to
8461 lookup_symbol_aux_minsyms.
8462 (lookup_symbol_aux_minsyms): Comment out function and
8463 prototype. Delete lookup by mangled name.
ae2f03ac 8464
18ec9831
KB
84652003-05-14 Kevin Buettner <kevinb@redhat.com>
8466
8467 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8468 correctly indicate an empty stack and ``stack_allocated'' to the
8469 indicate the number of elements initially allocated.
8470 (dwarf_expr_grow_stack): Simplify method for computing new
8471 stack size. Don't loop infinitely if ``stack_len'' is zero.
8472 (execute_stack_op): Move ``ctx->in_reg'' initialization
8473 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8474 be used in conjuction with DW_OP_piece. Revise error message
8475 accordingly.
8476
de18ac1f
TR
84772003-05-14 Theodore A. Roth <troth@openavr.org>
8478
8479 * MAINTAINERS: Update my email address.
8480 * avr-tdep.c: Ditto.
8481
176620f1
EZ
84822003-05-14 Elena Zannoni <ezannoni@redhat.com>
8483
8484 * symtab.h (enum domain_enum): Rename from namespace_enum.
8485 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8486 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8487 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8488 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8489 TYPES_NAMESPACE, METHODS_NAMESPACE.
8490 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8491 (struct symbol, struct partial_symbol): Rename field
8492 'namespace_enum namespace' to 'domain_enum domain'.
8493 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8494 Delete old define kludge for namespace.
8495
8496 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8497 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8498 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8499 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8500 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8501 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8502 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8503 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8504 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8505 occurrences of the above.
8506
b7f31508
ILT
85072003-05-14 Ian Lance Taylor <ian@airs.com>
8508
8509 * Makefile.in (install-only): Use $(SHELL) when running
8510 mkinstalldirs.
8511
2fdbdd39
ILT
85122003-05-13 Ian Lance Taylor <ian@airs.com>
8513
a208d82c
ILT
8514 * MAINTAINERS (write after approval): Add myself.
8515
2fdbdd39
ILT
8516 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8517 second and third arguments.
8518 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8519 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8520
fbd9dcd3
AC
85212003-05-13 Andrew Cagney <cagney@redhat.com>
8522
8523 * defs.h (store_address): Delete declaration.
8524 findvar.c (store_address): Delete function.
8525 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8526 store_unsigned_integer.
8527 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8528 * v850-tdep.c (v850_push_arguments): Ditto.
8529 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8530 * sh-tdep.c (sh64_get_saved_register): Ditto.
8531 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8532 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8533 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8534 (mips_get_saved_register): Ditto.
8535 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8536 (find_func_descr, ia64_push_arguments): Ditto.
8537 * i386-tdep.c (i386_push_arguments): Ditto.
8538 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8539 * frv-tdep.c (frv_push_arguments): Ditto.
8540 * frame.c (legacy_saved_regs_prev_register): Ditto.
8541 (deprecated_generic_get_saved_register): Ditto.
8542 * findvar.c (unsigned_address_to_pointer): Ditto.
8543 * dwarf2read.c (dwarf2_const_value): Ditto.
8544 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8545 * alpha-tdep.c (alpha_push_arguments): Ditto.
8546
6760f9e6
JB
85472003-05-12 J. Brobecker <brobecker@gnat.com>
8548
8549 * NEWS: Mention that the hppa-hpux port has been partially
8550 multiarched (32bit ABIT only, so far).
8551
30e221b4
AC
85522003-05-11 Andrew Cagney <cagney@redhat.com>
8553
8554 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8555 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8556 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8557 sim/testsuite/sim/arm/misaligned2.ms, and
8558 sim/testsuite/sim/arm/misaligned3.ms.
8559 * disasm.h (struct ui_file): Add opaque struct declaration.
8560 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8561 * frame.h (struct ui_file): Ditto.
8562
dea7f9ba
MK
85632003-05-11 Mark Kettenis <kettenis@gnu.org>
8564
8565 * value.h: Pretty print.
8566
01986c48
MK
85672003-05-10 Mark Kettenis <kettenis@gnu.org>
8568
8569 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8570
123a958e
AC
85712003-05-08 Andrew Cagney <cagney@redhat.com>
8572
8573 * regcache.h (max_register_size): Delete declaration.
8574 * regcache.c (max_register_size): Delete function.
8575 (struct regcache_descr): Delete field "max_register_size".
8576 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8577 registers fit in MAX_REGISTER_SIZE.
8578 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8579 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8580 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8581 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8582 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8583 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8584 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8585 * dve3900-rom.c, hppa-tdep.c: Ditto.
8586
eb294659
DC
85872003-05-08 David Carlton <carlton@math.stanford.edu>
8588
8589 * valops.c (push_word): Fix typo.
8590
d9d9c31f
AC
85912003-05-08 Andrew Cagney <cagney@redhat.com>
8592
8593 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8594 * gdbarch.h: Re-generate.
8595 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8596 (legacy_max_register_raw_size): Delete declaration.
8597 * regcache.c (legacy_max_register_raw_size): Delete function.
8598 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8599 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8600 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8601 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
8602 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
8603 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
8604 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
8605 * findvar.c, dwarf2cfi.c: Ditto.
8606
22540ece
AC
86072003-05-08 Andrew Cagney <cagney@redhat.com>
8608
8609 * mips-tdep.c (read_signed_register): New function, moved to here
8610 from "regcache.c".
8611 (read_signed_register_pid): Ditto.
8612 * regcache.c (read_signed_register_pid): Delete function, moved to
8613 "mips-tdep.c".
8614 (read_signed_register): Ditto.
8615 * regcache.h (read_signed_register): Delete declaration.
8616 (read_signed_register_pid): Delete declaration.
8617
0c92afe8
AC
86182003-05-08 Andrew Cagney <cagney@redhat.com>
8619
8620 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
8621 * gdbarch.h: Re-generate.
8622 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
8623 (legacy_max_register_virtual_size): Delete declaration.
8624 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
8625 * d10v-tdep.c (d10v_print_registers_info): Ditto.
8626 * tracepoint.c (memrange_sortmerge): Ditto.
8627 * sparc-tdep.c (sparc_print_registers): Ditto.
8628 * regcache.c (legacy_max_register_virtual_size): Delete function.
8629
6037b830
JB
86302002-05-08 J. Brobecker <brobecker@gnat.com>
8631
8632 * fork-child.c (escape_bang_in_quoted_argument): New function.
8633 (fork_inferior): Escape '!' characters in quoted arguments
8634 only when needed.
8635
5d62c8b1
JB
86362003-05-08 J. Brobecker <brobecker@gnat.com>
8637
8638 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
8639 the language of the CU is not currently supported by GDB.
8640
20a0e81d
JB
86412003-05-08 J. Brobecker <brobecker@gnat.com>
8642
8643 * defs.h (language): Add language_minimal enum value.
8644 * c-lang.c (minimal_language_defn): New language definition.
8645 (_initialize_c_language): Add the new minimal language to the list
8646 of languages known to GDB.
8647
710ee10a
KB
86482003-05-08 Kevin Buettner <kevinb@redhat.com>
8649
8650 * frame.c (get_frame_type): Don't attempt to lazily initialize
8651 frame's unwinder for legacy frames.
8652
1750fa04
AC
86532003-05-07 Andrew Cagney <cagney@redhat.com>
8654
8655 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
8656 and "regcache" parameters.
8657 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
8658
ddf9f258 86592003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8660
8661 * dwarf2read.c (dwarf_decode_lines): Only use output of
8662 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
8663 the current address.
8664
87767c29
AC
86652003-05-07 Andrew Cagney <cagney@redhat.com>
8666
8667 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
8668 code.
8669
5e7b2f39
JB
86702003-05-07 Jim Blandy <jimb@redhat.com>
8671
8672 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
8673 'maint info symtabs' and 'maint info psymtabs'.
8674 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
8675 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
8676 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
8677 Declarations updated.
8678 * maint.c (maintenance_list_command): Delete.
8679 (_initialize_maint_cmds): Update calls to add_cmd.
8680 * gdbcmd.h (maintenancelistlist): Delete declaration.
8681 * cli/cli-cmds.c (maintenancelistlist): Delete.
8682 (init_cmd_lists): Don't initialize it.
8683 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
8684
f6684c31
AC
86852003-05-07 Andrew Cagney <cagney@redhat.com>
8686
8687 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
8688 "regcache".
8689 (d10v_print_registers_info): Update.
8690 (d10v_dmap_register, d10v_imap_register): Delete functions.
8691 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
8692 and "imap_register".
8693 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
8694 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
8695 * arch-utils.c (generic_remote_translate_xfer_address): Add
8696 "regcache" and "gdbarch" parameters.
8697 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
8698 parameter. Change class to multi-arch.
8699 * gdbarch.h, gdbarch.c: Re-generate.
8700 * remote.c (remote_xfer_memory): Use
8701 gdbarch_remote_translate_xfer_address.
8ffd9b1b 8702
e4846b08
JJ
87032003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8704
8705 * infrun.c (prev_pc): Move declaration ahead of proceed().
8706 (proceed): Refresh prev_pc value before resuming.
8707 (stop_stepping): Remove code to refresh prev_pc.
8708
6b71b8ac
KW
87092003-05-06 Kris Warkentin <kewarken@qnx.com>
8710
8711 * nto-tdep.c: Removed stray comment.
8712
47979a4b
KW
87132003-05-06 Kris Warkentin <kewarken@qnx.com>
8714
8715 * i386-nto-tdep.c: Fix old K&R function definitions.
8716 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
8717 Also change add_show_from_set() call to add_setshow_cmd().
8718 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
8719
00905d52
AC
87202003-05-05 Andrew Cagney <cagney@redhat.com>
8721
8722 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
8723 (fprint_dummy_frames): New function.
8724 (maintenance_print_dummy_frames): New function.
8725 (_initialize_dummy_frame): Add command "maint print dummy-frames".
8726 * frame.c (fprint_frame_id): Make global.
8727 * frame.h (fprint_frame_id): Declare.
8728 * Makefile.in (dummy-frame.o): Update dependencies.
8729
b1e29e33
AC
87302003-05-05 Andrew Cagney <cagney@redhat.com>
8731
8732 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
8733 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
8734 SIZEOF_CALL_DUMMY_WORDS.
8735 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
8736 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
8737 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
8738 CALL_DUMMY_BREAKPOINT_OFFSET.
8739 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
8740 CALL_DUMMY_START_OFFSET.
8741 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
8742 * gdbarch.h, gdbarch.c: Re-generate.
8743 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
8744 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
8745 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
8746 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
8747 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
8748 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
8749 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
8750 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
8751 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
8752 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
8753 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
8754 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
8755 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
8756 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
8757 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
8758
87592003-05-05 Kris Warkentin <kewarken@qnx.com>
8760
8761 * configure.tgt: Add i[3456]86-*-nto*.
8762 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
8763 * nto-tdep.c: New file. Neutrino target support routines.
8764 * nto-tdep.h: New file. Neutrino target header.
8765 * config/tm-qnxnto.h: New file.
8766 * config/i386/i386nto.mt: New file.
8767 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 8768
0ce3d317
AC
87692003-05-04 Andrew Cagney <cagney@redhat.com>
8770
8771 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
8772 (load_infrun_state): Ditto.
8773 (struct thread_info): Drop "prev_func_name" field.
8774 * thread.c (load_infrun_state): Update.
8775 (save_infrun_state): Update.
8776 * infrun.c (prev_func_name): Delete variable.
8777 (init_wait_for_inferior): Do not clear prev_func_name.
8778 (stop_stepping, keep_going, context_switch): Do not swap
8779 prev_func_name.
8780 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
8781 instead of PC_IN_SIGTRAMP.
8782
46654a5b
AC
87832003-05-04 Andrew Cagney <cagney@redhat.com>
8784
8785 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8786 REGISTER_BYTE with register_offset_hack.
8787 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
8788 that REGISTER_BYTE is consistent with the regcache.
8789 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
8790 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 8791
14b08c1b
MK
87922003-05-04 Mark Kettenis <kettenis@gnu.org>
8793
04c8243f
MK
8794 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
8795 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
8796
14b08c1b
MK
8797 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
8798
c7a11e01
JB
87992003-05-03 J. Brobecker <brobecker@gnat.com>
8800
8801 From Thierry Schneider <tpschneider1@yahoo.com>
8802 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
8803 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
8804 (mi-cmd-symbol.o): Add rule.
8805
7043d8dc
AC
88062003-05-03 Andrew Cagney <cagney@redhat.com>
8807
8808 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
8809 comments noteing that it replaces the old FIX_CALL_DUMMY code.
8810 * gdbarch.h, gdbarch.c: Re-generate.
8811 * d10v-tdep.c (d10v_push_dummy_code): New function.
8812 (d10v_gdbarch_init): Set push_dummy_code.
8813 * infcall.c (legacy_push_dummy_code): New function.
8814 (generic_push_dummy_code): New function.
8815 (push_dummy_code): New function.
8816 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
8817 instead of dummy_addr, to push_dummy_call. Move call to
8818 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
8819 switch.
8820 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
8821
92bf2b80
AC
88222003-05-03 Andrew Cagney <cagney@redhat.com>
8823
8824 * disasm.h (print_insn): Declare.
8825 * disasm.c (init_gdb_disassemble_info): New function.
8826 (gdb_disassembly): Call init_gdb_disassemble_info.
8827 (gdb_print_insn): New function.
8828 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8829 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
8830 * mcore-tdep.c: Include "disasm.h"
8831 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8832 * d10v-tdep.c: Include "disasm.h".
8833 (display_trace): Call gdb_print_insn, instead of print_insn.
8834 (print_insn): Delete function.
8835 * printcmd.c: Include "disasm.h".
8836 (print_insn): Delete function.
8837 (print_formatted): Call gdb_print_insn, instead of print_insn.
8838 * Makefile.in (printcmd.o): Update dependencies.
8839 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 8840
27d94c49
AC
88412003-05-02 Andrew Cagney <cagney@redhat.com>
8842
82de1e5b
AC
8843 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8844 PC_REGNUM, re-indent.
8845 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8846 PC_REGNUM isn't set.
8847
27d94c49
AC
8848 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8849 * gdbarch.h, gdbarch.c: Re-generate.
8850 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8851 register_virtual_size, pc_regnum, or register_bytes.
8852 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8853 (d10v_register_type): Use D10V_PC_REGNUM.
8854 (d10v_print_registers_info, d10v_read_pc): Ditto.
8855 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8856 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8857
a9c0dc7f
DC
88582003-05-02 David Carlton <carlton@bactrian.org>
8859
8860 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8861 the name with mstrsave.
8862
e33d66ec
EZ
88632003-05-02 Elena Zannoni <ezannoni@redhat.com>
8864
8865 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8866 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8867 (host_charset_name, target_charset_name): New vars for use by
8868 set/show commands.
8869 (host_charset_enum, target_charset_enum): New enums for set/show
8870 commands.
8871 (set_charset_sfunc, set_host_charset_sfunc,
8872 set_target_charset_sfunc): New functions.
8873 (set_host_charset, set_target_charset): Make static.
8874 (list_charsets, set_host_charset_command,
8875 set_target_charset_command): Delete functions.
8876 (show_charset_command): Rewrite as....
8877 (show_charset): Hook this up with the set/show command mechanism.
8878 (_initialize_charset): Change names of charsets to match the
8879 set/show enums. Use host_charset_name and target_charset_name.
8880 Use set/show mechanism for charset, host-charset, target-charset
8881 commands. Do not make 'show host-charset' and 'show
8882 target-charset' be aliases of 'show charset'.
8883
8884 * charset.h (set_host_charset, set_target_charset): Don't export,
8885 they are not used outside the file.
8886
2b6fd0d8
AC
88872003-05-01 Andrew Cagney <cagney@redhat.com>
8888
8889 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8890 (gdb_disassembly): Make "di" non static, always initialize and
8891 cleanup. Always use dis_asm_read_memory.
8892 (gdb_dis_asm_read_memory): Delete function.
8893
6ae2f580
AC
88942003-05-01 Andrew Cagney <cagney@redhat.com>
8895
8896 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8897 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8898
810ecf9f
AC
88992003-04-30 Andrew Cagney <cagney@redhat.com>
8900
8901 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8902 "tm_print_insn_info".
8903 (TARGET_PRINT_INSN_INFO): Delete macro.
8904 (dis_asm_read_memory): Delete function declaration.
8905 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8906 (tm_print_insn_info): Delete variable definition.
8907 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8908 * gdbarch.h, gdbarch.c: Re-generate.
8909 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8910 "deprecated_tm_print_insn_info".
8911 * mcore-tdep.c (mcore_dump_insn): Ditto.
8912 * mips-tdep.c (mips_gdbarch_init): Ditto.
8913 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8914 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8915 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8916 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8917 instead of TARGET_PRINT_INSN_INFO, add comment.
8918 * s390-tdep.c (s390_get_frame_info): Instead of
8919 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8920 (s390_check_function_end, s390_is_sigreturn): Ditto.
8921 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8922 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8923 * disasm.c: Include "gdbcore.h".
8924 (_initialize_disasm): New function, initialize
8925 "deprecated_tm_print_insn_info".
8926 (deprecated_tm_print_insn_info): New variable.
8927 (dis_asm_read_memory): Moved from "corefile.c", made static.
8928 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8929 * Makefile.in (disasm.o): Update dependencies.
8930
07020390
AC
89312003-04-30 Andrew Cagney <cagney@redhat.com>
8932
8933 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8934
a9fa03de
AF
89352003-04-29 Adam Fedor <fedor@gnu.org>
8936
8937 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8938 * infcall.c (find_function_addr): Make non-static.
8939 * infcall.h (find_function_addr): Declare.
8940 * Makefile.in (eval.o): Update dependencies.
8941
1bae87b9
AF
89422003-04-28 Adam Fedor <fedor@gnu.org>
8943
8944 * symtab.c (symbol_find_demangled_name): Check for and demangle
8945 ObjC symbols.
8946 (symbol_init_demangled_name): Init for language_objc as well.
8947
0ba6dca9
AC
89482003-04-28 Andrew Cagney <cagney@redhat.com>
8949
8950 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8951 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8952 * gdbarch.h, gdbarch.c: Re-generate.
8953 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8954 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8955 * inferior.h (deprecated_read_fp): Rename read_fp.
8956 (generic_target_read_fp): Delete declaration.
8957 * regcache.c (generic_target_read_fp): Delete function.
8958 (deprecated_read_fp): Replace read_fp, use
8959 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8960 * d10v-tdep.c (d10v_read_fp): Delete function.
8961 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8962
8963 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8964 deprecated_target_read_fp to generic_target_read_fp.
8965 * sh-tdep.c (sh_gdbarch_init): Ditto.
8966 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8968 * frv-tdep.c (frv_gdbarch_init): Ditto.
8969
8970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8971 deprecated_fp_regnum.
8972 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8973 * vax-tdep.c (vax_gdbarch_init): Ditto.
8974 * v850-tdep.c (v850_gdbarch_init): Ditto.
8975 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8976 * sh-tdep.c (sh_gdbarch_init): Ditto.
8977 * s390-tdep.c (s390_gdbarch_init): Ditto.
8978 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8980 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8981 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8983 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8984 * i386-tdep.c (i386_gdbarch_init): Ditto.
8985 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8986 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8987 * frv-tdep.c (frv_gdbarch_init): Ditto.
8988 * cris-tdep.c (cris_gdbarch_init): Ditto.
8989 * avr-tdep.c (avr_gdbarch_init): Ditto.
8990 * arm-tdep.c (arm_gdbarch_init): Ditto.
8991 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8992
8993 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8994 * v850-tdep.c (v850_gdbarch_init): Ditto.
8995 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8996 * sh-tdep.c (sh_gdbarch_init): Ditto.
8997 * s390-tdep.c (s390_gdbarch_init): Ditto.
8998 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8999 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9000 * mips-tdep.c (mips_gdbarch_init): Ditto.
9001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9002 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9003 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9004 * frv-tdep.c (frv_gdbarch_init): Ditto.
9005 * avr-tdep.c (avr_gdbarch_init): Ditto.
9006 * arm-tdep.c (arm_gdbarch_init): Ditto.
9007
9008 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9009 DEPRECATED_FP_REGNUM.
9010 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9011 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9012 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9013 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9014 (sparc32_register_virtual_type): Ditto.
9015 * sh-tdep.c (sh64_frame_chain): Ditto.
9016 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9017 (sh_nofp_frame_init_saved_regs): Ditto.
9018 (sh64_nofp_frame_init_saved_regs): Ditto.
9019 (sh_fp_frame_init_saved_regs): Ditto.
9020 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9021 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9022 * procfs.c (procfs_fetch_registers): Ditto.
9023 (procfs_store_registers): Ditto.
9024 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9025 (store_inferior_registers, fetch_core_registers): Ditto.
9026 (fetch_kcore_registers, clear_regs): Ditto.
9027 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9028 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9029 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9030 * nlm/i386.c (do_status): Ditto.
9031 * mipsv4-nat.c (supply_gregset): Ditto.
9032 * mips-tdep.c: Ditto for comments.
9033 * mips-nat.c (fetch_inferior_registers): Ditto.
9034 (store_inferior_registers, fetch_core_registers): Ditto.
9035 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9036 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9037 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9038 (i386_do_pop_frame, i386_register_type): Ditto.
9039 * hppa-tdep.c (hppa_frame_chain): Ditto.
9040 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9041 (hppa_pop_frame, hppa_read_fp): Ditto.
9042 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9043 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9044 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9045 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9046 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9047 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9048 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9049 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9050 * blockframe.c: Ditto for comments.
9051 * arch-utils.h: Ditto for comments.
9052 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9053 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9054 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9055 * alpha-tdep.h: Ditto for comments.
9056 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9057 (alpha_cannot_store_register): Ditto.
9058 (alpha_push_dummy_frame): Ditto.
9059 * alpha-nat.c (supply_gregset): Ditto.
9060
9061 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9062 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9063 * config/sparc/tm-sparc.h: Update comment.
9064
9065 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9066 deprecated_read_fp instead of TARGET_READ_FP.
9067 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9068 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9069 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9070 deprecated_read_fp instead of read_fp.
9071 * s390-tdep.c (s390_push_arguments): Ditto.
9072 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9073 * frame.h: Ditto in comments.
9074 * frame.c (legacy_get_prev_frame): Ditto.
9075 * dummy-frame.c (dummy_frame_this_id): Ditto.
9076 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9077
d7a27068
AC
90782003-04-28 Andrew Cagney <cagney@redhat.com>
9079
9080 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9081 * gdbarch.h, gdbarch.c: Re-generate.
9082 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9083 * vax-tdep.c (_initialize_vax_tdep): Update.
9084 * v850-tdep.c (_initialize_v850_tdep): Update.
9085 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9086 * s390-tdep.c (_initialize_s390_tdep): Update.
9087 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9088 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9089 * mips-tdep.c (_initialize_mips_tdep): Update.
9090 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9091 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9092 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9093 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9094 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9095 * frv-tdep.c (_initialize_frv_tdep): Update.
9096 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9097 (_initialize_cris_tdep): Update.
9098 * arch-utils.c (legacy_print_insn): Update.
9099 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9100
d2630e69
AF
91012003-04-26 Adam Fedor <fedor@gnu.org>
9102
9103 * linespec.c (decode_objc): New function to decode ObjC calls
9104 (decode_line_1): Check for ObjC calls (using decode_objc)
9105 * Makefile (linespec.o): Update dependencies.
9106
3086aeae
DJ
91072003-04-26 Daniel Jacobowitz <drow@mvista.com>
9108
9109 * breakpoint.h (struct breakpoint_ops): New.
9110 (struct breakpoint): Add ops member.
9111
9112 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9113 (mention): Use new breakpoint ops member.
9114 (set_raw_breakpoint): Initialize ops field to NULL.
9115 (print_exception_catchpoint, print_one_exception_catchpoint)
9116 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9117 (gnu_v3_exception_catchpoint_ops): New.
9118 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9119
1fbec6c3
AF
91202003-04-25 Adam Fedor <fedor@gnu.org>
9121
9122 * Makefile.in (COMMON_OBS): Add objc-lang.o
9123
0ef21242
AC
91242003-04-25 Andrew Cagney <cagney@redhat.com>
9125
9126 * d10v-tdep.c (print_insn): Delete function.
9127 (display_trace): Use TARGET_PRINT_INSN.
9128 (_initialize_d10v_tdep): Do not set tm_print_insn.
9129 (d10v_gdbarch_init): Set print_insn.
9130
f75493ed
AC
91312003-04-25 Andrew Cagney <cagney@redhat.com>
9132
9133 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9134 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9135 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9136 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9137 (nr_dmap_regs, a0_regnum): ... new functions.
9138 (d10v_print_registers_info): Use a0_regnum, use register_size.
9139 (d10v_register_byte): Delete function.
9140 (d10v_register_raw_size): Delete function.
9141 (d10v_register_type): Use a0_regnum.
9142 (d10v_print_registers_info): Use a0_regnum.
9143 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9144 (d10v_gdbarch_init): Do not set register_byte or
9145 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9146 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9147 extract_address.
9148 (trace_command): Use XCALLOC.
9149 (print_insn): Delete reference to tm_print_insn.
9150 (saved_regs_unwinder): Use store_unsigned_integer instead of
9151 store_address.
9152 * frame.h (FRAME_OBSTACK_CALLOC): Define
9153
2202b100
DC
91542003-04-25 David Carlton <carlton@bactrian.org>
9155
9156 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9157
4e45ca2e
AF
91582003-04-24 Adam Fedor <fedor@gnu.org>
9159
9160 * objc-lang.c: Include "valprint.h"
9161 * Makefile.in (objc-lang.o): Update dependencies.
9162
93de3e7f
AF
91632003-04-24 Adam Fedor <fedor@gnu.org>
9164
8ffd9b1b 9165 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9166 architecture dependant compilation and mark as unimplemented
9167 (until they get put in the gdbarch vector).
9168
0f20eeea
DC
91692003-04-23 David Carlton <carlton@bactrian.org>
9170
9171 * cp-support.c (cp_find_first_component): Accept 'operator' in
9172 more locations.
9173
74cfe982
AC
91742003-04-23 Andrew Cagney <cagney@redhat.com>
9175
9176 * infcall.c (call_function_by_hand): Eliminate redundant
9177 indentation. Move "saved_async" and "old_cleanups" to where they
9178 are needed.
8ffd9b1b 9179
52557533
AC
91802003-04-23 Andrew Cagney <cagney@redhat.com>
9181
9182 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9183 and "buffer". Move the "name" code to where it is needed.
9184
158775de
AC
91852003-04-23 Andrew Cagney <cagney@redhat.com>
9186
9187 * infcall.c (call_function_by_hand): Move variables "start_sp",
9188 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9189 code to ON_STACK switch branch.
8ffd9b1b 9190
ebc7896c
AC
91912003-04-23 Andrew Cagney <cagney@redhat.com>
9192
9193 * infcall.c (call_function_by_hand): Make declaration of "i",
9194 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9195 lint.
9196
d727590f
AC
91972003-04-23 Andrew Cagney <cagney@redhat.com>
9198
9199 * infcall.c (call_function_by_hand): Delete variable
9200 "n_method_args". Localize "param_type"'s declaration to the loop
9201 that it is used. Reinstate code assigning to said variable -
9202 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9203 Rationalize code using "param_type".
9204
d585e13a
AC
92052003-04-22 Andrew Cagney <cagney@redhat.com>
9206
9207 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9208 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9209 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9210 to DEPRECATED_PUSH_RETURN_ADDRESS.
9211
051caad9
KB
92122003-04-22 Kevin Buettner <kevinb@redhat.com>
9213
9214 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9215 on the DWARF2 register number prior to fetching a register.
9216
77296879
JB
92172003-04-22 J. Brobecker <brobecker@gnat.com>
9218
9219 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9220 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9221 this macro was always set to 0.
77296879
JB
9222 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9223 considering the fact that this macro was always set to 0.
9224 * hppa-tdep.h (hppa_store_return_value): Likewise.
9225 (hppa_extract_return_value): Likewise.
9226
4252f1df
JB
92272003-04-22 J. Brobecker <brobecker@gnat.com>
9228
9229 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9230 the hppa-pro target only.
9231
14604c6b
JB
92322003-04-21 J. Brobecker <brobecker@gnat.com>
9233
9234 Ongoing multi-arch conversion effort for HP/UX:
9235 * config/pa/tm-hppa.h: Move all macro that are no longer
9236 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9237 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9238
77eb01d1
JB
92392003-04-21 J. Brobecker <brobecker@gnat.com>
9240
9241 * config/pa/tm-hppa.h: Obsolete a section that was only used
9242 for hppa-pro.
9243
61995b3b
JB
92442003-04-21 J. Brobecker <brobecker@gnat.com>
9245
9246 Ongoing multi-arch conversion for HP/UX.
9247 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9248 if already defined (allows hppa64 to stay non-multiarched for now).
9249 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9250
4aa79dcc
AC
92512003-04-21 Andrew Cagney <cagney@redhat.com>
9252
9253 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9254
0f751ff2
AC
92552003-04-21 Andrew Cagney <cagney@redhat.com>
9256
9257 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9258 "i386_num_mmx_regs".
9259
04714b91
AC
92602003-04-21 Andrew Cagney <cagney@redhat.com>
9261
9262 * infcall.c: New file.
9263 * infcall.h: New file.
9264 * valarith.c: Include "infcall.h".
9265 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9266 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9267 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9268 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9269 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9270 (SFILES): Add "infcall.c"
9271 (COMMON_OBS): Add "infcall.o".
9272 (infcall.o): Specify dependencies.
9273 * value.h (call_function_by_hand): Delete declaration.
9274 * inferior.h (run_stack_dummy): Delete declaration.
9275 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9276 (run_stack_dummy): Move to "infcall.c", merged into
9277 call_function_by_hand.
9278 * valops.c (call_function_by_hand): Moved to "infcall.c".
9279 (find_function_addr, value_arg_coerce): Ditto.
9280 (unwindonsignal_p, coerce_float_to_double): Ditto.
9281 (_initialize_valops): Move "set/show coerce-float-to-double", and
9282 "set/show unwindonsignal" commands to "infcall.c".
9283 * v850-tdep.c, target.h: Update comments.
9284 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9285 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9286 (sh64_init_extra_frame_info): Update comments.
9287 * mn10300-tdep.c: Update comments.
9288 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9289 * config/sparc/tm-sparc.h: Update comments.
9290 * breakpoint.h: Update comments.
9291 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9292 * arm-tdep.c: Update comment.
9293
f9d3c2a8
MK
92942003-04-19 Mark Kettenis <kettenis@gnu.org>
9295
c40e1eab
MK
9296 * i386-tdep.c (i386_num_register_names): New variable.
9297 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9298 (MM0_REGNUM): Remove redundant parentheses in define.
9299 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9300 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9301 i386_mxcsr_regnum_p): Remove redundant parentheses.
9302 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9303
94ea66b3
MK
9304 * i386-tdep.c (i386_extract_return_value,
9305 i386_store_return_value): Correct check for availability of
9306 floating-point registers.
9307
54299a1d
MK
9308 * i386-tdep.c (i386_frame_num_args): Remove function.
9309 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9310
c86c27af
MK
9311 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9312 mmx_regnum_to_fp_regnum. Adjust all callers.
9313
f9d3c2a8
MK
9314 * i386-tdep.c (i386_get_longjmp_target): Use
9315 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9316 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9317 extract_address.
9318
94ba74a9
MK
93192003-04-19 Mark Kettenis <kettenis@gnu.org>
9320
9321 * core-regset.c: Update comments to reflect reality. Re-order
9322 includes.
9323 (fetch_core_registers): Use switch instead of if. Remove
9324 redundant prototype.
9325
4074e13c
JB
93262003-04-18 Jim Blandy <jimb@redhat.com>
9327
9328 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9329 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9330
e3ab4aba
RH
93312003-04-17 Richard Henderson <rth@redhat.com>
9332
9333 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9334
627bf7c1
EZ
93352003-04-17 Michael Snyder <msnyder@redhat.com>
9336 Karen Bennet <bennet@redhat.com>
9337
9338 Committed by Elena Zannoni <ezannoni@redhat.com>
9339 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9340
514621a9
EZ
93412003-04-17 Elena Zannoni <ezannoni@redhat.com>
9342
9343 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9344 value if the return type is void.
514621a9 9345
b4acd559
JJ
93462003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9347
9348 * thread-db.c: Reindented.
8ffd9b1b 9349
530b167e 93502003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9351
9352 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9353 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9354 as types.
9355
0a48e7e8
MS
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
8ffd9b1b 9379
ab9fe00e
KB
93802003-04-16 Kevin Buettner <kevinb@redhat.com>
9381
610a3745 9382 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9383 the size of ``long double'' to 16, instead of 8.
9384
e64a344c
MK
93852003-04-16 Mark Kettenis <kettenis@gnu.org>
9386
9387 * i386-linux-nat.c: Add some whitespace to make things more
9388 readable.
9389 (fetch_register, store_register, fetch_inferior_registers,
9390 store_inferior_registers): Get rid of assignment in if-statement.
9391 (store_register): Fix typo in error message.
9392
25d41031
AC
93932003-04-16 Andrew Cagney <cagney@redhat.com>
9394
9395 * utils.c (xmmalloc): Always allocate something, matches
9396 libiberty/xmalloc's semantics.
9397 (xmrealloc, xmcalloc): Ditto.
9398
c50901fd
AC
93992003-04-16 Andrew Cagney <cagney@redhat.com>
9400
9401 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9402 update comments.
9403 (get_frame_type): Initialize unwind and type when needed.
9404 (get_frame_id, frame_register_unwind): Ditto.
9405
f81824a9
AC
94062003-04-16 Andrew Cagney <cagney@redhat.com>
9407
9408 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9409 obsolete.
9410 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9411 * sparcl-stub.c: Obsolete file.
9412 * config/sparc/tm-sparclet.h: Obsolete file.
9413 * sparclet-stub.c: Obsolete file.
9414 * sparclet-rom.c: Obsolete file.
9415 * sparcl-tdep.c: Obsolete file.
9416 * config/sparc/tm-sparclite.h: Obsolete file.
9417 * config/sparc/sparclite.mt: Obsolete file.
9418 * config/sparc/sparclet.mt: Obsolete file.
9419 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9420 sparc86x-*-* obsolete.
9421
9219021c
DC
94222003-04-15 David Carlton <carlton@math.stanford.edu>
9423
9424 * Makefile.in (SFILES): Add cp-namespace.c.
9425 (COMMON_OBS): Add cp-namespace.o.
9426 (block.o): Depend on gdb_obstack_h and cp_support_h.
9427 (buildsym.o): Depend on cp_support_h.
9428 (cp-namespace.o): New.
9429 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9430 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9431 (dwarf2read.o): Depend on cp_support_h.
9432 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9433 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9434 processing_current_namespace.
9435 (read_namespace): Update processing_current_namespace; check for
9436 anonymous namespaces.
9437 (dwarf2_name): New function.
9438 (dwarf2_extension): Ditto.
9439 * cp-support.h: Update copyright, contributors.
9440 Add inclusion guards.
9441 Add opaque declaration for structs obstack, block, symbol.
9442 (struct using_direct): New struct.
9443 Add declarations for cp_find_first_component,
9444 cp_entire_prefix_len, processing_has_namespace_info,
9445 processing_current_namespace, cp_is_anonymous,
9446 cp_add_using_directive, cp_initialize_namespace,
9447 cp_finalize_namespace, cp_set_block_scope,
9448 cp_scan_for_anonymous_namespaces.
9449 * cp-namespace.c: New file.
9450 * cp-support.c: Update copyright.
9451 Include ctype.h, gdb_assert.h, gdbcmd.h.
9452 New variable maint_cplus_cmd_list.
9453 (cp_find_first_component): New function.
9454 (cp_entire_prefix_len, maint_cplus_command)
9455 (first_component_command, _initialize_cp_support): Ditto.
9456 * buildsym.c: Include cp-support.h.
9457 New variable using_list.
9458 (add_symbol_to_list): Check for anonymous namespaces.
9459 (finish_block): Set block's scope.
9460 (start_symtab): Initialize C++ namespace support.
9461 (end_symtab): Finalize C++ namespace support.
9462 * block.h: Add opaque declarations for structs
9463 block_namespace_info, using_direct, and obstack.
9464 Add declarations for block_set_scope and block_set_using.
9465 (struct block): Add 'language_specific' member.
9466 (BLOCK_NAMESPACE): New macro.
9467 * block.c: Include gdb_obstack.h and cp-support.h.
9468 (struct block_namespace_info): New struct.
9469 (block_set_scope): New function.
9470 (block_set_using, block_initialize_namespace): Ditto.
9471
d5a921c9
KB
94722003-04-14 Kevin Buettner <kevinb@redhat.com>
9473
9474 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9475 (locate_base): Return early if there aren't any link map offsets.
9476 (svr4_solib_create_inferior_hook): Warn if shared library support
9477 is unavailable.
9478
d2a52b27
DC
94792003-04-14 David Carlton <carlton@math.stanford.edu>
9480
9481 * symtab.c (symbol_set_names): Add prefix when storing Java names
9482 in hash table. Fix for PR java/1039.
9483
980cae7a
DC
94842003-04-14 David Carlton <carlton@math.stanford.edu>
9485
9486 * symtab.c (symbol_set_names): Rename 'name' arg to
9487 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9488 * symtab.h: Change 'name' argument in declaration of
9489 symbol_set_names to 'linkage_name'.
9490 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9491
e227b13c
AC
94922003-04-14 Andrew Cagney <cagney@redhat.com>
9493
9494 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9495 return the fully sign-extended register value.
9496 (get_frame_pointer): Ditto.
9497 (mips_pop_frame): Initialize "proc_desc" after checking for a
9498 dummy frame.
9499
36712a20
AC
95002003-04-14 Andrew Cagney <cagney@redhat.com>
9501
9502 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9503 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9504 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9505 (mips_push_register): Delete function.
9506 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9507 PUSH_FP_REGNUM.
9508
44ea7b70
JB
95092003-04-14 Jim Blandy <jimb@redhat.com>
9510
9511 * symmisc.c: #include "gdb_regex.h".
9512 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9513 functions.
9514 * maint.c (maintenance_list_command): New function.
9515 (_initialize_maint_cmds): Register the above as commands.
9516 * symtab.h (maintenance_list_symtabs,
9517 maintenance_list_psymtabs): New declarations.
9518 * cli/cli-cmds.c (maintenancelistlist): New variable.
9519 (init_cmd_lists): Initialize it.
9520 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9521 * gdbcmd.h (maintenancelistlist): New declaration.
9522 * Makefile.in (symmisc.o): Update dependencies.
9523
2d0c7962
EZ
95242003-04-14 Elena Zannoni <ezannoni@redhat.com>
9525
9526 * s390-nat.c: Include asm/types.h for addr_t.
9527
1947a811
CV
95282003-04-14 Corinna Vinschen <vinschen@redhat.com>
9529
9530 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9531 actually incoming type.
9532
adb616d7
AC
95332003-04-13 Andrew Cagney <cagney@redhat.com>
9534
9535 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9536 get_next_frame and get_frame_saved_regs.
9537
9b5e151c
AC
95382003-04-13 Andrew Cagney <cagney@redhat.com>
9539
9540 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9541 of gdbarch_num_regs.
9542
ef6e7e13
AC
95432003-04-13 Andrew Cagney <cagney@redhat.com>
9544
9545 * frame.h: Mention what replaced what in "struct frame_info".
9546 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9547 deprecated_update_frame_base_hack and
9548 deprecated_update_frame_pc_hack.
9549 * hppa-tdep.c: Ditto.
9550
61fbb938
DJ
95512003-04-13 Daniel Jacobowitz <drow@mvista.com>
9552
9553 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9554 to read_reg and update its comment. Remove regnum member.
9555 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9556 Don't call read_reg when setting in_reg. Call read_reg to get
9557 the frame base if it's in a register. Return the register number
9558 on the stack instead of in the context. Remove extra arguments
9559 to read_reg.
9560 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9561 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9562 the register number on the expression stack.
9563 (needs_frame_read_reg): Remove extra arguments.
9564
0d53c4c4
DJ
95652003-04-13 Daniel Jacobowitz <drow@mvista.com>
9566
9567 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9568 made non-static.
9569 (execute_stack_op): All callers updated.
9570 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9571 * dwarf2loc.c (find_location_expression): New function.
9572 (dwarf_expr_frame_base): Call it.
9573 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9574 (dwarf2_tracepoint_var_ref): New function, broken out from
9575 locexpr_tracepoint_var_ref.
9576 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9577 Make static.
9578 (loclist_read_variable, loclist_read_needs_frame): New functions.
9579 (loclist_describe_location, loclist_tracepoint_var_ref): New
9580 functions.
9581 (dwarf2_loclist_funcs): New struct location_funcs.
9582 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9583 (struct dwarf2_locexpr_baton): Add comments.
9584 (dwarf2_loclist_funcs): New extern.
9585 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9586 base_address and base_known.
9587 (dwarf_loc_buffer): New variable.
9588 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9589 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9590 (dwarf2_has_info): Initialize dwarf_loc_offset.
9591 (dwarf2_build_psymtabs): Read in .debug_loc.
9592 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9593 DWARF_LOC_SIZE.
9594 (psymtab_to_symtab_1): Likewise. Move base address calculation
9595 here, from...
9596 (dwarf2_get_pc_bounds): ... here. Use the base address from
9597 cu_header.
9598 (dwarf2_symbol_mark_computed): Handle location lists.
9599
6aca59a3
DJ
96002003-04-13 Daniel Jacobowitz <drow@mvista.com>
9601
9602 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
9603 if the linkage name demangled successfully.
9604
aca1fcd0
MK
96052003-04-13 Mark Kettenis <kettenis@gnu.org>
9606
97095916
MK
9607 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
9608 disassmbly_flavour): Removed.
9609
aca1fcd0
MK
9610 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
9611
562a961f
MK
96122003-04-13 Mark Kettenis <kettenis@gnu.org>
9613
9614 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
9615
bd013d54
AC
96162003-04-12 Andrew Cagney <cagney@redhat.com>
9617
9618 * frame.h (struct frame_info): Move definition from here ...
9619 * frame.c (struct frame_info): ... to here.
9620
167ef8b1
AC
96212003-04-12 Andrew Cagney <cagney@redhat.com>
9622
9623 * gdbthread.h (save_infrun_state): Delete parameter
9624 "prev_func_start".
9625 (struct thread_info): Delete field "prev_func_start".
9626 (load_infrun_state): Ditto.
9627 * thread.c (load_infrun_state, save_infrun_state): Update.
9628 * infrun.c (prev_func_start): Delete variable.
9629 (context_switch, init_wait_for_inferior): Update.
9630 (stop_stepping, keep_going): Update.
9631
da3331ec
AC
96322003-04-12 Andrew Cagney <cagney@redhat.com>
9633
9634 * gdbarch.sh: Add missing opaque declarations.
9635 * gdbarch.h: Regnerate.
9636 * symtab.h: Add missing opaque declarations.
9637 * value.h, target.h, symfile.h, stabsread.h: Ditto.
9638 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
9639 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
9640 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
9641 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
9642 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
9643 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
9644 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
9645 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
9646 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
9647 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
9648 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
9649 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
9650
18adea3f
AC
96512003-04-11 Andrew Cagney <cagney@redhat.com>
9652
9653 * frame.c (get_frame_id): Return this frame's "id".
9654 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
9655 function start.
9656 (legacy_saved_regs_this_id): Replace function body with
9657 internal-error.
9658 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
9659 FRAME_OBSTACK_ZALLOC.
9660 (create_new_frame): Mark the frame ID as valid.
9661
2252e863
AO
96622003-04-11 Alexandre Oliva <aoliva@redhat.com>
9663
9664 * Makefile.in (libbfd_h): Added missing setting.
9665 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
9666 according to the selected ABI.
9667
a8245ab8
JJ
96682003-04-11 Jeff Johnston <jjohnstn@redhat.com>
9669
9670 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
9671
6913c89a
AC
96722003-04-11 Andrew Cagney <cagney@redhat.com>
9673
9674 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
9675 SAVED_PC_AFTER_CALL.
9676 * gdbarch.h, gdbarch.c: Regenerate.
9677 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9678 * x86-64-tdep.c (x86_64_init_abi): Update.
9679 * vax-tdep.c (vax_gdbarch_init): Update.
9680 * v850-tdep.c (v850_gdbarch_init): Update.
9681 * sparc-tdep.c (sparc_gdbarch_init): Update.
9682 * sh-tdep.c (sh_gdbarch_init): Update.
9683 * s390-tdep.c (s390_gdbarch_init): Update.
9684 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9685 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9687 * mips-tdep.c (mips_gdbarch_init): Update.
9688 * mcore-tdep.c (mcore_gdbarch_init): Update.
9689 * m68k-tdep.c (m68k_gdbarch_init): Update.
9690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9691 * ia64-tdep.c (ia64_gdbarch_init): Update.
9692 (ia64_saved_pc_after_call): Update declaration.
9693 * i386ly-tdep.c (i386lynx_init_abi): Update.
9694 * i386-tdep.c (i386_gdbarch_init): Update.
9695 * hppa-tdep.c (hppa_gdbarch_init): Update.
9696 * h8300-tdep.c (h8300_gdbarch_init): Update.
9697 * frv-tdep.c (frv_gdbarch_init): Update.
9698 * cris-tdep.c (cris_gdbarch_init): Update.
9699 * avr-tdep.c (avr_gdbarch_init): Update.
9700 * arm-tdep.c (arm_gdbarch_init): Update.
9701 * alpha-tdep.c (alpha_gdbarch_init): Update.
9702 * ns32knbsd-nat.c (frame_num_args): Update.
9703 * ns32k-tdep.c (umax_frame_num_args): Update.
9704 * mips-tdep.c (mips_init_frame_pc_first): Update.
9705 * infrun.c (step_over_function): Update.
9706 * i386-linux-tdep.c (skip_hurd_resolver): Update.
9707 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
9708 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9709 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9710 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9711 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
9712 * arm-linux-tdep.c (skip_hurd_resolver): Update.
9713 * arch-utils.c (init_frame_pc_default): Update.
9714 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9715 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
9716 declaration.
8ffd9b1b 9717
38edeab8
AC
97182003-04-11 Andrew Cagney <cagney@redhat.com>
9719
9720 * i387-tdep.c: Update copyright.
9721 (i387_to_double): Delete function.
9722 (double_to_i387): Delete function.
9723
81f8a206
AC
97242003-04-10 Andrew Cagney <cagney@redhat.com>
9725
9726 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
9727 frame's function's address. Simplify.
9728 (d10v_frame_unwind_cache): Check that the frame's function is
9729 non-zero.
9730
6e691f7a
JB
97312003-04-10 Jim Blandy <jimb@redhat.com>
9732
9733 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
9734 call to set_gdbarch_deprecated_push_arguments.
9735
7f78e237
AC
97362003-04-10 Andrew Cagney <cagney@redhat.com>
9737
9738 * frame.c (fprint_frame_id): New function.
9739 (fprint_frame_type, fprint_frame): New function.
9740 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
9741 (create_sentinel_frame, get_frame_id): Ditto.
9742 (frame_id_p, frame_id_eq): Ditto.
9743 (frame_id_inner, create_new_frame): Ditto.
9744 (legacy_get_prev_frame, get_prev_frame): Ditto.
9745 (deprecated_update_frame_pc_hack): Ditto.
9746 (frame_register_unwind): Ditto.
9747 (deprecated_update_frame_base_hack): Ditto.
9748
f870b49b
CV
97492003-04-10 Corinna Vinschen <vinschen@redhat.com>
9750
9751 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
9752 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
9753 frame_chain function.
9754 * Makefile.in: Add dependencies due to above change.
9755
7c86889b
CV
97562003-04-10 Corinna Vinschen <vinschen@redhat.com>
9757
9758 * blockframe.c (legacy_frame_chain_valid): Move call to
9759 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
9760 inside_entry_file.
9761
d0a55772
AC
97622003-04-09 Andrew Cagney <cagney@redhat.com>
9763
9764 * frame.h (struct frame_id): Replace "pc" and "base" with
9765 "stack_addr" and "code_addr". Update comments.
9766 (frame_id_build): Update parameter names and comment.
9767 (struct frame_info): Replace "id_p" and "id" with "this_id".
9768 * dummy-frame.c (dummy_frame_this_id): Update.
9769 * breakpoint.c (print_one_breakpoint): Update.
9770 * frame.c (get_frame_id): Update.
9771 (get_frame_base, frame_id_build): Update.
9772 (create_sentinel_frame, legacy_get_prev_frame): Update.
9773 (deprecated_update_frame_base_hack): Update.
9774 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
9775 (frame_id_inner): Ditto.
9776
ac16bf07
AC
97772003-04-09 Andrew Cagney <cagney@redhat.com>
9778
9779 * defs.h (gdb_print_host_address): Make "addr" parameter a
9780 pointer constant.
9781 * utils.c (gdb_print_host_address): Update.
9782
366cfc9e
KB
97832003-04-09 Kevin Buettner <kevinb@redhat.com>
9784
9785 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
9786 register number for R0 is 0.
9787
cd983b5c
JB
97882003-04-09 J. Brobecker <brobecker@gnat.com>
9789
9790 * frame.h (struct gdbarch): Add opaque structure definition
9791 to avoid a compilation warning on LynxOS 4.0.
9792
d1340264
AC
97932003-04-09 Andrew Cagney <cagney@redhat.com>
9794
9795 * frame.h (struct frame_info): Delete field "pc". Replace
9796 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
9797 structure.
9798 * frame.c (frame_pc_unwind): Update.
9799 (create_sentinel_frame): Do not set "pc".
9800 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
9801 (get_frame_pc): Call frame_pc_unwind.
9802 (deprecated_update_frame_pc_hack): Update.
9803 (create_new_frame): Use "pc" not "->pc".
9804
90a6fffb
AC
98052003-04-09 Andrew Cagney <cagney@redhat.com>
9806
9807 * frame.c (get_frame_id): Eliminate code updating "frame".
9808 (legacy_get_prev_frame): Ditto.
9809 (get_frame_base): Return id.base directly.
9810 (deprecated_update_frame_base_hack): Update "id.base".
9811 * frame.h (struct frame_info): Delete field "frame".
9812
2fbce691
AC
98132003-04-09 Andrew Cagney <cagney@redhat.com>
9814
9815 * NEWS: Mention that the "Sequent family" is obsolete.
9816 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
9817 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9818 * configure.host: Obsolete i[3456]86-sequent-bsd*,
9819 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
9820 * config/i386/tm-ptx4.h: Obsolete file.
9821 * config/i386/tm-ptx.h: Obsolete file.
9822 * symm-tdep.c: Obsolete file.
9823 * config/i386/symmetry.mt: Obsolete file.
9824 * config/i386/tm-symmetry.h: Obsolete file.
9825 * symm-nat.c: Obsolete file.
9826 * config/i386/nm-symmetry.h: Obsolete file.
9827 * config/i386/xm-symmetry.h: Obsolete file.
9828 * config/i386/symmetry.mh: Obsolete file.
9829 * config/i386/nm-ptx4.h: Obsolete file.
9830 * config/i386/ptx4.mh: Obsolete file.
9831 * config/i386/ptx.mt: Obsolete file.
9832 * config/i386/ptx.mh: Obsolete file.
9833 * config/i386/xm-ptx4.h: Obsolete file.
9834 * config/i386/xm-ptx.h: Obsolete file.
9835
78c43945
AC
98362003-04-09 Andrew Cagney <cagney@redhat.com>
9837
9838 Obsolete mips*-*-mach3*.
9839 * NEWS: Mention that mips*-*-mach3* is obsolete.
9840 * m3-nat.c: Obsolete file.
9841 * config/nm-m3.h: Obsolete file.
9842 * config/mips/tm-mipsm3.h: Obsolete file.
9843 * config/mips/mipsm3.mt: Obsolete file.
9844 * config/mips/mipsm3.mh: Obsolete file.
9845 * config/mips/xm-mipsm3.h: Obsolete file.
9846 * mipsm3-nat.c: Obsolete file.
9847 * configure.host: Obsolete mips-dec-mach3*.
9848 * configure.tgt: Obsolete mips*-*-mach3*.
9849
f1908289
AC
98502003-04-09 Andrew Cagney <cagney@redhat.com>
9851
9852 * doublest.h: Update copyright.
9853 (deprecated_store_floating, deprecated_extract_floating): Rename
9854 store_floating and extract_floating. Update comments.
9855 * doublest.c: Update copyright.
9856 (extract_floating_by_length): Replace extract_floating.
9857 (store_floating_by_length): Replace store_floating.
9858 (deprecated_extract_floating): New function.
9859 (deprecated_store_floating): New function.
9860 (extract_typed_floating): Call extract_floating_by_length.
9861 (store_typed_floating): Call store_floating_by_length.
9862 * x86-64-tdep.c (x86_64_store_return_value): Update.
9863 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9864 (sh64_extract_return_value): Update.
9865 (sh_sh4_register_convert_to_virtual): Update.
9866 (sh_sh64_register_convert_to_virtual): Update.
9867 (sh_sh4_register_convert_to_raw): Update.
9868 (sh_sh64_register_convert_to_raw): Update.
9869 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9870 (rs6000_register_convert_to_raw): Update.
9871 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9872 (ia64_register_convert_to_raw): Update.
9873 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9874 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9875 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9876 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9877 (alpha_register_convert_to_raw): Update.
9878
4443bd83
AC
98792003-04-08 Andrew Cagney <cagney@redhat.com>
9880
9881 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9882 * gdbarch.h, gdbarch.c: Re-generate.
9883 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9884 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9885 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9886 conditionally, use frame_pc_unwind as an alternative. Add
9887 comments.
9888 * arch-utils.c (init_frame_pc_default): Only call
9889 SAVED_PC_AFTER_CALL when available.
9890
c0236d92
EZ
98912003-04-08 Elena Zannoni <ezannoni@redhat.com>
9892
fbe586ae 9893 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9894 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9895 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9896 (start_remote): Ditto.
9897 (handle_inferior_event): Ditto.
9898 (save_inferior_status): Ditto.
9899 (restore_inferior_status): Ditto.
9900 * infcmd.c (attach_command): Ditto.
9901 * fork-child.c (startup_inferior): Ditto.
fbe586ae 9902 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
9903 * alpha-tdep.c (heuristic_proc_start): Ditto.
9904 * mips-tdep.c (heuristic_proc_start): Ditto.
9905 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9906 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9907 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9908 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9909 * remote-vx.c (vx_create_inferior): Ditto.
9910
99112003-04-08 Elena Zannoni <ezannoni@redhat.com>
9912
9913 * infrun.c (stop_soon_quietly): Make it an enum, to better
9914 override the default behavior of handle_inferior_event.
9915 (clear_proceed_status): Update uses of stop_soon_quietly to
9916 reflect that it is now an enum.
9917 (start_remote): Ditto.
9918 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9919 is set to handle the new GNU/Linux kernel behavior for
9920 attach/sigstop. Update uses of stop_soon_quietly.
9921 * inferior.h (enum stop_kind): New enum.
9922 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9923 Reset normal handle_inferior_event behavior, afterwards.
9924 * fork-child.c (startup_inferior): Update.
9925 * alpha-tdep.c (heuristic_proc_start): Update.
9926 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9927 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9928 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9929 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9930 * remote-vx.c (vx_create_inferior): Update.
9931 * mips-tdep.c (heuristic_proc_start): Update.
9932
1211bce3
EZ
99332003-04-07 Elena Zannoni <ezannoni@redhat.com>
9934
9935 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 9936 be freed more than once, causing wild memory corruptions.
1211bce3 9937 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 9938 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 9939 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 9940 with the "core" target.
1211bce3 9941
f0ef6b29
KB
99422003-04-07 Kevin Buettner <kevinb@redhat.com>
9943
9944 * mips-tdep.c (mips_print_fp_register): New function, created from
9945 do_fp_register_row(). Registers are now (also) printed as hex.
9946 Only one register is printed per row.
9947 (mips_print_register, do_fp_register_row): Print floating point
9948 registers with mips_print_fp_register().
9949
8cf71652
AC
99502003-04-06 Andrew Cagney <cagney@redhat.com>
9951
5e488a7b
AC
9952 * valprint.h (inspect_it): Add extern declaration.
9953 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9954 (selectors_info, classes_info): Ditto.
9955 (find_objc_msgcall): Fix indentation.
9956 (objc_printstr): Delete extern declarations.
9957
8cf71652
AC
9958 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9959
e6ba3bc9
AC
99602003-04-06 Andrew Cagney <cagney@redhat.com>
9961
9962 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9963 Update comment.
9964 * frame.c (legacy_saved_regs_this_id): Update.
9965 (legacy_get_prev_frame): Update.
9966 * xstormy16-tdep.c: Update comment.
9967 * sparc-tdep.c (sparc_frame_chain): Update comment.
9968 * blockframe.c (legacy_frame_chain_valid): Update.
9969
55e1d7e7
AC
99702003-04-06 Andrew Cagney <cagney@redhat.com>
9971
996179ee
AC
9972 * valprint.c (val_print_type_code_int): Delete #ifdef
9973 PRINT_TYPELESS_INTEGER code.
9974
55e1d7e7
AC
9975 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9976 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9977 multi-arch definition.
9978 * gdbarch.h: Re-generate.
9979
43bd9a9e
AC
99802003-04-05 Andrew Cagney <cagney@redhat.com>
9981
9982 Eliminate FRAME_FIND_SAVED_REGS.
9983 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9984 Change FSR parameter to a pointer.
9985 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9986 Assume FSR parameter is a pointer.
9987 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9988 Make fsr a pointer.
9989 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9990 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9991 saved_regs a pointer.
9992 (hppa_frame_saved_pc): Ditto.
9993 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9994 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9995 pointer.
9996 (restore_pc_queue): Make fsr a pointer.
9997 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9998 (hppa_frame_chain): Make saved_regs a pointer, call
9999 hppa_frame_init_saved_regs.
10000 * sparc-tdep.c: Include "gdb_assert.h".
10001 (sparc_frame_find_saved_regs): Replace internal_error with
10002 gdb_assert.
10003 * remote-vxsparc.c (vx_read_register): Delete reference to
10004 FRAME_FIND_SAVED_REGS.
10005 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10006 * gdbarch.h: Regenerate.
10007 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10008 (deprecated_get_frame_saved_regs): Delete declaration.
10009 (struct frame_saved_regs): Delete definition.
10010 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10011 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10012 (hppa_frame_find_saved_regs): Delete declaration.
10013 (FRAME_FIND_SAVED_REGS): Delete macro.
10014 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10015 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10016 FRAME_FIND_SAVED_REGS in comment.
10017
be41e9f4
AC
100182003-04-05 Andrew Cagney <cagney@redhat.com>
10019
10020 * frame.c (frame_func_unwind, get_frame_func): New functions.
10021 * frame.h (get_frame_func, frame_func_unwind): Declare.
10022 (struct frame_info): Add field "prev_func" for caching the
10023 previous frame's function address.
10024 * arm-tdep.c (arm_frameless_function_invocation): Combine
10025 get_pc_function_start and get_frame_pc into get_frame_func.
10026 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10027 (sh64_nofp_frame_init_saved_regs): Ditto.
10028 * s390-tdep.c (s390_function_start): Ditto.
10029 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10030 (rs6000_frameless_function_invocation): Ditto.
10031 (rs6000_frame_saved_pc): Ditto.
10032 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10033 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10034 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10035 (i386_frame_init_saved_regs): Ditto.
10036 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10037 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10038 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10039 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10040 * blockframe.c (frameless_look_for_prologue): Ditto.
10041
a01dd7cc
AC
100422003-04-05 Andrew Cagney <cagney@redhat.com>
10043
10044 * frame.c (legacy_get_prev_frame): Link prev to next at the
10045 function start. Update comments.
10046
5e5592e6
AC
100472003-04-05 Andrew Cagney <cagney@redhat.com>
10048
10049 * frame.c (get_frame_id): Update comment.
10050 (legacy_get_prev_frame): Update comment.
10051 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10052 * gdbarch.h: Regenerate.
10053 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10054 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10055
6fba5002
AC
100562003-04-05 Andrew Cagney <cagney@redhat.com>
10057
10058 * stack.c (print_frame_info): Use get_frame_pc.
10059
7df05f2b
AC
100602003-04-04 Andrew Cagney <cagney@redhat.com>
10061
10062 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10063 the frame's type from the unwinder.
10064 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10065 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10066 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10067 (get_frame_base_address): Use get_frame_type.
10068 (get_frame_locals_address, get_frame_args_address): Ditto.
10069 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10070 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10071 (struct frame_info): Add comment explaining why the frame contains
10072 a "type" field.
10073 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10074 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10075 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10076 NORMAL_FRAME.
10077 * frame-unwind.h: Include "frame.h".
10078 (struct frame_unwind): Add "type" field.
10079 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10080
11889732
AC
100812003-04-04 Andrew Cagney <cagney@redhat.com>
10082
10083 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10084 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10085 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10086 get_frame_base.
10087 (d10v_unwind_dummy_id): Use frame_id_build.
10088 * frame.c (find_frame_sal): Use get_frame_pc.
10089 (create_new_frame): Use deprecated_update_frame_pc_hack and
10090 deprecated_update_frame_base_hack.
10091 (create_sentinel_frame): Add comment about ->pc going away.
10092 (get_prev_frame): Add comment about ->pc going away.
10093 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10094 frame_id_build, deprecated_update_frame_pc_hack and
10095 deprecated_update_frame_base_hack.
10096 (select_frame): Use get_frame_pc.
10097 (legacy_saved_regs_this_id): Use frame_id_build.
10098
50c46a0d
EZ
100992003-04-04 Elena Zannoni <ezannoni@redhat.com>
10100
fbe586ae
RH
10101 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10102 signed integer case.
10103 (classify_argument): Handle enumerations and references.
50c46a0d 10104
50bbdbd9
AC
101052003-04-04 Andrew Cagney <cagney@redhat.com>
10106
10107 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10108 ID to NULL.
10109
36018d2e
AF
101102003-04-01 Adam Fedor <fedor@gnu.org>
10111
10112 * gdb/objc-lang.c (selectors_info): Replace calls to
10113 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10114 SYMBOL_NATURAL_NAME.
10115 (classes_info, find_methods): Likewise.
10116
35cec841
KB
101172003-04-03 Kevin Buettner <kevinb@redhat.com>
10118
10119 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10120 ``mach'' to the value determined by bfd_default_set_arch_mach().
10121
43136899
BR
101222003-04-02 Bob Rossi <bob_rossi@cox.net>
10123
10124 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10125 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10126 (mi-cmd-file.o): Update dependencies.
10127
040b99fd
KB
101282003-04-01 Kevin Buettner <kevinb@redhat.com>
10129
10130 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10131 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10132
9a3d7dfd
AF
101332003-04-01 Adam Fedor <fedor@gnu.org>
10134
10135 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10136 * language.h (struct language_defn): Add la_demangle.
10137 (language_demangle): Declare.
10138 * language.c (language_demangle): New function.
10139 (unk_lang_demangle): Likewise.
10140 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10141 Add ukn_lang_demangle.
9a3d7dfd 10142 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10143 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10144 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10145 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10146 * jv-lang.c (java_demangle): New function
10147 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10148 * objc-lang.c (objc_demangle): Add options argument
10149 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10150 * maint.c (maintenance_demangle): Replace switch with
10151 call to language_demangle.
10152 * utils.c (fprintf_symbol_filtered): Likewise.
10153
5e074003
AC
101542003-04-01 Andrew Cagney <cagney@redhat.com>
10155
10156 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10157 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10158 PRINT_TYPELESS_INTEGER.
10159 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10160 PUSH_RETURN_ADDRESS.
10161
270cb5d6
AC
101622003-04-01 Andrew Cagney <cagney@redhat.com>
10163
10164 * Makefile.in (d10v-tdep.o): Update dependencies.
10165 * d10v-tdep.c: Include "frame-base.h".
10166 (d10v_frame_unwind): Make constant.
10167 (d10v_frame_base_address): New function.
10168 (d10v_frame_base): New variable.
10169 (d10v_gdbarch_init): Set frame_base default.
10170 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10171 comment for base.
10172 (d10v_frame_unwind_cache): Set and use "prev_sp".
10173 (d10v_frame_this_id): Use the previous frame's inner most stack
10174 address and this frame's func address for the frame ID. Use
10175 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10176
6bfb3e36
AC
101772003-04-01 Andrew Cagney <cagney@redhat.com>
10178
10179 * frame.h (get_frame_locals_address, get_frame_args_address):
10180 Refer to the base address, instead of the address of the first
10181 local or parameter.
8ffd9b1b 10182
da62e633
AC
101832003-04-01 Andrew Cagney <cagney@redhat.com>
10184
10185 Add frame debug info addresses:
10186 * frame-base.c: New file.
10187 * frame-base.h: New file.
10188 * frame.h (struct frame_base): Add opaque declaration.
10189 (get_frame_base): Update comment.
10190 (get_frame_base_address): Declare.
10191 (get_frame_locals_address): Declare.
10192 (get_frame_args_address): Declare.
10193 (struct frame_info): Add "base" and "base_cache". Update
10194 comments on the unwinder.
10195 * frame.c: Include "frame-base.h".
10196 (get_frame_locals_address): New function.
10197 (get_frame_base_address): New function.
10198 (get_frame_args_address): New function.
10199 * findvar.c (read_var_value): Use get_frame_locals_address and
10200 get_frame_args_address.
10201 * stack.c (frame_info): Use get_frame_locals_address and
10202 get_frame_args_address.
10203 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10204 moved to "frame-base.c".
10205 * printcmd.c (print_frame_nameless_args): Ditto.
10206 * symtab.h (address_class): Update comments.
10207 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10208 get_frame_base_address.
10209 * dwarf2expr.c (execute_stack_op): Ditto.
10210 * Makefile.in (frame_base_h): Define.
10211 (frame.o): Update dependencies.
10212 (frame-base.o): Add dependencies.
10213 (SFILES): Add frame-base.c.
10214 (COMMON_OBS): Add frame-base.o.
10215
3d30e9c2
AC
102162003-04-01 Andrew Cagney <cagney@redhat.com>
10217
10218 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10219 CALL_DUMMY_LENGTH): Ditto.
10220 * gdbarch.c: Re-generate.
10221 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10222 (CALL_DUMMY_LENGTH): Delete macro.
10223 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10224 * arm-tdep.c (arm_gdbarch_init): Ditto.
10225 * avr-tdep.c (avr_gdbarch_init): Ditto.
10226 * cris-tdep.c (cris_gdbarch_init): Ditto.
10227 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10228 * frv-tdep.c (frv_gdbarch_init): Ditto.
10229 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10230 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10231 * i386-tdep.c (i386_gdbarch_init): Ditto.
10232 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10234 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10235 * mips-tdep.c (mips_gdbarch_init): Ditto.
10236 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10237 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10238 * s390-tdep.c (s390_gdbarch_init): Ditto.
10239 * sh-tdep.c (sh_gdbarch_init): Ditto.
10240 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10241 * v850-tdep.c (v850_gdbarch_init): Ditto.
10242 * vax-tdep.c (vax_gdbarch_init): Ditto.
10243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10244
ce0c7262
CV
102452003-04-01 Corinna Vinschen <vinschen@redhat.com>
10246
10247 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10248
73dd234f
AC
102492003-04-01 Andrew Cagney <cagney@redhat.com>
10250
10251 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10252 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10253 * gdbarch.h, gdbarch.c: Re-generate.
10254 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10255 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10256 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10257 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10258 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10259 * infcmd.c (run_stack_dummy): Simplify assuming
10260 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10261 * infrun.c (handle_inferior_event): Ditto.
10262 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10263 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10264 * arm-tdep.c (arm_gdbarch_init): Ditto.
10265 * avr-tdep.c (avr_gdbarch_init): Ditto.
10266 * cris-tdep.c (cris_gdbarch_init): Ditto.
10267 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10268 * frv-tdep.c (frv_gdbarch_init): Ditto.
10269 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10270 * i386-tdep.c (i386_gdbarch_init): Ditto.
10271 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10273 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10274 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10275 * mips-tdep.c (mips_gdbarch_init): Ditto.
10276 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10277 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10278 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10279 * s390-tdep.c (s390_gdbarch_init): Ditto.
10280 * sh-tdep.c (sh_gdbarch_init): Ditto.
10281 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10282 * v850-tdep.c (v850_gdbarch_init): Ditto.
10283 * vax-tdep.c (vax_gdbarch_init): Ditto.
10284 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10285
97606a13
DJ
102862003-04-01 Daniel Jacobowitz <drow@mvista.com>
10287
10288 * symfile.c (symfile_relocate_debug_section): Update call to
10289 bfd_simple_get_relocated_section_contents.
10290
e8ab51f7
AC
102912003-03-31 Andrew Cagney <cagney@redhat.com>
10292
10293 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10294 * gdbarch.h, gdbarch.c: Regenerate.
10295 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10296 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10297 available.
10298 * frame.h (generic_fix_call_dummy): Delete declaration.
10299 * dummy-frame.h: Update comment.
10300 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10302 fix_call_dummy.
10303 * sh-tdep.c (sh_gdbarch_init): Ditto.
10304 * s390-tdep.c (s390_gdbarch_init): Ditto.
10305 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10306 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10308 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10309 * i386-tdep.c (i386_gdbarch_init): Ditto.
10310 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10311 * frv-tdep.c (frv_gdbarch_init): Ditto.
10312 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10313 * cris-tdep.c (cris_gdbarch_init): Ditto.
10314 * avr-tdep.c (avr_gdbarch_init): Ditto.
10315 * arm-tdep.c (arm_gdbarch_init): Ditto.
10316
018d1b48
JB
103172003-03-31 J. Brobecker <brobecker@gnat.com>
10318
10319 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10320 (INIT_FRAME_AP): Likewise.
10321 (EXTRA_FRAME_INFO): Likewise.
10322
e9a2674e
AC
103232003-03-31 Andrew Cagney <cagney@redhat.com>
10324
10325 * gdbarch.sh: Include "symfile.h".
10326 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10327 * gdbarch.h, gdbarch.c: Re-generate.
10328 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10330 call_dummy_address, the default is at entry_point_address.
10331 * v850-tdep.c (v850_gdbarch_init): Ditto.
10332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10333 * sh-tdep.c (sh_gdbarch_init): Ditto.
10334 * s390-tdep.c (s390_gdbarch_init): Ditto.
10335 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10336 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10337 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10338 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10339 * i386-tdep.c (i386_gdbarch_init): Ditto.
10340 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10341 * frv-tdep.c (frv_gdbarch_init): Ditto.
10342 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10343 * cris-tdep.c (cris_gdbarch_init): Ditto.
10344 * arm-tdep.c (arm_gdbarch_init): Ditto.
10345
e8a8712a
AC
103462003-03-31 Andrew Cagney <cagney@redhat.com>
10347
10348 * gdbarch.sh (CALL_DUMMY_P): Delete.
10349 * gdbarch.h, gdbarch.c: Re-generate.
10350 * inferior.h (CALL_DUMMY_P): Delete macro.
10351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10352 * vax-tdep.c (vax_gdbarch_init): Update.
10353 * v850-tdep.c (v850_gdbarch_init): Update.
10354 * sparc-tdep.c (sparc_gdbarch_init): Update.
10355 * sh-tdep.c (sh_gdbarch_init): Update.
10356 * s390-tdep.c (s390_gdbarch_init): Update.
10357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10358 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10359 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10360 * mips-tdep.c (mips_gdbarch_init): Update.
10361 * mcore-tdep.c (mcore_gdbarch_init): Update.
10362 * m68k-tdep.c (m68k_gdbarch_init): Update.
10363 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10364 * ia64-tdep.c (ia64_gdbarch_init): Update.
10365 * i386-tdep.c (i386_gdbarch_init): Update.
10366 * h8300-tdep.c (h8300_gdbarch_init): Update.
10367 * frv-tdep.c (frv_gdbarch_init): Update.
10368 * d10v-tdep.c (d10v_gdbarch_init): Update.
10369 * cris-tdep.c (cris_gdbarch_init): Update.
10370 * breakpoint.c (deprecated_frame_in_dummy): Update.
10371 * avr-tdep.c (avr_gdbarch_init): Update.
10372 * alpha-tdep.c (alpha_gdbarch_init): Update.
10373 * arm-tdep.c (arm_gdbarch_init): Update.
10374 * dummy-frame.c (dummy_frame_this_id): Update comments.
10375 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10376 * frame.c (legacy_get_prev_frame): Ditto.
10377 * valops.c (call_function_by_hand): Delete function.
10378 (hand_function_call): Rename to call_function_by_hand
10379
ed234cf8
AC
103802003-03-30 Andrew Cagney <cagney@redhat.com>
10381
10382 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10383 * value.h (struct value): Update comment.
ed234cf8 10384
06c77151
AC
103852003-03-30 Andrew Cagney <cagney@redhat.com>
10386
6c2b5168
AC
10387 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10388 D10V_FP_REGNUM.
10389 (d10v_gdbarch_init): Do not set fp_regnum.
10390
06c77151
AC
10391 * frame.c (get_frame_base): Force ID initialization.
10392 (get_prev_frame): Move computation of the frame ID from here ...
10393 (get_frame_id): ... to here.
10394 (legacy_get_prev_frame): Mark the frame ID as valid.
10395 * frame.h (struct frame_info): Add field "id_p".
10396
97a1a11c
MK
103972003-03-30 Mark Kettenis <kettenis@gnu.org>
10398
10399 * i386-tdep.c (i386_store_struct_return): Removed.
10400 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10401
6c0e89ed
AC
104022003-03-30 Andrew Cagney <cagney@redhat.com>
10403
10404 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10405 * gdbarch.h, gdbarch.c: Regenerate.
10406 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10408 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10409 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10410 * i386-tdep.c (i386_gdbarch_init): Ditto.
10411 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10412 * cris-tdep.c (cris_gdbarch_init): Ditto.
10413 * vax-tdep.c (vax_gdbarch_init): Ditto.
10414 * s390-tdep.c (s390_gdbarch_init): Ditto.
10415 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10416 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10417 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10418 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10419 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10420 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10421 * sparc-tdep.c (sparc_gdbarch_init): Update.
10422 * sh-tdep.c (sh_gdbarch_init): Update.
10423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10424 * mips-tdep.c (mips_gdbarch_init): Update.
10425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10426 * ia64-tdep.c (ia64_gdbarch_init): Update.
10427 * frv-tdep.c (frv_gdbarch_init): Update.
10428 * avr-tdep.c (avr_gdbarch_init): Update.
10429 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10430 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10431 instead of when push_dummy_call is not available.
8ffd9b1b 10432
f7dd6af2
AC
104332003-03-30 Andrew Cagney <cagney@redhat.com>
10434
10435 * infttrace.c: Include "gdbthread.h".
10436 (parent_attach_all): Fix function signature.
10437 (call_ptrace): Update call.
10438 * Makefile.in (infttrace.o): Update dependencies.
10439
28f617b3
AC
104402003-03-30 Andrew Cagney <cagney@redhat.com>
10441
10442 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10443 PUSH_RETURN_ADDRESS.
10444 * gdbarch.h, gdbarch.c: Regenerate.
10445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10446 * x86-64-tdep.c (x86_64_init_abi): Update.
10447 * v850-tdep.c (v850_gdbarch_init): Update.
10448 * sparc-tdep.c (sparc_gdbarch_init): Update.
10449 * sh-tdep.c (sh_gdbarch_init): Update.
10450 * s390-tdep.c (s390_gdbarch_init): Update.
10451 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10452 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10453 * mips-tdep.c (mips_gdbarch_init): Update.
10454 * mcore-tdep.c (mcore_gdbarch_init): Update.
10455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10456 * ia64-tdep.c (ia64_gdbarch_init): Update.
10457 * i386-tdep.c (i386_gdbarch_init): Update.
10458 * h8300-tdep.c (h8300_gdbarch_init): Update.
10459 * frv-tdep.c (frv_gdbarch_init): Update.
10460 * cris-tdep.c (cris_gdbarch_init): Update.
10461 * avr-tdep.c (avr_gdbarch_init): Update.
10462 * arm-tdep.c (arm_gdbarch_init): Update.
10463 * valops.c (hand_function_call): Update.
10464
4d628cd7
AC
104652003-03-29 Andrew Cagney <cagney@redhat.com>
10466
10467 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10468 sizeof_call_dummy_words.
10469 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10470 define.
10471 * gdbarch.h: Regenerate.
8ffd9b1b 10472
65e82032
AC
104732003-03-29 Andrew Cagney <cagney@redhat.com>
10474
10475 * infttrace.h: New file.
10476 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10477 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10478 (hpread_read_doc_function_type): Detect an initialized type1.
10479 (hpread_quick_traverse): Initialize mod_name_string.
10480 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10481 (som_solib_get_solib_by_pc): Declare.
10482 (so_lib_thread_start_addr): Declare.
10483 (no_shared_libraries): Declare.
10484 * somread.c (init_import_symbols): Make static. Add forward
10485 declaration.
10486 * config/pa/nm-hppah.h: Include "infttrace.h" for
10487 parent_attach_all.
10488 (hppa_insert_hw_watchpoint): Declare.
10489 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10490 * hppah-nat.c: Include "gdb_string.h".
10491 (parent_attach_all): Delete extern declaration, moved to
10492 "infttrace.h".
10493 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10494 int.
10495 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10496 * Makefile.in (infttrace_h): Define.
10497 (hpread.o): Update dependencies.
10498 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10499 * hppa-hpux-tdep.c: Include "gdb_string.h".
10500 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10501 * infrun.c (handle_inferior_event): Always initialize
10502 stepped_after_stopped_by_watchpoint. Add default and remove
10503 fallthrough in switch statement.
10504 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10505 parameter to int.
10506 (hppa_remove_hw_watchpoint): Ditto.
10507
2c3bbe77
AC
105082003-03-29 Andrew Cagney <cagney@redhat.com>
10509
10510 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10511 offset.
10512
2dd604e7
RE
105132003-03-29 Richard Earnshaw <rearnsha@arm.com>
10514
10515 * arm-tdep.c (arm_push_arguments): Delete.
10516 (struct stack_item): New type.
10517 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10518 (arm_store_struct_return): Delte.
10519 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10520 arm_push_arguments or arm_store_struct_return.
10521
e8933a55
AC
105222003-03-28 Andrew Cagney <cagney@redhat.com>
10523
10524 * Makefile.in (d10v-tdep.o): Update dependencies.
10525 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10526 * d10v-tdep.c: Include "remote.h".
10527 (target_resume_hook): Delete extern declaration.
10528 (target_wait_loop_hook): Ditto.
10529 (tdisassemble_command): Eliminate assignment in "if" conditional.
10530 (d10v_ts2_register_sim_regno): Eliminate call to
10531 legacy_register_sim_regno.
10532 (d10v_ts3_register_sim_regno): Ditto.
10533
6949171e
JJ
105342003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10535
10536 * thread.c: Reindented.
10537 * lin-lwp.c: Ditto.
10538 * linux-proc.c: Ditto.
10539
98c7071f
BR
105402003-03-28 Bob Rossi <bob_rossi@cox.net>
10541
fbe586ae 10542 * MAINTAINERS (write after approval): Add myself.
98c7071f 10543
5edc9ca6
TR
105442003-03-27 Theodore A. Roth <troth@openavr.org>
10545
10546 * objc-exp.y: Add missing semi-colons.
10547
378bfd1b
AC
105482003-03-27 Andrew Cagney <cagney@redhat.com>
10549
10550 * regcache.c (write_sp): Delete function and references.
10551 * inferior.h (write_sp): Delete declaration.
10552 * valops.c (hand_function_call): Replace write_sp with
10553 TARGET_WRITE_SP.
10554 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10555 (sparc_pop_frame): Ditto.
8ffd9b1b 10556
56056df7
AC
105572003-03-27 Andrew Cagney <cagney@redhat.com>
10558
10559 * NEWS: Mention removal of support for hppa*-*-bsd* and
10560 hppa*-*-osf* natives, and hppa*-*-pro* target.
10561 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10562 * config/pa/xm-pa.h: Obsolete file.
10563 * config/pa/xm-hppab.h: Obsolete file.
10564 * config/pa/nm-hppab.h: Obsolete file.
10565 * config/pa/tm-hppab.h: Obsolete file.
10566 * config/pa/tm-hppao.h: Obsolete file.
10567 * config/pa/nm-hppao.h: Obsolete file.
10568 * config/pa/tm-pro.h: Obsolete file.
10569 * config/pa/hppaosf.mt: Obsolete file.
10570 * config/pa/hppaosf.mh: Obsolete file.
10571 * config/pa/hppapro.mt: Obsolete file.
10572 * config/pa/hppabsd.mt: Obsolete file.
10573 * config/pa/hppabsd.mh: Obsolete file.
10574 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10575 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10576 hppa*-*-osf*.
10577
5873a88d
AC
105782003-03-27 Andrew Cagney <cagney@redhat.com>
10579
10580 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10581 push_arguments. Don't set push_return_address or write_sp.
10582 (d10v_push_dummy_call): Replace d10v_push_arguments.
10583 (d10v_push_return_address, d10v_write_sp): Delete function,
10584 handled by push_dummy_call.
10585
b81774d8
AC
105862003-03-26 Andrew Cagney <cagney@redhat.com>
10587
10588 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10589 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10590 regcache and dummy_addr parameters.
10591 * gdbarch.h, gdbarch.c: Re-generate.
10592 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10593 available; assume it will handle stack alignment and return
10594 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10595 legacy_push_arguments.
10596 (legacy_push_arguments): Rename default_push_arguments.
10597 * value.h (legacy_push_arguments): Rename default_push_arguments.
10598 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10599 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10600 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10601 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10602 * config/i386/tm-symmetry.h: Update.
10603 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10604 * x86-64-tdep.c (x86_64_init_abi): Update.
10605 * v850-tdep.c (v850_gdbarch_init): Update.
10606 * sparc-tdep.c (sparc_gdbarch_init): Update.
10607 * sh-tdep.c (sh_gdbarch_init): Update.
10608 * s390-tdep.c (s390_gdbarch_init): Update.
10609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10610 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10611 * mips-tdep.c (mips_gdbarch_init): Update.
10612 * mcore-tdep.c (mcore_gdbarch_init): Update.
10613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10614 * ia64-tdep.c (ia64_gdbarch_init): Update.
10615 * i386-tdep.c (i386_gdbarch_init): Update.
10616 * hppa-tdep.c (hppa_gdbarch_init): Update.
10617 * h8300-tdep.c (h8300_gdbarch_init): Update.
10618 * frv-tdep.c (frv_gdbarch_init): Update.
10619 * d10v-tdep.c (d10v_gdbarch_init): Update.
10620 * cris-tdep.c (cris_gdbarch_init): Update.
10621 * avr-tdep.c (avr_gdbarch_init): Update.
10622 * arm-tdep.c (arm_gdbarch_init): Update.
10623 * arm-linux-tdep.c (arm_linux_init_abi): Update.
10624 * alpha-tdep.c (alpha_gdbarch_init): Update.
10625
f541410f
DJ
106262003-03-26 Daniel Jacobowitz <drow@mvista.com>
10627
10628 * signals/signals.c (do_target_signal_to_host): Correct realtime
10629 signal range test.
10630
69f567ae
DJ
106312003-03-26 Daniel Jacobowitz <drow@mvista.com>
10632
10633 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
10634 (struct sal_chain, map_catch_names): Remove.
10635 (catch_exception_command_1): Don't call
10636 handle_gnu_4_16_catch_command.
10637
d5d14a5a
DJ
106382003-03-26 Daniel Jacobowitz <drow@mvista.com>
10639
10640 From Mark Dettinger <dettinge@de.ibm.com>:
10641 * dwarf2cfi.c (read_2u): Increment pointer by two.
10642
bdd73e22
DJ
106432003-03-26 Daniel Jacobowitz <drow@mvista.com>
10644
10645 * signals/signals.c: Fix typos in last change.
10646
960cb555
DJ
106472003-03-26 Daniel Jacobowitz <drow@mvista.com>
10648
10649 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
10650 not already defined. Use __SIGRTMIN if available.
10651 (target_signal_from_host): Remove SIGRTMIN block.
10652 (do_target_signal_to_host): Remove SIGRTMIN block; check that
10653 the signal is within the realtime range.
10654
f636b87d
AF
106552003-03-25 Adam Fedor <fedor@gnu.org>
10656
10657 * Makefile.in (infrun.o): Add $(language_h)
10658 * infrun.c (handle_inferior_event): Use skip_language_trampoline
10659 for language specific trampolines.
10660 * language.h (struct language_defn): Add skip_trampoline.
10661 (skip_language_trampoline): Declare.
10662 * language.c (unk_lang_trampoline, skip_language_trampoline):
10663 New functions.
10664 (unknown_language_defn, auto_language_defn, local_language_defn):
10665 Add ukn_lang_trampoline.
10666 * ada-lang.c (ada_language_defn): Add NULL for language
10667 specific skip_trampoline.
10668 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
10669 scm-lang.c: Likewise.
10670 * objc-lang.c (objc_skip_trampoline): New function.
10671 (objc_language_defn): Add objc_skip_trampoline.
10672
28f617b3 106732003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
10674
10675 * frame.c (get_prev_frame): Delay validating a frame's ID -
10676 non-NULL, didn't go backwards - until an attempt to unwind it to
10677 the previous frame.
10678
f933a9c5
AC
106792003-03-25 Andrew Cagney <cagney@redhat.com>
10680
10681 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
10682 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
10683 * gdbarch.h, gdbarch.c: Re-generate.
10684 * config/sparc/tm-sparc.h
10685 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
10686 * sparc-tdep.c (sparc_gdbarch_init): Set
10687 deprecated_extra_stack_alignment_needed.
10688 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10689 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
10690 extra_stack_alignment_needed.
10691 * v850-tdep.c (v850_gdbarch_init): Ditto.
10692 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10693 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10694 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10695 * cris-tdep.c (cris_gdbarch_init): Ditto.
10696 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 10698
4183d812
AC
106992003-03-25 Andrew Cagney <cagney@redhat.com>
10700
10701 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
10702 STORE_STRUCT_RETURN.
10703 * gdbarch.h, gdbarch.c: Regenerate.
10704 * d10v-tdep.c (d10v_store_struct_return): Delete function.
10705 (d10v_push_arguments): Set the struct return register.
10706 (d10v_gdbarch_init): Update.
10707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10708 * x86-64-tdep.c (x86_64_init_abi): Update.
10709 * vax-tdep.c (vax_gdbarch_init): Update.
10710 * v850-tdep.c (v850_gdbarch_init): Update.
10711 * sparc-tdep.c (sparc_gdbarch_init): Update.
10712 * sh-tdep.c (sh_gdbarch_init): Update.
10713 * s390-tdep.c (s390_gdbarch_init): Update.
10714 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10715 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10716 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10717 * mips-tdep.c (mips_gdbarch_init): Update.
10718 * mcore-tdep.c (mcore_gdbarch_init): Update.
10719 * m68k-tdep.c (m68k_gdbarch_init): Update.
10720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10721 * ia64-tdep.c (ia64_gdbarch_init): Update.
10722 * i386-tdep.c (i386_gdbarch_init): Update.
10723 * hppa-tdep.c (hppa_gdbarch_init): Update.
10724 * h8300-tdep.c (h8300_gdbarch_init): Update.
10725 * frv-tdep.c (frv_gdbarch_init): Update.
10726 * cris-tdep.c (cris_gdbarch_init): Update.
10727 * avr-tdep.c (avr_gdbarch_init): Update.
10728 * arm-tdep.c (arm_gdbarch_init): Update.
10729 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10730
1bf6d5cc
AC
107312003-03-25 Andrew Cagney <cagney@redhat.com>
10732
10733 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
10734 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
10735 CALL_DUMMY_STACK_ADJUST with a predicate variable.
10736 * gdbarch.h, gdbarch.c: Regenerate.
10737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10738 call_dummy_stack_adjust_p.
10739 * vax-tdep.c (vax_gdbarch_init): Ditto.
10740 * v850-tdep.c (v850_gdbarch_init): Ditto.
10741 * sh-tdep.c (sh_gdbarch_init): Ditto.
10742 * s390-tdep.c (s390_gdbarch_init): Ditto.
10743 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10744 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10745 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10746 * mips-tdep.c (mips_gdbarch_init): Ditto.
10747 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10748 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10750 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10751 * i386-tdep.c (i386_gdbarch_init): Ditto.
10752 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10753 * frv-tdep.c (frv_gdbarch_init): Ditto.
10754 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10755 * cris-tdep.c (cris_gdbarch_init): Ditto.
10756 * avr-tdep.c (avr_gdbarch_init): Ditto.
10757 * arm-tdep.c (arm_gdbarch_init): Ditto.
10758 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10759 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10760 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
10761 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
10762 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
10763 call_dummy_stack_adjust_p.
10764 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
10765 (CALL_DUMMY_STACK_ADJUST): Delete macro.
10766 * sparc-tdep.c (sparc32_push_arguments): Update.
10767 * valops.c (hand_function_call): Update.
10768
71c08af0
CV
107692003-03-25 Corinna Vinschen <vinschen@redhat.com>
10770
10771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
10772 set_gdbarch_char_signed.
10773
30757f90
RE
107742003-03-25 Richard Earnshaw <rearnsha@arm.com>
10775
10776 PR cli/548
10777 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
10778
03d48a7d
RE
107792003-03-25 Richard Earnshaw <rearnsha@arm.com>
10780
10781 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
10782 (_initialize_arm_tdep): Don't set tm_print_insn.
10783
2cf6873c
AF
107842003-03-24 Adam Fedor <fedor@gnu.org>
10785
10786 * Makefile.in (YYOBJ): Add objc-exp.tab.o
10787 * objc-lang.h: Add multiple inclusion protection.
10788 (start_msglist, add_msglist, end_msglist): Additional declarations.
10789
17c0759e
RE
107902003-03-24 Richard Earnshaw <rearnsha@arm.com>
10791
10792 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
10793 value was renamed to ARM_FLOAT_SOFT_FPA.
10794
618ce49f
AC
107952003-03-23 Andrew Cagney <cagney@redhat.com>
10796
10797 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
10798 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
10799 * gdbarch.h, gdbarch.c: Regenerate.
10800 * valops.c (hand_function_call): Update.
10801 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10802 * frame.c (legacy_saved_regs_this_id): Update.
10803 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
10804 * dummy-frame.h: Update.
10805 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
10806 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
10807 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
10808 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
10809 * config/m68k/tm-sun3.h: Update.
10810 * blockframe.c (inside_main_func, frame_chain_valid): Update.
10811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10812 * x86-64-tdep.c (x86_64_init_abi): Update.
10813 * vax-tdep.c (vax_gdbarch_init): Update.
10814 * v850-tdep.c (v850_gdbarch_init): Update.
10815 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
10816 * sh-tdep.c (sh_gdbarch_init): Update.
10817 * s390-tdep.c (s390_gdbarch_init): Update.
10818 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
10819 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
10820 (frame_get_saved_regs): Update.
10821 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10822 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10823 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10824 * mips-tdep.c (mips_gdbarch_init): Update.
10825 * mcore-tdep.c (mcore_gdbarch_init): Update.
10826 * m68k-tdep.c (m68k_gdbarch_init): Update.
10827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10828 * ia64-tdep.c (ia64_gdbarch_init): Update.
10829 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10830 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10831 (i386_interix_back_one_frame): Update.
10832 * hppa-tdep.c (hppa_gdbarch_init): Update.
10833 (hppa_init_extra_frame_info): Update.
10834 * h8300-tdep.c (h8300_gdbarch_init): Update.
10835 * frv-tdep.c (frv_gdbarch_init): Update.
10836 * cris-tdep.c (cris_gdbarch_init): Update.
10837 * avr-tdep.c (avr_gdbarch_init): Update.
10838 * arm-tdep.c (arm_gdbarch_init): Update.
10839 * alpha-tdep.c (alpha_gdbarch_init): Update.
10840
fd50bc42
RE
108412003-03-22 Richard Earnshaw <rearnsha@arm.com>
10842
10843 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10844 (arm_get_fp_model): Declare.
10845 * arm-tdep.c (fp_model_strings): New string array.
10846 (arm_fp_model, current_fp_model): New variables.
10847 (arm_get_fp_model): New function.
10848 (arm_set_fp): New function.
10849 (set_fp_model_sfunc): New function.
10850 (show_fp_model): New function.
10851 (_initialize_arm_tdep): Add new command to set/show the FPU.
10852 (arm_extract_return_value): Use arm_get_fp_model.
10853 (arm_store_return_value): Likewise.
10854 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10855 to initialize the floating-point data types.
10856 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10857 model is FPA.
10858
26304000
RE
108592003-03-22 Richard Earnshaw <rearnsha@arm.com>
10860
10861 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10862 the current setting of each value.
10863 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 10864 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
10865 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10866 commands and add new version as subcommands of "set/show arm".
10867
afd7eef0
RE
108682003-03-22 Richard Earnshaw <rearnsha@arm.com>
10869
10870 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10871 (set_arm_command, show_arm_command): New functions.
10872 (_initialize_arm_tdep): Add them.
10873 (num_disassembly_options): Renamed from num_flavor_options.
10874 (valid_disassembly_styles): Renamed from valid_flavors.
10875 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 10876 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
10877 set_disassembly_flavor_sfunc.
10878 (set_disassembly_style): Renamed from set_disassembly_flavor.
10879 (arm_othernames): Updated.
10880 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10881 command. Add "set/show arm disassembly" commands. Deprecate
10882 "othernames" command.
10883
299a7944
RE
108842003-03-22 Richard Earnshaw <rearnsha@arm.com>
10885
10886 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10887 (arm-tdep.o): Depend on elf_arm_h.
10888
c1dac9e6
RE
108892003-03-22 Richard Earnshaw <rearnsha@arm.com>
10890
10891 * Makefile.in (coff_internal_h): Define.
10892 (arm-tdep.o): Update dependencies.
10893
2702d96c
RE
108942003-03-22 Richard Earnshaw <rearnsha@arm.com>
10895
10896 * arm-tdep.c (prologue_cache): Delete.
10897 (check_prologue_cache, save_prologue_cache): Delete.
10898 (arm_scan_prologue): Don't check or update the prologue_cache.
10899 (arm_gdb_arch_init): Don't initialize it.
10900 (_initialize_arm_tdep): Likewise.
10901
27d5d74b
SC
109022003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10903
10904 * MAINTAINERS (tui): Maintainer of tui code.
10905
1762d96d
CV
109062003-03-21 Corinna Vinschen <vinschen@redhat.com>
10907
10908 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10909 (i386-cygwin-tdep.o): Add dependencies.
10910 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10911 * i386-cygwin-tdep.c: New file.
10912 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10913 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10914
4c2e2391
AC
109152003-03-20 Andrew Cagney <cagney@redhat.com>
10916
f20d38b7
AC
10917 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10918 (handle_inferior_event): Remove code calling
10919 DYNAMIC_TRAMPOLINE_NEXTPC.
10920
0022b738
AC
10921 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10922 already has a full path.
10923
864dbc90
AC
10924 * main.c (gdb_main): Return 1.
10925 (captured_main): Call error to report an invalid interpreter.
10926
4c2e2391
AC
10927 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10928 * alpha-osf1-tdep.c: Include "gdb_string.h".
10929
5ef7553b
JB
109302003-03-19 J. Brobecker <brobecker@gnat.com>
10931
10932 Continuing work to convert the hppa targets to multiarch partial.
10933
10934 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10935 method, now that hppa_push_dummy_frame has a conformant prototype.
10936 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10937 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10938 for the switch to multiarch partial.
10939
7bde8967
KB
109402003-03-19 Kevin Buettner <kevinb@redhat.com>
10941
10942 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10943 when iss is issNull.
10944
b006a9e9
KB
109452003-03-18 Kevin Buettner <kevinb@redhat.com>
10946
10947 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10948 NUM_REGS bounds check.
10949
5e2e9765
KB
109502003-03-18 Kevin Buettner <kevinb@redhat.com>
10951
10952 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10953 * mips-tdep.c (gdb_assert.h): Include.
10954 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10955 (mips_register_name): Handle integer registers explicitly. Add
10956 bounds checking.
10957 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10958 (mips_lsi33k_reg_names): Don't list integer registers; they're
10959 handled by mips_register_name() now.
10960 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10961 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10962 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10963 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10964 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10965
a2867626
AC
109662003-03-18 Andrew Cagney <cagney@redhat.com>
10967
10968 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10969 a void pointer.
10970 * gdbtypes.h (print_scalar_formatted): Update declaration.
10971 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10972
06600e06
JB
109732003-03-18 J. Brobecker <brobecker@gnat.com>
10974
10975 * infrun.c (observer.h): Add #include.
10976 (normal_stop): Add call to observer_notify_normal_stop.
10977 * Makefile.in (infrun.o): Add dependency on observer.h.
10978
7daf4f5b
JB
109792003-03-18 J. Brobecker <brobecker@gnat.com>
10980
10981 Continuing work to convert the hppa targets to multiarch partial.
10982 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10983 parameter. Reformat comment.
10984 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10985 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10986 to match new profile.
10987
3371ccc0
JB
109882003-03-18 J. Brobecker <brobecker@gnat.com>
10989
10990 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10991 appear to be working in any case.
10992
4fbe891e
JB
109932003-03-18 J. Brobecker <brobecker@gnat.com>
10994
10995 * observer.c (observer_test_first_observer): New static variable.
10996 (observer_test_second_observer): Likewise.
10997 (observer_test_third_observer): Likewise.
10998 (observer_test_first_notification_function): New static function.
10999 (observer_test_second_notification_function): Likewise.
11000 (observer_test_third_notification_function): Likewise.
11001
a7ff40e7
JB
110022003-03-17 J. Brobecker <brobecker@gnat.com>
11003
11004 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11005 * somsolib.c (gdb_assert.h): Likewise.
11006 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11007 (somsolib.o): Likewise.
11008
26ca4152
AC
110092003-03-17 Andrew Cagney <cagney@redhat.com>
11010
11011 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11012 BFD. Simplify setting of di.endian.
11013
0a613259
AC
110142003-03-17 Andrew Cagney <cagney@redhat.com>
11015
11016 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11017 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11018
11019 From Elena Zannoni <ezannoni@redhat.com>
11020 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11021 vector and floating-point parameters.
11022 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11023 convention.
11024 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11025
1132738f
FN
110262003-03-17 Fernando Nasser <fnasser@redhat.com>
11027
11028 * MAINTAINERS: Remove my name from several maintainership roles.
11029
6dc42492
AC
110302003-03-17 Andrew Cagney <cagney@redhat.com>
11031
11032 Fix frame off-by-one bug.
11033 * frame-unwind.h (frame_this_id_ftype): Replace
11034 frame_unwind_id_ftype.
11035 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11036 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11037 with "prev_register".
11038 * frame-unwind.c (frame_unwind_find_by_pc): Return
11039 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11040 comment.
11041 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11042 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11043 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11044 (dummy_frame_unwind): Update.
11045 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11046 sentinel_frame_register_unwind.
11047 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11048 (sentinel_frame_unwinder): Update.
11049 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11050 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11051 * frame.c (create_sentinel_frame): Update. Initialize
11052 "prologue_cache" instead of "unwind_cache".
11053 (frame_register_unwind): Call this frame's prev_register with the
11054 next frame and this frame's prologue cache.
11055 (get_prev_frame): Simplify. Always call prev frame's this_id with
11056 this frame and prev frame's prologue cache. Document that this
11057 call is shifted one to the left when compared to the
11058 frame_register_unwind call.
11059 (legacy_saved_regs_prev_register): Replace
11060 frame_saved_regs_register_unwind.
11061 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11062 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11063 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11064 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11065 (d10v_frame_unwind): Update.
11066 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11067 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11068 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11069 "saved_regs" with "this_saved_regs".
11070
efd710d6
AC
110712003-03-16 Andrew Cagney <cagney@redhat.com>
11072
11073 * frame.c (frame_pop): Don't call target_store_registers. Fix
11074 problem reported by Mark Kettenis.
11075
4e259f09
MK
110762003-03-16 Mark Kettenis <kettenis@gnu.org>
11077
11078 * i386-tdep.c (i386_register_type): Renamed from
11079 i386_register_virtual_type. Adjust function signature.
11080 (i386_gdbarch_init): Set register_type instead of
11081 deprecated_max_register_raw_size,
11082 deprecated_max_register_virtual_size and register_virtual_type.
11083
055bb976
AC
110842003-03-14 Andrew Cagney <cagney@redhat.com>
11085
11086 * frame.c (get_prev_frame): When a legacy frame, always call
11087 legacy_get_prev_frame. Simplify unwind code using assumption that
11088 the unwinder is new.
11089 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11090 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11091 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11092
ac2adee5
AC
110932003-03-14 Andrew Cagney <cagney@redhat.com>
11094
11095 * frame.c (get_saved_register): Delete function.
11096 * frame.h (get_saved_register): Delete declaration.
11097 * xstormy16-tdep.c: Update comment.
11098 * regcache.h: Update comments.
11099 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11100 get_saved_register and extract_address, use
11101 frame_read_unsigned_register.
11102 (sparc_frame_saved_pc): Ditto.
11103 (sparc_get_saved_register): Instead of get_saved_register, use
11104 frame_register.
11105 (sparc_pop_frame): Ditto.
11106 * findvar.c: Update comments.
11107 (value_of_register): Call frame_register instead of
11108 get_saved_register.
11109 (value_from_register): Ditto.
11110 * config/sparc/tm-sparc.h: Update comment.
11111 * breakpoint.c: Update comment.
11112
129c1cd6
AC
111132003-03-14 Andrew Cagney <cagney@redhat.com>
11114
11115 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11116 GET_SAVED_REGISTER.
11117 * gdbarch.h, gdbarch.c: Re-generate.
11118 * frame.h: Update comments.
11119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11120 * x86-64-tdep.c (x86_64_init_abi): Update.
11121 * sparc-tdep.c (sparc_gdbarch_init): Update.
11122 * sh-tdep.c (sh_gdbarch_init): Update.
11123 * mips-tdep.c (mips_gdbarch_init): Update.
11124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11125 * cris-tdep.c (cris_gdbarch_init): Update.
11126 * ia64-tdep.c (ia64_gdbarch_init): Update.
11127 * frame.c (frame_register): Update.
11128 (get_saved_register): Update.
11129 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11130
749b82f6
AC
111312003-03-13 Andrew Cagney <cagney@redhat.com>
11132
11133 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11134 * gdbarch.h, gdbarch.c: Regenerate.
11135 * valops.c (hand_function_call): Update comment.
11136 * stack.c (return_command): Update comment.
11137 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11138 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11140 * x86-64-tdep.c (x86_64_init_abi): Update.
11141 * vax-tdep.c (vax_gdbarch_init): Update.
11142 * v850-tdep.c (v850_gdbarch_init): Update.
11143 * sparc-tdep.c (sparc_gdbarch_init): Update.
11144 * sh-tdep.c (sh_gdbarch_init): Update.
11145 * s390-tdep.c (s390_gdbarch_init): Update.
11146 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11147 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11148 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11149 * mips-tdep.c (mips_gdbarch_init): Update.
11150 * mcore-tdep.c (mcore_gdbarch_init): Update.
11151 * m68k-tdep.c (m68k_gdbarch_init): Update.
11152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11153 * ia64-tdep.c (ia64_gdbarch_init): Update.
11154 * i386-tdep.c (i386_gdbarch_init): Update.
11155 * hppa-tdep.c (hppa_gdbarch_init): Update.
11156 * h8300-tdep.c (h8300_gdbarch_init): Update.
11157 * frv-tdep.c (frv_gdbarch_init): Update.
11158 * cris-tdep.c (cris_gdbarch_init): Update.
11159 * avr-tdep.c (avr_gdbarch_init): Update.
11160 * arm-tdep.c (arm_gdbarch_init): Update.
11161 * alpha-tdep.c (alpha_gdbarch_init): Update.
11162
1594fa56
AC
111632003-03-13 Andrew Cagney <cagney@redhat.com>
11164
11165 * frame.c (legacy_frame_p): New function.
11166 (get_prev_frame): Use legacy_frame_p.
11167 * frame.h (legacy_frame_p): Declare.
11168
7717fda3
V
111692003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11170
fbe586ae 11171 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11172 listing corrected.
11173
0c67cbe9
V
111742003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11175
fbe586ae 11176 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11177
03febf99
AC
111782003-03-12 Andrew Cagney <cagney@redhat.com>
11179
11180 * frame.c (get_prev_frame): Rename the frame parameter to
11181 "this_frame".
11182 (get_next_frame, legacy_get_prev_frame): Ditto.
11183
0a1e1ca1
AC
111842003-03-12 Andrew Cagney <cagney@redhat.com>
11185
11186 * frame.c (get_current_frame): Check target_has_registers before
11187 checking target_has_stack.
11188 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11189 instead of deprecated_selected_frame.
11190 * findvar.c (value_of_register): Pass "frame", not
11191 deprecated_selected_frame, to value_of_builtin_reg.
11192
a66a9c23
AC
111932003-03-12 Andrew Cagney <cagney@redhat.com>
11194
11195 * regcache.c (regcache_cooked_write_signed): New function.
11196 (regcache_cooked_write_unsigned): New function.
11197 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11198 (regcache_cooked_read_signed): Fix regnum in range assertion.
11199 * regcache.h (regcache_cooked_write_signed): Declare.
11200 (regcache_cooked_write_unsigned): Declare.
11201
8bedc050
AC
112022003-03-12 Andrew Cagney <cagney@redhat.com>
11203
11204 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11205 * gdbarch.h, gdbarch.c: Re-generate.
11206 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11207 * x86-64-tdep.h: Update.
11208 * x86-64-tdep.c (x86_64_init_abi): Update.
11209 * v850-tdep.c (v850_gdbarch_init): Update.
11210 * sparc-tdep.c (sparc_gdbarch_init): Update.
11211 * sh-tdep.c (sh_gdbarch_init): Update.
11212 * s390-tdep.c (s390_gdbarch_init): Update.
11213 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11214 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11215 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11216 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11217 * mips-tdep.c (mips_gdbarch_init): Update.
11218 * mcore-tdep.c (mcore_gdbarch_init): Update.
11219 * m68k-tdep.c (m68k_gdbarch_init): Update.
11220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11221 * ia64-tdep.c (ia64_gdbarch_init): Update.
11222 * i386-tdep.c (i386_gdbarch_init): Update.
11223 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11224 * hppa-tdep.c (hppa_gdbarch_init): Update.
11225 * h8300-tdep.c (h8300_gdbarch_init): Update.
11226 * frv-tdep.c (frv_gdbarch_init): Update.
11227 * cris-tdep.c (cris_gdbarch_init): Update.
11228 * avr-tdep.c (avr_gdbarch_init): Update.
11229 * arm-tdep.c (arm_gdbarch_init): Update.
11230 * alpha-tdep.c (alpha_gdbarch_init): Update.
11231 * sh-tdep.c (sh_init_extra_frame_info): Update.
11232 (sh64_init_extra_frame_info): Update.
11233 * ns32knbsd-nat.c (frame_num_args): Update.
11234 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11235 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11236 (xstormy16_frame_chain_valid): Update.
11237 * vax-tdep.c (vax_saved_pc_after_call): Update.
11238 * v850-tdep.c (v850_frame_chain): Update.
11239 (v850_pop_frame): Update.
11240 (v850_init_extra_frame_info): Update.
11241 * sparc-tdep.c (setup_arbitrary_frame): Update.
11242 * ns32k-tdep.c (umax_frame_num_args): Update.
11243 * s390-tdep.c (s390_pop_frame_regular): Update.
11244 * mn10300-tdep.c (mn10300_frame_chain): Update.
11245 (mn10300_pop_frame_regular): Update.
11246 (mn10300_init_extra_frame_info): Update.
11247 * mips-tdep.c (mips_init_frame_pc_first): Update.
11248 (mips_frame_chain): Update.
11249 (mips_pop_frame): Update.
11250 * mcore-tdep.c (mcore_frame_chain): Update.
11251 (mcore_pop_frame): Update.
11252 (mcore_init_extra_frame_info): Update.
11253 * arch-utils.c (init_frame_pc_default): Update.
11254 * m68k-tdep.c (isi_frame_num_args): Update.
11255 (delta68_frame_num_args): Update.
11256 (news_frame_num_args): Update.
11257 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11258 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11259 (alpha_frame_chain): Update.
11260 (alpha_pop_frame): Update.
11261 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11262 (hppa_init_extra_frame_info): Update.
11263 (hppa_frame_chain): Update.
11264 (hppa_frame_chain_valid): Update.
11265 * cris-tdep.c (cris_init_extra_frame_info): Update.
11266 * avr-tdep.c (avr_init_extra_frame_info): Update.
11267 * arm-tdep.c (arm_frame_chain_valid): Update.
11268 (arm_init_extra_frame_info): Update.
11269 (arm_pop_frame): Update.
11270 * frame.c (frame_pc_unwind): Update.
11271 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11272 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11273 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11274 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11275 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11276 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11277
7a25a7c1
AC
112782003-03-12 Andrew Cagney <cagney@redhat.com>
11279
11280 Eliminate the need for POP_FRAME.
11281 * frame.c (do_frame_unwind_register): New function.
11282 (frame_pop): When no POP_FRAME, pop the frame using register
11283 unwind and a scratch regcache.
11284 (frame_saved_regs_pop): Delete function.
11285 (trad_frame_unwinder): Update.
11286 * d10v-tdep.c (d10v_frame_pop): Delete function.
11287 (d10v_frame_unwind): Update.
11288 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11289 (sentinel_frame_unwinder): Update.
11290 * dummy-frame.c (dummy_frame_pop): Delete function.
11291 (dummy_frame_unwind): Update.
11292 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11293 (struct frame_unwind): Update.
11294
2f38ef89
KB
112952003-03-11 Kevin Buettner <kevinb@redhat.com>
11296
11297 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11298 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11299 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11300 Do range checks on register number obtained from debugging info.
11301 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11302 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11303 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11304 mapping function.
11305 (do_fp_register_row): Fix typo which caused double type to be
11306 used when attempting to unpack a float.
11307
552f4abf
JB
113082003-03-11 J. Brobecker <brobecker@gnat.com>
11309
11310 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11311
e0d2ae16
AC
113122003-03-11 Andrew Cagney <cagney@redhat.com>
11313
11314 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11315 frame. Problem found by Corinna Vinschen.
11316
ddbfdd06
PM
113172003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11318
11319 * doublest.c (floatformat_from_length): Accept also
11320 the real size of 'long double' type.
11321
088b2ddc 113222003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11323
088b2ddc 11324 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11325 * breakpoint.c (bpstat_copy): Copy the command lines as well
11326 as the old value, to match what is freed in bpstat_clear.
11327
f56f77c1
DC
113282003-03-10 David Carlton <carlton@math.stanford.edu>
11329
11330 * minsyms.c (add_minsym_to_hash_table): Replace
11331 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11332 (compare_minimal_symbols, compact_minimal_symbols)
11333 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11334 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11335 of DEPRECATED_SYMBOL_MATCHES_NAME.
11336 (lookup_minimal_symbol_solib_trampoline): Ditto.
11337
5602984a
AC
113382003-03-10 Andrew Cagney <cagney@redhat.com>
11339
11340 * regcache.h (regcache_cooked_read_ftype): Define.
11341 (regcache_save, regcache_restore): Add a cooked_read parameter.
11342 * regcache.c (regcache_save, regcache_restore): Update.
11343 (do_cooked_read): New function.
11344 (regcache_cpy): Pass do_cooked_read to regcache_save and
11345 regcache_restore.
11346
8bedc050
AC
113472003-03-10 Andrew Cagney <cagney@redhat.com>
11348
11349 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11350 * gdbarch.h, gdbarch.c: Re-generate.
11351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11352 * x86-64-tdep.h: Update.
11353 * x86-64-tdep.c (x86_64_init_abi): Update.
11354 * v850-tdep.c (v850_gdbarch_init): Update.
11355 * sparc-tdep.c (sparc_gdbarch_init): Update.
11356 * sh-tdep.c (sh_gdbarch_init): Update.
11357 * s390-tdep.c (s390_gdbarch_init): Update.
11358 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11359 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11360 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11361 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11362 * mips-tdep.c (mips_gdbarch_init): Update.
11363 * mcore-tdep.c (mcore_gdbarch_init): Update.
11364 * m68k-tdep.c (m68k_gdbarch_init): Update.
11365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11366 * ia64-tdep.c (ia64_gdbarch_init): Update.
11367 * i386-tdep.c (i386_gdbarch_init): Update.
11368 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11369 * hppa-tdep.c (hppa_gdbarch_init): Update.
11370 * h8300-tdep.c (h8300_gdbarch_init): Update.
11371 * frv-tdep.c (frv_gdbarch_init): Update.
11372 * cris-tdep.c (cris_gdbarch_init): Update.
11373 * avr-tdep.c (avr_gdbarch_init): Update.
11374 * arm-tdep.c (arm_gdbarch_init): Update.
11375 * alpha-tdep.c (alpha_gdbarch_init): Update.
11376 * sh-tdep.c (sh_init_extra_frame_info): Update.
11377 (sh64_init_extra_frame_info): Update.
11378 * ns32knbsd-nat.c (frame_num_args): Update.
11379 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11380 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11381 (xstormy16_frame_chain_valid): Update.
11382 * vax-tdep.c (vax_saved_pc_after_call): Update.
11383 * v850-tdep.c (v850_frame_chain): Update.
11384 (v850_pop_frame): Update.
11385 (v850_init_extra_frame_info): Update.
11386 * sparc-tdep.c (setup_arbitrary_frame): Update.
11387 * ns32k-tdep.c (umax_frame_num_args): Update.
11388 * s390-tdep.c (s390_pop_frame_regular): Update.
11389 * mn10300-tdep.c (mn10300_frame_chain): Update.
11390 (mn10300_pop_frame_regular): Update.
11391 (mn10300_init_extra_frame_info): Update.
11392 * mips-tdep.c (mips_init_frame_pc_first): Update.
11393 (mips_frame_chain): Update.
11394 (mips_pop_frame): Update.
11395 * mcore-tdep.c (mcore_frame_chain): Update.
11396 (mcore_pop_frame): Update.
11397 (mcore_init_extra_frame_info): Update.
11398 * arch-utils.c (init_frame_pc_default): Update.
11399 * m68k-tdep.c (isi_frame_num_args): Update.
11400 (delta68_frame_num_args): Update.
11401 (news_frame_num_args): Update.
11402 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11403 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11404 (alpha_frame_chain): Update.
11405 (alpha_pop_frame): Update.
11406 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11407 (hppa_init_extra_frame_info): Update.
11408 (hppa_frame_chain): Update.
11409 (hppa_frame_chain_valid): Update.
11410 * cris-tdep.c (cris_init_extra_frame_info): Update.
11411 * avr-tdep.c (avr_init_extra_frame_info): Update.
11412 * arm-tdep.c (arm_frame_chain_valid): Update.
11413 (arm_init_extra_frame_info): Update.
11414 (arm_pop_frame): Update.
11415 * frame.c (frame_pc_unwind): Update.
11416 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11417 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11418 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11419 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11420 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11421 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11422
12cc2063
AC
114232003-03-10 Andrew Cagney <cagney@redhat.com>
11424
11425 * gdbarch.sh (gdbarch_unwind_pc): New method.
11426 * gdbarch.h, gdbarch.c: Regenerate.
11427 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11428 but use read_pc and FRAME_SAVED_PC as fall backs.
11429 (frame_saved_regs_pc_unwind): Delete function.
11430 (trad_frame_unwinder): Update.
11431 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11432 (struct frame_unwind): Update.
11433 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11434 (dummy_frame_unwind): Update.
11435 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11436 (sentinel_frame_unwinder): Update.
11437 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11438 (d10v_frame_unwind): Update.
11439 (d10v_unwind_pc): New function.
11440 (d10v_gdbarch_init): Set unwind_pc.
11441
ef840a37
AC
114422003-03-10 Andrew Cagney <cagney@redhat.com>
11443
a2ce2e56
AC
11444 * gdbarch.h: Re-generate.
11445
ef840a37
AC
11446 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11447 PC.
11448 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11449 the PC register.
11450
08f3424b
MK
114512003-03-08 Mark Kettenis <kettenis@gnu.org>
11452
11453 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11454
1248ede2
AC
114552003-03-08 Andrew Cagney <cagney@redhat.com>
11456
11457 * cli-out.c: Update copyright.
11458 (cli_out_data): Define typedef. Use instead of ui_out_data.
11459
f49bacc8
AC
114602003-03-08 Andrew Cagney <cagney@redhat.com>
11461
11462 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11463 the result.
11464
9b05f993
AC
114652003-03-07 Andrew Cagney <cagney@redhat.com>
11466
11467 * gdbarch.sh: Don't generate two macro definitions when an
11468 undefined macro taking no arguments.
11469 * gdbarch.h: Regenerate.
8ffd9b1b 11470
166f4c7b
ML
114712002-03-07 Michal Ludvig <mludvig@suse.cz>
11472
11473 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11474 (x86_64_unwind_dummy_id): New functions.
11475 (x86_64_init_abi): Register these two new functions.
11476
6d686a84
ML
114772003-03-07 Michal Ludvig <mludvig@suse.cz>
11478
11479 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11480 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11481 separate function.
11482 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11483
6314f104
AC
114842003-03-05 Andrew Cagney <cagney@redhat.com>
11485
11486 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11487 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11488 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11489 to use unwind_dummy_id when a dummy frame.
11490 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11491 predicate.
11492 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11493
ceea5145
AC
114942003-03-05 Andrew Cagney <cagney@redhat.com>
11495
11496 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11497 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11498 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11499 values.
11500
0d843116
AC
115012003-03-05 Andrew Cagney <cagney@redhat.com>
11502
11503 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11504 (struct d10v_unwind_cache): Delete field "frameless". Replace
11505 "next_addr" with "sp_offset". Add "r11_offset".
11506 (d10v_frame_unwind_cache): Update.
11507 (prologue_find_regs): Update. When "mv r11, sp", save the
11508 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11509 RN was saved in r11_offset.
11510
b2579786
AC
115112003-03-05 Andrew Cagney <cagney@redhat.com>
11512
11513 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11514 cached PC value in the next frame.
11515
218e5956
AC
115162003-03-05 Andrew Cagney <cagney@redhat.com>
11517
11518 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11519 "id_unwind_cache" with "id".
11520 (frame_id_unwind): Delete declaration.
11521 * frame.c (frame_id_unwind): Delete function.
11522 (get_prev_frame): Call the frame id unwind method directly. Store
11523 the returned next frame's ID value in NEXT_FRAME. Note that there
11524 is a problem with the wrong unwind ID being called with the wrong
11525 unwind cache.
11526
ed363b1b
DJ
115272003-03-05 Daniel Jacobowitz <drow@mvista.com>
11528
11529 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11530
fe1f4a5e
DJ
115312003-03-05 James Ingham <jingham@apple.com>
11532 Daniel Jacobowitz <drow@mvista.com>
11533
11534 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11535 (auto_cp_abi): New variable.
11536 (current_cp_abi, num_cp_abis): Make static.
11537 (CP_ABI_MAX): Define.
11538 (cp_abis): Turn into an array.
11539 (value_virtual_fn_field): Fix formatting.
11540 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11541 takes a pointer.
11542 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11543 (list_cp_abis, _initialize_cp_abi): New functions.
11544 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11545 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11546 switch_to_cp_abi. Update prototype for register_cp_abi.
11547 * Makefile.in (cp-abi.o): Update dependencies.
11548 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11549 instead of switch_to_cp_abi.
11550 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11551 register_cp_abi.
11552 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11553 register_cp_abi.
11554 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11555
e4adbba9
DJ
115562003-03-05 Daniel Jacobowitz <drow@mvista.com>
11557
11558 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11559 * dwarf2loc.c: Include "regcache.h".
11560 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11561 register_size.
11562 * Makefile.in (dwarf2loc.o): Update dependencies.
11563
91ccbfc1
TR
115642003-03-04 Theodore A. Roth <troth@openavr.org>
11565
11566 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11567 number of io registers reported by remote target is not a multiple of
11568 step.
11569
3d4e8fd2
DC
115702003-03-04 David Carlton <carlton@math.stanford.edu>
11571
11572 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11573 (lookup_symbol_aux_psymtabs): Update call to
11574 lookup_partial_symbol.
11575 (lookup_transparent_type, find_main_psymtab)
11576 (make_symbol_overload_list): Ditto.
11577
ed42d87b
KH
115782003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11579
11580 * MAINTAINERS (Write after approval): Update my email address.
11581
a0ed5532
AC
115822003-03-03 Andrew Cagney <cagney@redhat.com>
11583
11584 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11585 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11586 predicate. Replace MAX_REGISTER_RAW_SIZE.
11587 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11588 MAX_REGISTER_VIRTUAL_SIZE.
11589 * regcache.c (legacy_max_register_raw_size): New function.
11590 (legacy_max_register_virtual_size): New function.
11591 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11592 (MAX_REGISTER_RAW_SIZE): Define.
11593 (legacy_max_register_raw_size): Declare.
11594 (legacy_max_register_virtual_size): Declare.
11595 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11596 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11597 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11598 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11599 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11600 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11601 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11602 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11603 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
11604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11605 * vax-tdep.c (vax_gdbarch_init): Update.
11606 * v850-tdep.c (v850_gdbarch_init): Update.
11607 * sparc-tdep.c (sparc_gdbarch_init): Update.
11608 * sh-tdep.c (sh_gdbarch_init): Update.
11609 * s390-tdep.c (s390_gdbarch_init): Update.
11610 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11611 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11612 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11613 * mips-tdep.c (mips_gdbarch_init): Update.
11614 * mcore-tdep.c (mcore_gdbarch_init): Update.
11615 * m68k-tdep.c (m68k_gdbarch_init): Update.
11616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11617 * ia64-tdep.c (ia64_gdbarch_init): Update.
11618 * i386-tdep.c (i386_gdbarch_init): Update.
11619 * hppa-tdep.c (hppa_gdbarch_init): Update.
11620 * h8300-tdep.c (h8300_gdbarch_init): Update.
11621 * frv-tdep.c (frv_gdbarch_init): Update.
11622 * cris-tdep.c (cris_gdbarch_init): Update.
11623 * avr-tdep.c (avr_gdbarch_init): Update.
11624 * arm-tdep.c (arm_gdbarch_init): Update.
11625 * alpha-tdep.c (alpha_gdbarch_init): Update.
11626 * d10v-tdep.c (d10v_gdbarch_init): Do not set
11627 max_register_raw_size or max_register_virtual_size.
11628
8e437497
DC
116292003-03-03 David Carlton <carlton@math.stanford.edu>
11630
11631 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
11632 SYMBOL_MATCHES_NAME, add comment.
11633 (SYMBOL_MATCHES_NATURAL_NAME): New.
11634 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
11635 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
11636 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
11637 * symtab.c (lookup_partial_symbol): Use
11638 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
11639 unhelpful comment.
11640 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
11641 SYMBOL_MATCHES_NAME.
11642 Fix for PR c++/33.
11643
25120b0d
DC
116442003-03-03 David Carlton <carlton@math.stanford.edu>
11645
11646 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
11647 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
11648 by regexp matching against SYMBOL_NATURAL_NAME.
11649
78a11fb4
DC
116502003-03-03 David Carlton <carlton@math.stanford.edu>
11651
11652 * linespec.c (find_method): Extract code into collect_methods.
11653 (collect_methods): New.
11654
645dd519
MK
116552003-03-02 Mark Kettenis <kettenis@gnu.org>
11656
b4700d91
MK
11657 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
11658 get_frame_base.
11659
645dd519
MK
11660 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
11661 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11662
0aa7e1aa
SC
116632003-03-02 Stephane Carrez <stcarrez@nerim.fr>
11664
8ffd9b1b 11665 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
11666 and not regnum when summing the size of all registers up to regnum.
11667
f30ee0bc
AC
116682003-03-01 Andrew Cagney <cagney@redhat.com>
11669
11670 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
11671 FRAME_INIT_SAVED_REGS.
11672 * gdbarch.h, gdbarch.c: Regenerate.
11673 * stack.c (frame_info): Update.
11674 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
11675 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
11676 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
11677 * ns32k-tdep.c (ns32k_pop_frame): Update.
11678 * mips-tdep.c (mips_pop_frame): Update.
11679 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
11680 * ia64-tdep.c (ia64_frame_chain): Update.
11681 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
11682 (ia64_frameless_function_invocation): Update.
11683 (ia64_init_extra_frame_info): Update.
11684 (ia64_pop_frame_regular): Update.
11685 * frame.h (struct frame_info): Update comment.
11686 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
11687 * frame.c (frame_saved_regs_register_unwind): Update.
11688 (frame_saved_regs_register_unwind): Update.
11689 (deprecated_generic_get_saved_register): Update.
11690 * cris-tdep.c: Update comment.
11691 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
11692 Rename macro.
11693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11694 * x86-64-tdep.c (x86_64_init_abi): Update.
11695 * vax-tdep.c (vax_gdbarch_init): Update.
11696 * v850-tdep.c (v850_gdbarch_init): Update.
11697 * sparc-tdep.c (sparc_gdbarch_init): Update.
11698 * sh-tdep.c (sh_gdbarch_init): Update.
11699 * s390-tdep.c (s390_gdbarch_init): Update.
11700 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11701 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11702 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11703 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11704 * mips-tdep.c (mips_gdbarch_init): Update.
11705 * mcore-tdep.c (mcore_gdbarch_init): Update.
11706 * m68k-tdep.c (m68k_gdbarch_init): Update.
11707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11708 * ia64-tdep.c (ia64_gdbarch_init): Update.
11709 * i386-tdep.c (i386_gdbarch_init): Update.
11710 * frv-tdep.c (frv_gdbarch_init): Update.
11711 * avr-tdep.c (avr_gdbarch_init): Update.
11712 * arm-tdep.c (arm_gdbarch_init): Update.
11713 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11714
42fa7c0f
AC
117152003-03-01 Andrew Cagney <cagney@redhat.com>
11716
11717 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
11718 option enum and switch. When no windows, set the interpreter to
11719 INTERP_CONSOLE.
8ffd9b1b 11720
49c7e338
AC
117212003-03-01 Andrew Cagney <cagney@redhat.com>
11722
11723 * main.c (captured_main): Replace magic option characters with an
11724 enum.
11725
e9582e71
AC
117262003-03-01 Andrew Cagney <cagney@redhat.com>
11727
11728 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
11729 INIT_EXTRA_FRAME_INFO.
11730 * gdbarch.h, gdbarch.c: Regenerate.
11731 * arm-tdep.c: Update comments.
11732 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
11733 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
11734 * frame.h, avr-tdep.c: Ditto.
11735 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
11736 (create_new_frame, legacy_get_prev_frame): Ditto.
11737 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11738 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
11739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
11740 deprecated_init_extra_frame_info instead of init_extra_frame_info.
11741 * x86-64-tdep.c (x86_64_init_abi): Ditto.
11742 * v850-tdep.c (v850_gdbarch_init): Ditto.
11743 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11744 * sh-tdep.c (sh_gdbarch_init): Ditto.
11745 * s390-tdep.c (s390_gdbarch_init): Ditto.
11746 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
11747 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11748 * mips-tdep.c (mips_gdbarch_init): Ditto.
11749 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11751 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11752 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11753 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11754 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11755 * frv-tdep.c (frv_gdbarch_init): Ditto.
11756 * cris-tdep.c (cris_gdbarch_init): Ditto.
11757 * avr-tdep.c (avr_gdbarch_init): Ditto.
11758 * arm-tdep.c (arm_gdbarch_init): Ditto.
11759 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11760 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11761
35cac7cf
AC
117622003-03-01 Andrew Cagney <cagney@redhat.com>
11763
11764 * gdbarch.sh (register_type): New function with predicate.
11765 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
11766 * gdbarch.h, gdbarch.c: Re-generate.
11767 * arch-utils.c (generic_register_byte): Use generic_register_size.
11768 (generic_register_size): When available, use
11769 gdbarch_register_type.
11770 * regcache.c (init_regcache_descr): When available, initialize the
11771 register type array using gdbarch_register_type. If the
11772 architecture supplies gdbarch_register_type, do not use the legacy
11773 regcache layout.
11774 * d10v-tdep.c (d10v_register_type): Replace
11775 d10v_register_virtual_type.
11776 (d10v_gdbarch_init): Set register_type instead of
11777 register_virtual_type.
11778
7b83296f
AC
117792003-03-01 Andrew Cagney <cagney@redhat.com>
11780
11781 * Makefile.in (ax-gdb.o): Update dependencies.
11782 * ax-gdb.c: Include "regcache.h".
11783 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
11784 * findvar.c (value_of_register): Ditto.
11785 * infcmd.c (default_print_registers_info): Ditto.
11786
eadc1c87
MK
117872003-03-01 Mark Kettenis <kettenis@gnu.org>
11788
11789 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
11790 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
11791
14143612
MK
117922003-03-01 Mark Kettenis <kettenis@gnu.org>
11793
11794 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
11795 of STREQ.
11796
a55cc764
DJ
117972003-02-28 Daniel Jacobowitz <drow@mvista.com>
11798
11799 * Makefile.in (dwarf2loc.o): Update dependencies.
11800 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
11801 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
11802 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
11803 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
11804 (locexpr_tracepoint_var_ref): New function.
11805 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
11806
08a617da
AC
118072003-02-28 Andrew Cagney <cagney@redhat.com>
11808
11809 * regcache.c (register_size): New function.
11810 * regcache.h (register_size): Declare
11811 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
11812 max_register_size instead of MAX_REGISTER_RAW_SIZE.
11813
4224873a
DC
118142003-02-28 David Carlton <carlton@math.stanford.edu>
11815
11816 * linespec.c (decode_compound): Extract code into find_method.
11817 (find_method): New.
11818
ccdc5d7f
JB
118192003-02-28 J. Brobecker <brobecker@gnat.com>
11820
11821 * Makefile.in: Add rules to build and link in observer.o.
11822
974e8ced
JB
118232003-02-27 J. Brobecker <brobecker@gnat.com>
11824
11825 * observer.c: Minor comments edits.
11826
7a28f973
JB
118272003-02-27 J. Brobecker <brobecker@gnat.com>
11828
11829 * observer.h, observer.c: New file.
11830
27cddce2
AC
118312003-02-27 Andrew Cagney <cagney@redhat.com>
11832
11833 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11834
b94a41a1
SC
118352003-02-27 Stephane Carrez <stcarrez@nerim.fr>
11836
11837 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11838 (M6812_OP_STS_EXT): Likewise.
11839 (m6811_prologue): Use the above to recognize prologue.
11840 (m6812_prologue): Likewise.
11841
c8be8951
DC
118422003-02-27 David Carlton <carlton@math.stanford.edu>
11843
11844 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11845 SYMBOL_PRINT_NAME.
11846 (compare_psymbols): Ditto.
11847 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11848
d05bb1fc
MS
118492003-02-27 Michael Snyder <msnyder@redhat.com>
11850
4e845cd3
MS
11851 * f-lang.c (build_fortran_types): New function.
11852 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
11853 * doublest.c (extract_floating): Fix warning text.
11854
f3824013
AC
118552003-02-27 Andrew Cagney <cagney@redhat.com>
11856
11857 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11858 predicate. Replaces PUSH_DUMMY_FRAME.
11859 * gdbarch.h, gdbarch.c: Regnerate.
11860 * valops.c (hand_function_call): Update. Call
11861 generic_push_dummy_frame directly.
11862 * vax-tdep.c (vax_gdbarch_init): Update.
11863 * sparc-tdep.c (sparc_gdbarch_init): Update.
11864 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11865 * m68k-tdep.c (m68k_gdbarch_init): Update.
11866 * hppa-tdep.c (hppa_gdbarch_init): Update.
11867 * alpha-tdep.c (alpha_gdbarch_init): Update.
11868 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11869 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11870 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11872 push_dummy_frame to generic_push_dummy_frame.
11873 * v850-tdep.c (v850_gdbarch_init): Ditto.
11874 * sh-tdep.c (sh_gdbarch_init): Ditto.
11875 * s390-tdep.c (s390_gdbarch_init): Ditto.
11876 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11877 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11878 * mips-tdep.c (mips_gdbarch_init): Ditto.
11879 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11881 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11882 * i386-tdep.c (i386_gdbarch_init): Ditto.
11883 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11884 * frv-tdep.c (frv_gdbarch_init): Ditto.
11885 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11886 * cris-tdep.c (cris_gdbarch_init): Ditto.
11887 * avr-tdep.c (avr_gdbarch_init): Ditto.
11888 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 11889
ad188201
KB
118902003-02-26 Kevin Buettner <kevinb@redhat.com>
11891
11892 * mips-tdep.c (show_mips_abi): New function.
11893 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11894 command ``show mips abi''.
11895
6b37567a 118962003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 11897
6b37567a 11898 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 11899 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
11900 more sline entries have been seen for the function.
11901
d3e0a5bf
MC
119022003-02-26 Michael Chastain <mec@shout.net>
11903
11904 * configure: Regenerate with autoconf 000227.
11905
18972eea
MC
119062003-02-26 Michael Chastain <mec@shout.net>
11907
11908 Close PR build/660.
11909 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11910 for old libc5/glibc.
11911 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11912
0bbde931
KW
119132003-02-26 Kris Warkentin <kewarken@qnx.com>
11914
11915 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11916 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11917
27ca5dad
MC
119182003-02-26 Michael Chastain <mec@shout.net>
11919
11920 * configure.in: New variable HAVE_UINTPTR_T.
11921 * configure, config.in: Regenerated.
11922
6f88d630
DJ
119232003-02-26 Daniel Jacobowitz <drow@mvista.com>
11924
11925 Fix PR build/1097.
11926 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11927
b14185ce
AC
119282003-02-25 Andrew Cagney <cagney@redhat.com>
11929
11930 * frame.c (get_prev_frame): Add comment on check for
11931 inside_entry_func. Only check for inside_entry_file when not a
11932 dummy and not a sentinel. Check that the new frame is not inner
11933 to the old frame.
11934
ac2bd0a9
AC
119352003-02-25 Andrew Cagney <cagney@redhat.com>
11936
11937 * frame.c (frame_debug): New variable.
11938 (_initialize_frame): Add "set/show debug frame" command.
11939 (get_prev_frame): When frame_debug, print reason why unwind
11940 failed.
11941
b18a0fd2
MC
119422003-02-25 Michael Chastain <mec@shout.net>
11943
11944 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11945 to avoid uintptr_t definition problems.
11946
22abf04a
DC
119472003-02-25 David Carlton <carlton@math.stanford.edu>
11948
11949 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11950 (SYMBOL_LINKAGE_NAME): Ditto.
11951 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11952 SYMBOL_LINKAGE_NAME.
11953 (struct general_symbol_info): Expand comment.
11954 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11955 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11956 (SYMBOL_MATCHES_REGEXP): Ditto.
11957 * symtab.c (symbol_natural_name): New function.
11958 * objfiles.h: Replace all uses of SYMBOL_NAME by
11959 DEPRECATED_SYMBOL_NAME.
11960 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11961 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11962 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11963 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11964 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11965 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11966 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11967 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11968 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11969 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11970 * ada-exp.y: Ditto.
11971 * ada-exp.y: Update copyright.
11972 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11973 * cp-valprint.c: Ditto.
11974
1a5848f6
JJ
119752003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11976
11977 * infptrace.c (detach): Do not flag error if ptrace detach fails
11978 and errno is set to ESRCH.
11979
7343d46a
AC
119802003-02-24 Andrew Cagney <cagney@redhat.com>
11981
11982 * infptrace.c (udot_info): Change type of udot_off to long. Use
11983 paddr when printing udot_off's value.
11984
49fa1dc2
DC
119852003-02-24 David Carlton <carlton@math.stanford.edu>
11986
11987 * symtab.c (make_symbol_overload_list): Only read in partial
11988 symtabs containing a matching partial symbol.
11989
0fe19209
DC
119902003-02-24 David Carlton <carlton@math.stanford.edu>
11991
11992 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11993 do the comparison, not strcmp.
11994 * symfile.c (compare_psymbols): Ditto.
11995 * defs.h: Declare strcmp_iw_ordered.
11996 * utils.c (strcmp_iw_ordered): New function.
11997
8e3ee7b5
JB
119982003-02-24 Jim Blandy <jimb@redhat.com>
11999
12000 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12001 support, shared libs): Remove my name from here, to better reflect
12002 reality.
12003
7df1a324
KW
120042003-02-24 Kris Warkentin <kewarken@qnx.com>
12005
12006 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12007 (target_ops): Add to_have_continuable_watchpoint.
12008 * target.c (update_current_target): Add INHERIT line for
12009 to_have_continuable_watchpoint.
12010 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12011 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12012 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12013 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12014
d1c76907
EZ
120152003-02-24 Elena Zannoni <ezannoni@redhat.com>
12016
12017 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12018 maintainership.
12019
2610b0bf
KW
120202003-02-24 Kris Warkentin <kewarken@qnx.com>
12021
f46169db
KW
12022 * solib.c (solib_open): Call target defined search function after
12023 failing with solib-search-path.
12024 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12025 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12026
9a3c34fe
KW
120272003-02-24 Kris Warkentin <kewarken@qnx.com>
12028
f46169db 12029 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12030
2417dd25
SC
120312003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12032
12033 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12034
b631436b
SC
120352003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12036
12037 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12038 (m68hc11_add_reggroups): New function.
12039 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12040 (m68hc11_gdbarch_init): Install the reggroups.
12041 (_initialize_m68hc11_tdep): Initialize them.
12042
0aa8c1e4
JW
120432003-02-21 James E Wilson <wilson@tuliptree.org>
12044
12045 * MAINTAINERS: Update my email address.
12046
50ceaba5
DC
120472003-02-21 David Carlton <carlton@math.stanford.edu>
12048
12049 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12050
4c2df51b
DJ
120512003-02-21 Daniel Jacobowitz <drow@mvista.com>
12052
12053 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12054 * symtab.h: Add opaque declarations of struct axs_value and
12055 struct agent_expr.
12056 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12057 (struct location_funcs): New type.
12058 (struct symbol): Add "loc" to aux_value.
12059 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12060 * dwarf2read.c: Include "dwarf2expr.h".
12061 (dwarf2_symbol_mark_computed): New function.
12062 (read_func_scope): Use it.
12063 (var_decode_location): New function.
12064 (new_symbol): Use it.
12065 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12066
12067 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12068 (dwarf2expr_h, dwarf2loc_h): New variables.
12069 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12070 (dwarf2expr.o, dwarf2loc.o): New rules.
12071 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12072 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12073 LOC_COMPUTED_ARG.
12074 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12075 * m2-exp.y (yylex): Likewise.
12076 * printcmd.c (address_info, print_frame_args): Likewise.
12077 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12078 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12079 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12080 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12081 * symtab.c (lookup_block_symbol): Likewise.
12082
5784d15e
AF
120832003-02-20 Adam Fedor <fedor@gnu.org>
12084
12085 * symtab.h: Remove objc_specific struct
12086 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12087 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12088 Have language_objc use cplus_specific struct.
12089
d4cad8db
TT
120902003-02-20 Tom Tromey <tromey@redhat.com>
12091
12092 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12093 TYPE_NAME, when printing a String value. PR java/1075.
12094
2f9a90b4
AF
120952003-02-20 Adam Fedor <fedor@gnu.org>
12096
d38074a8 12097 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12098 * objc-lang.c (find_methods): Make static.
2f9a90b4 12099
6f17862b
CF
121002003-02-20 Christopher Faylor <cgf@redhat.com>
12101
12102 * win32-nat.c (get_image_name): Check return value from
12103 ReadProcessMemory.
12104 (child_xfer_memory): Ditto.
12105
715d1656
AO
121062003-02-20 Alexandre Oliva <aoliva@redhat.com>
12107
12108 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12109 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12110 '${exec_prefix}' (in addition to the expansion thereof) as
12111 relocatable.
12112 * configure: Rebuilt.
12113
b1262a02
DC
121142003-02-20 David Carlton <carlton@math.stanford.edu>
12115
12116 * symtab.c (search_symbols): Revert the search_symbols part of my
12117 2002-12-23 patch. Add comment.
12118
7134143f
DJ
121192002-02-20 Daniel Jacobowitz <drow@mvista.com>
12120
12121 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12122 * dbxread.c (elfstab_build_psymtabs): Don't call
12123 install_minimal_symbols.
12124 (stabsect_build_psymtabs): Likewise.
12125 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12126 earlier.
12127 * somread.c (som_symfile_read): Call install_minimal_symbols
12128 and do_cleanups earlier.
12129 * nlmread.c (nlm_symfile_read): Likewise.
12130 * mdebugread.c (elfmdebug_build_psymtabs): Call
12131 install_minimal_symbols and make appropriate cleanups.
12132
cf466558
KB
121332003-02-20 Kevin Buettner <kevinb@redhat.com>
12134
12135 * solib.c (reload_shared_libraries): New function.
12136 (_initialize_solib): Add callbacks for ``set solib-search-path''
12137 and ``set solib-absolute-prefix''.
12138
de5ad195
DC
121392003-02-20 David Carlton <carlton@math.stanford.edu>
12140
12141 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12142 expand comment.
12143 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12144 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12145 * ada-typeprint.c (ada_typedef_print): Ditto.
12146 * ax-gdb.c (gen_var_ref): Ditto.
12147 * breakpoint.c (print_one_breakpoint): Ditto.
12148 * buildsym.c (finish_block): Ditto.
12149 * c-valprint.c (c_val_print): Ditto.
12150 * expprint.c (print_subexp): Ditto.
12151 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12152 * infcmd.c (jump_command): Ditto.
12153 * linespec.c (decode_line_2, decode_compound): Ditto.
12154 * maint.c (maintenance_translate_address): Ditto.
12155 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12156 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12157 Ditto.
8ffd9b1b
AJ
12158 * p-valprint.c (pascal_val_print): Ditto.
12159 * stabsread.c (define_symbol): Ditto.
de5ad195 12160 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12161 (print_frame_arg_vars, return_command): Ditto.
12162 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12163 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12164 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12165 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12166 (rbreak_command): Ditto.
12167 * tracepoint.c (tracepoints_info): Ditto.
12168 * typeprint.c (typedef_print): Ditto.
12169 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12170 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12171 * ada-typeprint.c: Update Copyright.
12172 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12173 * tracepoint.c, cli/cli-cmds.c: Ditto.
12174
f796e4be
KB
121752003-02-20 Kevin Buettner <kevinb@redhat.com>
12176
12177 * frame.c (generic_unwind_get_saved_register): Make non-static.
12178 * frame.h (generic_unwind_get_saved_register): Declare.
12179 * mips-tdep.c (read_next_frame_reg): Fetch register from
12180 current regcache when frame is NULL.
12181 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12182 that must be NULL.
12183 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12184 instead of frame_register_unwind().
12185
836cc9f4
AC
121862003-02-20 Andrew Cagney <ac131313@redhat.com>
12187
12188 * remote-sim.c (gdbsim_insert_breakpoint)
12189 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12190 code.
12191
501eef12
AC
121922003-02-20 Andrew Cagney <ac131313@redhat.com>
12193
12194 * remote.c (_initialize_remote): Add commands "set/show remote
12195 hardware-watchpoint-limit" and "set/show remote
12196 hardware-breakpoint-limit".
12197 (remote_hw_watchpoint_limit): Initialize to -1.
12198 (remote_hw_breakpoint_limit): Ditto.
12199 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12200
1b6bc7e0
CF
122012003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12202
12203 * coff-pe-read.c: New file - support reading of minimal symbols from a
12204 portable executable using the export table.
12205 * coff-pe-read.h: New file.
12206 * coffread.c: Include coff-pe-read.h.
12207 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12208 debugging symbols found.
12209 * Makefile.in (SFILES): Add coff-pe-read.o.
12210 (coff_pe_read_h): Define.
12211 (COMMON_OBS): Add coff-pe-read.o.
12212 (coffread.o): Add coff_pe_read_h dependency.
12213 (coff-pe-read.o): New target.
12214
fe898f56
DC
122152003-02-19 David Carlton <carlton@math.stanford.edu>
12216
12217 * Makefile.in (SFILES): Add block.c.
12218 (block_h): New.
12219 (COMMON_OBS): Add block.o.
12220 (block.o): New.
12221 (x86-64-tdep.o): Add $(block_h).
12222 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12223 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12224 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12225 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12226 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12227 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12228 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12229 * value.h: Add opaque declaration for struct block.
12230 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12231 * ada-lang.h: Ditto.
12232 * x86-64-tdep.c: #include "block.h"
12233 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12234 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12235 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12236 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12237 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12238 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12239 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12240 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12241 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12242 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12243 * symtab.c (block_function): Ditto.
12244 (contained_in): Ditto.
12245 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12246 block.h. Add opaque declaration for struct block.
12247 * symtab.h: Move block_function and contained_in declarations to
12248 block.h. Add opaque declarations for struct block, struct
12249 blockvector.
12250 (struct block): Move to block.h.
12251 (struct blockvector): Ditto.
12252 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12253 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12254 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12255 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12256 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12257 Ditto.
12258 * block.c: New file.
12259 * block.h: New file.
12260
173345b5
TR
122612003-02-19 Theodore A. Roth <troth@openavr.org>
12262
12263 * avr-tdep.c (avr_extract_return_value): Remove function.
12264 (avr_store_return_value): Remove function.
12265 (avr_extract_struct_value_address): Remove function.
12266 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12267
338ef23d
AC
122682003-02-19 Andrew Cagney <ac131313@redhat.com>
12269
12270 * rs6000-tdep.c: Include "gdb_assert.h".
12271 (registers_e500): Add "acc" and "spefscr".
12272 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12273 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12274 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12275 really is "r0".
12276 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12277
5412f5f3
KS
122782003-02-18 Keith Seitz <keiths@redhat.com>
12279
12280 * Makefile.in: Add gdbtk-interps.c.
12281
881324eb
KB
122822003-02-18 Kevin Buettner <kevinb@redhat.com>
12283
12284 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12285 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12286
6a2f5abf
AC
122872003-02-18 Andrew Cagney <cagney@redhat.com>
12288
12289 * symtab.h (struct objfile): Add opaque declaration.
12290
54c7009d
EZ
122912003-02-18 Elena Zannoni <ezannoni@redhat.com>
12292
12293 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12294 * dbxread.c (process_one_symbol): Use last_function_start rather
12295 than function_start_offset to find the real beginning of the
12296 current function. The latter is just the text section offset on
12297 some systems, the former is always the real function start.
54c7009d 12298
7ee6d7eb
AC
122992003-02-17 Andrew Cagney <cagney@redhat.com>
12300
12301 * configure.in: Revert ${target} != ${host}.
12302
2846da9b
AC
123032003-02-17 Andrew Cagney <ac131313@redhat.com>
12304
12305 * configure.in (Makefile): Use the test ${target} != ${host},
12306 instead of the absence of the "nm.h" file, to determine of the
12307 configuration non-native.
12308 * configure: Regenerate.
8ffd9b1b 12309
3b27aeea
EZ
123102003-02-14 Elena Zannoni <ezannoni@redhat.com>
12311
fbe586ae 12312 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12313
12314 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12315 conditionalize tui_active test.
12316 (lookup_cmd_1): Ditto.
12317
b0b1c2c0
MK
123182003-02-14 Mark Kettenis <kettenis@gnu.org>
12319
12320 * configure.in: Add check for _etext.
12321 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12322 available.
12323 * config.in, configure: regenerated.
12324
8f05cde5
DJ
123252003-02-14 Daniel Jacobowitz <drow@mvista.com>
12326
12327 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12328
021e7609
AC
123292003-02-14 Andrew Cagney <ac131313@redhat.com>
12330
12331 * main.c (tui_version): Delete variable.
12332 (captured_main): When --tui, set interpreter_p to "tui" instead of
12333 enabling tui_version.
12334 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12335 tui_version.
12336 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12337 * cli/cli-cmds.c (disassemble_command): Ditto.
12338 * defs.h (tui_version): Delete declaration.
12339 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12340 (tui-interp.o): Add rules.
12341 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12342
e325dcec
CF
123432003-02-14 Christopher Faylor <cgf@redhat.com>
12344
36ffb041 12345 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12346 just-loaded dll.
12347
c4f90d87
JM
123482003-02-12 Jason Molenda (jmolenda@apple.com)
12349
fbe586ae
RH
12350 * symmisc.c (print_objfile_statistics): Include information about
12351 the number of psymtabs and symtabs in each object file.
c4f90d87 12352
e46e5ccd
KS
123532003-02-13 Keith R Seitz <keiths@redhat.com>
12354
12355 * main.h (struct captured_main_args): Add interpreter_p.
12356 * main.c (captured_main): Initialize interpreter_p from context.
12357 * gdb.c (main): Set interpreter_p argument.
12358 * Makefile.in (gdb.o): Add dependency for interps.h.
12359
fe97fe9c
AC
123602003-02-12 Andrew Cagney <ac131313@redhat.com>
12361
12362 * event-top.c (cli_command_loop): Delete declaration.
12363 (_initialize_event_loop): Delete function setting event_loop_hook.
12364 * event-top.h (cli_command_loop): Declare. Update copyright.
12365 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12366 * interps.c (current_interp_command_loop): When event_loop_p, call
12367 cli_command_loop.
12368
1cdac4ef
AC
123692003-02-12 Andrew Cagney <ac131313@redhat.com>
12370
12371 * interps.h (interp_command_loop_ftype): Change return type to
12372 void.
12373
48037ead
ML
123742003-02-12 Michal Ludvig <mludvig@suse.cz>
12375
12376 * x86-64-tdep.c (x86_64_extract_return_value)
12377 (x86_64_store_return_value): Use regcache instead of regbuf.
12378 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12379 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12380
033afc63
AC
123812003-02-11 Andrew Cagney <ac131313@redhat.com>
12382
12383 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12384 * aclocal.m4: Regenerate.
12385 * configure: Regenerate.
12386
12387 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12388 TCL_LD_SEARCH_FLAGS.
12389
40d02bca
ML
123902003-02-10 Michal Ludvig <mludvig@suse.cz>
12391
12392 * dwarf2cfi.c: Reindented.
12393
11308a41
AC
123942003-02-09 Andrew Cagney <ac131313@redhat.com>
12395
12396 * interps.c (clear_interpreter_hooks): Convert function definition
12397 to ISO C.
12398
e1c1c0f6
DC
123992003-02-07 David Carlton <carlton@math.stanford.edu>
12400
12401 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12402
ab5d3da6
KB
124032003-02-07 Kevin Buettner <kevinb@redhat.com>
12404
12405 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12406 (struct type): ...to here.
12407 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12408 field.
12409 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12410 (replace_type): Set length on all type variants for a given type.
12411
b8a92b82
AC
124122003-02-07 Andrew Cagney <ac131313@redhat.com>
12413
12414 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12415 <sys/stat.h>.
12416 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12417
5cb316ef
AC
124182003-02-06 Andrew Cagney <ac131313@redhat.com>
12419
2555fe1a
AC
12420 * Makefile.in (symm-nat.o): Update dependencies.
12421 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12422 (lynx-nat.o, ia64-linux-nat.): Ditto.
12423 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12424 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12425 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12426
44270758
AC
12427 * Makefile.in (inflow_h): Define.
12428 (procfs.o, inflow.o, procfs.o): Update dependencies.
12429 * inftarg.c (child_stop): Delete extern declaration of
12430 inferior_process_group. Include "inflow.h".
12431 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12432 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12433 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12434 (our_process_group, inferior_process_group): Extern declarations.
12435
df8f7274
AC
12436 * procfs.c: Include "gdb_assert.h".
12437
5cb316ef
AC
12438 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12439 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12440 * jv-typeprint.c (java_type_print_base): Ditto.
12441 * typeprint.c (typedef_print): Eliminate STREQ.
12442 * cli/cli-script.c (define_command, define_command): Ditto.
12443 * main.c (captured_main): Ditto.
12444 * values.c (lookup_internalvar): Ditto.
12445 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12446 within `if' conditional.
12447 * linespec.c (decode_line_2): Ditto.
12448 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12449 (bfd_openw_with_cleanup): Ditto.
12450
2a28ccea
MK
124512003-02-07 Mark Kettenis <kettenis@gnu.org>
12452
12453 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12454 legacy_extract_return_value and store_return_value to
12455 legacy_return_value.
12456
786b8124
CF
124572003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12458
12459 * win32-nat.c (get_relocated_section_addrs): New function. Find
12460 section load addresses for symbol handling in relocated DLLs.
12461 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12462
b871e4ec
FF
124632003-02-05 Fred Fish <fnf@intrinsity.com>
12464
12465 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12466 '=' and '!='.
12467 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12468 with '&' and '=='.
12469 (angel_RDI_info): Ditto.
12470 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12471 with '&' and '!='.
12472 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12473
4389a95a 124742003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12475 Keith Seitz <keiths@redhat.com>
12476 Elena Zannoni <ezannoni@redhat.com>
12477 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12478
12479 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12480 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12481 (SUBDIR_MI_OBS): Add "mi-interp.o".
12482 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12483 (SFILES): Add "interps.c".
12484 (COMMON_OBS): Add "interps.o".
12485 (interps_h, mi_main_h): Define.
12486 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12487 (mi-main.o, main.o, event-top.o): Update dependencies.
12488 * cli/cli-interp.c: New file.
12489 * interps.h, interps.c: New files.
12490 * top.c: (gdb_init): Don't install the default interpreter, handed
12491 by captured_main.
12492 * main.c: Include "interps.h".
12493 (interpreter_p): Note that it should malloc'ed.
12494 (captured_command_loop): Call current_interp_command_loop.
12495 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12496 xfree and xstrdup when updating interpreter_p. Install the
12497 default interpreter. Add hack to stop mi1's copyright notice
12498 being encoded.
12499 * event-top.h (gdb_setup_readline): Declare.
12500 (gdb_disable_readline): Declare.
12501 * event-top.c: Include "interps.h".
12502 (display_gdb_prompt): Call current_interp_display_prompt_p.
12503 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12504 gdb_stdlog, and gdb_stdtarg.
12505 (_initialize_event_loop): Don't call gdb_setup_readline.
12506 * cli-out.c (cli_out_set_stream): New function.
12507 * cli-out.h (cli_out_set_stream): Declare.
12508
ff3b5810
MK
125092003-02-06 Mark Kettenis <kettenis@gnu.org>
12510
12511 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12512 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12513 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12514 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12515 config/i386/i386v42mp.mt: Removed.
12516
5b729aa5
MK
125172003-02-05 Mark Kettenis <kettenis@gnu.org>
12518
12519 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12520 GDB_OSABI_SOLARIS.
12521
8cc15142
MC
125222003-02-05 Michael Chastain <mec@shout.net>
12523
12524 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12525 2.12.1 and earlier versions.
12526
5aa5d4b9
AC
125272003-02-05 Andrew Cagney <ac131313@redhat.com>
12528
12529 Remove orphaned hosts, targets and files.
12530 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12531 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12532 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12533 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12534 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12535 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12536 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12537 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12538 * config/sparc/tm-sp64sim.h: Delete.
12539 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12540 hosts.
12541 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12542 mips*-dec-mach3* targets.
12543
b68767c1
MC
125442003-02-04 Michael Chastain <mec@shout.net>
12545
12546 * NEWS: Fix typo: sepcifying -> specifying.
12547
5ae7ca1d
MC
125482003-02-04 Michael Chastain <mec@shout.net>
12549
12550 * dwarfread.c: Add documentation on the state of dwarf-1,
12551 looking towards obsoletion.
12552
d08a4280
MC
125532003-02-03 Michael Chastain <mec@shout.net>
12554
12555 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12556 gdb/testsuite/gdb.c++/pr-1023.exp.
12557
e9be73e4
AC
125582003-02-04 Andrew Cagney <ac131313@redhat.com>
12559
12560 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12561 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12562
12563 * utils.c (init_page_info): Delete reference to MPW in comments.
12564 * main.c (captured_main): Delete #ifdef MPW.
12565
05d57f6f
AC
125662003-02-04 Andrew Cagney <ac131313@redhat.com>
12567
8ffd9b1b 12568 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12569 * monitor.c (monitor_expect): Obsolete reference to m32r.
12570 * configure.tgt: Mark m32r-*-elf* as obsolete.
12571 * MAINTAINERS: Mark m32k as obsolete.
12572 * m32r-rom.c: Obsolete file.
12573 * config/m32r/m32r.mt: Obsolete file.
12574 * config/m32r/tm-m32r.h: Obsolete file.
12575 * m32r-stub.c: Obsolete file.
12576 * m32r-tdep.c: Obsolete file.
12577
8b0e5691
AC
125782003-02-04 Andrew Cagney <ac131313@redhat.com>
12579
12580 * NEWS: Mention that the z8k-zilog-none is obsolete.
12581 * MAINTAINERS: Mark z8k as obsolete.
12582 * configure.tgt: Obsolete the z8k-*-coff* target.
12583 * config/z8k/z8k.mt: Obsolete file.
12584 * config/z8k/tm-z8k.h: Obsolete file.
12585 * z8k-tdep.c: Obsolete file.
12586
67f16606
AC
125872003-02-04 Andrew Cagney <ac131313@redhat.com>
12588
12589 * NEWS: Mention that the mn10200-elf is obsolete.
12590 * configure.tgt: Obsolete mn10200-*-* target.
12591 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12592 mention that the mn10200 is obsolete.
12593 * breakpoint.h: Ditto.
12594 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12595 * config/mn10200/mn10200.mt: Obsolete file.
12596 * config/mn10200/tm-mn10200.h: Obsolete file.
12597 * mn10200-tdep.c: Obsolete file.
12598
fd2299bd
AC
125992003-02-04 Andrew Cagney <ac131313@redhat.com>
12600
12601 * MAINTAINERS: Mark h8500 as obsolete.
12602 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
12603 * findvar.c (value_from_register): Ditto.
12604 * h8500-tdep.c: Mark file as obsolete.
12605 * config/h8500/h8500.mt: Ditto.
12606 * config/h8500/tm-h8500.h: Ditto.
12607 * NEWS: Mention that h8500 is obsolete.
12608
eb9a305d
DC
126092003-02-04 David Carlton <carlton@math.stanford.edu>
12610
12611 * objfiles.c (allocate_objfile): Always set name. Add comment at
12612 start of function.
12613 * jv-lang.c (get_dynamics_objfile): Add comment.
12614
406fc7fb
DC
126152003-02-04 David Carlton <carlton@math.stanford.edu>
12616
12617 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
12618 * printcmd.c (build_address_symbolic): Replace uses of
12619 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
12620 SYMBOL_NAME, and asm_demangle.
12621 Update copyright.
12622
93d91629
DC
126232003-02-04 David Carlton <carlton@math.stanford.edu>
12624
12625 * linespec.c (decode_compound): Extract code into
12626 lookup_prefix_sym.
12627 (lookup_prefix_sym): New function.
12628
1c5cb38e
DC
126292003-02-04 David Carlton <carlton@math.stanford.edu>
12630
12631 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
12632 FLOAT_COERCION_BADNESS.
12633 * gdbtypes.c (rank_one_type): Replace all uses of
12634 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
12635
0cf824c9
JB
126362003-02-04 Jim Blandy <jimb@redhat.com>
12637
12638 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
12639 section, let dwarf_macinfo_section point to it, not
12640 dwarf_loc_section.
12641
a2d356b0
DJ
126422003-02-04 Daniel Jacobowitz <drow@mvista.com>
12643
12644 Pointed out by Anton Blanchard <anton@samba.org>.
12645 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
12646 (ppc_linux_at_sigtramp_return_path): Use it.
12647
2de7ced7
DJ
126482003-02-04 Daniel Jacobowitz <drow@mvista.com>
12649
12650 * defs.h (streq): Add prototype.
12651 * utils.c (streq): New function.
12652
12653 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
12654 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
12655 * mdebugread.c (new_symbol): Likewise.
12656 * stabsread.c (define_symbol): Likewise.
12657 * coffread.c (process_coff_symbol): Likewise.
12658 * dwarfread.c (new_symbol): Likewise.
12659
12660 * minsyms.c (prim_record_minimal_symbol_and_info): Use
12661 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
12662 here.
12663 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
12664 SYMBOL_INIT_DEMANGLED_NAME.
12665 * objfiles.c: Include "hashtab.h".
12666 (allocate_objfile): Call htab_set_functions_ex for the
12667 demangled_names_hash.
12668 (free_objfile): Call htab_delete for the demangled_names_hash.
12669 * objfiles.h (struct htab): Add declaration.
12670 (struct objfile): Add demangled_names_hash.
12671 * symfile.c: Include "hashtab.h".
12672 (reread_symbols): Call htab_delete for the demangled_names_hash.
12673 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
12674 SYMBOL_NAME in the bcache.
12675 * symtab.c: Include "hashtab.h". Update comments.
12676 (create_demangled_names_hash, symbol_set_names): New functions.
12677 (symbol_find_demangled_name): New function, broken out from
12678 symbol_init_demangled_names.
12679 (symbol_init_demangled_names): Use it.
12680 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
12681 (SYMBOL_SET_NAMES): New macro.
12682 (symbol_set_names): Add prototype.
12683
15831452
JB
126842003-02-03 Jim Blandy <jimb@redhat.com>
12685
12686 Use a single, consistent representation for an empty minimal
12687 symbol table in an objfile.
12688 * objfiles.c (terminate_minimal_symbol_table): New function.
12689 (allocate_objfile): Call it.
12690 * objfiles.h (terminate_minimal_symbol_table): New declaration.
12691 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 12692 non-NULL.
15831452
JB
12693 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
12694 objfile has minimal symbols, compare minimal_symbol_count to zero,
12695 instead of comparing msymbols with NULL.
12696 * objfiles.c (have_minimal_symbols): Same.
12697 * solib-sunos.c (solib_add_common_symbols): Call
12698 terminate_minimal_symbol_table.
12699 * symfile.c (reread_symbols): Same.
8ffd9b1b 12700
ffc65945
KB
127012003-02-03 Kevin Buettner <kevinb@redhat.com>
12702
12703 * s390-tdep.c (s390_address_class_type_flags)
12704 (s390_address_class_type_flags_to_name)
12705 (s390_address_class_name_to_type_flags): New functions.
12706 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
12707 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
12708
f211c6d4
MS
127092003-02-03 Michael Snyder <msnyder@redhat.com>
12710
12711 * arm-tdep.c: Fix spell-o in comment.
12712
659b0389
ML
127132003-02-03 Michal Ludvig <mludvig@suse.cz>
12714
12715 * dwarf2cfi.c (pointer_encoding): Added new parameter.
12716 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 12717 error messages to contain BFD filename.
659b0389 12718
3b31d625
EZ
127192003-02-02 Elena Zannoni <ezannoni@redhat.com>
12720
997b089a 12721 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
12722 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
12723 (do_mixed_source_and_assembly): Use
12724 make_cleanup_ui_out_tuple_begin_end and
12725 make_cleanup_ui_out_tuple_begin_end.
12726 (do_mixed_source_and_assembly): Ditto.
12727 * thread.c (do_captured_list_thread_ids): Ditto.
12728 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
12729 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
12730 ui_out_tuple_end): Delete prototypes.
12731 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
12732 ui_out_list_end, ui_out_tuple_end): Delete.
12733
12734 From Kevin Buettner <kevinb@redhat.com>:
12735 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
12736 * ui-out.c (make_cleanup_ui_out_table_begin_end)
12737 (do_cleanup_table_end): New functions.
12738 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
12739 Use cleanups to invoke_ui_out_tuple_end().
12740 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
12741 * cli/cli-setshow.c (cmd_show_list): Use
12742 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 12743
5b181d62
AC
127442003-02-02 Andrew Cagney <ac131313@redhat.com>
12745
12746 * frame.c (frame_unwind_register): New function.
12747 (frame_unwind_unsigned_register): Use.
12748 (frame_unwind_signed_register): Use.
12749 (frame_read_register): New function.
12750 * frame.h (frame_unwind_register): Declare.
12751 (frame_read_register): Declare.
12752
12753 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
12754 and frame_unwind_register instead of read_memory, write_register
12755 and deprecated_write_register_bytes.
12756
5f601589
AC
127572003-02-02 Andrew Cagney <ac131313@redhat.com>
12758
12759 * frame.h: Note that namelen can be negative.
12760 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
12761 NAME's length.
12762
12763 * NEWS: Mention that the d10v's `regs' command is deprecated.
12764 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
12765 (d10v_print_registers_info): New function.
12766 (show_regs): Call d10v_print_registers_info.
12767 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
12768
6a3fe0a4
MK
127692003-02-02 Mark Kettenis <kettenis@gnu.org>
12770
12771 * stack.c (print_frame_info): Restore call to annotate_frame_begin
12772 lost in the previous patch.
12773
075559bc
AC
127742003-02-01 Andrew Cagney <ac131313@redhat.com>
12775
12776 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
12777 * stack.c (print_frame_info_base): Output complete FRAME tuple
12778 for synthesized frames.
075559bc 12779
6789195b
AC
127802003-02-02 Andrew Cagney <ac131313@redhat.com>
12781
12782 * mips-nat.c (zerobuf): Delete.
12783 (fetch_inferior_registers): Alloc local zerobuf.
12784 (fetch_core_registers): Alloc local zerobuf.
12785 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
12786 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
12787 * thread-db.c (thread_db_store_registers): Ditto.
12788 * sh-tdep.c (sh_do_register): Ditto.
12789 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
12790 * remote-sim.c (gdbsim_store_register): Ditto.
12791 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
12792 * remote-e7000.c (fetch_regs_from_dump): Ditto.
12793 * monitor.c (monitor_supply_register): Ditto.
12794 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
12795 * mips-nat.c (fetch_inferior_registers): Ditto.
12796 * m68klinux-nat.c (fetch_register): Ditto.
12797 * lynx-nat.c (fetch_inferior_registers): Ditto.
12798 (fetch_inferior_registers): Ditto.
12799 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
12800 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
12801 (hpux_thread_store_registers): Ditto.
12802 * hppah-nat.c (fetch_register): Ditto.
12803 * hppab-nat.c (fetch_register): Ditto.
12804 * hppa-tdep.c (pa_register_look_aside): Ditto.
12805 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
12806 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
12807
e669114a
AC
128082003-02-01 Andrew Cagney <ac131313@redhat.com>
12809
12810 * gdbarch.sh: Explictly specify all method levels. When a
12811 variable with an empty level, provide a non-multi-arch default.
12812 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
12813 * gdbarch.h: Re-generate.
12814 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
12815 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
12816
9a043c1d
AC
128172003-02-01 Andrew Cagney <ac131313@redhat.com>
12818
12819 * defs.h (host_pointer_to_address): Delete declaration.
12820 (address_to_host_pointer): Delete declaration.
12821 * utils.c (host_pointer_to_address): Delete function.
12822 (address_to_host_pointer): Delete function.
12823 * procfs.c (procfs_address_to_host_pointer): New function.
12824 * procfs.c (proc_set_watchpoint): Use.
12825 (procfs_can_use_hw_breakpoint): Update comments.
12826 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12827 (som_solib_add): Use.
12828 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12829 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 12830
7ca9f392
AC
128312003-02-01 Andrew Cagney <ac131313@redhat.com>
12832
94bbfd30
AC
12833 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12834 strlen d_name.
12835
7ca9f392
AC
12836 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12837 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12838 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12839 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12840 (define_symbol): Update.
12841 * symfile.c (generic_load): Remove references to nindy.
12842 * symtab.c: Remove references to nindy.
12843
31a85ea2
AC
128442003-02-01 Andrew Cagney <ac131313@redhat.com>
12845
12846 * infcmd.c (print_float_info): Delete code conditional on
12847 FLOAT_INFO.
12848 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12849 * config/m68k/nm-apollo68b.h: Ditto.
12850 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12851 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12852 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12853
f6e85fc8
MK
128542003-02-01 Mark Kettenis <kettenis@gnu.org>
12855
6015b6a0
MK
12856 * config/i386/tm-i386os9k.h: Removed.
12857
f7a30bdf
MK
12858 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12859 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12860 they're identical to i[3456]86-*-sysv* now.
12861 * config/i386/i386v32.mh: Removed.
12862 * config/i386/xm-i386v32.h: Removed.
12863 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12864
28d52111
MK
12865 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12866
4d3f6bce
MK
12867 * config/i386/i386dgux.mh: Removed.
12868 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12869
f6e85fc8
MK
12870 * configure.in: Fix typo.
12871 * configure: Regenerated.
12872
53955967
DC
128732003-01-31 David Carlton <carlton@math.stanford.edu>
12874
12875 * dwarf2read.c (dwarf2_locate_sections): Set
12876 dwarf_ranges_section.
12877
b1364885
AC
128782003-01-31 Andrew Cagney <ac131313@redhat.com>
12879
8dbb1c65
AC
12880 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12881 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 12882
8731e58e
AC
12883 * utils.c: Re-indent.
12884
b1364885
AC
12885 * config/djgpp/fnchange.lst: Delete nindy files.
12886 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12887 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12888 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12889 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12890 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12891 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12892 * Makefile.in (init.c): Remove nindy references.
12893 (saber_gdb): Delete rule.
12894 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12895 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12896 and a68v-nat.c.
12897 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12898 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12899 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12900 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12901 nindy-share/stop.h.
12902 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12903 * saber.suppress: Delete file.
12904
086df311
DJ
129052003-01-31 Daniel Jacobowitz <drow@mvista.com>
12906
12907 * dbxread.c (stabs_data): New static variable.
12908 (fill_symbuf): Support an in-memory buffer for stabs data.
12909 (stabs_seek): New function.
12910 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12911 (read_ofile_symtab): Use stabs_seek.
12912 (elfstab_build_psymtabs): Take an asection* instead of
12913 an offset and size. Relocate the stabs data if necessary.
12914 Save the section* for dbx_psymtab_to_symtab.
12915 * dwarf2read.c: Add section variables for each debug section.
12916 (dwarf2_locate_sections): Fill them in.
12917 (dwarf2_read_section): Take an asection* argument.
12918 Relocate the section contents if necessary.
12919 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12920 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12921 it to dwarf2_read_section.
12922 (dwarf2_build_frame_info): Update callers.
12923 * elfread.c (elf_symfile_read): Update call to
12924 elfstab_build_psymtabs.
12925 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12926 (DBX_STAB_SECTION): New macro.
8ffd9b1b 12927 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
12928 * symfile.c (symfile_dummy_outputs): New function.
12929 (symfile_relocate_debug_section): New function.
12930 * symfile.h (symfile_relocate_debug_section): Add prototype.
12931
87d1b352
RH
129322003-01-31 Richard Henderson <rth@redhat.com>
12933
12934 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12935 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12936 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12937 * alpha-tdep.c (alpha_register_name): Add "unique".
12938 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12939 (ALPHA_UNIQUE_REGNUM): New.
12940 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12941
c48861fb
AC
129422003-01-31 Andrew Cagney <ac131313@redhat.com>
12943
12944 * README: Remove reference to Ericsson 1800 monitor.
12945 * Makefile.in (remote-es.o): Delete rule.
12946 (ALLDEPFILES): Delete remote-es.c.
12947 * remote-es.c: Delete file.
12948 * config/m68k/es1800.mt: Delete file.
12949 * config/djgpp/fnchange.lst: Update.
12950 * configure.tgt: Delete m68*-ericsson-* target.
12951
d764a824
AF
129522003-01-31 Adam Fedor <fedor@gnu.org>
12953
12954 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12955 Remove duplicate/shadowing variable of same name.
12956
fe36c4f4
JB
129572003-01-30 Jim Blandy <jimb@redhat.com>
12958
12959 * symfile.c (find_separate_debug_file): Assert that the objfile's
12960 directory name we compute ends with a slash, and then assume that
12961 that's so everywhere we use it.
12962
cb741690
DJ
129632003-01-30 Daniel Jacobowitz <drow@mvista.com>
12964
12965 * valops.c (value_assign): Flush frame cache after stores to memory
12966 also.
12967
96ee5227
AC
129682003-01-30 Andrew Cagney <ac131313@redhat.com>
12969
12970 * Makefile.in (mon960-rom.o): Delete rule.
12971 * mon960-rom.c: Delete file.
12972
7f6104a9
AC
129732003-01-30 Andrew Cagney <ac131313@redhat.com>
12974
12975 * d10v-tdep.c: Include "frame-unwind.h".
12976 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12977 list.
12978 (next_addr, uses_frame): Delete.
12979 (struct d10v_unwind_cache): Define.
12980 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12981 Use info instead of next_addr and uses_frame globals.
12982 (d10v_frame_init_saved_regs): Delete function.
12983 (d10v_init_extra_frame_info): Delete function.
12984 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12985 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12986 init_frame_pc or frame_saved_pc.
12987 (d10v_pop_frame): Delete function.
12988 (do_d10v_pop_frame): Delete function.
12989 (d10v_frame_chain): Delete function.
12990 (d10v_frame_chain_valid): Delete function.
12991 (d10v_frame_pc_unwind): New function.
12992 (d10v_frame_id_unwind): New function.
12993 (saved_regs_unwinder): New function.
12994 (d10v_frame_register_unwind): New function.
12995 (d10v_frame_pop): New function.
12996 (d10v_frame_unwind): New variable.
12997 (d10v_frame_p): New function.
12998 (d10v_frame_saved_pc): Delete function.
12999 * Makefile.in (d10v-tdep.o): Update dependencies.
13000
cad2e848
JB
130012003-01-30 J. Brobecker <brobecker@gnat.com>
13002
13003 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13004 causing some regressions due to a change in the default value
13005 for this macro.
13006
af34e669
DJ
130072003-01-29 Richard Henderson <rth@redhat.com>
13008 Elena Zannoni <ezannoni@redhat.com>
13009 Daniel Jacobowitz <drow@mvista.com>
13010
13011 Fix PR gdb/961.
8ffd9b1b 13012 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13013 variables.
13014 (RANGES_SECTION): New.
13015 (dwarf_ranges_buffer): New variable.
13016 (struct comp_unit_head): Add member "die".
13017 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13018 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13019 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13020 (dwarf2_locate_sections): Likewise.
13021 (dwarf2_build_psymtabs): Read .debug_ranges.
13022 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13023 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13024 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13025 Look for DW_AT_ranges and return the bounding box.
13026
baa93fa6
CF
130272003-01-29 Brian Ford <ford@vss.fsi.com>
13028
13029 * win32-nat.c (cygwin_pid): Removed as unused.
13030 (child_attach): Try fall back to Cygwin pid.
13031
c63f977f
JB
130322003-01-29 Jim Blandy <jimb@redhat.com>
13033
13034 * objfiles.h (struct objfile): Doc fix.
13035
d62d1979
AC
130362003-01-29 Andrew Cagney <ac131313@redhat.com>
13037
13038 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13039 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13040 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13041 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13042 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13043 (FRAME_SAVED_PC): Change to a function with predicate.
13044 * gdbarch.h, gdbarch.c: Re-generate.
13045
1ae18a04
AC
130462003-01-28 Andrew Cagney <ac131313@redhat.com>
13047
52287340
AC
13048 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13049
1ae18a04
AC
13050 * complaints.c (complain): Delete function.
13051 * complaints.h (struct deprecated_complaint): Delete definition.
13052 (complain): Delete declaration.
13053
f2c16bd6
KB
130542003-01-28 Kevin Buettner <kevinb@redhat.com>
13055
13056 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13057 dummy frames.
13058
a94dd1fd
AC
130592003-01-27 Andrew Cagney <ac131313@redhat.com>
13060
13061 * sentinel-frame.h, sentinel-frame.c: New files.
13062 * Makefile.in (frame.o): Update dependencies.
13063 (SFILES): Add sentinel-frame.c.
13064 (sentinel_frame_h): Define.
13065 (COMMON_OBS): Add sentinel-frame.o.
13066 (sentinel-frame.o): Specify dependencies.
13067 * frame.c: Include "sentinel-frame.h".
13068 (frame_register_unwind): Rewrite assuming that there is always a a
13069 ->next frame.
13070 (frame_register, generic_unwind_get_saved_register): Ditto.
13071 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13072 (create_sentinel_frame, unwind_to_current_frame): New functions.
13073 (get_current_frame): Rewrite using create_sentinel_frame and
13074 unwind_to_current_frame. When possible, always create a frame.
13075 (create_new_frame): Set next to the sentinel frame.
13076 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13077 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13078 ID cache when necessary.
13079 (frame_saved_regs_id_unwind): Use frame_relative_level.
13080 (deprecated_generic_get_saved_register): Use frame_relative_level,
13081 get_frame_saved_regs, get_frame_pc, get_frame_base and
13082 get_next_frame.
13083 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13084 frame_register.
13085
5378adc4
DJ
130862003-01-27 Daniel Jacobowitz <drow@mvista.com>
13087
13088 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13089
51ee2ddc
DJ
130902003-01-27 Daniel Jacobowitz <drow@mvista.com>
13091
13092 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13093 (maintenance_set_profile_cmd): Use error () instead of warning ().
13094
d9feb4e7
DJ
130952003-01-27 Daniel Jacobowitz <drow@mvista.com>
13096
13097 * configure.in: Check that -pg works if using --enable-profiling.
13098 Check for monstartup and _mcleanup regardless of --enable-profiling.
13099 * maint.c: Check for monstartup and _mcleanup before using them.
13100 * config.in: Regenerated.
13101 * configure: Regenerated.
13102
2d188dd3
NC
131032003-01-24 Nick Clifton <nickc@redhat.com>
13104
13105 * Add sh2e support:
13106
13107 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13108
13109 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13110 (sh2e_show_regs): New.
13111 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13112 * config/sh/tm-sh.h: Added sh2e to comments.
13113
cb3c37b2
JB
131142003-01-23 Jim Blandy <jimb@redhat.com>
13115
13116 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13117 symbols found)" message here; we haven't checked for a separate
13118 debug info file yet, so we don't know yet.
13119 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13120 we've looked everywhere. Also, there's no need to print a special
13121 message when we're loading the separate debug info file: the one
13122 symbol_file_add prints is fine.
13123
5b5d99cf
JB
131242003-01-23 Alexander Larsson <alexl@redhat.com>
13125 Jim Blandy <jimb@redhat.com>
13126
13127 Add support for executables whose debug info has been separated
13128 out into a separate file, leaving only a link behind.
13129 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13130 and separate_debug_objfile_backlink.
13131 (put_objfile_before): New declaration.
13132 * symfile.c: #include "filenames.h".
13133 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13134 debug info in a separate file, read that, too. Save the addrs
13135 argument, so we can use it again to read the separated debug info;
13136 syms_from_objfile modifies the table we pass it.
13137 (reread_symbols): After re-reading an objfile, call
13138 reread_separate_symbols to refresh its separate debug info
13139 objfile, if it has one.
13140 (reread_separate_symbols, find_separate_debug_file,
13141 get_debug_link_info, separate_debug_file_exists): New functions.
13142 (debug_file_directory): New global var.
13143 (_initialize_symfile): Initialize debug_file_directory, and
13144 provide the new `set debug-file-directory' command to let the user
13145 change it.
13146 * objfiles.c (free_objfile): If this objfile has its debug info in
13147 a separate objfile, free that one too. If this is itself a
13148 separate debug info objfile, clear our parent's backlink.
13149 (put_objfile_before): New function.
13150 * utils.c (gnu_debuglink_crc32): New function.
13151 * defs.h (gnu_debuglink_crc32): New declaration.
13152 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13153 * configure.in: Handle --with-separate-debug-dir config option.
13154 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13155 * acconfig.h (DEBUGDIR): New macro.
13156 * configure, aclocal.m4, config.in: Regenerated.
13157
7e8580c1
JB
131582003-01-22 Jim Blandy <jimb@redhat.com>
13159
7904e09f
JB
13160 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13161 like the old symbol_file_add, but taking new arguments: you can
13162 now pass in either a `struct section_addr_info' list to say where
13163 each section is loaded, or a `struct section_offsets' table. Pass
13164 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13165 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13166 with the appropriate quiescent values for the new arguments.
13167
7e8580c1
JB
13168 * symfile.c: #include "gdb_assert.h".
13169 (syms_from_objfile): Add the ability to pass in a section offset
13170 table directly, as an alternative to the section_addr_info table.
13171 Document arguments better.
13172 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13173 * symfile.h (syms_from_objfile): Update declaration.
13174 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13175 syms_from_objfile.
13176 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13177
d28f9cdf
DJ
131782003-01-22 Daniel Jacobowitz <drow@mvista.com>
13179
13180 Original patch by Tom Tromey <tromey@cygnus.com> and
13181 Jason Molenda <jmolenda@apple.com>.
13182 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13183 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13184 * NEWS: Mention profiling.
13185 * configure.in (--enable-gdbtk): Fix typo.
13186 (--enable-profiling): New. Set PROFILE_CFLAGS.
13187 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13188 Fill in function.
13189 (profiling_state): New variable.
13190 (mcleanup_wrapper): New function.
13191 (_initialize_maint): Remove NOTYET, fix call to
13192 add_setshow_boolean_cmd for "maint set profile".
13193 * configure: Regenerated.
13194
df21e465
MH
131952003-01-21 Martin M. Hunt <hunt@redhat.com>
13196
13197 * Makefile.in (install-gdbtk): Install PNG images too.
13198
73c1f219
AC
131992003-01-21 Andrew Cagney <ac131313@redhat.com>
13200
13201 * exec.c (text_start): Delete global variable.
13202 (exec_file_attach): Make text_start local to the function.
13203 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13204 * valops.c (hand_function_call): Delete code that handles
13205 BEFORE_TEXT_END and AFTER_TEXT_END.
13206 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13207 of CALL_DUMMY_LOCATION.
13208 * gdbarch.c: Regenerate.
13209 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13210 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13211 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13212 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13213 (text_end): Delete extern declaration.
13214
eb4f72c5
AC
132152003-01-21 Andrew Cagney <ac131313@redhat.com>
13216
13217 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13218 * blockframe.c (backtrace_below_main): Move to "frame.c".
13219 (frame_chain_valid): Delete check for backtrace_below_main.
13220 (_initialize_blockframe): Delete initialization, move ``set
13221 backtrace-below-main'' command to "frame.c".
13222 (do_flush_frames_sfunc): Delete function.
13223 * frame.c: Include "command.h" and "gdbcmd.h".
13224 (frame_type_from_pc): New function.
13225 (create_new_frame): Use frame_type_from_pc.
13226 (legacy_get_prev_frame): New function.
13227 (get_prev_frame): Rewrite. When an old style frame, call
13228 legacy_get_prev_frame. Otherwize, unwind the PC first.
13229 (_initialize_frame): Add ``set backtrace-below-main'' command.
13230 * Makefile.in (frame.o): Update dependencies.
13231
778ce8cc
AC
132322003-01-19 Andrew Cagney <ac131313@redhat.com>
13233
13234 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13235 DEPRECATED_REGISTERS_INFO.
13236
01c193c8
AC
132372003-01-19 Andrew Cagney <ac131313@redhat.com>
13238
13239 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13240 Maintainers'. Update `Various Maintainers'.
13241
dedc2a2b
AC
132422003-01-19 Andrew Cagney <ac131313@redhat.com>
13243
13244 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13245 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13246 Suppress actual parameters when `-'.
13247 * gdbarch.h, gdbarch.c: Regenerate.
13248
b7261c70
AC
132492003-01-19 Andrew Cagney <ac131313@redhat.com>
13250
13251 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13252 code handling dummy frames.
13253
dbe9fe58
AC
132542003-01-19 Andrew Cagney <ac131313@redhat.com>
13255
13256 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13257 (struct frame_unwind): Add field pop.
13258 * frame.h (frame_pop): Declare.
13259 * frame.c (frame_saved_regs_pop): New function.
13260 (trad_frame_unwinder): Add frame_saved_regs_pop.
13261 (frame_pop): New function.
13262 * dummy-frame.c (dummy_frame_pop): New function.
13263 (discard_innermost_dummy): New function.
13264 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13265 (dummy_frame_unwind): Add dummy_frame_pop.
13266 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13267 * valops.c (hand_function_call): Ditto.
13268 * stack.c (return_command): Ditto.
13269
570b8f7c
AC
132702003-01-18 Andrew Cagney <ac131313@redhat.com>
13271
13272 * cris-tdep.c: Fix function declaration indentation.
13273 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13274 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13275 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13276 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13277 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13278 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13279
132802003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13281
13282 * README (Unpacking and Installation -- quick overview):
13283 Warn against ".../gdb-5.3/gdb/configure".
13284
494cca16
AC
132852003-01-18 Andrew Cagney <ac131313@redhat.com>
13286
13287 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13288 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13289 (struct frame_unwind): Declare opaque.
13290 (dummy_frame_p): Declare function.
13291 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13292 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13293 * dummy-frame.c: Include "frame-unwind.h".
13294 (dummy_frame_p): New function.
13295 (dummy_frame_unwind): New variable.
13296 * frame.c: Include "frame-unwind.h".
13297 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13298 to use the new unwind field.
13299 (set_unwind_by_pc): Delete function.
13300 (create_new_frame, get_prev_frame): Set unwind field using
13301 frame_unwind_find_by_pc.
13302 (trad_frame_unwind, trad_frame_unwinder): New variables.
13303 * frame.h (trad_frame_unwind): Declare variable.
13304 (frame_id_unwind_ftype): Delete declaration.
13305 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13306 (struct frame_unwind): Declare opaque.
13307 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13308 register_unwind with a single unwind pointer.
13309 * frame-unwind.h, frame-unwind.c: New files.
13310 * Makefile.in (SFILES): Add frame-unwind.c.
13311 (frame_unwind_h): Define.
13312 (COMMON_OBS): Add frame-unwind.o.
13313 (frame-unwind.o): Specify dependencies.
13314 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13315
4efb68b1
AC
133162003-01-18 Andrew Cagney <ac131313@redhat.com>
13317
13318 * ada-valprint.c: Eliminate PTR.
13319 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13320 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13321 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13322 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13323 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13324 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13325 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13326
a84d24ee
AC
133272003-01-17 Andrew Cagney <ac131313@redhat.com>
13328
762f08a3
AC
13329 * main.c (captured_main): Don't use PTR.
13330 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13331 * gdbtypes.c (lookup_primitive_typename): Ditto.
13332 (lookup_struct_elt_type): Ditto.
13333 * f-valprint.c (info_common_command): Ditto.
13334 (list_all_visible_commons): Ditto.
13335 * jv-typeprint.c (java_type_print_base): Ditto.
13336
a84d24ee
AC
13337 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13338 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13339 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13340 i386-interix-nat.c and i386-interix-tdep.c. Rename
13341 m68klinux-nat.c and m68klinux-tdep.c. Rename
13342 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13343 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13344 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13345 * main.c (captured_main): Use xfree, not free.
13346
c170fb60
AC
133472003-01-16 Andrew Cagney <ac131313@redhat.com>
13348
13349 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13350 ID back using a parameter.
13351 * frame.c (frame_id_unwind): Update call.
13352 (frame_saved_regs_id_unwind): Update.
13353 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13354 * dummy-frame.h (struct frame_id): Add opaque declaration.
13355 (dummy_frame_id_unwind): Update declaration.
13356
867f3898
AC
133572003-01-15 Andrew Cagney <ac131313@redhat.com>
13358
13359 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13360
40622be8 133612003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13362
40622be8 13363 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13364
ae66c1fc
EZ
133652003-01-14 Elena Zannoni <ezannoni@redhat.com>
13366
997b089a 13367 Fix PR gdb/898
ae66c1fc
EZ
13368 * breakpoint.c (until_break_command): Add new argument. Use it to
13369 decide whether to stop only at the current frame or not.
13370 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13371 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13372 call.
13373 (advance_command): New function.
13374 (_initialize_infcmd): Update help string for 'until' command.
13375 Add new 'advance' command.
13376
a04257e6
DC
133772003-01-14 David Carlton <carlton@math.stanford.edu>
13378
13379 * linespec.c (decode_line_1): Normalize comments.
13380 (set_flags): Ditto.
13381 (locate_first_half): Ditto.
13382 (decode_compound): Ditto.
13383 (symtab_from_filename): Ditto.
13384 (decode_all_digits): Ditto.
13385 (decode_dollar): Ditto.
13386 (find_methods): Ditto.
13387 (find_toplevel_char): Ditto.
13388
1bac305b
AC
133892003-01-13 Andrew Cagney <ac131313@redhat.com>
13390
13391 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13392 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13393 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13394 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13395 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13396 * language.c, language.h, m32r-tdep.c: Update copyright.
13397 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13398 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13399 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13400 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13401 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13402 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13403
25caa7a8
EZ
134042003-01-13 Elena Zannoni <ezannoni@redhat.com>
13405
13406 * stabsread.h (process_later, resolve_cfront_continuation):
13407 Obsolete.
13408 Update copyright years.
13409 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13410 Update copyright year.
13411 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13412 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13413 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13414 Update copyright year.
13415 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13416 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13417 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13418 (parse_partial_symbols): Obsolete cfront support.
13419 * stabsread.c
13420 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13421 macros.
13422 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13423 read_cfront_baseclasses, read_cfront_member_functions,
13424 resolve_cfront_continuation,read_cfront_static_fields,
13425 copy_cfront_struct_fields): Obsolete functions.
13426 (define_symbol, read_one_struct_field): Obsolete cfront support.
13427 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13428 Update Copyright year.
13429
7789c6f5
EZ
134302003-01-13 Elena Zannoni <ezannoni@redhat.com>
13431
13432 * stack.c (print_frame_info, print_stack_frame_base_stub,
13433 print_stack_frame_base, show_and_print_stack_frame_stub,
13434 show_and_print_stack_frame, print_only_stack_frame_stub,
13435 print_only_stack_frame): Delete functions.
13436 (print_stack_frame_stub): Call print_frame_info instead of
13437 print_frame_info_base.
13438 (print_frame_info_base): Rename to print_frame_info.
13439 (backtrace_command_1): Call print_frame_info, instead of
13440 print_frame_info_base.
13441 (current_frame_command): Call print_stack_frame, instead of
13442 print_only_stack_frame.
13443 (frame_command): Call print_stack_frame, instead of
13444 show_and_print_stack_frame.
13445 (up_command): Ditto.
13446 (down_command): Ditto.
13447 * frame.h (print_only_stack_frame): Delete prototype.
13448 * infrun.c (normal_stop): Call print_stack_frame, instead of
13449 show_and_print_stack_frame.
13450 * thread.c (info_threads_command): Call print_stack_frame, instead
13451 of print_only_stack_frame.
13452
3f5a3016
AC
134532003-01-13 Andrew Cagney <ac131313@redhat.com>
13454
d99ba314
AC
13455 * README (Graphical interface to GDB): Update URL. Point at
13456 gdb/links/.
13457
3f5a3016
AC
13458 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13459 version match.
13460
083ae935
DJ
134612003-01-13 Daniel Jacobowitz <drow@mvista.com>
13462
13463 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13464 lines.
13465
5365276c
DJ
134662003-01-13 Daniel Jacobowitz <drow@mvista.com>
13467
13468 * thread-db.c (attach_thread): Prototype.
13469 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13470 thread information (ti), and valid flags (th_valid, ti_valid).
13471 (attach_thread): Move target_pid_to_str call to after the thread
13472 is added to GDB's list. Initialize the cache.
13473 (thread_get_info_callback, thread_db_map_id2thr)
13474 (thread_db_get_info): New functions.
13475 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13476 (thread_db_store_registers, thread_db_thread_alive)
13477 (thread_db_get_thread_local_address): Use them.
13478 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13479 of calling error() for threads in unknown state.
13480
13481 (clear_lwpid_callback): New function.
13482 (thread_db_resume): Use it to clear the cache.
13483
9fc30b6b
DJ
134842003-01-13 Daniel Jacobowitz <drow@mvista.com>
13485
13486 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13487 (resume_callback): Remove dead code.
13488
8f871025
AC
134892003-01-13 Andrew Cagney <ac131313@redhat.com>
13490
13491 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13492 predicate.
13493 * gdbarch.h, gdbarch.c: Regenerate.
13494 * stack.c (frame_info): Only initialize the saved registers when
13495 FRAME_INIT_SAVED_REGS_P.
13496 * frame.c (frame_saved_regs_register_unwind): Assert
13497 FRAME_INIT_SAVED_REGS_P.
13498 (deprecated_generic_get_saved_register): Ditto.
13499
3f565f1e
DJ
135002003-01-13 Daniel Jacobowitz <drow@mvista.com>
13501
13502 * source.c (openp): Squelch warning about "filename".
13503
072b1022
DJ
135042003-01-13 Daniel Jacobowitz <drow@mvista.com>
13505
13506 * source.c (openp): If the file does not exist don't necessarily
13507 search the path.
13508
973ccf8b
DJ
135092003-01-13 Daniel Jacobowitz <drow@mvista.com>
13510
13511 Fix PR gdb/872.
13512 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13513 (integer_types_same_name_p): New function.
13514 (rank_one_type): Use it.
13515 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13516
030292b7
DJ
135172003-01-13 Daniel Jacobowitz <drow@mvista.com>
13518
13519 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13520 variables.
13521 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13522 * configure.in: Add --with-sysroot.
13523 * configure: Regenerated.
13524 * main.c (gdb_sysroot): New variable.
13525 (captured_main): Initialize gdb_sysroot.
13526 * defs.h (gdb_sysroot): New extern declaration.
13527 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13528
afb5d334
MC
135292003-01-12 Michael Chastain <mec@shout.net>
13530
13531 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13532
751ceeb4
MC
135332003-01-12 Michael Chastain <mec@shout.net>
13534
13535 * top.c (print_gdb_version): Bump copyright year to 2003.
13536
94cd26f8
DC
135372003-01-12 David Carlton <carlton@bactrian.org>
13538
13539 * linespec.c (symtab_from_filename): Rename variable 's' to
13540 'file_symtab'.
13541
1ce79225
AC
135422003-01-12 Andrew Cagney <ac131313@redhat.com>
13543
13544 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13545 dummy frame.
13546 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13547
fa1fd571
AC
135482003-01-12 Andrew Cagney <ac131313@redhat.com>
13549
13550 * d10v-tdep.c: Include "gdb_assert.h".
13551 (d10v_store_return_value): Rewrite to match current interface.
13552 (d10v_extract_struct_value_address): Ditto.
13553 (d10v_extract_return_value): Ditto.
13554 (d10v_gdbarch_init): Set store_restore_value,
13555 extract_struct_value_address and extract_return_value.
13556
68b8d23e
JB
135572003-01-12 J. Brobecker <brobecker@gnat.com>
13558
13559 * hpread.c (set_namestring): New procedure replacing the
13560 SET_NAMESTRING macro.
13561 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13562 by calls to set_namestring.
13563
135642003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13565
13566 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13567 a compilation warning.
13568 (hpread_process_one_debug_symbol): Likewise.
13569
88d262ca
DC
135702003-01-10 David Carlton <carlton@math.stanford.edu>
13571
13572 * linespec.c (decode_line_1): Rename variable 's' to
13573 'file_symtab'.
13574 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13575 (decode_dollar): Ditto.
13576 (decode_variable): Ditto.
13577 (symbol_found): Ditto.
13578
86669319
MC
135792003-01-09 Michael Chastain <mec@shout.net>
13580
13581 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13582
616a9dc4
CV
135832003-01-07 Corinna Vinschen <vinschen@redhat.com>
13584
13585 * win32-nat.c (set_process_privilege): New function.
13586 (child_attach): Call set_process_privilege() to enable the
13587 SE_DEBUG_NAME user privilege if available in process token.
13588
3269bcfa
JB
135892003-01-10 J. Brobecker <brobecker@gnat.com>
13590
13591 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13592 compilation error in the previous revision.
13593
2b0ee454
DC
135942003-01-09 David Carlton <carlton@math.stanford.edu>
13595
13596 * linespec.c: Update copyright.
13597
b3ba1b44
DJ
135982003-01-09 Daniel Jacobowitz <drow@mvista.com>
13599
13600 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13601 than inferior_ptid.
13602 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
13603
4ef3f3be
AC
136042003-01-09 Andrew Cagney <ac131313@redhat.com>
13605
479ab5a0
AC
13606 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
13607 Update comments.
13608 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
13609 (frame_saved_regs_zalloc): Update.
13610 (frame_saved_regs_register_unwind): Update.
13611 (create_new_frame): Update.
13612 (get_prev_frame): Update.
13613 (frame_extra_info_zalloc): Update.
13614 (deprecated_get_frame_saved_regs): Update.
13615 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
13616 * cris-tdep.c: Update comment.
13617
bde58177
AC
13618 * somsolib.h: Fix function indentation.
13619 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
13620 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
13621 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
13622 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
13623 * somsolib.c, inftarg.c: Remove assignment in if conditional.
13624
4ef3f3be
AC
13625 * infrun.c (follow_fork): Use ISO C definition.
13626 * expprint.c (print_subexp): Use xfree instead of free.
13627 * charset.c: Include "gdb_string.h" instead of <string.h>.
13628 (register_iconv_charsets): Use ISO C definition.
13629 (host_charset, target_charset): Ditto.
13630 * Makefile.in (charset.o): Update dependencies.
13631 (mi-cmd-env.o): Update dependencies.
13632
1c615f7a
AC
136332003-01-08 Andrew Cagney <cagney@redhat.com>
13634
13635 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
13636 get_frame_base.
13637
c9a1dc08
AC
136382003-01-08 Andrew Cagney <ac131313@redhat.com>
13639
13640 * gdb_mbuild.sh: Add --keep option. When specified, keep the
13641 build directories. Save edited gdb output in Mbuild.log. If a
13642 build fails, remove any final GDB executable.
13643
dbad9d94
AC
136442003-01-08 Andrew Cagney <ac131313@redhat.com>
13645
13646 * gdb_mbuild.sh: Edit the output of `maint print architecture'
13647 replacing hex constants with function names and stripping leading
13648 file name directory prefixes.
13649
8d357cca
AC
136502003-01-08 Andrew Cagney <cagney@redhat.com>
13651
13652 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
13653 get_frame_base.
13654
bca02a8a
DC
136552003-01-08 David Carlton <carlton@math.stanford.edu>
13656
13657 * linespec.c (decode_line_1): Move code into decode_variable.
13658 (decode_variable): New function.
13659
7f8ab3a0
AC
136602003-01-08 Andrew Cagney <ac131313@redhat.com>
13661
13662 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
13663
7b5849cc
AC
136642003-01-08 Andrew Cagney <cagney@redhat.com>
13665
13666 * cris-tdep.c (cris_frame_init_saved_regs): Use
13667 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
13668 saved_regs buffer.
13669 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
13670 (sh64_nofp_frame_init_saved_regs): Ditto.
13671 (sh_fp_frame_init_saved_regs): Ditto.
13672 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
13673 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13674 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13675 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13676
72a5efb3
DJ
136772003-01-08 Daniel Jacobowitz <drow@mvista.com>
13678
13679 * minsyms.c (lookup_minimal_symbol): Update comment.
13680 (lookup_minimal_symbol_text): Update comment. Use the hash table.
13681 (lookup_minimal_symbol_solib_trampoline): Likewise.
13682
11c02a10
AC
136832003-01-08 Andrew Cagney <cagney@redhat.com>
13684
aab3ea25
AC
13685 * d10v-tdep.c (d10v_init_extra_frame_info): Use
13686 frame_relative_level.
13687
da50a4b7
AC
13688 * alpha-tdep.c: Use get_frame_extra_info.
13689 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13690 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
13691 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13692 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
13693
11c02a10
AC
13694 * alpha-tdep.c: Use get_next_frame.
13695 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13696 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13697 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
13698 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
13699 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
13700 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
13701 * xstormy16-tdep.c: Ditto.
8ffd9b1b 13702
1e2330ba
AC
137032003-01-07 Andrew Cagney <cagney@redhat.com>
13704
13705 * alpha-tdep.c: Use get_frame_base.
13706 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13707 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13708 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13709 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
13710 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
13711 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13712 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
13713 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 13714
2d75187b
AC
137152003-01-07 Andrew Cagney <cagney@redhat.com>
13716
13717 * frame.c (deprecated_get_frame_context): New function.
13718 (deprecated_set_frame_context): New function.
13719 * frame.h (deprecated_get_frame_context): Declare.
13720 (deprecated_set_frame_context): Declare.
13721 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
13722 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 13723
483d36b2
AC
137242003-01-07 Andrew Cagney <cagney@redhat.com>
13725
13726 * frame.c (deprecated_set_frame_next_hack): New function.
13727 (deprecated_set_frame_prev_hack): New function.
13728 * frame.h (deprecated_set_frame_next_hack): Declare.
13729 (deprecated_set_frame_prev_hack): Declare.
13730 * mcore-tdep.c (analyze_dummy_frame): Use
13731 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
13732 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13733
14e91ac5
DC
137342003-01-07 David Carlton <carlton@math.stanford.edu>
13735
13736 * linespec.c (decode_line_1): Move code into decode_dollar.
13737 (decode_dollar): New function.
13738
b0c6b05c
AC
137392003-01-07 Andrew Cagney <cagney@redhat.com>
13740
13741 * arm-tdep.c (arm_init_extra_frame_info): Use
13742 deprecated_update_frame_base_hack.
13743 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
13744 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
13745 (fix_frame_pointer): Ditto.
13746 (mn10300_analyze_prologue): Ditto.
13747
a00a19e9
AC
137482003-01-07 Andrew Cagney <cagney@redhat.com>
13749
13750 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
13751 extra_info using frame_extra_info_zalloc.
13752 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
13753 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
13754 (sh64_init_extra_frame_info): Ditto.
13755 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
13756 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
13757 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
13758 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
13759 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
13760 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
13761 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
13762 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
13763 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
13764 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
13765 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
13766 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
13767
13768 * mn10300-tdep.c (analyze_dummy_frame): Use
13769 deprecated_set_frame_extra_info_hack.
13770 * mcore-tdep.c (analyze_dummy_frame): Ditto.
13771
1fb4c65b
JB
137722003-01-07 J. Brobecker <brobecker@gnat.com>
13773
13774 * mdebugread.c (parse_symbol): Skip stProc entries which storage
13775 class is not scText. These do not define "real" procedures.
13776 (parse_partial_symbols): Likewise.
13777
9fe7d6bf
MS
137782003-01-06 Michael Snyder <msnyder@redhat.com>
13779
13780 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
13781
f6c609c4
AC
137822003-01-06 Andrew Cagney <ac131313@redhat.com>
13783
13784 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
13785 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
13786 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
13787 deprecated_frame_xmalloc_with_cleanup.
13788 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
13789 deprecated_frame_xmalloc.
13790 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
13791 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
13792
d995ff4b
AC
137932003-01-06 Andrew Cagney <cagney@redhat.com>
13794
84dc46cb
AC
13795 * x86-64-linux-tdep.c: Include "osabi.h".
13796 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
13797
d995ff4b
AC
13798 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
13799
66140c26
AC
138002003-01-06 Andrew Cagney <cagney@redhat.com>
13801
13802 * MAINTAINERS (Target Instruction Set Architectures): Update
13803 arm-elf. Can be built with -Werror, has been multiarched.
13804
13805 * value.h (unpack_long): Make buffer parameter constant.
13806 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
13807 * scm-lang.h (scm_parse): Ditto.
13808 * defs.h (extract_typed_address, extract_address): Ditto.
13809 (extract_long_unsigned_integer): Ditto.
13810 * inferior.h (unsigned_pointer_to_address): Ditto.
13811 (signed_pointer_to_address): Ditto.
13812 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
13813 * gdbarch.h, gdbarch.c: Regenerate.
13814 * findvar.c (extract_long_unsigned_integer): Update.
13815 (extract_address): Update.
13816 (extract_typed_address): Update.
13817 (unsigned_pointer_to_address): Update.
13818 * values.c (unpack_long): Update.
13819 (unpack_double): Update.
13820 (unpack_pointer): Update.
13821 (unpack_field_as_long): Update.
13822 * d10v-tdep.c (d10v_pointer_to_address): Update.
13823 * avr-tdep.c (avr_pointer_to_address): Update.
13824 * scm-lang.c (scm_unpack): Update.
13825 * findvar.c (signed_pointer_to_address): Update.
13826
b089b3da
ML
138272003-01-06 Michal Ludvig <mludvig@suse.cz>
13828
8ffd9b1b 13829 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
13830 since it is in i386-tdep.c.
13831
aff87235
JB
138322003-01-06 J. Brobecker <brobecker@gnat.com>
13833
13834 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13835 failure introduced in the previous change.
13836
34f5e845
MC
138372003-01-05 Michael Chastain <mec@shout.net>
13838
13839 * README: Remove references to deleted remote-*.c files:
13840 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13841 remote-nrom.c, remote-os9k.c, remote-udi.c.
13842
28bcfd30
MK
138432003-01-05 Mark Kettenis <kettenis@gnu.org>
13844
13845 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13846 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13847 i386_get_longjmp_target.
13848
15a5b3ee
AC
138492003-01-05 Andrew Cagney <ac131313@redhat.com>
13850
13851 * arm-tdep.c (prologue_cache): Change to a pointer.
13852 (_initialize_arm_tdep): Allocate prologue_cache.
13853 (check_prologue_cache): Update.
13854 (save_prologue_cache): Update.
13855 (arm_gdbarch_init): Update.
13856
c263362b
DJ
138572003-01-04 Daniel Jacobowitz <drow@mvista.com>
13858
13859 * stabsread.c (update_method_name_from_physname): Call complaint()
13860 instead of error.
13861
51603483
DJ
138622003-01-04 Daniel Jacobowitz <drow@mvista.com>
13863
13864 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13865 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13866 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13867
13868 * blockframe.c: Include "gdbcmd.h" and "command.h".
13869 (backtrace_below_main): New variable.
13870 (file_frame_chain_valid, func_frame_chain_valid)
13871 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13872 (generic_func_frame_chain_valid): Remove functions.
13873 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13874 (_initialize_blockframe): New function.
13875 * Makefile.in (blockframe.o): Update dependencies.
13876 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13877 comment. Call frame_chain_valid ().
13878 * frame.h: Remove old prototypes. Add prototype for
13879 frame_chain_valid and update comments to match.
13880 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13881 Remove old comment.
13882 * gdbarch.h: Regenerated.
13883 * gdbarch.c: Regenerated.
13884
13885 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13886 set_gdbarch_frame_chain_valid.
13887 * avr-tdep.c (avr_gdbarch_init): Likewise.
13888 * cris-tdep.c (cris_gdbarch_init): Likewise.
13889 * frv-tdep.c (frv_gdbarch_init): Likewise.
13890 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13891 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13892 (i386_nw_init_abi): Likewise.
13893 (i386_gdbarch_init): Likewise.
13894 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13896 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13897 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13898 * mips-tdep.c (mips_gdbarch_init): Likewise.
13899 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13900 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13901 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13902 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13903 * s390-tdep.c (s390_gdbarch_init): Likewise.
13904 * sh-tdep.c (sh_gdbarch_init): Likewise.
13905 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13906 * v850-tdep.c (v850_gdbarch_init): Likewise.
13907 * vax-tdep.c (vax_gdbarch_init): Likewise.
13908 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13909
13910 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13911 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13912 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13913 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13914 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13915 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13916 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13917 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13918
b00a8037
DJ
139192002-01-04 Daniel Jacobowitz <drow@mvista.com>
13920
13921 * Makefile.in (acconfig_h): Remove incorrect macro.
13922 (config_h): Define.
13923 (osabi.o): Update dependencies.
13924 * configure.tgt: Set gdb_osabi based on target triplet.
13925 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13926 * configure: Regenerated.
13927 * config.in: Regenerated.
13928 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13929 (GDB_OSABI_DEFAULT): Define if not already defined.
13930 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13931 (set_osabi_string): New variables.
13932 (gdbarch_register_osabi): Add new OS ABI to
13933 gdb_osabi_available_names.
13934 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13935 (set_osabi, show_osabi): New functions.
13936 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13937
4be87837
DJ
139382003-01-04 Daniel Jacobowitz <drow@mvista.com>
13939
13940 * arch-utils.c (gdbarch_info_init): Set osabi to
13941 GDB_OSABI_UNINITIALIZED.
13942 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13943 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13944 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13945 * gdbarch.c: Regenerated.
13946 * gdbarch.h: Regenerated.
13947 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13948 there's no BFD.
13949 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13950 * osabi.h (enum gdb_osabi): Move to defs.h.
13951 (gdbarch_init_osabi): Update prototype.
13952 * defs.h (enum gdb_osabi): Moved here.
13953 * Makefile.in: Update dependencies.
13954
13955 * alpha-tdep.h: Don't include "osabi.h".
13956 (struct gdbarch_tdep): Remove osabi member.
13957 * alpha-tdep.c: Include "osabi.h".
13958 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13959 iterate over arches. Update call to gdbarch_init_osabi.
13960 (alpha_dump_tdep): Don't dump osabi.
13961 * alpha-linux-tdep.c: Include "osabi.h".
13962 * alpha-osf1-tdep.c: Include "osabi.h".
13963 * alphafbsd-tdep.c: Include "osabi.h".
13964 * alphanbsd-tdep.c: Include "osabi.h".
13965
13966 * arm-tdep.h: Don't include "osabi.h".
13967 (struct gdbarch_tdep): Remove osabi member.
13968 * arm-tdep.c: Include "osabi.h".
13969 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13970 iterate over arches. Update call to gdbarch_init_osabi.
13971 (arm_dump_tdep): Don't dump osabi.
13972 * arm-linux-tdep.c: Include "osabi.h".
13973 * armnbsd-tdep.c: Include "osabi.h".
13974
13975 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13976 Update call to gdbarch_init_osabi.
13977
13978 * i386-tdep.h: Don't include "osabi.h".
13979 (struct gdbarch_tdep): Remove osabi member.
13980 * i386-tdep.c: Include "osabi.h".
13981 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13982 iterate over arches. Update call to gdbarch_init_osabi.
13983 (i386_dump_tdep): Don't dump osabi.
13984 * i386-linux-tdep.c: Include "osabi.h".
13985 * i386-sol2-tdep.c: Include "osabi.h".
13986 * i386bsd-tdep.c: Include "osabi.h".
13987 * i386gnu-tdep.c: Include "osabi.h".
13988 * i386ly-tdep.c: Include "osabi.h".
13989 * i386nbsd-tdep.c: Include "osabi.h".
13990 * i386obsd-tdep.c: Include "osabi.h".
13991
13992 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13993 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13994 check osabi when iterating over arches. Update call to
13995 gdbarch_init_osabi.
13996 (mips_dump_tdep): Don't dump osabi.
13997
13998 * ns32k-tdep.h: Don't include "osabi.h".
13999 (struct gdbarch_tdep): Remove.
14000 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14001 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14002 allocate tdep. Update call to gdbarch_init_osabi.
14003 (ns32k_dump_tdep): Remove.
14004 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14005 * ns32knbsd-tdep.c: Include "osabi.h".
14006
14007 * ppc-tdep.h: Don't include "osabi.h".
14008 (struct gdbarch_tdep): Remove osabi member.
14009 * rs6000-tdep.c: Include "osabi.h".
14010 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14011 osabi when iterating over arches. Update call to
14012 gdbarch_init_osabi.
14013 (rs6000_dump_tdep): Don't dump osabi.
14014 * ppc-linux-tdep.c: Include "osabi.h".
14015 * ppcnbsd-tdep.c: Include "osabi.h".
14016
14017 * sh-tdep.h: Don't include "osabi.h".
14018 (struct gdbarch_tdep): Remove osabi member.
14019 * sh-tdep.c: Include "osabi.h".
14020 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14021 iterate over arches. Update call to gdbarch_init_osabi.
14022 (sh_dump_tdep): Don't dump osabi.
14023 * shnbsd-tdep.c: Include "osabi.h".
14024
14025 * sparc-tdep.c: Include "osabi.h".
14026 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14027 iterate over arches. Update call to gdbarch_init_osabi.
14028 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14029 tdep structure.
14030
14031 * vax-tdep.h: Don't include "osabi.h".
14032 (struct gdbarch_tdep): Remove.
14033 * vax-tdep.c: Include "osabi.h".
14034 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14035 iterate over arches. Don't allocate tdep. Update call
14036 to gdbarch_init_osabi.
14037 (vax_dump_tdep): Remove.
14038 (_initialize_vax_tdep): Update call to gdbarch_register.
14039
a881cf8e
DJ
140402003-01-04 Daniel Jacobowitz <drow@mvista.com>
14041
14042 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14043 entirely.
14044 (breakpoint_re_set_one): Don't fetch the value for a disabled
14045 watchpoint.
14046
1e698235
DJ
140472003-01-04 Daniel Jacobowitz <drow@mvista.com>
14048
14049 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14050 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14051 (COERCE_FLOAT_TO_DOUBLE): Remove.
14052 * gdbarch.c: Regenerate.
14053 * gdbarch.h: Regenerate.
14054 * Makefile.in: Remove value_h from gdbarch_h.
14055 * valops.c (coerce_float_to_double): New variable.
14056 (default_coerce_float_to_double): Remove.
14057 (standard_coerce_float_to_double): Remove.
14058 (value_arg_coerce): Use coerce_float_to_double.
14059 (_initialize_valops): Add "set coerce-float-to-double".
14060 * value.h (default_coerce_float_to_double): Remove prototype.
14061 (standard_coerce_float_to_double): Remove prototype.
14062
14063 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14064 prototyped.
14065 * mdebugread.c (parse_symbol): Likewise.
14066 * stabsread.c (define_symbol): Mark all functions as prototyped.
14067
14068 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14069 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14070 set_gdbarch_coerce_float_to_double.
14071 * arm-tdep.c (arm_gdbarch_init): Likewise.
14072 * frv-tdep.c (frv_gdbarch_init): Likewise.
14073 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14074 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14075 * mips-tdep.c (mips_gdbarch_init): Likewise.
14076 (mips_coerce_float_to_double): Remove.
14077 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14078 (rs6000_coerce_float_to_double): Remove.
14079 * s390-tdep.c (s390_gdbarch_init): Likewise.
14080 * sh-tdep.c (sh_gdbarch_init): Likewise.
14081 (sh_coerce_float_to_double): Remove.
14082 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14083 (sparc_coerce_float_to_double): Remove.
14084 * v850-tdep.c (v850_gdbarch_init): Likewise.
14085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14086 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14087 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14088 (hppa_coerce_float_to_double): Remove prototype.
14089 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14090
f436a26a
DJ
140912003-01-04 Daniel Jacobowitz <drow@mvista.com>
14092
14093 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14094
248f8055
DJ
140952003-01-04 Daniel Jacobowitz <drow@mvista.com>
14096
14097 Suggested by Stewart Brown <sb24@avaya.com>:
14098 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14099 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14100 (c_type_print_varspec_suffix): Likewise.
14101
72cfdc76
MK
141022003-01-04 Mark Kettenis <kettenis@gnu.org>
14103
bfd260bb
MK
14104 * configure.in: Don't set and AC_SUBST SUBDIRS.
14105 * configure: Regenerated.
14106
72cfdc76
MK
14107 * configure.in: Remove code dealing with shared libraries.
14108 * Makefile.in: Remove HLDFLAGS and HLDENV.
14109 * configure: Regenerated.
14110
c8b8a898
AC
141112003-01-04 Andrew Cagney <ac131313@redhat.com>
14112
14113 * frame.c (deprecated_frame_xmalloc): New function.
14114 (deprecated_set_frame_saved_regs_hack): New function.
14115 (deprecated_set_frame_extra_info_hack): New function.
14116 * frame.h (deprecated_frame_xmalloc): Declare.
14117 (deprecated_set_frame_saved_regs_hack): Declare.
14118 (deprecated_set_frame_extra_info_hack): Declare.
14119
14abd0fb
MK
141202003-01-04 Mark Kettenis <kettenis@gnu.org>
14121
8ee53726
MK
14122 * configure.in: Move code that provides the --enable-gdbtk option
14123 right after the code that handles the --enable-tui option, and
14124 polish it somewhat.
14125 * configure: Regenerated.
14126
14abd0fb
MK
14127 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14128 AC_CHECK_FUNCS and remove the old check for pread64.
14129 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14130 * acconfig.h (_GNU_SOURCE): Add.
14131 (HAVE_PREAD64): Remove.
14132 * configure, aclocal.m4, config.in: Regenerated.
14133
b2fb4676
AC
141342003-01-03 Andrew Cagney <ac131313@redhat.com>
14135
14136 * alpha-tdep.c: Use get_frame_saved_regs.
14137 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14138 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14139 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14140 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14141 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14142
8dcde887
MK
141432003-01-03 Mark Kettenis <kettenis@gnu.org>
14144
14145 * configure.in: Remove all use of the SUBDIRS variable; add
14146 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14147 code providing the --enable-multi-ice option, and move it right in
14148 front of the code that checks whether gdbserver is supported.
14149 Polish that too.
14150 * configure: Regenerated.
14151 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14152 @SUBDIRS@.
14153
8ccd593b
AC
141542003-01-03 Andrew Cagney <cagney@redhat.com>
14155
14156 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14157 * avr-tdep.c, cris-tdep.c: Ditto.
14158 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14159 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14160
91151a06
MK
141612003-01-03 Mark Kettenis <kettenis@gnu.org>
14162
14163 * configure.in: Remove --enable-netrom option.
14164 * configure: Regenerated.
14165
8fe84d01
MK
141662003-01-03 Mark Kettenis <kettenis@gnu.org>
14167
14168 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14169 declaration for `struct re_pattern_buffer' instead.
14170 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14171
f0394be6
JB
141722003-01-03 J. Brobecker <brobecker@gnat.com>
14173
14174 * mdebugread.c (parse_symbol): Count until the stEnd matching
14175 the structure name.
14176
27e9bf90
MK
141772003-01-02 Mark Kettenis <kettenis@gnu.org>
14178
93d331ba
MK
14179 * configure.in: Remove --with-cpu option.
14180 subscripts. Remove evil changequotes here.
14181 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14182 * config.in, configure: Regenerated.
8ffd9b1b 14183
27e9bf90
MK
14184 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14185 * configure.in: Cleanup section that sources GDB and BFD configure
14186 subscripts. Remove evil changequotes here.
14187 * config.in, configure: Regenerated.
14188
50abf9e5
AC
141892003-01-02 Andrew Cagney <ac131313@redhat.com>
14190
14191 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14192 frame accessor methods.
14193 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14194 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14195 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14196 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14197 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14198 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14199 * z8k-tdep.c: Ditto.
8ffd9b1b 14200
287c1a40
MK
142012003-01-02 Mark Kettenis <kettenis@gnu.org>
14202
f5dbc56d
MK
14203 * configure.in: Remove UI_OUT configuration code.
14204 * ada-lang.c: Update assuming UI_OUT is always true.
14205 * Makefile.in (UIOUT_CFLAGS): Remove.
14206 * configure: Regenerated.
14207 * TODO: Remove blurb about elimination of -DUI_OUT.
14208
627af7ea
MK
14209 * configure.in: Move code that provides the --enable-gdbcli,
14210 --enable-gdbmi options right before the code that handles the
14211 --enable-tui option. Polish a bit.
14212 * configure: Regenerated.
14213
06825bd1
MK
14214 * configure.in: Rewrite check for GNU regex and the
14215 --without-included regex option, and move it into the "Checks for
14216 library functions" section. This makes us use the system regex
14217 again by default on systems with version 2 of the GNU C library.
14218 This was apparently broken.
14219 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14220 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14221 * config.in, configure: Regenerated.
14222
287c1a40
MK
14223 * configure.in: Move code that provides the --enable-tui option
14224 before the "Checks for libraries" section. Polish the code
14225 somewhat and set need_curses to yes if we build the TUI. Rewrite
14226 code that looks for a library providing termcap functionality to
14227 match more closely what's done in the Readline library, and move
14228 it into to the "Checks for libraries" section.
14229 * configure: Regenerated.
14230 * Makefile.in (TERMCAP): Remove variable.
14231 * config/i386/go32.mh (TERMCAP): Remove variable.
14232
684e56bf
AC
142332003-01-02 Andrew Cagney <ac131313@redhat.com>
14234
14235 * MAINTAINERS: Mention gdb_mbuild.sh.
14236 * gdb_mbuild.sh: Rewrite.
14237
e1ea1d75
MK
142382003-01-02 Mark Kettenis <kettenis@gnu.org>
14239
14240 * configure.in: Fix typo in last change.
14241 * config.in, configure: Regenerated.
14242
1b831c93
AC
142432003-01-02 Andrew Cagney <ac131313@redhat.com>
14244
14245 * valarith.c (value_binop): Delete obsolete code and comments.
14246 * configure.host: Ditto.
14247 * buildsym.h (make_blockvector): Ditto.
14248 * buildsym.c (make_blockvector): Ditto.
14249 * defs.h (enum language): Ditto.
14250 (chill_demangle): Ditto.
14251 * elfread.c (elf_symtab_read): Ditto.
14252 * dwarfread.c (CHILL_PRODUCER): Ditto.
14253 (set_cu_language): Ditto.
14254 (handle_producer): Ditto.
14255 * expprint.c (print_subexp): Ditto.
14256 * gdbtypes.c (chill_varying_type): Ditto.
14257 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14258 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14259 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14260 (chill_varying_type): Ditto.
14261 * language.h (_LANG_chill): Ditto.
14262 * language.c (binop_result_type, integral_type): Ditto.
14263 (character_type, string_type, structured_type): Ditto.
14264 (lang_bool_type, binop_type_check): Ditto.
14265 * stabsread.h (os9k_stabs): Ditto.
14266 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14267 (define_symbol, read_type, read_struct_fields): Ditto.
14268 (read_array_type, read_enum_type, read_huge_number): Ditto.
14269 (read_range_type, start_stabs): Ditto.
14270 * symfile.c (init_filename_language_table): Ditto.
14271 (add_psymbol_with_dem_name_to_list): Ditto.
14272 * symtab.c (symbol_init_language_specific): Ditto.
14273 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14274 * symtab.h (struct general_symbol_info): Ditto.
14275 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14276 * typeprint.c (typedef_print): Ditto.
14277 * utils.c (fprintf_symbol_filtered): Ditto.
14278 * valops.c (value_cast, search_struct_field, value_slice): Delete
14279 obsolete code.
14280 (varying_to_slice): Delete function.
14281 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14282 (varying_to_slice): Delete declaration.
14283 * MAINTAINERS: Update.
14284
8bb2c122
MK
142852003-01-02 Mark Kettenis <kettenis@gnu.org>
14286
97bf5e38
MK
14287 * configure.in: Reorganize "Checks for library functions section"
14288 a bit. Remove check for `btowc' and `isascii' functions.
14289 * configure: Regenerated.
14290
5ee754fc
MK
14291 * acconfig.h (_MSE_INT_H): Remove.
14292 * configure.in: Create "Checks for header files" section, and move
14293 appropriate tests there. Don't check for objlist.h, wchar.h,
14294 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14295 misdetection fix. Also add "Checks for types", "Checks for
14296 compiler characteristics" and "Checks for library functions"
14297 sections.
14298 * config.in, configure: Regenerated.
14299
8bb2c122
MK
14300 * configure.in: Create "Checks for programs" section, and move
14301 appropriate tests there.
14302
9a156167
MK
143032003-01-01 Mark Kettenis <kettenis@gnu.org>
14304
14305 * configure.in: Create "Checks for libraries" section, and move
14306 appropriate tests there. Cleanup check for wctype in libw. Use
14307 AC_SEARCH_LIBS to see whether we need libsocket.
14308 * configure: Regenerated.
14309
a80e2bcb 14310For older changes see ChangeLog-2002
c906108c
SS
14311\f
14312Local Variables:
14313mode: change-log
14314left-margin: 8
14315fill-column: 74
14316version-control: never
14317End:
This page took 1.225972 seconds and 4 git commands to generate.