* README-vms: Fix comment typos.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-11-22 Andrew Cagney <cagney@redhat.com>
2
3 * mips-tdep.c (mips_frame_chain): Delete call to
4 deprecated_inside_entry_file.
5
6 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
7 (deprecated_set_frame_prev_hack): Delete declaration.
8 * frame.c (deprecated_set_frame_next_hack): Delete function.
9 (deprecated_set_frame_prev_hack): Delete function.
10 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
11 "deprecated_set_frame_next_hack" and
12 "deprecated_set_frame_prev_hack".
13 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14
15 * mips-tdep.c (mips_register_convertible): Delete function.
16 (mips_register_convert_to_virtual): Delete function.
17 (mips_register_convert_to_raw): Delete function.
18 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
19 "deprecated_register_convert_to_virtual", or
20 "deprecated_register_convert_to_raw".
21 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
22 32/64 cooked to raw register conversions.
23
24 * frame.c (deprecated_get_frame_context): Delete function.
25 (deprecated_set_frame_context): Delete function.
26 (struct frame_info): Delete member "context".
27 * frame.h (deprecated_get_frame_context): Delete declaration.
28 (deprecated_set_frame_context): Delete declaration.
29
30 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
31 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
32 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
33 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
34
35 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
36 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
37 mips_regsize.
38 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
39 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
40 * config/mips/tm-irix5.h: Update copyright.
41 (SIGFRAME_REG_SIZE): Delete macro.
42
43 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
44 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
45 declaration.
46 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
47 * infcall.c (call_function_by_hand): Delete #ifdef
48 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
49 * infcmd.c (print_return_value): Ditto.
50
51 * mips-tdep.c (skip_prologue_using_sal): New function.
52 (mips32_skip_prologue, mips16_skip_prologue): Use
53 skip_prologue_using_sal to get an upper bound on the search.
54
55 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
56 #if 0'ed macro.
57 * infrun.c (step_into_function): Delete #ifdef
58 PROLOGUE_FIRSTLINE_OVERLAP code.
59 * symtab.c (find_function_start_sal): Ditto.
60
61 * remote-rdp.c: Update copyright.
62 (rdp_init): #if 0 references to "target_byte_order".
63
64 * mips-tdep.c (mips_o32_store_return_value): Delete function.
65 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
66 (mips_o32_extract_return_value): Delete function.
67 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
68 (mips_n32n64_extract_return_value): Delete function.
69 (mips_n32n64_store_return_value): Delete function.
70 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
71 instead of "store_return_value", "extract_return_value", and
72 "use_struct_convention".
73 (mips_n32n64_use_struct_convention): Delete function.
74
75 2003-11-21 Kevin Buettner <kevinb@redhat.com>
76
77 * frv-tdep.c (frv_frame_this_id): Eliminate call to
78 inside_entry_func().
79
80 2003-11-20 Mark Kettenis <kettenis@gnu.org>
81
82 * i386-tdep.c (i386_extract_return_value,
83 i386_store_return_value): Add gdbarch argument. Use it instead of
84 determining it from REGCACHE. Remove recursive call for
85 structures with a single member.
86 (i386_use_struct_convention): Remove.
87 (i386_reg_struct_return_p): New function.
88 (i386_return_value): New function.
89 (i386_gdbarch_init): Set return_value, don't set
90 extract_return_value, store_return_value and
91 use_struct_convention.
92 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
93
94 2003-11-20 Jim Blandy <jimb@redhat.com>
95
96 * osabi.c (_initialize_gdb_osabi): Don't return before registering
97 the 'set osabi' and 'show osabi' commands.
98
99 2003-11-19 Mark Kettenis <kettenis@gnu.org>
100
101 * frame.c (get_prev_frame): Use result from
102 get_frame_address_in_block instead of get_frame_pc as argument to
103 inside_main_func. Fixes PR backtrace/1435.
104
105 2003-11-19 Andrew Cagney <cagney@redhat.com>
106
107 * stack.c (return_command): Handle "void", "legacy" and "unknown
108 location" return values separatly.
109 * values.c (using_struct_return): Return 0 for a "void" return
110 type. Mention "register_value_being_returned".
111 (register_value_being_returned): Mention "using_struct_return".
112
113 2003-11-19 Daniel Jacobowitz <drow@mvista.com>
114
115 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
116 (frame_base_offset): Delete.
117 (read_func_scope): Delete call to decode_locdesc.
118 (decode_locdesc): Update comments. Don't set the removed variables.
119 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
120 DW_OP_fbreg support.
121
122 2003-11-18 Daniel Jacobowitz <drow@mvista.com>
123
124 * dwarf2read.c (optimized_out, islocal): Remove.
125 (decode_locdesc): Update comments. Don't set optimized_out
126 or islocal.
127
128 2003-11-17 Jeff Johnston <jjohnstn@redhat.com>
129 David Mosberger <davidm@hpl.hp.com>
130
131 * ia64-tdep.c: Include elf.h.
132 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
133 libunwind-ia64.h.
134 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
135 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
136 (ia64_is_fpreg, ia64_access_reg): Ditto.
137 (ia64_access_fpreg, ia64_access_mem): Ditto.
138 (get_kernel_table): Ditto.
139 (ia64_find_unwind_table): Ditto.
140 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
141 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
142 (ia64_libunwind_frame_prev_register): Ditto.
143 (ia64_libunwind_frame_sniffer): Ditto.
144 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
145 sniffer. Register libunwind functions needed by generic
146 libunwind frame code using libunwind_frame_set_descr().
147
148 2003-11-16 Daniel Jacobowitz <drow@mvista.com>
149
150 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
151 bp_shlib_disabled breakpoint if there is a shared library mapped
152 at its expected address.
153
154 2003-11-16 Andrew Cagney <cagney@redhat.com>
155
156 * configure.tgt: Delete mips*tx39*-elf*.
157 * config/mips/tm-tx39.h: Delete file.
158 * config/mips/tx39.mt: Delete file.
159 * config/mips/tx39.mt: Delete file.
160
161 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
162 * remote-mips.c (common_open): Instead of
163 "mips_read_register_type" and "mips_set_processor_type_command"
164 call "deprecated_mips_set_processor_regs_hack".
165 * config/mips/tm-mips.h (mips_read_processor_type): Delete
166 declaration.
167 (mips_set_processor_type_command): Delete declaration.
168 * mips-tdep.c (mips_gdbarch_init): Update comment.
169 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
170 (mips_set_processor_type): Delete function.
171 (NUM_MIPS_PROCESSOR_REGS): Define.
172 (mips_show_processor_type_command): Delete function.
173 (mips_set_processor_type_command): Delete function.
174 (tmp_mips_processor_type): Delete.
175 (mips_processor_type): Delete.
176 (mips_processor_type_table): Delete.
177 (mips_r3051_reg_names): Delete.
178 (mips_r3081_reg_names): Delete.
179 (mips_lsi33k_reg_names): Delete.
180 (mips_processor_reg_names): Delete.
181 (mips_read_processor_type): Delete function.
182 (deprecated_mips_set_processor_regs_hack): New function.
183 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
184 (mips_register_name): Get the processor names from the tdep.
185 (mips_tx39_reg_names): New array.
186 (mips_generic_reg_names): Wire to a standard set of names.
187 (mips_gdbarch_init): Set "mips_processor_reg_names".
188 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
189 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
190 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
191
192 2003-11-16 Andrew Cagney <cagney@redhat.com>
193
194 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
195 (mips_fpa0_regnum, mips_regnum): New function.
196 (mips_gdbarch_init): Fill in the "regnum" fields.
197 * mips-tdep.h (struct mips_regnum): Define.
198 (mips_regnum): Declare.
199 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
200 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
201 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
202 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
203 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
204 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
205 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
206 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
207 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
208 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
209 * remote-mips.c: Include "mips-tdep.h". Update.
210 * mipsnbsd-tdep.c: Update.
211 * mipsv4-nat.c: Update.
212 * mips-tdep.c: Update.
213 * mips-nat.c: Update.
214 * mips-linux-tdep.c: Update.
215 * mips-linux-nat.c: Update.
216 * irix5-nat.c: Update.
217 * dve3900-rom.c: Include "mips-tdep.h". Update.
218 (ignore_packet): Supress GCC warning.
219 * config/mips/nm-riscos.h: Update.
220
221 2003-11-16 Andrew Cagney <cagney@redhat.com>
222
223 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
224 register_size.
225 (mips_register_raw_size): Delete function.
226 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
227 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
228 Check and set "mips64_transfers_32bit_regs_p".
229 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
230 (mips_register_convertible): Check the architecture's
231 "mips64_transfers_32bit_regs_p".
232 (set_mips64_transfers_32bit_regs): New function.
233 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
234 "set remote-mips64-transfers-32bit-regs" command. Specify
235 set_mips64_transfers_32bit_regs as the set function.
236 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
237
238 2003-11-16 Mark Kettenis <kettenis@gnu.org>
239
240 * i386-tdep.h (i386_supply_gregset): Provide prototype.
241 * i386-tdep.c (i386_supply_gregset): Make public.
242
243 2003-11-16 Andrew Cagney <cagney@redhat.com>
244
245 * mips-tdep.c (mips_register_byte): Delete function.
246 (mips_gdbarch_init): Do not set "deprecated_register_byte".
247 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
248 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
249 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
250
251 2003-11-16 Mark Kettenis <kettenis@gnu.org>
252
253 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
254
255 2003-11-16 Andrew Cagney <cagney@redhat.com>
256
257 * config/mips/linux64.mt: Delete file.
258 * config/mips/tm-linux64.h: Delete file.
259 * config/mips/tm-mips64.h: Delete file.
260 * config/mips/embed64.mt: Delete file.
261 * config/djgpp/fnchange.lst: Update.
262 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
263 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
264 * config/mips/tm-irix6.h: Update copyright. Include
265 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
266 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
267 "OP_LDGPR".
268
269 2003-11-15 Andrew Cagney <cagney@redhat.com>
270
271 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
272 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
273 n32 registers 64 bit.
274 (mips_register_raw_size, mips_register_byte): For pseudo
275 registers, use the register's pseudo size and not the
276 corresponding raw register's size.
277 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
278 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
279 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
280 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
281
282 2003-11-15 Andrew Cagney <cagney@redhat.com>
283
284 * mips-tdep.c (struct gdbarch_tdep): Delete member
285 gdb_target_is_mips64.
286 (GDB_TARGET_IS_MIPS64): Delete macro.
287 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
288 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
289 (mips_addr_bits_remove): Simplify.
290
291 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
292 register_size.
293
294 Replace MIPS_REGSIZE with mips_regsize.
295 * mips-tdep.c (mips_regsize): New function.
296 * mips-tdep.h (mips_regsize): Declare.
297 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
298 (SIZEOF_STRUCT_REG): Update.
299 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
300 (mipsnbsd_fill_reg): Update.
301 (mipsnbsd_supply_fpreg): Update.
302 (mipsnbsd_fill_fpreg): Update.
303 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
304 * mips-tdep.c (mips_register_raw_size): Update.
305 (mips_register_type): Update.
306 (SIGFRAME_BASE): Update.
307 (SIGFRAME_PC_OFF): Update.
308 (SIGFRAME_REGSAVE_OFF): Update.
309 (SIGFRAME_FPREGSAVE_OFF): Update.
310 (SIGFRAME_REG_SIZE): Update.
311 (mips32_heuristic_proc_desc): Update.
312 (print_gp_register_row): Update.
313 (mips_dump_tdep): Do not print MIPS_REGSIZE.
314 * irix5-nat.c (supply_gregset): Update.
315 (fetch_core_registers): Update.
316 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
317 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
318 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
319 (MIPS_REGISTER_BYTE): Update.
320 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
321
322 2003-11-15 Andrew Cagney <cagney@redhat.com>
323
324 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
325 USE_REGISTER_NOT_ARG.
326 * stabsread.c (define_symbol): Update.
327
328 2003-11-15 Andrew Cagney <cagney@redhat.com>
329
330 * bcache.h (deprecated_bcache): Declare.
331 (bcache): Make returned buffer constant.
332 * bcache.c (deprecated_bcache): New function.
333 (bcache_data): New function.
334 (bcache): Call bcache data.
335 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
336 (add_psymbol_with_dem_name_to_list): Ditto.
337
338 2003-11-15 Mark Kettenis <kettenis@gnu.org>
339
340 * glibc-tdep.h (struct gdbarch): Declare opaque.
341 (glibc_skip_solib_resolver): Adjust prototype.
342 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
343 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
344 (arm_linux_init_abi): Set skip_solib_resolver.
345 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
346 (i386_linux_init_abi): Set skip_solib_resolver.
347 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
348 (arm_linux_skip_solib_resolver): Remove prototype.
349 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
350 (i386_linux_skip_solib_resolver): Remove prototype.
351
352 2003-11-14 Mark Kettenis <kettenis@gnu.org>
353
354 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
355 function.
356 * gdbarch.c, gdbarch.h: Regenerate.
357 * infrun.c (handle_inferior_event): Call
358 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
359 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
360 definition.
361 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
362 prototype.
363
364 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
365
366 * libunwind-frame.c: New file.
367 * libunwind-frame.h: New file.
368 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
369 * configure.in: Add --with-libunwind option support. Define
370 HAVE_LIBUNWIND if libunwind support selected / defaulted.
371 Also check for libunwind.h and libunwind-ia64.h headers.
372 * configure: Regenerated.
373 * Makefile.in: Add support for libunwind-frame.o.
374 * config.in: Regenerated.
375
376 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
377
378 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
379 set up the ia64 linux native target method for getting the kernel
380 unwind table.
381 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
382 * inftarg.c (child_xfer_partial): Enable section of code to
383 handle TARGET_OBJECT_UNWIND_TABLE.
384 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
385
386 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
387
388 * config/arm/nbsd.mt (TM_FILE): Define.
389 * config/arm/tm-nbsd.h: New file.
390
391 2003-11-14 Andrew Cagney <cagney@redhat.com>
392
393 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
394 * ppc-sysv-tdep.c: Include "objfiles.h".
395 (ppc64_sysv_abi_push_dummy_call): Provide the
396 the FN's objfile when looking for the descriptor.
397
398 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
399 "name_of_malloc" to ".malloc".
400
401 2003-11-13 Mark Kettenis <kettenis@gnu.org>
402
403 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
404
405 2003-11-13 David Carlton <carlton@kealia.com>
406
407 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
408
409 2003-11-13 Andrew Cagney <cagney@redhat.com>
410
411 * arch-utils.h (selected_architecture_name): Declare.
412 (selected_byte_order): Declare.
413 * arch-utils.c (selected_byte_order): New function.
414 (selected_architecture_name): New function.
415 (target_architecture_auto): Make static.
416 (set_architecture_string): Make static.
417 (target_byte_order): Make static.
418 (target_byte_order_auto): Make static.
419 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
420 non-multi-arch definition.
421 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
422 (target_byte_order, target_architecture): Delete declaration.
423 (target_byte_order_auto, target_architecture_auto): Ditto.
424 * gdbarch.h: Re-generate.
425 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
426 "selected_byte_order".
427
428 2003-11-13 Andrew Cagney <cagney@redhat.com>
429
430 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
431
432 2003-11-13 Jim Blandy <jimb@redhat.com>
433
434 * cp-namespace.c: Doc fix.
435
436 2003-11-12 Michael Snyder <msnyder@redhat.com>
437
438 * sh64_tdep.c: Regularize some names.
439 (sh_sh64_register_name): Rename to sh64_register_name.
440 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
441 (sh_sh64_register_byte): Rename to sh64_register_byte.
442 (sh_sh64_build_float_register_type):
443 Rename to sh64_build_float_register_type.
444 (sh_sh64_register_convert_to_virtual):
445 Rename to sh64_register_convert_to_virtual.
446 (sh_sh64_register_convert_to_raw):
447 Rename to sh64_register_convert_to_raw.
448
449 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
450 sh64_media_reg_base_num, sh64_compact_reg_base_num,
451 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
452 sh64_extract_return_value, sh64_show_media_regs,
453 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
454 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
455 sh64_pseudo_register_read, sh64_pseudo_register_write,
456 sh64_do_pseudo_register, sh_compact_print_registers_info):
457 Delete unused variable 'tdep'.
458
459 * sh64-tdep.c: Coding standard and spelling comment fixes.
460 (sh64_extract_return_value): Replace deprecated_store_floating
461 with store_typed_floating.
462 (sh_sh64_register_convert_to_raw): Replace
463 deprecated_store_floating with store_typed_floating.
464 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
465 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
466 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
467 sh64_extract_struct_value_address, sh64_pop_frame,
468 sh64_extract_return_value, sh64_store_return_value,
469 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
470 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
471 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
472 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
473 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
474 deprecated_register_virtual_type, deprecated_register_raw_size,
475 deprecated_max_register_raw_size, or
476 deprecated_max_register_virtual_size. Instead, just set
477 gdbarch_register_type.
478 (sh_sh64_register_raw_size): Delete.
479 (sh_sh64_register_virtual_size): Delete.
480
481 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
482
483 * dwarf2read.c (struct dwarf2_cu): New type.
484
485 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
486 dwarf2_cu structure to pass down.
487
488 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
489 (add_partial_enumeration, locate_pdi_sibling, process_die)
490 (read_file_scope, read_func_scope)
491 (read_lexical_block_scope, dwarf2_get_pc_bounds)
492 (dwarf2_add_field, dwarf2_attach_fields_to_type)
493 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
494 (read_structure_scope, read_enumeration, read_array_type)
495 (read_common_block, read_namespace, read_tag_pointer_type)
496 (read_tag_ptr_to_member_type, read_tag_reference_type)
497 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
498 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
499 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
500 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
501 (read_full_die. read_attribute_value, read_attribute)
502 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
503 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
504 (die_containing_type, type_at_offset, tag_type_to_type)
505 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
506 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
507
508 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
509
510 PR breakpoints/1450
511 * breakpoint.c (insert_bp_location): Fix a logic error by returning
512 0 after a catchpoint fails.
513
514 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
515
516 * mips-tdep.c (msymbol_size): Delete.
517
518 2003-11-07 Michael Chastain <mec@shout.net>
519
520 * symtab.h (struct minimal_symbol): Add size.
521 * dbxread.c: Use it.
522 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
523 Rename to record_minimal_symbol.
524 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
525 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
526 (install_minimal_symbols): Ditto.
527 * objfiles.c (terminate_minimal_symbol_table): Ditto.
528 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
529 * m68hc11-tdep.c: Ditto.
530 * mips-tdep.c: Ditto.
531 * sh64-tdep.c: Ditto.
532
533 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
534
535 * MAINTAINERS: Change my e-mail address.
536
537 2003-11-10 Andrew Cagney <cagney@redhat.com>
538
539 * gdbarch.sh (return_value): Replace "inval" and "outval" with
540 "readbuf" and "writebuf".
541 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
542 * d10v-tdep.c (d10v_return_value): Ditto.
543 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
544 (ppc_sysv_abi_broken_return_value): Ditto.
545 (ppc64_sysv_abi_return_value): Ditto.
546 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
547 (ppc_sysv_abi_return_value): Ditto.
548 (ppc_sysv_abi_broken_return_value): Ditto.
549 (ppc64_sysv_abi_return_value): Ditto.
550 * values.c (register_value_being_returned): Update call.
551 * stack.c (return_command): Update call.
552 * gdbarch.h, gdbarch.c: Re-generate.
553
554 * target.h (struct target_ops): Order xfer buffer parameters "read
555 write" not "write read".
556 * bfd-target.c (target_bfd_xfer_partial): Update.
557 * remote.c (remote_xfer_partial): Update.
558 * inftarg.c (child_xfer_partial): Update.
559 * target.c (default_xfer_partial): Update.
560 (target_read_partial, target_write_partial): Update.
561 (debug_to_xfer_partial): Update.
562
563 * arch-utils.h, arch-utils.c: Fix typo in comment.
564
565 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
566 (gdbarch_from_bfd): Call gdbarch_find_by_info.
567 (set_gdbarch_from_file): Call
568 "deprecated_current_gdbarch_select_hack".
569
570 2003-11-09 Andrew Cagney <cagney@redhat.com>
571
572 * arch-utils.c (gdbarch_update_p): New function.
573 * gdbarch.sh (gdbarch_update_p): Delete function.
574 (find_arch_by_info, gdbarch_find_by_info): New functions.
575 (deprecated_current_gdbarch_select_hack): New function.
576 * gdbarch.c: Re-generate.
577
578 * gdbarch.sh (clear_gdbarch_swap): Delete function.
579 (swapout_gdbarch_swap): Delete function.
580 (swapin_gdbarch_swap): Delete function.
581 (init_gdbarch_swap): Delete function.
582 (initialize_non_multiarch): Delete function.
583 (current_gdbarch_swap_in_hack): New function.
584 (current_gdbarch_swap_out_hack): New function.
585 (current_gdbarch_swap_init_hack): New function.
586 * gdbarch.c: Re-generate.
587
588 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
589 parameter to "current_gdbarch". Add comment explaining why.
590 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
591 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
592 * gdbarch.c: Re-generate.
593
594 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
595 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
596 * config/s390/xm-linux.h: Delete file.
597 * config/m88k/xm-delta88v4.h: Delete stray.
598
599 * Makefile.in (arch-utils.o): Update dependencies.
600 * arch-utils.c: Include "osabi.h".
601 (gdbarch_info_fill): New function.
602 * arch-utils.h (gdbarch_info_fill): Declare.
603 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
604 * gdbarch.c: Re-generate.
605
606 2003-11-09 Mark Kettenis <kettenis@gnu.org>
607 David S. Miller <davem@redhat.com>
608
609 * glibc-tdep.c, glibc-tdep.h: New files.
610 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
611 * config/i386/linux.mt (TDEPFILES): Likewise.
612 * i386-linux-tdep.c (glibc-tdep.h): Include.
613 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
614 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
615 * arm-linux-tdep.c (glibc-tdep.h): Include.
616 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
617 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
618 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
619 (glibc_tdep_h): Define.
620 (glibc-tdep.o): Add dependencies.
621 (arm-linux-tdep.o): Update dependencies.
622 (i386-linux-tdep.o): Likewise.
623
624 2003-11-09 Andrew Cagney <cagney@redhat.com>
625
626 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
627 * config/mips/nm-irix6.h: Delete file.
628 * config/mips/nm-linux.h: Update copyright.
629 (MIPS_GNULINUX_TARGET): Delete macro.
630 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
631 * config/mips/xm-irix6.h: Delete file.
632 * config/mips/linux.mh (XM_FILE): Delete definition.
633 * config/mips/xm-linux.h: Delete file.
634
635 2003-11-09 Andrew Cagney <cagney@redhat.com>
636
637 * d10v-tdep.c (d10v_return_value): New function.
638 (d10v_use_struct_convention): Delete function.
639 (d10v_store_return_value): Delete function.
640 (d10v_extract_struct_value_address): Delete function.
641 (d10v_gdbarch_init): Set "return_value" instead of
642 "extract_return_value", "store_return_value",
643 "extract_struct_value_address", and "use_struct_convention".
644 (RET1_REGNUM): Delete const.
645
646 2003-11-09 Mark Kettenis <kettenis@gnu.org>
647
648 From David S. Miller <davem@redhat.com>:
649 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
650 * gdbarch.c, gdbarch.h: Regenerated.
651 * arch-utils.c (generic_skip_solib_resolver): New function.
652 * arch-utils.h (generic_skip_solib_resolver): New prototype.
653 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
654
655 2003-11-07 Andrew Cagney <cagney@redhat.com>
656
657 * top.c (print_gdb_version): Replace STREQ with strcmp.
658 * valops.c (value_struct_elt_for_reference): Ditto.
659 (value_struct_elt_for_reference): Ditto.
660 * symtab.c (gdb_mangle_name): Ditto.
661 (find_line_symtab): Ditto.
662 * symmisc.c (maintenance_print_symbols): Ditto.
663 * symfile.c (symbol_file_command): Ditto.
664 * stabsread.c (define_symbol, read_type): Ditto.
665 (cleanup_undefined_types, scan_file_globals): Ditto.
666 * solib.c (solib_map_sections): Ditto.
667 * solib-svr4.c (bfd_lookup_symbol): Ditto.
668 * rs6000-tdep.c (skip_prologue): Ditto.
669 * p-valprint.c (pascal_value_print): Ditto.
670 (pascal_object_is_vtbl_ptr_type): Ditto.
671 * objfiles.c (in_plt_section): Ditto.
672 * minsyms.c (lookup_minimal_symbol): Ditto.
673 (compact_minimal_symbols): Ditto.
674 (find_solib_trampoline_target): Ditto.
675 * mdebugread.c (parse_type): Ditto.
676 * language.c (set_language_command): Ditto.
677 (set_type_command, set_range_command): Ditto.
678 * f-lang.c (add_common_block): Ditto.
679 (add_common_block): Ditto.
680 (find_first_common_named): Ditto.
681 (patch_all_commons_by_name): Ditto.
682 * elfread.c (elf_locate_sections): Ditto.
683 (elf_locate_sections): Ditto.
684 (elfstab_offset_sections): Ditto.
685 * dwarf2read.c (dwarf2_locate_sections): Ditto.
686 * dbxread.c (add_old_header_file): Ditto.
687 (find_corresponding_bincl_psymtab): Ditto.
688 (read_dbx_symtab, process_one_symbol): Ditto.
689 * coffread.c (patch_opaque_types): Ditto.
690 * cli/cli-decode.c (delete_cmd): Ditto.
691 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
692 * c-typeprint.c (c_type_print_base): Ditto.
693 * breakpoint.c (bpstat_stop_status): Ditto.
694 (clear_command, breakpoint_re_set_one): Ditto.
695
696 2003-11-07 Andrew Cagney <cagney@redhat.com>
697
698 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
699 * bcache.c (struct bstring): Make "length" an unsigned short, add
700 "half_hash".
701 (struct bcache): Add "half_hash_error_count".
702 (bcache): Compute and save the "half_hash". Compare the
703 "half_hash" before comparing the length. Update
704 half_hash_error_count.
705
706 2003-11-07 Andrew Cagney <cagney@redhat.com>
707
708 * inftarg.c (child_xfer_partial): New function
709 (init_child_ops): Set "to_xfer_partial".
710
711 2003-11-07 Andrew Cagney <cagney@redhat.com>
712
713 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
714 set "return_value" instead of "use_struct_convention".
715 (ppc_linux_use_struct_convention): Delete function.
716 (ppc_linux_return_value): New function.
717 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
718 (ppc_sysv_abi_broken_return_value): New function.
719 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
720 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
721 static.
722 (ppc_sysv_abi_extract_return_value): Delete function.
723 (ppc_sysv_abi_broken_extract_return_value): Delete function.
724 (ppc_sysv_abi_store_return_value): Delete function.
725 (ppc_sysv_abi_broken_store_return_value): Delete function.
726 (ppc_sysv_abi_use_struct_convention): Delete function.
727 (ppc64_sysv_abi_use_struct_convention): Delete function.
728 (ppc64_sysv_abi_extract_return_value): Delete function.
729 (ppc64_sysv_abi_store_return_value): Delete function.
730 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
731 (ppcnbsd_init_abi): Set "return_value", instead of
732 "use_struct_convention", "extract_return_value", and
733 "store_return_value".
734 (ppcnbsd_use_struct_convention): Delete function.
735 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
736 (ppc_sysv_abi_return_value): Declare.
737 (ppc_sysv_abi_broken_return_value): Declare.
738 (ppc_sysv_abi_use_struct_convention): Delete.
739 (ppc_sysv_abi_store_return_value): Delete.
740 (ppc_sysv_abi_extract_return_value): Delete.
741 (ppc_sysv_abi_broken_store_return_value): Delete.
742 (ppc_sysv_abi_broken_extract_return_value): Delete.
743 (ppc64_sysv_abi_use_struct_convention): Delete.
744 (ppc64_sysv_abi_extract_return_value): Delete.
745 (ppc64_sysv_abi_store_return_value): Delete.
746 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
747 set "return_value" instead of "extract_return_value",
748 "store_return_value", and "use_struct_convention".
749
750 2003-11-07 Mark Kettenis <kettenis@gnu.org>
751
752 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
753
754 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
755 fscanf.
756
757 2003-11-07 Mark Kettenis <kettenis@gnu.org>
758
759 * fbsd-proc.c: Fix formatting.
760
761 2003-11-06 Kevin Buettner <kevinb@redhat.com>
762
763 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
764 Define.
765 (new_variant): Set name for iacc0_regnum.
766 (frv_register_name): Accommodate pseudo-registers.
767 (frv_register_type): Add case for iacc0_regnum.
768 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
769 (frv_gdbarch_init): Set number of pseudo registers. Establish
770 pseudo-register read/write methods.
771
772 2003-11-06 Andrew Cagney <cagney@redhat.com>
773
774 * valops.c (destructor_name_p): Replace STREQN with strncmp.
775 * top.c (command_line_input): Ditto.
776 * objc-exp.y (yylex): Ditto.
777 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
778 * jv-exp.y (yylex): Ditto.
779 * f-exp.y (yylex): Ditto.
780 * event-top.c (command_line_handler): Ditto.
781 * environ.c (get_in_environ): Ditto.
782 (set_in_environ): Ditto.
783 * dwarfread.c (handle_producer): Ditto.
784 * dbxread.c (process_one_symbol): Ditto.
785 * c-typeprint.c (c_type_print_base): Ditto.
786 * c-exp.y (yylex): Ditto.
787
788 2003-11-06 Andrew Cagney <cagney@redhat.com>
789 Jeff Johnston <jjohnstn@redhat.com>
790
791 * target.c (add_target): Only set "to_xfer_partial" when NULL.
792 (init_dummy_target): Set "to_xfer_partial".
793
794 2003-11-06 Andrew Cagney <cagney@redhat.com>
795
796 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
797 REGISTER_CONVENTION.
798
799 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
800
801 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
802 static.
803
804 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
805
806 * breakpoint.c (remove_breakpoint): Take an bp_location
807 instead of a breakpoint argument. Check the bp_location's type.
808 Fix a reversed condition for hardware breakpoints.
809
810 (insert_bp_location): Update call to remove_breakpoint.
811 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
812 (remove_hw_watchpoints): Likewise.
813 (reattach_breakpoints): Likewise.
814 (detach_breakpoints): Likewise.
815 (delete_breakpoint): Likewise.
816
817 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
818
819 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
820 (beakpoint_init_inferior): Likewise.
821 (breakpoint_here_p): Likewise. Only check addresses for software
822 or hardware breakpoints.
823 (breakpoint_inserted_here_p): Likewise.
824 (breakpoint_thread_match): Likewise. Correct comment.
825 (bpstat_have_active_hw_watchpoints): Likewise.
826 (check_duplicates): Likewise.
827
828 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
829
830 * breakpoints.c (insert_bp_location): New function, broken out
831 from insert_breakpoints. Work on an bp_location instead of a
832 breakpoint.
833 (insert_breakpoints): Use it.
834
835 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
836
837 * breakpoint.h (struct bp_location): Add section.
838 (struct breakpoint): Remove section.
839 * breakpoint.c (insert_breakpoints, remove_breakpoint)
840 (breakpoint_here_p, breakpoint_inserted_here_p)
841 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
842 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
843 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
844 section through loc.
845
846 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
847
848 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
849 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
850
851 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
852
853 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
854 arguments. Initialize owner and type for the new breakpoint
855 location item.
856 (set_raw_breakpoint): Update call to allocate_bp_location.
857
858 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
859
860 * breakpoint.h (struct bp_location): Add a chain pointer.
861 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
862 macros.
863 (bp_location_chain): New variable.
864 (allocate_bp_location): New function.
865 (set_raw_breakpoint): Use it.
866 (delete_breakpoint): Remove ->loc from the bp_location_chain.
867
868 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
869
870 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
871 (struct breakpoint): Remove address, shadow_contents, inserted,
872 requested_address, and duplicate. Add a struct bp_location.
873 * breakpoint.c (condition_command, read_memory_nobpt)
874 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
875 (reattach_breakpoints, update_breakpoints_after_exec)
876 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
877 (breakpoint_init_inferior, breakpoint_here_p)
878 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
879 (breakpoint_thread_match, bpstat_stop_status)
880 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
881 (describe_other_breakpoints, check_duplicates)
882 (make_breakpoint_permanent, create_thread_event_breakpoint)
883 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
884 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
885 (watch_command_1, print_one_exception_catchpoint)
886 (clear_command, breakpoint_re_set_one): Adjust member accesses to
887 use the breakpoint's ->loc.
888 (set_raw_breakpoint): Likewise. Initialize ->loc.
889 (delete_breakpoint): Likewise. Free ->loc.
890
891 2003-11-05 Andrew Cagney <cagney@redhat.com>
892
893 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
894 macro.
895 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
896 * config/i386/tm-cygwin.h
897 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
898 * config/powerpc/tm-linux.h
899 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
900 (at_subroutine_call_instruction_target): Delete declaration.
901 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
902 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
903 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
904
905 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
906 "struct bfd_section" and "struct bfd".
907 * target.h (struct section_table): Ditto.
908 * rs6000-nat.c (xcoff_relocate_core): Ditto.
909 * solib-svr4.c (elf_locate_base): Ditto.
910 * pa64solib.c (dld_cache_t): Ditto.
911 * objfiles.h (struct obj_section): Ditto.
912 * objfiles.c (add_to_objfile_sections): Ditto.
913 * exec.c (bfdsec_to_vmap): Ditto.
914 (add_to_section_table): Ditto.
915 (build_section_table): Ditto.
916 * corelow.c (get_core_register_section): Ditto.
917 * coffread.c (find_linenos): Ditto.
918 * elfread.c (elf_interpreter): Delete #if0'd function.
919
920 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
921 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
922 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
923 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
924
925 * arch-utils.h (generic_cannot_extract_struct_value_address):
926 Delete declaration.
927 * wince.c (_initialize_wince): Fix multi-line string.
928 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
929
930 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
931
932 * top.c (execute_command): Fix broken logic for command execution
933 while inferior is running in async mode.
934
935 2003-11-06 Mark Kettenis <kettenis@gnu.org>
936
937 * dwarf2-frame.c (execute_cfa_program): Mark register as
938 REG_SAVED_REG for DW_CFA_register opcode.
939
940 2003-11-05 Mark Kettenis <kettenis@gnu.org>
941
942 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
943 %rsp, %rip and %eflags to match ABI-change.
944
945 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
946
947 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
948 (ia64_gdbarch_init): Don't bother calculating the os.
949 Instead use the gdbarch_info struct and look at the osabi field.
950 Also use gdbarch_list_lookup_by_info() to look for a
951 candidate gdbarch.
952
953 2003-11-05 Kevin Buettner <kevinb@redhat.com>
954
955 * frv-tdep.c (frv_register_byte): Delete.
956 (frv_extract_return_value, frv_store_return_value)
957 (frv_extract_struct_value_address): Don't call frv_register_byte().
958 Convert to non-deprecated form.
959 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
960 Convert calls to set_gdbarch_deprecated_extract_return_value(),
961 set_gdbarch_deprecated_store_return_value(), and
962 set_gdbarch_deprecated_extract_struct_value_address() into
963 non-deprecated forms.
964
965 2003-11-05 Andrew Cagney <cagney@redhat.com>
966
967 * mips-tdep.c (mips_dump_tdep): Do not print
968 PRINT_EXTRA_FRAME_INFO.
969 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
970 Rename PRINT_EXTRA_FRAME_INFO.
971 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
972 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
973 (mips_print_extra_frame_info): Delete declaration.
974 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
975
976 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
977
978 * coffread.c (coff_symtab_read): Remove passing of info parameter
979 to prim_record_minimal_symbol_and_info.
980
981 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
982
983 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
984 (decode_base_type): Delete ifdeffed out code.
985
986 2003-11-04 Andrew Cagney <cagney@redhat.com>
987
988 * symtab.c (find_active_alias): Delete function.
989 (lookup_block_symbol): Delete alias code.
990 * stabsread.c (resolve_live_range): Delete function.
991 (add_live_range): Delete function.
992 (resolve_symbol_reference): Delete function.
993 (define_symbol): Delete live range and alias code.
994 (scan_file_globals): Delete alias code.
995 * symtab.h (SYMBOL_RANGES): Delete macro.
996 (struct range_list): Delete structure.
997 (struct symbol): Delete field "ranges".
998 (SYMBOL_ALIASES): Delete macro.
999 (struct alias_list): Delete structure.
1000 (struct symbol): Delete field "aliases".
1001
1002 2003-11-04 Michael Snyder <msnyder@redhat.com>
1003
1004 * MAINTAINERS: Remove myself as owner of breakpoints and
1005 of sparc/solaris.
1006
1007 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
1008
1009 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1010 (sh_sh4al_dsp_register_name): Ditto.
1011 (sh4_nofpu_show_regs): Ditto.
1012 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1013 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1014
1015 2003-11-03 Andrew Cagney <cagney@redhat.com>
1016
1017 * bcache.c: Include "gdb_assert.h".
1018 (struct bcache): Add fields "expand_count" and
1019 "expand_hash_count".
1020 (expand_hash_table): Update the expand counts.
1021 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1022 on object sizes and hashes.
1023 * Makefile.in (bcache.o): Update dependencies.
1024
1025 2003-11-03 Andrew Cagney <cagney@redhat.com>
1026
1027 * exec.c (xfer_memory): Eliminate xfer_fn.
1028
1029 2003-10-31 Kevin Buettner <kevinb@redhat.com>
1030
1031 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1032 (opcodes/frv-desc.h): Include.
1033 (iacc0h_regnum, iacc0l_regnum): Define.
1034 (last_spr_regnum, frv_num_regs): Update.
1035 (new_variant): Don't supply default names for holes in the SPRs.
1036 Supply names for iacc0h_regnum and iacc0l_regnum.
1037 (frv_register_type): Use symbolic constants first_fpr_regnum and
1038 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1039 builtin_type_int instead of builtin_type_int32.
1040 (frv_register_sim_regno): New function.
1041 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1042 * Makefile.in (gdb_sim_frv_h): Define.
1043 (frv-tdep.o): Update dependencies.
1044
1045 2003-10-31 Andrew Cagney <cagney@redhat.com>
1046
1047 * avr-tdep.c (avr_frame_this_id): Do not call
1048 deprecated_inside_entry_file.
1049 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1050 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1051 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1052 * arm-tdep.c (arm_prologue_this_id): Ditto.
1053 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1054
1055 2003-10-31 Jim Blandy <jimb@redhat.com>
1056
1057 * elfread.c (elf_symtab_read): Allocate correct number of tail
1058 elements to sectinfo structure. (Fix from Woody LaRue.)
1059
1060 2003-10-31 Andrew Cagney <cagney@redhat.com>
1061
1062 * stack.c (return_command): Use get_frame_type, instead of
1063 CALL_DUMMY_HAS_COMPLETED.
1064 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1065 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1066
1067 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1068
1069 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1070 explicitly specify size of array.
1071 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1072 TDEP->sc_num_regs.
1073
1074 2003-10-31 Andrew Cagney <cagney@redhat.com>
1075
1076 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1077 function.
1078 (s390_gdbarch_init): Set extract_struct_value_address.
1079 * arch-utils.c (generic_cannot_extract_struct_value_address):
1080 Delete function.
1081 * arch-utils.h (generic_cannot_extract_struct_value_address):
1082 Delete definition.
1083
1084 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1085
1086 * i386-linux-nat.c (fetch_core_registers): Remove.
1087 (linux_elf_core_fns): Remove.
1088 (_initialize_i386_linux_nat): Remove.
1089
1090 2003-10-31 Andrew Cagney <cagney@redhat.com>
1091
1092 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1093 "exec.h".
1094 (exec_entry_point): New function.
1095 (enable_break): Create a "tmp_bfd_target", use that and
1096 entry_point_address when computing the relocation offset.
1097 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1098 * Makefile.in (solib-svr4.o): Update dependencies.
1099
1100 2003-10-31 Andrew Cagney <cagney@redhat.com>
1101
1102 * defs.h (XZALLOC): Define.
1103 * target.h (struct target_ops): Add "to_data";
1104 * bfd-target.h, bfd-target.c: New files.
1105 * Makefile.in (SFILES): Add "bfd-target.c".
1106 (COMMON_OBS): Add "bfd-target.o".
1107 (bfd-target.o): Specify dependencies.
1108 (bfd_target_h): Define.
1109 * defs.h (XZALLOC): Define.
1110
1111 2003-10-31 Andrew Cagney <cagney@redhat.com>
1112
1113 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1114 adjust_breakpoint_address.
1115 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1116 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1117 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1118 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1119
1120 2003-10-31 Andrew Cagney <cagney@redhat.com>
1121
1122 * target.h (struct target_ops): Replace "to_read_partial" and
1123 "to_write_partial" with "to_xfer_partial". Update comments.
1124 * target.c (debug_to_write_partial): Delete function.
1125 (debug_to_xfer_partial): Replace debug_to_read_partial.
1126 (add_target, update_current_target, setup_target_debug): Set
1127 "to_xfer_partial" instead of "to_read_partial" and
1128 "to_write_partial".
1129 (default_xfer_partial): Replace "default_write_partial".
1130 (default_read_partial): Delete.
1131 (target_read_partial, target_write_partial): Call
1132 "to_xfer_partial".
1133 * remote.c (init_remote_ops): Set "to_xfer_partial".
1134 (init_remote_async_ops): Ditto.
1135 (remote_xfer_partial): Replace "remote_read_partial".
1136
1137 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1138
1139 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1140 registers in `fxsave' format.
1141 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1142
1143 2003-10-30 Mark Kettenis <kettenis@gnu.org>
1144
1145 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1146 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1147 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1148
1149 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1150 specify size of array.
1151 (i386_linux_init_abi): Remove initialization of
1152 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1153 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1154
1155 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1156 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1157 core-regset.o.
1158
1159 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1160 the ELF header.
1161
1162 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1163
1164 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1165 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1166 core-regset.o.
1167
1168 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1169
1170 * corelow.c: Include "arch-utils.h", "regset.h" and
1171 "gdb_assert.h".
1172 (core_gdbarch): New variable.
1173 (sniff_core_bfd): Don't sniff if we have support for register sets
1174 in CORE_GDBARCH.
1175 (core_close): Reset CORE_GDBARCH.
1176 (core_open): Initialize CORE_GDBARCH.
1177 (get_core_register_section): Use register sets if they are
1178 supported by CORE_GDBARCH.
1179 (get_core_registers): Don't print error message if we have support
1180 for register sets in CORE_GDBARCH.
1181
1182 2003-10-29 Andrew Cagney <cagney@redhat.com>
1183
1184 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1185 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1186
1187 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1188
1189 * objfiles.h (clear_objfile_data): New prototype.
1190 * objfiles.c (clear_objfile_data): New function.
1191 * symfile.c (reread_symbols): Clear per-objfile data.
1192
1193 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1194
1195 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1196 printf_unfiltered instead of printf_filtered for output messages.
1197 (add_symbol_file_command): Ditto.
1198 (reread_symbols): Ditto.
1199 (overlay_auto_command): Ditto.
1200 (overlay_manual_command): Ditto.
1201 (overlay_off_command): Ditto.
1202
1203 2003-10-27 Mark Kettenis <kettenis@gnu.org>
1204
1205 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1206 (gdbarch_from_bfd): New function.
1207 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1208 deprecated_select_gdbarch_hack.
1209 * arch-utils.h (gdbarch_from_bfd): New prototype.
1210
1211 2003-10-27 Andrew Cagney <cagney@redhat.com>
1212
1213 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1214 arch_info. Use warning instead of fprintf_filtered. Do not use
1215 deprecated bfd_printable_arch_mach.
1216
1217 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1218
1219 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1220 Delete.
1221 (frv_register_type): Rename from frv_register_virtual_type. Add
1222 ``struct gdbarch *'' parameter.
1223 (frv_gdbarch_init): Delete calls to the following functions:
1224 set_gdbarch_deprecated_size(),
1225 set_gdbarch_deprecated_register_bytes(),
1226 set_gdbarch_deprecated_register_raw_size(),
1227 set_gdbarch_deprecated_max_register_raw_size(),
1228 set_gdbarch_deprecated_register_virtual_size(),
1229 set_gdbarch_deprecated_max_register_virtual_size(),
1230 set_gdbarch_deprecated_register_virtual_size(),
1231 set_gdbarch_deprecated_register_virtual_type().
1232 Add call to function set_gdbarch_register_type().
1233
1234 2003-10-26 Mark Kettenis <kettenis@gnu.org>
1235
1236 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1237 FDOFF_REGNUM): Remove defines.
1238 * win32-nat.c (do_child_fetch_inferior_registers): Include
1239 "i387-tdep.h".
1240 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1241 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1242 undefine I387_ST0_REGNUM.
1243
1244 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1245 * x86-64-tdep.c (x86_64_store_return_value): Use
1246 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1247
1248 Change register numbers to enumartion values.
1249 * i386-tdep.h (enum i386_regnum): New.
1250 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1251 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1252 I386_ST0_REGNUM): Remove defines.
1253 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1254 I386_EDI_REGNUM): Remove defines.
1255
1256 2003-10-24 Andrew Cagney <cagney@redhat.com>
1257
1258 * target.c: Include "gdbcore.h".
1259 (get_target_memory, get_target_memory_unsigned): New functions.
1260 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1261 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1262 Use get_target_memory_unsigned.
1263 * Makefile.in (target.o): Update dependencies.
1264
1265 2003-10-24 Andrew Cagney <cagney@redhat.com>
1266
1267 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1268 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1269 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1270 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1271 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1272
1273 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1274 (can_run_code_for): Use the OO term "singleton".
1275
1276 2003-10-23 Andrew Cagney <cagney@redhat.com>
1277
1278 * Makefile.in (stack.o): Add $(regcache_h).
1279 * stack.c: Include "regcache.h"
1280 (return_command): Rewrite. Use get_frame_id and
1281 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1282 about unhandled return-values.
1283 * value.h (set_return_value): Delete declaration.
1284 * values.c (set_return_value): Delete function.
1285
1286 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1287
1288 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1289 (pseudo_regs): Add comment regarding register stack registers.
1290 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1291 (floatformat_valid): New static routine.
1292 (floatformat_ia64_ext): Add name field and set up is_valid routine
1293 to floatformat_valid().
1294 (examine_prologue): For the previous cfm, use
1295 frame_unwind_register()
1296 if the cfm is not stored in a register-stack register. Save the
1297 previous cfm value in the prev_cfm field. Add debug output.
1298 (ia64_frame_this_id): Use frame_id_build_special() to also register
1299 the bsp. Add debug output.
1300 (ia64_sigtramp_frame_this_id): Ditto.
1301 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1302 registers and also add some checks for framelessness before accepting
1303 current register values for fields such as return address. For cfm,
1304 use the cached prev_cfm field if available. Add comment to explain
1305 PSR logic. Add debug output.
1306 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1307 as part of initialization.
1308 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1309 calculated. Cache the bsp and cfm values.
1310 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1311 instead of using ia64_frame_prev_register() which doesn't expect most
1312 registers to be saved. The saved values for bsp and sp
1313 can be taken from the cache. Add debug output.
1314 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1315 the bsp.
1316
1317 2003-10-23 Jim Blandy <jimb@redhat.com>
1318
1319 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1320 architecture the current arch can run code for --- but not if it's
1321 a superset.
1322 (can_run_code_for): New function.
1323
1324 2003-10-22 James E Wilson <wilson@specifixinc.com>
1325
1326 * MAINTAINERS: Move myself from paper trail section back to write
1327 after approval section.
1328
1329 2003-10-22 Andrew Cagney <cagney@redhat.com>
1330
1331 * exec.h: New file.
1332 * win32-nat.c: Include "exec.h".
1333 * solib.c: Include "exec.h".
1334 * target.h (build_section_table): Delete declaration.
1335 * somsolib.c: Include "exec.h".
1336 (exec_ops): Delete extern declaration.
1337 * rs6000-nat.c: Update copyright. Include "exec.h".
1338 (exec_ops): Delete extern declaration.
1339 * pa64solib.c: Update copyright. Include "exec.h".
1340 (exec_ops): Delete extern declaration.
1341 * exec.c: Update copyright. Include "exec.h".
1342 * corelow.c: Update dependencies. Include "exec.h".
1343 * Makefile.in (exec_h): Define.
1344 (exec.o, somsolib.o): Update dependencies.
1345 (pa64solib.o, corelow.o): Update dependencies.
1346
1347 2003-10-22 Andrew Cagney <cagney@redhat.com>
1348
1349 * target.c: Include "gdb_assert.h" (target_read): Call
1350 "target_read_partial", not "target_write_partial".
1351 (default_read_partial, default_write_partial): New function.
1352 (target_read_partial, target_write_partial): Simplify, assume that
1353 there is always a read/write method.
1354 (update_current_target, add_target): Always set "to_read_partial"
1355 and "to_write_partial".
1356 (target_write, target_read): Fail on a zero byte transfer.
1357 * Makefile.in (target.o): Update dependencies.
1358 * target.h: Update copyright date.
1359 (target_object): Fix typo.
1360
1361 2003-10-22 Andrew Cagney <cagney@redhat.com>
1362
1363 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1364 multi-arch method, add "targ" parameter.
1365 (struct target_ops): Declare.
1366 * gdbarch.h, gdbarch.c: Re-generate.
1367 * Makefile.in (c-valprint.o): Update dependencies.
1368 * arch-utils.h: Update copyright.
1369 (convert_from_func_ptr_addr_identity): Declare.
1370 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1371 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1372 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1373 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1374 * infcall.c (find_function_addr, call_function_by_hand): Update.
1375 * c-valprint.c: Include "target.h".
1376 (print_function_pointer_address): Update.
1377
1378 2003-10-22 Andrew Cagney <cagney@redhat.com>
1379
1380 * target.c (target_close): New function.
1381 (debug_to_close): Use "target_close".
1382 (push_target): Use "target_close".
1383 (unpush_target): Use "target_close".
1384 (pop_target): Use "target_close".
1385 * target.h (struct target_ops): Add "to_xclose".
1386 (target_open): Delete macro. Move comment to "to_open".
1387 (target_close): Replace macro with function that takes a target.
1388 * top.c (quit_target): Pass "current_target" to "target_close".
1389
1390 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
1391
1392 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1393 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1394 * symtab.h (lookup_minimal_symbol_text): Update.
1395 * breakpoint.c (create_overlay_event_breakpoint,
1396 create_longjmp_breakpoint): Update callers.
1397 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1398 * symtab.c (find_pc_sect_line): Ditto.
1399
1400 2003-10-21 Andrew Cagney <cagney@redhat.com>
1401
1402 * target.c (errno): Delete extern declaration.
1403
1404 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1405
1406 * ia64-tdep.c: Change all occurrences of
1407 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1408 (ia64_frame_prev_register): Minor whitespace change.
1409
1410 2003-10-20 Michael Chastain <mec@shout.net>
1411
1412 * config/djgpp/fnchange.lst: Add lines for:
1413 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1414 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1415 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1416 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1417 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1418 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1419 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1420
1421 2003-10-20 Andrew Cagney <cagney@redhat.com>
1422
1423 * values.c (register_value_being_returned): Update comments. Use
1424 "gdbarch_return_value" when available.
1425 (using_struct_return): Ditto.
1426 (set_return_value): Ditto. Use "gdbarch_return_value" when
1427 available.. Print a warning, and not an error, when an unhandled
1428 return type is encountered.
1429 * infcmd.c: Include "gdb_assert.h".
1430 (print_return_value): When gdbarch_return_value_p, and using
1431 struct return, assume that the value is not available.
1432 * defs.h (return_value_convention): Define.
1433 * gdbarch.sh (gdbarch_return_value): New predicate method.
1434 * gdbarch.h, gdbarch.c: Re-generate
1435 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1436
1437 2003-10-20 Andrew Cagney <cagney@redhat.com>
1438
1439 * symtab.c: Replace "struct sec" with "struct bfd_section".
1440 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1441
1442 2003-10-19 Michael Chastain <mec@shout.net>
1443
1444 * config/djgpp/fnchange.lst: Add lines for:
1445 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1446 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1447 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1448
1449 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1450
1451 * amd64fbsd-nat.c (fetch_inferior_registers,
1452 store_inferior_registers): Remove functions.
1453 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1454
1455 2003-10-18 Mark Kettenis <kettenis@gnu.org>
1456
1457 Add NetBSD/amd64 native configuration:
1458 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1459 * amd64nbsd-tdep.c: New file.
1460 * amd64nbsd-nat.c: New file.
1461 * amd64bsd-nat.c: New file.
1462 * config/i386/nbsd64.mh: New file.
1463 * config/i386/nbsd64.mt: New file.
1464 * configure.host: Add x86_64-*-netbsd*.
1465 * configure.tgt: Add x86_64-*-netbsd*.
1466 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1467 New targets.
1468 * NEWS (New native configurations): Mention NetBSD/amd64.
1469
1470 2003-10-17 Michael Chastain <mec@shout.net>
1471
1472 * config/djgpp/fnchange.lst: Remove dead lines for:
1473 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1474 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1475 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1476 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1477 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1478 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1479 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1480 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1481 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1482 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1483 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1484 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1485 gdb/config/sparc/tm-sparclite.h,
1486 gdb/gdbtk/generic/ChangeLog-2001,
1487 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1488 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1489 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1490 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1491 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1492 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1493 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1494 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1495 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1496 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1497 itcl/iwidgets3.0.0/demos/fileselectionbox,
1498 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1499 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1500 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1501 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1502 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1503 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1504 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1505 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1506 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1507 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1508 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1509 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1510 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1511 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1512 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1513 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1514 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1515 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1516 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1517 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1518 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1519 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1520 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1521 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1522 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1523 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1524 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1525 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1526 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1527 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1528 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1529 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1530 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1531 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1532 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1533 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1534 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1535 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1536 itcl/iwidgets3.0.0/demos/scrolledframe,
1537 itcl/iwidgets3.0.0/demos/scrolledhtml,
1538 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1539 itcl/iwidgets3.0.0/demos/scrolledtext,
1540 itcl/iwidgets3.0.0/demos/selectionbox,
1541 itcl/iwidgets3.0.0/demos/selectiondialog,
1542 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1543 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1544 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1545 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1546 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1547 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1548 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1549 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1550 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1551 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1552 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1553 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1554 itcl/iwidgets3.0.0/doc/selectionbox.n,
1555 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1556 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1557 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1558 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1559 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1560 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1561 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1562 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1563 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1564 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1565 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1566 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1567 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1568 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1569 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1570 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1571 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1572 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1573 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1574 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1575 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1576 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1577 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1578 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1579 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1580 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1581 itcl/iwidgets3.0.0/tests/selectionbox.test,
1582 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1583 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1584 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1585 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1586 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1587 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1588 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1589 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1590 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1591 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1592 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1593 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1594 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1595 tk/mac/tkMacProjects.sit.hqx.
1596
1597 2003-10-17 Andrew Cagney <cagney@redhat.com>
1598
1599 * target.c (target_section_by_addr): New function.
1600 (do_xfer_memory): Use "target_section_by_addr".
1601 * target.h (target_section_by_addr): Declare.
1602
1603 * target.h (struct target_ops): Add "to_read_partial" and
1604 "to_write_partial", delete "to_query".
1605 (target_read_partial, target_write_partial): Declare.
1606 (target_read, target_write): Declare.
1607 (target_query): Delete macro.
1608 * target.c (target_read_partial): New function.
1609 (target_write_partial, target_read, target_write): New function.
1610 (update_current_target): Delete inheritance of "to_query". Add
1611 comments about "to_read_partial" and "to_write_partial".
1612 (debug_to_partial_read, debug_to_partial_write): New functions.
1613 (debug_to_query): Delete function.
1614 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1615 instead of "to_query".
1616 * remote.c (remote_read_partial): Replace "remote_query".
1617 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1618 (init_remote_async_ops): Ditto.
1619 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1620 "target_read_partial" instead of "target_query".
1621 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1622 Use "target_read_partial" instead of "target_query".
1623
1624 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1625
1626 * frame.h (struct frame_id): Add new field: special_addr.
1627 (frame_id_build_special): New prototype.
1628 * frame.c (frame_id_build_special): New function.
1629 (frame_id_build): Change to call frame_id_build_special().
1630 (frame_id_eq): Change to also test special_addr field.
1631 (frame_id_inner): Update comment.
1632
1633 2003-10-17 Andrew Cagney <cagney@redhat.com>
1634
1635 * target.c (update_current_target): Perform the target cleanup.
1636 Put the target stack beneath the squashed "current_target".
1637 (add_target): Delete disabled call to "cleanup_target".
1638 (cleanup_target): Delete function.
1639 (push_target, unpush_target): Do not call "cleanup_target".
1640
1641 2003-10-17 Andrew Cagney <cagney@redhat.com>
1642
1643 * target.c (target_stack): Change to a static target_ops.
1644 (update_current_target): Walk the "struct target_ops" stack.
1645 (pop_target, do_xfer_memory, target_info): Ditto.
1646 (find_target_beneath): Ditto.
1647 (push_target): Rewrite to use the "struct target_ops" stack.
1648 (unpush_target): Ditto.
1649 * target.h (struct target_stack_item): Delete definition.
1650 (target_stack): Delete declaration.
1651 (struct target_ops): Add field "beneath".
1652
1653 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1654
1655 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1656 declaration.
1657 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1658 (h8300_examine_prologue): Use h8300_normal_mode flag
1659 (h8300_gdbarch_init): Set architecture info for normal mode
1660
1661 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
1662
1663 * remote.c (remote_protocol_vcont): New variable.
1664 (set_remote_protocol_vcont_packet_cmd): New function.
1665 (show_remote_protocol_vcont_packet_cmd): New function.
1666 (init_all_packet_configs): Handle remote_protocol_vcont.
1667 (remote_vcont_probe): New function.
1668 (remote_vcont_resume): New function.
1669 (remote_resume): Use it.
1670 (remote_async_resume): Call remote_resume.
1671 (_initialize_remote): Add verbose-resume packet commands.
1672
1673 2003-10-16 Andrew Cagney <cagney@redhat.com>
1674
1675 * infrun.c (handle_inferior_event): Add comment about
1676 "frame_id_inner" being too weak.
1677
1678 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
1679
1680 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1681 second parameter, which is always null. Remove
1682 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1683 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1684 accordingly.
1685 * somsolib.c (som_solib_create_inferior_hook,
1686 som_solib_desire_dynamic_linker_symbols): Update callers.
1687 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1688
1689 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1690
1691 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1692 debug interface, SDI (Scalable Debug Interface).
1693 * NEWS: Mention m32r SDI protocol was supported.
1694 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1695 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1696
1697 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1698
1699 * ia64-linux-tdep.c: Include gdbcore.h.
1700 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1701 (ia64_linux_sigcontext_register_addr): Find the address of the
1702 sigcontext area stored in the sigframe instead of using
1703 a magic offset constant.
1704
1705 2003-10-15 Andrew Cagney <cagney@redhat.com>
1706
1707 * remote.c (remote_search): Delete function.
1708 * target.h (target_search): Delete disabled macro.
1709 (struct target_ops): Delete disabled field "to_search".
1710
1711 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1712
1713 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1714 instead of deprecated_inside_entry_file().
1715
1716 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1717
1718 * sh-tdep.c: Fix copy/paste hangover in comment.
1719 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1720 mode.
1721 (sh3e_sh4_extract_return_value): Ditto.
1722
1723 2003-10-13 Richard Henderson <rth@redhat.com>
1724
1725 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1726 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1727 match c_val_print a bit closer.
1728
1729 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1730
1731 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1732 (frv_gdbarch_adjust_breakpoint_address): New function.
1733 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1734 method.
1735
1736 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1737
1738 * breakpoint.h (struct breakpoint): Add new member
1739 ``requested_address''.
1740 * breakpoint.c (breakpoint_adjustment_warning)
1741 (adjust_breakpoint_address): New static functions.
1742 (print_it_typical): Issue warning if breakpoint's address is different
1743 from its requested address.
1744 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1745 (breakpoint_re_set_one): Set breakpoint's
1746 ``requested_address'' field. Set ``address'' field to the
1747 result of calling adjust_breakpoint_address() on the requested
1748 address.
1749
1750 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1751
1752 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1753 * gdbarch.h, gdbarch.c: Regenerate.
1754
1755 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1756
1757 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1758 TDEP->sc_num_regs.
1759
1760 * i386fbsd-tdep.c: New file.
1761 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1762 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1763 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1764 i386bsd-tdep.c.
1765 (_initialize_i386fbsd_tdep): New function.
1766 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1767 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1768 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1769 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1770 TDEP->sc_num_regs.
1771 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1772 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1773 to initialize TDEP->sc_num_regs.
1774 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1775 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1776 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1777 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1778 FreeBSD ELF OS/ABI's here.
1779 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1780 (i386fbsd-tdep.o): New target.
1781 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1782 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1783
1784 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1785 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1786 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1787 in initialization of TDEP->sc_num_regs.
1788
1789 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1790 (x86_64_init_abi): Initialize regset_from_core_section if
1791 appropriate.
1792
1793 * i386-tdep.c (i386_regset_from_core_section): New function.
1794 (i386_gdbarch_init): Initialize regset_from_core_section if
1795 appropriate.
1796 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1797
1798 * i386-tdep.h (struct regset): Declare opaque.
1799
1800 * gdbarch.sh (regset_from_core_section): New method.
1801 (struct regset): Declare opaque.
1802 * gdbarch.c, gdbarch.h: Regenerated.
1803
1804 2003-10-11 Alan Modra <amodra@bigpond.net.au>
1805
1806 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1807 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1808 Correct test for pc within section.
1809
1810 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1811
1812 * gdbarch.sh: Remove trailing whitepsace from comments.
1813
1814 2003-10-08 Roland McGrath <roland@redhat.com>
1815
1816 * gcore.c (make_mem_sec): Function removed, folded into ...
1817 (gcore_create_callback): ... here. To omit a section, clear its
1818 SEC_LOAD bit rather than zeroing its size.
1819 Omit read-only sections only if they correspond to a known disk file.
1820 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1821
1822 2003-10-10 Michael Snyder <msnyder@redhat.com>
1823
1824 * d10v-tdep.c: Fix typo in comment.
1825
1826 2003-10-10 Andrew Cagney <cagney@redhat.com>
1827
1828 * rs6000-tdep.c (e500_store_return_value): Delete function.
1829 (e500_extract_return_value): Delete function.
1830 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1831 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1832 "ppc_sysv_abi_restore_return_value" where applicable.
1833 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1834 (ppc_sysv_abi_extract_return_value): Declare.
1835 (ppc_sysv_abi_broken_store_return_value): Declare.
1836 (ppc_sysv_abi_broken_extract_return_value): Declare.
1837 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1838 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1839 start of file.
1840 (do_ppc_sysv_return_value): New function.
1841 (ppc_sysv_abi_extract_return_value): New function.
1842 (ppc_sysv_abi_store_return_value): New function.
1843 (ppc_sysv_abi_broken_extract_return_value): New function.
1844 (ppc_sysv_abi_broken_store_return_value): New function.
1845 (ppc_sysv_abi_use_struct_convention): Call
1846 do_ppc_sysv_return_value.
1847
1848 2003-10-10 J. Brobecker <brobecker@gnat.com>
1849
1850 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1851 to lookup the main function symbol.
1852
1853 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1854
1855 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1856 types correctly.
1857 (sh_push_dummy_call_fpu): Fix argument passing rules.
1858 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1859 float types.
1860 (sh3e_sh4_store_return_value): Ditto.
1861
1862 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1863
1864 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1865 comment.
1866
1867 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1868
1869 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1870 more readable code. Accomodate passing of bitfields.
1871
1872 2003-10-10 Andrew Cagney <cagney@redhat.com>
1873
1874 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1875 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1876 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1877 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1878 (ppc64_sysv_abi_push_dummy_call): New function.
1879 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1880 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1881 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1882
1883 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1884
1885 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1886 * README: Ditto.
1887 * d10v-tdep.c: Ditto.
1888 * h8300-tdep.c: Ditto.
1889 * remote-e7000.c: Ditto.
1890 * remote-hms.c: Ditto.
1891 * ser-e7kpc.c: Ditto.
1892 * sh-stub.c: Ditto.
1893 * sh-tdep.c: Ditto.
1894 * sh-tdep.h: Ditto.
1895 * sh3-rom.c: Ditto.
1896 * sh64-tdep.c: Ditto.
1897 * top.c: Ditto.
1898 * wince.c: Ditto.
1899 * config/d10v/d10v.mt: Ditto.
1900 * config/sh/embed.mt: Ditto.
1901 * config/sh/linux.mt: Ditto.
1902 * config/sh/tm-linux.h: Ditto.
1903 * config/sh/tm-sh.h: Ditto.
1904 * config/sh/wince.mt: Ditto.
1905
1906 2003-10-09 Andrew Cagney <cagney@redhat.com>
1907
1908 * ppc-tdep.h (struct type): Declare opaque.
1909 * x86-64-tdep.h (struct regcache): Declare opaque.
1910 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1911 coding style.
1912
1913 2003-10-09 Andrew Cagney <cagney@redhat.com>
1914
1915 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1916 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1917 (SOFTWARE_SINGLE_STEP_P): Ditto.
1918 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1919 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1920 (SOFTWARE_SINGLE_STEP_P): Ditto.
1921 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1922 software_single_step to rs6000_software_single_step.
1923
1924 2003-10-09 Andrew Cagney <cagney@redhat.com>
1925
1926 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1927
1928 2003-10-09 Michael Snyder <msnyder@redhat.com>
1929
1930 * frame.h: Fix typo in comment.
1931 * dummy-frame.c: Fix typo in comment.
1932 * d10v-tdep.c: Random whitespace/comment tweaks.
1933
1934 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1935
1936 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1937 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1938 on stack.
1939
1940 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1941 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1942 in detail.
1943
1944 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1945
1946 * remote-mips.c (mips_initialize): Remove unneeded call to
1947 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1948
1949 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1950
1951 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1952 a memory pointer.
1953
1954 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1955
1956 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1957 for any lwp we resume.
1958 (running_callback): Add lwps that have pending status events
1959 against them to be considered running.
1960
1961 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1962
1963 * m32r-tdep.c : Include "dis-asm.h".
1964 * Makefile.in (m32r-tdep.o): Update dependencies.
1965
1966 2003-10-06 J. Brobecker <brobecker@gnat.com>
1967
1968 * completer.h (get_gdb_completer_word_break_characters): Delete.
1969 * completer.c: include language.h.
1970 (gdb_completer_word_break_characters): Delete.
1971 (get_gdb_completer_word_break_characters): Delete.
1972 (location_completer): Use the word break characters of the current
1973 language.
1974 (complete_line): Likewise.
1975 (line_completion_function): Likewise.
1976 (skip_quoted_chars): Likewise.
1977 * Makefile.in (completer.o): Add dependency on language.h.
1978 * top.c (init_main): Set the readline word break characters
1979 to GDB's default word break characters.
1980
1981 2003-10-06 J. Brobecker <brobecker@gnat.com>
1982
1983 * language.h (language_defn): new field, la_word_break_characters.
1984 * language.c (unknown_language_defn): Set new field to
1985 default_word_break_characters.
1986 (auto_language_defn): Likewise.
1987 (local_language_defn): Likewise.
1988 * ada-lang.c (ada_language_defn): Likewise.
1989 * c-lang.c (c_language_defn): Likewise.
1990 (cplus_language_defn): Likewise.
1991 (asm_language_defn): Likewise.
1992 (minimal_language_defn): Likewise.
1993 * f-lang.c (f_language_defn): Likewise.
1994 * jv-lang.c (java_language_defn): Likewise.
1995 * m2-lang.c (m2_language_defn): Likewise.
1996 * objc-lang.c (objc_language_defn): Likewise.
1997 * p-lang.c (pascal_language_defn): Likewise.
1998 * scm-lang.c (scm_language_defn): Likewise.
1999
2000 2003-10-06 Andrew Cagney <cagney@redhat.com>
2001
2002 * ppc-sysv-tdep.c: Re-indent.
2003
2004 2003-10-06 J. Brobecker <brobecker@gnat.com>
2005
2006 * language.h (default_word_break_characters): Add prototype.
2007 * language.c (default_word_break_characters): New function.
2008
2009 2003-10-06 Andreas Schwab <schwab@suse.de>
2010
2011 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2012 with %eax.
2013
2014 2003-10-06 Andrew Cagney <cagney@redhat.com>
2015
2016 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2017 "h8500-tdep.c".
2018 (z8k-tdep.o): Delete custom build rule.
2019
2020 2003-10-06 Andrew Cagney <cagney@redhat.com>
2021
2022 * Makefile.in: Update all dependencies.
2023
2024 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2025 No longer list PA as as obsolete candidate. List m32r as
2026 broken instead of obsolete.
2027
2028 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2029 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2030 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2031 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2032 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2033 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2034 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2035 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2036 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2037 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2038 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2039 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2040 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2041 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2042 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2043 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2044 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2045 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2046 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2047 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2048 * config/z8k/z8k.mt: Ditto.
2049
2050 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2051 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2052 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2053 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2054 sparclite were removed.
2055 * configure.host, configure.tgt: Remove corresponding tuples.
2056
2057 * breakpoint.c, breakpoint.h: Remove obsolete code.
2058 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2059 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2060 * stabsread.h, xcoffread.c: Ditto.
2061
2062 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2063 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2064 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2065 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2066
2067 2003-10-06 David Lecomber <dsl@sources.redhat.com>
2068
2069 * f-valprint.c: Reformatting
2070
2071 2003-10-06 Mark Kettenis <kettenis@gnu.org>
2072
2073 * x86-64-tdep.c: Remove duplicate comment.
2074
2075 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2076 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2077 names for return values. This fixes a bug since we looked at %rbx
2078 instead of %rdx.
2079
2080 2003-10-05 Mark Kettenis <kettenis@gnu.org>
2081
2082 * x86-64-tdep.c: Include "regset.h".
2083
2084 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2085 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2086 sizeof_fpregset.
2087 * i386-tdep.c: Include "regset.h".
2088 (i386_supply_gregset): New function.
2089 (i386_supply_fpregset): New function.
2090 (i386_gdbarch_init): Initialze register set-related members of
2091 TDEP.
2092 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2093 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2094
2095 2003-10-03 Andrew Cagney <cagney@redhat.com>
2096
2097 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2098 set extract_return_value, store_return_value and
2099 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2100 ppc64_sysv_abi_store_return_value and
2101 ppc64_sysv_abi_use_struct_convention.
2102 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2103 (ppc64_sysv_abi_store_return_value): Declare.
2104 (ppc64_sysv_abi_use_struct_convention): Declare.
2105 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2106 (ppc64_sysv_abi_extract_return_value): New function.
2107 (ppc64_sysv_abi_store_return_value): New function.
2108 (ppc64_sysv_abi_use_struct_convention): New function.
2109 (ppc64_sysv_abi_return_value): New function.
2110
2111 2003-10-03 Andrew Cagney <cagney@redhat.com>
2112
2113 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2114 convert a descriptor to a function when it's in the ".opd"
2115 section.
2116
2117 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2118
2119 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2120 reg_size to keep GCC silent.
2121
2122 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2123
2124 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2125 base for DW_EH_PE_textrel encodings.
2126 (read_encoded_value): Add a DW_EH_PE_textrel case.
2127 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2128 section.
2129
2130 2003-10-03 Mark Kettenis <kettenis@gnu.org>
2131
2132 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2133
2134 2003-10-02 Andrew Cagney <cagney@redhat.com>
2135
2136 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2137 REGISTER_RAW_SIZE.
2138 * gdbarch.h, gdbarch.c: Re-generate.
2139 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2140 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2141 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2142 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2143 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2144 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2145 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2146 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2147 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2148 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2149 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2150 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2151 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2152 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2153 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2154 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2155
2156 2003-10-02 Jim Blandy <jimb@redhat.com>
2157
2158 * dwarf2read.c (struct die_info): Doc fix.
2159
2160 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2161
2162 * sh-tdep.c: Running thru gdb_indent.sh.
2163
2164 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2165
2166 * sh-tdep.c (sh_justify_value_in_reg): New function.
2167 (sh_stack_allocsize): Ditto.
2168 (flt_argreg_array): New array used for floating point argument
2169 passing.
2170 (sh_init_flt_argreg): New function.
2171 (sh_next_flt_argreg): Ditto.
2172 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2173 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2174 Fix argument passing strategy.
2175 (sh_push_dummy_call_nofpu): Ditto.
2176
2177 2003-10-01 Andrew Cagney <cagney@redhat.com>
2178
2179 * value.h (register_value_being_returned): Declare. Replace
2180 "value_being_returned".
2181 * infcall.c (call_function_by_hand): Use
2182 register_value_being_returned.
2183 * infcmd.c (print_return_value): Call
2184 "register_value_being_returned", handle struct return locally.
2185 * values.c (register_value_being_returned): New function. Replace
2186 "value_being_returned".
2187
2188 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
2189
2190 * linux-proc.c (linux_do_registers): New function.
2191 (linux_make_note_section): Use linux_do_registers in case of
2192 single threaded inferior programs.
2193
2194 2003-10-01 Andrew Cagney <cagney@redhat.com>
2195
2196 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2197 use STRUCT_ADDR. When not using "struct return convention", pass
2198 "0" to "value_being_returned". Add FIXMEs.
2199 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2200 value_being_returned. Add comments.
2201 * values.c (value_being_returned): Add fixme.
2202 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2203 (hppa_value_returned_from_stack): Add FIXME.
2204
2205 2003-09-30 David Carlton <carlton@kealia.com>
2206
2207 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2208 'has_children' and 'next' by 'child' and 'sibling'.
2209 (read_comp_unit): Rework algorithm, breaking body into
2210 read_die_and_children and read_die_and_siblings.
2211 (read_die_and_children, read_die_and_siblings): New.
2212 (read_full_die): Add 'has_children' argument; set it instead of
2213 the die's 'has_children' field. Minor formatting cleanup.
2214 (free_die_list): Use die->child and die->sibling instead of
2215 die->next.
2216 (dump_die_list): Ditto.
2217 (sibling_die): Use die->sibling.
2218 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2219 'has_children' and 'next' fields.
2220 (process_die, read_file_scope, read_func_scope)
2221 (read_lexical_block_scope, read_structure_scope)
2222 (read_enumeration, read_array_type, read_common_block)
2223 (read_namespace, read_subroutine_type, dump_die): Ditto.
2224
2225 2003-09-30 Andrew Cagney <cagney@redhat.com>
2226
2227 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2228 to 224, not 220.
2229
2230 2003-09-30 Andrew Cagney <cagney@redhat.com>
2231
2232 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2233 REGISTER_VIRTUAL_SIZE.
2234 * gdbarch.h, gdbarch.c: Regenerate.
2235 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2236 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2237 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2238
2239 2003-09-29 Andrew Cagney <cagney@redhat.com>
2240
2241 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2242 REGISTER_VIRTUAL_TYPE.
2243 * gdbarch.h, gdbarch.c: Regenerate.
2244 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2245 * sh64-tdep.c, sparc-tdep.c: Update.
2246
2247 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2248 * remote-vxmips.c (vx_read_register): Ditto.
2249 * remote-vx68.c (vx_read_register): Ditto.
2250 * gnu-nat.c (inf_validate_procs): Ditto.
2251
2252 2003-09-29 J. Brobecker <brobecker@gnat.com>
2253
2254 * infcall.c (call_function_by_hand): Fix build failure
2255 introduced in the previous change to this file.
2256
2257 2003-09-29 Andrew Cagney <cagney@redhat.com>
2258
2259 * NEWS: Mention Objective-C.
2260
2261 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
2262
2263 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2264 test if the register has been saved on the stack.
2265 (arm_scan_prologue_cache): When analysing the instruction
2266 "str lr, [sp, #-4]", save the address where lr has been stored.
2267
2268 2003-09-28 Andrew Cagney <cagney@redhat.com>
2269
2270 * frame.c (frame_read_unsigned_register): Delete function.
2271 * frame.h (frame_read_unsigned_register): Delete declaration.
2272 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2273 get_frame_register_unsigned.
2274 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2275 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2276 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2277
2278 * frame.h (frame_read_register): Delete declaration.
2279 * frame.c (frame_read_register): Delete function.
2280 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2281 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2282 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2283 * mips-tdep.c (mips_register_to_value): Ditto.
2284 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2285 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2286
2287 * frame.c (frame_read_signed_register): Delete function.
2288 (frame_read_unsigned_register): Update comments.
2289 * frame.h (frame_read_signed_register): Delete declaration.
2290 * h8300-tdep.c (h8300_print_register): Use
2291 get_frame_register_signed.
2292 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2293
2294 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2295 Rename VALUE_RETURNED_FROM_STACK.
2296 * infcmd.c (print_return_value): Update.
2297 * infcall.c (call_function_by_hand): Update.
2298
2299 2003-09-28 Mark Kettenis <kettenis@gnu.org>
2300
2301 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2302 regcache argument and reverse the order of the other two
2303 arguments. Remove local regcache variable. Determine
2304 architecture from REGCACHE. Update comments.
2305 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2306 reverse the order of the other two arguments. Remove local
2307 regcache variable. Determine architecture from REGCACHE. Update
2308 comments.
2309 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2310 prototypes. Update comments.
2311 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2312 comment.
2313 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2314 Update.
2315 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2316 * i386-interix-nat.c (supply_fpregset): Update.
2317 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2318 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2319 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2320 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2321 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2322 Update.
2323 * i386obsd-tdep.c (fetch_core_registers): Update.
2324 * i386v4-nat.c (supply_fpregset): Update.
2325 * x86-64-linux-nat.c (supply_fpregset): Update.
2326 * x86-64-linux-tdep.c (fetch_core_registers): Update.
2327
2328 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2329
2330 * i386-tdep.h: Put opaque declarations in alphabetical
2331 order. Remove spurious whitespace.
2332 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2333 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2334 * i386-tdep.c (MM0_REGNUM): Remove define.
2335 (i386_mmx_regnum_p): Add gdbarch argument.
2336 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2337 Rewrite using new macro definitions for FPU/SSE registers.
2338 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2339 definitions from i387-tdep.h.
2340 (i386_register_name): Update.
2341 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2342 new macro definitions for FPU/SSE registers.
2343 (i386_extract_return_value): Determine whether floating-point
2344 registers are present by examining REGCACHE's architecture.
2345 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2346 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2347 FPU/SSE registers.
2348 (i386_register_type): Update.
2349 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2350 definitions for FPU registers. Use REGCACHE's architecture to
2351 determine the appropriate register numbers.
2352 (i386_pseudo_register_read, i386_pseudo_register_write,
2353 i386_register_reggroup_p): Update.
2354 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2355 TDEP->mm0_regnum.
2356 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2357 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2358 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2359 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2360 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2361 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2362 *' to `void *'.
2363 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2364 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2365 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2366 definitions for FPU/SSE registers.
2367 (FXSAVE_MXCSR_ADDR): New define.
2368 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2369 TDEP->mm0_regnum.
2370 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2371 (I387_ST0_REGNUM): Define.
2372
2373 * regcache.h (get_regcache_arch): New prototype.
2374 * regcache.c (get_regcache_arch): New function.
2375
2376 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2377 whitespace.
2378
2379 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2380 Initialize using ARRAY_SIZE.
2381
2382 2003-09-27 Andrew Cagney <cagney@redhat.com>
2383
2384 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2385 "init_frame_pc_default".
2386 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2388 * vax-tdep.c (vax_gdbarch_init): Update.
2389 * v850-tdep.c (v850_gdbarch_init): Update.
2390 * sh64-tdep.c (sh64_gdbarch_init): Update.
2391 * s390-tdep.c (s390_gdbarch_init): Update.
2392 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2393 * mcore-tdep.c (mcore_gdbarch_init): Update.
2394 * h8300-tdep.c (h8300_gdbarch_init): Update.
2395 * cris-tdep.c (cris_gdbarch_init): Update.
2396 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2397
2398 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2399
2400 * regset.h: New file.
2401 * Makefile.in (regset_h): Add.
2402
2403 2003-09-25 Andrew Cagney <cagney@redhat.com>
2404
2405 * frame.h (deprecated_frame_saved_regs): Rename
2406 get_frame_saved_regs.
2407 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2408 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2409 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2410 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2411 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2412
2413 2003-09-25 Andrew Cagney <cagney@redhat.com>
2414
2415 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2416 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2417 and Java.
2418 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2419 arm*-*-* do not use the new frame code.
2420
2421 2003-09-25 David Carlton <carlton@kealia.com>
2422
2423 * c-exp.y: Remove 'register' declarations.
2424 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2425
2426 2003-09-25 David Carlton <carlton@kealia.com>
2427
2428 * c-exp.y: Include cp-support.h. Add qualified_type.
2429 (yylex): Delete nested type hack; add comments.
2430 * cp-namespace.c (cp_lookup_nested_type): New function.
2431 * cp-support.h: Declare cp_lookup_nested_type.
2432 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2433 instead of value_struct_elt_for_reference.
2434 * valops.c: Include cp-support.h.
2435 (value_aggregate_elt): New function.
2436 (value_namespace_elt): Ditto.
2437 (value_struct_elt_for_reference): Make static.
2438 * value.h: Delete declaration of value_struct_elt_for_reference;
2439 add declaration for value_aggregate_elt.
2440 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2441 (valops.o): Ditto.
2442
2443 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2444
2445 * stack.c: Include "reggroups.h".
2446 (frame_info): Only display registers in all_reggroup.
2447 * Makefile.in (stack.o): Update dependencies.
2448
2449 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2450
2451 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2452 "add ip, sp #n" in the prologue.
2453 (arm_scan_prologue): Ditto.
2454
2455 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2456
2457 * MAINTAINERS (write after approval): Add myself.
2458
2459 2003-09-25 Andreas Schwab <schwab@suse.de>
2460
2461 * m68k-tdep.c: Include "dwarf2-frame.h".
2462 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2463 * Makefile.in (m68k-tdep.o): Update dependencies.
2464
2465 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
2466
2467 * sh-tdep.c (struct frame_extra_info): Remove.
2468 (struct sh_frame_cache): New structure.
2469 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2470 (GET_TARGET_REG): Ditto but target register.
2471 (GET_PUSHED_REG): Remove.
2472 (IS_MOV_ARG_TO_REG): New macro.
2473 (IS_MOV_ARG_TO_IND_R14): New macro.
2474 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2475 (IS_MOVW_PCREL_TO_REG): New macro.
2476 (IS_MOVL_PCREL_TO_REG): New macro.
2477 (IS_SUB_REG_FROM_SP): New macro.
2478 (IS_ARG_MOV): Remove.
2479 (IS_MOV_TO_R14): Remove.
2480 (IS_RESTORE_FP): New macro.
2481 (IS_RTS): New macro.
2482 (IS_LDS): New macro.
2483 (IS_MOV_FP_SP): New macro.
2484 (IS_ADD_REG_TO_FP): New macro.
2485 (IS_ADD_IMM_FP): New macro.
2486 (sh_skip_prologue_hard_way): Remove.
2487 (sh_saved_pc_after_call): Remove.
2488 (sh_frame_chain): Remove.
2489 (sh_find_callers_reg): Remove.
2490 (sh_nofp_frame_init_saved_regs): Remove.
2491 (sh_fp_frame_init_saved_regs): Remove.
2492 (sh_init_extra_frame_info): Remove.
2493 (sh_analyze_prologue): New function.
2494 (sh_skip_prologue): Remove deprecated code. Rely on new function
2495 sh_analyze_prologue when after_prologue fails.
2496 (sh_frame_saved_pc): Remove.
2497 (sh_alloc_frame_cache): New function.
2498 (sh_frame_cache): Ditto.
2499 (sh_frame_prev_register): Ditto.
2500 (sh_frame_this_id): Ditto.
2501 (sh_frame_unwind): New structure defining the heuristic frame
2502 sniffer interface.
2503 (sh_frame_sniffer): New function.
2504 (sh_unwind_sp): Ditto.
2505 (sh_unwind_pc): Ditto.
2506 (sh_unwind_dummy_id): Ditto.
2507 (sh_frame_base_address): Ditto.
2508 (sh_frame_base): New structure defining new frame base code.
2509 (sh_in_function_epilogue_p): New function.
2510 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2511 code and to call all new code instead. Initialize dwarf2 and
2512 heuristic frame sniffer.
2513
2514 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2515
2516 * parser-defs.h (struct exp_descriptor): New definition, containing
2517 language-specific info for printing, prefixifying, dumping, and
2518 evaluating expressions.
2519 (exp_descriptor_standard): Declare new variable.
2520 (print_subexp): Make global and declare here (from expprint.c).
2521 (dump_subexp): Ditto.
2522 (dump_subexp_body_standard): Declare.
2523 (operator_length_standard): Declare.
2524 (op_name_standard): Declare.
2525 (print_subexp): Declare.
2526 (print_subexp_standard): Declare.
2527
2528 * language.h (struct language_defn): Add la_exp_desc field to hold
2529 pointer to table for language-specific operators.
2530 Remove evaluate_exp field, which is now in struct exp_descriptor.
2531
2532 * parse.c (operator_length): Move most code to new
2533 operator_length_standard function. Use language-specific information.
2534 (operator_length_standard): New function taking most code from
2535 operator_length.
2536 (exp_descriptor_standard): New constant.
2537
2538 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2539 and OP_EXTENDED_LAST.
2540
2541 * expprint.c (print_subexp): Use language-specific print_subexp.
2542 Make global; remove static declaration.
2543 Move most code to print_subexp_standard.
2544 (print_subexp_standard): New function, containing code formerly in
2545 print_subexp.
2546 (op_name): Add expression to argument signature.
2547 Use langauge-specific op_name.
2548 Move most code to op_name_standard.
2549 (op_name_standard): New function, containing code formerly in op_name.
2550 (dump_subexp): Use new version of op_name function.
2551 Use language-specific dump_subexp_body, and move most existing code to
2552 dump_subexp_body_standard.
2553 (dump_raw_expression): Use new op_name interface.
2554 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2555 (dump_subexp_body_standard): New function, containing code formerly
2556 in dump_subexp_body.
2557
2558 * language.c (unknown_language): Add default la_exp_desc field and
2559 remove evaluate_exp field.
2560 (auto_language): Ditto.
2561 (local_language): Ditto.
2562 * f-lang.c (f_language_defn): Ditto.
2563 * c-lang.c (c_language_defn): Ditto.
2564 (cplus_language_defn): Ditto.
2565 (asm_language_defn): Ditto.
2566 (minimal_language_defn): Ditto.
2567 * p-lang.c (pascal_language_defn): Ditto.
2568 * m2-lang.c (m2_language_defn): Ditto.
2569 * objc-lang.c (objc_language_defn): Ditto.
2570
2571 * jv-lang.c (exp_descriptor_java): New variable, containing
2572 Java-specific expression evaluator.
2573 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2574 field.
2575 * scm-lang.c (exp_descriptor_scm): New variable, containing
2576 Scheme-specific expression evaluator.
2577 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2578 field.
2579 * objc-lang.c (print_object_command): Take evaluate_exp from the
2580 la_exp_desc field.
2581
2582 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2583
2584 * eval.c: Include parser-defs.h for the full declaration of
2585 la_exp_desc's type.
2586 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2587
2588 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2589
2590 * parser-defs.h (operator_length): Declare.
2591
2592 * parse.c (length_of_subexp): Use operator_length to get operator
2593 lengths and arities for operators.
2594 Move most code to new operator_length function.
2595 (operator_length): New function absorbing most code from
2596 length_of_subexp.
2597 (prefixify_subexp): Remove large case and use operator_length instead.
2598 (parse_exp_1): Use renamings:
2599 dump_prefix_expression => dump_raw_expression and
2600 dump_postfix_expression => dump_prefix_expression.
2601
2602 * expression.h (dump_prefix_expression): Rename to ...
2603 (dump_raw_expression): New name.
2604 (dump_postfix_expression): Rename to ...
2605 (dump_prefix_expression): New name.
2606
2607 * expprint.c (dump_subexp): Make global. Add comment.
2608 Move most existing code to dump_subexp_body.
2609 (dump_subexp_body): New function.
2610 (dump_prefix_expression): Rename to dump_raw_expression.
2611 Remove attempt to print the expression via print_expression: it can't
2612 work before the expression is prefixified.
2613 (dump_raw_expression): Renamed from dump_prefix_expression.
2614 (dump_postfix_expression): Rename to dump_prefix_expression, since
2615 that's what it does.
2616 Remove 'note' parameter, since this routine must be used on
2617 prefixified expression.
2618 (dump_prefix_expression): Renamed from dump_postfix_expression.
2619
2620 2003-09-22 Jim Blandy <jimb@redhat.com>
2621
2622 * dwarf2read.c (read_array_type): When building the type for an
2623 array of unspecified length, make sure to choose the upper bound
2624 so that the array's total length comes out to be zero --- that's
2625 how we represent such arrays.
2626
2627 2003-09-22 Michael Chastain <mec@shout.net>
2628
2629 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2630
2631 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2632
2633 * top.c (quit_force): Fix indirect call to quit_target so
2634 a struct qt_args pointer is passed.
2635
2636 2003-09-22 Andrew Cagney <cagney@redhat.com>
2637
2638 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2639 * arch-utils.c (init_frame_pc_noop): Delete function.
2640 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2641 "init_frame_pc".
2642 * mips-tdep.c (mips_gdbarch_init): Ditto.
2643 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2644 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2645 declaration.
2646 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2647 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2648 declaration.
2649 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2650
2651 2003-09-22 Anthony Green <green@redhat.com>
2652
2653 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2654 declaration.
2655
2656 2003-09-20 Andrew Cagney <cagney@redhat.com>
2657
2658 * breakpoint.c: Eliminate ARGSUSED.
2659 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2660 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2661 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2662 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2663 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2664 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2665 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2666 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2667 * wince.c, remote-vx.c: Ditto.
2668
2669 * cli/cli-script.c: Remove "register" attributes.
2670 * config/pa/tm-hppa.h: Ditto.
2671 * cli/cli-decode.c: Ditto.
2672 * cli/cli-cmds.c: Ditto.
2673
2674 2003-09-19 Andrew Cagney <cagney@redhat.com>
2675
2676 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2677 DEPRECATED_NPC_REGNUM.
2678 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2679
2680 2003-09-19 Christopher Faylor <cgf@redhat.com>
2681
2682 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2683
2684 2003-09-19 Jim Blandy <jimb@redhat.com>
2685
2686 * macrotab.c (macro_include): Use the correct comparison to find
2687 the appropriate place for this inclusion in the list.
2688
2689 2003-09-19 Andrew Cagney <cagney@redhat.com>
2690
2691 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2692 (DEPRECATED_HPUX_TEXT_END): Define.
2693 (deprecated_hpux_text_end): Declare.
2694 (struct target_ops): Declare opaque.
2695 * hppah-nat.c (text_end): Make static.
2696 (deprecated_hpux_text_end): New function.
2697 * exec.c (text_end): Delete global variable.
2698 (NEED_TEXT_START_END): Do not define.
2699 (exec_file_attach): Replace code computing "text_end" code with
2700 call to DEPRECATED_HPUX_TEXT_END.
2701
2702 2003-09-19 Andrew Cagney <cagney@redhat.com>
2703
2704 * utils.c (align_up, align_down): New functions.
2705 * defs.h (align_up, align_down): Declare.
2706 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2707 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2708 and "align_down".
2709 (round_up, round_down): Delete functions.
2710 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2711 "align_down".
2712 (ROUND_DOWN, ROUND_UP): Delete macros.
2713 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2714 * h8300-tdep.c: Replace "round_up" and "round_down" with
2715 "align_up" and "align_down".
2716 (round_up, round_down): Delete macros.
2717 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2718 "align_down".
2719 (ROUND_UP, ROUND_DOWN): Delete macros.
2720
2721 2003-09-18 J. Brobecker <brobecker@gnat.com>
2722
2723 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2724 hard-coded constant. Use the proper machine name instead.
2725
2726 2003-09-17 Andrew Cagney <cagney@redhat.com>
2727
2728 * sparc-tdep.c (legacy_register_name): Delete function.
2729 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2730 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2731 * infcmd.c (gdb_register_name): Delete variable.
2732 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2733 REGISTER_NAME and "tm.h".
2734 * gdbarch.h, gdbarch.c: Regenerate.
2735 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2736 REGISTER_NAMES in comments.
2737 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2738 * m68klinux-nat.c (regmap): Ditto.
2739
2740 2003-09-17 Jim Blandy <jimb@redhat.com>
2741
2742 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2743
2744 2003-09-17 Andrew Cagney <cagney@redhat.com>
2745
2746 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2747 (ppcnbsd_init_abi): Set "use_struct_convention" to
2748 "ppcnbsd_use_struct_convention".
2749
2750 2003-09-17 Mark Kettenis <kettenis@gnu.org>
2751
2752 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2753 * gdbarch.h, gdbarch.c: Regenerate.
2754 (stabs_argument_has_addr): New architecture method.
2755 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2756 * arch-utils.c: Include "buildsym.h".
2757 (default_stabs_argument_has_addr): New function.
2758 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2759 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2760
2761 2003-09-17 Andrew Cagney <cagney@redhat.com>
2762
2763 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2764 * gdbarch.h, gdbarch.c: Regenerate.
2765 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2766 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2767 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2768 * sparcnbsd-tdep.c: Update.
2769
2770 2003-09-17 Andrew Cagney <cagney@redhat.com>
2771
2772 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2773 * gdbarch.h, gdbarch.c: Regenerate.
2774 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2775 * d10v-tdep.c, frame.c: Update.
2776 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2777 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2778 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2779 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2780 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2781 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2782 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2783 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2784 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2785 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2786 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2787 * config/pa/nm-hppah.h: Update.
2788
2789 2003-09-16 Andrew Cagney <cagney@redhat.com>
2790
2791 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2792 "use_struct_convention" to "ppc_linux_use_struct_convention".
2793 (ppc_linux_use_struct_convention): New function.
2794 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2795 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2796 "rs6000_use_struct_convention".
2797 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2798 declaration.
2799 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2800 Delete function.
2801
2802 2003-09-16 Andrew Cagney <cagney@redhat.com>
2803
2804 * buildsym.c: Remove more occurances of "register".
2805 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2806 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2807 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2808 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2809 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2810 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2811 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2812 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2813
2814 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
2815
2816 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2817 numbers to enumeration values.
2818 * sh-tdep.c: Accomodate above change.
2819 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2820 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2821 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2822 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2823 (IS_FPUSH): Rename from IS_FMOV.
2824 (sh_extract_struct_value_address): Remove useless comment.
2825 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2826 instead of own local values.
2827 (sh_dump_tdep): Remove.
2828 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2829 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2830
2831 2003-09-15 Andrew Cagney <cagney@redhat.com>
2832
2833 * doublest.c (convert_floatformat_to_doublest): No longer need to
2834 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2835
2836 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2837
2838 * values.c (unpack_double): Call floatformat_is_valid.
2839
2840 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2841
2842 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2843 ps_strings into a long.
2844
2845 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2846 _initialize_am64fbsd_nat.
2847
2848 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2849
2850 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2851 associated with DW_AT_ranges attribute is out of bounds.
2852
2853 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2854
2855 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2856
2857 2003-09-14 Michael Chastain <mec@shout.net>
2858
2859 * config/m68k/nm-apollo68v.h: Delete.
2860 * config/m68k/xm-apollo68v.h: Delete.
2861
2862 2003-09-14 Andrew Cagney <cagney@redhat.com>
2863
2864 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2865 * dcache.c: Update copyrights and descriptions.
2866 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2867
2868 2003-09-14 Andrew Cagney <cagney@redhat.com>
2869
2870 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2871 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2872
2873 2003-09-14 Andrew Cagney <cagney@redhat.com>
2874
2875 * alpha-nat.c: Remove some occurances of "register".
2876 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2877 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2878 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2879 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2880 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2881 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2882 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2883 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2884 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2885 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2886 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2887 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2888 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2889 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2890 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2891 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2892 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2893 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2894 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2895 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2896 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2897 * values.c, vax-tdep.c, xcoffread.c: Ditto.
2898
2899 2003-09-13 Andrew Cagney <cagney@redhat.com>
2900
2901 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2902 * ppc-tdep.h (struct regcache): Declare opaque.
2903 * objfiles.h (struct objfile_data): Declare opaque.
2904 * cp-support.h (struct objfile): Declare opaque.
2905 * linux-nat.h (target_waitstatus): Declare opaque.
2906
2907 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2908
2909 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2910 (stabs_argument_has_addr): New architecture method.
2911 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2912 * arch-utils.c: Include "buildsym.h".
2913 (default_stabs_argument_has_addr): New function.
2914 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2915 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2916
2917 * cris-tdep.c (cris_gdbarch_init): Set
2918 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2919 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2920 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2921 * mips-tdep.c (mips_gdbarch_init): Likewise.
2922 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2923 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2924
2925 2003-09-13 Andrew Cagney <cagney@redhat.com>
2926
2927 * values.c (using_struct_return): Delete "function" and "funcaddr"
2928 parameters.
2929 * value.h (using_struct_return): Update declaration.
2930 * infcmd.c (finish_command_continuation): Update.
2931 (finish_command): Update.
2932 * infcall.c (call_function_by_hand): Update.
2933 * eval.c (evaluate_subexp_standard): Update.
2934
2935 2003-09-13 Christopher Faylor <cgf@redhat.com>
2936
2937 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2938 SSE registers since gdb will not operate correctly without this.
2939 Restore include file ordering munged in previous change.
2940 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2941
2942 2003-09-13 Mark Kettenis <kettenis@gnu.org>
2943
2944 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2945 REG_STRUCT_HAS_ADDR.
2946 * gdbarch.c, gdbarch.h: Updated.
2947 * infcall.c (call_function_by_hand): Update.
2948 * stabsread.c (define_symbol): Updated.
2949
2950 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2951
2952 2003-09-12 Christopher Faylor <cgf@redhat.com>
2953
2954 * win32-nat.c: Reorganize so that defines used by target headers are
2955 actually defined by the system headers.
2956 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2957 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2958
2959 2003-09-12 Jim Blandy <jimb@redhat.com>
2960
2961 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2962 the file has no .data, .bss, or .rodata sections. Instead wait
2963 until we see a variable alleged to live in one of those sections.
2964
2965 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2966 .bss section, presume that any variables we find live in the
2967 .rodata section.
2968
2969 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2970 offsets for global and static variables.
2971
2972 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2973 symbol types are, by definition, in the .data section, so it is
2974 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2975 If there is no .data section, there should be no N_DATA or N_DATA
2976 | N_EXT symbols.
2977
2978 2003-09-12 Mark Kettenis <kettenis@gnu.org>
2979
2980 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2981 (amd64fbsd_sigcontext_addr): Rewrite.
2982 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2983 with correct values.
2984 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2985 (amd64fbsd_init_abi): Fix typo.
2986
2987 2003-09-12 Andrew Cagney <cagney@redhat.com>
2988
2989 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2990 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2991
2992 2003-09-12 Andrew Cagney <cagney@redhat.com>
2993
2994 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2995 "entry_file_highpc". Update comments.
2996 * defs.h (deprecated_inside_entry_file): Rename
2997 "inside_entry_file".
2998 * blockframe.c (deprecated_inside_entry_file): Rename
2999 "inside_entry_file".
3000 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3001 * vax-tdep.c (vax_frame_chain): Update.
3002 * sh64-tdep.c (sh64_frame_chain): Update.
3003 * sh-tdep.c (sh_frame_chain): Update.
3004 * rs6000-tdep.c (rs6000_frame_chain): Update.
3005 * ns32k-tdep.c (ns32k_frame_chain): Update.
3006 * mips-tdep.c (mips_frame_chain): Update.
3007 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3008 * m32r-tdep.c (m32r_frame_this_id): Update.
3009 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3010 * frv-tdep.c (frv_frame_this_id): Update.
3011 * d10v-tdep.c (d10v_frame_this_id): Update.
3012 * cris-tdep.c (cris_frame_chain): Update.
3013 * blockframe.c (legacy_frame_chain_valid): Update.
3014 * avr-tdep.c (avr_frame_this_id): Update.
3015 * arm-tdep.c (arm_prologue_this_id): Update.
3016 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3017 * objfiles.c (objfile_relocate): Update.
3018 * mipsread.c (mipscoff_symfile_read): Update.
3019 (mipscoff_symfile_read): Update.
3020 * mdebugread.c (parse_partial_symbols): Update.
3021 * dwarfread.c (read_file_scope): Update.
3022 * dwarf2read.c (read_file_scope): Update.
3023 * dbxread.c (read_dbx_symtab): Update.
3024 (read_dbx_symtab): Update.
3025 * coffread.c (complete_symtab): Update.
3026
3027 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3028
3029 * top.c (quit_target): New static helper function.
3030 (quit_force): Moved code to quit_target(). Call quit_target()
3031 via catch_errors() to catch errors during quit.
3032
3033 2003-09-11 David Carlton <carlton@kealia.com>
3034
3035 * buildsym.c (finish_block): Use allocate_block to allocate the
3036 block.
3037 * mdebugread.c (new_block): Add FIXME.
3038
3039 2003-09-11 David Carlton <carlton@kealia.com>
3040
3041 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3042 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3043 (recursive_dump_type): Ditto.
3044 * printcmd.c (print_formatted): Ditto.
3045 * typeprint.c (print_type_scalar): Ditto.
3046 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3047 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3048 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3049 maint_cplus_cmd_list.
3050 * cp-support.c: Make maint_cplus_cmd_list extern.
3051 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3052 command.h.
3053 (lookup_symbol_file): Look in possible namespace blocks when
3054 appropriate.
3055 (initialize_namespace_symtab): New.
3056 (get_possible_namespace_block, free_namespace_block)
3057 (check_possible_namespace_symbols)
3058 (check_possible_namespace_symbols_loop)
3059 (check_one_possible_namespace_symbol)
3060 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3061 (_initialize_cp_namespace): Ditto.
3062 * block.h: Declare allocate_block.
3063 * block.c (allocate_block): New.
3064 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3065 allocate_block.
3066 * symfile.h: Update declaration of add_psymbol_to_list.
3067 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3068 question.
3069 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3070 scan_partial_symbols_call.
3071 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3072 helper functions.
3073 (add_partial_symbol): If necessary, scan mangled names for names
3074 of namespaces.
3075 (add_partial_namespace): Add NAMESPACE argument; generate partial
3076 symbols associated to namespaces.
3077 (add_partial_enumeration): Add NAMESPACE argument.
3078 (new_symbol): Allow namespace syms.
3079 (read_namespace): Generate namespace syms.
3080 * objfiles.h: Add opaque declaration of struct symtab.
3081 (struct objfile): Add cp_namespace_symtab member.
3082 * objfiles.c (allocate_objfile): Set
3083 objfile->cp_namespace_symtab.
3084 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3085 dictionary_h, command_h.
3086
3087 2003-09-11 Andrew Cagney <cagney@redhat.com>
3088
3089 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3090 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3091 near the function's end.
3092 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3093 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3094 regcache_raw_write_signed to set SP_REGNUM.
3095
3096 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
3097
3098 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3099 orig_addrs is set up properly.
3100
3101 2003-09-11 Andrew Cagney <cagney@redhat.com>
3102
3103 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3104 * gdbarch.h, gdbarch.c: Re-generate.
3105 * infcall.c (call_function_by_hand): Update.
3106 * hppa-tdep.c (hppa_push_arguments): Update.
3107 * ada-lang.c (place_on_stack): Update.
3108 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3109 * sparc-tdep.c (sparc_gdbarch_init): Update.
3110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3111 * hppa-tdep.c (hppa_gdbarch_init): Update.
3112 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3113 stack_align.
3114
3115 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
3116
3117 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3118 register do need a frame.
3119
3120 2003-09-11 Andrew Cagney <cagney@redhat.com>
3121
3122 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3123 buildable since GDB 5.0.
3124 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3125 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3126 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3127 * irix4-nat.c: Delete file.
3128 * config/mips/irix4.mh: Delete file.
3129 * config/mips/irix3.mh: Delete file.
3130 * config/mips/irix3.mt: Delete file.
3131 * config/mips/tm-irix3.h: Delete file.
3132 * config/mips/nm-irix3.h: Delete file.
3133 * config/mips/xm-irix3.h: Delete file.
3134 * config/mips/nm-irix4.h: Delete file.
3135 * config/mips/xm-irix4.h: Delete file.
3136 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3137
3138 2003-09-10 J. Brobecker <brobecker@gnat.com>
3139
3140 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3141 * Makefile.in (hppa-tdep.o): Update dependencies.
3142
3143 2003-09-10 James E Wilson <wilson@specifixinc.com>
3144
3145 * MAINTAINERS: Change my e-mail address. Move to paper trail
3146 section.
3147
3148 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3149
3150 * MAINTAINERS (frv): New ISA entry.
3151
3152 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3153
3154 * frv-tdep.c (dis-asm.h): Include.
3155 * Makefile.in (frv-tdep.o): Update dependencies.
3156
3157 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3158
3159 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3160 Fix typo for high range of floating registers.
3161
3162 2003-09-09 David Carlton <carlton@kealia.com>
3163
3164 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3165 highpc initialization here out of scan_partial_symbols.
3166 (scan_partial_symbols): Restructure into a recursive version,
3167 calling add_partial_namespace and add_partial_enumeration when
3168 appropriate.
3169 (add_partial_namespace): New.
3170 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3171
3172 2003-09-09 Andrew Cagney <cagney@redhat.com>
3173
3174 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3175 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3176 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3177 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3178
3179 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3180 (rs6000_push_dummy_call): Set the "TOC" register.
3181
3182 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3183 methods "max_register_raw_size", "max_register_virtual_size" or
3184 "register_virtual_size".
3185
3186 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3187
3188 * MAINTAINERS: Update my e-mail address.
3189
3190 2003-09-09 Andrew Cagney <cagney@redhat.com>
3191
3192 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3193 (rs6000_push_dummy_call): Store the struct return address.
3194 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3195
3196 2003-09-09 Andrew Cagney <cagney@redhat.com>
3197
3198 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3199 "ppc_sysv_abi_push_arguments".
3200 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3201 "ppc_sysv_abi_push_arguments".
3202 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3203 instead of "push_arguments".
3204 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3205
3206 2003-09-09 Andrew Cagney <cagney@redhat.com>
3207
3208 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3209 instead of CALL_DUMMY_ADDRESS.
3210
3211 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3212
3213 * p-lang.c: Eliminate "register".
3214 * c-lang.c: Ditto.
3215 * expprint.c: Ditto.
3216 * f-lang.c: Ditto.
3217 * jv-lang.c: Ditto.
3218 * language.c: Ditto.
3219 * m2-lang.c: Ditto.
3220 * parse.c: Ditto.
3221 * scm-lang.c: Ditto.
3222 * objc-lang.c: Ditto.
3223
3224 2003-09-09 Nick Clifton <nickc@redhat.com>
3225
3226 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3227
3228 2003-09-04 Andrew Cagney <cagney@redhat.com>
3229
3230 * avr-tdep.c: Include "dis-asm.h".
3231 * cris-tdep.c: Include "dis-asm.h".
3232 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3233 instead of corresponding typedef.
3234 * h8300-tdep.c: Include "dis-asm.h".
3235 * ia64-tdep.c: Include "dis-asm.h".
3236 * i386-tdep.c: Include "dis-asm.h".
3237 (i386_print_insn): Use "struct disassemble_info" instead of
3238 corresponding typedef.
3239 * m68k-tdep.c: Include "dis-asm.h".
3240 * mcore-tdep.c: Include "dis-asm.h".
3241 * mips-tdep.c: Include "dis-asm.h".
3242 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3243 instead of corresponding typedef.
3244 * ns32k-tdep.c: Include "dis-asm.h".
3245 * s390-tdep.c: Include "dis-asm.h".
3246 * sparc-tdep.c: Include "dis-asm.h".
3247 * vax-tdep.c: Include "dis-asm.h".
3248 * v850-tdep.c: Include "dis-asm.h".
3249 * mn10300-tdep.c: Include "dis-asm.h".
3250 * rs6000-tdep.c: Include "dis-asm.h".
3251 * xstormy16-tdep.c: Include "dis-asm.h".
3252 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3253 print_insn_xstormy16.
3254 * Makefile.in (v850-tdep.o): Update dependencies.
3255 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3256 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3257 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3258 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3259 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3260 (gdbarch_h): Remove $(dis_asm_h).
3261 * disasm.c: Include "dis-asm.h".
3262 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3263 corresponding typedef.
3264 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3265 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3266 * gdbarch.sh: Do not include "dis-asm.h".
3267 (struct disassemble_info): Declare opaque.
3268 (TARGET_PRINT_INSN): Update declaration.
3269 * gdbarch.h, gdbarch.c: Re-generate.
3270
3271 2003-09-08 Andrew Cagney <cagney@redhat.com>
3272
3273 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3274 CALL_DUMMY_ADDRESS, change to a predicate.
3275 * gdbarch.h, gdbarch.c: Re-generate.
3276 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3277 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3278 * infcall.c (call_function_by_hand): Ditto.
3279 * sparc-tdep.c (sparc_push_return_address): Ditto.
3280 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3281 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3282 CALL_DUMMY_ADDRESS with entry_point_address.
3283 * v850-tdep.c (v850_push_return_address): Ditto.
3284 * s390-tdep.c (s390_push_return_address): Ditto.
3285 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3286 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3287 * mcore-tdep.c (mcore_push_return_address): Ditto.
3288 * cris-tdep.c (cris_push_return_address): Ditto.
3289 * arm-tdep.c (arm_push_return_address): Ditto.
3290
3291 2003-09-08 Andrew Cagney <cagney@redhat.com>
3292
3293 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3294 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3295 and REG_UNMODIFIED to REG_SAME_VALUE.
3296 (execute_cfa_program): Update.
3297 (dwarf2_frame_cache): Update. Initialize table to
3298 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3299 location.
3300 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3301
3302 2003-09-08 Andrew Cagney <cagney@redhat.com>
3303
3304 * gnu-nat.c: Remove "inline" function attribute.
3305 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3306
3307 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3308
3309 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3310 target.
3311
3312 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3313
3314 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3315 (frame_extra_info): Rename this struct to frv_unwind_cache.
3316 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3317 Add fields ``prev_sp'' and ``base''.
3318 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3319 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3320 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3321 Delete.
3322 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3323 Revise all callers. Fill in the unwind cache argument and make
3324 other adjustments to account for new frame mechanisms.
3325 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3326 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3327 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3328 (frv_frame_unwind, frv_frame_base): New structs.
3329 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3330 additional arguments expected by this method and adjust function
3331 body accordingly.
3332 (frv_gdbarch_init): Remove calls to the following functions:
3333 set_gdbarch_deprecated_init_frame_pc(),
3334 set_gdbarch_deprecated_saved_pc_after_call(),
3335 set_gdbarch_deprecated_frame_chain(),
3336 set_gdbarch_deprecated_frame_saved_pc(),
3337 set_gdbarch_deprecated_frame_init_saved_regs(),
3338 set_gdbarch_deprecated_push_arguments(),
3339 set_gdbarch_deprecated_push_return_address(),
3340 set_gdbarch_deprecated_pop_frame(),
3341 set_gdbarch_deprecated_call_dummy_words(),
3342 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3343 set_gdbarch_deprecated_init_extra_frame_info(),
3344 set_gdbarch_deprecated_dummy_write_sp(), and
3345 set_gdbarch_deprecated_pc_in_call_dummy().
3346 Add calls to the following functions:
3347 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3348 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3349 frame_base_set_default().
3350 * Makefile.in (frv-tdep.o): Update dependencies.
3351
3352 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3353
3354 * dwarf2-frame.c (read_encoded_value): Add support for
3355 DW_EH_PE_aligned encoding.
3356
3357 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3358
3359 * infrun.c (normal_stop): Don't print a message if the inferior
3360 has exited.
3361
3362 2003-09-08 Jim Blandy <jimb@redhat.com>
3363
3364 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3365 * dbxread.c: #include "gdb_assert.h".
3366 (read_dbx_symtab): If the objfile has no .data section, use the
3367 section index for the .bss section instead.
3368
3369 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3370
3371 * frame.c (deprecated_safe_get_selected_frame): New function.
3372 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3373 * findvar.c (read_var_value): Call it.
3374
3375 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
3376
3377 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3378 (sh64-tdep.o): Add dependencies.
3379 * configure.tgt: Add FIXME to sh-*-linux*.
3380 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3381 (sh_gdbarch_init): Always set correct sh_show_regs function
3382 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3383 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3384 * sh64-tdep.c: New file, containing all sh64 related code from
3385 sh-tdep.c.
3386 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3387 * config/sh/linux.mt (TDEPFILES): Ditto.
3388 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3389 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3390 * config/sh/wince.mt (TDEPFILES): Ditto.
3391
3392 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3393
3394 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3395 (stop_wait_callback): Handle !lp->signalled also.
3396 (lin_lwp_has_pending, flush_callback): New functions.
3397 (lin_lwp_wait): Call flush_callback.
3398 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3399 (linux_proc_pending_signals): New function.
3400 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3401
3402 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
3403
3404 From Nick Kelsey <nickk@ubicom.com>:
3405 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3406 when the stop PC is at the beginning of a function also.
3407
3408 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3409
3410 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3411 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3412
3413 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3414
3415 * sol-thread.c: Include "gdb_string.h".
3416
3417 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3418
3419 * gcore.c: Reorder include files in alphabetical order. Include
3420 "gdb_assert.h". Various coding style fixes.
3421 (derive_stack_segment, derive_heap_segment): Replace check for
3422 non-null BOTTOM and TOP with gdb_assert.
3423 (derive_heap_segment): Replace check for successful creation of
3424 ZERO with gdb_assert.
3425 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3426
3427 2003-09-04 Andrew Cagney <cagney@redhat.com>
3428
3429 * thread-db.c (verbose_dlsym): New function.
3430 (thread_db_load): Use verbose_dlsym
3431 (thread_db_new_objfile): Print that libthread_db was loaded, and
3432 that thread debugging was enabled.
3433
3434 2003-09-04 Andrew Cagney <cagney@redhat.com>
3435
3436 * configure.tgt: Add "mips64*-*-*" target. Delete
3437 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3438 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3439 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3440 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3441 mips*-sony-*, and mips64*-*-elf* targets.
3442 * config/mips/embedl.mt: Delete file.
3443 * config/mips/embedl64.mt: Delete file.
3444 * config/mips/mips.mt: Delete file.
3445 * config/mips/mips64.mt: Delete file.
3446 * config/mips/tm-embed.h: Delete file.
3447 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3448 * config/mips/embed64.mt: Delete out-of-date comment.
3449
3450 2003-09-04 Andrew Cagney <cagney@redhat.com>
3451
3452 * hppa-tdep.c (hppa_gdbarch_init): Set
3453 "have_nonsteppable_watchpoint".
3454 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3455 * mips-tdep.c (mips_dump_tdep): Do not print
3456 HAVE_NONSTEPPABLE_WATCHPOINT.
3457 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3458 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3459 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3460 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3461
3462 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3463
3464 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3465 unused code. Add comment.
3466
3467 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3468
3469 * breakpoint.c (watchpoint_check): Check for pc being in an
3470 epilogue if watchpoint frame couldn't be found.
3471
3472 2003-09-04 Andrew Cagney <cagney@redhat.com>
3473
3474 * Makefile.in: Re-generate all dependencies.
3475
3476 2003-09-03 Andrew Cagney <cagney@redhat.com>
3477
3478 * arch-utils.h (legacy_print_insn): Delete declaration.
3479 * arch-utils.c (legacy_print_insn): Delete function.
3480 * disasm.c (deprecated_tm_print_insn_info): Delete.
3481 (_initialize_disasm): Delete function, contained code initializing
3482 deprecated_tm_print_insn_info.
3483 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3484 (deprecated_tm_print_insn_info): Delete.
3485 (TARGET_PRINT_INSN): Do not provide a default.
3486 * gdbarch.h, gdbarch.c: Re-generate.
3487
3488 2003-09-03 Andrew Cagney <cagney@redhat.com>
3489
3490 * disasm.c (fprintf_disasm): New function.
3491 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3492 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3493 reverts 2003-08-14 change.
3494 (_initialize_disasm): Call "init_disassemble_info", instead of
3495 INIT_DISASSEMBLE_INFO_NO_ARCH.
3496
3497 2003-09-03 Michael Snyder <msnyder@redhat.com>
3498
3499 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3500
3501 2003-09-03 Andrew Cagney <cagney@redhat.com>
3502
3503 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3504 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3505 * symfile.c (syms_from_objfile): Update.
3506 (reread_symbols): `Update
3507 * exec.c (exec_file_attach): Update.
3508 (exec_file_attach): Update.
3509 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3510 2003-08-29 change.
3511 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3512
3513 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3514
3515 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3516 trad-frame.h.
3517 (arm_get_cache): Delete macro.
3518 (struct arm_prologue_cache): Update comments. Make saved_regs into
3519 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3520 to prev_sp.
3521 (thumb_scan_prologue): Update for cache changes. Don't call
3522 DEPRECATED_PC_IN_CALL_DUMMY.
3523 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3524 argument and use it in desperation search for our prologue. Do not
3525 search past the specified PC.
3526 (arm_make_prologue_cache): Simplify.
3527
3528 (arm_prologue_this_id, arm_prologue_prev_register)
3529 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3530 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3531 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3532 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3533 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3534
3535 (arm_frame_chain_valid, arm_find_callers_reg)
3536 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3537 (arm_pop_frame): Delete obsolete methods.
3538 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3539
3540 (arm_gdbarch_init): Update for new frame methods. Register prologue
3541 and sigtramp unwinders. Set the default frame base method.
3542
3543 * Makefile.in (arm-tdep.o): Update dependencies.
3544 * varobj.c (find_frame_addr_in_frame_chain): Call
3545 get_frame_base_address.
3546 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3547
3548 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3549
3550 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3551 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3552 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3553 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3554 Take NEXT_FRAME and CACHE arguments. Call
3555 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3556 Set unwound_pc in CACHE instead of modifying the frame argument.
3557 Don't bother checking the frame type when looking for sigtramp
3558 frames.
3559 (arm_make_prologue_cache, arm_frame_chain)
3560 (arm_init_extra_frame_info): New functions.
3561
3562 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3563
3564 * arm-tdep.c (arm_get_cache): Define.
3565 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3566 unwound_sp, unwound_pc, and saved_regs.
3567 (thumb_scan_prologue): Take a cache instead of the frame.
3568 (arm_scan_prologue): Likewise.
3569 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3570 instead of a temporary frame.
3571 (arm_init_extra_frame_info): Allocate and use a cache.
3572 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3573
3574 2003-09-03 Andrew Cagney <cagney@redhat.com>
3575
3576 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3577 * config/mips/wince.mt (TM_CLIBS): Ditto.
3578 * config/sh/wince.mt (TM_CLIBS): Ditto.
3579 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3580 * config/sparc/sp64.mt (CC): Delete.
3581
3582 2003-09-03 Andrew Cagney <cagney@redhat.com>
3583
3584 * defs.h: Do not include "arch-utils.h".
3585 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3586 GDB_MULTI_ARCH_PURE.
3587 * configure.in (GDB_MULTI_ARCH): Do not define.
3588 * configure, config.in: Regenerate.
3589 * configure.tgt: Do not set variable "gdb_multi_arch".
3590 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3591 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3592 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3593 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3594 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3595 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3596 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3597 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3598 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3599 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3600 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3601 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3602 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3603 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3604 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3605 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3606 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3607 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3608
3609 2003-08-30 Michael Chastain <mec@shout.net>
3610
3611 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3612 * config/m68k/nm-hp300hpux.h: Delete.
3613 * config/m68k/tm-hp300hpux.h: Delete.
3614 * config/m68k/xm-hp300hpux.h: Delete.
3615 * config/m68k/xm-hp300bsd.h: Delete.
3616 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3617 tm-hp300hpux.h, xm-hp300hpux.h.
3618 * somsolib.c: Remove comment about hp300 shared libraries.
3619
3620 2003-08-31 Mark Kettenis <kettenis@gnu.org>
3621
3622 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3623 Only define PTRACE_GET_THREAD_AREA is not already defined.
3624 Various style fixes in code and comments and some additional
3625 spelling fixes in comments. Move after functions dealing with
3626 debug registers.
3627 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3628 Fix coding-style.
3629
3630 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3631 frame_unwind_register_unsigned instead of
3632 frame_unwind_unsigned_register.
3633
3634 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3635
3636 * configure.in: Search for gethostbyname in libnsl.
3637 * configure: Regenerated.
3638
3639 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3640
3641 * configure.in: Remove redundant AC_MSG_RESULT in check for
3642 uintptr_t in stdint.h.
3643 * configure: Regenerated.
3644
3645 * amd64-nat.h (struct regcache): Add opaque declaration.
3646
3647 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3648 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3649 Change "register array" to "register cache" in comments.
3650 (x86_64_linux_gregset64_reg_offset): New variable.
3651 (GETREGS_SUPPLIES): Remove macro.
3652 (supply_gregset): Call amd64_supply_native_gregset instead of
3653 x86_64_linux_supply_gregset.
3654 (fill_gregset): Rename `regno' to `regnum'. Call
3655 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3656 (store_regs): Rename `regno' to `regnum'.
3657 (store_fpregs): Rename `regno' to `regnum'.
3658 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3659 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3660 Reorganize function a bit.
3661 (store_inferior_registers): Rename `regno' to `regnum'. Use
3662 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3663 Reorganize function a bit.
3664 (_initialize_x86_64_linux_nat): New function.
3665 * config/i386/x86-64linux.mh.
3666
3667 2003-08-29 Andrew Cagney <cagney@redhat.com>
3668
3669 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3670 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3671 (target_remove_watchpoint): Delete macro.
3672 (target_insert_watchpoint): Delete macro.
3673 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3674 (remote_mips_stopped_by_watchpoint): Delete declaration.
3675 (remote_mips_remove_watchpoint): Delete declaration.
3676 (remote_mips_set_watchpoint): Delete declaration.
3677 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3678 * remote-mips.c (_initialize_remote_mips): Set
3679 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3680 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3681 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3682 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3683 (mips_stopped_by_watchpoint): Rename
3684 remote_mips_stopped_by_watchpoint.
3685 (mips_can_hardware_watchpoint): Rename
3686 remote_mips_can_use_hardware_watchpoint, update function
3687 signature.
3688
3689 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3690
3691 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3692 USER_DS. We haven't given them a register number yet.
3693
3694 * amd64-nat.h: New file.
3695 * amd64-nat.c: New file.
3696 * amd64fbsd-nat.c: Include "amd64-nat.h".
3697 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3698 (amd64fbsd32_r_reg_offset): New variable.
3699 (supply_gregset): Simply call amd64_supply_native_gregset.
3700 (fill_gregset): Rename `regno' to `regnum'. Simply call
3701 amd64_collect_native_gregset.
3702 (fill_fpregset): Rename `regno' to `regnum'.
3703 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3704 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3705 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3706 `fpregset_t'. Call amd64_supply_native_gregset instead of
3707 supply_gregset. Call x86_64_supply_fxsave instead of
3708 supply_fpregset.
3709 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3710 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3711 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3712 `fpregset_t'. Call amd64_collect_native_gregset instead of
3713 fill_gregset. Call x86_64_collect_fxsave instead of
3714 fill_fpregset.
3715 (_initialize_am64fbsd_nat): Initialize
3716 amd64_native_gregset32_reg_offset and
3717 amd64_native_gregset64_reg_offset.
3718 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3719
3720 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3721 null pointer. Fix typo in comment.
3722
3723 * regcache.c (supply_register): Reimplement to call
3724 regcache_raw_supply.
3725 (regcache_collect): Reimplement by calling regcache_raw_collect.
3726
3727 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3728
3729 * regcache.c (register_buffer): Consitify first argument.
3730 (regcache_raw_supply, regcache_raw_collect): New
3731 functions.
3732
3733 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3734
3735 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3736 by Nathan J. Williams.
3737
3738 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3739
3740 * lin-lwp.c (wait_lwp): New function, copied from
3741 stop_wait_callback. Clean up.
3742 (stop_wait_callback): Use wait_lwp.
3743
3744 2003-08-28 Andrew Cagney <cagney@redhat.com>
3745
3746 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3747 flavour and disassembler options.
3748 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3749 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3750 deprecated_tm_print_insn_info.
3751
3752 2003-08-27 Andrew Cagney <cagney@redhat.com>
3753
3754 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3755 Use target_read_memory.
3756 (s390_get_frame_info): Update. Do not reference
3757 deprecated_tm_print_insn_info.
3758 (s390_check_function_end, s390_is_sigreturn): Ditto.
3759
3760 2003-08-27 Andrew Cagney <cagney@redhat.com>
3761
3762 * Makefile.in (cris-tdep.o): Update dependencies.
3763 * cris-tdep.c: Include "gdb_assert.h".
3764 (cris_gdbarch_init): Set print_insn.
3765 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3766 (cris_delayed_get_disassembler): Simplify, directly call the
3767 disassembler returned by cris_get_disassembler.
3768 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3769 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3770 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3771 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3772 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3773 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3774 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3775 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3776 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3777 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3778 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3779 (gdb_print_insn_sparc): Delete function.
3780 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3781 deprecated_tm_print_insn_info.
3782 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3783 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3784 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3786 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3787 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3788 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3789 (s390_gdbarch_init): Set print_insn.
3790
3791 2003-08-27 Andrew Cagney <cagney@redhat.com>
3792
3793 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3794 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3795 * infcall.c (call_function_by_hand): Convert the entry point
3796 address into a code address.
3797
3798 2003-08-27 Andrew Cagney <cagney@redhat.com>
3799
3800 * dsrec.c: Include "gdb_string.h".
3801 * Makefile.in (dsrec.o): Update dependencies.
3802
3803 2003-08-27 Michael Chastain <mec@shout.net>
3804
3805 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3806
3807 2003-08-27 Andrew Cagney <cagney@redhat.com>
3808
3809 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3810 (alpha_osf1_init_abi): Do not set call_dummy_address.
3811
3812 2003-08-27 David Carlton <carlton@kealia.com>
3813
3814 From Randolph Chung <tausq@debian.org>:
3815 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3816 compiles with -Wformat-nonliteral -Werror.
3817
3818 2003-08-26 Jim Blandy <jimb@redhat.com>
3819
3820 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3821 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3822 bfd_lookup_symbol, since we only want symbols in code sections.
3823 (look_for_base): Pass zero as the SECT_FLAGS argument to
3824 bfd_lookup_symbol, since we're not concerned about which section
3825 the symbol is in.
3826
3827 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3828
3829 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3830 we are frameless or the return address register is already known.
3831
3832 2003-08-26 Andrew Cagney <cagney@redhat.com>
3833
3834 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3835 in size. Add comments.
3836
3837 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3838
3839 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3840 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3841
3842 2003-08-26 Jason Merrill <jason@redhat.com>
3843
3844 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3845 case out of #ifdef MIPS block.
3846
3847 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3848
3849 PR java/1322
3850 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3851 available before calling SECT_OFF_TEXT.
3852 * PROBLEMS: Remove description of java/1322.
3853
3854 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3855
3856 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3857 bof, and nat0-nat127 as pseudo-registers.
3858 (ia64_frame_cache): New struct used to cache frame info.
3859 (ia64_register_reggroup_p): New routine used to override default
3860 register grouping so registers without names are still saved and
3861 restored.
3862 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3863 pseudo values.
3864 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3865 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3866 (ia64_alloc_frame_cache): New routine to create a new
3867 ia64_frame_cache.
3868 (examine_prologue): Change prototype to add next_frame pointer.
3869 Assume frameless until otherwise proven. Verify that the cfm for
3870 current frame matches the cfm that should occur for the prologues
3871 alloc insn and if equal, mark as not frameless. At end of routine,
3872 if not frameless, calculate registers for the previous frame and store
3873 in the cache, if a cache is provided.
3874 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3875 and pass 0 for next_frame.
3876 (ia64_store_return_value): Change to use convert_typed_floating()
3877 instead of calling ia64_convert_to_raw().
3878 (ia64_extract_return_value): Change to use convert_typed_floating()
3879 instead of calling ia64_convert_to_virtual().
3880 (ia64_frame_cache): New routine to support new frame model.
3881 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3882 (ia64_frame_sniffer): Ditto.
3883 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3884 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3885 (ia64_sigtramp_frame_prev_register): Ditto.
3886 (ia64_sigtramp_frame_sniffer): Ditto.
3887 (ia64_frame_base_address): Ditto.
3888 (ia64_extract_struct_value_address): Change to issue error message.
3889 (ia64_frame_align): New routine to align sp.
3890 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3891 (ia64_push_arguments): Removed. Logic moved to
3892 ia64_push_dummy_call().
3893 (ia64_push_return_address): Ditto.
3894 (ia64_unwind_dummy_id): New function.
3895 (ia64_unwind_pc): Ditto.
3896 (ia64_convert_register_p): Ditto.
3897 (ia64_register_to_value): Ditto.
3898 (ia64_value_to_register): Ditto.
3899 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3900 (ia64_register_byte, ia64_register_raw_size): Ditto.
3901 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3902 (ia64_saved_pc_after_call): Ditto.
3903 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3904 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3905 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3906 (ia64_register_convert_to_raw): Ditto.
3907 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3908 (ia64_init_extra_frame_info): Ditto.
3909 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3910 (ia64_gdbarch_init): Remove registering of deprecated functions that
3911 are no longer used. Add registration of new gdbarch functions.
3912 Remove registering deprecated_write_sp. Replace
3913 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3914 Delete set_gdbarch_deprecated_register_convertible(),
3915 set_gdbarch_deprecated_register_convert_to_virtual(), and
3916 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3917 set_gdbarch_deprecated_register_size(),
3918 set_gdbarch_deprecated_register_bytes(),
3919 set_gdbarch_pcregnum(),
3920 set_gdbarch_deprecated_register_byte(),
3921 set_gdbarch_deprecated_register_raw_size(),
3922 set_gdbarch_deprecated_max_register_raw_size(),
3923 set_gdbarch_deprecated_register_virtual_size(),
3924 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3925 Replace set_gdbarch_deprecated_extract_return_value() with
3926 set_gdbarch_extract_return_value(). Remove calls to:
3927 set_gdbarch_deprecated_saved_pc_after_call();
3928 set_gdbarch_deprecated_frame_chain(),
3929 set_gdbarch_deprecated_frame_saved_pc(),
3930 set_gdbarch_deprecated_frame_init_saved_regs(),
3931 set_gdbarch_deprecated_get_saved_register(),
3932 set_gdbarch_deprecated_call_dummy_words(),
3933 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3934 set_gdbarch_deprecated_init_extra_frame_info(),
3935 set_gdbarch_deprecated_frame_args_address(),
3936 set_gdbarch_deprecated_frame_locals_address(),
3937 and set_gdbarch_deprecated_dummy_write_sp().
3938 Add set_gdbarch_convert_register_p(),
3939 set_gdbarch_register_to_value(),
3940 set_gdbarch_value_to_register(),
3941 set_gdbarch_push_dummy_call(),
3942 set_gdbarch_frame_align(),
3943 set_gdbarch_unwind_dummy_id(),
3944 set_gdbarch_unwind_pc(),
3945 frame_unwind_append_sniffer(),
3946 frame_unwind_append_sniffer(),
3947 and frame_base_set_default().
3948
3949 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3950
3951 * configure.tgt: Document need for special "mipsisa64" handling.
3952 (mipsisa64*-*-linux64): Handle as target linux64.
3953 (mipsisa64*-*-*): Handle as target embed64.
3954
3955 2003-08-18 Michael Chastain <mec@shout.net>
3956
3957 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3958 objfile bug.
3959
3960 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3961
3962 * i387-tdep.h: Update copyright date.
3963 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3964
3965 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3966 CFLAGS games to reflect reality.
3967
3968 2003-08-24 Andrew Cagney <cagney@redhat.com>
3969
3970 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3971 GDB_MULTI_ARCH is always non-zero.
3972 * osabi.c (_initialize_gdb_osabi): Ditto.
3973 (gdbarch_init_osabi): Ditto.
3974 * sparc-tdep.c: Ditto for #if code.
3975
3976 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3977
3978 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3979 Update comments.
3980 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3981 comments.
3982 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3983 x86_64_supply_fxsave.
3984 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3985 x86_64_supply_fxsave.
3986 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3987 x86_64_supply_fxsave.
3988
3989 2003-08-23 Andreas Jaeger <aj@suse.de>
3990
3991 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3992 i387_supply_fxsave.
3993
3994 2003-08-23 Mark Kettenis <kettenis@gnu.org>
3995
3996 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3997 i387_supply_register.
3998 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3999 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4000 i387_supply_fsave.
4001 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4002 i387_supply_fxsave.
4003 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4004 i387_supply_fsave.
4005 * i386bsd-nat.c (supply_fpregset): Adjust call to
4006 i387_supply_fsave.
4007 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4008 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4009 supply_fpregset.
4010 (store_inferior_registers): Remove extraneous whitespace. Call
4011 i387_fill_fsave instead of fill_fpregset.
4012 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4013 (supply_fpregset): Likewise.
4014 * i386v4-nat.c (supply_fpregset): Adjust call to
4015 i387_supply_fsave.
4016 * i386-interix-nat.c (supply_fpregset): Adjust call to
4017 i387_supply_fsave.
4018 * i386-linux-nat.c (supply_fpregset): Adjust call to
4019 i387_supply_fsave.
4020 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4021 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4022 i387supply_fsave and i387_supply_fxsave.
4023 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4024 Incorporate code from `i387_supply_register.
4025 (i387_supply_register): Remove.
4026 (i387_supply_fxsave): Add `regnum' argument.
4027 Update comments.
4028 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4029 prototype.
4030 (i387_supply_register): remove prototype.
4031 Update comments.
4032
4033 2003-08-22 Michael Chastain <mec@shout.net>
4034
4035 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4036 Add lines for files in gdb/testsuite/gdb.cp/* that are
4037 still not 8.3 unique.
4038
4039 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
4040
4041 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4042 TYPE_VPTR_FIELDNO is valid.
4043
4044 2003-08-19 Mark Kettenis <kettenis@gnu.org>
4045
4046 * utils.c (set_width_command): Remove prototypes.
4047 (set_screen_size): New prototype.
4048 (init_page_info): Simplify by fetching the screen size from
4049 Readline. Call set_screen_size.
4050 (set_screen_size): New function.
4051 (set_width): Add missing whitespace in comment.
4052 (set_width_command): Call set_screen_size.
4053 (set_height_command): New function.
4054 (initialize_utils): Fix formatting. Make "set height" command
4055 call set_height_command. Remove redundant code that turns off
4056 pagination if output isn't a terminal. Remove redundant call to
4057 set_width_command.
4058
4059 2003-08-22 Mark Kettenis <kettenis@gnu.org>
4060
4061 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4062 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4063 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4064 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4065 `case' keyword.
4066 (sparc64_register_info): Give the reister with number
4067 SPARC64_STATE_REGNUM a name.
4068 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4069 %asi and %ccr.
4070 (sparc64_push_dummy_call): Take BIAS into account when checking
4071 stcak alignment.
4072 (sparc_software_single_step): Remove assertions that check whether
4073 NPC and NNPC were zero.
4074 (sparc_supply_rwindow): Make public. Merge functionality with
4075 sparc64_supply_rwindow.
4076 (sparc_fill_rwindow): Make public. Merge functionality with
4077 sparc64_fill_rwindow.
4078 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4079 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4080 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4081 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4082 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4083
4084 * reggroups.c: Add whitespace after declarations of local
4085 variables in functions.
4086
4087 2003-08-21 Michael Chastain <mec@shout.net>
4088
4089 * gdbtypes.h: Change array bound type from an int to enum.
4090
4091 2003-08-21 Andrew Cagney <cagney@redhat.com>
4092
4093 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4094 * config/sparc/tm-sparc.h: Ditto.
4095 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4096 unconditionally.
4097 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4098
4099 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4100
4101 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4102 (register_objfile_data, set_objfile_data, objfile_data): New
4103 prototypes.
4104 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4105 prototypes.
4106 (allocate_objfile): Call objfile_alloc_data.
4107 (free_objfile): Call objfile_free_data.
4108 (struct objfile_data): New.
4109 (struct objfile_data_registration): New.
4110 (struct objfile_data_registry): New.
4111 (objfile_data_registry): New variable.
4112 (register_objfile_data): New function.
4113 (objfile_alloc_data, objfile_free_data): New functions.
4114 (set_objfile_data, objfile_data): New functions.
4115 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4116 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4117 (_initialize_dwarf2_frame): New function and prototype.
4118
4119 2003-08-21 Andrew Cagney <cagney@redhat.com>
4120
4121 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4122 a specific architecture.
4123 * arch-utils.h (set_architecture_from_arch_mach): Delete
4124 declaration.
4125 (target_architecture_hook): Delete declaration.
4126 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4127 (default_float_format): Assume GDB_MULTI_ARCH.
4128 (default_double_format): Assume GDB_MULTI_ARCH.
4129 (set_endian_from_file): Delete function.
4130 (arch_ok): Delete function.
4131 (set_arch): Delete function.
4132 (set_architecture_from_arch_mach): Delete function.
4133 (set_architecture_from_file): Delete function.
4134 (set_architecture): Assume GDB_MULTI_ARCH.
4135 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4136
4137 2003-08-21 Mark Kettenis <kettenis@gnu.org>
4138
4139 Rewrite FreeBSD/sparc64 native configuration.
4140 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4141 * sparc64fbsd-nat.c: New file.
4142 * sparc64fbsd-tdep.c: New file.
4143 * sparc64-tdep.c sparc64-tdep.h: New files.
4144 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4145 sparc64fbsd-tdep.o): New dependencies.
4146 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4147 and sparc64fbsd-tdep.c.
4148 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4149 * config/sparc/fbsd.mh: Remove copyright notice.
4150 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4151 sparcbsd-nat.o.
4152 * config/sparc/fbsd.mt: Remove copyright notice.
4153 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4154 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4155 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4156 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4157 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4158 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4159 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4160 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4161 "sparc/tm-sp64.h".
4162 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4163 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4164
4165 2003-08-21 Michael Chastain <mec@shout.net>
4166
4167 * symtab.h: Add doco on the space critical structures and
4168 some measurements of space usage.
4169
4170 2003-08-21 Michael Snyder <msnyder@redhat.com>
4171
4172 * tracepoint.c (trace_dump_command): Trace break address
4173 is subject to DECR_PC_AFTER_BREAK.
4174 (set_traceframe_context): Make "trace_line" an int.
4175 Fixes suggested by Mark Newman <mark.newman@lmco.com>
4176
4177 2003-08-20 Michael Snyder <msnyder@redhat.com>
4178
4179 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4180 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4181 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4182 argument passing.
4183 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4184 functions, replace sh_push_dummy_call.
4185 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4186
4187 2003-08-20 Michael Chastain <mec@shout.net>
4188
4189 * gdbtypes.h (struct main_type): Rearrange to save space.
4190
4191 2003-08-20 Michael Snyder <msnyder@redhat.com>
4192
4193 * trad-frame.c: Comment typo fix.
4194
4195 2003-08-20 Michael Snyder <msnyder@redhat.com>
4196 Kevin Buettner <kevinb@redhat.com>
4197
4198 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4199 (frv_frame_init_saved_regs): Add declaration.
4200 (frame_extra_info): Add new field ``saved_regs''.
4201 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4202 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4203 Update frame related code.
4204 (frv_extract_struct_value_address): Adjust formatting.
4205 * Makefile.in (frv-tdep.o): Update dependencies.
4206 * config/frv/tm-frv.h (target_insert_watchpoint)
4207 (target_remove_watchpoint, target_insert_hw_breakpoint)
4208 (target_remove_hw_breakpoint): Delete these macros.
4209 (remote_insert_watchpoint, remote_remove_watchpoint)
4210 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4211 these declarations.
4212
4213 2003-08-20 Michael Chastain <mec@shout.net>
4214
4215 * defs.h (ENUM_BITFIELD): New macro.
4216 * symtab.h (ENUM_BITFIELD): Use it.
4217 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4218
4219 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4220
4221 * MAINTAINERS (write after approval): Add myself.
4222
4223 2003-08-18 Andrew Cagney <cagney@redhat.com>
4224
4225 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4226 * gdbarch.h, gdbarch.c: Re-generate.
4227 * infcall.c (call_function_by_hand): Adjust the SP by
4228 frame_red_zone_size before allocating any stack space.
4229 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4230 * x86-64-tdep.c (x86_64_frame_align): New function.
4231 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4232
4233 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4234 Remove code adjusting SP so that it skips over the Red Zone.
4235
4236 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4237
4238 * NEWS (New native configurations): Mention FreeBSD/amd64.
4239
4240 2003-08-18 Andrew Cagney <cagney@redhat.com>
4241
4242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4243 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4244 "m68k_frame_p".
4245 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4246
4247 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4248
4249 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4250
4251 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4252
4253 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4254 Define.
4255 * i386-linux-nat.c: Include "linux-nat.h".
4256 (child_post_startup_inferior): New function.
4257
4258 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4259
4260 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4261 at the start of a frameless function. This probably fixes PR
4262 backtrace/1338.
4263
4264 2003-08-17 Michael Chastain <mec@shout.net>
4265
4266 * symfile.c (find_sym_fns): Remove special case for apollo target.
4267
4268 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4269
4270 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4271 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4272 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4273 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4274 (linux_supports_tracevforkdone): New function.
4275 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4276 TRACEVFORKDONE.
4277 (child_follow_fork): Handle vfork.
4278 (linux_handle_extended_wait): Likewise. Also handle exec.
4279 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4280 * NEWS: Mention fork tracing.
4281
4282 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4283
4284 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4285
4286 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4287
4288 * Makefile.in (i386-linux-nat.o): Update dependencies.
4289 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4290 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4291 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4292 * i386-linux-nat.c: Include "linux-nat.h".
4293 (child_post_startup_inferior): New function.
4294 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4295 * infptrace.c (kill_inferior): Wrap in #ifdef.
4296 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4297 attaching to each LWP.
4298 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4299 (init_lin_lwp_ops): Fill in some more operations.
4300 * linux-nat.h (linux_enable_event_reporting)
4301 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4302 prototypes.
4303 * linux-nat.c (linux_enable_event_reporting): New function.
4304 (child_post_attach, linux_child_post_startup_inferior)
4305 (child_post_startup_inferior, child_follow_fork)
4306 (linux_handle_extended_wait, kill_inferior): New functions.
4307
4308 2003-08-16 Andrew Cagney <cagney@redhat.com>
4309
4310 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4311 * gdbarch.h, gdbarch.c: Re-generate.
4312
4313 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4314
4315 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4316
4317 2003-08-16 Andrew Cagney <cagney@redhat.com>
4318
4319 * NEWS: Mention that "set prompt-escape-char" was deleted.
4320 * top.c (get_prompt_1): Delete function.
4321 (gdb_prompt_escape):
4322 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4323 prompt-escape-char" command.
4324 (MAX_PROMPT_SIZE): Delete macro.
4325 (get_prompt): Simplify, do not call get_prompt_1.
4326
4327 2003-08-16 Andrew Cagney <cagney@redhat.com>
4328
4329 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4330 -Werror. -Wformat-nonliteral problems.
4331
4332 2003-08-15 J. Brobecker <brobecker@gnat.com>
4333
4334 Further multiarching work mostly for hppa64-*-hpux11:
4335 * hppa-tdep.h: New file.
4336 * hppa-tdep.c: #include hppa-tdep.c.
4337 (hppa32_num_regs): Renamed from hppa_num_regs.
4338 (hppa64_num_regs): New constant.
4339 (hppa64_call_dummy_breakpoint_offset): New constant.
4340 (hppa32_call_dummy_length): New constant.
4341 (hppa64_call_dummy_length): New constant.
4342 (hppa32_stack_align): Make name 32bit explicit.
4343 (hppa32_register_virtual_type): Likewise.
4344 (hppa32_extract_return_value): Likewise.
4345 (hppa32_use_struct_convention): Likewise.
4346 (hppa32_store_return_value): Likewise.
4347 (hppa64_register_virtual_type): New function.
4348 (hppa64_extract_return_value): New function.
4349 (hppa64_use_struct_convention): New function.
4350 (hppa64_store_return_value): New function.
4351 (hppa_frame_locals_address): Remove declaration, function does
4352 not exist anymore.
4353 (hppa_register_byte): Add support for PA64 ABI.
4354 (hppa_gdbarch_init): Add support for PA64 ABI.
4355 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4356 Make name 32bit explicit.
4357 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4358 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4359 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4360 (hppa64_hpux_frame_base_before_sigtramp): New function.
4361 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4362 * config/pa/tm-hppa64.h: Remove macros that are no longer
4363 necessary now that the gdbarch vector is properly setup.
4364 Transform some macros into function calls. Some minor cleanup.
4365 * config/pa/tm-hppah.h: Update function calls in macros
4366 following the function renaming in hppa-hpux-tdep.c.
4367 * Makefile.in (hppa_tdep_h): New variable.
4368 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4369
4370 2003-08-14 Michael Snyder <msnyder@redhat.com>
4371
4372 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4373
4374 2003-08-13 J. Brobecker <brobecker@gnat.com>
4375
4376 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4377 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4378 routine.
4379
4380 2003-08-13 Michael Snyder <msnyder@redhat.com>
4381
4382 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4383 (frv_saved_pc_after_call): Use deprecated ftype.
4384 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4385 (frv_remote_translate_xfer_address): Remove.
4386 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4387
4388 2003-08-13 J. Brobecker <brobecker@gnat.com>
4389
4390 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4391 initialization after the common gdbarch initialization, not before.
4392
4393 2003-08-13 J. Brobecker <brobecker@gnat.com>
4394
4395 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4396 (ADDR_BITS_REMOVE): Remove, redundant.
4397
4398 2003-08-13 J. Brobecker <brobecker@gnat.com>
4399
4400 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4401 gdbarch method to clear the 2 low bits of text addresses.
4402
4403 2003-08-12 Andrew Cagney <cagney@redhat.com>
4404
4405 * Makefile.in (dsrec.o): Update dependencies.
4406 * dsrec.c: Include "gdb_assert.h".
4407 (make_srec): Use snprintf instead of sprintf, use a literal format
4408 string.
4409
4410 2003-08-12 Andrew Cagney <cagney@redhat.com>
4411
4412 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4413 FRAME_OBSTACK_ZALLOC.
4414
4415 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4416
4417 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4418 SSE registers.
4419
4420 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4421
4422 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4423 amd64fbsd_sc_reg_offset): Add extern declarations.
4424 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4425 declarations.
4426
4427 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4428
4429 * MAINTAINERS (write after approval): Update my mail address.
4430
4431 2003-08-10 Andrew Cagney <cagney@redhat.com>
4432
4433 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4434
4435 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4436
4437 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4438 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4439 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4440 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4441 i386bsd_sc_reg_offset): Add extern declarations.
4442 * i386obsd-nat.c: Include "i386-tdep.h"
4443 (_initialize_i386obsd_nat): Remove extern declarations.
4444 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4445 declarations.
4446 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4447 declarations.
4448
4449 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4450 instead of frame_read_register.
4451 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4452 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4453 SP_REGNUM.
4454 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4455 instead of frame_unwind_unsigned_register. Use
4456 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4457 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4458 instead of read_register. Use builtin_type_void_data_ptr instead
4459 of builtin_type_void_func_ptr when extracting the address of the
4460 jmp_buf.
4461 (i386_extract_return_value, i386_store_return_value,
4462 i386_pseudo_register_read, i386_pseudo_register_write): Use
4463 register_size instead REGISTER_RAW_SIZE.
4464
4465 2003-08-10 Andrew Cagney <cagney@redhat.com>
4466
4467 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4468 sprintf. Make "name" constant.
4469
4470 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4471
4472 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4473 instead of frame_read_register.
4474 (i387_print_float_info): Use get_frame_register and
4475 get_frame_register_unsigned instead of frame_register_read.
4476
4477 * i386fbsd-nat.c: Include "i386-tdep.h".
4478 (child_resume): Make `eflags' an ULONGEST. Use
4479 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4480 instead of register_read and register_write.
4481
4482 * i386bsd-nat.c (fetch_inferior_registers,
4483 store_inferior_registers): Don't use && at the end of a line.
4484 (_initialize_i386bsd_nat): Fix typo.
4485
4486 * frame.c (_initialize_frame): Add missing backslash.
4487
4488 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4489 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4490 and supply_register instead of manipulating the register buffer
4491 directly.
4492
4493 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4494 * config/i386/nm-i386sol2.h
4495 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4496
4497 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4498 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4499 instructions that GCC likes to mingle into the prologue. Fixes
4500 gdb/1253 and gdb/1255.
4501
4502 2003-08-09 Andrew Cagney <cagney@redhat.com>
4503
4504 Fix GDB PR cli/926.
4505 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4506 * command.h (add_setshow_uinteger_cmd): Declare.
4507 * frame.c (set_backtrace_cmd): New function.
4508 (show_backtrace_cmd): New function.
4509 * frame.c (_initialize_frame): Replace "set/show
4510 backtrace-below-main" with "set/show backtrace past-main". Add
4511 command "set/show backtrace limit".
4512 (backtrace_past_main): Rename "backtrace_below_main".
4513 (backtrace_limit): New variable.
4514 (get_prev_frame): Update. Check the backtrace_limit.
4515
4516 2003-08-09 Andrew Cagney <cagney@redhat.com>
4517
4518 * defs.h (xstrprintf): Declare.
4519 * utils.c (xstrprintf): New function.
4520 * breakpoint.c (insert_breakpoints): Replace sprintf and
4521 non-literal format strings, with xstrprintf and cleanups.
4522 (delete_breakpoint,breakpoint_re_set): Ditto.
4523 (commands_command, insert_breakpoints): Ditto.
4524 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4525 (break_at_finish_command_1): Ditto.
4526
4527 2003-08-09 Andrew Cagney <cagney@redhat.com>
4528
4529 * MAINTAINERS (language support): List Adam Fedor as Objective C
4530 maintainer.
4531
4532 2003-08-08 J. Brobecker <brobecker@gnat.com>
4533
4534 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4535 are now multiarched.
4536
4537 2003-08-08 J. Brobecker <brobecker@gnat.com>
4538
4539 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4540 longer necessary now that hppa64 is partially multiarch'ed.
4541
4542 2003-08-08 Andrew Cagney <cagney@redhat.com>
4543
4544 * interps.c (interp_set): Check for a NULL "old_interp".
4545
4546 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4547
4548 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4549 (install-only): Support DESTDIR.
4550 (uninstall): Likewise.
4551 (install-gdbtk): Likewise.
4552
4553 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4554
4555 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4556 contains something meaningful at all times.
4557
4558 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4559
4560 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4561
4562 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4563
4564 * MAINTAINERS (write after approval): Added self.
4565
4566 2003-08-07 Andrew Cagney <cagney@redhat.com>
4567
4568 * inferior.h (AT_SYMBOL): Define.
4569 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4570 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4571 * mips-tdep.c (mips_call_dummy_address): Delete function.
4572 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4573 set call_dummy_address.
4574
4575 2003-08-07 Andrew Cagney <cagney@redhat.com>
4576
4577 * language.c (op_error): Delete function.
4578 (binop_type_check): Delete function.
4579 * language.h (type_op_error, range_op_error): Delete macros.
4580 (op_error): Delete declaration.
4581
4582 2003-08-07 Andrew Cagney <cagney@redhat.com>
4583
4584 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4585
4586 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4587
4588 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4589 (x86_64_push_arguments): Skip the red zone.
4590
4591 2003-08-05 Andrew Cagney <cagney@redhat.com>
4592
4593 * reggroups.c (reggroup_next): Check for the final entry.
4594
4595 2003-08-04 Andrew Cagney <cagney@redhat.com>
4596
4597 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4598 * cli/cli-script.c (define_command): Call query directly, instead
4599 of passing it a buffer.
4600 * ocd.c (ocd_error): Pass error a constant format string.
4601 * remote-mips.c (mips_error): Use fputs_filtered.
4602
4603 * solib-svr4.c (_initialize_svr4_solib): Update
4604 register_gdbarch_data call.
4605 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4606
4607 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4608 (register_gdbarch_data): Delete "free" parameter. Update
4609 comments.
4610 * gdbarch.h, gdbarch.c: Re-generate.
4611 * reggroups.c (_initialize_reggroup): Update.
4612 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4613 * frame-base.c (_initialize_frame_base): Update.
4614 * frame-unwind.c (_initialize_frame_unwind): Update.
4615 * user-regs.c (_initialize_user_regs): Update.
4616 * remote.c (_initialize_remote): Update.
4617 * regcache.c (_initialize_regcache): Update.
4618
4619 * regcache.c (xfree_regcache_descr): Delete function.
4620 (_initialize_regcache): Update call to register_gdbarch_data.
4621 (init_regcache_descr, init_legacy_regcache_descr): Use
4622 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4623
4624 * remote.c (free_remote_state): Delete function.
4625 (_initialize_remote): Update register_gdbarch_data.
4626 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4627 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4628
4629 2003-08-04 Andrew Cagney <cagney@redhat.com>
4630
4631 * reggroups.c (struct reggroup_el): Define.
4632 (struct reggroups): Delete field "nr_group". Replace array
4633 "group" with a "first" to "last" linked list.
4634 (reggroups_init): Update. Allocate using gdbarch's obstack.
4635 (reggroups_free): Delete function.
4636 (add_group): Update. Add "el" parameter.
4637 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4638 (default_groups): Update.
4639 (reggroup_next): Replace reggroups.
4640 (reggroups_dump): Update.
4641 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4642 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4643 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4644
4645 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4646
4647 * Makefile.in (tui-interp.o): Update dependencies.
4648
4649 2003-08-04 David Carlton <carlton@kealia.com>
4650
4651 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4652 to internal_error call.
4653 * source.c (forward_search_command): Add "%s" format argument.
4654 (reverse_search_command): Ditto.
4655 * top.c (quit_confirm): Ditto.
4656 * cli/cli-setshow.c (do_setshow_command): Ditto.
4657 * cp-valprint.c (cp_print_class_method): Replace
4658 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4659 (cp_print_class_member): Ditto.
4660 * event-top.c (command_line_handler): Ditto.
4661 * linux-proc.c (linux_info_proc_cmd): Ditto.
4662 * p-typeprint.c (pascal_type_print_base): Ditto.
4663 * p-valprint.c (pascal_object_print_class_method): Ditto.
4664 (pascal_object_print_class_member): Ditto.
4665 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4666 * remote.c (remote_cisco_section_offsets): Ditto.
4667 * top.c (command_line_input): Ditto.
4668 * utils.c (vwarning,error_stream,quit): Ditto.
4669 * valprint.c (print_floating,print_binary_chars)
4670 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4671
4672 2003-08-04 Andrew Cagney <cagney@redhat.com>
4673
4674 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4675
4676 2003-08-02 Andrew Cagney <cagney@redhat.com>
4677
4678 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4679 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4680 amd64fbsd-nat.c.
4681
4682 2003-08-02 Andrew Cagney <cagney@redhat.com>
4683
4684 * Makefile.in: Update all dependencies and definitions.
4685
4686 2003-08-02 Adam Fedor <fedor@gnu.org>
4687
4688 * linespec.c (is_objc_method_format): New function
4689 (decode_line_1, locate_first_half): Use it.
4690 Fixes PR objc/1298
4691
4692 2003-08-01 Andrew Cagney <cagney@redhat.com>
4693
4694 * NEWS: Mention that m32r is multi-arch.
4695 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4696 * configure.tgt: Recognize m32r-*-*.
4697 * config/m32r/tm-m32r.h: Delete file.
4698 * config/m32r/m32r.mt: New file.
4699 * m32r-rom.c (m32r_upload_command): Use hostent only when
4700 gethostname succeeds, in order to avoid a compilation
4701 warning.
4702 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4703 compiler warning.
4704
4705 2003-08-01 Michael Snyder <msnyder@redhat.com>
4706
4707 * sh-tdep.c (sh_frame_align): New gdbarch method.
4708 (sh_gdbarch_init): Set up frame_align method.
4709
4710 2003-07-31 Michael Snyder <msnyder@redhat.com>
4711
4712 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4713 which is already covered by the new frames infrastructure.
4714
4715 2003-07-31 Andrew Cagney <cagney@redhat.com>
4716
4717 * user-regs.c (struct user_reg): Add "next" link.
4718 (struct user_regs): Replace "user" with "first" and "last" links.
4719 (append_user_reg): Add pre-allocated "reg" parameter.
4720 (builtin_user_regs): Provide initial value for "last".
4721 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4722 (user_regs_init): Allocate memory from the gdbarch obstack.
4723 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4724 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4725 linked list.
4726 (usernum_to_user_reg): New function.
4727 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4728 (value_of_user_reg): Use usernum_to_user_reg.
4729 (user_regs_free): Delete function.
4730 (_initialize_user_regs): Update register_gdbarch_data call.
4731
4732 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4733
4734 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4735
4736 2003-07-30 Michael Snyder <msnyder@redhat.com>
4737
4738 * value.h (value_being_returned): Add a struct_addr argument.
4739 * infcall.c (call_function_by_hand): Pass struct_addr to
4740 value_being_returned.
4741 * infcmd.c (print_return_value): Pass zero as struct_addr.
4742 * values.c (value_being_returned): If struct_addr is passed,
4743 use it instead of trying to recover it from the inferior.
4744
4745 2003-07-30 Kevin Buettner <kevinb@redhat.com>
4746
4747 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4748 the prologue analyzer won't need to attempt to extract the pc
4749 value from the woefully incomplete dummy frame.
4750 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4751 possible. Disable code which modifies the frame.
4752
4753 2003-07-28 Andrew Cagney <cagney@redhat.com>
4754
4755 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4756 to level 2.
4757 (annotate_breakpoints_table, annotate_record): Ditto.
4758 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4759 (annotate_field_name_end, annotate_field_value): Ditto.
4760 (annotate_field_end, annotate_frame_source_begin): Ditto.
4761 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4762 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4763 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4764 (annotate_frame_address_end, annotate_frame_address): Ditto.
4765 (annotate_frame_args, annotate_frame_end): Ditto.
4766 (annotate_frame_where, annotate_arg_begin): Ditto.
4767 (annotate_arg_name_end, annotate_arg_value): Ditto.
4768 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4769 (annotate_function_call, annotate_signal_name): Ditto.
4770 (annotate_signal_string, annotate_signal_name_end): Ditto.
4771 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4772 (annotate_value_begin, annotate_value_history_value): Ditto.
4773 (annotate_value_history_end, annotate_value_end): Ditto.
4774 (annotate_display_begin, annotate_display_number_end): Ditto.
4775 (annotate_display_format, annotate_display_expression): Ditto.
4776 (annotate_display_expression_end, annotate_display_value): Ditto.
4777 (annotate_display_end, annotate_array_section_begin): Ditto.
4778 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4779 (annotate_elt, annotate_array_section_end): Ditto.
4780
4781 2003-07-28 Andrew Cagney <cagney@redhat.com>
4782
4783 * regcache.c (struct regcache_descr): Update comments on
4784 nr_raw_registers.
4785 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4786 sizeof_raw_register_valid_p.
4787 (init_regcache_descr): Set nr_raw_registers and
4788 sizeof_raw_register_valid_p before calling
4789 init_legacy_regcache_descr.
4790
4791 2003-07-28 Andrew Cagney <cagney@redhat.com>
4792
4793 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4794 MOD NUM_REGS.
4795
4796 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4797
4798 * thread.c (info_threads_command): Use get_selected_frame ().
4799 Check that there is at least one non-sentinel frame.
4800
4801 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4802
4803 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4804 (m68hc11_pop_frame): Remove.
4805 (m68hc11_frame_saved_pc): Remove.
4806 (m68hc11_frame_chain): Remove.
4807 (m68hc11_frame_init_saved_regs): Remove.
4808 (m68hc11_init_extra_frame_info): Remove.
4809 (m68hc11_store_struct_return): Remove.
4810 (m68hc11_saved_pc_after_call): Remove.
4811
4812 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4813
4814 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4815 frame unwind information.
4816 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4817 and adapted for frame unwinding.
4818 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4819 (m68hc11_unwind_pc): New function.
4820 (m68hc11_frame_unwind_cache): New function to analyze frames.
4821 (m68hc11_frame_this_id): New function to create new frame struct.
4822 (m68hc11_frame_prev_register): New function to unwind a register from
4823 the frame.
4824 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4825 (m68hc11_frame_p): New function for the above.
4826 (m68hc11_frame_base_address): New function to return fp of frame.
4827 (m68hc11_frame_args_address): Update for frame.
4828 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4829 (m68hc11_unwind_sp): New function.
4830 (m68hc11_unwind_dummy_id): New function.
4831 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4832 calls.
4833
4834 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4835
4836 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4837 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4838 when we are beyond the current pc.
4839
4840 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4841
4842 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4843 from m68hc11_push_arguments.
4844 (m68hc11_push_arguments): Remove.
4845 (m68hc11_push_return_address): Remove.
4846 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4847 handlers; remove deprecated_extra_stack_alignment_needed.
4848
4849 2003-07-27 Andrew Cagney <cagney@redhat.com>
4850
4851 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4852 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4853 REAL_PC and not the pointer.
4854 * hppa-hpux-tdep.c: Include frame.h
4855
4856 2003-07-27 Andrew Cagney <cagney@redhat.com>
4857
4858 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4859 GDB_MULTI_ACH_PARTIAL.
4860
4861 2003-07-27 Andrew Cagney <cagney@redhat.com>
4862
4863 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4864 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4865 operator at start and not end of line.
4866 (decode_prologue): Ditto.
4867 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4868 frame_unwind_register_unsigned instead of
4869 frame_unwind_unsigned_register.
4870 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4871 read_register.
4872 (m32r_push_dummy_call): Use register_size instead of
4873 REGISTER_RAW_SIZE.
4874 (m32r_frame_sniffer): Replace m32r_frame_p.
4875 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4876 * m32r-rom.c (report_transfer_performance): Delete extern
4877 declaration.
4878 (m32r_load, m32r_upload_command): Use print_transfer_performance
4879 instead of report_transfer_performance.
4880 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4881 / add_show_from_set.
4882
4883 2003-07-26 Andrew Cagney <cagney@redhat.com>
4884
4885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4886 store_return_value and extract_struct_value_address.
4887
4888 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4889
4890 PR c++/1267
4891 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4892 NULL, default to the section containing PC.
4893
4894 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4895
4896 * NEWS: Mention "regs" deprecated for m68hc11 too.
4897
4898 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4899 (m68hc11_print_register): New function to print out one register.
4900 (m68hc11_print_registers_info): New function to print registers.
4901 (show_regs): Deprecate and use the above.
4902 (m68hc11_gdbarch_init): Install the print_registers_info.
4903
4904 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4905
4906 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4907 that we have a SIGTRAP before returning non-zero.
4908
4909 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4910 Elena Zannoni <ezannoni@redhat.com>
4911
4912 * linespec.c (decode_line_2): Avoid crash if
4913 find_function_start_sal() returns empty record.
4914
4915 2003-07-23 Andreas Schwab <schwab@suse.de>
4916
4917 * ia64-tdep.c (ia64_print_insn): New function.
4918 (ia64_gdbarch_init): Set print_insn to it.
4919 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4920 deprecated_tm_print_insn_info.
4921
4922 2003-07-22 Michael Snyder <msnyder@redhat.com>
4923
4924 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4925 handle 8-bit returns (long long).
4926 (h8300h_extract_return_value): Ditto.
4927 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4928
4929 2003-07-22 Andrew Cagney <cagney@redhat.com>
4930
4931 * gdbarch.c Include "gdb_obstack.h".
4932 (struct gdbarch): Add an "obstack".
4933 (alloc_gdbarch_data): Allocate the gdbarch data using
4934 GDBARCH_OBSTACK_CALLOC.
4935 (free_gdbarch_data): Delete function.
4936 (gdbarch_obstack_zalloc): New function.
4937 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4938 Assert that the architecture is not initialized.
4939 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4940 vector from the obstack.
4941 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4942 architecture obstack.
4943 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4944 (set_gdbarch_data): Assert that the data is not initialized.
4945 (struct gdbarch_data): Delete member "free".
4946 (register_gdbarch_data): Do not initialize "free".
4947 * gdbarch.h, gdbarch.c: Re-generate.
4948
4949 2003-07-22 Andrew Cagney <cagney@redhat.com>
4950
4951 * configure.in (build_warnings): Add -Wformat-nonliteral.
4952 * configure: Re-generate.
4953
4954 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4955
4956 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4957
4958 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4959
4960 * findvar.c (read_var_value): Remove case for thread local storage
4961 variables. It is now entirely handled by the dwarf2 location
4962 expression code.
4963 * printcmd.c (address_info): Ditto.
4964 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4965 enumeration value.
4966 (struct symbol): Remove objfile field, which was used by
4967 LOC_THREAD_LOCAL_STATIC only.
4968 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4969 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4970 usage of objfile pointer.
4971 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4972 thread local variables.
4973 Add include of objfiles.h.
4974 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4975 storage variables.
4976 * Makefile.in (dwarf2loc.o): Update dependencies.
4977
4978 2003-07-22 Andrew Cagney <cagney@redhat.com>
4979
4980 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4981 get_frame_base.
4982 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4983 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4984 (struct value): Add opaque declaration.
4985 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4986
4987 2003-07-21 Andrew Cagney <cagney@redhat.com>
4988
4989 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4990 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4991
4992 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4993
4994 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4995 regcache_cooked_read_unsigned instead of read_register.
4996 (m68hc11_saved_pc_after_call): Likewise.
4997 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4998 instead of write_register.
4999 (m68hc11_register_type): New function.
5000 (m68hc11_register_virtual_type): Remove.
5001 (m68hc11_store_return_value): Convert to use the regcache.
5002 (m68hc11_extract_struct_value_address): Likewise.
5003 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5004 m68hc11_register_type; undeprecate store_return_value and
5005 extract_struct_value_address.
5006
5007 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5008
5009 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5010 and translate to use regcache.
5011 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5012
5013 2003-07-18 Andrew Cagney <cagney@redhat.com>
5014
5015 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5016 * gdbarch.h, gdbarch.c: Re-generate.
5017 * i386-tdep.c (i386_gdbarch_init): Do not set
5018 DWARF2_BUILD_FRAME_INFO.
5019 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5020 unconditionally.
5021 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5022 DWARF2_BUILD_FRAME_INFO.
5023
5024 2003-07-18 Andrew Cagney <cagney@redhat.com>
5025
5026 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5027 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5028
5029 2003-07-18 Andrew Cagney <cagney@redhat.com>
5030
5031 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5032 frame_unwind_address_in_block, instead of frame_pc_unwind.
5033 (dwarf2_frame_cache): Ditto.
5034
5035 2003-07-18 Andrew Cagney <cagney@redhat.com>
5036
5037 * user-regs.h (struct gdbarch): Declare opaque.
5038 * ui-out.h (struct ui_file): Declare opaque.
5039 * dwarf2-frame.h (struct frame_info): Declare opaque.
5040
5041 2003-07-18 Kris Warkentin <kewarken@qnx.com>
5042
5043 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5044 #include "...".
5045 (procfs_meminfo): Change strerror to safe_strerror.
5046 (procfs_can_run): Remove K&R badness.
5047
5048 2003-07-17 Michael Snyder <msnyder@redhat.com>
5049
5050 * remote-sim.c: Comment typo fix.
5051
5052 2003-07-17 Andrew Cagney <cagney@redhat.com>
5053
5054 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5055 configure.
5056 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5057 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5058 GDB_MULTI_ARCH_PARTIAL.
5059
5060 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
5061
5062 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5063 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5064 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5065
5066 2003-07-16 Theodore A. Roth <troth@openavr.org>
5067
5068 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5069 found.
5070 (avr_frame_unwind_cache): Don't unwind FP for main.
5071 Update a comment.
5072 Save the computed prev_sp.
5073 (avr_saved_regs_unwinder): Remove function.
5074 (avr_frame_prev_register): Use PC unwind logic from
5075 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5076
5077 2003-07-16 Andrew Cagney <cagney@redhat.com>
5078
5079 * frame-base.h (frame_base_p_ftype): Delete definition.
5080 (frame_base_append_predicate): Delete declaration.
5081 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5082 (frame_unwind_append_predicate): Delete declaration.
5083 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5084 (append_predicate): Delete parameter "p".
5085 (frame_unwind_append_predicate): Delete function.
5086 (frame_unwind_append_sniffer): Update call to append_predicate.
5087 (frame_unwind_free): Delete function.
5088 (_initialize_frame_unwind): Pass NULL as "free" to
5089 register_gdbarch_data.
5090 (frame_unwind_init): Append the dummy_frame_sniffer.
5091 (frame_unwind_find_by_frame): Simplify.
5092 * frame-base.c (struct frame_base_table): Delete field "p".
5093 (append_predicate): Delete parameter "p".
5094 (frame_base_append_predicate): Delete function.
5095 (frame_base_append_sniffer): Update call to append_predicate.
5096 (frame_base_free): Delete function.
5097 (frame_base_find_by_frame): Simplify.
5098 (_initialize_frame_base): Pass NULL as "free" to
5099 register_gdbarch_data.
5100 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5101 (x86_64_sigtramp_frame_sniffer): Replace
5102 "x86_64_sigtramp_frame_p".
5103 (x86_64_init_abi): Set the frame unwind sniffers.
5104 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5105 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5106 (m68k_gdbarch_init): Set the frame unwind sniffers.
5107 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5108 "i386_sigtramp_frame_p".
5109 (i386_frame_sniffer): Replace "i386_frame_p".
5110 (i386_gdbarch_init): Set the frame unwind sniffers.
5111 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5112 (avr_gdbarch_init): Set the frame unwind sniffers.
5113 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5114 "alpha_sigtramp_frame_p"
5115 (alpha_heuristic_frame_sniffer): Replace
5116 "alpha_heuristic_frame_p".
5117 (alpha_gdbarch_init): Set the frame unwind sniffers.
5118 (alpha_dwarf2_init_abi): Ditto.
5119 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5120 "alpha_debug_frame_p".
5121 (alpha_mdebug_frame_base_sniffer): Replace
5122 "alpha_mdebug_frame_base_p".
5123 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5124 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5125 (d10v_gdbarch_init): Set the frame unwind sniffer.
5126 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5127 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5128 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5129 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5130 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5131 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5132
5133 2003-07-16 Michael Snyder <msnyder@redhat.com>
5134
5135 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5136 should go thru sh_dsp_register_sim_regno, else the dsp regs
5137 will not get the right values.
5138
5139 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5140
5141 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5142 deprecated_store_floating by call to store_typed_floating.
5143 (sh_sh4_register_convert_to_raw): Substitute call to
5144 deprecated_extract_floating by call to extract_typed_floating.
5145
5146 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5147
5148 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5149
5150 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5151
5152 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5153 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5154 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5155 as possible.
5156 (do_pseudo_register): Remove.
5157 (sh_push_dummy_code): New function.
5158 (sh64_store_struct_return): Rename from sh_store_struct_return.
5159 Only called for sh64 now.
5160 (sh_extract_struct_value_address): Regcache'ify.
5161 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5162 and accomodate new tasks.
5163 (sh64_push_return_address): Rename from sh_push_return_address.
5164 Only called for sh64 now.
5165 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5166 Regcache'ify.
5167 (sh3e_sh4_extract_return_value): Regcache'ify.
5168 (sh_default_store_return_value): Ditto.
5169 (sh3e_sh4_store_return_value): Ditto.
5170 (sh_default_register_byte): Remove.
5171 (sh_sh4_register_byte): Remove.
5172 (sh_default_register_raw_size): Remove.
5173 (sh_sh4_register_raw_size): Remove.
5174 (sh_register_virtual_size): Remove.
5175 (sh_sh3e_register_virtual_type): Remove.
5176 (sh_sh3e_register_type): New function.
5177 (sh_sh4_register_virtual_type): Remove.
5178 (sh_sh4_register_type): New function.
5179 (sh_default_register_virtual_type): Remove.
5180 (sh_default_register_type): New function.
5181 (do_fv_register_info): Add parameters to accomodate call from
5182 sh_print_registers_info.
5183 (do_dr_register_info): Ditto.
5184 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5185 Add parameters to accomodate call from sh_print_registers_info.
5186 (sh_do_fp_register): Ditto.
5187 (sh64_do_pseudo_register): Call do_dr_register_info,
5188 do_fv_register_info and sh_do_fp_register with default parameters.
5189 (sh_do_register): Add parameters to accomodate call from
5190 sh_print_registers_info.
5191 (sh_print_register): Ditto.
5192 (sh_print_registers_info): Rename from sh_do_registers_info.
5193 Add parameters to be used as gdbarch_print_registers_info
5194 implementation. Accomodate removed do_pseudo_register function
5195 pointer.
5196 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5197 function pointer. Call sh_print_register with default parameters.
5198 (sh64_do_registers_info): Call sh_print_registers_info instead of
5199 sh_do_registers_info.
5200 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5201 detection of deprecated vs. non-deprecated functionality.
5202 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5203 function pointer assignments by direct function calls.
5204
5205 2003-07-15 Andrew Cagney <cagney@redhat.com>
5206
5207 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5208 (frame_register_unwind, create_new_frame): Ditto.
5209 (legacy_get_prev_frame, get_frame_type): Ditto.
5210 (get_frame_base_address): Use frame_base_find_by_frame.
5211 (get_frame_locals_address): Use frame_base_find_by_frame.
5212 (get_frame_args_address): Use frame_base_find_by_frame.
5213 * frame-base.h (frame_base_sniffer_ftype): Declare.
5214 (frame_base_append_sniffer): Declare.
5215 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5216 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5217 (frame_base_append_sniffer): New function.
5218 (frame_base_append_predicate): Add a NULL sniffer.
5219 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5220 (struct frame_base_table): Add "sniffer".
5221 (frame_base_free): Free the "sniffer" table.
5222 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5223 (frame_unwind_append_sniffer): Declare.
5224 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5225 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5226 (struct frame_unwind_table): Add "sniffer", delete "middle".
5227 (append_predicate): Add "sniffer" parameter, append the sniffer.
5228 (frame_unwind_init): Update append_predicate call.
5229 (frame_unwind_append_sniffer): New function.
5230 (frame_unwind_append_predicate): Update append_predicate call.
5231 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5232
5233 2003-07-15 Andrew Cagney <cagney@redhat.com>
5234
5235 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5236 before code inhibiting repeated unwind attempts. Add to
5237 commentary on that test's problems.
5238 * blockframe.c (inside_main_func): Look for "main" in the minimal
5239 symbol table.
5240 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5241 identical.
5242
5243 2003-07-15 Andrew Cagney <cagney@redhat.com>
5244
5245 * complaints.c (struct explanation): Define.
5246 (struct complaints): Change type of "explanation" to "struct
5247 explanation".
5248 (symfile_explanations): Convert to a "struct explanation" table.
5249 (vcomplaint): Update.
5250
5251 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5252
5253 * x86-64-linux-nat.c (regmap): Removed.
5254 (supply_gregset, fill_gregset): Call
5255 x86_64_linux_(fill,supply)_gregset functions.
5256 * x86-64-linux-tdep.c (USER_*): New defines.
5257 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5258 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5259 New functions.
5260 (fetch_core_registers): Ditto.
5261 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5262 * x86-64-linux-tdep.h: New file.
5263 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5264 and core-regset.o.
5265 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5266
5267 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5268
5269 * x86-64-tdep.c (x86_64_store_return_value): Use
5270 regcache_cooked_write_part instead of regcache_cooked_write.
5271
5272 * configure.host: Add x86_64-*-freebsd*.
5273 * configure.tgt: Add x86_64-*-freebsd*.
5274 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5275 * amd64fbsd-nat.c: New file.
5276 * amd64fbsd-tdep.c: New file.
5277 * config/i386/nm-fbsd64.h: New file.
5278 * config/i386/fbsd64.mh: New file.
5279 * config/i386/fbsd64.mt: New file.
5280
5281 2003-07-11 Mark Kettenis <kettenis@gnu.org>
5282
5283 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5284 `sc_regs_offset' and `sc_fpregs_offset'.
5285 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5286 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5287 (alpha_sigtramp_register_address): Rewrite to use new members of
5288 `struct gdbarch_tdep'.
5289 (alpha_gdbarch_init): Initialize new members of struct
5290 gdbarch_tdep'.
5291 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5292 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5293 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5294 (alphafbsd_pc_in_sigtramp): Implement.
5295 (alphafbsd_sigtramp_offset): New function.
5296 (alphafbsd_sigcontext_addr): New function.
5297 (alphafbsd_init_abi): Initialize signal trampoline related members
5298 of `struct gdbarch_tdep'.
5299 (_initialize_alphafbsd_tdep): Add prototype.
5300
5301 2003-07-11 Theodore A. Roth <troth@openavr.org>
5302
5303 * Makefile.in (install-only): Quote sed expression when generating
5304 transformed_name.
5305
5306 2003-07-11 Richard Henderson <rth@redhat.com>
5307
5308 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5309 * dwarf2-frame.c: Include complaints.h.
5310 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5311 variable initialization; return NULL on error.
5312 (decode_frame_entry): New.
5313
5314 2003-07-11 Andrew Cagney <cagney@redhat.com>
5315
5316 * frame.h (frame_address_in_block): Delete declaration.
5317 * blockframe.c (frame_address_in_block): Delete function.
5318 (get_frame_block): Use get_frame_address_in_block.
5319 (block_innermost_frame): Ditto.
5320 * stack.c (print_frame, backtrace_command_1): Ditto.
5321
5322 * frame.h (get_frame_address_in_block): Declare.
5323 (frame_unwind_address_in_block): Declare.
5324 * frame.c (frame_unwind_address_in_block): New function.
5325 (get_frame_address_in_block): New function.
5326
5327 2003-07-10 Andrew Cagney <cagney@redhat.com>
5328
5329 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5330 pre-default. Note: re-generate has no effect.
5331
5332 2003-07-10 Andrew Cagney <cagney@redhat.com>
5333
5334 * gdbarch.sh: When a variable, but not a function, compare against
5335 0. Fix problem in previous patch.
5336 * gdbarch.c: Re-generate.
5337
5338 2003-07-10 Andrew Cagney <cagney@redhat.com>
5339
5340 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5341 functions against NULL, not 0.
5342 * gdbarch.c: Re-generate.
5343
5344 2003-07-10 Fred Fish <fnf@ninemoons.com>
5345
5346 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5347 null string instead of a null pointer.
5348 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5349
5350 2003-07-09 Michael Snyder <msnyder@redhat.com>
5351
5352 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5353
5354 2003-07-09 Mark Kettenis <kettenis@gnu.org>
5355
5356 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5357 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5358 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5359 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5360 * x86-64-tdep.c: ... from here.
5361
5362 2003-07-09 Andreas Schwab <schwab@suse.de>
5363
5364 * m68k-tdep.h (enum struct_return): Define.
5365 (struct gdbarch_tdep): Add struct_return.
5366 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5367 bytes are padded to the right, not to the left. Pass struct value
5368 address in register %a1, not on stack.
5369 (m68k_use_struct_convention): New function.
5370 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5371 struct_return in tdep to pcc_struct_return.
5372 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5373 reg_struct_return.
5374
5375 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5376
5377 * somread.c (som_symfile_offsets): Fix compilation error.
5378
5379 2003-07-09 Andrew Cagney <cagney@redhat.com>
5380
5381 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5382 Add comments about the checks.
5383
5384 2003-07-08 Andrew Cagney <cagney@redhat.com>
5385
5386 * Makefile.in: Make dependency section headers consistent.
5387 (config_h): Move to $BUILD headers section.
5388 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5389 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5390 (ada-exp.tab.c): Move to YACC/LEX section.
5391 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5392 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5393
5394 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5395
5396 * nto-procfs.c: Cleaned up a bunch of ARI hits.
5397 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5398 of strerror with safe_strerror, use ISO C function definitions,
5399 and replace instances of sprintf with snprintf.
5400
5401 2003-07-07 Andrew Cagney <cagney@redhat.com>
5402
5403 * frame.c (get_prev_frame): Enable check for identical frames.
5404 Update comments. Update error messages.
5405
5406 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5407
5408 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5409
5410 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5411
5412 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5413 sort_symtab_syms, no longer necessary.
5414
5415 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5416
5417 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5418
5419 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5420
5421 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5422 (mips_register_byte): Likewise.
5423
5424 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5425
5426 * Makefile.in (sparc_tdep_h): New.
5427 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5428 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5429 * sparc-linux-nat.c: Include "sparc-tdep.h".
5430 * sparc-nat.c: Likewise.
5431 * sparc-tdep.c: Likewise.
5432 * sparc64nbsd-nat.c: Likewise.
5433 * sparcnbsd-nat.c: Likewise.
5434 * sparcnbsd-tdep.c: Likewise.
5435 * sparc-tdep.h: New file.
5436 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5437 and sparc_npc_regnum.
5438
5439 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5440
5441 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5442 (mips_linux_cannot_store_register): List supported instead of
5443 unsupported registers.
5444
5445 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5446
5447 * disasm.c (dump_insns): Separate instructions from addresses.
5448
5449 2003-07-07 Andreas Schwab <schwab@suse.de>
5450
5451 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5452 dependencies.
5453 * m68k-tdep.c (NUM_FREGS): Delete.
5454 (SIG_PC_FP_OFFSET): Delete.
5455 (TARGET_M68K): Delete.
5456 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5457 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5458 P_MOVEL_SP, P_MOVEML_SP): Define.
5459 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5460 P_TRAP): Delete.
5461 (m68k_register_raw_size): Delete.
5462 (m68k_register_virtual_size): Delete.
5463 (m68k_register_type): Renamed from m68k_register_virtual_type and
5464 add gdbarch argument.
5465 (m68k_store_struct_return): Delete.
5466 (m68k_deprecated_extract_return_value): Delete.
5467 (m68k_deprecated_extract_struct_value_address): Delete.
5468 (m68k_frame_chain): Delete.
5469 (m68k_frame_saved_pc): Delete.
5470 (m68k_fix_call_dummy): Delete.
5471 (m68k_push_dummy_frame): Delete.
5472 (m68k_pop_frame): Delete.
5473 (m68k_extract_return_value): New function.
5474 (m68k_store_return_value): Rewrite using regcache.
5475 (m68k_extract_struct_value_address): Rewrite using regcache.
5476 (m68k_push_dummy_call): New function.
5477 (struct m68k_frame_cache): Define.
5478 (m68k_alloc_frame_cache): New function.
5479 (m68k_analyze_frame_setup): New function.
5480 (m68k_analyze_register_saves): New function.
5481 (m68k_analyze_prologue): New function.
5482 (m68k_skip_prologue): Rewrite using above functions.
5483 (m68k_unwind_pc): New function.
5484 (m68k_frame_cache): New function.
5485 (m68k_frame_this_id): New function.
5486 (m68k_frame_prev_register): New function.
5487 (m68k_frame_unwind): New variable.
5488 (m68k_frame_p): New function.
5489 (m68k_sigtramp_frame_cache): New function.
5490 (m68k_sigtramp_frame_this_id): New function.
5491 (m68k_sigtramp_frame_prev_register): New function.
5492 (m68k_sigtramp_frame_unwind): New variable.
5493 (m68k_sigtramp_frame_p): New function.
5494 (m68k_frame_base_address): New function.
5495 (m68k_frame_base): New function.
5496 (m68k_unwind_dummy_id): New function.
5497 (fill_gregset): Use regcache_collect.
5498 (fill_fpregset): Likewise.
5499 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5500 defined.
5501 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5502 deprecated_init_frame_pc, deprecated_store_struct_return,
5503 deprecated_extract_return_value, deprecated_store_return_value,
5504 deprecated_frame_chain, deprecated_frame_saved_pc,
5505 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5506 deprecated_register_virtual_size,
5507 deprecated_max_register_raw_size,
5508 deprecated_max_register_virtual_size,
5509 deprecated_register_virtual_type, deprecated_register_size,
5510 deprecated_register_byte, deprecated_register_bytes,
5511 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5512 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5513 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5514 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5515 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5516 deprecated_push_dummy_frame, deprecated_pop_frame,
5517 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5518 only if SYSCALL_TRAP is defined. Set extract_return_value,
5519 store_return_value, extract_struct_value_address, register_type,
5520 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5521 predicates.
5522 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5523 M68K_MAX_REGISTER_SIZE): Define.
5524 (struct m68k_sigtramp_info): Define.
5525 (struct gdbarch_tdep): Add get_sigtramp_info.
5526 * m68klinux-nat.c (fetch_register): Use register_size instead of
5527 REGISTER_RAW_SIZE. Don't put assignment in if.
5528 (store_register): Likewise.
5529 (fetch_inferior_registers): Likewise.
5530 (store_inferior_registers): Likewise.
5531 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5532 (m68k_linux_frame_saved_pc): Delete.
5533 (m68k_linux_sigcontext_reg_offset,
5534 m68k_linux_ucontext_reg_offset): Define.
5535 (m68k_linux_get_sigtramp_info): New function.
5536 (m68k_linux_extract_return_value): Rewrite using regcache.
5537 (m68k_linux_store_return_value): Likewise.
5538 (m68k_linux_extract_struct_value_address): Likewise.
5539 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5540 Don't set deprecated_frame_saved_pc,
5541 deprecated_extract_return_value, deprecated_store_return_value,
5542 deprecated_extract_struct_value_address. Set
5543 extract_return_value, store_return_value,
5544 extract_struct_value_address.
5545
5546 2003-07-07 Andrew Cagney <cagney@redhat.com>
5547
5548 * expprint.c: Include "user-regs.h" instead of "frame.h".
5549 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5550 frame_map_regnum_to_name.
5551 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5552 (frame_map_name_to_regnum): Simplify, call
5553 user_reg_map_name_to_regnum.
5554 (frame_map_regnum_to_name): Simplify, call
5555 user_reg_map_regnum_to_name.
5556 (frame_register_unwind): Update.
5557 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5558 (_initialize_frame_reg): Call user_reg_add_builtin.
5559 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5560 (value_of_register): Use value_of_user_reg.
5561 * eval.c (evaluate_subexp_standard): Update.
5562 * parse.c (write_dollar_variable): Update.
5563 * d10v-tdep.c (d10v_print_registers_info): Update.
5564 * infcmd.c (registers_info): Update.
5565 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5566 (builtin_regs_h): Delete macro.
5567 (user_regs_h): Define.
5568 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5569 (builtin-regs.o): Delete target.
5570 (user-regs.o): Specify dependencies.
5571 (expprint.o): Update dependencies.
5572 (findvar.o): Update dependencies.
5573 (frame.o): Update dependencies.
5574 (std-regs.o): Update dependencies.
5575
5576 2003-07-06 Christopher Faylor <cgf@redhat.com>
5577
5578 * win32-nat.c (solib_symbols_add): Use one variable for all section
5579 address stuff. Pass variable rather than address of variable to
5580 safe_symbol_file_add.
5581
5582 2003-07-06 Andreas Schwab <schwab@suse.de>
5583
5584 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5585
5586 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5587
5588 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5589
5590 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5591
5592 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5593
5594 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5595
5596 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5597 * config/i386/nto.mh: New file.
5598 * config/i386/nm-nto.h: New file.
5599 * configure.host: Add i[3456]86-*-nto*.
5600
5601 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5602
5603 * remote-vx.c (vx_add_symbols): Fix compilation error.
5604
5605 2003-07-03 Andrew Cagney <cagney@redhat.com>
5606
5607 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5608 * gdbarch.h, gdbarch.c: Re-generate.
5609 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5610 (legacy_register_name): Declare.
5611 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5612 (REGISTER_NAME): Define.
5613 * sparc-tdep.c (legacy_register_name): New function.
5614 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5615 (REGISTER_NAME): Define.
5616 (hppa64_register_name): Declare.
5617 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5618 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5619 (hppa64_register_name): New function.
5620 (hppa_register_name): New function.
5621 * arch-utils.c (legacy_register_name): Delete.
5622 * arch-utils.h (legacy_register_name): Delete.
5623
5624 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5625
5626 * cli/cli-interp.c (cli_interpreter_resume): Update the
5627 cli_uiout's stream to gdb_stdout.
5628
5629 2003-07-03 Andrew Cagney <cagney@redhat.com>
5630
5631 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5632 predicate.
5633 * gdbarch.h, gdbarch.c: Re-generate.
5634 * regcache.c (init_regcache_descr): Use legacy code when either
5635 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5636
5637 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5638
5639 * NEWS: Move "set logging" entry into GDB 6.0 section.
5640
5641 2003-07-02 Jim Blandy <jimb@redhat.com>
5642
5643 * s390-tdep.c (struct frame_extra_info): new member:
5644 'stack_bought_valid'.
5645 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5646 initialize fextra_info->stack_bought.
5647 (s390_frameless_function_invocation): Don't trust the value of
5648 fextra_info_ptr->stack_bought unless
5649 fextra_info->stack_bought_valid is set.
5650
5651 New S390 prologue analyzer.
5652 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5653 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5654 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5655 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5656 compute_x_addr, s390_on_stack, s390_store,
5657 s390_get_signal_frame_info): New functions.
5658 (S390_NUM_SPILL_SLOTS): New macro.
5659 (s390_get_frame_info): Rewritten.
5660 (is_arg_reg): Deleted.
5661
5662 Break out the decoding of S/390 instructions into separate
5663 functions, to make it more legible, and easier to check
5664 against the spec.
5665 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5666 is_rx, is_rxe): New functions.
5667 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5668 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5669 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5670 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5671 enums for opcode values. (Is this an improvement?)
5672
5673 2003-07-02 Andrew Cagney <cagney@redhat.com>
5674
5675 * i386-tdep.c: Revert change committed as part of trad-frame code
5676 below.
5677
5678 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5679
5680 * breakpoint.c (insert_catchpoint): Make static.
5681
5682 2003-07-02 Andreas Schwab <schwab@suse.de>
5683
5684 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5685 former ia64_push_arguments and ia64_push_return_address, and use
5686 regcache functions instead of read/write_register.
5687 (ia64_gdbarch_init): Set push_dummy_call instead of
5688 deprecated_push_arguments and deprecated_push_return_address.
5689
5690 2003-07-01 Andreas Jaeger <aj@suse.de>
5691
5692 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5693 before the call.
5694 Set %rax only to number of SSE registers used.
5695
5696 2003-07-01 Andrew Cagney <cagney@redhat.com>
5697
5698 * trad-frame.h: Update comments, a -1 .addr is reserved.
5699 (trad_frame_value_p, trad_frame_addr_p): Declare.
5700 (trad_frame_reg_p): Declare.
5701 (trad_frame_set_value): Rename trad_frame_register_value.
5702 (trad_frame_set_unknown): Declare.
5703 * trad-frame.c (trad_frame_realreg_p): New function.
5704 (trad_frame_addr_p, trad_frame_value_p): New function.
5705 (trad_frame_set_unknown): New function.
5706 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5707 (trad_frame_prev_register): Use trad_frame_realreg_p,
5708 trad_frame_addr_p and trad_frame_value_p.
5709 (trad_frame_set_value): Rename trad_frame_register_value.
5710 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5711 and trad_frame_set_value.
5712
5713 2003-06-30 Jim Blandy <jimb@redhat.com>
5714
5715 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5716 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5717 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5718 for 16 registers, and then 32 more bytes.
5719 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5720 New macros.
5721 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5722 Move up in the file, since it's now used by is_simple_arg.
5723 (is_simple_arg): Don't assume registers are four bytes long.
5724 Exclude all double arguments. Extended floats are not simple
5725 args.
5726 (is_power_of_two): New function.
5727 (pass_by_copy_ref): Call is_power_of_two, and check that the
5728 length fits in a register, rather than listing all the acceptable
5729 sizes. Extended floats are not passed by reference.
5730 (s390_push_arguments): Don't assume registers are four bytes long.
5731 Reserve an argument register to point to the buffer for structures
5732 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5733 S390_STACK_FRAME_OVERHEAD.
5734
5735 2003-06-30 Andreas Schwab <schwab@suse.de>
5736
5737 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5738 format error message.
5739
5740 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5741
5742 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5743
5744 2003-06-30 David Carlton <carlton@kealia.com>
5745
5746 Band-aid for PR c++/1245.
5747 * Makefile.in (cp-support.o): Depend on complaints_h.
5748 * cp-support.c: Include complaints.h. Add declaration for
5749 find_last_component.
5750 (cp_find_first_component): Separate code into
5751 cp_find_first_component_aux.
5752 (cp_find_first_component_aux): Call demangled_name_complaint.
5753 (demangled_name_complaint): New.
5754
5755 2003-06-30 Andrew Cagney <cagney@redhat.com>
5756
5757 * remote.c (remote_write_bytes): Explicitly compute and then use
5758 the payload size. Update comments to reflect. Fixes problem of
5759 GDB not sending small packets as found by Fred Fish.
5760
5761 2003-06-30 Andrew Cagney <cagney@redhat.com>
5762
5763 * remote.c (remote_async_wait): Fix -Wformat problem.
5764
5765 2003-06-29 Andrew Cagney <cagney@redhat.com>
5766
5767 * remote.c (remote_wait): Call error, and not warning, when the
5768 packet is corrupt.
5769 (remote_async_wait): Ditto.
5770
5771 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5772
5773 * sparc-tdep.c (sparc_y_regnum): Make external again.
5774
5775 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5776
5777 * cli/cli-logging.c (pop_output_files): Add void to function
5778 definition.
5779
5780 2003-06-29 Andrew Cagney <cagney@redhat.com>
5781
5782 * frame.c (frame_register_unwind): Use unsigned char when dumping
5783 the buffer contents.
5784
5785 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
5786
5787 * cli/cli-logging.c: New file.
5788 * cli-out.c (struct ui_out_data): Add original_stream.
5789 (cli_redirect): New function.
5790 (cli_ui_out_impl): Add cli_redirect.
5791 (cli_out_new): Initialize original_stream.
5792 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5793 (uo_redirect, ui_out_redirect): New.
5794 * ui-out.h (struct ui_out_impl): Add redirect member.
5795 (redirect_ftype): New.
5796 (ui_out_redirect): Add prototype.
5797 * Makefile.in: Add rules for cli-logging.c.
5798 * NEWS: Mention "set logging".
5799
5800 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5801
5802 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5803
5804 2003-06-27 Andrew Cagney <cagney@redhat.com>
5805
5806 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5807 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5808 * avr-tdep.c (avr_call_dummy_address): Delete function.
5809 (avr_gdbarch_init): Do not set call_dummy_address.
5810
5811 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5812
5813 * symfile.c (syms_from_objfile): Move variables to inner block.
5814 Move the checks for the non-mainline case a bit earlier to avoid
5815 doing some useless computations.
5816
5817 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5818
5819 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5820
5821 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5822
5823 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5824 sections.
5825
5826 2003-06-26 Michael Chastain <mec@shout.net>
5827
5828 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5829 gdb/testsuite/gdb.c++/pr-1210.exp.
5830
5831 2003-06-26 Andrew Cagney <cagney@redhat.com>
5832
5833 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5834 altivec_expression.h and altivec_registers.h.
5835
5836 2003-06-26 Andrew Cagney <cagney@redhat.com>
5837
5838 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5839 info->mach when MIPS16. Patch suggested by Fred Fish.
5840
5841 2003-06-26 Andrew Cagney <cagney@redhat.com>
5842
5843 * utils.c (internal_vproblem): Print the problem to a reason
5844 buffer and then pass to query. Make the msg variable more local.
5845
5846 2003-06-26 Andrew Cagney <cagney@redhat.com>
5847
5848 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5849 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5850 * gdbarch.h, gdbarch.c: Re-generate.
5851 * frame-base.c (default_frame_args_address): Update. Use
5852 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5853 not available.
5854 (default_frame_locals_address): Ditto for
5855 DEPRECATED_FRAME_LOCALS_ADDRESS.
5856 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5857 (vax_frame_num_args): Update.
5858 (vax_gdbarch_init): Update.
5859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5861 * mcore-tdep.c (mcore_gdbarch_init): Update.
5862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5863 * ia64-tdep.c (ia64_gdbarch_init): Update.
5864 * symtab.h (address_class): Update comments.
5865 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5866 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5867 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5868 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5869 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5870 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5871 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5872 * alpha-mdebug-tdep.c: Update.
5873 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5874
5875 2003-06-26 Andreas Jaeger <aj@suse.de>
5876
5877 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5878 of SSE registers so that varargs functions work. Rework handling
5879 of passing arguments on the stack.
5880 (x86_64_store_return_value): Return double and float values in SSE
5881 register.
5882
5883 2003-06-24 Michael Chastain <mec@shout.net>
5884
5885 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5886 the "constructor breakpoints ignored" bug.
5887
5888 2003-06-25 David Carlton <carlton@kealia.com>
5889
5890 * MAINTAINERS: Update e-mail address.
5891
5892 2003-06-24 Jim Blandy <jimb@redhat.com>
5893
5894 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5895
5896 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5897 function.
5898 (ppc_linux_init_abi): Register it as the
5899 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5900
5901 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5902 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5903 method.
5904
5905 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5906 (ppc64_standard_linkage_target): Use it.
5907
5908 2003-06-23 Andrew Cagney <cagney@redhat.com>
5909
5910 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5911 for 0 "int0" and 4 "int32" sized registers.
5912 * gdbtypes.c (builtin_type_int0): Define.
5913 (build_gdbtypes): Initialize builtin_type_int0.
5914 * gdbtypes.h (builtin_type_int0): Declare.
5915
5916 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5917
5918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5919 as characters are unsigned.
5920
5921 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5922
5923 PR gdb/1179
5924 * dwarfread.c (struct_type): Skip static fields without crashing.
5925
5926 2003-06-22 Andrew Cagney <cagney@redhat.com>
5927
5928 GDB 6.0 branch created.
5929 * README: Update.
5930 * PROBLEMS: Update. Empty.
5931 * NEWS: Update.
5932
5933 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5934
5935 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5936 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5937
5938 2003-06-22 Andrew Cagney <cagney@redhat.com>
5939
5940 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5941 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5942 Velikov.
5943
5944 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5945
5946 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5947 compilers.
5948
5949 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
5950
5951 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5952 argument of val_print.
5953 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5954 to the address argument of baseclass_offset or target_read_memory.
5955 Do add it to the argument of cp_print_value_fields.
5956
5957 2003-06-21 Andrew Cagney <cagney@redhat.com>
5958
5959 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5960 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5961 instead of 0..NUM_REGS.
5962 (mips_register_reggroup_p): New function.
5963 (mips_pseudo_register_write): New function.
5964 (mips_pseudo_register_read): New function.
5965 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5966 based on the register's type.
5967 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5968 cooked.
5969 (mips_get_saved_register): Simplify. Assert that REGNO is a
5970 pseudo / cooked.
5971 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5972 (mips_register_type): Replace mips_register_virtual_type. Map
5973 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5974 when available.
5975 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5976 that the register is cooked / virtual.
5977 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5978 Only get the extra info when needed.
5979 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5980 (mips32_heuristic_proc_desc): Fetch the cooked register.
5981 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5982 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5983 (mips_print_register): Use gdbarch_register_type, instead of
5984 REGISTER_VIRTUAL_TYPE.
5985 (print_gp_register_row): Use gdbarch_register_type, instead of
5986 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5987 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5988 Print the pseudo / cooked registers.
5989 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5990 Print the pseudo / cooked registers.
5991 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5992 REG_NUM is pseudo / cooked.
5993 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5994 (mips_n32n64_xfer_return_value): Ditto.
5995 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5996 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5997 (mips_register_sim_regno): New function.
5998 (mips_gdbarch_init): Set deprecated_register_byte,
5999 register_group_p, pseudo_register_write, pseudo_register_read,
6000 register_sim_regno, and num_pseudo_regs. Set register_type,
6001 instead of register_virtual_type.
6002 * Makefile.in (mips-tdep.o): Update dependencies.
6003 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6004 REGISTER_VIRTUAL_TYPE.
6005 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6006 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6007 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6008 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6009 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6010
6011 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
6012
6013 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6014 * cli/cli-cmds.c: Include "gdb_vfork.h".
6015 (shell_escape): Use vfork.
6016
6017 2003-06-21 Andrew Cagney <cagney@redhat.com>
6018
6019 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6020 32 bit floating-point register saves.
6021
6022 * frame.h (deprecated_unwind_get_saved_register): Delete.
6023 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6024 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6025 and deprecated_get_next_frame_hack instead of
6026 deprecated_unwind_get_saved_register.
6027
6028 * mips-tdep.c (mips_dump_tdep): Do not print
6029 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6030
6031 * frame.c (get_frame_register): New function.
6032 (frame_unwind_register_signed): New function.
6033 (get_frame_register_signed): New function.
6034 (frame_unwind_register_unsigned): New function.
6035 (get_frame_register_unsigned): New function.
6036 * frame.h: Add comments on naming schema.
6037 (get_frame_register, frame_unwind_register_signed): Declare.
6038 (get_frame_register_signed, get_frame_register_signed): Declare.
6039 (frame_unwind_register_unsigned): Declare.
6040 (get_frame_register_unsigned): Declare.
6041
6042 2003-06-20 Theodore A. Roth <troth@openavr.org>
6043
6044 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6045
6046 2003-06-20 Theodore A. Roth <troth@openavr.org>
6047
6048 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6049 (avr_read_sp): Ditto.
6050
6051 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
6052
6053 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6054 * config/arm/nm-linux.h: Likewise.
6055 * config/arm/tm-linux.h: Likewise.
6056 * config/ia64/nm-linux.h: Likewise.
6057 * config/ia64/tm-ia64.h: Likewise.
6058 * config/s390/tm-linux.h: Likewise.
6059 * config/s390/tm-s390.h: Likewise.
6060 * s390-nat.c: Likewise.
6061 * s390-tdep.c: Likewise.
6062
6063 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6064 * config/ia64/linux.mt: Likewise.
6065 * config/m68k/linux.mh: Likewise.
6066 * config/mips/linux.mt: Likewise.
6067 * config/powerpc/linux.mh: Likewise.
6068 * config/sh/linux.mt: Likewise.
6069
6070 2003-06-19 Kris Warkentin <kewarken@qnx.com>
6071
6072 * solib.c (solib_open): Change tests for whether to search
6073 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6074 comments.
6075
6076 2003-06-19 Theodore A. Roth <troth@openavr.org>
6077
6078 * avr-tdep.c (avr_frame_address): Delete function.
6079 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6080 set_gdbarch_frame_args_address.
6081
6082 2003-06-19 Andrew Cagney <cagney@redhat.com>
6083
6084 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6085 (REGISTER_CONVERT_FROM_TYPE): Delete.
6086 (mips_register_convert_to_type): Delete declaration.
6087 (mips_register_convert_from_type): Delete declaration.
6088 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6089 kernel/.
6090
6091 2003-06-19 Michael Snyder <msnyder@redhat.com>
6092
6093 * linux-nat.h: New file.
6094 * linux-nat.c: Include linux-nat.h.
6095 * lin-lwp.c: Include linux-nat.h.
6096 Move struct lwp_info def to linux-nat.h.
6097 * linux-proc.c: Include linux-nat.h.
6098 (linux_make_note_section): Iterate over lwps instead of threads.
6099 (linux_do_thread_registers): Use lwp instead of merged pid.
6100 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6101 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6102 Add dependency on linux_nat_h.
6103
6104 2003-06-19 Theodore A. Roth <troth@openavr.org>
6105
6106 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6107
6108 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6109
6110 * varobj.c (get_type, get_target_type): Use check_typedef.
6111
6112 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6113
6114 * breakpoint.c (insert_catchpoint): Call internal_error.
6115
6116 2003-06-19 Theodore A. Roth <troth@openavr.org>
6117
6118 * avr-tdep.c (avr_push_dummy_code): Delete function.
6119 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6120
6121 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6122
6123 * arch-utils.c (default_prepare_to_proceed): Remove.
6124 (generic_prepare_to_proceed): Remove.
6125 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6126 (generic_prepare_to_proceed): Remove prototype.
6127 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6128 * gdbarch.c: Regenerate.
6129 * gdbarch.h: Regenerate.
6130 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6131 * hppah-nat.c (hppa_switched_threads): Remove.
6132 * infrun.c (prepare_to_proceed): New static function, copied from
6133 generic_prepare_to_proceed. Remove select_it argument.
6134 (proceed): Call prepare_to_proceed.
6135 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6136 variables.
6137 (ptrace_wait): Don't set the removed variables.
6138 (hppa_switched_threads): Remove.
6139 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6140 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6141 (lin_lwp_prepare_to_proceed): Remove prototype.
6142 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6143 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6144
6145 2003-06-18 Theodore A. Roth <troth@openavr.org>
6146
6147 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6148 trad-frame.h.
6149 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6150 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6151 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6152 (AVR_PROLOGUE_*): Enumerate prologue types.
6153 (struct frame_extra_info): Remove.
6154 (struct avr_unwind_cache): Define.
6155 (avr_write_sp): Delete function.
6156 (avr_read_fp): Ditto.
6157 (avr_init_extra_frame_info): Ditto.
6158 (avr_pop_frame): Ditto.
6159 (avr_frame_saved_pc): Ditto.
6160 (avr_saved_pc_after_call): Ditto.
6161 (avr_push_return_address): Ditto.
6162 (avr_frame_chain): Ditto.
6163 (avr_store_struct_return): Ditto.
6164 (avr_push_arguments): Ditto.
6165 (avr_scan_prologue): Update comments. Changed to set up the info for
6166 cache unwinding. Now returns end of prologue PC.
6167 (avr_skip_prologue): Better handling of functions lacking a prologue
6168 by using avr_scan_prologue.
6169 (avr_scan_arg_moves): New function.
6170 (avr_saved_regs_unwinder): Ditto.
6171 (avr_frame_unwind_cache): Ditto.
6172 (avr_unwind_pc): Ditto.
6173 (avr_frame_this_id): Ditto.
6174 (avr_frame_prev_register): Ditto.
6175 (avr_frame_p): Ditto.
6176 (avr_frame_base_address ): Ditto.
6177 (avr_unwind_dummy_id): Ditto.
6178 (avr_push_dummy_code): Ditto.
6179 (push_stack_item): Ditto.
6180 (pop_stack_item): Ditto.
6181 (avr_push_dummy_call): Ditto.
6182 (struct stack_item): Define.
6183 (avr_frame_unwind): Declare structure.
6184 (avr_frame_base): Ditto.
6185 (avr_gdbarch_init): Remove calls to
6186 set_gdbarch_deprecated_init_frame_pc,
6187 set_gdbarch_deprecated_target_read_fp,
6188 set_gdbarch_deprecated_dummy_write_sp,
6189 set_gdbarch_deprecated_fp_regnum,
6190 set_gdbarch_deprecated_push_arguments,
6191 set_gdbarch_deprecated_push_return_address,
6192 set_gdbarch_deprecated_pop_frame,
6193 set_gdbarch_deprecated_store_struct_return,
6194 set_gdbarch_deprecated_frame_init_saved_regs,
6195 set_gdbarch_deprecated_init_extra_frame_info,
6196 set_gdbarch_deprecated_frame_chain,
6197 set_gdbarch_deprecated_frame_saved_pc,
6198 set_gdbarch_deprecated_saved_pc_after_call.
6199 Add calls to set_gdbarch_push_dummy_call,
6200 set_gdbarch_push_dummy_code,
6201 frame_unwind_append_predicate,
6202 frame_base_set_default,
6203 set_gdbarch_unwind_dummy_id,
6204 set_gdbarch_unwind_pc.
6205 Wrap a long line.
6206
6207 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6208
6209 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6210 registers for H8/300S.
6211 (h8300_print_registers_info): Ditto.
6212 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6213
6214 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
6215
6216 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6217 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6218 (lin_lwp_wait): Likewise. Update comments.
6219 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6220 (pull_pid_from_list, linux_record_stopped_pid): New.
6221
6222 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6223
6224 * ada-lang.c (scan_discrim_bound): Name first argument.
6225 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6226 declared by ALL_BLOCK_SYMBOLS.
6227
6228 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6229
6230 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6231 ("regcache.h"): Include it.
6232 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6233
6234 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6235
6236 * NEWS: Mention gdbserver detach change and "disconnect" command.
6237 * infcmd.c (disconnect_command): New function.
6238 (_initialize_infcmd): Add ``disconnect'' command.
6239 * remote.c (remote_async_detach): Delete.
6240 (remote_detach): Merge remote_async_detach.
6241 (remote_disconnect): New.
6242 (init_remote_ops): Set to_disconnect.
6243 (init_remote_cisco_ops): Likewise.
6244 (init_remote_async_ops): Likewise. Use remote_detach.
6245 * target.c (cleanup_target): Default to_disconnect.
6246 (update_current_target): Inherit to_disconnect.
6247 (target_disconnect, debug_to_disconnect): New functions.
6248 (setup_target_debug): Set to_disconnect.
6249 * target.h (struct target_ops): Add to_disconnect.
6250 (target_disconnect): Add prototype.
6251
6252 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6253
6254 * breakpoint.c (insert_catchpoint): New function.
6255 (insert_breakpoints): Use catch_exceptions to call
6256 insert_catchpoint. Disable catchpoints if they fail to insert.
6257
6258 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6259
6260 * symfile.c (reread_symbols): Clear sym_private.
6261
6262 2003-06-17 Andrew Cagney <cagney@redhat.com>
6263
6264 * trad-frame.h (struct frame_info): Add opaque declaration.
6265 * remote-fileio.h (struct cmd_list_element): Add opaque
6266 declaration.
6267 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6268 comments.
6269
6270 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6271
6272 * remote.c (remote_prepare_to_store): Replace call to
6273 deprecated_read_register_bytes with multiple regcache_raw_read
6274 calls.
6275
6276 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6277
6278 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6279 (nto_find_and_open_solib): Likewise.
6280 (nto_init_solib_absolute_prefix): Likewise.
6281 (_initialize_nto_tdep): Fix indentation.
6282
6283 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6284
6285 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6286
6287 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6288
6289 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6290
6291 2003-06-17 Jim Blandy <jimb@redhat.com>
6292
6293 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6294
6295 2003-06-16 Theodore A. Roth <troth@openavr.org>
6296
6297 * avr-tdep.c (avr_extract_return_value): New function.
6298 (avr_gdbarch_init): Set extract_return_value method.
6299
6300 2003-06-16 Andrew Cagney <cagney@redhat.com>
6301
6302 * frame.h (deprecated_get_next_frame_hack): Declare.
6303 * frame.c (legacy_saved_regs_prev_register): Only require
6304 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6305 there are always saved regs.
6306 (deprecated_generic_get_saved_register): Do not require
6307 DEPRECATED_FRAME_INIT_SAVED_REGS.
6308 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6309 use frame ID unwind instead.
6310 (deprecated_get_next_frame_hack): New function.
6311
6312 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6313
6314 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6315 (h8300_push_dummy_call): ...this function. Some minor optimization.
6316 (h8300_push_return_address): Remove.
6317 (h8300_gdbarch_init): Remove calls to
6318 set_gdbarch_deprecated_dummy_write_sp,
6319 set_gdbarch_deprecated_push_arguments and
6320 set_gdbarch_deprecated_push_return_address.
6321 Add call to set_gdbarch_push_dummy_call.
6322
6323 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
6324
6325 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6326 (E_PSEUDO_EXR_REGNUM): Ditto.
6327 (h8300_is_argument_spill): Check for instructions moving argument
6328 registers into safe registers.
6329 (h8300_skip_prologue): Check for stm instruction to push registers
6330 used for register variables onto stack.
6331 (gdb_print_insn_h8300): Remove.
6332 (h8300_examine_prologue): Add a comment.
6333 (h8300_register_name): Take pseudo registers into account.
6334 (h8300s_register_name): Ditto.
6335 (h8300sx_register_name): Ditto.
6336 (h8300_print_register): Ditto.
6337 (h8300_print_registers_info): Define "nice" printing order.
6338 (h8300_saved_pc_after_call): Take pseudo registers into account.
6339 (h8300_register_type): Ditto. Return type used for remote connection
6340 when requesting real CCR or EXR register, return actual type when
6341 requesting pseudo CCR or EXR.
6342 (h8300_pseudo_register_read): New function.
6343 (h8300_pseudo_register_write): Ditto.
6344 (h8300_dbg_reg_to_regnum): Ditto.
6345 (h8300s_dbg_reg_to_regnum): Ditto.
6346 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6347 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6348 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6349 set_gdbarch_print_insn architecture dependent.
6350 Call set_gdbarch_pseudo_register_read and
6351 set_gdbarch_pseudo_register_write.
6352 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6353
6354 2003-06-16 Andrew Cagney <cagney@redhat.com>
6355
6356 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6357 * gdbarch.h, gdbarch.c: Re-generate.
6358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6359 * s390-tdep.c (s390_gdbarch_init): Update.
6360 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6361 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6362 * mips-tdep.c (mips_gdbarch_init): Update.
6363 * mcore-tdep.c (mcore_gdbarch_init): Update.
6364 * cris-tdep.c (cris_gdbarch_init): Update.
6365 * infcall.c (call_function_by_hand): Update.
6366 * ia64-tdep.c (ia64_push_arguments): Update comment.
6367 * frame.c (legacy_get_prev_frame): Do not assume
6368 SAVE_DUMMY_FRAME_TOS_P.
6369 * dummy-frame.c (find_dummy_frame): Update comment.
6370
6371 2003-06-16 Andrew Cagney <cagney@redhat.com>
6372
6373 * regcache.c (do_cooked_read): Do not use register_valid_p.
6374
6375 2003-06-15 Theodore A. Roth <troth@openavr.org>
6376
6377 * avr-tdep.c (avr_register_type): Remove a blank line.
6378 (avr_scan_prologue): Correct some comments.
6379
6380 2003-06-15 Theodore A. Roth <troth@openavr.org>
6381
6382 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6383 prologue types.
6384 Properly scan prologues generated by gcc with the -mcall-prologues
6385 option.
6386 Add code to scan -mcall-prologues for mega devices.
6387
6388 2003-06-15 Theodore A. Roth <troth@openavr.org>
6389
6390 * avr-tdep.c (avr_register_byte): Delete function.
6391 (avr_register_raw_size): Delete function.
6392 (avr_register_virtual_size): Delete function.
6393 (avr_register_virtual_type): Delete function.
6394 (avr_register_type): New function.
6395 (avr_address_to_pointer): Remove unused code.
6396 (avr_read_fp): Need to read FP as two separate bytes due to change to
6397 avr_register_type() usage.
6398 (avr_gdbarch_init): Don't set deprecated_register_size.
6399 Don't set deprecated_register_bytes.
6400 Don't set deprecated_register_byte.
6401 Don't set deprecated_register_raw_size.
6402 Don't set deprecated_max_register_raw_size.
6403 Don't set deprecated_register_virtual_size.
6404 Don't set deprecated_max_register_virtual_size.
6405 Don't set deprecated_register_virtual_type.
6406 Set register_type method.
6407
6408 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
6409
6410 * Makefile.in (linux-nat.o): Add rule.
6411 * linux-nat.c: New file.
6412 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6413 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6414 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6415 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6416 * config/arm/linux.mh (NATDEPFILES): Likewise.
6417 * config/i386/linux.mh (NATDEPFILES): Likewise.
6418 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6419 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6420 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6421 * config/mips/linux.mh (NATDEPFILES): Likewise.
6422 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6423 * config/s390/s390.mh (NATDEPFILES): Likewise.
6424 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6425
6426 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6427
6428 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6429 replace out-of-date comment.
6430
6431 2003-06-15 Andrew Cagney <cagney@redhat.com>
6432
6433 * rdi-share/host.h (Fail): Change to a varargs function.
6434 * remote-rdi.c (Fail): Update.
6435
6436 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6437
6438 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6439 (i386_convert_register_p, i386_register_to_value,
6440 i386_register_from_value): Handle types longer than 8 bytes.
6441
6442 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6443
6444 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6445 Move floating-point code to new function in i387-tdep.c.
6446 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6447 New functions containing code moved here from i386-tdep.c.
6448 * i387-tdep.h: Add opaque declaration for `struct type'.
6449 (i387_register_to_value, i387_value_to_register): New prototypes.
6450 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6451 (x86_64_init_abi): Set convert_register_p, register_to_value and
6452 value_to_register here.
6453
6454 2003-06-14 Andrew Cagney <cagney@redhat.com>
6455
6456 * mips-tdep.c (mips_register_to_value): Make static.
6457 (mips_value_to_register): Make static.
6458 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6459 * ia64-tdep.c (ia64_register_raw_size): Make static.
6460 (ia64_register_virtual_size): Make static.
6461 (ia64_register_byte): Make static.
6462 * i387-tdep.c: Include "i387-tdep.h".
6463 (print_387_control_word): Delete function.
6464 (print_387_status_word): Delete function.
6465 (print_387_status_bits): Delete function.
6466 (print_387_control_bits): Delete function.
6467 * Makefile.in (i387-tdep.o): Update dependencies.
6468 * rdi-share/host.h (Fail): Declare.
6469 * remote-rdi.c (Fail): Update to match declaration.
6470
6471 2003-06-14 Andrew Cagney <cagney@redhat.com>
6472
6473 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6474 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6475 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6476 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6477 * README: Delete reference to remote-array.
6478 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6479 (remote-array.o): Delete target.
6480 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6481 * remote-array.c: Delete file.
6482
6483 2003-06-14 Andrew Cagney <cagney@redhat.com>
6484 Mark Kettenis <kettenis@gnu.org>
6485
6486 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6487 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6488 parameter with "frame".
6489 * gdbarch.h, gdbarch.c: Re-generate.
6490 * frame.h (put_frame_register): Declare.
6491 * frame.c (put_frame_register): New function.
6492 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6493 (legacy_register_to_value): Rewrite, use "frame" to get the
6494 register value.
6495 (legacy_value_to_register): Rewrite, use "frame" to find the
6496 register's location before storing.
6497 * arch-utils.h (legacy_convert_register_p): Update.
6498 (legacy_register_to_value, legacy_value_to_register): Update.
6499 * findvar.c (value_from_register): Rewrite, eliminate use of
6500 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6501 "frame" to REGISTER_TO_VALUE.
6502 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6503 lval_reg_frame_relative + lval_register branch of the switch. Do
6504 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6505 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6506 I386_EDI_REGNUM): New defines.
6507 (i386_next_regnum, i386_convert_register_p,
6508 i386_register_to_value, i386_value_to_register): New functions.
6509 (i386_register_convertible, i386_register_convert_to_virtual,
6510 i386_convert_to_raw): Remove functions.
6511 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6512 value_to_register instead of register_convertible,
6513 register_convert_to_virtual and register_convert_to_raw.
6514 * mips-tdep.c (mips_convert_register_p): New function.
6515 (mips_value_to_register): Replace mips_register_convert_from_type.
6516 (mips_register_to_value): Replace mips_register_convert_to_type.
6517 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6518 register_to_value.
6519 * alpha-tdep.c (alpha_convert_register_p): Update.
6520 (alpha_value_to_register): Update, store the register.
6521 (alpha_register_to_value): Update, fetch the register.
6522
6523 2003-06-14 Theodore A. Roth <troth@openavr.org>
6524
6525 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6526 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6527 Don't set deprecated_call_dummy_words.
6528 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6529 Don't set remote_translate_xfer_address.
6530 (avr_io_reg_read_command): Remove commented out debug printf.
6531 Wrap a long line.
6532
6533 2003-06-14 Theodore A. Roth <troth@openavr.org>
6534
6535 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6536 causes gdb to seg fault.
6537
6538 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6539
6540 * sparc-nat.c (fetch_inferior_registers): Correct
6541 a reference to "registers".
6542
6543 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6544
6545 * Makefile.in (exc_request_U_h): Define
6546 (exc_request_S_h): Likewise.
6547 (msg_reply_S_h): Likewise.
6548 (msg_U_h): Likewise.
6549 (notify_S_h): Likewise.
6550 (process_reply_S_h): Likewise.
6551 (gnu-nat.o): Depend on gdb_obstack_h
6552 * gnu-nat.c: Include "gdb_obstack.h".
6553
6554 2003-06-13 Andrew Cagney <cagney@redhat.com>
6555
6556 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6557 * gdbarch.h, gdbarch.c: Re-generate.
6558
6559 2003-06-13 Andrew Cagney <cagney@redhat.com>
6560
6561 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6562 when deprecated REGISTER macros can be deleted.
6563 * gdbarch.h, gdbarch.c: Re-generate.
6564
6565 2003-06-13 Jim Blandy <jimb@redhat.com>
6566
6567 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6568 Linux entry point symbols for _dl_debug_state, too.
6569
6570 2003-06-13 Andrew Cagney <cagney@redhat.com>
6571
6572 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6573 available, do not use the FP register, and always save the TOS.
6574 * dummy-frame.c (dummy_frame_this_id): Do not assert
6575 SAVE_DUMMY_FRAME_TOS.
6576 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6577 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6578 (i386_push_dummy_call): Add 8 to the returned SP.
6579 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6580 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6581 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6582 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6583 (x86_64_push_dummy_call): Return "sp + 16".
6584 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6585 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6586 save_dummy_frame_tos.
6587
6588 2003-06-13 Jim Blandy <jimb@redhat.com>
6589
6590 * frv-tdep.c (frv_use_struct_convention): Delete static
6591 declaration for function deleted in my change of 2003-06-12.
6592
6593 2003-06-13 Theodore A. Roth <troth@openavr.org>
6594
6595 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6596 (avr_pointer_to_address): Shift code addrs left 1 bit.
6597 (avr_convert_from_func_ptr_addr): Delete function since operation is
6598 better handled by avr_address_to_pointer and avr_pointer_to_address.
6599 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6600
6601 2003-06-13 Mark Kettenis <kettenis@gnu.org>
6602
6603 From Kelley Cook <kelleycook@wideopenwest.com>:
6604 * configure.host: Accept i[34567]86 variants.
6605 * configure.tgt: Likewise.
6606 * nlm/configure.in: Likewise.
6607 * nlm/configure: Regenerated.
6608
6609 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
6610
6611 * arm-tdep.c (solib-svr4.h): Dont' include it.
6612 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6613 * arm-linux-tdep.c: ... here. Make static.
6614 (arm_linux_init_abi): Register it.
6615 (solib-svr4.h): Include it.
6616 * Makefile.in: Update dependencies.
6617 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6618 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6619
6620 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6621
6622 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6623 indicate registers used for return values.
6624 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6625 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6626 members.
6627 (h8300_init_extra_frame_info): Ditto.
6628 (h8300_frame_locals_address): Removed.
6629 (h8300_frame_args_address): Removed.
6630 (h8300_extract_return_value): Use new regcache structure. Only care
6631 for 16 bit CPUs.
6632 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6633 (h8300_store_return_value): Use new regcache structure. Only care
6634 for 16 bit CPUs.
6635 (h8300h_store_return_value): Same function for 32 bit CPUs.
6636 (h8300_store_struct_return): Removed.
6637 (h8300_extract_struct_value_address): Use new regcache structure.
6638 (h8300h_extract_struct_value_address): Removed.
6639 (h8300_push_dummy_code): New function.
6640 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6641 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6642 set_gdbarch_store_return_value architecture dependent.
6643 Call set_gdbarch_push_dummy_code and
6644 set_gdbarch_extract_struct_value_address.
6645 Remove calls to set_gdbarch_frame_args_address,
6646 set_gdbarch_frame_locals_address,
6647 set_gdbarch_deprecated_store_struct_return,
6648 set_gdbarch_deprecated_extract_return_value,
6649 set_gdbarch_deprecated_extract_struct_value_address,
6650 set_gdbarch_deprecated_call_dummy_words and
6651 set_gdbarch_deprecated_sizeof_call_dummy_words.
6652
6653 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
6654
6655 * h8300-tdep.c (h8300_register_byte): Remove.
6656 (h8300h_register_byte): Remove.
6657 (h8300_register_virtual_type): Remove. Substitute by...
6658 (h8300_register_type): New function.
6659 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6660 (h8300h_extract_struct_value_address): Ditto.
6661 (h8300_gdbarch_init): Drop calls to
6662 set_gdbarch_deprecated_register_byte and
6663 set_gdbarch_deprecated_register_virtual_type.
6664 Add call to set_gdbarch_register_type.
6665
6666 2003-06-13 Andrew Cagney <cagney@redhat.com>
6667
6668 * gdbarch.sh: Update comments on registers.
6669 (deprecated_register_byte): Rename register_byte.
6670 (deprecated_register_raw_size): Rename register_raw_size.
6671 (deprecated_register_virtual_size): Rename register_virtual_size.
6672 (deprecated_register_virtual_type): Rename register_virtual_type.
6673 * gdbarch.h, gdbarch.c: Re-generate.
6674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6675 * vax-tdep.c (vax_gdbarch_init): Update.
6676 * v850-tdep.c (v850_gdbarch_init): Update.
6677 * sparc-tdep.c (sparc_gdbarch_init): Update.
6678 * sh-tdep.c (sh_gdbarch_init): Update.
6679 * s390-tdep.c (s390_gdbarch_init): Update.
6680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6681 * ns32k-tdep.c: Update.
6682 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6683 * mips-tdep.c (mips_gdbarch_init): Update.
6684 * mcore-tdep.c (mcore_gdbarch_init): Update.
6685 * m68k-tdep.c (m68k_gdbarch_init): Update.
6686 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6687 * ia64-tdep.c (ia64_gdbarch_init): Update.
6688 * hppa-tdep.c (hppa_gdbarch_init): Update.
6689 * h8300-tdep.c (h8300_gdbarch_init): Update.
6690 * frv-tdep.c (frv_gdbarch_init): Update.
6691 * cris-tdep.c (cris_gdbarch_init): Update.
6692 * avr-tdep.c (avr_gdbarch_init): Update.
6693 * alpha-tdep.c (alpha_gdbarch_init): Update.
6694 * arm-tdep.c (arm_gdbarch_init): Update.
6695
6696 2003-06-13 Andrew Cagney <cagney@redhat.com>
6697
6698 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6699 mips_o32_use_struct_convention with always_use_struct_convention.
6700
6701 2003-06-12 David Carlton <carlton@kealia.com>
6702
6703 * cp-namespace.c (cp_set_block_scope): Comment out
6704 processing_has_namespace_info branch.
6705
6706 2003-06-12 Jim Blandy <jimb@redhat.com>
6707
6708 Recognize and skip 64-bit PowerPC Linux linkage functions.
6709 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6710 insn_pattern, insns_match_pattern, d_field, ds_field): New
6711 functions, macros, and types for working with PPC instructions.
6712 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6713 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6714 ppc64_skip_trampoline_code): New functions, variables, and macros
6715 for recognizing and skipping linkage functions.
6716 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6717 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6718
6719 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6720 register offsets for both the 32- and 64-bit interfaces.
6721
6722 Actually finish the job started by my change of 2003-05-29.
6723 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6724 other #definition of this.
6725 (ppc_linux_skip_trampoline_code): Remove declaration.
6726 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6727 static.
6728 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6729 method for GDBARCH.
6730
6731 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6732 'long' on ppc64-*-linux*.
6733
6734 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6735 isn't #defined, assume the register doesn't exist: act as if
6736 tdep->ppc_mq_regnum were -1.
6737
6738 * configure.host, configure.tgt: Add entries for
6739 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6740 powerpc/linux.mt.
6741 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6742 New files.
6743
6744 * arch-utils.c (always_use_struct_convention): New function.
6745 * arch-utils.h (always_use_struct_convention): New prototype.
6746 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6747 (alpha_gdbarch_init): Register always_use_struct_convention,
6748 instead of alpha_use_struct_convention.
6749 * cris-tdep.c (cris_use_struct_convention): Delete.
6750 (cris_gdbarch_init): Register always_use_struct_convention,
6751 instead of cris_use_struct_convention.
6752 * frv-tdep.c (frv_use_struct_convention): Delete.
6753 (frv_gdbarch_init): Register always_use_struct_convention,
6754 instead of frv_use_struct_convention.
6755 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6756 (h8300_gdbarch_init): Register always_use_struct_convention,
6757 instead of h8300_use_struct_convention.
6758 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6759 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6760 instead of mips_o32_use_struct_convention.
6761
6762 2003-06-12 Andrew Cagney <cagney@redhat.com>
6763
6764 * wince.c: Include "mips-tdep.h".
6765 * mips-tdep.h (mips_next_pc): Declare.
6766 * mcore-tdep.c: Make more local functions static.
6767 * Makefile.in (wince.o): Update dependencies.
6768
6769 2003-06-12 David Carlton <carlton@kealia.com>
6770
6771 * symtab.c (lookup_symbol_aux_minsyms): Replace
6772 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6773 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6774 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6775 SYMBOL_NATURAL_NAME.
6776
6777 2003-06-12 Andreas Schwab <schwab@suse.de>
6778
6779 * Makefile.in (tuiDisassem.o): Update dependencies.
6780
6781 2003-06-12 David Carlton <carlton@bactrian.org>
6782
6783 * symtab.h: Delete declaration of make_symbol_overload_list.
6784 Add declaration of lookup_partial_symbol.
6785 * symtab.c (remove_params): Move to cp-support.c.
6786 (overload_list_add_symbol, make_symbol_overload_list)
6787 (sym_return_val_size, sym_return_val_index): Ditto.
6788 (lookup_partial_symbol): Make extern.
6789 * cp-support.h: Add declaration of make_symbol_overload_list.
6790 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6791 symtab.h, and block.h.
6792 (remove_params): Move here from symtab.c.
6793 (overload_list_add_symbol, make_symbol_overload_list)
6794 (sym_return_val_size, sym_return_val_index): Ditto.
6795 * valops.c: Include cp-support.h.
6796 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6797 frame_h, and block_h.
6798 (valops.o): Depend on cp_support_h.
6799
6800 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
6801
6802 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6803 substitute by NUM_REGS throughout.
6804 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6805 (h8300s_register_name): New function for H8S registers.
6806 (h8300sx_register_name): Ditto for H8SX registers.
6807 (h8300_print_register): Revise register printing, avoid depending
6808 on 32 bit long.
6809 (h8300_register_byte): Only care for H8/300 registers.
6810 (h8300h_register_byte): New function for any other architecture.
6811 (h8300_register_raw_size): Remove.
6812 (h8300_register_virtual_type): Revise to return actually useful
6813 type.
6814 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6815 (h8300h_extract_struct_value_address): New function for any other
6816 architecture.
6817 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6818 set_gdbarch_register_name, set_gdbarch_register_byte,
6819 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6820 Remove calls to set_gdbarch_deprecated_register_size,
6821 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6822 set_gdbarch_deprecated_max_register_raw_size,
6823 set_gdbarch_register_virtual_size and
6824 set_gdbarch_deprecated_max_register_virtual_size entirely.
6825 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6826 set_gdbarch_long_double_bit.
6827
6828 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6829
6830 * doublest.c (convert_doublest_to_floatformat): When dealing
6831 with the implied integer bit, only alter mant_bits if we are
6832 processing a full 32 bits of mantissa.
6833
6834 2003-06-11 David Carlton <carlton@bactrian.org>
6835
6836 * dictionary.h: New.
6837 * dictionary.c: New.
6838 * block.h: Add opaque declaration for struct dictionary.
6839 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6840 'sym' members.
6841 (BLOCK_DICT): New macro.
6842 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6843 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6844 BLOCK_SHOULD_SORT.
6845 (ALL_BLOCK_SYMBOLS): Update definition.
6846 * Makefile.in (SFILES): Add dictionary.c.
6847 (dictionary_h): New.
6848 (COMMON_OBS): Add dictionary.o.
6849 (dictionary.o): New.
6850 (ada-lang.o): Depend on dictionary_h.
6851 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6852 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6853 (mi-cmd-stack.o): Ditto.
6854 (gdbtk-cmds.o): Update dependencies.
6855 (gdbtk-stack.o): Ditto.
6856 * ada-lang.c: Include dictionary.h.
6857 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6858 (fill_in_ada_prototype, debug_print_block): Ditto.
6859 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6860 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6861 'is_sorted'.
6862 * mdebugread.c: Include dictionary.h.
6863 (struct parse_stack): Delete 'maxsyms' member.
6864 (parse_symbol): Update calls to new_block. Delete calls to
6865 shrink_block. Use dictionary methods.
6866 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6867 Update calls to new_symtab. Don't maintain maxsyms data.
6868 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6869 (add_symbol): Just call dict_add_symbol.
6870 (new_symtab): Delete 'maxsyms' argument.
6871 (new_symtab): Update calls to new_block.
6872 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6873 (shrink_block): Delete function.
6874 (fixup_sigtramp): Update call to new_block. Add symbol via
6875 dict_add_symbol.
6876 * jv-lang.c: Include dictionary.h.
6877 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6878 appropriately. Set class_symtab->free_func. Make sure the
6879 blockvector is big enough to hold two blocks.
6880 (add_class_symtab_symbol): Use dictionary methods.
6881 (free_class_block): New function.
6882 (type_from_class): Replace explicit iteration by
6883 ALL_BLOCK_SYMBOLS.
6884 * symtab.h (struct symtab): Replace 'free_ptr' method by
6885 'free_func'.
6886 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6887 sort_symtab_syms.
6888 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6889 sort_symtab_syms.
6890 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6891 Include dictionary.h.
6892 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6893 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6894 sort_symtab_syms.
6895 * objfiles.c: Include dictionary.h.
6896 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6897 * buildsym.c: Include dictionary.h.
6898 (finish_block): Use dictionary methods.
6899 (end_symtab): Set free_func to NULL, not free_ptr.
6900 * tracepoint.c: Include dictionary.h.
6901 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6902 (scope_info): Ditto.
6903 * stack.c: Include dictionary.h.
6904 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6905 (print_block_frame_labels, print_frame_arg_vars)
6906 (print_frame_args): Ditto.
6907 * symmisc.c (free_symtab_block): Use dictionary methods.
6908 (dump_symtab): Ditto.
6909 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6910 Include dictionary.h.
6911 * symfile.h: Delete declarations of sort_block_syms,
6912 sort_symtab_syms.
6913 * symfile.c (sort_block_syms): Delete.
6914 (sort_symtab_syms): Delete.
6915 * symtab.c: Include dictionary.h.
6916 (lookup_block_symbol): Use dictionary iterators.
6917 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6918 (search_symbols, make_symbol_completion_list): Ditto.
6919 (make_symbol_overload_list): Ditto.
6920 * valops.c (value_of_local): Use dict_empty.
6921 Include dictionary.h.
6922
6923 2003-06-11 J. Brobecker <brobecker@gnat.com>
6924
6925 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6926
6927 2003-06-11 David Carlton <carlton@bactrian.org>
6928
6929 * block.h (BLOCK_SHOULD_SORT): Delete.
6930 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6931 blocks.
6932 * ada-lang.c (ada_add_block_symbols): Ditto.
6933 * symfile.c (sort_block_syms): Delete.
6934 (sort_symtab_syms): Ditto.
6935 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6936 declarations.
6937 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6938 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6939 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6940 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6941 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6942 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6943 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6944
6945 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6946
6947 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6948 bits to 128.
6949
6950 2003-06-11 Andrew Cagney <cagney@redhat.com>
6951
6952 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6953 REGISTER_CONVERTIBLE.
6954 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6955 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6956 * gdbarch.h, gdbarch.c: Re-generate.
6957 * arch-utils.h (deprecated_register_convertible_not): Rename
6958 generic_register_convertible_not.
6959 * arch-utils.c (deprecated_register_convertible_not): Rename
6960 generic_register_convertible.
6961 (legacy_convert_register_p, legacy_register_to_value): Update.
6962 * sh-tdep.c (sh64_push_arguments): Update.
6963 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6964 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6965 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6966 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6967 * arch-utils.c (legacy_value_to_register): Update.
6968 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6969 (rs6000_register_convert_to_raw): Make parameter "from" const.
6970 * mips-tdep.c (mips_gdbarch_init): Update.
6971 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6972 * infcmd.c (default_print_registers_info): Update.
6973 * ia64-tdep.c (ia64_gdbarch_init): Update.
6974 (ia64_register_convert_to_raw): Make parameter "from" const.
6975 * i386-tdep.c (i386_gdbarch_init): Update.
6976 (i386_register_convert_to_raw): Update.
6977
6978 2003-06-11 Andrew Cagney <cagney@redhat.com>
6979
6980 * remote-fileio.c: Include "remote-fileio.h".
6981 * Makefile.in (remote-fileio.o): Update dependencies.
6982 (remote_fileio_h): Fix typo.
6983
6984 2003-06-11 Andrew Cagney <cagney@redhat.com>
6985
6986 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6987 (xstormy16_save_dummy_frame_tos): Make static.
6988 (_initialize_xstormy16_tdep): Add declaration.
6989 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6990 * v850-tdep.c: Make local functions static.
6991 (_initialize_v850_tdep): Add declaration.
6992 * sparc-tdep.c: Make local functions static.
6993 (_initialize_sparc_tdep): Add declaration.
6994 * sh-tdep.c: Make local functions static.
6995 (_initialize_sh_tdep): Add declaration.
6996 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6997 * s390-tdep.c: Make local functions static.
6998 (_initialize_s390_tdep): Add declaration.
6999 * dbxread.c (find_stab_function_addr): Make static.
7000 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7001 * ocd.c (_initialize_remote_ocd): Add declaration.
7002 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7003 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7004 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7005 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7006 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7007 * remote-array.c (_initialize_array): Add declaration.
7008 (_initialize_remote_monitors): Add declaration.
7009 * remote-mips.c: Make local functions static.
7010 (_initialize_remote_mips): Add declaration.
7011 * mcore-tdep.c: Make all local functions static.
7012 (_initialize_mcore_tdep): Add declaration.
7013 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7014 * abug-rom.c (_initialize_abug_rom): Add declaration.
7015 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7016 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7017 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7018 * remote-est.c (_initialize_est): Add declaration.
7019 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7020 (m68hc11_call_dummy_address): Make static.
7021 * ia64-tdep.c: Make local functions static.
7022 (_initialize_ia64_tdep): Add declaration.
7023 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7024 * monitor.c (monitor_wait_filter): Make static.
7025 (_initialize_remote_monitors): Add declaration.
7026 * remote-hms.c (_initialize_remote_hms): Add declaration.
7027 * remote-e7000.c (fetch_regs_from_dump): Make static.
7028 (expect_n): Make static.
7029 (_initialize_remote_e7000): Add declaration.
7030 * ser-e7kpc.c: Always include "defs.h".
7031 (_initialize_ser_e7000pc): Add declaration.
7032 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7033 * cris-tdep.c: Make all but one function static.
7034 (_initialize_cris_tdep): Add declaration.
7035 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7036 * solib.c (update_solib_list): Make static.
7037 (_initialize_solib): Add declaration.
7038 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7039 (_initialize_avr_tdep): Add declaration.
7040 * remote-rdi.c (voiddummy): Make static.
7041 (_initialize_remote_rdi): Add declaration.
7042 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7043 * remote-rdp.c (send_rdp): Make static.
7044 (_initialize_remote_rdp): Add declaration.
7045 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7046
7047 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
7048
7049 * remote-fileio.c: Make ari happy.
7050
7051 2003-06-10 J. Brobecker <brobecker@gnat.com>
7052
7053 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7054 fetching the trailing bytes of the buffer we are about to write.
7055
7056 2003-06-10 Andrew Cagney <cagney@redhat.com>
7057
7058 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7059 * Makefile.in (remote-fileio.o): Update dependencies.
7060 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7061 include <setjmp.h>, or <sys/types.h> conditional on USG.
7062 (remote_fio_jmp_buf): Delete global variable.
7063
7064 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
7065 Martin M. Hunt <hunt@redhat.com>
7066
7067 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7068 (SFILES): Add remote-fileio.c.
7069 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7070 dependencies for building remote.o.
7071 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7072 * remote-fileio.h: New header file defining remote File-I/O interface.
7073 * remote.c (remote_write_bytes, remote_read_bytes): Remove
7074 static storage class.
7075 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7076 'F' packet.
7077 (_initialize_remote): Call initialize_remote_fileio().
7078 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7079 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7080 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7081 (captured_main): Initialize new ui_files.
7082 * ui-file.c: Add read and fgets input functions.
7083 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7084 (null_file_read): New function.
7085 (ui_file_read): New function.
7086 (set_ui_file_read): New function.
7087 (stdio_file_read): New function.
7088 * ui-file.h: New type ui_file_read_ftype.
7089 (set_ui_file_read): Declare.
7090 (ui_file_read): Declare.
7091
7092 2003-06-09 Andrew Cagney <cagney@redhat.com>
7093
7094 * frame.h (deprecated_unwind_get_saved_register): Rename
7095 generic_unwind_get_saved_register, update comments.
7096 * mips-tdep.c (mips_get_saved_register): Update.
7097 * frame.c (deprecated_unwind_get_saved_register): Update.
7098
7099 2003-06-09 Andrew Cagney <cagney@redhat.com>
7100
7101 * vax-tdep.c (vax_frame_locals_address): Delete function.
7102 (vax_gdbarch_init): Do not set frame_locals_address.
7103 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7104 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7105 * s390-tdep.c (s390_frame_args_address): Delete function.
7106 (s390_gdbarch_init): Do not set frame_args_address or
7107 frame_locals_address.
7108 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7109 (ns32k_gdbarch_init): Do not set frame_locals_address.
7110 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7111 (hppa_frame_locals_address): Delete function.
7112 (hppa_gdbarch_init): Do not set frame_args_address, or
7113 frame_locals_address.
7114 * arm-tdep.c (arm_frame_args_address): Delete.
7115 (arm_frame_locals_address): Delete.
7116 (arm_gdbarch_init): Do not set frame_args_address, or
7117 frame_locals_address.
7118
7119 2003-06-09 Andrew Cagney <cagney@redhat.com>
7120
7121 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7122 * gdbarch.h, gdbarch.c: Re-generate.
7123 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7124 * arch-utils.c (frame_num_args_unknown): Delete function.
7125 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7126 (frame_info): Use FRAME_NUM_ARGS_P.
7127 * arm-tdep.c (arm_frame_num_args): Delete function.
7128 (arm_gdbarch_init): Do not set frame_num_args.
7129 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7130 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7131 (hppa_gdbarch_init): Do not set frame_num_args.
7132 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7134 frame_num_args to default frame_num_args_unknown.
7135 * v850-tdep.c (v850_gdbarch_init): Ditto.
7136 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7137 * sh-tdep.c (sh_gdbarch_init): Ditto.
7138 * s390-tdep.c (s390_gdbarch_init): Ditto.
7139 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7140 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7141 * mips-tdep.c (mips_gdbarch_init): Ditto.
7142 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7143 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7145 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7146 * i386-tdep.c (i386_gdbarch_init): Ditto.
7147 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7148 * frv-tdep.c (frv_gdbarch_init): Ditto.
7149 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7150 * cris-tdep.c (cris_gdbarch_init): Ditto.
7151 * avr-tdep.c (avr_gdbarch_init): Ditto.
7152 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7153
7154 2003-06-09 Andrew Cagney <cagney@redhat.com>
7155
7156 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7157 (print_frame_args): Moved to "stack.c".
7158 * stack.c: Include "gdb_assert.h".
7159 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7160 (print_frame_args): Moved from "printcmd.c".
7161 * frame.h (print_frame_args): Delete declaration.
7162 * Makefile.in (stack.o): Update dependencies.
7163
7164 2003-06-08 Andrew Cagney <cagney@redhat.com>
7165
7166 * frame.c (get_prev_frame): Remove reference to
7167 frame_args_address_correct in comments.
7168 * frame-base.c (default_frame_args_address): Delete code
7169 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7170 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7171 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7172 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7173 (vax_frame_args_address_correct): Delete declaration.
7174
7175 2003-06-08 Andrew Cagney <cagney@redhat.com>
7176
7177 * gdbarch.sh (UNWIND_SP): Add.
7178 * gdbarch.h, gdbarch.c: Re-generate.
7179 * frame.c (frame_sp_unwind): New function.
7180 (get_frame_sp): New function.
7181 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7182 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7183 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7184 value.
7185 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7186 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7187
7188 2003-06-08 Andrew Cagney <cagney@redhat.com>
7189
7190 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7191 REMOTE_BREAKPOINT.
7192 * remote.c: Update.
7193 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7194 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7195 * config/m68k/tm-sun3.h: Update.
7196 * config/m68k/tm-m68klynx.h: Update.
7197 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7198
7199 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7200 trad_frame". Update comments.
7201 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7202 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7203 (trad_frame_register_value, trad_frame_prev_register): Update.
7204
7205 2003-06-08 Andrew Cagney <cagney@redhat.com>
7206
7207 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7208 from GCC's acinclude.m4.
7209 * configure.in: Check for getopt's delcaration.
7210 * aclocal.m4, config.in, configure: Re-generate.
7211 * main.c (error_init): Delete declaration.
7212 * defs.h (error_init): Declare.
7213 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7214 (rs6000_convert_from_func_ptr_addr): Make static.
7215 (_initialize_rs6000_tdep): Add declaration.
7216 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7217 (show_commands, set_verbose, show_history): Delete declaration.
7218 * top.h (set_verbose): Add declaration.
7219 (show_history, set_history, show_commands): Add declaration.
7220 (do_restore_instream_cleanup): Add declaration.
7221 * objc-lang.c (specialcmp): Make static.
7222 (print_object_command): Make static.
7223 (find_objc_msgsend): Make static.
7224 (find_objc_msgcall_submethod_helper): Make static.
7225 (find_objc_msgcall_submethod): Make static.
7226 (_initialize_objc_language): Add declaration.
7227 (find_implementation_from_class): Make static.
7228 (find_implementation): Make static.
7229 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7230 * objc-lang.h (lookup_struct_typedef): Add declaration.
7231 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7232 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7233 (do_restore_user_call_depth): Make static.
7234 (do_restore_instream_cleanup): Delete declaration.
7235 (dont_repeat): Delete declaration.
7236 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7237 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7238 * reggroups.c (_initialize_reggroup): Add declaration.
7239 * cp-support.c (_initialize_cp_support): Add declaration.
7240 * cp-abi.c (_initialize_cp_abi): Add declaration.
7241 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7242 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7243 (_initialize_gnu_v3_abi): Add declaration.
7244 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7245 (_initialize_gnu_v2_abi): Add declaration.
7246 * frame-base.c (_initialize_frame_base): Add declaration.
7247 * doublest.c (floatformat_from_length): Make static.
7248 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7249 * frame.c (create_sentinel_frame): Make static.
7250 (_initialize_frame): Add declaration.
7251 * top.c (do_catch_errors): Make static.
7252 (gdb_rl_operate_and_get_next_completion): Make static.
7253 * typeprint.c: Include "typeprint.h".
7254 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7255 (sentinel_frame_this_id): Make static.
7256 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7257 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7258 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7259 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7260 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7261 * maint.c (maintenance_print_architecture): Make static.
7262 * signals/signals.c (_initialize_signals): Add declaration.
7263 * std-regs.c (_initialize_frame_reg): Add declaration.
7264 * jv-exp.y (push_variable): ISO C definition.
7265 (push_qualified_expression_name): Ditto.
7266 * memattr.c (_initialize_mem): Add declaration.
7267 * remote.c (remote_check_watch_resources): Make static.
7268 (remote_stopped_by_watchpoint): Make static.
7269 (remote_stopped_data_address): Make static.
7270 * d10v-tdep.c (nr_dmap_regs): Make static.
7271 (a0_regnum): Make static.
7272 (d10v_frame_unwind_cache): Make static.
7273 (d10v_frame_p): Make static.
7274 * osabi.c (show_osabi): Make static.
7275 (_initialize_gdb_osabi): Add extern declaration.
7276 * gdbtypes.c (make_qualified_type): Make static.
7277 (safe_parse_type): Make static.
7278 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7279 * macrotab.c (macro_bcache_free): Make static.
7280 * interps.c (interp_set_quiet): Make static.
7281 (interpreter_exec_cmd): Make static.
7282 * stack.h (select_frame_command): New file.
7283 * stack.c: Include "stack.h".
7284 (select_frame_command_wrapper): Delete function.
7285 (select_frame_command): Make global.
7286 * infcall.c: Include "infcall.h".
7287 * linespec.c: Include "linespec.h".
7288 * symfile.c (sections_overlap): Make static.
7289 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7290 * charset.c (_initialize_charset): Add missing prototype.
7291 * regcache.c (init_legacy_regcache_descr): Make static.
7292 (do_regcache_xfree): Make static.
7293 (regcache_xfer_part): Make static.
7294 (_initialize_regcache): Add missing prototype.
7295 * breakpoint.c (parse_breakpoint_sals): Make static.
7296 (breakpoint_sals_to_pc): Make static.
7297 * interps.h (clear_interpreter_hooks): ISO C declaration.
7298 * Makefile.in (stack_h): Define.
7299 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7300 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7301
7302 2003-06-08 Andrew Cagney <cagney@redhat.com>
7303
7304 * Makefile.in (d10v-tdep.o): Update dependencies.
7305 (SFILES): Add trad-frame.c.
7306 (trad_frame_h): Define.
7307 (COMMON_OBS): Add trad-frame.o.
7308 (trad-frame.o): Specify dependencies.
7309 * d10v-tdep.c: Include "trad-frame.h".
7310 (saved_regs_unwinder): Delete function.
7311 (d10v_frame_prev_register): Use trad_frame_prev_register.
7312 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7313 trad_frame", delete "regs" and "prev_sp".
7314 (prologue_find_regs): Use trad-frame.
7315 * trad-frame.h, trad-frame.c: New files.
7316
7317 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7318
7319 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7320
7321 2003-06-07 Adam Fedor <fedor@gnu.org>
7322
7323 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7324 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7325 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7326 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7327 resolve_msgsend_super, resolve_msgsend_super_stret):
7328 Use it.
7329
7330 2003-06-07 Andrew Cagney <cagney@redhat.com>
7331
7332 * symfile.h: Re-indent, clean up comments.
7333
7334 2003-06-07 Andrew Cagney <cagney@redhat.com>
7335
7336 * inferior.h (deprecated_write_sp): Replace
7337 generic_target_write_sp.
7338 * regcache.c (deprecated_write_sp): Replace
7339 generic_target_write_sp.
7340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7341 * vax-tdep.c (vax_gdbarch_init): Update.
7342 * v850-tdep.c (v850_gdbarch_init): Update.
7343 * sparc-tdep.c (sparc_gdbarch_init): Update.
7344 * sh-tdep.c (sh_gdbarch_init): Update.
7345 * s390-tdep.c (s390_gdbarch_init): Update.
7346 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7347 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7349 * mcore-tdep.c (mcore_gdbarch_init): Update.
7350 * m68k-tdep.c (m68k_gdbarch_init): Update.
7351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7352 * ia64-tdep.c (ia64_gdbarch_init): Update.
7353 * h8300-tdep.c (h8300_gdbarch_init): Update.
7354 * frv-tdep.c (frv_gdbarch_init): Update.
7355 * cris-tdep.c (cris_gdbarch_init): Update.
7356 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7357
7358 2003-06-07 Andrew Cagney <cagney@redhat.com>
7359
7360 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7361 Assert that PC_REGNUM is valid.
7362 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7363
7364 2003-06-07 Andrew Cagney <cagney@redhat.com>
7365
7366 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7367 * gdbarch.h, gdbarch.c: Regenerate.
7368 * mn10300-tdep.c: Include "gdb_assert.h".
7369 (mn10300_read_fp): New function.
7370 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7371 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7372 * ia64-tdep.c: Include "gdb_assert.h".
7373 (ia64_read_fp): New function.
7374 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7375 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7376 * regcache.c (generic_target_read_sp): Delete function.
7377 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7378 * inferior.h (generic_target_read_sp): Delete declaration.
7379 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7380 generic_target_read_sp.
7381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7382 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7383 * sh-tdep.c (sh_gdbarch_init): Ditto.
7384 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7385 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7386
7387 2003-06-07 Andrew Cagney <cagney@redhat.com>
7388
7389 * gdbarch.sh: Comment each field of startup_gdbarch.
7390 * gdbarch.h, gdbarch.c: Re-generate.
7391
7392 2003-06-07 Andrew Cagney <cagney@redhat.com>
7393
7394 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7395 * gdbarch.h, gdbarch.c: Re-generate.
7396 * regcache.c: Update comments on read_pc et.al.
7397 (generic_target_read_pc): Delete function.
7398 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7399 * inferior.h (generic_target_read_pc): Delete declaration.
7400 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7401 generic_target_read_pc.
7402 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7403 * sh-tdep.c (sh_gdbarch_init): Ditto.
7404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7406
7407 2003-06-07 Andrew Cagney <cagney@redhat.com>
7408
7409 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7410 "index" with "special_local_sect". Use strcmp instead of STREQ.
7411 Append period to coments.
7412
7413 2003-06-06 Mark Mitchell <mark@codesourcery.com>
7414
7415 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7416 (elfstab_offset_sections): Likewise.
7417 * gdb-stabs.h (stab_section_info): Likewise.
7418 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7419 * objfiles.c (objfile_relocate): Likewise.
7420 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7421 * remote.c (get_offsets): Likewise.
7422 (remote_cisco_objfile_relocate): Likewise.
7423 * somread.c (som_symfile_offsets): Likewise.
7424 * symfile.c (alloc_section_addr_info): New function.
7425 (build_section_addr_info_from_section_tab): Use it.
7426 (free_section_addr_info): Adjust.
7427 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7428 (syms_from_objfile): Allocate local_addr dynamically.
7429 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7430 dynamically.
7431 (add_symbol_file_command): Allocate sect_opts dynamically.
7432 (reread_symbols): Avoid use of SECT_OFF_MAX.
7433 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7434 (alloc_section_addr_info): Declare it.
7435 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7436 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7437 dynamically.
7438 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7439
7440 2003-06-06 Andrew Cagney <cagney@redhat.com>
7441
7442 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7443 (d10v_frame_unwind_cache): Do not set "return_pc".
7444
7445 2003-06-06 Michael Snyder <msnyder@redhat.com>
7446
7447 * h8300-tdep.c: Make tidy (long lines).
7448
7449 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7450
7451 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7452 to regcache_collect().
7453
7454 2003-06-05 J. Brobecker <brobecker@gnat.com>
7455
7456 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7457 pc_in_sigtramp multiarch method.
7458 (hppa_hpux_som_init_abi): Use it.
7459 (hppa_hpux_elf_init_abi): Likewise.
7460 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7461 macro has been multiarched.
7462 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7463 macro here, as hppa64 isn't multiarched yet.
7464
7465 2003-06-05 Andrew Cagney <cagney@redhat.com>
7466
7467 * Makefile.in (value_h): Add $(frame_h).
7468 * value.h: Include "frame.h".
7469 (struct value): Replace "frame_addr" with "frame_id".
7470 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7471 * values.c (allocate_value): Use VALUE_FRAME_ID.
7472 (value_copy): Use VALUE_FRAME_ID.
7473 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7474 * valops.c (value_assign): Update. Use frame_find_by_id.
7475
7476 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7477
7478 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7479 in each pass.
7480
7481 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7482
7483 * thread-db.c (check_event): For create/death event breakpoints,
7484 loop through all messages to ensure that we read the message
7485 corresponding to the breakpoint we are at.
7486
7487 2003-06-04 Michael Snyder <msnyder@redhat.com>
7488
7489 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7490
7491 2003-06-04 Mark Kettenis <kettenis@gnu.org>
7492
7493 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7494 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7495 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7496 when handling .eh_frame sections.
7497
7498 2003-06-04 J. Brobecker <brobecker@gnat.com>
7499
7500 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7501 prepare_to_proceed procedure instead of the hppa-specific one.
7502 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7503
7504 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
7505
7506 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7507 * config.in: Regenerated.
7508 * configure.in: Add test for syscall function and check for
7509 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7510 * configure: Regenerated.
7511 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7512 <sys/syscall.h>.
7513 (kill_lwp): New function that uses tkill syscall or
7514 uses kill, depending on whether threading model is nptl or not.
7515 All callers of kill() changed to use kill_lwp().
7516 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7517 see if all threads have already exited in the nptl model.
7518 (stop_and_resume_callback): New callback function used by the
7519 lin_lwp_wait thread exit handling code.
7520 (stop_wait_callback): Check for threads already having exited and
7521 delete such threads fromt the lwp list when discovered.
7522 (stop_callback): Don't assert retcode of kill call.
7523
7524 Roland McGrath <roland@redhat.com>
7525 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7526 nptl libthread_db.
7527
7528 2003-06-03 Richard Henderson <rth@redhat.com>
7529
7530 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7531 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7532 (alpha_sigtramp_frame_prev_register): Likewise.
7533 (alpha_heuristic_frame_prev_register): Likewise.
7534 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7535
7536 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7537 alpha-specific register id names.
7538 (alpha_mdebug_frame_unwind_cache): Likewise.
7539 (alpha_mdebug_frame_prev_register): Likewise.
7540
7541 2003-06-03 Richard Henderson <rth@redhat.com>
7542
7543 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7544 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7545 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7546 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7547 unwind routines.
7548 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7549 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7550 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7551
7552 * alpha-linux-tdep.c: Remove unnecessary includes.
7553 * Makefile.in (alpha-linux-tdep.o): Update.
7554
7555 2003-06-03 Richard Henderson <rth@redhat.com>
7556
7557 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7558 (alphabsd_fill_fpreg): Likewise.
7559
7560 2003-06-03 J. Brobecker <brobecker@gnat.com>
7561
7562 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7563 references to struct frame_info fields by calls to the equivalent
7564 accessors. Necessary now that frame_info is opaque.
7565
7566 2003-06-03 J. Brobecker <brobecker@gnat.com>
7567
7568 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7569 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7570 structure, field no longer exists.
7571
7572 2003-06-03 J. Brobecker <brobecker@gnat.com>
7573
7574 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7575 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7576
7577 2003-06-03 J. Brobecker <brobecker@gnat.com>
7578
7579 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7580 references to struct frame_info fields by calls to the equivalent
7581 accessors. Necessary now that frame_info is opaque.
7582
7583 2003-06-03 J. Brobecker <brobecker@gnat.com>
7584
7585 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7586 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7587 structure, field no longer exists.
7588
7589 2003-06-03 Theodore A. Roth <troth@openavr.org>
7590
7591 * remote.c (init_remote_state): Compute sizeof_g_packet by
7592 accumulation of the size of all registers instead of blindly using
7593 DEPRECATED_REGISTER_BYTES.
7594
7595 2003-06-03 Michael Snyder <msnyder@redhat.com>
7596
7597 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7598 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7599 for h8300sx.
7600
7601 2003-06-03 J. Brobecker <brobecker@gnat.com>
7602
7603 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7604 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7605
7606 2003-06-03 Andrew Cagney <cagney@redhat.com>
7607
7608 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7609 (sparc_convert_to_raw): Delete function.
7610 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7611 register_convert_to_virtual.
7612
7613 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7614
7615 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7616 layer if not dealing with a statically-linked threaded program.
7617
7618 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7619
7620 * solib.c (solib_open): Update comment to reflect actual search order.
7621
7622 2003-06-03 Andrew Cagney <cagney@redhat.com>
7623
7624 * frame.c (get_frame_memory_signed): New function.
7625 (get_frame_memory, get_frame_memory_unsigned): New function.
7626 (get_frame_arch): New function.
7627 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7628 (get_frame_memory, get_frame_unsigned_memory): Declare.
7629 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7630 get_frame_memory_unsigned and get_frame_arch.
7631 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7632
7633 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7634
7635 * MAINTAINERS (write after approval): Add myself.
7636
7637 2003-06-03 Jim Blandy <jimb@redhat.com>
7638
7639 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7640 elements of gregset_t are 64 bits each, but access registers
7641 are still 32 bits, so they're packed two per gregset_t
7642 element. Unpack/pack them properly.
7643
7644 2003-06-02 David Carlton <carlton@bactrian.org>
7645
7646 * linespec.c (find_methods): Break out code into
7647 add_matching_methods and add_constructors.
7648 (add_matching_methods): New.
7649 (add_constructors): Ditto.
7650
7651 2003-06-02 Andrew Cagney <cagney@redhat.com>
7652
7653 * sparc-tdep.c (sparc_print_registers): Delete call to
7654 REGISTER_CONVERTIBLE.
7655 (sparc_gdbarch_init): Do not set register_convertible.
7656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7657 * frv-tdep.c (frv_gdbarch_init): Ditto.
7658 * cris-tdep.c (cris_gdbarch_init): Ditto.
7659
7660 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7661
7662 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7663 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7664 (syms_from_objfile): Ditto.
7665
7666 2003-06-03 Andreas Schwab <schwab@suse.de>
7667
7668 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7669 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7670
7671 2003-06-02 Richard Henderson <rth@redhat.com>
7672
7673 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7674 a member of all_reggroup.
7675
7676 2003-06-02 Richard Henderson <rth@redhat.com>
7677
7678 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7679 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7680 (alpha_lds, alpha_sts): New.
7681 (alpha_convert_register_p): Change from _register_convertible.
7682 (alpha_register_to_value): Change from _convert_to_virtual;
7683 restructure and fail for type sizes other than 4 or 8.
7684 (alpha_value_to_register): Similarly.
7685 (alpha_extract_return_value): Use alpha_sts.
7686 (alpha_store_return_value): Use alpha_lds.
7687 (alpha_gdbarch_init): Update hooks.
7688
7689 2003-06-02 Richard Henderson <rth@redhat.com>
7690
7691 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7692 regnum identifiers.
7693 (alpha_sigtramp_register_address): Likewise.
7694
7695 2003-06-02 Richard Henderson <rth@redhat.com>
7696
7697 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7698 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7699 * alpha-tdep.h: Declare them.
7700
7701 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7702 Remove zerobuf. Don't error on UNIQUE.
7703 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7704 (ALPHA_REGSET_UNIQUE): Provide default.
7705 (supply_gregset): Use alpha_supply_int_regs.
7706 (fill_gregset): Use alpha_fill_int_regs.
7707 (supply_fpregset): Use alpha_supply_fp_regs.
7708 (fill_fpregset): Use alpha_fill_fp_regs.
7709 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7710 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7711 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7712 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7713 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7714 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7715
7716 2003-06-02 Richard Henderson <rth@redhat.com>
7717
7718 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7719
7720 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7721 (alpha_store_return_value): Likewise.
7722
7723 2003-06-02 David Carlton <carlton@math.stanford.edu>
7724
7725 * block.c (contained_in): Add 'const' to arguments.
7726 (block_function): Ditto.
7727 * block.h: Update declarations for block_function and
7728 contained_in.
7729
7730 2003-06-02 David Carlton <carlton@math.stanford.edu>
7731
7732 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7733 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7734 * p-valprint.c (pascal_val_print): Ditto.
7735 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7736
7737 2003-06-02 Richard Henderson <rth@redhat.com>
7738
7739 * alpha-tdep.c (alpha_push_dummy_call): Use
7740 builtin_type_ieee_double_little instead of builtin_type_double.
7741
7742 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7743 sign-extension of 32-bit values.
7744 (alpha_store_return_value): Similarly.
7745
7746 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7747 (alpha_extract_return_value): Likewise.
7748 (alpha_store_return_value): Likewise.
7749
7750 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7751 (alpha_store_return_value): Error on IEEE Quad floats.
7752
7753 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7754 (alpha_extract_struct_value_address): Likewise.
7755 (alpha_store_return_value): Likewise.
7756 (alpha_store_struct_return): Remove.
7757 (alpha_gdbarch_init): Update hook registration to match.
7758
7759 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7760 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7761 macros where appropriate.
7762 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7763 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7764
7765 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7766 for SP, GP; void_func_ptr for PC; non-language-specific types
7767 for all others.
7768 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7769
7770 2003-06-02 Richard Henderson <rth@redhat.com>
7771
7772 * top.h (lim_at_start): Declare.
7773 * main.c (captured_main): Set it.
7774 * top.c (lim_at_start): Define.
7775 (command_loop): Use it instead of &environ.
7776 * event-top.c (command_handler): Likewise.
7777
7778 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7779
7780 * mipsnbsd-tdep.c: Update copyright years.
7781 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7782
7783 2003-06-01 Richard Henderson <rth@redhat.com>
7784
7785 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7786 (alpha-linux-tdep.o): Update dependencies.
7787 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7788 * alpha-mdebug-tdep.c: Remove unneeded includes.
7789
7790 2003-06-01 Richard Henderson <rth@redhat.com>
7791
7792 * alpha-tdep.c (alpha_register_reggroup_p): New.
7793 (alpha_gdbarch_init): Register it.
7794
7795 2003-06-02 Andrew Cagney <cagney@redhat.com>
7796
7797 * dwarfread.c: Eliminate "register"
7798 (decode_die_type): Eliminate assignment within "if".
7799 (struct_type, decode_array_element_type): Ditto.
7800 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7801 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7802 (decode_modified_type, completedieinfo): Ditto.
7803 * block.c: Eliminate "register".
7804 (blockvector_for_pc_sect): Eliminate assignment within "if".
7805 * cp-support.h (struct symbol): Opaque declaration.
7806 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7807
7808 2003-06-01 Richard Henderson <rth@redhat.com>
7809
7810 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7811 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7812
7813 2003-06-01 Adam Fedor <fedor@gnu.org>
7814
7815 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7816 * gdbarch.[ch]: Regenerate.
7817 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7818 (hppa_gdbarch_init): Set it in the gdbarch vector.
7819 * i386-tdep.c (i386_fetch_pointer_argument): New
7820 (i386_gdbarch_init): Set it into gdbarch.
7821 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7822 (rs6000_gdbarch_init): Set it in gdbarch.
7823 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7824 (sparc_gdbarch_init): Set it in gdbarch.
7825
7826 2003-06-01 Andrew Cagney <cagney@redhat.com>
7827
7828 * defs.h (extract_address): Delete declaration.
7829 * findvar.c (extract_address): Delete function.
7830 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7831 extract_address with the inline equivalent,
7832 extract_unsigned_integer.
7833 (xstormy16_extract_struct_value_address): Ditto.
7834 (xstormy16_pointer_to_address): Ditto.
7835 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7836 * v850-tdep.c (v850_push_arguments): Ditto.
7837 (v850_extract_return_value): Ditto.
7838 (v850_extract_struct_value_address): Ditto.
7839 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7840 (sparcnbsd_get_longjmp_target_64): Ditto.
7841 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7842 (get_longjmp_target): Ditto.
7843 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7844 (sh64_extract_struct_value_address): Ditto.
7845 (sh_push_arguments): Ditto.
7846 (sh64_push_arguments): Ditto.
7847 * remote-vxsparc.c (vx_read_register): Ditto.
7848 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7849 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7850 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7851 * mipsv4-nat.c (get_longjmp_target): Ditto.
7852 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7853 * mips-nat.c (get_longjmp_target): Ditto.
7854 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7855 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7856 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7857 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7858 * irix5-nat.c (get_longjmp_target): Ditto.
7859 * irix4-nat.c (get_longjmp_target): Ditto.
7860 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7861 (ia64_push_arguments): Ditto.
7862 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7863 * h8300-tdep.c (h8300_push_arguments): Ditto.
7864 (h8300_store_return_value): Ditto.
7865 (h8300_extract_struct_value_address): Ditto.
7866 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7867 (frv_push_arguments): Ditto.
7868 * avr-tdep.c (avr_pointer_to_address): Ditto.
7869 (avr_push_arguments): Ditto.
7870 * arm-tdep.c (arm_push_dummy_call): Ditto.
7871 (arm_get_longjmp_target): Ditto.
7872 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7873 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7874 (alpha_get_longjmp_target): Ditto.
7875
7876 * solib-irix.c (extract_mips_address): Inline extract_address,
7877 replacing it with extract_signed_integer.
7878 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7879 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7880 (first_link_map_member, open_symbol_file_object): Ditto.
7881 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7882 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7883 (LM_NEXT, LM_NAME): Ditto.
7884
7885 2003-06-01 Richard Henderson <rth@redhat.com>
7886
7887 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7888 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7889 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7890 (alpha_cannot_store_register): Likewise.
7891 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7892 * alpha-nat.c (supply_gregset): Likewise.
7893 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7894
7895 2003-06-01 Andrew Cagney <cagney@redhat.com>
7896
7897 * infcall.c (call_function_by_hand): Update comment on
7898 DEPRECATED_DUMMY_WRITE_SP.
7899
7900 * mips-tdep.c (mips_gdbarch_init): Do not set
7901 deprecated_dummy_write_sp.
7902 (mips_eabi_push_dummy_call): Set the SP register.
7903 (mips_o64_push_dummy_call): Set the SP register.
7904 (mips_o32_push_dummy_call): Set the SP register.
7905 (mips_n32n64_push_dummy_call): Set the SP register.
7906
7907 2003-06-01 Richard Henderson <rth@redhat.com>
7908
7909 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7910 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7911 (supply_gregset): Likewise.
7912 * alpha-tdep.c (alpha_store_return_value): Likewise.
7913 (alpha_get_longjmp_target): Likewise.
7914 (alpha_register_name): Constify array.
7915 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7916 deprecated_register_size, deprecated_register_bytes,
7917 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7918 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7919 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7920
7921 2003-06-01 Richard Henderson <rth@redhat.com>
7922
7923 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7924 from arg_reg_buffer to regcache to avoid double conversion.
7925
7926 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7927
7928 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7929 SP_REGNUM.
7930 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7931 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7932
7933 2003-06-01 Richard Henderson <rth@redhat.com>
7934
7935 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7936 (decode_frame_entry): Set it. Skip FDE augmentation.
7937
7938 2003-06-01 Richard Henderson <rth@redhat.com>
7939
7940 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7941 not overlapping PC_REGNUM.
7942
7943 2003-06-01 Richard Henderson <rth@redhat.com>
7944
7945 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7946 alpha_push_arguments. Don't dump argument register data to
7947 the target stack. Fix float and 128-bit long double semantics.
7948 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7949 (alpha_fix_call_dummy): Remove.
7950 (alpha_call_dummy_words): Remove.
7951 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7952
7953 2003-06-01 Richard Henderson <rth@redhat.com>
7954
7955 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7956
7957 2003-06-01 Andrew Cagney <cagney@redhat.com>
7958
7959 * mips-tdep.c (is_mips16_addr): New function.
7960 (make_mips16_addr, unmake_mips16_addr): New functions.
7961 (pc_is_mips16, mips_fetch_instruction): Use.
7962 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7963 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7964 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7965 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7966 TARGET_MIPS.
7967 * config/mips/tm-mips.h: Update copyright.
7968 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7969 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7970 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7971 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7972 (TM_PRINT_INSN_MACH): Delete.
7973 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7974
7975 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7976 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7977 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7978 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7979 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7980 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7981 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7982 mips*-*-riscos* and mips*-*-sysv* onto mips.
7983 * config/mips/mips64.mt: New file.
7984 * config/mips/mips.mt: New file.
7985 * config/mips/littlemips.mt: Delete file.
7986 * config/mips/decstation.mt: Delete file.
7987 * config/mips/vr4300el.mt: Delete file.
7988 * config/mips/vr5000el.mt: Delete file.
7989 * config/mips/vr5000.mt: Delete file.
7990 * config/mips/vr4100.mt: Delete file.
7991 * config/mips/vr4xxxel.mt: Delete file.
7992 * config/mips/vr4300.mt: Delete file.
7993 * config/mips/vr4xxx.mt: Delete file.
7994 * config/mips/bigmips.mt: Delete file.
7995 * config/mips/bigmips64.mt: Delete file.
7996 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7997 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7998 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7999 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8000 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8001 "tm-bigmips.h".
8002 * config/mips/tm-irix3.h: Ditto.
8003 * config/mips/tm-mipsv4.h: Ditto.
8004 * config/mips/tm-embed.h: Ditto.
8005 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8006 "tm-bigmips64.h".
8007 * config/mips/tm-vr5000el.h: Delete file.
8008 * config/mips/tm-tx39l.h: Delete file.
8009 * config/mips/tm-vr4300el.h: Delete file.
8010 * config/mips/tm-vr4xxxel.h: Delete file.
8011 * config/mips/tm-vr4300.h: Delete file.
8012 * config/mips/tm-vr4100.h: Delete file.
8013 * config/mips/tm-vr4xxx.h: Delete file.
8014 * config/mips/tm-vr5000.h: Delete file.
8015 * config/mips/tm-embedl64.h: Delete file.
8016 * config/mips/tm-embedl.h: Delete file.
8017 * config/mips/tm-embed64.h: Delete file.
8018 * config/mips/tm-bigmips64.h: Delete file.
8019 * config/mips/tm-bigmips.h: Delete file.
8020
8021 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8022
8023 Fix gdb/1216.
8024 * shnbsd-nat.c: Include "sh-tdep.h".
8025
8026 From Richard Henderson <rth@redhat.com>:
8027 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8028
8029 2003-05-31 Andrew Cagney <cagney@redhat.com>
8030
8031 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8032 forward declaration.
8033 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8034 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8035 (mips_find_saved_regs): Use set_reg_offset.
8036 (mips_frame_init_saved_regs): Delete function.
8037 (mips_pop_frame): Call mips_find_saved_regs instead of
8038 DEPRECATED_FRAME_INIT_SAVED_REGS.
8039
8040 2003-05-31 Andrew Cagney <cagney@redhat.com>
8041
8042 * mips-tdep.c (mips_gdbarch_init): Do not set
8043 deprecated_max_register_raw_size, register_virtual_size, and
8044 deprecated_max_register_virtual_size.
8045
8046 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8047
8048 * i386-tdep.c: Include "dwarf2-frame.h".
8049 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8050 * Makefile.in (i386-tdep.o): Update dependencies.
8051
8052 * dwarf2-frame.c, dwarf2-frame.h: New files.
8053 * Makefile.in (SFILES): Add dwarf2-frame.c.
8054 (dwarf2_frame_h): Define.
8055 (COMMON_OBS): Add dwarf2-frame.o.
8056 (dwarf2-frame.o): Add dependencies.
8057
8058 2003-05-31 Andreas Jaeger <aj@suse.de>
8059
8060 * x86-64-linux-nat.c: Fix comment.
8061
8062 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8063
8064 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8065 function signature.
8066
8067 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8068 have a sigcontext_addr handler.
8069 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8070 sigcontext_addr handler.
8071
8072 2003-05-31 Andrew Cagney <cagney@redhat.com>
8073
8074 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8075 (print_fp_register_row): Replace do_fp_register_row.
8076 (mips_print_fp_register): Add "file" and "frame" parameters.
8077 (mips_print_register): Add "file" and "frame" parameters.
8078 (mips_print_registers_info): Replace mips_do_registers_info.
8079 (mips_gdbarch_init): Set print_registers_info instead of
8080 deprecated_do_registers_info.
8081 (mips_read_fp_register_single): Add "frame" parameter.
8082 (mips_read_fp_register_double): Add "frame" parameter.
8083
8084 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8085
8086 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8087 Fixes a bug where GDB would print the wrong register names for
8088 targets without SSE.
8089
8090 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8091 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8092 registers.
8093
8094 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8095 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8096 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8097 TDEP->sc_sp_offset.
8098
8099 From Michal Ludvig <mludvig@suse.cz>:
8100 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8101 and `sc_num_regs'.
8102 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8103 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8104 I386_ST0_REGNUM): Move here from...
8105 * i386-tdep.c: ... here.
8106 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8107 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8108 registers if possible.
8109 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8110 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8111 Remove variables.
8112 (i386bsd_sc_reg_offset): New variable.
8113 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8114 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8115 TDEP->sc_sp_offset.
8116 (i386fbsd_sc_reg_offset): New variable.
8117 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8118 TDEP->sc_num_regs.
8119 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8120 variables.
8121 (i386fbsd4_sc_reg_offset): New variable.
8122 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8123 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8124 TDEP->sc_sp_offset.
8125 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8126 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8127 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8128 Remove variables.
8129 (i386nbsd_sc_reg_offset): New variable.
8130 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8131 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8132 TDEP->sc_sp_offset.
8133 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8134 Remove variables.
8135 (i386obsd_sc_reg_offset): New variable.
8136 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8137 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8138 TDEP->sc_sp_offset.
8139 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8140 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8141 for frame pointer offset in `struct sigcontext'.
8142
8143 2003-05-31 Andrew Cagney <cagney@redhat.com>
8144
8145 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8146 architecture methods call_dummy_words, sizeof_call_dummy_words,
8147 push_return_address, store_struct_return, and fix_call_dummy. Set
8148 push_dummy_call instead of deprecated_push_arguments.
8149 (mips_store_struct_return): Delete function.
8150 (mips_fix_call_dummy): Delete function.
8151 (mips_push_return_address): Delete function.
8152 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8153 RA_REGNUM and T9_REGNUM.
8154 (mips_n32n64_push_dummy_call): Ditto for
8155 mips_n32n64_push_arguments.
8156 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8157 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8158
8159 2003-05-31 Andrew Cagney <cagney@redhat.com>
8160
8161 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8162 "dummy_addr" to "bp_addr".
8163 * infcall.c (call_function_by_hand): Pass "funaddr" to
8164 gdbarch_push_dummy_call.
8165 * gdbarch.h, gdbarch.c: Re-generate.
8166 * i386-tdep.c (i386_push_dummy_call): Update.
8167 * arm-tdep.c (arm_push_dummy_call): Update.
8168 * d10v-tdep.c (d10v_push_dummy_call): Update.
8169
8170 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8171
8172 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8173 variable declarations.
8174 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8175 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8176 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8177 x86_64_init_frame_pc, x86_64_init_frame_pc,
8178 x86_64_function_has_prologue): Remove prototypes.
8179 (X86_64_NUM_GREGS): New define.
8180 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8181 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8182 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8183 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8184 XMM1_REGNUM): Remove defines.
8185 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8186 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8187 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8188 X86_64_XMM1_REGNUM): New defines.
8189 (struct x86_64_register_info): Renamed from `struct
8190 register_info'. Remove `size' member.
8191 (x86_64_register_info_table): Remove variable.
8192 (x86_64_register_info): New variable.
8193 (X86_64_NUM_REGS): New define.
8194 (X86_64_NUM_GREGS): Remove define.
8195 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8196 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8197 Remove variables.
8198 (x86_54_dwarf2_reg_to_regnum): Remove function.
8199 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8200 (x86_64_dwarf_reg_to_regnum): New function.
8201 (x86_64_register_name): Rewrite.
8202 (x86_64_register_raw_size): Remove function.
8203 (x86_64_register_byte_table): Remove variable.
8204 (x86_64_register_byte): Remove function.
8205 (x86_64_register_virtual_type): Remove function.
8206 (x86_64_register_type): New function.
8207 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8208 x86_64_register_convert_to_raw): Remove functions.
8209 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8210 (x86_64_use_struct_convention): Make static. Adjust for renamed
8211 defines.
8212 (x86_64_frame_init_saved_regs): Remove function.
8213 (x86_64_push_arguments): Make static. Change to accept a regcache
8214 as argument.
8215 (x86_64_store_return_value, x86_64_extract_return_value): Make
8216 static. Rewrite based on i386 counterparts.
8217 (x86_64_push_dummy_call): New function.
8218 (X86_64_NUM_SAVED_REGS): New define.
8219 (x86_64_register_number): Remove function.
8220 (x86_64_store_struct_return): Remove function.
8221 (x86_64_frameless_function_invocation,
8222 x86_64_function_has_prologue): Remove functions.
8223 (PROLOG_BUFSIZE): Remove define.
8224 (struct x86_64_frame_cache): New structure.
8225 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8226 x86_64_frame_cache, x86_64_frame_this_id,
8227 x86_64_frame_prev_register, x86_64_frame_p,
8228 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8229 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8230 functions.
8231 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8232 variables.
8233 (x86_64_skip_prologue): Rewrite in terms of
8234 x86_64_analyze_prologue.
8235 (x86_64_frame_base_address): New function.
8236 (x86_64_frame_base): New variable.
8237 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8238 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8239 set deprecated_fp_regnum, deprecated_register_size,
8240 deprecated_register_bytes, register_raw_size, register_byte,
8241 register_virtual_type, register_convertiable,
8242 register_convert_to_virtual, convert_to_raw,
8243 deprecated_get_saved_register, deprecated_target_read_fp,
8244 deprecated_push_arguments, deprecated_push_return_address,
8245 deprecated_pop_frame, deprecated_store_struct_return,
8246 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8247 frameless_function_invocation, deprecated_frame_saved_pc,
8248 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8249 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8250 deprecated_init_frame_pc and virtual_frame_pointer. Call
8251 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8252 and x86_64_frame_p. Call frame_base_set_default to register
8253 x86_64_frame_base.
8254 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8255 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8256 (_initialize_x86_64_tdep): Remove function.
8257 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8258 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8259 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8260 define.
8261 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8262 (x86_64_linux_sigcontext_addr): Rewrite.
8263 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8264 x86_64_linux_frame_saved_pc): Remove functions.
8265 (x86_64_linux_pc_in_sigtramp): Renamed from
8266 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8267 trampoline.
8268 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8269 Remove_functions.
8270 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8271 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8272 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8273 (x86_64_regmap): Rename to regmap.
8274 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8275 x86_64_num_gregs.
8276 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8277 x86_64_regmap.
8278 (x86_64_fxsave_offset): Remove function.
8279 (supply_fpregset): Simply call x86_64_supply_fxsave.
8280 (fill_fpregset): Simply call x86_64_fill_fxsave.
8281 (fetch_inferior_registers, store_inferior_registers): Avoid
8282 asignment in if-statement.
8283 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8284 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8285 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8286 (fetch_core_registers): Remove function.
8287 (linux_elf_core_fns): Remove.
8288 (offsetoff): Don't define.
8289 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8290 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8291 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8292 add core-regset.o.
8293 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8294 protection against multiple includes instead of NM_X86_64_h. Add
8295 various comments. Include "config/nm-linux.h". Don't include
8296 <signal.h>.
8297 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8298 GET_THREAD_SIGNALS): Remove defines.
8299 (x86_64_register_u_addr, kernel_u_size,
8300 lin_thread_get_thread_signals): Remove prototypes.
8301 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8302 [HAVE_LINK_H]: Don't include "solib.h".
8303 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8304 * config/i386/tm-x86-64linux.h: Fix comments.
8305 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8306 x86-64-tdep.o): Update dependencies.
8307
8308 2003-05-30 Andrew Cagney <cagney@redhat.com>
8309
8310 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8311 Change parameter type to a "struct regcache *".
8312
8313 * gdbarch.sh: Regardless of the multi-arch level, always define
8314 the macro when not already defined.
8315 * gdbarch.h, gdbarch.c: Re-generate.
8316
8317 2003-05-30 Richard Henderson <rth@redhat.com>
8318
8319 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8320 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8321 (alpha_mdebug_frame_this_id): Likewise.
8322 (alpha_mdebug_frame_prev_register): Likewise.
8323 (alpha_mdebug_frame_base_address): Likewise.
8324 (alpha_mdebug_frame_locals_address): Likewise.
8325 (alpha_mdebug_frame_args_address): Likewise.
8326 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8327 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8328 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8329 loop increment.
8330 (alpha_heuristic_frame_this_id): Make static.
8331 (alpha_heuristic_frame_prev_register): Likewise.
8332 (alpha_heuristic_frame_base_address): Likewise.
8333 * alpha-tdep.h: Update.
8334
8335 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8336
8337 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8338 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8339 defenitions.
8340 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8341 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8342 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8343 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8344 I386_ST0_REGNUM): New defines.
8345 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8346 codestream_get): Remove define.
8347 (codestream_next_addr, condestream_addr, condestream_buf,
8348 codestream_off, codestream_cnt): Remove variables.
8349 (codestream_fill, codestream_seek, codestream_read): Remove
8350 functions.
8351 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8352 functionality.
8353 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8354 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8355 i386_frame_saved_pc, i386_saved_pc_after_call,
8356 i386_frame_num_args, i386_frame_init_saved_regs,
8357 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8358 i386_push_arguments): Remove functions.
8359 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8360 functionality. Use i386_analyze_prologue instead of
8361 i386_get_frame_setup.
8362 (I386_NUM_SAVED_REGS): New define.
8363 (struct i386_frame_cache): New structure.
8364 (i386_alloc_frame_cache, i386_analyze_struct_return,
8365 i386_skip_probe, i386_analyze_frame_setup,
8366 i386_analyze_register_saves, i386_analyze_prologue,
8367 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8368 i386_frame_prev_register, i386_sigtramp_frame_cache,
8369 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8370 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8371 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8372 New functions.
8373 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8374 New variables.
8375 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8376 I386_EAX_REGNUM and I386_EDX_REGNUM.
8377 (i386_extract_return_value, i386_store_return_value): Use
8378 I386_ST0_REGNUM where appropriate.
8379 (i386_extract_struct_value_address): Rewrite to use extract_address.
8380 (i386_svr4_pc_in_sigtramp): Add comment.
8381 (i386_svr4_sigcontext_addr): Rewrite.
8382 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8383 TDEP->sc_sp_offset.
8384 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8385 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8386 of new defines. Set push_dummy_call, don't set
8387 deprecated_push_arguments, deprecated_push_return_address,
8388 deprecated_pop_frame. Don't set parm_boundary. Don't set
8389 deprecated_frame_chain, deprecated_frame_saved_pc,
8390 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8391 save_dummy_frame_tos, unwind_pc. Call
8392 frame_unwind_append_predicate and frame_base_set_default. Don't
8393 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8394 Don't set frameless_function_invocation. Don't set
8395 deprecated_register_bytes, deprecated_register_size,
8396 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8397 * i386-linux-tdep.c: Fix formatting in some comments.
8398 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8399 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8400 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8401 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8402 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8403 redundant parentheses.
8404 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8405 (i386_linux_sigcontext_addr): Use it. Rewrite.
8406 (find_minsym_and_objfile): Change name of second argument.
8407 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8408 changed. Use frame_pc_unwind instead of
8409 DEPRECATED_SAVED_PC_AFTER_CALL.
8410 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8411 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8412 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8413 unwinder.
8414 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8415 "dummy-frame.h".
8416 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8417 (_initialize_i386_cygwin_tdep): New prototype.
8418 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8419 deprecated_frame_chain_valid.
8420 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8421 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8422 Rely on the SVR4 defaults.
8423 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8424 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8425
8426 2003-05-30 Andrew Cagney <cagney@redhat.com>
8427
8428 * infcall.c (call_function_by_hand): Always call
8429 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8430
8431 2003-05-30 Richard Henderson <rth@redhat.com>
8432
8433 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8434 increment.
8435
8436 2003-05-29 Jim Blandy <jimb@redhat.com>
8437
8438 Use gdbarch methods for solib stuff on PowerPC Linux.
8439 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8440 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8441 show through.
8442 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8443 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8444 giving the same effect as the #definitions above.
8445
8446 2003-05-29 Adam Fedor <fedor@gnu.org>
8447
8448 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8449 (find_implementation_from_class): Replace it with the standard
8450 case i.e. do nothing.
8451
8452 2003-05-29 Richard Henderson <rth@redhat.com>
8453
8454 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8455 (alpha_linux_sigtramp_offset): Use it. Make static.
8456 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8457 update for new frame model.
8458 * alpha-mdebug-tdep.c: New file.
8459 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8460 (alpha_osf1_init_abi): Install it.
8461 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8462 (linked_proc_desc_table): Remove.
8463 (alpha_frame_past_sigtramp_frame): Remove.
8464 (alpha_dynamic_sigtramp_offset): Remove.
8465 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8466 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8467 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8468 (push_sigtramp_desc): Remove.
8469 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8470 (alpha_cannot_store_register): Likewise.
8471 (alpha_sigcontext_addr): Remove.
8472 (alpha_find_saved_regs): Remove.
8473 (alpha_frame_init_saved_regs): Remove.
8474 (alpha_init_frame_pc_first): Remove.
8475 (read_next_frame_reg): Remove.
8476 (alpha_frame_saved_pc): Remove.
8477 (alpha_saved_pc_after_call): Remove.
8478 (temp_proc_desc, temp_saved_regs): Remove.
8479 (alpha_about_to_return): Remove.
8480 (cached_proc_desc): Remove.
8481 (alpha_frame_chain): Remove.
8482 (alpha_print_extra_frame_info): Remove.
8483 (alpha_init_extra_frame_info): Remove.
8484 (alpha_frame_locals_address): Remove.
8485 (alpha_frame_args_address): Remove.
8486 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8487 (alpha_push_dummy_frame): Remove.
8488 (alpha_pop_frame): Remove.
8489 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8490 (alpha_read_insn): New.
8491 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8492 for different insn encodings.
8493 (alpha_in_lenient_prologue): Remove.
8494 (struct alpha_sigtramp_unwind_cache): New.
8495 (alpha_sigtramp_frame_unwind_cache): New.
8496 (alpha_sigtramp_register_address): New.
8497 (alpha_sigtramp_frame_this_id): New.
8498 (alpha_sigtramp_frame_prev_register): New.
8499 (alpha_sigtramp_frame_unwind): New.
8500 (alpha_sigtramp_frame_p): New.
8501 (struct alpha_heuristic_unwind_cache): New.
8502 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8503 don't count nop insns that occur between functions.
8504 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8505 heuristic_proc_desc, but without the mdebug wrapping.
8506 (alpha_heuristic_frame_this_id): New.
8507 (alpha_heuristic_frame_prev_register): New.
8508 (alpha_heuristic_frame_unwind): New.
8509 (alpha_heuristic_frame_p): New.
8510 (alpha_heuristic_frame_base_address): New.
8511 (alpha_heuristic_frame_base): New.
8512 (alpha_unwind_dummy_id): New.
8513 (alpha_unwind_pc): New.
8514 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8515 frame related deprecated initializations; install replacements.
8516 (alpha_dump_tdep): Remove.
8517 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8518 (alpha_read_insn, alpha_after_prologue,
8519 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8520 alpha_heuristic_frame_prev_register,
8521 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8522 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8523 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8524 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8525
8526 2003-05-29 Andrew Cagney <cagney@redhat.com>
8527
8528 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8529 dependant on the availability of ASSERT_FUNCTION.
8530 (ASSERT_FUNCTION): Do not define when there is no function name.
8531
8532 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8533
8534 From Jimi X <jimix@watson.ibm.com>:
8535 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8536
8537 2003-05-28 Jim Blandy <jimb@redhat.com>
8538
8539 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8540 argument to ptrace to int; the system headers should give it the
8541 right type, and pointers don't fit in ints on powerpc64-*-*.
8542
8543 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8544
8545 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8546 DW_TAG_catch_block.
8547
8548 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8549
8550 * stabsread.c (dbx_lookup_type): Make static.
8551 (read_type): Ditto.
8552 (add_undefined_type): Ditto.
8553 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8554 not export.
8555
8556 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8557
8558 * hpread.c (hpread_has_name): Make static.
8559 (hpread_psymtab_to_symtab): Ditto.
8560 (file_exists): Ditto.
8561 (hpread_call_pxdb): Ditto.
8562 (hpread_pxdb_needed): Ditto.
8563 (hpread_quick_traverse): Ditto.
8564 (hpread_get_header): Ditto.
8565 (hpread_get_lntt): Ditto.
8566 (hpread_get_slt): Ditto.
8567 (class_of): Ditto.
8568
8569 2003-05-25 Andreas Schwab <schwab@suse.de>
8570
8571 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8572 stack_align and deprecated_extra_stack_alignment_needed.
8573 (m68k_stack_align): Delete.
8574
8575 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8576 (m68k_register_virtual_size): Likewise.
8577 (altos_skip_prologue): Remove obsolete function.
8578 (isi_frame_num_args): Likewise.
8579 (news_frame_num_args): Likewise.
8580 (m68k_fix_call_dummy): Make static.
8581 (m68k_push_dummy_frame): Likewise.
8582 (m68k_pop_frame): Likewise.
8583 (m68k_skip_prologue): Likewise.
8584 (m68k_frame_init_saved_regs): Likewise.
8585 (m68k_saved_pc_after_call): Likewise.
8586 (m68k_get_longjmp_target): Make multi-arch.
8587 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8588 structure. Register m68k_get_longjmp_target if enabled.
8589 * m68k-tdep.h (struct gdbarch_tdep): Define.
8590 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8591
8592 * Makefile.in (config.status): Also depend on configure.tgt
8593 and configure.host.
8594 (m68klinux-tdep.o): Update dependencies.
8595 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8596 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8597 (M68K_LINUX_JB_PC): Define.
8598 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8599 and take additional parameter.
8600 (m68k_linux_sigtramp_saved_pc): Update.
8601 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8602 m68k_linux_pc_in_sigtramp, in_plt_section,
8603 find_solib_trampoline_target.
8604 * config/m68k/tm-linux.h: Don't include any tm headers.
8605 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8606 (JB_ELEMENT_SIZE): Likewise.
8607 (JB_PC): Likewise.
8608 (GET_LONGJMP_TARGET): Likewise.
8609 (IN_SIGTRAMP): Likewise.
8610 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8611
8612 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8613
8614 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8615 (sparc32_push_arguments): Re-implement by calling
8616 sparc32_do_push_arguments.
8617
8618 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8619
8620 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8621 SPARC_O1_REGNUM): New defines.
8622 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8623 (sparc32_store_return_value): New function.
8624 (sparc_extract_struct_value_address): Rewrite to operate on a
8625 regcache.
8626 (sparc_gdbarch_init): Don't set
8627 deprecated_extract_struct_value_address. Set
8628 extract_struct_value_address instead. Don't set
8629 deprecated_extract_return_value and deprecated_store_return_value
8630 for 32-bit targets. Set extract_return_value and
8631 store_return_value instead.
8632 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8633 DEPRECATED_EXTRACT_RETURN_VALUE,
8634 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8635 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8636 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8637 (sparc_store_return_value): Remove prototype.
8638 (sparc32_store_return_value): New prototype.
8639 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8640 Adjust prototypes.
8641
8642 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8643
8644 * sparcnbsd-tdep.c: Include "gdb_string.h".
8645
8646 2003-05-23 Andrew Cagney <cagney@redhat.com>
8647
8648 * p-valprint.c (pascal_val_print): Replace extract_address with
8649 the inline equivalent extract_unsigned_integer.
8650 * jv-valprint.c (java_value_print): Ditto.
8651 * ada-valprint.c (ada_val_print_1): Ditto.
8652 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8653
8654 2003-05-23 Theodore A. Roth <troth@openavr.org>
8655
8656 * blockframe.c (frameless_look_for_prologue): Remove unused
8657 after_prologue variable.
8658
8659 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8660
8661 * blockframe.c (get_pc_function_start): Rewrite to avoid
8662 asignments in if-statements.
8663
8664 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8665
8666 Committed by Elena Zannoni <ezannoni@redhat.com>.
8667 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8668 files, don't relocate absolute symbols (and do use mst_abs).
8669
8670 2003-05-23 Andrew Cagney <cagney@redhat.com>
8671
8672 * objc-lang.c: Include "gdb_assert.h".
8673 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8674 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8675 (gdb_check, gdb_check_fatal): Delete functions.
8676 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8677 gdb_assert.
8678 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8679 * Makefile.in (objc-lang.o): Update dependencies.
8680
8681 2003-05-22 Ian Lance Taylor <ian@airs.com>
8682
8683 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8684 with fprintf_filtered, not fprintf_unfiltered.
8685
8686 2003-05-22 Andrew Cagney <cagney@redhat.com>
8687
8688 * stack.c (frame_info): Inline extract_address, replacing it with
8689 extract_unsigned_integer.
8690 * findvar.c (unsigned_pointer_to_address): Ditto.
8691 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8692 * dwarf2expr.c (dwarf2_read_address): Ditto.
8693 * frame.c (frame_pc_unwind): Update comment.
8694 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8695
8696 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8697
8698 * infptrace.c (detach): Call print_sys_errmsg rather than
8699 perror_with_name to issue warning message when errno is non-zero
8700 after calling ptrace detach.
8701
8702 2003-05-21 J. Brobecker <brobecker@gnat.com>
8703
8704 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8705 macro definitions from here...
8706 * hppa-tdep.c: ...to there.
8707
8708 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8709
8710 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8711 register_ptrace_addr(). Fix all callers.
8712
8713 2003-05-21 Andreas Schwab <schwab@suse.de>
8714
8715 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8716 dependencies.
8717 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8718 end.
8719 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8720 (_initialize_m68k_linux_tdep): New function.
8721 (m68k_linux_frame_saved_pc): Make static.
8722 (m68k_linux_extract_return_value): Likewise.
8723 (m68k_linux_store_return_value): Likewise.
8724 (m68k_linux_extract_struct_value_address): Likewise.
8725 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8726 Remove.
8727 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8728 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8729 (DEPRECATED_FRAME_SAVED_PC): Remove.
8730
8731 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8732
8733 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8734 regset numbering rather than our own.
8735
8736 2003-05-19 David Carlton <carlton@bactrian.org>
8737
8738 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8739
8740 2003-05-19 David Carlton <carlton@bactrian.org>
8741
8742 Partial fix for PR c++/827.
8743 * cp-support.h: Include symtab.h.
8744 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8745 * cp-namespace.c: Update contributors.
8746 (cp_lookup_symbol_nonlocal): New.
8747 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8748 (lookup_symbol_file): Ditto.
8749 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8750 * block.h: Declare block_scope, block_using, block_global_block.
8751 * block.c (block_scope): New.
8752 (block_using, block_global_block): Ditto.
8753 * Makefile.in (cp_support_h): Depend on symtab_h.
8754 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8755
8756 2003-05-19 David Carlton <carlton@bactrian.org>
8757
8758 * language.h (struct language_defn): Add 'la_value_of_this'
8759 and 'la_lookup_symbol_nonlocal' members.
8760 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8761 lookup_symbol_static, lookup_symbol_global,
8762 lookup_symbol_aux_block.
8763 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8764 if we should search fields of this and how to do static/global
8765 lookup.
8766 (lookup_symbol_aux_block): Make extern.
8767 (basic_lookup_symbol_nonlocal): New.
8768 (lookup_symbol_static, lookup_symbol_global): Ditto.
8769 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8770 'la_lookup_symbol_nonlocal' members.
8771 * c-lang.c (c_language_defn, cplus_language_defn)
8772 (asm_language_defn, minimal_language_defn): Ditto.
8773 * jv-lang.c (java_language_defn): Ditto.
8774 * language.c (unknown_language_defn, auto_language_defn)
8775 (local_language_defn): Ditto.
8776 * m2-lang.c (m2_language_defn): Ditto.
8777 * objc-lang.c (objc_language_defn): Ditto.
8778 * scm-lang.c (scm_language_defn): Ditto.
8779 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8780 * p-lang.c (pascal_language_defn): Ditto for both.
8781 * Makefile.in (f-lang.o): Depend on value_h.
8782 (p-lang.o): Ditto.
8783
8784 2003-05-19 David Carlton <carlton@bactrian.org>
8785
8786 * block.h: Declare block_static_block.
8787 * block.c (block_static_block): New.
8788 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8789 lookup_symbol_aux_local, calling block_static_block instead.
8790 (lookup_symbol_aux_local): Delete 'static_block' argument.
8791
8792 2003-05-19 David Carlton <carlton@bactrian.org>
8793
8794 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8795
8796 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8797
8798 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8799 register numbers mapping.
8800
8801 2003-05-18 Adam Fedor <fedor@gnu.org>
8802
8803 * symtab.c (completion_list_objc_symbol): New function.
8804 (make_symbol_completion_list): Use it to add ObjC symbols
8805 when looking though the list.
8806 (language_search_unquoted_string): New function.
8807 (make_file_symbol_completion_list): Use it.
8808
8809 2003-05-18 Andreas Schwab <schwab@suse.de>
8810
8811 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8812 dependencies.
8813 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8814 as m68k_linux_extract_return_value.
8815 (DEPRECATED_STORE_RETURN_VALUE): Define as
8816 m68k_linux_store_return_value.
8817 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8818 m68k_linux_extract_struct_value_address.
8819 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8820 get_next_frame, get_frame_base, get_frame_pc.
8821 (m68k_linux_frame_saved_pc): Use get_frame_base.
8822 (m68k_linux_extract_return_value): New function.
8823 (m68k_linux_store_return_value): New function.
8824 (m68k_linux_extract_struct_value_address): New function.
8825 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8826
8827 * c-exp.y (typebase): Remove duplicate occurence of
8828 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8829 of lookup_signed_typename.
8830
8831 2003-05-18 Mark Kettenis <kettenis@gnu.org>
8832
8833 * dwarf2loc.c (find_location_expression): Change type of second
8834 argument to `size_t *'.
8835 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8836 for size variable.
8837
8838 2003-05-18 David Carlton <carlton@bactrian.org>
8839
8840 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8841 'linkage_name'. Add comment.
8842 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8843 'linkage_name'.
8844 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8845 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8846 (lookup_block_symbol): Ditto.
8847
8848 2003-05-16 Andrew Cagney <cagney@redhat.com>
8849
8850 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8851 * gdbarch.h, gdbarch.c: Re-generate.
8852 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8853 * TODO (REGISTER_BYTES): Delete reference.
8854 * alpha-tdep.c (alpha_gdbarch_init): Update.
8855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8856 * x86-64-tdep.c (x86_64_init_abi): Update.
8857 * vax-tdep.c (vax_gdbarch_init): Update.
8858 * v850-tdep.c (v850_gdbarch_init): Update.
8859 * sparc-tdep.c (sparc_gdbarch_init): Update.
8860 * sh-tdep.c (sh_gdbarch_init): Update.
8861 * s390-tdep.c (s390_gdbarch_init): Update.
8862 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8863 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8864 (ns32k_gdbarch_init_32382): Update.
8865 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8866 * mcore-tdep.c (mcore_gdbarch_init): Update.
8867 * m68k-tdep.c (m68k_gdbarch_init): Update.
8868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8869 * ia64-tdep.c (ia64_gdbarch_init): Update.
8870 * i386-tdep.c (i386_gdbarch_init): Update.
8871 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8872 * hppa-tdep.c (hppa_gdbarch_init): Update.
8873 * h8300-tdep.c (h8300_gdbarch_init): Update.
8874 * frv-tdep.c (frv_gdbarch_init): Update.
8875 * cris-tdep.c (cris_gdbarch_init): Update.
8876 * avr-tdep.c (avr_gdbarch_init): Update.
8877 * arm-tdep.c (arm_gdbarch_init): Update.
8878 * sparc-tdep.c (sparc_pop_frame): Update.
8879 * rs6000-tdep.c (rs6000_pop_frame): Update.
8880 * remote.c (init_remote_state): Update.
8881 (remote_prepare_to_store): Update.
8882 * remote-vx.c (vx_prepare_to_store): Update.
8883 * remote-sds.c (sds_fetch_registers): Update.
8884 (sds_prepare_to_store): Update.
8885 * remote-array.c: Update.
8886 * regcache.c (init_legacy_regcache_descr): Update.
8887 (init_regcache_descr): Update.
8888 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8889 (mips_o64_extract_return_value): Update.
8890 * irix5-nat.c (fetch_core_registers): Update.
8891 * irix4-nat.c (fetch_core_registers): Update.
8892 * i386-tdep.h: Update.
8893 * hppa-tdep.c (pa_do_registers_info): Update.
8894 (pa_do_strcat_registers_info): Update.
8895 * cris-tdep.c (cris_register_bytes_ok): Update.
8896 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8897 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8898 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8899 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8900 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8901 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8902 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8903 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8904 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8905 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8906 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8907 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8908 (REGISTER_BYTES_OK): Update.
8909 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8910 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8911
8912 2003-05-16 Ian Lance Taylor <ian@airs.com>
8913
8914 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8915 (vax_print_insn, print_insn_arg): Remove static functions.
8916 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8917 print_insn_vax from opcodes library.
8918 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8919
8920 2003-05-15 Andrew Cagney <cagney@redhat.com>
8921
8922 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8923 * target.h (memory_breakpoint_from_pc): Delete declaration.
8924 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8925 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8926 * monitor.c (monitor_insert_breakpoint): Use
8927 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8928 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8929 * gdbarch.h, gdbarch.c: Re-generate.
8930 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8931 (sparc_gdbarch_init): Set breakpoint_from_pc to
8932 sparc_breakpoint_from_pc.
8933 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8934 (BREAKPOINT_FROM_PC): Define.
8935 (sparc_breakpoint_from_pc): Declare.
8936 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8937 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8938 (BREAKPOINT_FROM_PC): Define.
8939 (BREAKPOINT): Delete macro.
8940 * target.h: Update comment.
8941 * s390-tdep.c (s390_gdbarch_init): Update comments.
8942 * remote.c: Update comments.
8943 * remote-mips.c: Update comments.
8944 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8945 * mem-break.c: Update comment.
8946 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8947 (ia64_memory_insert_breakpoint): Update.
8948 * config/sparc/tm-sparc.h: Update comment.
8949 * config/pa/tm-hppa64.h: Update comment.
8950 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8951 (rs6000_breakpoint_from_pc): Update.
8952 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8953 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8954 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8955 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8956 (mips_breakpoint_from_pc): Update.
8957 (mips_dump_tdep): Update.
8958
8959 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8960 * minsyms.c (lookup_minimal_symbol): Inline
8961 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8962
8963 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8964 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8965 * p-lang.c (pascal_printstr): Ditto.
8966 * objc-lang.c (objc_printstr): Ditto.
8967 * m2-lang.c (m2_printstr): Ditto.
8968 * jv-valprint.c (java_print_value_fields): Ditto.
8969 * f-lang.c (f_printstr): Ditto.
8970 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8971 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8972 for repeat_count_threshold.
8973 * Makefile.in (cp-valprint.o): Update dependencies.
8974
8975 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8976
8977 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8978 (examine_prologue): Support looking through leaf functions, knowing
8979 they start with mov r2,r12. Support skipping over indirect stores
8980 of the input registers. Upon hitting a non-nop branch instruction
8981 or predicated instruction, bail out by setting lim_pc to the current
8982 pc value in the loop. At the end, if the lim_pc value is still
8983 beyond our calculated value and we have trust_limit set,
8984 use the lim_pc value.
8985
8986 2003-05-15 Andrew Cagney <cagney@redhat.com>
8987
8988 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8989 generic_find_dummy_frame.
8990 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8991 (deprecated_generic_find_dummy_frame): Update.
8992 (deprecated_read_register_dummy): Update.
8993 * frame.c (deprecated_generic_get_saved_register): Update.
8994
8995 2003-05-15 Theodore A. Roth <troth@openavr.org>
8996
8997 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8998 (avr_gdbarch_init): Set breakpoint_from_pc method.
8999
9000 2003-05-15 Andrew Cagney <cagney@redhat.com>
9001
9002 * regcache.c (build_regcache): Set deprecated_register_valid
9003 directly.
9004 (deprecated_grub_regcache_for_register_valid): Delete function.
9005 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9006 declaration.
9007
9008 2003-05-15 David Carlton <carlton@bactrian.org>
9009
9010 Committed by Elena Zannoni <ezannoni@redhat.com>
9011 * symtab.c (lookup_symbol_aux): Delete calls to
9012 lookup_symbol_aux_minsyms.
9013 (lookup_symbol_aux_minsyms): Comment out function and
9014 prototype. Delete lookup by mangled name.
9015
9016 2003-05-14 Kevin Buettner <kevinb@redhat.com>
9017
9018 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9019 correctly indicate an empty stack and ``stack_allocated'' to the
9020 indicate the number of elements initially allocated.
9021 (dwarf_expr_grow_stack): Simplify method for computing new
9022 stack size. Don't loop infinitely if ``stack_len'' is zero.
9023 (execute_stack_op): Move ``ctx->in_reg'' initialization
9024 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9025 be used in conjuction with DW_OP_piece. Revise error message
9026 accordingly.
9027
9028 2003-05-14 Theodore A. Roth <troth@openavr.org>
9029
9030 * MAINTAINERS: Update my email address.
9031 * avr-tdep.c: Ditto.
9032
9033 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
9034
9035 * symtab.h (enum domain_enum): Rename from namespace_enum.
9036 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9037 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9038 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9039 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9040 TYPES_NAMESPACE, METHODS_NAMESPACE.
9041 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9042 (struct symbol, struct partial_symbol): Rename field
9043 'namespace_enum namespace' to 'domain_enum domain'.
9044 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9045 Delete old define kludge for namespace.
9046
9047 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9048 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9049 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9050 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9051 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9052 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9053 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9054 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9055 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9056 occurrences of the above.
9057
9058 2003-05-14 Ian Lance Taylor <ian@airs.com>
9059
9060 * Makefile.in (install-only): Use $(SHELL) when running
9061 mkinstalldirs.
9062
9063 2003-05-13 Ian Lance Taylor <ian@airs.com>
9064
9065 * MAINTAINERS (write after approval): Add myself.
9066
9067 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9068 second and third arguments.
9069 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9070 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9071
9072 2003-05-13 Andrew Cagney <cagney@redhat.com>
9073
9074 * defs.h (store_address): Delete declaration.
9075 findvar.c (store_address): Delete function.
9076 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9077 store_unsigned_integer.
9078 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9079 * v850-tdep.c (v850_push_arguments): Ditto.
9080 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9081 * sh-tdep.c (sh64_get_saved_register): Ditto.
9082 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9083 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9084 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9085 (mips_get_saved_register): Ditto.
9086 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9087 (find_func_descr, ia64_push_arguments): Ditto.
9088 * i386-tdep.c (i386_push_arguments): Ditto.
9089 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9090 * frv-tdep.c (frv_push_arguments): Ditto.
9091 * frame.c (legacy_saved_regs_prev_register): Ditto.
9092 (deprecated_generic_get_saved_register): Ditto.
9093 * findvar.c (unsigned_address_to_pointer): Ditto.
9094 * dwarf2read.c (dwarf2_const_value): Ditto.
9095 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9096 * alpha-tdep.c (alpha_push_arguments): Ditto.
9097
9098 2003-05-12 J. Brobecker <brobecker@gnat.com>
9099
9100 * NEWS: Mention that the hppa-hpux port has been partially
9101 multiarched (32bit ABIT only, so far).
9102
9103 2003-05-11 Andrew Cagney <cagney@redhat.com>
9104
9105 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9106 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9107 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9108 sim/testsuite/sim/arm/misaligned2.ms, and
9109 sim/testsuite/sim/arm/misaligned3.ms.
9110 * disasm.h (struct ui_file): Add opaque struct declaration.
9111 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9112 * frame.h (struct ui_file): Ditto.
9113
9114 2003-05-11 Mark Kettenis <kettenis@gnu.org>
9115
9116 * value.h: Pretty print.
9117
9118 2003-05-10 Mark Kettenis <kettenis@gnu.org>
9119
9120 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9121
9122 2003-05-08 Andrew Cagney <cagney@redhat.com>
9123
9124 * regcache.h (max_register_size): Delete declaration.
9125 * regcache.c (max_register_size): Delete function.
9126 (struct regcache_descr): Delete field "max_register_size".
9127 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9128 registers fit in MAX_REGISTER_SIZE.
9129 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9130 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9131 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9132 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9133 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9134 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9135 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9136 * dve3900-rom.c, hppa-tdep.c: Ditto.
9137
9138 2003-05-08 David Carlton <carlton@math.stanford.edu>
9139
9140 * valops.c (push_word): Fix typo.
9141
9142 2003-05-08 Andrew Cagney <cagney@redhat.com>
9143
9144 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9145 * gdbarch.h: Re-generate.
9146 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9147 (legacy_max_register_raw_size): Delete declaration.
9148 * regcache.c (legacy_max_register_raw_size): Delete function.
9149 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9150 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9151 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9152 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9153 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9154 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9155 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9156 * findvar.c, dwarf2cfi.c: Ditto.
9157
9158 2003-05-08 Andrew Cagney <cagney@redhat.com>
9159
9160 * mips-tdep.c (read_signed_register): New function, moved to here
9161 from "regcache.c".
9162 (read_signed_register_pid): Ditto.
9163 * regcache.c (read_signed_register_pid): Delete function, moved to
9164 "mips-tdep.c".
9165 (read_signed_register): Ditto.
9166 * regcache.h (read_signed_register): Delete declaration.
9167 (read_signed_register_pid): Delete declaration.
9168
9169 2003-05-08 Andrew Cagney <cagney@redhat.com>
9170
9171 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9172 * gdbarch.h: Re-generate.
9173 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9174 (legacy_max_register_virtual_size): Delete declaration.
9175 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9176 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9177 * tracepoint.c (memrange_sortmerge): Ditto.
9178 * sparc-tdep.c (sparc_print_registers): Ditto.
9179 * regcache.c (legacy_max_register_virtual_size): Delete function.
9180
9181 2002-05-08 J. Brobecker <brobecker@gnat.com>
9182
9183 * fork-child.c (escape_bang_in_quoted_argument): New function.
9184 (fork_inferior): Escape '!' characters in quoted arguments
9185 only when needed.
9186
9187 2003-05-08 J. Brobecker <brobecker@gnat.com>
9188
9189 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9190 the language of the CU is not currently supported by GDB.
9191
9192 2003-05-08 J. Brobecker <brobecker@gnat.com>
9193
9194 * defs.h (language): Add language_minimal enum value.
9195 * c-lang.c (minimal_language_defn): New language definition.
9196 (_initialize_c_language): Add the new minimal language to the list
9197 of languages known to GDB.
9198
9199 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9200
9201 * frame.c (get_frame_type): Don't attempt to lazily initialize
9202 frame's unwinder for legacy frames.
9203
9204 2003-05-07 Andrew Cagney <cagney@redhat.com>
9205
9206 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9207 and "regcache" parameters.
9208 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9209
9210 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9211
9212 * dwarf2read.c (dwarf_decode_lines): Only use output of
9213 check_cu_functions() when calling record_line(). Do not update
9214 the current address.
9215
9216 2003-05-07 Andrew Cagney <cagney@redhat.com>
9217
9218 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9219 code.
9220
9221 2003-05-07 Jim Blandy <jimb@redhat.com>
9222
9223 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9224 'maint info symtabs' and 'maint info psymtabs'.
9225 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9226 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9227 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9228 Declarations updated.
9229 * maint.c (maintenance_list_command): Delete.
9230 (_initialize_maint_cmds): Update calls to add_cmd.
9231 * gdbcmd.h (maintenancelistlist): Delete declaration.
9232 * cli/cli-cmds.c (maintenancelistlist): Delete.
9233 (init_cmd_lists): Don't initialize it.
9234 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9235
9236 2003-05-07 Andrew Cagney <cagney@redhat.com>
9237
9238 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9239 "regcache".
9240 (d10v_print_registers_info): Update.
9241 (d10v_dmap_register, d10v_imap_register): Delete functions.
9242 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9243 and "imap_register".
9244 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9245 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9246 * arch-utils.c (generic_remote_translate_xfer_address): Add
9247 "regcache" and "gdbarch" parameters.
9248 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9249 parameter. Change class to multi-arch.
9250 * gdbarch.h, gdbarch.c: Re-generate.
9251 * remote.c (remote_xfer_memory): Use
9252 gdbarch_remote_translate_xfer_address.
9253
9254 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9255
9256 * infrun.c (prev_pc): Move declaration ahead of proceed().
9257 (proceed): Refresh prev_pc value before resuming.
9258 (stop_stepping): Remove code to refresh prev_pc.
9259
9260 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9261
9262 * nto-tdep.c: Removed stray comment.
9263
9264 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9265
9266 * i386-nto-tdep.c: Fix old K&R function definitions.
9267 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9268 Also change add_show_from_set() call to add_setshow_cmd().
9269 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9270
9271 2003-05-05 Andrew Cagney <cagney@redhat.com>
9272
9273 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9274 (fprint_dummy_frames): New function.
9275 (maintenance_print_dummy_frames): New function.
9276 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9277 * frame.c (fprint_frame_id): Make global.
9278 * frame.h (fprint_frame_id): Declare.
9279 * Makefile.in (dummy-frame.o): Update dependencies.
9280
9281 2003-05-05 Andrew Cagney <cagney@redhat.com>
9282
9283 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9284 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9285 SIZEOF_CALL_DUMMY_WORDS.
9286 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9287 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9288 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9289 CALL_DUMMY_BREAKPOINT_OFFSET.
9290 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9291 CALL_DUMMY_START_OFFSET.
9292 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9293 * gdbarch.h, gdbarch.c: Re-generate.
9294 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9295 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9296 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9297 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9298 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9299 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9300 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9301 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9302 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9303 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9304 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9305 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9306 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9307 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9308 * config/sparc/tm-sparc.h: Update.
9309
9310 2003-05-05 Kris Warkentin <kewarken@qnx.com>
9311
9312 * configure.tgt: Add i[3456]86-*-nto*.
9313 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9314 * nto-tdep.c: New file. Neutrino target support routines.
9315 * nto-tdep.h: New file. Neutrino target header.
9316 * config/tm-qnxnto.h: New file.
9317 * config/i386/i386nto.mt: New file.
9318 * config/i386/tm-i386nto.h: New file.
9319
9320 2003-05-04 Andrew Cagney <cagney@redhat.com>
9321
9322 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9323 (load_infrun_state): Ditto.
9324 (struct thread_info): Drop "prev_func_name" field.
9325 * thread.c (load_infrun_state): Update.
9326 (save_infrun_state): Update.
9327 * infrun.c (prev_func_name): Delete variable.
9328 (init_wait_for_inferior): Do not clear prev_func_name.
9329 (stop_stepping, keep_going, context_switch): Do not swap
9330 prev_func_name.
9331 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9332 instead of PC_IN_SIGTRAMP.
9333
9334 2003-05-04 Andrew Cagney <cagney@redhat.com>
9335
9336 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9337 REGISTER_BYTE with register_offset_hack.
9338 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9339 that REGISTER_BYTE is consistent with the regcache.
9340 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9341 * gdbarch.h, gdbarch.c: Regenerate.
9342
9343 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9344
9345 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9346 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9347
9348 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9349
9350 2003-05-03 J. Brobecker <brobecker@gnat.com>
9351
9352 From Thierry Schneider <tpschneider1@yahoo.com>
9353 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9354 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9355 (mi-cmd-symbol.o): Add rule.
9356
9357 2003-05-03 Andrew Cagney <cagney@redhat.com>
9358
9359 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9360 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9361 * gdbarch.h, gdbarch.c: Re-generate.
9362 * d10v-tdep.c (d10v_push_dummy_code): New function.
9363 (d10v_gdbarch_init): Set push_dummy_code.
9364 * infcall.c (legacy_push_dummy_code): New function.
9365 (generic_push_dummy_code): New function.
9366 (push_dummy_code): New function.
9367 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9368 instead of dummy_addr, to push_dummy_call. Move call to
9369 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9370 switch.
9371 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9372
9373 2003-05-03 Andrew Cagney <cagney@redhat.com>
9374
9375 * disasm.h (print_insn): Declare.
9376 * disasm.c (init_gdb_disassemble_info): New function.
9377 (gdb_disassembly): Call init_gdb_disassemble_info.
9378 (gdb_print_insn): New function.
9379 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9380 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9381 * mcore-tdep.c: Include "disasm.h"
9382 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9383 * d10v-tdep.c: Include "disasm.h".
9384 (display_trace): Call gdb_print_insn, instead of print_insn.
9385 (print_insn): Delete function.
9386 * printcmd.c: Include "disasm.h".
9387 (print_insn): Delete function.
9388 (print_formatted): Call gdb_print_insn, instead of print_insn.
9389 * Makefile.in (printcmd.o): Update dependencies.
9390 (mcore-tdep.o, d10v-tdep.o): Ditto.
9391
9392 2003-05-02 Andrew Cagney <cagney@redhat.com>
9393
9394 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9395 PC_REGNUM, re-indent.
9396 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9397 PC_REGNUM isn't set.
9398
9399 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9400 * gdbarch.h, gdbarch.c: Re-generate.
9401 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9402 register_virtual_size, pc_regnum, or register_bytes.
9403 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9404 (d10v_register_type): Use D10V_PC_REGNUM.
9405 (d10v_print_registers_info, d10v_read_pc): Ditto.
9406 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9407 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9408
9409 2003-05-02 David Carlton <carlton@bactrian.org>
9410
9411 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9412 the name with mstrsave.
9413
9414 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
9415
9416 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9417 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9418 (host_charset_name, target_charset_name): New vars for use by
9419 set/show commands.
9420 (host_charset_enum, target_charset_enum): New enums for set/show
9421 commands.
9422 (set_charset_sfunc, set_host_charset_sfunc,
9423 set_target_charset_sfunc): New functions.
9424 (set_host_charset, set_target_charset): Make static.
9425 (list_charsets, set_host_charset_command,
9426 set_target_charset_command): Delete functions.
9427 (show_charset_command): Rewrite as....
9428 (show_charset): Hook this up with the set/show command mechanism.
9429 (_initialize_charset): Change names of charsets to match the
9430 set/show enums. Use host_charset_name and target_charset_name.
9431 Use set/show mechanism for charset, host-charset, target-charset
9432 commands. Do not make 'show host-charset' and 'show
9433 target-charset' be aliases of 'show charset'.
9434
9435 * charset.h (set_host_charset, set_target_charset): Don't export,
9436 they are not used outside the file.
9437
9438 2003-05-01 Andrew Cagney <cagney@redhat.com>
9439
9440 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9441 (gdb_disassembly): Make "di" non static, always initialize and
9442 cleanup. Always use dis_asm_read_memory.
9443 (gdb_dis_asm_read_memory): Delete function.
9444
9445 2003-05-01 Andrew Cagney <cagney@redhat.com>
9446
9447 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9448 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9449
9450 2003-04-30 Andrew Cagney <cagney@redhat.com>
9451
9452 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9453 "tm_print_insn_info".
9454 (TARGET_PRINT_INSN_INFO): Delete macro.
9455 (dis_asm_read_memory): Delete function declaration.
9456 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9457 (tm_print_insn_info): Delete variable definition.
9458 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9459 * gdbarch.h, gdbarch.c: Re-generate.
9460 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9461 "deprecated_tm_print_insn_info".
9462 * mcore-tdep.c (mcore_dump_insn): Ditto.
9463 * mips-tdep.c (mips_gdbarch_init): Ditto.
9464 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9465 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9466 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9467 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9468 instead of TARGET_PRINT_INSN_INFO, add comment.
9469 * s390-tdep.c (s390_get_frame_info): Instead of
9470 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9471 (s390_check_function_end, s390_is_sigreturn): Ditto.
9472 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9473 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9474 * disasm.c: Include "gdbcore.h".
9475 (_initialize_disasm): New function, initialize
9476 "deprecated_tm_print_insn_info".
9477 (deprecated_tm_print_insn_info): New variable.
9478 (dis_asm_read_memory): Moved from "corefile.c", made static.
9479 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9480 * Makefile.in (disasm.o): Update dependencies.
9481
9482 2003-04-30 Andrew Cagney <cagney@redhat.com>
9483
9484 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9485
9486 2003-04-29 Adam Fedor <fedor@gnu.org>
9487
9488 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9489 * infcall.c (find_function_addr): Make non-static.
9490 * infcall.h (find_function_addr): Declare.
9491 * Makefile.in (eval.o): Update dependencies.
9492
9493 2003-04-28 Adam Fedor <fedor@gnu.org>
9494
9495 * symtab.c (symbol_find_demangled_name): Check for and demangle
9496 ObjC symbols.
9497 (symbol_init_demangled_name): Init for language_objc as well.
9498
9499 2003-04-28 Andrew Cagney <cagney@redhat.com>
9500
9501 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9502 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9503 * gdbarch.h, gdbarch.c: Re-generate.
9504 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9505 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9506 * inferior.h (deprecated_read_fp): Rename read_fp.
9507 (generic_target_read_fp): Delete declaration.
9508 * regcache.c (generic_target_read_fp): Delete function.
9509 (deprecated_read_fp): Replace read_fp, use
9510 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9511 * d10v-tdep.c (d10v_read_fp): Delete function.
9512 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9513
9514 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9515 deprecated_target_read_fp to generic_target_read_fp.
9516 * sh-tdep.c (sh_gdbarch_init): Ditto.
9517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9519 * frv-tdep.c (frv_gdbarch_init): Ditto.
9520
9521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9522 deprecated_fp_regnum.
9523 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9524 * vax-tdep.c (vax_gdbarch_init): Ditto.
9525 * v850-tdep.c (v850_gdbarch_init): Ditto.
9526 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9527 * sh-tdep.c (sh_gdbarch_init): Ditto.
9528 * s390-tdep.c (s390_gdbarch_init): Ditto.
9529 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9530 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9531 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9532 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9534 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9535 * i386-tdep.c (i386_gdbarch_init): Ditto.
9536 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9537 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9538 * frv-tdep.c (frv_gdbarch_init): Ditto.
9539 * cris-tdep.c (cris_gdbarch_init): Ditto.
9540 * avr-tdep.c (avr_gdbarch_init): Ditto.
9541 * arm-tdep.c (arm_gdbarch_init): Ditto.
9542 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9543
9544 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9545 * v850-tdep.c (v850_gdbarch_init): Ditto.
9546 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9547 * sh-tdep.c (sh_gdbarch_init): Ditto.
9548 * s390-tdep.c (s390_gdbarch_init): Ditto.
9549 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9551 * mips-tdep.c (mips_gdbarch_init): Ditto.
9552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9553 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9554 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9555 * frv-tdep.c (frv_gdbarch_init): Ditto.
9556 * avr-tdep.c (avr_gdbarch_init): Ditto.
9557 * arm-tdep.c (arm_gdbarch_init): Ditto.
9558
9559 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9560 DEPRECATED_FP_REGNUM.
9561 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9562 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9563 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9564 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9565 (sparc32_register_virtual_type): Ditto.
9566 * sh-tdep.c (sh64_frame_chain): Ditto.
9567 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9568 (sh_nofp_frame_init_saved_regs): Ditto.
9569 (sh64_nofp_frame_init_saved_regs): Ditto.
9570 (sh_fp_frame_init_saved_regs): Ditto.
9571 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9572 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9573 * procfs.c (procfs_fetch_registers): Ditto.
9574 (procfs_store_registers): Ditto.
9575 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9576 (store_inferior_registers, fetch_core_registers): Ditto.
9577 (fetch_kcore_registers, clear_regs): Ditto.
9578 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9579 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9580 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9581 * nlm/i386.c (do_status): Ditto.
9582 * mipsv4-nat.c (supply_gregset): Ditto.
9583 * mips-tdep.c: Ditto for comments.
9584 * mips-nat.c (fetch_inferior_registers): Ditto.
9585 (store_inferior_registers, fetch_core_registers): Ditto.
9586 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9587 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9588 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9589 (i386_do_pop_frame, i386_register_type): Ditto.
9590 * hppa-tdep.c (hppa_frame_chain): Ditto.
9591 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9592 (hppa_pop_frame, hppa_read_fp): Ditto.
9593 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9594 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9595 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9596 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9597 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9598 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9599 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9600 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9601 * blockframe.c: Ditto for comments.
9602 * arch-utils.h: Ditto for comments.
9603 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9604 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9605 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9606 * alpha-tdep.h: Ditto for comments.
9607 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9608 (alpha_cannot_store_register): Ditto.
9609 (alpha_push_dummy_frame): Ditto.
9610 * alpha-nat.c (supply_gregset): Ditto.
9611
9612 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9613 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9614 * config/sparc/tm-sparc.h: Update comment.
9615
9616 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9617 deprecated_read_fp instead of TARGET_READ_FP.
9618 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9619 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9620 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9621 deprecated_read_fp instead of read_fp.
9622 * s390-tdep.c (s390_push_arguments): Ditto.
9623 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9624 * frame.h: Ditto in comments.
9625 * frame.c (legacy_get_prev_frame): Ditto.
9626 * dummy-frame.c (dummy_frame_this_id): Ditto.
9627 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9628
9629 2003-04-28 Andrew Cagney <cagney@redhat.com>
9630
9631 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9632 * gdbarch.h, gdbarch.c: Re-generate.
9633 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9634 * vax-tdep.c (_initialize_vax_tdep): Update.
9635 * v850-tdep.c (_initialize_v850_tdep): Update.
9636 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9637 * s390-tdep.c (_initialize_s390_tdep): Update.
9638 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9639 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9640 * mips-tdep.c (_initialize_mips_tdep): Update.
9641 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9642 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9643 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9644 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9645 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9646 * frv-tdep.c (_initialize_frv_tdep): Update.
9647 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9648 (_initialize_cris_tdep): Update.
9649 * arch-utils.c (legacy_print_insn): Update.
9650 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9651
9652 2003-04-26 Adam Fedor <fedor@gnu.org>
9653
9654 * linespec.c (decode_objc): New function to decode ObjC calls
9655 (decode_line_1): Check for ObjC calls (using decode_objc)
9656 * Makefile (linespec.o): Update dependencies.
9657
9658 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9659
9660 * breakpoint.h (struct breakpoint_ops): New.
9661 (struct breakpoint): Add ops member.
9662
9663 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9664 (mention): Use new breakpoint ops member.
9665 (set_raw_breakpoint): Initialize ops field to NULL.
9666 (print_exception_catchpoint, print_one_exception_catchpoint)
9667 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9668 (gnu_v3_exception_catchpoint_ops): New.
9669 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9670
9671 2003-04-25 Adam Fedor <fedor@gnu.org>
9672
9673 * Makefile.in (COMMON_OBS): Add objc-lang.o
9674
9675 2003-04-25 Andrew Cagney <cagney@redhat.com>
9676
9677 * d10v-tdep.c (print_insn): Delete function.
9678 (display_trace): Use TARGET_PRINT_INSN.
9679 (_initialize_d10v_tdep): Do not set tm_print_insn.
9680 (d10v_gdbarch_init): Set print_insn.
9681
9682 2003-04-25 Andrew Cagney <cagney@redhat.com>
9683
9684 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9685 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9686 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9687 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9688 (nr_dmap_regs, a0_regnum): ... new functions.
9689 (d10v_print_registers_info): Use a0_regnum, use register_size.
9690 (d10v_register_byte): Delete function.
9691 (d10v_register_raw_size): Delete function.
9692 (d10v_register_type): Use a0_regnum.
9693 (d10v_print_registers_info): Use a0_regnum.
9694 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9695 (d10v_gdbarch_init): Do not set register_byte or
9696 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9697 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9698 extract_address.
9699 (trace_command): Use XCALLOC.
9700 (print_insn): Delete reference to tm_print_insn.
9701 (saved_regs_unwinder): Use store_unsigned_integer instead of
9702 store_address.
9703 * frame.h (FRAME_OBSTACK_CALLOC): Define
9704
9705 2003-04-25 David Carlton <carlton@bactrian.org>
9706
9707 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9708
9709 2003-04-24 Adam Fedor <fedor@gnu.org>
9710
9711 * objc-lang.c: Include "valprint.h"
9712 * Makefile.in (objc-lang.o): Update dependencies.
9713
9714 2003-04-24 Adam Fedor <fedor@gnu.org>
9715
9716 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9717 architecture dependant compilation and mark as unimplemented
9718 (until they get put in the gdbarch vector).
9719
9720 2003-04-23 David Carlton <carlton@bactrian.org>
9721
9722 * cp-support.c (cp_find_first_component): Accept 'operator' in
9723 more locations.
9724
9725 2003-04-23 Andrew Cagney <cagney@redhat.com>
9726
9727 * infcall.c (call_function_by_hand): Eliminate redundant
9728 indentation. Move "saved_async" and "old_cleanups" to where they
9729 are needed.
9730
9731 2003-04-23 Andrew Cagney <cagney@redhat.com>
9732
9733 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9734 and "buffer". Move the "name" code to where it is needed.
9735
9736 2003-04-23 Andrew Cagney <cagney@redhat.com>
9737
9738 * infcall.c (call_function_by_hand): Move variables "start_sp",
9739 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9740 code to ON_STACK switch branch.
9741
9742 2003-04-23 Andrew Cagney <cagney@redhat.com>
9743
9744 * infcall.c (call_function_by_hand): Make declaration of "i",
9745 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9746 lint.
9747
9748 2003-04-23 Andrew Cagney <cagney@redhat.com>
9749
9750 * infcall.c (call_function_by_hand): Delete variable
9751 "n_method_args". Localize "param_type"'s declaration to the loop
9752 that it is used. Reinstate code assigning to said variable -
9753 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9754 Rationalize code using "param_type".
9755
9756 2003-04-22 Andrew Cagney <cagney@redhat.com>
9757
9758 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9759 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9760 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9761 to DEPRECATED_PUSH_RETURN_ADDRESS.
9762
9763 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9764
9765 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9766 on the DWARF2 register number prior to fetching a register.
9767
9768 2003-04-22 J. Brobecker <brobecker@gnat.com>
9769
9770 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9771 Update all the tests using SOFT_FLOAT considering the fact that
9772 this macro was always set to 0.
9773 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9774 considering the fact that this macro was always set to 0.
9775 * hppa-tdep.h (hppa_store_return_value): Likewise.
9776 (hppa_extract_return_value): Likewise.
9777
9778 2003-04-22 J. Brobecker <brobecker@gnat.com>
9779
9780 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9781 the hppa-pro target only.
9782
9783 2003-04-21 J. Brobecker <brobecker@gnat.com>
9784
9785 Ongoing multi-arch conversion effort for HP/UX:
9786 * config/pa/tm-hppa.h: Move all macro that are no longer
9787 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9788 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9789
9790 2003-04-21 J. Brobecker <brobecker@gnat.com>
9791
9792 * config/pa/tm-hppa.h: Obsolete a section that was only used
9793 for hppa-pro.
9794
9795 2003-04-21 J. Brobecker <brobecker@gnat.com>
9796
9797 Ongoing multi-arch conversion for HP/UX.
9798 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9799 if already defined (allows hppa64 to stay non-multiarched for now).
9800 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9801
9802 2003-04-21 Andrew Cagney <cagney@redhat.com>
9803
9804 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9805
9806 2003-04-21 Andrew Cagney <cagney@redhat.com>
9807
9808 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9809 "i386_num_mmx_regs".
9810
9811 2003-04-21 Andrew Cagney <cagney@redhat.com>
9812
9813 * infcall.c: New file.
9814 * infcall.h: New file.
9815 * valarith.c: Include "infcall.h".
9816 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9817 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9818 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9819 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9820 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9821 (SFILES): Add "infcall.c"
9822 (COMMON_OBS): Add "infcall.o".
9823 (infcall.o): Specify dependencies.
9824 * value.h (call_function_by_hand): Delete declaration.
9825 * inferior.h (run_stack_dummy): Delete declaration.
9826 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9827 (run_stack_dummy): Move to "infcall.c", merged into
9828 call_function_by_hand.
9829 * valops.c (call_function_by_hand): Moved to "infcall.c".
9830 (find_function_addr, value_arg_coerce): Ditto.
9831 (unwindonsignal_p, coerce_float_to_double): Ditto.
9832 (_initialize_valops): Move "set/show coerce-float-to-double", and
9833 "set/show unwindonsignal" commands to "infcall.c".
9834 * v850-tdep.c, target.h: Update comments.
9835 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9836 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9837 (sh64_init_extra_frame_info): Update comments.
9838 * mn10300-tdep.c: Update comments.
9839 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9840 * config/sparc/tm-sparc.h: Update comments.
9841 * breakpoint.h: Update comments.
9842 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9843 * arm-tdep.c: Update comment.
9844
9845 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9846
9847 * i386-tdep.c (i386_num_register_names): New variable.
9848 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9849 (MM0_REGNUM): Remove redundant parentheses in define.
9850 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9851 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9852 i386_mxcsr_regnum_p): Remove redundant parentheses.
9853 (i386_register_name): Use i386_num_register_names.
9854
9855 * i386-tdep.c (i386_extract_return_value,
9856 i386_store_return_value): Correct check for availability of
9857 floating-point registers.
9858
9859 * i386-tdep.c (i386_frame_num_args): Remove function.
9860 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9861
9862 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9863 mmx_regnum_to_fp_regnum. Adjust all callers.
9864
9865 * i386-tdep.c (i386_get_longjmp_target): Use
9866 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9867 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9868 extract_address.
9869
9870 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9871
9872 * core-regset.c: Update comments to reflect reality. Re-order
9873 includes.
9874 (fetch_core_registers): Use switch instead of if. Remove
9875 redundant prototype.
9876
9877 2003-04-18 Jim Blandy <jimb@redhat.com>
9878
9879 * s390-tdep.c (s390_frame_align): New function.
9880 (s390_gdbarch_init): Register it with the gdbarch object.
9881
9882 2003-04-17 Richard Henderson <rth@redhat.com>
9883
9884 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9885
9886 2003-04-17 Michael Snyder <msnyder@redhat.com>
9887 Karen Bennet <bennet@redhat.com>
9888
9889 Committed by Elena Zannoni <ezannoni@redhat.com>
9890 * gdb_gcore.sh: New script to create a core dump of a process.
9891
9892 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9893
9894 * values.c (value_being_returned): Don't fetch the return
9895 value if the return type is void.
9896
9897 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9898
9899 * thread-db.c: Reindented.
9900
9901 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9902
9903 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9904 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9905 as types.
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9932
9933 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9934 the size of ``long double'' to 16, instead of 8.
9935
9936 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9937
9938 * i386-linux-nat.c: Add some whitespace to make things more
9939 readable.
9940 (fetch_register, store_register, fetch_inferior_registers,
9941 store_inferior_registers): Get rid of assignment in if-statement.
9942 (store_register): Fix typo in error message.
9943
9944 2003-04-16 Andrew Cagney <cagney@redhat.com>
9945
9946 * utils.c (xmmalloc): Always allocate something, matches
9947 libiberty/xmalloc's semantics.
9948 (xmrealloc, xmcalloc): Ditto.
9949
9950 2003-04-16 Andrew Cagney <cagney@redhat.com>
9951
9952 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9953 update comments.
9954 (get_frame_type): Initialize unwind and type when needed.
9955 (get_frame_id, frame_register_unwind): Ditto.
9956
9957 2003-04-16 Andrew Cagney <cagney@redhat.com>
9958
9959 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9960 obsolete.
9961 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9962 * sparcl-stub.c: Obsolete file.
9963 * config/sparc/tm-sparclet.h: Obsolete file.
9964 * sparclet-stub.c: Obsolete file.
9965 * sparclet-rom.c: Obsolete file.
9966 * sparcl-tdep.c: Obsolete file.
9967 * config/sparc/tm-sparclite.h: Obsolete file.
9968 * config/sparc/sparclite.mt: Obsolete file.
9969 * config/sparc/sparclet.mt: Obsolete file.
9970 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9971 sparc86x-*-* obsolete.
9972
9973 2003-04-15 David Carlton <carlton@math.stanford.edu>
9974
9975 * Makefile.in (SFILES): Add cp-namespace.c.
9976 (COMMON_OBS): Add cp-namespace.o.
9977 (block.o): Depend on gdb_obstack_h and cp_support_h.
9978 (buildsym.o): Depend on cp_support_h.
9979 (cp-namespace.o): New.
9980 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9981 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9982 (dwarf2read.o): Depend on cp_support_h.
9983 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9984 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9985 processing_current_namespace.
9986 (read_namespace): Update processing_current_namespace; check for
9987 anonymous namespaces.
9988 (dwarf2_name): New function.
9989 (dwarf2_extension): Ditto.
9990 * cp-support.h: Update copyright, contributors.
9991 Add inclusion guards.
9992 Add opaque declaration for structs obstack, block, symbol.
9993 (struct using_direct): New struct.
9994 Add declarations for cp_find_first_component,
9995 cp_entire_prefix_len, processing_has_namespace_info,
9996 processing_current_namespace, cp_is_anonymous,
9997 cp_add_using_directive, cp_initialize_namespace,
9998 cp_finalize_namespace, cp_set_block_scope,
9999 cp_scan_for_anonymous_namespaces.
10000 * cp-namespace.c: New file.
10001 * cp-support.c: Update copyright.
10002 Include ctype.h, gdb_assert.h, gdbcmd.h.
10003 New variable maint_cplus_cmd_list.
10004 (cp_find_first_component): New function.
10005 (cp_entire_prefix_len, maint_cplus_command)
10006 (first_component_command, _initialize_cp_support): Ditto.
10007 * buildsym.c: Include cp-support.h.
10008 New variable using_list.
10009 (add_symbol_to_list): Check for anonymous namespaces.
10010 (finish_block): Set block's scope.
10011 (start_symtab): Initialize C++ namespace support.
10012 (end_symtab): Finalize C++ namespace support.
10013 * block.h: Add opaque declarations for structs
10014 block_namespace_info, using_direct, and obstack.
10015 Add declarations for block_set_scope and block_set_using.
10016 (struct block): Add 'language_specific' member.
10017 (BLOCK_NAMESPACE): New macro.
10018 * block.c: Include gdb_obstack.h and cp-support.h.
10019 (struct block_namespace_info): New struct.
10020 (block_set_scope): New function.
10021 (block_set_using, block_initialize_namespace): Ditto.
10022
10023 2003-04-14 Kevin Buettner <kevinb@redhat.com>
10024
10025 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10026 (locate_base): Return early if there aren't any link map offsets.
10027 (svr4_solib_create_inferior_hook): Warn if shared library support
10028 is unavailable.
10029
10030 2003-04-14 David Carlton <carlton@math.stanford.edu>
10031
10032 * symtab.c (symbol_set_names): Add prefix when storing Java names
10033 in hash table. Fix for PR java/1039.
10034
10035 2003-04-14 David Carlton <carlton@math.stanford.edu>
10036
10037 * symtab.c (symbol_set_names): Rename 'name' arg to
10038 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10039 * symtab.h: Change 'name' argument in declaration of
10040 symbol_set_names to 'linkage_name'.
10041 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10042
10043 2003-04-14 Andrew Cagney <cagney@redhat.com>
10044
10045 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10046 return the fully sign-extended register value.
10047 (get_frame_pointer): Ditto.
10048 (mips_pop_frame): Initialize "proc_desc" after checking for a
10049 dummy frame.
10050
10051 2003-04-14 Andrew Cagney <cagney@redhat.com>
10052
10053 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10054 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10055 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10056 (mips_push_register): Delete function.
10057 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10058 PUSH_FP_REGNUM.
10059
10060 2003-04-14 Jim Blandy <jimb@redhat.com>
10061
10062 * symmisc.c: #include "gdb_regex.h".
10063 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10064 functions.
10065 * maint.c (maintenance_list_command): New function.
10066 (_initialize_maint_cmds): Register the above as commands.
10067 * symtab.h (maintenance_list_symtabs,
10068 maintenance_list_psymtabs): New declarations.
10069 * cli/cli-cmds.c (maintenancelistlist): New variable.
10070 (init_cmd_lists): Initialize it.
10071 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10072 * gdbcmd.h (maintenancelistlist): New declaration.
10073 * Makefile.in (symmisc.o): Update dependencies.
10074
10075 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
10076
10077 * s390-nat.c: Include asm/types.h for addr_t.
10078
10079 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
10080
10081 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10082 actually incoming type.
10083
10084 2003-04-13 Andrew Cagney <cagney@redhat.com>
10085
10086 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10087 get_next_frame and get_frame_saved_regs.
10088
10089 2003-04-13 Andrew Cagney <cagney@redhat.com>
10090
10091 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10092 of gdbarch_num_regs.
10093
10094 2003-04-13 Andrew Cagney <cagney@redhat.com>
10095
10096 * frame.h: Mention what replaced what in "struct frame_info".
10097 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10098 deprecated_update_frame_base_hack and
10099 deprecated_update_frame_pc_hack.
10100 * hppa-tdep.c: Ditto.
10101
10102 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10103
10104 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10105 to read_reg and update its comment. Remove regnum member.
10106 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10107 Don't call read_reg when setting in_reg. Call read_reg to get
10108 the frame base if it's in a register. Return the register number
10109 on the stack instead of in the context. Remove extra arguments
10110 to read_reg.
10111 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10112 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10113 the register number on the expression stack.
10114 (needs_frame_read_reg): Remove extra arguments.
10115
10116 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10117
10118 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10119 made non-static.
10120 (execute_stack_op): All callers updated.
10121 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10122 * dwarf2loc.c (find_location_expression): New function.
10123 (dwarf_expr_frame_base): Call it.
10124 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10125 (dwarf2_tracepoint_var_ref): New function, broken out from
10126 locexpr_tracepoint_var_ref.
10127 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10128 Make static.
10129 (loclist_read_variable, loclist_read_needs_frame): New functions.
10130 (loclist_describe_location, loclist_tracepoint_var_ref): New
10131 functions.
10132 (dwarf2_loclist_funcs): New struct location_funcs.
10133 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10134 (struct dwarf2_locexpr_baton): Add comments.
10135 (dwarf2_loclist_funcs): New extern.
10136 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10137 base_address and base_known.
10138 (dwarf_loc_buffer): New variable.
10139 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10140 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10141 (dwarf2_has_info): Initialize dwarf_loc_offset.
10142 (dwarf2_build_psymtabs): Read in .debug_loc.
10143 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10144 DWARF_LOC_SIZE.
10145 (psymtab_to_symtab_1): Likewise. Move base address calculation
10146 here, from...
10147 (dwarf2_get_pc_bounds): ... here. Use the base address from
10148 cu_header.
10149 (dwarf2_symbol_mark_computed): Handle location lists.
10150
10151 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10152
10153 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10154 if the linkage name demangled successfully.
10155
10156 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10157
10158 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10159 disassmbly_flavour): Removed.
10160
10161 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10162
10163 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10164
10165 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10166
10167 2003-04-12 Andrew Cagney <cagney@redhat.com>
10168
10169 * frame.h (struct frame_info): Move definition from here ...
10170 * frame.c (struct frame_info): ... to here.
10171
10172 2003-04-12 Andrew Cagney <cagney@redhat.com>
10173
10174 * gdbthread.h (save_infrun_state): Delete parameter
10175 "prev_func_start".
10176 (struct thread_info): Delete field "prev_func_start".
10177 (load_infrun_state): Ditto.
10178 * thread.c (load_infrun_state, save_infrun_state): Update.
10179 * infrun.c (prev_func_start): Delete variable.
10180 (context_switch, init_wait_for_inferior): Update.
10181 (stop_stepping, keep_going): Update.
10182
10183 2003-04-12 Andrew Cagney <cagney@redhat.com>
10184
10185 * gdbarch.sh: Add missing opaque declarations.
10186 * gdbarch.h: Regnerate.
10187 * symtab.h: Add missing opaque declarations.
10188 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10189 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10190 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10191 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10192 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10193 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10194 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10195 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10196 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10197 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10198 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10199 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10200 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10201
10202 2003-04-11 Andrew Cagney <cagney@redhat.com>
10203
10204 * frame.c (get_frame_id): Return this frame's "id".
10205 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10206 function start.
10207 (legacy_saved_regs_this_id): Replace function body with
10208 internal-error.
10209 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10210 FRAME_OBSTACK_ZALLOC.
10211 (create_new_frame): Mark the frame ID as valid.
10212
10213 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10214
10215 * Makefile.in (libbfd_h): Added missing setting.
10216 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10217 according to the selected ABI.
10218
10219 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10220
10221 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10222
10223 2003-04-11 Andrew Cagney <cagney@redhat.com>
10224
10225 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10226 SAVED_PC_AFTER_CALL.
10227 * gdbarch.h, gdbarch.c: Regenerate.
10228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10229 * x86-64-tdep.c (x86_64_init_abi): Update.
10230 * vax-tdep.c (vax_gdbarch_init): Update.
10231 * v850-tdep.c (v850_gdbarch_init): Update.
10232 * sparc-tdep.c (sparc_gdbarch_init): Update.
10233 * sh-tdep.c (sh_gdbarch_init): Update.
10234 * s390-tdep.c (s390_gdbarch_init): Update.
10235 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10236 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10237 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10238 * mips-tdep.c (mips_gdbarch_init): Update.
10239 * mcore-tdep.c (mcore_gdbarch_init): Update.
10240 * m68k-tdep.c (m68k_gdbarch_init): Update.
10241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10242 * ia64-tdep.c (ia64_gdbarch_init): Update.
10243 (ia64_saved_pc_after_call): Update declaration.
10244 * i386ly-tdep.c (i386lynx_init_abi): Update.
10245 * i386-tdep.c (i386_gdbarch_init): Update.
10246 * hppa-tdep.c (hppa_gdbarch_init): Update.
10247 * h8300-tdep.c (h8300_gdbarch_init): Update.
10248 * frv-tdep.c (frv_gdbarch_init): Update.
10249 * cris-tdep.c (cris_gdbarch_init): Update.
10250 * avr-tdep.c (avr_gdbarch_init): Update.
10251 * arm-tdep.c (arm_gdbarch_init): Update.
10252 * alpha-tdep.c (alpha_gdbarch_init): Update.
10253 * ns32knbsd-nat.c (frame_num_args): Update.
10254 * ns32k-tdep.c (umax_frame_num_args): Update.
10255 * mips-tdep.c (mips_init_frame_pc_first): Update.
10256 * infrun.c (step_over_function): Update.
10257 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10258 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10259 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10260 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10261 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10262 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10263 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10264 * arch-utils.c (init_frame_pc_default): Update.
10265 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10266 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10267 declaration.
10268
10269 2003-04-11 Andrew Cagney <cagney@redhat.com>
10270
10271 * i387-tdep.c: Update copyright.
10272 (i387_to_double): Delete function.
10273 (double_to_i387): Delete function.
10274
10275 2003-04-10 Andrew Cagney <cagney@redhat.com>
10276
10277 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10278 frame's function's address. Simplify.
10279 (d10v_frame_unwind_cache): Check that the frame's function is
10280 non-zero.
10281
10282 2003-04-10 Jim Blandy <jimb@redhat.com>
10283
10284 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10285 call to set_gdbarch_deprecated_push_arguments.
10286
10287 2003-04-10 Andrew Cagney <cagney@redhat.com>
10288
10289 * frame.c (fprint_frame_id): New function.
10290 (fprint_frame_type, fprint_frame): New function.
10291 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10292 (create_sentinel_frame, get_frame_id): Ditto.
10293 (frame_id_p, frame_id_eq): Ditto.
10294 (frame_id_inner, create_new_frame): Ditto.
10295 (legacy_get_prev_frame, get_prev_frame): Ditto.
10296 (deprecated_update_frame_pc_hack): Ditto.
10297 (frame_register_unwind): Ditto.
10298 (deprecated_update_frame_base_hack): Ditto.
10299
10300 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10301
10302 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10303 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10304 frame_chain function.
10305 * Makefile.in: Add dependencies due to above change.
10306
10307 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10308
10309 * blockframe.c (legacy_frame_chain_valid): Move call to
10310 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10311 inside_entry_file.
10312
10313 2003-04-09 Andrew Cagney <cagney@redhat.com>
10314
10315 * frame.h (struct frame_id): Replace "pc" and "base" with
10316 "stack_addr" and "code_addr". Update comments.
10317 (frame_id_build): Update parameter names and comment.
10318 (struct frame_info): Replace "id_p" and "id" with "this_id".
10319 * dummy-frame.c (dummy_frame_this_id): Update.
10320 * breakpoint.c (print_one_breakpoint): Update.
10321 * frame.c (get_frame_id): Update.
10322 (get_frame_base, frame_id_build): Update.
10323 (create_sentinel_frame, legacy_get_prev_frame): Update.
10324 (deprecated_update_frame_base_hack): Update.
10325 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10326 (frame_id_inner): Ditto.
10327
10328 2003-04-09 Andrew Cagney <cagney@redhat.com>
10329
10330 * defs.h (gdb_print_host_address): Make "addr" parameter a
10331 pointer constant.
10332 * utils.c (gdb_print_host_address): Update.
10333
10334 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10335
10336 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10337 register number for R0 is 0.
10338
10339 2003-04-09 J. Brobecker <brobecker@gnat.com>
10340
10341 * frame.h (struct gdbarch): Add opaque structure definition
10342 to avoid a compilation warning on LynxOS 4.0.
10343
10344 2003-04-09 Andrew Cagney <cagney@redhat.com>
10345
10346 * frame.h (struct frame_info): Delete field "pc". Replace
10347 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10348 structure.
10349 * frame.c (frame_pc_unwind): Update.
10350 (create_sentinel_frame): Do not set "pc".
10351 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10352 (get_frame_pc): Call frame_pc_unwind.
10353 (deprecated_update_frame_pc_hack): Update.
10354 (create_new_frame): Use "pc" not "->pc".
10355
10356 2003-04-09 Andrew Cagney <cagney@redhat.com>
10357
10358 * frame.c (get_frame_id): Eliminate code updating "frame".
10359 (legacy_get_prev_frame): Ditto.
10360 (get_frame_base): Return id.base directly.
10361 (deprecated_update_frame_base_hack): Update "id.base".
10362 * frame.h (struct frame_info): Delete field "frame".
10363
10364 2003-04-09 Andrew Cagney <cagney@redhat.com>
10365
10366 * NEWS: Mention that the "Sequent family" is obsolete.
10367 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10368 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10369 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10370 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10371 * config/i386/tm-ptx4.h: Obsolete file.
10372 * config/i386/tm-ptx.h: Obsolete file.
10373 * symm-tdep.c: Obsolete file.
10374 * config/i386/symmetry.mt: Obsolete file.
10375 * config/i386/tm-symmetry.h: Obsolete file.
10376 * symm-nat.c: Obsolete file.
10377 * config/i386/nm-symmetry.h: Obsolete file.
10378 * config/i386/xm-symmetry.h: Obsolete file.
10379 * config/i386/symmetry.mh: Obsolete file.
10380 * config/i386/nm-ptx4.h: Obsolete file.
10381 * config/i386/ptx4.mh: Obsolete file.
10382 * config/i386/ptx.mt: Obsolete file.
10383 * config/i386/ptx.mh: Obsolete file.
10384 * config/i386/xm-ptx4.h: Obsolete file.
10385 * config/i386/xm-ptx.h: Obsolete file.
10386
10387 2003-04-09 Andrew Cagney <cagney@redhat.com>
10388
10389 Obsolete mips*-*-mach3*.
10390 * NEWS: Mention that mips*-*-mach3* is obsolete.
10391 * m3-nat.c: Obsolete file.
10392 * config/nm-m3.h: Obsolete file.
10393 * config/mips/tm-mipsm3.h: Obsolete file.
10394 * config/mips/mipsm3.mt: Obsolete file.
10395 * config/mips/mipsm3.mh: Obsolete file.
10396 * config/mips/xm-mipsm3.h: Obsolete file.
10397 * mipsm3-nat.c: Obsolete file.
10398 * configure.host: Obsolete mips-dec-mach3*.
10399 * configure.tgt: Obsolete mips*-*-mach3*.
10400
10401 2003-04-09 Andrew Cagney <cagney@redhat.com>
10402
10403 * doublest.h: Update copyright.
10404 (deprecated_store_floating, deprecated_extract_floating): Rename
10405 store_floating and extract_floating. Update comments.
10406 * doublest.c: Update copyright.
10407 (extract_floating_by_length): Replace extract_floating.
10408 (store_floating_by_length): Replace store_floating.
10409 (deprecated_extract_floating): New function.
10410 (deprecated_store_floating): New function.
10411 (extract_typed_floating): Call extract_floating_by_length.
10412 (store_typed_floating): Call store_floating_by_length.
10413 * x86-64-tdep.c (x86_64_store_return_value): Update.
10414 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10415 (sh64_extract_return_value): Update.
10416 (sh_sh4_register_convert_to_virtual): Update.
10417 (sh_sh64_register_convert_to_virtual): Update.
10418 (sh_sh4_register_convert_to_raw): Update.
10419 (sh_sh64_register_convert_to_raw): Update.
10420 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10421 (rs6000_register_convert_to_raw): Update.
10422 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10423 (ia64_register_convert_to_raw): Update.
10424 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10425 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10426 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10427 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10428 (alpha_register_convert_to_raw): Update.
10429
10430 2003-04-08 Andrew Cagney <cagney@redhat.com>
10431
10432 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10433 * gdbarch.h, gdbarch.c: Re-generate.
10434 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10435 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10436 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10437 conditionally, use frame_pc_unwind as an alternative. Add
10438 comments.
10439 * arch-utils.c (init_frame_pc_default): Only call
10440 SAVED_PC_AFTER_CALL when available.
10441
10442 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10443
10444 * infrun.c (stop_soon): Rename from stop_soon_quietly.
10445 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10446 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10447 (start_remote): Ditto.
10448 (handle_inferior_event): Ditto.
10449 (save_inferior_status): Ditto.
10450 (restore_inferior_status): Ditto.
10451 * infcmd.c (attach_command): Ditto.
10452 * fork-child.c (startup_inferior): Ditto.
10453 * inferior.h (stop_soon): Rename from stop_soon_quietly.
10454 * alpha-tdep.c (heuristic_proc_start): Ditto.
10455 * mips-tdep.c (heuristic_proc_start): Ditto.
10456 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10457 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10458 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10459 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10460 * remote-vx.c (vx_create_inferior): Ditto.
10461
10462 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10463
10464 * infrun.c (stop_soon_quietly): Make it an enum, to better
10465 override the default behavior of handle_inferior_event.
10466 (clear_proceed_status): Update uses of stop_soon_quietly to
10467 reflect that it is now an enum.
10468 (start_remote): Ditto.
10469 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10470 is set to handle the new GNU/Linux kernel behavior for
10471 attach/sigstop. Update uses of stop_soon_quietly.
10472 * inferior.h (enum stop_kind): New enum.
10473 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10474 Reset normal handle_inferior_event behavior, afterwards.
10475 * fork-child.c (startup_inferior): Update.
10476 * alpha-tdep.c (heuristic_proc_start): Update.
10477 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10478 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10479 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10480 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10481 * remote-vx.c (vx_create_inferior): Update.
10482 * mips-tdep.c (heuristic_proc_start): Update.
10483
10484 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10485
10486 * disasm.c (dump_insns): Move variables inside loop, or they will
10487 be freed more than once, causing wild memory corruptions.
10488 (gdb_disassembly): Look for the substring "-thread",
10489 instead of "-threads" in the target name, to make sure to find
10490 the 'multi-thread' target. Also, make sure we do the right thing
10491 with the "core" target.
10492
10493 2003-04-07 Kevin Buettner <kevinb@redhat.com>
10494
10495 * mips-tdep.c (mips_print_fp_register): New function, created from
10496 do_fp_register_row(). Registers are now (also) printed as hex.
10497 Only one register is printed per row.
10498 (mips_print_register, do_fp_register_row): Print floating point
10499 registers with mips_print_fp_register().
10500
10501 2003-04-06 Andrew Cagney <cagney@redhat.com>
10502
10503 * valprint.h (inspect_it): Add extern declaration.
10504 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10505 (selectors_info, classes_info): Ditto.
10506 (find_objc_msgcall): Fix indentation.
10507 (objc_printstr): Delete extern declarations.
10508
10509 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10510
10511 2003-04-06 Andrew Cagney <cagney@redhat.com>
10512
10513 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10514 Update comment.
10515 * frame.c (legacy_saved_regs_this_id): Update.
10516 (legacy_get_prev_frame): Update.
10517 * xstormy16-tdep.c: Update comment.
10518 * sparc-tdep.c (sparc_frame_chain): Update comment.
10519 * blockframe.c (legacy_frame_chain_valid): Update.
10520
10521 2003-04-06 Andrew Cagney <cagney@redhat.com>
10522
10523 * valprint.c (val_print_type_code_int): Delete #ifdef
10524 PRINT_TYPELESS_INTEGER code.
10525
10526 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10527 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10528 multi-arch definition.
10529 * gdbarch.h: Re-generate.
10530
10531 2003-04-05 Andrew Cagney <cagney@redhat.com>
10532
10533 Eliminate FRAME_FIND_SAVED_REGS.
10534 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10535 Change FSR parameter to a pointer.
10536 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10537 Assume FSR parameter is a pointer.
10538 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10539 Make fsr a pointer.
10540 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10541 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10542 saved_regs a pointer.
10543 (hppa_frame_saved_pc): Ditto.
10544 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10545 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10546 pointer.
10547 (restore_pc_queue): Make fsr a pointer.
10548 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10549 (hppa_frame_chain): Make saved_regs a pointer, call
10550 hppa_frame_init_saved_regs.
10551 * sparc-tdep.c: Include "gdb_assert.h".
10552 (sparc_frame_find_saved_regs): Replace internal_error with
10553 gdb_assert.
10554 * remote-vxsparc.c (vx_read_register): Delete reference to
10555 FRAME_FIND_SAVED_REGS.
10556 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10557 * gdbarch.h: Regenerate.
10558 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10559 (deprecated_get_frame_saved_regs): Delete declaration.
10560 (struct frame_saved_regs): Delete definition.
10561 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10562 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10563 (hppa_frame_find_saved_regs): Delete declaration.
10564 (FRAME_FIND_SAVED_REGS): Delete macro.
10565 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10566 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10567 FRAME_FIND_SAVED_REGS in comment.
10568
10569 2003-04-05 Andrew Cagney <cagney@redhat.com>
10570
10571 * frame.c (frame_func_unwind, get_frame_func): New functions.
10572 * frame.h (get_frame_func, frame_func_unwind): Declare.
10573 (struct frame_info): Add field "prev_func" for caching the
10574 previous frame's function address.
10575 * arm-tdep.c (arm_frameless_function_invocation): Combine
10576 get_pc_function_start and get_frame_pc into get_frame_func.
10577 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10578 (sh64_nofp_frame_init_saved_regs): Ditto.
10579 * s390-tdep.c (s390_function_start): Ditto.
10580 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10581 (rs6000_frameless_function_invocation): Ditto.
10582 (rs6000_frame_saved_pc): Ditto.
10583 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10584 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10585 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10586 (i386_frame_init_saved_regs): Ditto.
10587 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10588 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10589 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10590 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10591 * blockframe.c (frameless_look_for_prologue): Ditto.
10592
10593 2003-04-05 Andrew Cagney <cagney@redhat.com>
10594
10595 * frame.c (legacy_get_prev_frame): Link prev to next at the
10596 function start. Update comments.
10597
10598 2003-04-05 Andrew Cagney <cagney@redhat.com>
10599
10600 * frame.c (get_frame_id): Update comment.
10601 (legacy_get_prev_frame): Update comment.
10602 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10603 * gdbarch.h: Regenerate.
10604 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10605 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10606
10607 2003-04-05 Andrew Cagney <cagney@redhat.com>
10608
10609 * stack.c (print_frame_info): Use get_frame_pc.
10610
10611 2003-04-04 Andrew Cagney <cagney@redhat.com>
10612
10613 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10614 the frame's type from the unwinder.
10615 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10616 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10617 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10618 (get_frame_base_address): Use get_frame_type.
10619 (get_frame_locals_address, get_frame_args_address): Ditto.
10620 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10621 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10622 (struct frame_info): Add comment explaining why the frame contains
10623 a "type" field.
10624 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10625 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10626 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10627 NORMAL_FRAME.
10628 * frame-unwind.h: Include "frame.h".
10629 (struct frame_unwind): Add "type" field.
10630 * Makefile.in (frame_unwind_h): Add $(frame_h).
10631
10632 2003-04-04 Andrew Cagney <cagney@redhat.com>
10633
10634 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10635 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10636 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10637 get_frame_base.
10638 (d10v_unwind_dummy_id): Use frame_id_build.
10639 * frame.c (find_frame_sal): Use get_frame_pc.
10640 (create_new_frame): Use deprecated_update_frame_pc_hack and
10641 deprecated_update_frame_base_hack.
10642 (create_sentinel_frame): Add comment about ->pc going away.
10643 (get_prev_frame): Add comment about ->pc going away.
10644 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10645 frame_id_build, deprecated_update_frame_pc_hack and
10646 deprecated_update_frame_base_hack.
10647 (select_frame): Use get_frame_pc.
10648 (legacy_saved_regs_this_id): Use frame_id_build.
10649
10650 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10651
10652 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10653 signed integer case.
10654 (classify_argument): Handle enumerations and references.
10655
10656 2003-04-04 Andrew Cagney <cagney@redhat.com>
10657
10658 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10659 ID to NULL.
10660
10661 2003-04-01 Adam Fedor <fedor@gnu.org>
10662
10663 * gdb/objc-lang.c (selectors_info): Replace calls to
10664 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10665 SYMBOL_NATURAL_NAME.
10666 (classes_info, find_methods): Likewise.
10667
10668 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10669
10670 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10671 ``mach'' to the value determined by bfd_default_set_arch_mach().
10672
10673 2003-04-02 Bob Rossi <bob_rossi@cox.net>
10674
10675 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10676 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10677 (mi-cmd-file.o): Update dependencies.
10678
10679 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10680
10681 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10682 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10683
10684 2003-04-01 Adam Fedor <fedor@gnu.org>
10685
10686 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10687 * language.h (struct language_defn): Add la_demangle.
10688 (language_demangle): Declare.
10689 * language.c (language_demangle): New function.
10690 (unk_lang_demangle): Likewise.
10691 (unknown_language_defn, auto_language_defn, local_language_defn):
10692 Add ukn_lang_demangle.
10693 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10694 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10695 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10696 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10697 * jv-lang.c (java_demangle): New function
10698 (java_language_defn): Use it for la_demangle element.
10699 * objc-lang.c (objc_demangle): Add options argument
10700 (objc_language_defn): Use objc_demangle for la_demangle element.
10701 * maint.c (maintenance_demangle): Replace switch with
10702 call to language_demangle.
10703 * utils.c (fprintf_symbol_filtered): Likewise.
10704
10705 2003-04-01 Andrew Cagney <cagney@redhat.com>
10706
10707 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10708 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10709 PRINT_TYPELESS_INTEGER.
10710 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10711 PUSH_RETURN_ADDRESS.
10712
10713 2003-04-01 Andrew Cagney <cagney@redhat.com>
10714
10715 * Makefile.in (d10v-tdep.o): Update dependencies.
10716 * d10v-tdep.c: Include "frame-base.h".
10717 (d10v_frame_unwind): Make constant.
10718 (d10v_frame_base_address): New function.
10719 (d10v_frame_base): New variable.
10720 (d10v_gdbarch_init): Set frame_base default.
10721 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10722 comment for base.
10723 (d10v_frame_unwind_cache): Set and use "prev_sp".
10724 (d10v_frame_this_id): Use the previous frame's inner most stack
10725 address and this frame's func address for the frame ID. Use
10726 frame_id_build. Don't analyze beyond the current instruction.
10727
10728 2003-04-01 Andrew Cagney <cagney@redhat.com>
10729
10730 * frame.h (get_frame_locals_address, get_frame_args_address):
10731 Refer to the base address, instead of the address of the first
10732 local or parameter.
10733
10734 2003-04-01 Andrew Cagney <cagney@redhat.com>
10735
10736 Add frame debug info addresses:
10737 * frame-base.c: New file.
10738 * frame-base.h: New file.
10739 * frame.h (struct frame_base): Add opaque declaration.
10740 (get_frame_base): Update comment.
10741 (get_frame_base_address): Declare.
10742 (get_frame_locals_address): Declare.
10743 (get_frame_args_address): Declare.
10744 (struct frame_info): Add "base" and "base_cache". Update
10745 comments on the unwinder.
10746 * frame.c: Include "frame-base.h".
10747 (get_frame_locals_address): New function.
10748 (get_frame_base_address): New function.
10749 (get_frame_args_address): New function.
10750 * findvar.c (read_var_value): Use get_frame_locals_address and
10751 get_frame_args_address.
10752 * stack.c (frame_info): Use get_frame_locals_address and
10753 get_frame_args_address.
10754 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10755 moved to "frame-base.c".
10756 * printcmd.c (print_frame_nameless_args): Ditto.
10757 * symtab.h (address_class): Update comments.
10758 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10759 get_frame_base_address.
10760 * dwarf2expr.c (execute_stack_op): Ditto.
10761 * Makefile.in (frame_base_h): Define.
10762 (frame.o): Update dependencies.
10763 (frame-base.o): Add dependencies.
10764 (SFILES): Add frame-base.c.
10765 (COMMON_OBS): Add frame-base.o.
10766
10767 2003-04-01 Andrew Cagney <cagney@redhat.com>
10768
10769 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10770 CALL_DUMMY_LENGTH): Ditto.
10771 * gdbarch.c: Re-generate.
10772 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10773 (CALL_DUMMY_LENGTH): Delete macro.
10774 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10775 * arm-tdep.c (arm_gdbarch_init): Ditto.
10776 * avr-tdep.c (avr_gdbarch_init): Ditto.
10777 * cris-tdep.c (cris_gdbarch_init): Ditto.
10778 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10779 * frv-tdep.c (frv_gdbarch_init): Ditto.
10780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10781 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10782 * i386-tdep.c (i386_gdbarch_init): Ditto.
10783 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10786 * mips-tdep.c (mips_gdbarch_init): Ditto.
10787 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10788 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10789 * s390-tdep.c (s390_gdbarch_init): Ditto.
10790 * sh-tdep.c (sh_gdbarch_init): Ditto.
10791 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10792 * v850-tdep.c (v850_gdbarch_init): Ditto.
10793 * vax-tdep.c (vax_gdbarch_init): Ditto.
10794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10795
10796 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10797
10798 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10799
10800 2003-04-01 Andrew Cagney <cagney@redhat.com>
10801
10802 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10803 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10804 * gdbarch.h, gdbarch.c: Re-generate.
10805 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10806 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10807 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10808 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10809 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10810 * infcmd.c (run_stack_dummy): Simplify assuming
10811 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10812 * infrun.c (handle_inferior_event): Ditto.
10813 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10814 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10815 * arm-tdep.c (arm_gdbarch_init): Ditto.
10816 * avr-tdep.c (avr_gdbarch_init): Ditto.
10817 * cris-tdep.c (cris_gdbarch_init): Ditto.
10818 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10819 * frv-tdep.c (frv_gdbarch_init): Ditto.
10820 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10821 * i386-tdep.c (i386_gdbarch_init): Ditto.
10822 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10824 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10826 * mips-tdep.c (mips_gdbarch_init): Ditto.
10827 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10828 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10829 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10830 * s390-tdep.c (s390_gdbarch_init): Ditto.
10831 * sh-tdep.c (sh_gdbarch_init): Ditto.
10832 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10833 * v850-tdep.c (v850_gdbarch_init): Ditto.
10834 * vax-tdep.c (vax_gdbarch_init): Ditto.
10835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10836
10837 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10838
10839 * symfile.c (symfile_relocate_debug_section): Update call to
10840 bfd_simple_get_relocated_section_contents.
10841
10842 2003-03-31 Andrew Cagney <cagney@redhat.com>
10843
10844 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10845 * gdbarch.h, gdbarch.c: Regenerate.
10846 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10847 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10848 available.
10849 * frame.h (generic_fix_call_dummy): Delete declaration.
10850 * dummy-frame.h: Update comment.
10851 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10853 fix_call_dummy.
10854 * sh-tdep.c (sh_gdbarch_init): Ditto.
10855 * s390-tdep.c (s390_gdbarch_init): Ditto.
10856 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10857 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10859 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10860 * i386-tdep.c (i386_gdbarch_init): Ditto.
10861 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10862 * frv-tdep.c (frv_gdbarch_init): Ditto.
10863 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10864 * cris-tdep.c (cris_gdbarch_init): Ditto.
10865 * avr-tdep.c (avr_gdbarch_init): Ditto.
10866 * arm-tdep.c (arm_gdbarch_init): Ditto.
10867
10868 2003-03-31 J. Brobecker <brobecker@gnat.com>
10869
10870 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10871 (INIT_FRAME_AP): Likewise.
10872 (EXTRA_FRAME_INFO): Likewise.
10873
10874 2003-03-31 Andrew Cagney <cagney@redhat.com>
10875
10876 * gdbarch.sh: Include "symfile.h".
10877 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10878 * gdbarch.h, gdbarch.c: Re-generate.
10879 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10881 call_dummy_address, the default is at entry_point_address.
10882 * v850-tdep.c (v850_gdbarch_init): Ditto.
10883 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10884 * sh-tdep.c (sh_gdbarch_init): Ditto.
10885 * s390-tdep.c (s390_gdbarch_init): Ditto.
10886 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10888 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10889 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10890 * i386-tdep.c (i386_gdbarch_init): Ditto.
10891 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10892 * frv-tdep.c (frv_gdbarch_init): Ditto.
10893 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10894 * cris-tdep.c (cris_gdbarch_init): Ditto.
10895 * arm-tdep.c (arm_gdbarch_init): Ditto.
10896
10897 2003-03-31 Andrew Cagney <cagney@redhat.com>
10898
10899 * gdbarch.sh (CALL_DUMMY_P): Delete.
10900 * gdbarch.h, gdbarch.c: Re-generate.
10901 * inferior.h (CALL_DUMMY_P): Delete macro.
10902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10903 * vax-tdep.c (vax_gdbarch_init): Update.
10904 * v850-tdep.c (v850_gdbarch_init): Update.
10905 * sparc-tdep.c (sparc_gdbarch_init): Update.
10906 * sh-tdep.c (sh_gdbarch_init): Update.
10907 * s390-tdep.c (s390_gdbarch_init): Update.
10908 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10909 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10910 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10911 * mips-tdep.c (mips_gdbarch_init): Update.
10912 * mcore-tdep.c (mcore_gdbarch_init): Update.
10913 * m68k-tdep.c (m68k_gdbarch_init): Update.
10914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10915 * ia64-tdep.c (ia64_gdbarch_init): Update.
10916 * i386-tdep.c (i386_gdbarch_init): Update.
10917 * h8300-tdep.c (h8300_gdbarch_init): Update.
10918 * frv-tdep.c (frv_gdbarch_init): Update.
10919 * d10v-tdep.c (d10v_gdbarch_init): Update.
10920 * cris-tdep.c (cris_gdbarch_init): Update.
10921 * breakpoint.c (deprecated_frame_in_dummy): Update.
10922 * avr-tdep.c (avr_gdbarch_init): Update.
10923 * alpha-tdep.c (alpha_gdbarch_init): Update.
10924 * arm-tdep.c (arm_gdbarch_init): Update.
10925 * dummy-frame.c (dummy_frame_this_id): Update comments.
10926 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10927 * frame.c (legacy_get_prev_frame): Ditto.
10928 * valops.c (call_function_by_hand): Delete function.
10929 (hand_function_call): Rename to call_function_by_hand
10930
10931 2003-03-30 Andrew Cagney <cagney@redhat.com>
10932
10933 2002-11-10 Klee Dienes <kdienes@apple.com>
10934 * value.h (struct value): Update comment.
10935
10936 2003-03-30 Andrew Cagney <cagney@redhat.com>
10937
10938 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10939 D10V_FP_REGNUM.
10940 (d10v_gdbarch_init): Do not set fp_regnum.
10941
10942 * frame.c (get_frame_base): Force ID initialization.
10943 (get_prev_frame): Move computation of the frame ID from here ...
10944 (get_frame_id): ... to here.
10945 (legacy_get_prev_frame): Mark the frame ID as valid.
10946 * frame.h (struct frame_info): Add field "id_p".
10947
10948 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10949
10950 * i386-tdep.c (i386_store_struct_return): Removed.
10951 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10952
10953 2003-03-30 Andrew Cagney <cagney@redhat.com>
10954
10955 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10956 * gdbarch.h, gdbarch.c: Regenerate.
10957 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10959 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10960 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10961 * i386-tdep.c (i386_gdbarch_init): Ditto.
10962 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10963 * cris-tdep.c (cris_gdbarch_init): Ditto.
10964 * vax-tdep.c (vax_gdbarch_init): Ditto.
10965 * s390-tdep.c (s390_gdbarch_init): Ditto.
10966 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10967 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10968 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10969 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10970 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10971 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10972 * sparc-tdep.c (sparc_gdbarch_init): Update.
10973 * sh-tdep.c (sh_gdbarch_init): Update.
10974 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10975 * mips-tdep.c (mips_gdbarch_init): Update.
10976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10977 * ia64-tdep.c (ia64_gdbarch_init): Update.
10978 * frv-tdep.c (frv_gdbarch_init): Update.
10979 * avr-tdep.c (avr_gdbarch_init): Update.
10980 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10981 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10982 instead of when push_dummy_call is not available.
10983
10984 2003-03-30 Andrew Cagney <cagney@redhat.com>
10985
10986 * infttrace.c: Include "gdbthread.h".
10987 (parent_attach_all): Fix function signature.
10988 (call_ptrace): Update call.
10989 * Makefile.in (infttrace.o): Update dependencies.
10990
10991 2003-03-30 Andrew Cagney <cagney@redhat.com>
10992
10993 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10994 PUSH_RETURN_ADDRESS.
10995 * gdbarch.h, gdbarch.c: Regenerate.
10996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10997 * x86-64-tdep.c (x86_64_init_abi): Update.
10998 * v850-tdep.c (v850_gdbarch_init): Update.
10999 * sparc-tdep.c (sparc_gdbarch_init): Update.
11000 * sh-tdep.c (sh_gdbarch_init): Update.
11001 * s390-tdep.c (s390_gdbarch_init): Update.
11002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11003 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11004 * mips-tdep.c (mips_gdbarch_init): Update.
11005 * mcore-tdep.c (mcore_gdbarch_init): Update.
11006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11007 * ia64-tdep.c (ia64_gdbarch_init): Update.
11008 * i386-tdep.c (i386_gdbarch_init): Update.
11009 * h8300-tdep.c (h8300_gdbarch_init): Update.
11010 * frv-tdep.c (frv_gdbarch_init): Update.
11011 * cris-tdep.c (cris_gdbarch_init): Update.
11012 * avr-tdep.c (avr_gdbarch_init): Update.
11013 * arm-tdep.c (arm_gdbarch_init): Update.
11014 * valops.c (hand_function_call): Update.
11015
11016 2003-03-29 Andrew Cagney <cagney@redhat.com>
11017
11018 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11019 sizeof_call_dummy_words.
11020 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11021 define.
11022 * gdbarch.h: Regenerate.
11023
11024 2003-03-29 Andrew Cagney <cagney@redhat.com>
11025
11026 * infttrace.h: New file.
11027 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11028 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11029 (hpread_read_doc_function_type): Detect an initialized type1.
11030 (hpread_quick_traverse): Initialize mod_name_string.
11031 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11032 (som_solib_get_solib_by_pc): Declare.
11033 (so_lib_thread_start_addr): Declare.
11034 (no_shared_libraries): Declare.
11035 * somread.c (init_import_symbols): Make static. Add forward
11036 declaration.
11037 * config/pa/nm-hppah.h: Include "infttrace.h" for
11038 parent_attach_all.
11039 (hppa_insert_hw_watchpoint): Declare.
11040 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11041 * hppah-nat.c: Include "gdb_string.h".
11042 (parent_attach_all): Delete extern declaration, moved to
11043 "infttrace.h".
11044 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11045 int.
11046 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11047 * Makefile.in (infttrace_h): Define.
11048 (hpread.o): Update dependencies.
11049 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11050 * hppa-hpux-tdep.c: Include "gdb_string.h".
11051 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11052 * infrun.c (handle_inferior_event): Always initialize
11053 stepped_after_stopped_by_watchpoint. Add default and remove
11054 fallthrough in switch statement.
11055 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11056 parameter to int.
11057 (hppa_remove_hw_watchpoint): Ditto.
11058
11059 2003-03-29 Andrew Cagney <cagney@redhat.com>
11060
11061 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11062 offset.
11063
11064 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
11065
11066 * arm-tdep.c (arm_push_arguments): Delete.
11067 (struct stack_item): New type.
11068 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11069 (arm_store_struct_return): Delte.
11070 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11071 arm_push_arguments or arm_store_struct_return.
11072
11073 2003-03-28 Andrew Cagney <cagney@redhat.com>
11074
11075 * Makefile.in (d10v-tdep.o): Update dependencies.
11076 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11077 * d10v-tdep.c: Include "remote.h".
11078 (target_resume_hook): Delete extern declaration.
11079 (target_wait_loop_hook): Ditto.
11080 (tdisassemble_command): Eliminate assignment in "if" conditional.
11081 (d10v_ts2_register_sim_regno): Eliminate call to
11082 legacy_register_sim_regno.
11083 (d10v_ts3_register_sim_regno): Ditto.
11084
11085 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11086
11087 * thread.c: Reindented.
11088 * lin-lwp.c: Ditto.
11089 * linux-proc.c: Ditto.
11090
11091 2003-03-28 Bob Rossi <bob_rossi@cox.net>
11092
11093 * MAINTAINERS (write after approval): Add myself.
11094
11095 2003-03-27 Theodore A. Roth <troth@openavr.org>
11096
11097 * objc-exp.y: Add missing semi-colons.
11098
11099 2003-03-27 Andrew Cagney <cagney@redhat.com>
11100
11101 * regcache.c (write_sp): Delete function and references.
11102 * inferior.h (write_sp): Delete declaration.
11103 * valops.c (hand_function_call): Replace write_sp with
11104 TARGET_WRITE_SP.
11105 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11106 (sparc_pop_frame): Ditto.
11107
11108 2003-03-27 Andrew Cagney <cagney@redhat.com>
11109
11110 * NEWS: Mention removal of support for hppa*-*-bsd* and
11111 hppa*-*-osf* natives, and hppa*-*-pro* target.
11112 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11113 * config/pa/xm-pa.h: Obsolete file.
11114 * config/pa/xm-hppab.h: Obsolete file.
11115 * config/pa/nm-hppab.h: Obsolete file.
11116 * config/pa/tm-hppab.h: Obsolete file.
11117 * config/pa/tm-hppao.h: Obsolete file.
11118 * config/pa/nm-hppao.h: Obsolete file.
11119 * config/pa/tm-pro.h: Obsolete file.
11120 * config/pa/hppaosf.mt: Obsolete file.
11121 * config/pa/hppaosf.mh: Obsolete file.
11122 * config/pa/hppapro.mt: Obsolete file.
11123 * config/pa/hppabsd.mt: Obsolete file.
11124 * config/pa/hppabsd.mh: Obsolete file.
11125 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11126 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11127 hppa*-*-osf*.
11128
11129 2003-03-27 Andrew Cagney <cagney@redhat.com>
11130
11131 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11132 push_arguments. Don't set push_return_address or write_sp.
11133 (d10v_push_dummy_call): Replace d10v_push_arguments.
11134 (d10v_push_return_address, d10v_write_sp): Delete function,
11135 handled by push_dummy_call.
11136
11137 2003-03-26 Andrew Cagney <cagney@redhat.com>
11138
11139 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11140 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11141 regcache and dummy_addr parameters.
11142 * gdbarch.h, gdbarch.c: Re-generate.
11143 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11144 available; assume it will handle stack alignment and return
11145 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11146 legacy_push_arguments.
11147 (legacy_push_arguments): Rename default_push_arguments.
11148 * value.h (legacy_push_arguments): Rename default_push_arguments.
11149 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11150 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11151 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11152 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11153 * config/i386/tm-symmetry.h: Update.
11154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11155 * x86-64-tdep.c (x86_64_init_abi): Update.
11156 * v850-tdep.c (v850_gdbarch_init): Update.
11157 * sparc-tdep.c (sparc_gdbarch_init): Update.
11158 * sh-tdep.c (sh_gdbarch_init): Update.
11159 * s390-tdep.c (s390_gdbarch_init): Update.
11160 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11162 * mips-tdep.c (mips_gdbarch_init): Update.
11163 * mcore-tdep.c (mcore_gdbarch_init): Update.
11164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11165 * ia64-tdep.c (ia64_gdbarch_init): Update.
11166 * i386-tdep.c (i386_gdbarch_init): Update.
11167 * hppa-tdep.c (hppa_gdbarch_init): Update.
11168 * h8300-tdep.c (h8300_gdbarch_init): Update.
11169 * frv-tdep.c (frv_gdbarch_init): Update.
11170 * d10v-tdep.c (d10v_gdbarch_init): Update.
11171 * cris-tdep.c (cris_gdbarch_init): Update.
11172 * avr-tdep.c (avr_gdbarch_init): Update.
11173 * arm-tdep.c (arm_gdbarch_init): Update.
11174 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11175 * alpha-tdep.c (alpha_gdbarch_init): Update.
11176
11177 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11178
11179 * signals/signals.c (do_target_signal_to_host): Correct realtime
11180 signal range test.
11181
11182 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11183
11184 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11185 (struct sal_chain, map_catch_names): Remove.
11186 (catch_exception_command_1): Don't call
11187 handle_gnu_4_16_catch_command.
11188
11189 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11190
11191 From Mark Dettinger <dettinge@de.ibm.com>:
11192 * dwarf2cfi.c (read_2u): Increment pointer by two.
11193
11194 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11195
11196 * signals/signals.c: Fix typos in last change.
11197
11198 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11199
11200 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11201 not already defined. Use __SIGRTMIN if available.
11202 (target_signal_from_host): Remove SIGRTMIN block.
11203 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11204 the signal is within the realtime range.
11205
11206 2003-03-25 Adam Fedor <fedor@gnu.org>
11207
11208 * Makefile.in (infrun.o): Add $(language_h)
11209 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11210 for language specific trampolines.
11211 * language.h (struct language_defn): Add skip_trampoline.
11212 (skip_language_trampoline): Declare.
11213 * language.c (unk_lang_trampoline, skip_language_trampoline):
11214 New functions.
11215 (unknown_language_defn, auto_language_defn, local_language_defn):
11216 Add ukn_lang_trampoline.
11217 * ada-lang.c (ada_language_defn): Add NULL for language
11218 specific skip_trampoline.
11219 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11220 scm-lang.c: Likewise.
11221 * objc-lang.c (objc_skip_trampoline): New function.
11222 (objc_language_defn): Add objc_skip_trampoline.
11223
11224 2003-03-25 Andrew Cagney <cagney@redhat.com>
11225
11226 * frame.c (get_prev_frame): Delay validating a frame's ID -
11227 non-NULL, didn't go backwards - until an attempt to unwind it to
11228 the previous frame.
11229
11230 2003-03-25 Andrew Cagney <cagney@redhat.com>
11231
11232 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11233 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11234 * gdbarch.h, gdbarch.c: Re-generate.
11235 * config/sparc/tm-sparc.h
11236 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11237 * sparc-tdep.c (sparc_gdbarch_init): Set
11238 deprecated_extra_stack_alignment_needed.
11239 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11241 extra_stack_alignment_needed.
11242 * v850-tdep.c (v850_gdbarch_init): Ditto.
11243 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11244 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11245 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11246 * cris-tdep.c (cris_gdbarch_init): Ditto.
11247 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11248 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11249
11250 2003-03-25 Andrew Cagney <cagney@redhat.com>
11251
11252 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11253 STORE_STRUCT_RETURN.
11254 * gdbarch.h, gdbarch.c: Regenerate.
11255 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11256 (d10v_push_arguments): Set the struct return register.
11257 (d10v_gdbarch_init): Update.
11258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11259 * x86-64-tdep.c (x86_64_init_abi): Update.
11260 * vax-tdep.c (vax_gdbarch_init): Update.
11261 * v850-tdep.c (v850_gdbarch_init): Update.
11262 * sparc-tdep.c (sparc_gdbarch_init): Update.
11263 * sh-tdep.c (sh_gdbarch_init): Update.
11264 * s390-tdep.c (s390_gdbarch_init): Update.
11265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11266 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11267 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11268 * mips-tdep.c (mips_gdbarch_init): Update.
11269 * mcore-tdep.c (mcore_gdbarch_init): Update.
11270 * m68k-tdep.c (m68k_gdbarch_init): Update.
11271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11272 * ia64-tdep.c (ia64_gdbarch_init): Update.
11273 * i386-tdep.c (i386_gdbarch_init): Update.
11274 * hppa-tdep.c (hppa_gdbarch_init): Update.
11275 * h8300-tdep.c (h8300_gdbarch_init): Update.
11276 * frv-tdep.c (frv_gdbarch_init): Update.
11277 * cris-tdep.c (cris_gdbarch_init): Update.
11278 * avr-tdep.c (avr_gdbarch_init): Update.
11279 * arm-tdep.c (arm_gdbarch_init): Update.
11280 * alpha-tdep.c (alpha_gdbarch_init): Update.
11281
11282 2003-03-25 Andrew Cagney <cagney@redhat.com>
11283
11284 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11285 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11286 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11287 * gdbarch.h, gdbarch.c: Regenerate.
11288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11289 call_dummy_stack_adjust_p.
11290 * vax-tdep.c (vax_gdbarch_init): Ditto.
11291 * v850-tdep.c (v850_gdbarch_init): Ditto.
11292 * sh-tdep.c (sh_gdbarch_init): Ditto.
11293 * s390-tdep.c (s390_gdbarch_init): Ditto.
11294 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11295 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11296 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11297 * mips-tdep.c (mips_gdbarch_init): Ditto.
11298 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11299 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11301 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11302 * i386-tdep.c (i386_gdbarch_init): Ditto.
11303 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11304 * frv-tdep.c (frv_gdbarch_init): Ditto.
11305 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11306 * cris-tdep.c (cris_gdbarch_init): Ditto.
11307 * avr-tdep.c (avr_gdbarch_init): Ditto.
11308 * arm-tdep.c (arm_gdbarch_init): Ditto.
11309 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11310 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11311 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11312 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11313 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11314 call_dummy_stack_adjust_p.
11315 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11316 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11317 * sparc-tdep.c (sparc32_push_arguments): Update.
11318 * valops.c (hand_function_call): Update.
11319
11320 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11321
11322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11323 set_gdbarch_char_signed.
11324
11325 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11326
11327 PR cli/548
11328 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11329
11330 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11331
11332 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11333 (_initialize_arm_tdep): Don't set tm_print_insn.
11334
11335 2003-03-24 Adam Fedor <fedor@gnu.org>
11336
11337 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11338 * objc-lang.h: Add multiple inclusion protection.
11339 (start_msglist, add_msglist, end_msglist): Additional declarations.
11340
11341 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11342
11343 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11344 value was renamed to ARM_FLOAT_SOFT_FPA.
11345
11346 2003-03-23 Andrew Cagney <cagney@redhat.com>
11347
11348 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11349 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11350 * gdbarch.h, gdbarch.c: Regenerate.
11351 * valops.c (hand_function_call): Update.
11352 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11353 * frame.c (legacy_saved_regs_this_id): Update.
11354 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11355 * dummy-frame.h: Update.
11356 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11357 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11358 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11359 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11360 * config/m68k/tm-sun3.h: Update.
11361 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11362 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11363 * x86-64-tdep.c (x86_64_init_abi): Update.
11364 * vax-tdep.c (vax_gdbarch_init): Update.
11365 * v850-tdep.c (v850_gdbarch_init): Update.
11366 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11367 * sh-tdep.c (sh_gdbarch_init): Update.
11368 * s390-tdep.c (s390_gdbarch_init): Update.
11369 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11370 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11371 (frame_get_saved_regs): Update.
11372 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11373 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11374 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11375 * mips-tdep.c (mips_gdbarch_init): Update.
11376 * mcore-tdep.c (mcore_gdbarch_init): Update.
11377 * m68k-tdep.c (m68k_gdbarch_init): Update.
11378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11379 * ia64-tdep.c (ia64_gdbarch_init): Update.
11380 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11381 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11382 (i386_interix_back_one_frame): Update.
11383 * hppa-tdep.c (hppa_gdbarch_init): Update.
11384 (hppa_init_extra_frame_info): Update.
11385 * h8300-tdep.c (h8300_gdbarch_init): Update.
11386 * frv-tdep.c (frv_gdbarch_init): Update.
11387 * cris-tdep.c (cris_gdbarch_init): Update.
11388 * avr-tdep.c (avr_gdbarch_init): Update.
11389 * arm-tdep.c (arm_gdbarch_init): Update.
11390 * alpha-tdep.c (alpha_gdbarch_init): Update.
11391
11392 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11393
11394 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11395 (arm_get_fp_model): Declare.
11396 * arm-tdep.c (fp_model_strings): New string array.
11397 (arm_fp_model, current_fp_model): New variables.
11398 (arm_get_fp_model): New function.
11399 (arm_set_fp): New function.
11400 (set_fp_model_sfunc): New function.
11401 (show_fp_model): New function.
11402 (_initialize_arm_tdep): Add new command to set/show the FPU.
11403 (arm_extract_return_value): Use arm_get_fp_model.
11404 (arm_store_return_value): Likewise.
11405 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11406 to initialize the floating-point data types.
11407 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11408 model is FPA.
11409
11410 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11411
11412 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11413 the current setting of each value.
11414 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11415 new_set and new_show. Use add_setshow_cmd_full and
11416 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11417 commands and add new version as subcommands of "set/show arm".
11418
11419 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11420
11421 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11422 (set_arm_command, show_arm_command): New functions.
11423 (_initialize_arm_tdep): Add them.
11424 (num_disassembly_options): Renamed from num_flavor_options.
11425 (valid_disassembly_styles): Renamed from valid_flavors.
11426 (disassembly_style): Renamed from disassembly_flavor.
11427 (set_disassembly_style_sfunc): Renamed from
11428 set_disassembly_flavor_sfunc.
11429 (set_disassembly_style): Renamed from set_disassembly_flavor.
11430 (arm_othernames): Updated.
11431 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11432 command. Add "set/show arm disassembly" commands. Deprecate
11433 "othernames" command.
11434
11435 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11436
11437 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11438 (arm-tdep.o): Depend on elf_arm_h.
11439
11440 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11441
11442 * Makefile.in (coff_internal_h): Define.
11443 (arm-tdep.o): Update dependencies.
11444
11445 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11446
11447 * arm-tdep.c (prologue_cache): Delete.
11448 (check_prologue_cache, save_prologue_cache): Delete.
11449 (arm_scan_prologue): Don't check or update the prologue_cache.
11450 (arm_gdb_arch_init): Don't initialize it.
11451 (_initialize_arm_tdep): Likewise.
11452
11453 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11454
11455 * MAINTAINERS (tui): Maintainer of tui code.
11456
11457 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
11458
11459 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11460 (i386-cygwin-tdep.o): Add dependencies.
11461 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11462 * i386-cygwin-tdep.c: New file.
11463 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11464 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11465
11466 2003-03-20 Andrew Cagney <cagney@redhat.com>
11467
11468 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11469 (handle_inferior_event): Remove code calling
11470 DYNAMIC_TRAMPOLINE_NEXTPC.
11471
11472 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11473 already has a full path.
11474
11475 * main.c (gdb_main): Return 1.
11476 (captured_main): Call error to report an invalid interpreter.
11477
11478 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11479 * alpha-osf1-tdep.c: Include "gdb_string.h".
11480
11481 2003-03-19 J. Brobecker <brobecker@gnat.com>
11482
11483 Continuing work to convert the hppa targets to multiarch partial.
11484
11485 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11486 method, now that hppa_push_dummy_frame has a conformant prototype.
11487 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11488 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11489 for the switch to multiarch partial.
11490
11491 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11492
11493 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11494 when iss is issNull.
11495
11496 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11497
11498 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11499 NUM_REGS bounds check.
11500
11501 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11502
11503 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11504 * mips-tdep.c (gdb_assert.h): Include.
11505 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11506 (mips_register_name): Handle integer registers explicitly. Add
11507 bounds checking.
11508 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11509 (mips_lsi33k_reg_names): Don't list integer registers; they're
11510 handled by mips_register_name() now.
11511 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11512 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11513 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11514 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11515 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11516
11517 2003-03-18 Andrew Cagney <cagney@redhat.com>
11518
11519 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11520 a void pointer.
11521 * gdbtypes.h (print_scalar_formatted): Update declaration.
11522 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11523
11524 2003-03-18 J. Brobecker <brobecker@gnat.com>
11525
11526 * infrun.c (observer.h): Add #include.
11527 (normal_stop): Add call to observer_notify_normal_stop.
11528 * Makefile.in (infrun.o): Add dependency on observer.h.
11529
11530 2003-03-18 J. Brobecker <brobecker@gnat.com>
11531
11532 Continuing work to convert the hppa targets to multiarch partial.
11533 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11534 parameter. Reformat comment.
11535 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11536 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11537 to match new profile.
11538
11539 2003-03-18 J. Brobecker <brobecker@gnat.com>
11540
11541 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11542 appear to be working in any case.
11543
11544 2003-03-18 J. Brobecker <brobecker@gnat.com>
11545
11546 * observer.c (observer_test_first_observer): New static variable.
11547 (observer_test_second_observer): Likewise.
11548 (observer_test_third_observer): Likewise.
11549 (observer_test_first_notification_function): New static function.
11550 (observer_test_second_notification_function): Likewise.
11551 (observer_test_third_notification_function): Likewise.
11552
11553 2003-03-17 J. Brobecker <brobecker@gnat.com>
11554
11555 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11556 * somsolib.c (gdb_assert.h): Likewise.
11557 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11558 (somsolib.o): Likewise.
11559
11560 2003-03-17 Andrew Cagney <cagney@redhat.com>
11561
11562 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11563 BFD. Simplify setting of di.endian.
11564
11565 2003-03-17 Andrew Cagney <cagney@redhat.com>
11566
11567 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11568 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11569
11570 From Elena Zannoni <ezannoni@redhat.com>
11571 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11572 vector and floating-point parameters.
11573 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11574 convention.
11575 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11576
11577 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11578
11579 * MAINTAINERS: Remove my name from several maintainership roles.
11580
11581 2003-03-17 Andrew Cagney <cagney@redhat.com>
11582
11583 Fix frame off-by-one bug.
11584 * frame-unwind.h (frame_this_id_ftype): Replace
11585 frame_unwind_id_ftype.
11586 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11587 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11588 with "prev_register".
11589 * frame-unwind.c (frame_unwind_find_by_pc): Return
11590 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11591 comment.
11592 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11593 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11594 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11595 (dummy_frame_unwind): Update.
11596 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11597 sentinel_frame_register_unwind.
11598 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11599 (sentinel_frame_unwinder): Update.
11600 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11601 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11602 * frame.c (create_sentinel_frame): Update. Initialize
11603 "prologue_cache" instead of "unwind_cache".
11604 (frame_register_unwind): Call this frame's prev_register with the
11605 next frame and this frame's prologue cache.
11606 (get_prev_frame): Simplify. Always call prev frame's this_id with
11607 this frame and prev frame's prologue cache. Document that this
11608 call is shifted one to the left when compared to the
11609 frame_register_unwind call.
11610 (legacy_saved_regs_prev_register): Replace
11611 frame_saved_regs_register_unwind.
11612 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11613 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11614 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11615 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11616 (d10v_frame_unwind): Update.
11617 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11618 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11619 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11620 "saved_regs" with "this_saved_regs".
11621
11622 2003-03-16 Andrew Cagney <cagney@redhat.com>
11623
11624 * frame.c (frame_pop): Don't call target_store_registers. Fix
11625 problem reported by Mark Kettenis.
11626
11627 2003-03-16 Mark Kettenis <kettenis@gnu.org>
11628
11629 * i386-tdep.c (i386_register_type): Renamed from
11630 i386_register_virtual_type. Adjust function signature.
11631 (i386_gdbarch_init): Set register_type instead of
11632 deprecated_max_register_raw_size,
11633 deprecated_max_register_virtual_size and register_virtual_type.
11634
11635 2003-03-14 Andrew Cagney <cagney@redhat.com>
11636
11637 * frame.c (get_prev_frame): When a legacy frame, always call
11638 legacy_get_prev_frame. Simplify unwind code using assumption that
11639 the unwinder is new.
11640 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11641 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11642 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11643
11644 2003-03-14 Andrew Cagney <cagney@redhat.com>
11645
11646 * frame.c (get_saved_register): Delete function.
11647 * frame.h (get_saved_register): Delete declaration.
11648 * xstormy16-tdep.c: Update comment.
11649 * regcache.h: Update comments.
11650 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11651 get_saved_register and extract_address, use
11652 frame_read_unsigned_register.
11653 (sparc_frame_saved_pc): Ditto.
11654 (sparc_get_saved_register): Instead of get_saved_register, use
11655 frame_register.
11656 (sparc_pop_frame): Ditto.
11657 * findvar.c: Update comments.
11658 (value_of_register): Call frame_register instead of
11659 get_saved_register.
11660 (value_from_register): Ditto.
11661 * config/sparc/tm-sparc.h: Update comment.
11662 * breakpoint.c: Update comment.
11663
11664 2003-03-14 Andrew Cagney <cagney@redhat.com>
11665
11666 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11667 GET_SAVED_REGISTER.
11668 * gdbarch.h, gdbarch.c: Re-generate.
11669 * frame.h: Update comments.
11670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11671 * x86-64-tdep.c (x86_64_init_abi): Update.
11672 * sparc-tdep.c (sparc_gdbarch_init): Update.
11673 * sh-tdep.c (sh_gdbarch_init): Update.
11674 * mips-tdep.c (mips_gdbarch_init): Update.
11675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11676 * cris-tdep.c (cris_gdbarch_init): Update.
11677 * ia64-tdep.c (ia64_gdbarch_init): Update.
11678 * frame.c (frame_register): Update.
11679 (get_saved_register): Update.
11680 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11681
11682 2003-03-13 Andrew Cagney <cagney@redhat.com>
11683
11684 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11685 * gdbarch.h, gdbarch.c: Regenerate.
11686 * valops.c (hand_function_call): Update comment.
11687 * stack.c (return_command): Update comment.
11688 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11689 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11691 * x86-64-tdep.c (x86_64_init_abi): Update.
11692 * vax-tdep.c (vax_gdbarch_init): Update.
11693 * v850-tdep.c (v850_gdbarch_init): Update.
11694 * sparc-tdep.c (sparc_gdbarch_init): Update.
11695 * sh-tdep.c (sh_gdbarch_init): Update.
11696 * s390-tdep.c (s390_gdbarch_init): Update.
11697 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11698 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11699 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11700 * mips-tdep.c (mips_gdbarch_init): Update.
11701 * mcore-tdep.c (mcore_gdbarch_init): Update.
11702 * m68k-tdep.c (m68k_gdbarch_init): Update.
11703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11704 * ia64-tdep.c (ia64_gdbarch_init): Update.
11705 * i386-tdep.c (i386_gdbarch_init): Update.
11706 * hppa-tdep.c (hppa_gdbarch_init): Update.
11707 * h8300-tdep.c (h8300_gdbarch_init): Update.
11708 * frv-tdep.c (frv_gdbarch_init): Update.
11709 * cris-tdep.c (cris_gdbarch_init): Update.
11710 * avr-tdep.c (avr_gdbarch_init): Update.
11711 * arm-tdep.c (arm_gdbarch_init): Update.
11712 * alpha-tdep.c (alpha_gdbarch_init): Update.
11713
11714 2003-03-13 Andrew Cagney <cagney@redhat.com>
11715
11716 * frame.c (legacy_frame_p): New function.
11717 (get_prev_frame): Use legacy_frame_p.
11718 * frame.h (legacy_frame_p): Declare.
11719
11720 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11721
11722 * MAINTAINERS (write after approval): Alphabetically
11723 listing corrected.
11724
11725 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11726
11727 * MAINTAINERS (write after approval): Add myself.
11728
11729 2003-03-12 Andrew Cagney <cagney@redhat.com>
11730
11731 * frame.c (get_prev_frame): Rename the frame parameter to
11732 "this_frame".
11733 (get_next_frame, legacy_get_prev_frame): Ditto.
11734
11735 2003-03-12 Andrew Cagney <cagney@redhat.com>
11736
11737 * frame.c (get_current_frame): Check target_has_registers before
11738 checking target_has_stack.
11739 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11740 instead of deprecated_selected_frame.
11741 * findvar.c (value_of_register): Pass "frame", not
11742 deprecated_selected_frame, to value_of_builtin_reg.
11743
11744 2003-03-12 Andrew Cagney <cagney@redhat.com>
11745
11746 * regcache.c (regcache_cooked_write_signed): New function.
11747 (regcache_cooked_write_unsigned): New function.
11748 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11749 (regcache_cooked_read_signed): Fix regnum in range assertion.
11750 * regcache.h (regcache_cooked_write_signed): Declare.
11751 (regcache_cooked_write_unsigned): Declare.
11752
11753 2003-03-12 Andrew Cagney <cagney@redhat.com>
11754
11755 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11756 * gdbarch.h, gdbarch.c: Re-generate.
11757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11758 * x86-64-tdep.h: Update.
11759 * x86-64-tdep.c (x86_64_init_abi): Update.
11760 * v850-tdep.c (v850_gdbarch_init): Update.
11761 * sparc-tdep.c (sparc_gdbarch_init): Update.
11762 * sh-tdep.c (sh_gdbarch_init): Update.
11763 * s390-tdep.c (s390_gdbarch_init): Update.
11764 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11765 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11766 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11767 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11768 * mips-tdep.c (mips_gdbarch_init): Update.
11769 * mcore-tdep.c (mcore_gdbarch_init): Update.
11770 * m68k-tdep.c (m68k_gdbarch_init): Update.
11771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11772 * ia64-tdep.c (ia64_gdbarch_init): Update.
11773 * i386-tdep.c (i386_gdbarch_init): Update.
11774 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11775 * hppa-tdep.c (hppa_gdbarch_init): Update.
11776 * h8300-tdep.c (h8300_gdbarch_init): Update.
11777 * frv-tdep.c (frv_gdbarch_init): Update.
11778 * cris-tdep.c (cris_gdbarch_init): Update.
11779 * avr-tdep.c (avr_gdbarch_init): Update.
11780 * arm-tdep.c (arm_gdbarch_init): Update.
11781 * alpha-tdep.c (alpha_gdbarch_init): Update.
11782 * sh-tdep.c (sh_init_extra_frame_info): Update.
11783 (sh64_init_extra_frame_info): Update.
11784 * ns32knbsd-nat.c (frame_num_args): Update.
11785 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11786 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11787 (xstormy16_frame_chain_valid): Update.
11788 * vax-tdep.c (vax_saved_pc_after_call): Update.
11789 * v850-tdep.c (v850_frame_chain): Update.
11790 (v850_pop_frame): Update.
11791 (v850_init_extra_frame_info): Update.
11792 * sparc-tdep.c (setup_arbitrary_frame): Update.
11793 * ns32k-tdep.c (umax_frame_num_args): Update.
11794 * s390-tdep.c (s390_pop_frame_regular): Update.
11795 * mn10300-tdep.c (mn10300_frame_chain): Update.
11796 (mn10300_pop_frame_regular): Update.
11797 (mn10300_init_extra_frame_info): Update.
11798 * mips-tdep.c (mips_init_frame_pc_first): Update.
11799 (mips_frame_chain): Update.
11800 (mips_pop_frame): Update.
11801 * mcore-tdep.c (mcore_frame_chain): Update.
11802 (mcore_pop_frame): Update.
11803 (mcore_init_extra_frame_info): Update.
11804 * arch-utils.c (init_frame_pc_default): Update.
11805 * m68k-tdep.c (isi_frame_num_args): Update.
11806 (delta68_frame_num_args): Update.
11807 (news_frame_num_args): Update.
11808 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11809 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11810 (alpha_frame_chain): Update.
11811 (alpha_pop_frame): Update.
11812 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11813 (hppa_init_extra_frame_info): Update.
11814 (hppa_frame_chain): Update.
11815 (hppa_frame_chain_valid): Update.
11816 * cris-tdep.c (cris_init_extra_frame_info): Update.
11817 * avr-tdep.c (avr_init_extra_frame_info): Update.
11818 * arm-tdep.c (arm_frame_chain_valid): Update.
11819 (arm_init_extra_frame_info): Update.
11820 (arm_pop_frame): Update.
11821 * frame.c (frame_pc_unwind): Update.
11822 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11823 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11824 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11825 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11826 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11827 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11828
11829 2003-03-12 Andrew Cagney <cagney@redhat.com>
11830
11831 Eliminate the need for POP_FRAME.
11832 * frame.c (do_frame_unwind_register): New function.
11833 (frame_pop): When no POP_FRAME, pop the frame using register
11834 unwind and a scratch regcache.
11835 (frame_saved_regs_pop): Delete function.
11836 (trad_frame_unwinder): Update.
11837 * d10v-tdep.c (d10v_frame_pop): Delete function.
11838 (d10v_frame_unwind): Update.
11839 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11840 (sentinel_frame_unwinder): Update.
11841 * dummy-frame.c (dummy_frame_pop): Delete function.
11842 (dummy_frame_unwind): Update.
11843 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11844 (struct frame_unwind): Update.
11845
11846 2003-03-11 Kevin Buettner <kevinb@redhat.com>
11847
11848 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11849 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11850 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11851 Do range checks on register number obtained from debugging info.
11852 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11853 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11854 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11855 mapping function.
11856 (do_fp_register_row): Fix typo which caused double type to be
11857 used when attempting to unpack a float.
11858
11859 2003-03-11 J. Brobecker <brobecker@gnat.com>
11860
11861 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11862
11863 2003-03-11 Andrew Cagney <cagney@redhat.com>
11864
11865 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11866 frame. Problem found by Corinna Vinschen.
11867
11868 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11869
11870 * doublest.c (floatformat_from_length): Accept also
11871 the real size of 'long double' type.
11872
11873 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11874
11875 From Klee Dienes <kdienes@apple.com>:
11876 * breakpoint.c (bpstat_copy): Copy the command lines as well
11877 as the old value, to match what is freed in bpstat_clear.
11878
11879 2003-03-10 David Carlton <carlton@math.stanford.edu>
11880
11881 * minsyms.c (add_minsym_to_hash_table): Replace
11882 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11883 (compare_minimal_symbols, compact_minimal_symbols)
11884 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11885 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11886 of DEPRECATED_SYMBOL_MATCHES_NAME.
11887 (lookup_minimal_symbol_solib_trampoline): Ditto.
11888
11889 2003-03-10 Andrew Cagney <cagney@redhat.com>
11890
11891 * regcache.h (regcache_cooked_read_ftype): Define.
11892 (regcache_save, regcache_restore): Add a cooked_read parameter.
11893 * regcache.c (regcache_save, regcache_restore): Update.
11894 (do_cooked_read): New function.
11895 (regcache_cpy): Pass do_cooked_read to regcache_save and
11896 regcache_restore.
11897
11898 2003-03-10 Andrew Cagney <cagney@redhat.com>
11899
11900 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11901 * gdbarch.h, gdbarch.c: Re-generate.
11902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11903 * x86-64-tdep.h: Update.
11904 * x86-64-tdep.c (x86_64_init_abi): Update.
11905 * v850-tdep.c (v850_gdbarch_init): Update.
11906 * sparc-tdep.c (sparc_gdbarch_init): Update.
11907 * sh-tdep.c (sh_gdbarch_init): Update.
11908 * s390-tdep.c (s390_gdbarch_init): Update.
11909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11910 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11911 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11912 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11913 * mips-tdep.c (mips_gdbarch_init): Update.
11914 * mcore-tdep.c (mcore_gdbarch_init): Update.
11915 * m68k-tdep.c (m68k_gdbarch_init): Update.
11916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11917 * ia64-tdep.c (ia64_gdbarch_init): Update.
11918 * i386-tdep.c (i386_gdbarch_init): Update.
11919 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11920 * hppa-tdep.c (hppa_gdbarch_init): Update.
11921 * h8300-tdep.c (h8300_gdbarch_init): Update.
11922 * frv-tdep.c (frv_gdbarch_init): Update.
11923 * cris-tdep.c (cris_gdbarch_init): Update.
11924 * avr-tdep.c (avr_gdbarch_init): Update.
11925 * arm-tdep.c (arm_gdbarch_init): Update.
11926 * alpha-tdep.c (alpha_gdbarch_init): Update.
11927 * sh-tdep.c (sh_init_extra_frame_info): Update.
11928 (sh64_init_extra_frame_info): Update.
11929 * ns32knbsd-nat.c (frame_num_args): Update.
11930 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11931 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11932 (xstormy16_frame_chain_valid): Update.
11933 * vax-tdep.c (vax_saved_pc_after_call): Update.
11934 * v850-tdep.c (v850_frame_chain): Update.
11935 (v850_pop_frame): Update.
11936 (v850_init_extra_frame_info): Update.
11937 * sparc-tdep.c (setup_arbitrary_frame): Update.
11938 * ns32k-tdep.c (umax_frame_num_args): Update.
11939 * s390-tdep.c (s390_pop_frame_regular): Update.
11940 * mn10300-tdep.c (mn10300_frame_chain): Update.
11941 (mn10300_pop_frame_regular): Update.
11942 (mn10300_init_extra_frame_info): Update.
11943 * mips-tdep.c (mips_init_frame_pc_first): Update.
11944 (mips_frame_chain): Update.
11945 (mips_pop_frame): Update.
11946 * mcore-tdep.c (mcore_frame_chain): Update.
11947 (mcore_pop_frame): Update.
11948 (mcore_init_extra_frame_info): Update.
11949 * arch-utils.c (init_frame_pc_default): Update.
11950 * m68k-tdep.c (isi_frame_num_args): Update.
11951 (delta68_frame_num_args): Update.
11952 (news_frame_num_args): Update.
11953 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11954 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11955 (alpha_frame_chain): Update.
11956 (alpha_pop_frame): Update.
11957 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11958 (hppa_init_extra_frame_info): Update.
11959 (hppa_frame_chain): Update.
11960 (hppa_frame_chain_valid): Update.
11961 * cris-tdep.c (cris_init_extra_frame_info): Update.
11962 * avr-tdep.c (avr_init_extra_frame_info): Update.
11963 * arm-tdep.c (arm_frame_chain_valid): Update.
11964 (arm_init_extra_frame_info): Update.
11965 (arm_pop_frame): Update.
11966 * frame.c (frame_pc_unwind): Update.
11967 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11968 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11969 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11970 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11971 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11972 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11973
11974 2003-03-10 Andrew Cagney <cagney@redhat.com>
11975
11976 * gdbarch.sh (gdbarch_unwind_pc): New method.
11977 * gdbarch.h, gdbarch.c: Regenerate.
11978 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11979 but use read_pc and FRAME_SAVED_PC as fall backs.
11980 (frame_saved_regs_pc_unwind): Delete function.
11981 (trad_frame_unwinder): Update.
11982 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11983 (struct frame_unwind): Update.
11984 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11985 (dummy_frame_unwind): Update.
11986 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11987 (sentinel_frame_unwinder): Update.
11988 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11989 (d10v_frame_unwind): Update.
11990 (d10v_unwind_pc): New function.
11991 (d10v_gdbarch_init): Set unwind_pc.
11992
11993 2003-03-10 Andrew Cagney <cagney@redhat.com>
11994
11995 * gdbarch.h: Re-generate.
11996
11997 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11998 PC.
11999 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12000 the PC register.
12001
12002 2003-03-08 Mark Kettenis <kettenis@gnu.org>
12003
12004 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12005
12006 2003-03-08 Andrew Cagney <cagney@redhat.com>
12007
12008 * cli-out.c: Update copyright.
12009 (cli_out_data): Define typedef. Use instead of ui_out_data.
12010
12011 2003-03-08 Andrew Cagney <cagney@redhat.com>
12012
12013 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12014 the result.
12015
12016 2003-03-07 Andrew Cagney <cagney@redhat.com>
12017
12018 * gdbarch.sh: Don't generate two macro definitions when an
12019 undefined macro taking no arguments.
12020 * gdbarch.h: Regenerate.
12021
12022 2002-03-07 Michal Ludvig <mludvig@suse.cz>
12023
12024 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12025 (x86_64_unwind_dummy_id): New functions.
12026 (x86_64_init_abi): Register these two new functions.
12027
12028 2003-03-07 Michal Ludvig <mludvig@suse.cz>
12029
12030 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12031 (x86_64_skip_prologue): Move prologue detection to
12032 separate function.
12033 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12034
12035 2003-03-05 Andrew Cagney <cagney@redhat.com>
12036
12037 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12038 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12039 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12040 to use unwind_dummy_id when a dummy frame.
12041 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12042 predicate.
12043 * gdbarch.h, gdbarch.c: Regneerate.
12044
12045 2003-03-05 Andrew Cagney <cagney@redhat.com>
12046
12047 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12048 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12049 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12050 values.
12051
12052 2003-03-05 Andrew Cagney <cagney@redhat.com>
12053
12054 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12055 (struct d10v_unwind_cache): Delete field "frameless". Replace
12056 "next_addr" with "sp_offset". Add "r11_offset".
12057 (d10v_frame_unwind_cache): Update.
12058 (prologue_find_regs): Update. When "mv r11, sp", save the
12059 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12060 RN was saved in r11_offset.
12061
12062 2003-03-05 Andrew Cagney <cagney@redhat.com>
12063
12064 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12065 cached PC value in the next frame.
12066
12067 2003-03-05 Andrew Cagney <cagney@redhat.com>
12068
12069 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12070 "id_unwind_cache" with "id".
12071 (frame_id_unwind): Delete declaration.
12072 * frame.c (frame_id_unwind): Delete function.
12073 (get_prev_frame): Call the frame id unwind method directly. Store
12074 the returned next frame's ID value in NEXT_FRAME. Note that there
12075 is a problem with the wrong unwind ID being called with the wrong
12076 unwind cache.
12077
12078 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12079
12080 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12081
12082 2003-03-05 James Ingham <jingham@apple.com>
12083 Daniel Jacobowitz <drow@mvista.com>
12084
12085 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12086 (auto_cp_abi): New variable.
12087 (current_cp_abi, num_cp_abis): Make static.
12088 (CP_ABI_MAX): Define.
12089 (cp_abis): Turn into an array.
12090 (value_virtual_fn_field): Fix formatting.
12091 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12092 takes a pointer.
12093 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12094 (list_cp_abis, _initialize_cp_abi): New functions.
12095 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12096 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12097 switch_to_cp_abi. Update prototype for register_cp_abi.
12098 * Makefile.in (cp-abi.o): Update dependencies.
12099 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12100 instead of switch_to_cp_abi.
12101 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12102 register_cp_abi.
12103 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12104 register_cp_abi.
12105 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12106
12107 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12108
12109 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12110 * dwarf2loc.c: Include "regcache.h".
12111 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12112 register_size.
12113 * Makefile.in (dwarf2loc.o): Update dependencies.
12114
12115 2003-03-04 Theodore A. Roth <troth@openavr.org>
12116
12117 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12118 number of io registers reported by remote target is not a multiple of
12119 step.
12120
12121 2003-03-04 David Carlton <carlton@math.stanford.edu>
12122
12123 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12124 (lookup_symbol_aux_psymtabs): Update call to
12125 lookup_partial_symbol.
12126 (lookup_transparent_type, find_main_psymtab)
12127 (make_symbol_overload_list): Ditto.
12128
12129 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12130
12131 * MAINTAINERS (Write after approval): Update my email address.
12132
12133 2003-03-03 Andrew Cagney <cagney@redhat.com>
12134
12135 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12136 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12137 predicate. Replace MAX_REGISTER_RAW_SIZE.
12138 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12139 MAX_REGISTER_VIRTUAL_SIZE.
12140 * regcache.c (legacy_max_register_raw_size): New function.
12141 (legacy_max_register_virtual_size): New function.
12142 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12143 (MAX_REGISTER_RAW_SIZE): Define.
12144 (legacy_max_register_raw_size): Declare.
12145 (legacy_max_register_virtual_size): Declare.
12146 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12147 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12148 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12149 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12150 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12151 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12152 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12153 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12154 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12156 * vax-tdep.c (vax_gdbarch_init): Update.
12157 * v850-tdep.c (v850_gdbarch_init): Update.
12158 * sparc-tdep.c (sparc_gdbarch_init): Update.
12159 * sh-tdep.c (sh_gdbarch_init): Update.
12160 * s390-tdep.c (s390_gdbarch_init): Update.
12161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12163 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12164 * mips-tdep.c (mips_gdbarch_init): Update.
12165 * mcore-tdep.c (mcore_gdbarch_init): Update.
12166 * m68k-tdep.c (m68k_gdbarch_init): Update.
12167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12168 * ia64-tdep.c (ia64_gdbarch_init): Update.
12169 * i386-tdep.c (i386_gdbarch_init): Update.
12170 * hppa-tdep.c (hppa_gdbarch_init): Update.
12171 * h8300-tdep.c (h8300_gdbarch_init): Update.
12172 * frv-tdep.c (frv_gdbarch_init): Update.
12173 * cris-tdep.c (cris_gdbarch_init): Update.
12174 * avr-tdep.c (avr_gdbarch_init): Update.
12175 * arm-tdep.c (arm_gdbarch_init): Update.
12176 * alpha-tdep.c (alpha_gdbarch_init): Update.
12177 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12178 max_register_raw_size or max_register_virtual_size.
12179
12180 2003-03-03 David Carlton <carlton@math.stanford.edu>
12181
12182 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12183 SYMBOL_MATCHES_NAME, add comment.
12184 (SYMBOL_MATCHES_NATURAL_NAME): New.
12185 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12186 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12187 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12188 * symtab.c (lookup_partial_symbol): Use
12189 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12190 unhelpful comment.
12191 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12192 SYMBOL_MATCHES_NAME.
12193 Fix for PR c++/33.
12194
12195 2003-03-03 David Carlton <carlton@math.stanford.edu>
12196
12197 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12198 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12199 by regexp matching against SYMBOL_NATURAL_NAME.
12200
12201 2003-03-03 David Carlton <carlton@math.stanford.edu>
12202
12203 * linespec.c (find_method): Extract code into collect_methods.
12204 (collect_methods): New.
12205
12206 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12207
12208 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12209 get_frame_base.
12210
12211 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12212 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12213
12214 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12215
12216 * arch-utils.c (generic_register_byte): Fix to use the loop index
12217 and not regnum when summing the size of all registers up to regnum.
12218
12219 2003-03-01 Andrew Cagney <cagney@redhat.com>
12220
12221 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12222 FRAME_INIT_SAVED_REGS.
12223 * gdbarch.h, gdbarch.c: Regenerate.
12224 * stack.c (frame_info): Update.
12225 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12226 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12227 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12228 * ns32k-tdep.c (ns32k_pop_frame): Update.
12229 * mips-tdep.c (mips_pop_frame): Update.
12230 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12231 * ia64-tdep.c (ia64_frame_chain): Update.
12232 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12233 (ia64_frameless_function_invocation): Update.
12234 (ia64_init_extra_frame_info): Update.
12235 (ia64_pop_frame_regular): Update.
12236 * frame.h (struct frame_info): Update comment.
12237 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12238 * frame.c (frame_saved_regs_register_unwind): Update.
12239 (frame_saved_regs_register_unwind): Update.
12240 (deprecated_generic_get_saved_register): Update.
12241 * cris-tdep.c: Update comment.
12242 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12243 Rename macro.
12244 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12245 * x86-64-tdep.c (x86_64_init_abi): Update.
12246 * vax-tdep.c (vax_gdbarch_init): Update.
12247 * v850-tdep.c (v850_gdbarch_init): Update.
12248 * sparc-tdep.c (sparc_gdbarch_init): Update.
12249 * sh-tdep.c (sh_gdbarch_init): Update.
12250 * s390-tdep.c (s390_gdbarch_init): Update.
12251 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12252 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12253 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12254 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12255 * mips-tdep.c (mips_gdbarch_init): Update.
12256 * mcore-tdep.c (mcore_gdbarch_init): Update.
12257 * m68k-tdep.c (m68k_gdbarch_init): Update.
12258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12259 * ia64-tdep.c (ia64_gdbarch_init): Update.
12260 * i386-tdep.c (i386_gdbarch_init): Update.
12261 * frv-tdep.c (frv_gdbarch_init): Update.
12262 * avr-tdep.c (avr_gdbarch_init): Update.
12263 * arm-tdep.c (arm_gdbarch_init): Update.
12264 * alpha-tdep.c (alpha_gdbarch_init): Update.
12265
12266 2003-03-01 Andrew Cagney <cagney@redhat.com>
12267
12268 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12269 option enum and switch. When no windows, set the interpreter to
12270 INTERP_CONSOLE.
12271
12272 2003-03-01 Andrew Cagney <cagney@redhat.com>
12273
12274 * main.c (captured_main): Replace magic option characters with an
12275 enum.
12276
12277 2003-03-01 Andrew Cagney <cagney@redhat.com>
12278
12279 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12280 INIT_EXTRA_FRAME_INFO.
12281 * gdbarch.h, gdbarch.c: Regenerate.
12282 * arm-tdep.c: Update comments.
12283 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12284 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12285 * frame.h, avr-tdep.c: Ditto.
12286 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12287 (create_new_frame, legacy_get_prev_frame): Ditto.
12288 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12289 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12291 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12292 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12293 * v850-tdep.c (v850_gdbarch_init): Ditto.
12294 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12295 * sh-tdep.c (sh_gdbarch_init): Ditto.
12296 * s390-tdep.c (s390_gdbarch_init): Ditto.
12297 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12298 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12299 * mips-tdep.c (mips_gdbarch_init): Ditto.
12300 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12302 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12303 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12304 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12306 * frv-tdep.c (frv_gdbarch_init): Ditto.
12307 * cris-tdep.c (cris_gdbarch_init): Ditto.
12308 * avr-tdep.c (avr_gdbarch_init): Ditto.
12309 * arm-tdep.c (arm_gdbarch_init): Ditto.
12310 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12311 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12312
12313 2003-03-01 Andrew Cagney <cagney@redhat.com>
12314
12315 * gdbarch.sh (register_type): New function with predicate.
12316 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12317 * gdbarch.h, gdbarch.c: Re-generate.
12318 * arch-utils.c (generic_register_byte): Use generic_register_size.
12319 (generic_register_size): When available, use
12320 gdbarch_register_type.
12321 * regcache.c (init_regcache_descr): When available, initialize the
12322 register type array using gdbarch_register_type. If the
12323 architecture supplies gdbarch_register_type, do not use the legacy
12324 regcache layout.
12325 * d10v-tdep.c (d10v_register_type): Replace
12326 d10v_register_virtual_type.
12327 (d10v_gdbarch_init): Set register_type instead of
12328 register_virtual_type.
12329
12330 2003-03-01 Andrew Cagney <cagney@redhat.com>
12331
12332 * Makefile.in (ax-gdb.o): Update dependencies.
12333 * ax-gdb.c: Include "regcache.h".
12334 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12335 * findvar.c (value_of_register): Ditto.
12336 * infcmd.c (default_print_registers_info): Ditto.
12337
12338 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12339
12340 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12341 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12342
12343 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12344
12345 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12346 of STREQ.
12347
12348 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
12349
12350 * Makefile.in (dwarf2loc.o): Update dependencies.
12351 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12352 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12353 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12354 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12355 (locexpr_tracepoint_var_ref): New function.
12356 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12357
12358 2003-02-28 Andrew Cagney <cagney@redhat.com>
12359
12360 * regcache.c (register_size): New function.
12361 * regcache.h (register_size): Declare
12362 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12363 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12364
12365 2003-02-28 David Carlton <carlton@math.stanford.edu>
12366
12367 * linespec.c (decode_compound): Extract code into find_method.
12368 (find_method): New.
12369
12370 2003-02-28 J. Brobecker <brobecker@gnat.com>
12371
12372 * Makefile.in: Add rules to build and link in observer.o.
12373
12374 2003-02-27 J. Brobecker <brobecker@gnat.com>
12375
12376 * observer.c: Minor comments edits.
12377
12378 2003-02-27 J. Brobecker <brobecker@gnat.com>
12379
12380 * observer.h, observer.c: New file.
12381
12382 2003-02-27 Andrew Cagney <cagney@redhat.com>
12383
12384 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12385
12386 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12387
12388 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12389 (M6812_OP_STS_EXT): Likewise.
12390 (m6811_prologue): Use the above to recognize prologue.
12391 (m6812_prologue): Likewise.
12392
12393 2003-02-27 David Carlton <carlton@math.stanford.edu>
12394
12395 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12396 SYMBOL_PRINT_NAME.
12397 (compare_psymbols): Ditto.
12398 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12399
12400 2003-02-27 Michael Snyder <msnyder@redhat.com>
12401
12402 * f-lang.c (build_fortran_types): New function.
12403 (_initialize_f_language): Gdbarch-register built-in fortran types.
12404 * doublest.c (extract_floating): Fix warning text.
12405
12406 2003-02-27 Andrew Cagney <cagney@redhat.com>
12407
12408 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12409 predicate. Replaces PUSH_DUMMY_FRAME.
12410 * gdbarch.h, gdbarch.c: Regnerate.
12411 * valops.c (hand_function_call): Update. Call
12412 generic_push_dummy_frame directly.
12413 * vax-tdep.c (vax_gdbarch_init): Update.
12414 * sparc-tdep.c (sparc_gdbarch_init): Update.
12415 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12416 * m68k-tdep.c (m68k_gdbarch_init): Update.
12417 * hppa-tdep.c (hppa_gdbarch_init): Update.
12418 * alpha-tdep.c (alpha_gdbarch_init): Update.
12419 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12420 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12421 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12423 push_dummy_frame to generic_push_dummy_frame.
12424 * v850-tdep.c (v850_gdbarch_init): Ditto.
12425 * sh-tdep.c (sh_gdbarch_init): Ditto.
12426 * s390-tdep.c (s390_gdbarch_init): Ditto.
12427 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12428 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12429 * mips-tdep.c (mips_gdbarch_init): Ditto.
12430 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12432 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12433 * i386-tdep.c (i386_gdbarch_init): Ditto.
12434 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12435 * frv-tdep.c (frv_gdbarch_init): Ditto.
12436 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12437 * cris-tdep.c (cris_gdbarch_init): Ditto.
12438 * avr-tdep.c (avr_gdbarch_init): Ditto.
12439 * arm-tdep.c (arm_gdbarch_init): Ditto.
12440
12441 2003-02-26 Kevin Buettner <kevinb@redhat.com>
12442
12443 * mips-tdep.c (show_mips_abi): New function.
12444 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12445 command ``show mips abi''.
12446
12447 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12448
12449 From Elena Zannoni <ezannoni@redhat.com>
12450 * dbxread.c (process_one_symbol): Only record line 0 if one or
12451 more sline entries have been seen for the function.
12452
12453 2003-02-26 Michael Chastain <mec@shout.net>
12454
12455 * configure: Regenerate with autoconf 000227.
12456
12457 2003-02-26 Michael Chastain <mec@shout.net>
12458
12459 Close PR build/660.
12460 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12461 for old libc5/glibc.
12462 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12463
12464 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12465
12466 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12467 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12468
12469 2003-02-26 Michael Chastain <mec@shout.net>
12470
12471 * configure.in: New variable HAVE_UINTPTR_T.
12472 * configure, config.in: Regenerated.
12473
12474 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12475
12476 Fix PR build/1097.
12477 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12478
12479 2003-02-25 Andrew Cagney <cagney@redhat.com>
12480
12481 * frame.c (get_prev_frame): Add comment on check for
12482 inside_entry_func. Only check for inside_entry_file when not a
12483 dummy and not a sentinel. Check that the new frame is not inner
12484 to the old frame.
12485
12486 2003-02-25 Andrew Cagney <cagney@redhat.com>
12487
12488 * frame.c (frame_debug): New variable.
12489 (_initialize_frame): Add "set/show debug frame" command.
12490 (get_prev_frame): When frame_debug, print reason why unwind
12491 failed.
12492
12493 2003-02-25 Michael Chastain <mec@shout.net>
12494
12495 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12496 to avoid uintptr_t definition problems.
12497
12498 2003-02-25 David Carlton <carlton@math.stanford.edu>
12499
12500 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12501 (SYMBOL_LINKAGE_NAME): Ditto.
12502 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12503 SYMBOL_LINKAGE_NAME.
12504 (struct general_symbol_info): Expand comment.
12505 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12506 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12507 (SYMBOL_MATCHES_REGEXP): Ditto.
12508 * symtab.c (symbol_natural_name): New function.
12509 * objfiles.h: Replace all uses of SYMBOL_NAME by
12510 DEPRECATED_SYMBOL_NAME.
12511 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12512 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12513 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12514 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12515 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12516 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12517 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12518 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12519 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12520 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12521 * ada-exp.y: Ditto.
12522 * ada-exp.y: Update copyright.
12523 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12524 * cp-valprint.c: Ditto.
12525
12526 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12527
12528 * infptrace.c (detach): Do not flag error if ptrace detach fails
12529 and errno is set to ESRCH.
12530
12531 2003-02-24 Andrew Cagney <cagney@redhat.com>
12532
12533 * infptrace.c (udot_info): Change type of udot_off to long. Use
12534 paddr when printing udot_off's value.
12535
12536 2003-02-24 David Carlton <carlton@math.stanford.edu>
12537
12538 * symtab.c (make_symbol_overload_list): Only read in partial
12539 symtabs containing a matching partial symbol.
12540
12541 2003-02-24 David Carlton <carlton@math.stanford.edu>
12542
12543 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12544 do the comparison, not strcmp.
12545 * symfile.c (compare_psymbols): Ditto.
12546 * defs.h: Declare strcmp_iw_ordered.
12547 * utils.c (strcmp_iw_ordered): New function.
12548
12549 2003-02-24 Jim Blandy <jimb@redhat.com>
12550
12551 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12552 support, shared libs): Remove my name from here, to better reflect
12553 reality.
12554
12555 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12556
12557 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12558 (target_ops): Add to_have_continuable_watchpoint.
12559 * target.c (update_current_target): Add INHERIT line for
12560 to_have_continuable_watchpoint.
12561 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12562 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12563 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12564 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12565
12566 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12567
12568 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12569 maintainership.
12570
12571 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12572
12573 * solib.c (solib_open): Call target defined search function after
12574 failing with solib-search-path.
12575 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12576 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12577
12578 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12579
12580 * MAINTAINERS: Add myself to Write After section.
12581
12582 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12583
12584 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12585
12586 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12587
12588 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12589 (m68hc11_add_reggroups): New function.
12590 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12591 (m68hc11_gdbarch_init): Install the reggroups.
12592 (_initialize_m68hc11_tdep): Initialize them.
12593
12594 2003-02-21 James E Wilson <wilson@tuliptree.org>
12595
12596 * MAINTAINERS: Update my email address.
12597
12598 2003-02-21 David Carlton <carlton@math.stanford.edu>
12599
12600 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12601
12602 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12603
12604 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12605 * symtab.h: Add opaque declarations of struct axs_value and
12606 struct agent_expr.
12607 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12608 (struct location_funcs): New type.
12609 (struct symbol): Add "loc" to aux_value.
12610 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12611 * dwarf2read.c: Include "dwarf2expr.h".
12612 (dwarf2_symbol_mark_computed): New function.
12613 (read_func_scope): Use it.
12614 (var_decode_location): New function.
12615 (new_symbol): Use it.
12616 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12617
12618 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12619 (dwarf2expr_h, dwarf2loc_h): New variables.
12620 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12621 (dwarf2expr.o, dwarf2loc.o): New rules.
12622 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12623 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12624 LOC_COMPUTED_ARG.
12625 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12626 * m2-exp.y (yylex): Likewise.
12627 * printcmd.c (address_info, print_frame_args): Likewise.
12628 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12629 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12630 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12631 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12632 * symtab.c (lookup_block_symbol): Likewise.
12633
12634 2003-02-20 Adam Fedor <fedor@gnu.org>
12635
12636 * symtab.h: Remove objc_specific struct
12637 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12638 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12639 Have language_objc use cplus_specific struct.
12640
12641 2003-02-20 Tom Tromey <tromey@redhat.com>
12642
12643 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12644 TYPE_NAME, when printing a String value. PR java/1075.
12645
12646 2003-02-20 Adam Fedor <fedor@gnu.org>
12647
12648 * objc-lang.h (find_methods): Remove declaration.
12649 * objc-lang.c (find_methods): Make static.
12650
12651 2003-02-20 Christopher Faylor <cgf@redhat.com>
12652
12653 * win32-nat.c (get_image_name): Check return value from
12654 ReadProcessMemory.
12655 (child_xfer_memory): Ditto.
12656
12657 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
12658
12659 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12660 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12661 '${exec_prefix}' (in addition to the expansion thereof) as
12662 relocatable.
12663 * configure: Rebuilt.
12664
12665 2003-02-20 David Carlton <carlton@math.stanford.edu>
12666
12667 * symtab.c (search_symbols): Revert the search_symbols part of my
12668 2002-12-23 patch. Add comment.
12669
12670 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12671
12672 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12673 * dbxread.c (elfstab_build_psymtabs): Don't call
12674 install_minimal_symbols.
12675 (stabsect_build_psymtabs): Likewise.
12676 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12677 earlier.
12678 * somread.c (som_symfile_read): Call install_minimal_symbols
12679 and do_cleanups earlier.
12680 * nlmread.c (nlm_symfile_read): Likewise.
12681 * mdebugread.c (elfmdebug_build_psymtabs): Call
12682 install_minimal_symbols and make appropriate cleanups.
12683
12684 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12685
12686 * solib.c (reload_shared_libraries): New function.
12687 (_initialize_solib): Add callbacks for ``set solib-search-path''
12688 and ``set solib-absolute-prefix''.
12689
12690 2003-02-20 David Carlton <carlton@math.stanford.edu>
12691
12692 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12693 expand comment.
12694 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12695 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12696 * ada-typeprint.c (ada_typedef_print): Ditto.
12697 * ax-gdb.c (gen_var_ref): Ditto.
12698 * breakpoint.c (print_one_breakpoint): Ditto.
12699 * buildsym.c (finish_block): Ditto.
12700 * c-valprint.c (c_val_print): Ditto.
12701 * expprint.c (print_subexp): Ditto.
12702 * findvar.c (locate_var_value): Ditto.
12703 * infcmd.c (jump_command): Ditto.
12704 * linespec.c (decode_line_2, decode_compound): Ditto.
12705 * maint.c (maintenance_translate_address): Ditto.
12706 * objc-lang.c (compare_selectors, compare_classes): Ditto.
12707 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12708 Ditto.
12709 * p-valprint.c (pascal_val_print): Ditto.
12710 * stabsread.c (define_symbol): Ditto.
12711 * stack.c (print_frame, frame_info, print_block_frame_locals)
12712 (print_frame_arg_vars, return_command): Ditto.
12713 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12714 * symmisc.c (print_symbol): Ditto.
12715 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12716 (compare_search_syms, print_symbol_info, print_msymbol_info)
12717 (rbreak_command): Ditto.
12718 * tracepoint.c (tracepoints_info): Ditto.
12719 * typeprint.c (typedef_print): Ditto.
12720 * valops.c (value_of_variable, hand_function_call): Ditto.
12721 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12722 * ada-typeprint.c: Update Copyright.
12723 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12724 * tracepoint.c, cli/cli-cmds.c: Ditto.
12725
12726 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12727
12728 * frame.c (generic_unwind_get_saved_register): Make non-static.
12729 * frame.h (generic_unwind_get_saved_register): Declare.
12730 * mips-tdep.c (read_next_frame_reg): Fetch register from
12731 current regcache when frame is NULL.
12732 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12733 that must be NULL.
12734 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12735 instead of frame_register_unwind().
12736
12737 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12738
12739 * remote-sim.c (gdbsim_insert_breakpoint)
12740 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12741 code.
12742
12743 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12744
12745 * remote.c (_initialize_remote): Add commands "set/show remote
12746 hardware-watchpoint-limit" and "set/show remote
12747 hardware-breakpoint-limit".
12748 (remote_hw_watchpoint_limit): Initialize to -1.
12749 (remote_hw_breakpoint_limit): Ditto.
12750 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12751
12752 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12753
12754 * coff-pe-read.c: New file - support reading of minimal symbols from a
12755 portable executable using the export table.
12756 * coff-pe-read.h: New file.
12757 * coffread.c: Include coff-pe-read.h.
12758 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12759 debugging symbols found.
12760 * Makefile.in (SFILES): Add coff-pe-read.o.
12761 (coff_pe_read_h): Define.
12762 (COMMON_OBS): Add coff-pe-read.o.
12763 (coffread.o): Add coff_pe_read_h dependency.
12764 (coff-pe-read.o): New target.
12765
12766 2003-02-19 David Carlton <carlton@math.stanford.edu>
12767
12768 * Makefile.in (SFILES): Add block.c.
12769 (block_h): New.
12770 (COMMON_OBS): Add block.o.
12771 (block.o): New.
12772 (x86-64-tdep.o): Add $(block_h).
12773 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12774 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12775 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12776 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12777 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12778 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12779 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12780 * value.h: Add opaque declaration for struct block.
12781 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12782 * ada-lang.h: Ditto.
12783 * x86-64-tdep.c: #include "block.h"
12784 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12785 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12786 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12787 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12788 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12789 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12790 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12791 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12792 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12793 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12794 * symtab.c (block_function): Ditto.
12795 (contained_in): Ditto.
12796 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12797 block.h. Add opaque declaration for struct block.
12798 * symtab.h: Move block_function and contained_in declarations to
12799 block.h. Add opaque declarations for struct block, struct
12800 blockvector.
12801 (struct block): Move to block.h.
12802 (struct blockvector): Ditto.
12803 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12804 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12805 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12806 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12807 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12808 Ditto.
12809 * block.c: New file.
12810 * block.h: New file.
12811
12812 2003-02-19 Theodore A. Roth <troth@openavr.org>
12813
12814 * avr-tdep.c (avr_extract_return_value): Remove function.
12815 (avr_store_return_value): Remove function.
12816 (avr_extract_struct_value_address): Remove function.
12817 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12818
12819 2003-02-19 Andrew Cagney <ac131313@redhat.com>
12820
12821 * rs6000-tdep.c: Include "gdb_assert.h".
12822 (registers_e500): Add "acc" and "spefscr".
12823 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12824 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12825 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12826 really is "r0".
12827 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12828
12829 2003-02-18 Keith Seitz <keiths@redhat.com>
12830
12831 * Makefile.in: Add gdbtk-interps.c.
12832
12833 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12834
12835 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12836 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12837
12838 2003-02-18 Andrew Cagney <cagney@redhat.com>
12839
12840 * symtab.h (struct objfile): Add opaque declaration.
12841
12842 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12843
12844 From Jim Ingham <jingham@apple.com>:
12845 * dbxread.c (process_one_symbol): Use last_function_start rather
12846 than function_start_offset to find the real beginning of the
12847 current function. The latter is just the text section offset on
12848 some systems, the former is always the real function start.
12849
12850 2003-02-17 Andrew Cagney <cagney@redhat.com>
12851
12852 * configure.in: Revert ${target} != ${host}.
12853
12854 2003-02-17 Andrew Cagney <ac131313@redhat.com>
12855
12856 * configure.in (Makefile): Use the test ${target} != ${host},
12857 instead of the absence of the "nm.h" file, to determine of the
12858 configuration non-native.
12859 * configure: Regenerate.
12860
12861 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12862
12863 From Brian Ford <ford@vss.fsi.com>
12864
12865 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12866 conditionalize tui_active test.
12867 (lookup_cmd_1): Ditto.
12868
12869 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12870
12871 * configure.in: Add check for _etext.
12872 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12873 available.
12874 * config.in, configure: regenerated.
12875
12876 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12877
12878 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12879
12880 2003-02-14 Andrew Cagney <ac131313@redhat.com>
12881
12882 * main.c (tui_version): Delete variable.
12883 (captured_main): When --tui, set interpreter_p to "tui" instead of
12884 enabling tui_version.
12885 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12886 tui_version.
12887 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12888 * cli/cli-cmds.c (disassemble_command): Ditto.
12889 * defs.h (tui_version): Delete declaration.
12890 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12891 (tui-interp.o): Add rules.
12892 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12893
12894 2003-02-14 Christopher Faylor <cgf@redhat.com>
12895
12896 * win32-nat.c (register_loaded_dll): Correctly set address range for
12897 just-loaded dll.
12898
12899 2003-02-12 Jason Molenda (jmolenda@apple.com)
12900
12901 * symmisc.c (print_objfile_statistics): Include information about
12902 the number of psymtabs and symtabs in each object file.
12903
12904 2003-02-13 Keith R Seitz <keiths@redhat.com>
12905
12906 * main.h (struct captured_main_args): Add interpreter_p.
12907 * main.c (captured_main): Initialize interpreter_p from context.
12908 * gdb.c (main): Set interpreter_p argument.
12909 * Makefile.in (gdb.o): Add dependency for interps.h.
12910
12911 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12912
12913 * event-top.c (cli_command_loop): Delete declaration.
12914 (_initialize_event_loop): Delete function setting event_loop_hook.
12915 * event-top.h (cli_command_loop): Declare. Update copyright.
12916 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12917 * interps.c (current_interp_command_loop): When event_loop_p, call
12918 cli_command_loop.
12919
12920 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12921
12922 * interps.h (interp_command_loop_ftype): Change return type to
12923 void.
12924
12925 2003-02-12 Michal Ludvig <mludvig@suse.cz>
12926
12927 * x86-64-tdep.c (x86_64_extract_return_value)
12928 (x86_64_store_return_value): Use regcache instead of regbuf.
12929 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12930 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12931
12932 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12933
12934 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12935 * aclocal.m4: Regenerate.
12936 * configure: Regenerate.
12937
12938 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12939 TCL_LD_SEARCH_FLAGS.
12940
12941 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12942
12943 * dwarf2cfi.c: Reindented.
12944
12945 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12946
12947 * interps.c (clear_interpreter_hooks): Convert function definition
12948 to ISO C.
12949
12950 2003-02-07 David Carlton <carlton@math.stanford.edu>
12951
12952 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12953
12954 2003-02-07 Kevin Buettner <kevinb@redhat.com>
12955
12956 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12957 (struct type): ...to here.
12958 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12959 field.
12960 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12961 (replace_type): Set length on all type variants for a given type.
12962
12963 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12964
12965 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12966 <sys/stat.h>.
12967 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12968
12969 2003-02-06 Andrew Cagney <ac131313@redhat.com>
12970
12971 * Makefile.in (symm-nat.o): Update dependencies.
12972 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12973 (lynx-nat.o, ia64-linux-nat.): Ditto.
12974 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12975 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12976 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12977
12978 * Makefile.in (inflow_h): Define.
12979 (procfs.o, inflow.o, procfs.o): Update dependencies.
12980 * inftarg.c (child_stop): Delete extern declaration of
12981 inferior_process_group. Include "inflow.h".
12982 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12983 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12984 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12985 (our_process_group, inferior_process_group): Extern declarations.
12986
12987 * procfs.c: Include "gdb_assert.h".
12988
12989 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12990 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12991 * jv-typeprint.c (java_type_print_base): Ditto.
12992 * typeprint.c (typedef_print): Eliminate STREQ.
12993 * cli/cli-script.c (define_command, define_command): Ditto.
12994 * main.c (captured_main): Ditto.
12995 * values.c (lookup_internalvar): Ditto.
12996 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12997 within `if' conditional.
12998 * linespec.c (decode_line_2): Ditto.
12999 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13000 (bfd_openw_with_cleanup): Ditto.
13001
13002 2003-02-07 Mark Kettenis <kettenis@gnu.org>
13003
13004 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13005 legacy_extract_return_value and store_return_value to
13006 legacy_return_value.
13007
13008 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13009
13010 * win32-nat.c (get_relocated_section_addrs): New function. Find
13011 section load addresses for symbol handling in relocated DLLs.
13012 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13013
13014 2003-02-05 Fred Fish <fnf@intrinsity.com>
13015
13016 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13017 '=' and '!='.
13018 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13019 with '&' and '=='.
13020 (angel_RDI_info): Ditto.
13021 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13022 with '&' and '!='.
13023 (threads_continue_all_with_signals): Ditto.
13024
13025 2003-02-05 Jim Ingham <jingham@apple.com>
13026 Keith Seitz <keiths@redhat.com>
13027 Elena Zannoni <ezannoni@redhat.com>
13028 Andrew Cagney <ac131313@redhat.com>
13029
13030 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13031 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13032 (SUBDIR_MI_OBS): Add "mi-interp.o".
13033 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13034 (SFILES): Add "interps.c".
13035 (COMMON_OBS): Add "interps.o".
13036 (interps_h, mi_main_h): Define.
13037 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13038 (mi-main.o, main.o, event-top.o): Update dependencies.
13039 * cli/cli-interp.c: New file.
13040 * interps.h, interps.c: New files.
13041 * top.c: (gdb_init): Don't install the default interpreter, handed
13042 by captured_main.
13043 * main.c: Include "interps.h".
13044 (interpreter_p): Note that it should malloc'ed.
13045 (captured_command_loop): Call current_interp_command_loop.
13046 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13047 xfree and xstrdup when updating interpreter_p. Install the
13048 default interpreter. Add hack to stop mi1's copyright notice
13049 being encoded.
13050 * event-top.h (gdb_setup_readline): Declare.
13051 (gdb_disable_readline): Declare.
13052 * event-top.c: Include "interps.h".
13053 (display_gdb_prompt): Call current_interp_display_prompt_p.
13054 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13055 gdb_stdlog, and gdb_stdtarg.
13056 (_initialize_event_loop): Don't call gdb_setup_readline.
13057 * cli-out.c (cli_out_set_stream): New function.
13058 * cli-out.h (cli_out_set_stream): Declare.
13059
13060 2003-02-06 Mark Kettenis <kettenis@gnu.org>
13061
13062 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13063 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13064 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13065 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13066 config/i386/i386v42mp.mt: Removed.
13067
13068 2003-02-05 Mark Kettenis <kettenis@gnu.org>
13069
13070 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13071 GDB_OSABI_SOLARIS.
13072
13073 2003-02-05 Michael Chastain <mec@shout.net>
13074
13075 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13076 2.12.1 and earlier versions.
13077
13078 2003-02-05 Andrew Cagney <ac131313@redhat.com>
13079
13080 Remove orphaned hosts, targets and files.
13081 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13082 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13083 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13084 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13085 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13086 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13087 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13088 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13089 * config/sparc/tm-sp64sim.h: Delete.
13090 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13091 hosts.
13092 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13093 mips*-dec-mach3* targets.
13094
13095 2003-02-04 Michael Chastain <mec@shout.net>
13096
13097 * NEWS: Fix typo: sepcifying -> specifying.
13098
13099 2003-02-04 Michael Chastain <mec@shout.net>
13100
13101 * dwarfread.c: Add documentation on the state of dwarf-1,
13102 looking towards obsoletion.
13103
13104 2003-02-03 Michael Chastain <mec@shout.net>
13105
13106 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13107 gdb/testsuite/gdb.c++/pr-1023.exp.
13108
13109 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13110
13111 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13112 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13113
13114 * utils.c (init_page_info): Delete reference to MPW in comments.
13115 * main.c (captured_main): Delete #ifdef MPW.
13116
13117 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13118
13119 * NEWS: Note that the m32r-*-elf* is obsolete.
13120 * monitor.c (monitor_expect): Obsolete reference to m32r.
13121 * configure.tgt: Mark m32r-*-elf* as obsolete.
13122 * MAINTAINERS: Mark m32k as obsolete.
13123 * m32r-rom.c: Obsolete file.
13124 * config/m32r/m32r.mt: Obsolete file.
13125 * config/m32r/tm-m32r.h: Obsolete file.
13126 * m32r-stub.c: Obsolete file.
13127 * m32r-tdep.c: Obsolete file.
13128
13129 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13130
13131 * NEWS: Mention that the z8k-zilog-none is obsolete.
13132 * MAINTAINERS: Mark z8k as obsolete.
13133 * configure.tgt: Obsolete the z8k-*-coff* target.
13134 * config/z8k/z8k.mt: Obsolete file.
13135 * config/z8k/tm-z8k.h: Obsolete file.
13136 * z8k-tdep.c: Obsolete file.
13137
13138 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13139
13140 * NEWS: Mention that the mn10200-elf is obsolete.
13141 * configure.tgt: Obsolete mn10200-*-* target.
13142 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13143 mention that the mn10200 is obsolete.
13144 * breakpoint.h: Ditto.
13145 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13146 * config/mn10200/mn10200.mt: Obsolete file.
13147 * config/mn10200/tm-mn10200.h: Obsolete file.
13148 * mn10200-tdep.c: Obsolete file.
13149
13150 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13151
13152 * MAINTAINERS: Mark h8500 as obsolete.
13153 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13154 * findvar.c (value_from_register): Ditto.
13155 * h8500-tdep.c: Mark file as obsolete.
13156 * config/h8500/h8500.mt: Ditto.
13157 * config/h8500/tm-h8500.h: Ditto.
13158 * NEWS: Mention that h8500 is obsolete.
13159
13160 2003-02-04 David Carlton <carlton@math.stanford.edu>
13161
13162 * objfiles.c (allocate_objfile): Always set name. Add comment at
13163 start of function.
13164 * jv-lang.c (get_dynamics_objfile): Add comment.
13165
13166 2003-02-04 David Carlton <carlton@math.stanford.edu>
13167
13168 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13169 * printcmd.c (build_address_symbolic): Replace uses of
13170 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13171 SYMBOL_NAME, and asm_demangle.
13172 Update copyright.
13173
13174 2003-02-04 David Carlton <carlton@math.stanford.edu>
13175
13176 * linespec.c (decode_compound): Extract code into
13177 lookup_prefix_sym.
13178 (lookup_prefix_sym): New function.
13179
13180 2003-02-04 David Carlton <carlton@math.stanford.edu>
13181
13182 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13183 FLOAT_COERCION_BADNESS.
13184 * gdbtypes.c (rank_one_type): Replace all uses of
13185 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13186
13187 2003-02-04 Jim Blandy <jimb@redhat.com>
13188
13189 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13190 section, let dwarf_macinfo_section point to it, not
13191 dwarf_loc_section.
13192
13193 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13194
13195 Pointed out by Anton Blanchard <anton@samba.org>.
13196 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13197 (ppc_linux_at_sigtramp_return_path): Use it.
13198
13199 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13200
13201 * defs.h (streq): Add prototype.
13202 * utils.c (streq): New function.
13203
13204 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13205 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13206 * mdebugread.c (new_symbol): Likewise.
13207 * stabsread.c (define_symbol): Likewise.
13208 * coffread.c (process_coff_symbol): Likewise.
13209 * dwarfread.c (new_symbol): Likewise.
13210
13211 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13212 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13213 here.
13214 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13215 SYMBOL_INIT_DEMANGLED_NAME.
13216 * objfiles.c: Include "hashtab.h".
13217 (allocate_objfile): Call htab_set_functions_ex for the
13218 demangled_names_hash.
13219 (free_objfile): Call htab_delete for the demangled_names_hash.
13220 * objfiles.h (struct htab): Add declaration.
13221 (struct objfile): Add demangled_names_hash.
13222 * symfile.c: Include "hashtab.h".
13223 (reread_symbols): Call htab_delete for the demangled_names_hash.
13224 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13225 SYMBOL_NAME in the bcache.
13226 * symtab.c: Include "hashtab.h". Update comments.
13227 (create_demangled_names_hash, symbol_set_names): New functions.
13228 (symbol_find_demangled_name): New function, broken out from
13229 symbol_init_demangled_names.
13230 (symbol_init_demangled_names): Use it.
13231 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13232 (SYMBOL_SET_NAMES): New macro.
13233 (symbol_set_names): Add prototype.
13234
13235 2003-02-03 Jim Blandy <jimb@redhat.com>
13236
13237 Use a single, consistent representation for an empty minimal
13238 symbol table in an objfile.
13239 * objfiles.c (terminate_minimal_symbol_table): New function.
13240 (allocate_objfile): Call it.
13241 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13242 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13243 non-NULL.
13244 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13245 objfile has minimal symbols, compare minimal_symbol_count to zero,
13246 instead of comparing msymbols with NULL.
13247 * objfiles.c (have_minimal_symbols): Same.
13248 * solib-sunos.c (solib_add_common_symbols): Call
13249 terminate_minimal_symbol_table.
13250 * symfile.c (reread_symbols): Same.
13251
13252 2003-02-03 Kevin Buettner <kevinb@redhat.com>
13253
13254 * s390-tdep.c (s390_address_class_type_flags)
13255 (s390_address_class_type_flags_to_name)
13256 (s390_address_class_name_to_type_flags): New functions.
13257 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13258 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13259
13260 2003-02-03 Michael Snyder <msnyder@redhat.com>
13261
13262 * arm-tdep.c: Fix spell-o in comment.
13263
13264 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13265
13266 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13267 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13268 error messages to contain BFD filename.
13269
13270 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13271
13272 Fix PR gdb/742 gdb/743 gdb/877
13273 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13274 (do_mixed_source_and_assembly): Use
13275 make_cleanup_ui_out_tuple_begin_end and
13276 make_cleanup_ui_out_tuple_begin_end.
13277 (do_mixed_source_and_assembly): Ditto.
13278 * thread.c (do_captured_list_thread_ids): Ditto.
13279 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13280 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13281 ui_out_tuple_end): Delete prototypes.
13282 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13283 ui_out_list_end, ui_out_tuple_end): Delete.
13284
13285 From Kevin Buettner <kevinb@redhat.com>:
13286 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13287 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13288 (do_cleanup_table_end): New functions.
13289 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13290 Use cleanups to invoke_ui_out_tuple_end().
13291 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13292 * cli/cli-setshow.c (cmd_show_list): Use
13293 make_cleanup_ui_out_tuple_begin_end.
13294
13295 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13296
13297 * frame.c (frame_unwind_register): New function.
13298 (frame_unwind_unsigned_register): Use.
13299 (frame_unwind_signed_register): Use.
13300 (frame_read_register): New function.
13301 * frame.h (frame_unwind_register): Declare.
13302 (frame_read_register): Declare.
13303
13304 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13305 and frame_unwind_register instead of read_memory, write_register
13306 and deprecated_write_register_bytes.
13307
13308 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13309
13310 * frame.h: Note that namelen can be negative.
13311 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13312 NAME's length.
13313
13314 * NEWS: Mention that the d10v's `regs' command is deprecated.
13315 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13316 (d10v_print_registers_info): New function.
13317 (show_regs): Call d10v_print_registers_info.
13318 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13319
13320 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13321
13322 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13323 lost in the previous patch.
13324
13325 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13326
13327 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13328 * stack.c (print_frame_info_base): Output complete FRAME tuple
13329 for synthesized frames.
13330
13331 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13332
13333 * mips-nat.c (zerobuf): Delete.
13334 (fetch_inferior_registers): Alloc local zerobuf.
13335 (fetch_core_registers): Alloc local zerobuf.
13336 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13337 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13338 * thread-db.c (thread_db_store_registers): Ditto.
13339 * sh-tdep.c (sh_do_register): Ditto.
13340 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13341 * remote-sim.c (gdbsim_store_register): Ditto.
13342 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13343 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13344 * monitor.c (monitor_supply_register): Ditto.
13345 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13346 * mips-nat.c (fetch_inferior_registers): Ditto.
13347 * m68klinux-nat.c (fetch_register): Ditto.
13348 * lynx-nat.c (fetch_inferior_registers): Ditto.
13349 (fetch_inferior_registers): Ditto.
13350 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13351 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13352 (hpux_thread_store_registers): Ditto.
13353 * hppah-nat.c (fetch_register): Ditto.
13354 * hppab-nat.c (fetch_register): Ditto.
13355 * hppa-tdep.c (pa_register_look_aside): Ditto.
13356 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13357 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13358
13359 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13360
13361 * gdbarch.sh: Explictly specify all method levels. When a
13362 variable with an empty level, provide a non-multi-arch default.
13363 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13364 * gdbarch.h: Re-generate.
13365 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13366 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13367
13368 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13369
13370 * defs.h (host_pointer_to_address): Delete declaration.
13371 (address_to_host_pointer): Delete declaration.
13372 * utils.c (host_pointer_to_address): Delete function.
13373 (address_to_host_pointer): Delete function.
13374 * procfs.c (procfs_address_to_host_pointer): New function.
13375 * procfs.c (proc_set_watchpoint): Use.
13376 (procfs_can_use_hw_breakpoint): Update comments.
13377 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13378 (som_solib_add): Use.
13379 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13380 * hppa-tdep.c (unwind_command): Use.
13381
13382 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13383
13384 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13385 strlen d_name.
13386
13387 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13388 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13389 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13390 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13391 (define_symbol): Update.
13392 * symfile.c (generic_load): Remove references to nindy.
13393 * symtab.c: Remove references to nindy.
13394
13395 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13396
13397 * infcmd.c (print_float_info): Delete code conditional on
13398 FLOAT_INFO.
13399 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13400 * config/m68k/nm-apollo68b.h: Ditto.
13401 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13402 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13403 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13404
13405 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13406
13407 * config/i386/tm-i386os9k.h: Removed.
13408
13409 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13410 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13411 they're identical to i[3456]86-*-sysv* now.
13412 * config/i386/i386v32.mh: Removed.
13413 * config/i386/xm-i386v32.h: Removed.
13414 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13415
13416 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13417
13418 * config/i386/i386dgux.mh: Removed.
13419 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13420
13421 * configure.in: Fix typo.
13422 * configure: Regenerated.
13423
13424 2003-01-31 David Carlton <carlton@math.stanford.edu>
13425
13426 * dwarf2read.c (dwarf2_locate_sections): Set
13427 dwarf_ranges_section.
13428
13429 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13430
13431 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13432 * utils.c: Update comments documenting legitimate uses of PTR.
13433
13434 * utils.c: Re-indent.
13435
13436 * config/djgpp/fnchange.lst: Delete nindy files.
13437 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13438 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13439 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13440 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13441 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13442 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13443 * Makefile.in (init.c): Remove nindy references.
13444 (saber_gdb): Delete rule.
13445 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13446 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13447 and a68v-nat.c.
13448 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13449 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13450 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13451 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13452 nindy-share/stop.h.
13453 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13454 * saber.suppress: Delete file.
13455
13456 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
13457
13458 * dbxread.c (stabs_data): New static variable.
13459 (fill_symbuf): Support an in-memory buffer for stabs data.
13460 (stabs_seek): New function.
13461 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13462 (read_ofile_symtab): Use stabs_seek.
13463 (elfstab_build_psymtabs): Take an asection* instead of
13464 an offset and size. Relocate the stabs data if necessary.
13465 Save the section* for dbx_psymtab_to_symtab.
13466 * dwarf2read.c: Add section variables for each debug section.
13467 (dwarf2_locate_sections): Fill them in.
13468 (dwarf2_read_section): Take an asection* argument.
13469 Relocate the section contents if necessary.
13470 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13471 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13472 it to dwarf2_read_section.
13473 (dwarf2_build_frame_info): Update callers.
13474 * elfread.c (elf_symfile_read): Update call to
13475 elfstab_build_psymtabs.
13476 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13477 (DBX_STAB_SECTION): New macro.
13478 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13479 * symfile.c (symfile_dummy_outputs): New function.
13480 (symfile_relocate_debug_section): New function.
13481 * symfile.h (symfile_relocate_debug_section): Add prototype.
13482
13483 2003-01-31 Richard Henderson <rth@redhat.com>
13484
13485 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13486 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13487 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13488 * alpha-tdep.c (alpha_register_name): Add "unique".
13489 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13490 (ALPHA_UNIQUE_REGNUM): New.
13491 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13492
13493 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13494
13495 * README: Remove reference to Ericsson 1800 monitor.
13496 * Makefile.in (remote-es.o): Delete rule.
13497 (ALLDEPFILES): Delete remote-es.c.
13498 * remote-es.c: Delete file.
13499 * config/m68k/es1800.mt: Delete file.
13500 * config/djgpp/fnchange.lst: Update.
13501 * configure.tgt: Delete m68*-ericsson-* target.
13502
13503 2003-01-31 Adam Fedor <fedor@gnu.org>
13504
13505 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13506 Remove duplicate/shadowing variable of same name.
13507
13508 2003-01-30 Jim Blandy <jimb@redhat.com>
13509
13510 * symfile.c (find_separate_debug_file): Assert that the objfile's
13511 directory name we compute ends with a slash, and then assume that
13512 that's so everywhere we use it.
13513
13514 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13515
13516 * valops.c (value_assign): Flush frame cache after stores to memory
13517 also.
13518
13519 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13520
13521 * Makefile.in (mon960-rom.o): Delete rule.
13522 * mon960-rom.c: Delete file.
13523
13524 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13525
13526 * d10v-tdep.c: Include "frame-unwind.h".
13527 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13528 list.
13529 (next_addr, uses_frame): Delete.
13530 (struct d10v_unwind_cache): Define.
13531 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13532 Use info instead of next_addr and uses_frame globals.
13533 (d10v_frame_init_saved_regs): Delete function.
13534 (d10v_init_extra_frame_info): Delete function.
13535 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13536 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13537 init_frame_pc or frame_saved_pc.
13538 (d10v_pop_frame): Delete function.
13539 (do_d10v_pop_frame): Delete function.
13540 (d10v_frame_chain): Delete function.
13541 (d10v_frame_chain_valid): Delete function.
13542 (d10v_frame_pc_unwind): New function.
13543 (d10v_frame_id_unwind): New function.
13544 (saved_regs_unwinder): New function.
13545 (d10v_frame_register_unwind): New function.
13546 (d10v_frame_pop): New function.
13547 (d10v_frame_unwind): New variable.
13548 (d10v_frame_p): New function.
13549 (d10v_frame_saved_pc): Delete function.
13550 * Makefile.in (d10v-tdep.o): Update dependencies.
13551
13552 2003-01-30 J. Brobecker <brobecker@gnat.com>
13553
13554 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13555 causing some regressions due to a change in the default value
13556 for this macro.
13557
13558 2003-01-29 Richard Henderson <rth@redhat.com>
13559 Elena Zannoni <ezannoni@redhat.com>
13560 Daniel Jacobowitz <drow@mvista.com>
13561
13562 Fix PR gdb/961.
13563 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
13564 variables.
13565 (RANGES_SECTION): New.
13566 (dwarf_ranges_buffer): New variable.
13567 (struct comp_unit_head): Add member "die".
13568 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13569 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13570 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13571 (dwarf2_locate_sections): Likewise.
13572 (dwarf2_build_psymtabs): Read .debug_ranges.
13573 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13574 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13575 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13576 Look for DW_AT_ranges and return the bounding box.
13577
13578 2003-01-29 Brian Ford <ford@vss.fsi.com>
13579
13580 * win32-nat.c (cygwin_pid): Removed as unused.
13581 (child_attach): Try fall back to Cygwin pid.
13582
13583 2003-01-29 Jim Blandy <jimb@redhat.com>
13584
13585 * objfiles.h (struct objfile): Doc fix.
13586
13587 2003-01-29 Andrew Cagney <ac131313@redhat.com>
13588
13589 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13590 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13591 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13592 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13593 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13594 (FRAME_SAVED_PC): Change to a function with predicate.
13595 * gdbarch.h, gdbarch.c: Re-generate.
13596
13597 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13598
13599 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13600
13601 * complaints.c (complain): Delete function.
13602 * complaints.h (struct deprecated_complaint): Delete definition.
13603 (complain): Delete declaration.
13604
13605 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13606
13607 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13608 dummy frames.
13609
13610 2003-01-27 Andrew Cagney <ac131313@redhat.com>
13611
13612 * sentinel-frame.h, sentinel-frame.c: New files.
13613 * Makefile.in (frame.o): Update dependencies.
13614 (SFILES): Add sentinel-frame.c.
13615 (sentinel_frame_h): Define.
13616 (COMMON_OBS): Add sentinel-frame.o.
13617 (sentinel-frame.o): Specify dependencies.
13618 * frame.c: Include "sentinel-frame.h".
13619 (frame_register_unwind): Rewrite assuming that there is always a a
13620 ->next frame.
13621 (frame_register, generic_unwind_get_saved_register): Ditto.
13622 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13623 (create_sentinel_frame, unwind_to_current_frame): New functions.
13624 (get_current_frame): Rewrite using create_sentinel_frame and
13625 unwind_to_current_frame. When possible, always create a frame.
13626 (create_new_frame): Set next to the sentinel frame.
13627 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13628 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13629 ID cache when necessary.
13630 (frame_saved_regs_id_unwind): Use frame_relative_level.
13631 (deprecated_generic_get_saved_register): Use frame_relative_level,
13632 get_frame_saved_regs, get_frame_pc, get_frame_base and
13633 get_next_frame.
13634 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13635 frame_register.
13636
13637 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13638
13639 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13640
13641 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13642
13643 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13644 (maintenance_set_profile_cmd): Use error () instead of warning ().
13645
13646 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13647
13648 * configure.in: Check that -pg works if using --enable-profiling.
13649 Check for monstartup and _mcleanup regardless of --enable-profiling.
13650 * maint.c: Check for monstartup and _mcleanup before using them.
13651 * config.in: Regenerated.
13652 * configure: Regenerated.
13653
13654 2003-01-24 Nick Clifton <nickc@redhat.com>
13655
13656 * Add sh2e support:
13657
13658 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13659
13660 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13661 (sh2e_show_regs): New.
13662 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13663 * config/sh/tm-sh.h: Added sh2e to comments.
13664
13665 2003-01-23 Jim Blandy <jimb@redhat.com>
13666
13667 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13668 symbols found)" message here; we haven't checked for a separate
13669 debug info file yet, so we don't know yet.
13670 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13671 we've looked everywhere. Also, there's no need to print a special
13672 message when we're loading the separate debug info file: the one
13673 symbol_file_add prints is fine.
13674
13675 2003-01-23 Alexander Larsson <alexl@redhat.com>
13676 Jim Blandy <jimb@redhat.com>
13677
13678 Add support for executables whose debug info has been separated
13679 out into a separate file, leaving only a link behind.
13680 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13681 and separate_debug_objfile_backlink.
13682 (put_objfile_before): New declaration.
13683 * symfile.c: #include "filenames.h".
13684 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13685 debug info in a separate file, read that, too. Save the addrs
13686 argument, so we can use it again to read the separated debug info;
13687 syms_from_objfile modifies the table we pass it.
13688 (reread_symbols): After re-reading an objfile, call
13689 reread_separate_symbols to refresh its separate debug info
13690 objfile, if it has one.
13691 (reread_separate_symbols, find_separate_debug_file,
13692 get_debug_link_info, separate_debug_file_exists): New functions.
13693 (debug_file_directory): New global var.
13694 (_initialize_symfile): Initialize debug_file_directory, and
13695 provide the new `set debug-file-directory' command to let the user
13696 change it.
13697 * objfiles.c (free_objfile): If this objfile has its debug info in
13698 a separate objfile, free that one too. If this is itself a
13699 separate debug info objfile, clear our parent's backlink.
13700 (put_objfile_before): New function.
13701 * utils.c (gnu_debuglink_crc32): New function.
13702 * defs.h (gnu_debuglink_crc32): New declaration.
13703 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13704 * configure.in: Handle --with-separate-debug-dir config option.
13705 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13706 * acconfig.h (DEBUGDIR): New macro.
13707 * configure, aclocal.m4, config.in: Regenerated.
13708
13709 2003-01-22 Jim Blandy <jimb@redhat.com>
13710
13711 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13712 like the old symbol_file_add, but taking new arguments: you can
13713 now pass in either a `struct section_addr_info' list to say where
13714 each section is loaded, or a `struct section_offsets' table. Pass
13715 these new arguments through to syms_from_objfile as appropriate.
13716 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13717 with the appropriate quiescent values for the new arguments.
13718
13719 * symfile.c: #include "gdb_assert.h".
13720 (syms_from_objfile): Add the ability to pass in a section offset
13721 table directly, as an alternative to the section_addr_info table.
13722 Document arguments better.
13723 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13724 * symfile.h (syms_from_objfile): Update declaration.
13725 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13726 syms_from_objfile.
13727 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13728
13729 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
13730
13731 Original patch by Tom Tromey <tromey@cygnus.com> and
13732 Jason Molenda <jmolenda@apple.com>.
13733 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13734 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13735 * NEWS: Mention profiling.
13736 * configure.in (--enable-gdbtk): Fix typo.
13737 (--enable-profiling): New. Set PROFILE_CFLAGS.
13738 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13739 Fill in function.
13740 (profiling_state): New variable.
13741 (mcleanup_wrapper): New function.
13742 (_initialize_maint): Remove NOTYET, fix call to
13743 add_setshow_boolean_cmd for "maint set profile".
13744 * configure: Regenerated.
13745
13746 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13747
13748 * Makefile.in (install-gdbtk): Install PNG images too.
13749
13750 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13751
13752 * exec.c (text_start): Delete global variable.
13753 (exec_file_attach): Make text_start local to the function.
13754 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13755 * valops.c (hand_function_call): Delete code that handles
13756 BEFORE_TEXT_END and AFTER_TEXT_END.
13757 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13758 of CALL_DUMMY_LOCATION.
13759 * gdbarch.c: Regenerate.
13760 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13761 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13762 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13763 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13764 (text_end): Delete extern declaration.
13765
13766 2003-01-21 Andrew Cagney <ac131313@redhat.com>
13767
13768 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13769 * blockframe.c (backtrace_below_main): Move to "frame.c".
13770 (frame_chain_valid): Delete check for backtrace_below_main.
13771 (_initialize_blockframe): Delete initialization, move ``set
13772 backtrace-below-main'' command to "frame.c".
13773 (do_flush_frames_sfunc): Delete function.
13774 * frame.c: Include "command.h" and "gdbcmd.h".
13775 (frame_type_from_pc): New function.
13776 (create_new_frame): Use frame_type_from_pc.
13777 (legacy_get_prev_frame): New function.
13778 (get_prev_frame): Rewrite. When an old style frame, call
13779 legacy_get_prev_frame. Otherwize, unwind the PC first.
13780 (_initialize_frame): Add ``set backtrace-below-main'' command.
13781 * Makefile.in (frame.o): Update dependencies.
13782
13783 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13784
13785 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13786 DEPRECATED_REGISTERS_INFO.
13787
13788 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13789
13790 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13791 Maintainers'. Update `Various Maintainers'.
13792
13793 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13794
13795 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13796 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13797 Suppress actual parameters when `-'.
13798 * gdbarch.h, gdbarch.c: Regenerate.
13799
13800 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13801
13802 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13803 code handling dummy frames.
13804
13805 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13806
13807 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13808 (struct frame_unwind): Add field pop.
13809 * frame.h (frame_pop): Declare.
13810 * frame.c (frame_saved_regs_pop): New function.
13811 (trad_frame_unwinder): Add frame_saved_regs_pop.
13812 (frame_pop): New function.
13813 * dummy-frame.c (dummy_frame_pop): New function.
13814 (discard_innermost_dummy): New function.
13815 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13816 (dummy_frame_unwind): Add dummy_frame_pop.
13817 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13818 * valops.c (hand_function_call): Ditto.
13819 * stack.c (return_command): Ditto.
13820
13821 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13822
13823 * cris-tdep.c: Fix function declaration indentation.
13824 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13825 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13826 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13827 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13828 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13829 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13830
13831 2003-01-18 Michael Chastain <mec@shout.net>
13832
13833 * README (Unpacking and Installation -- quick overview):
13834 Warn against ".../gdb-5.3/gdb/configure".
13835
13836 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13837
13838 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13839 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13840 (struct frame_unwind): Declare opaque.
13841 (dummy_frame_p): Declare function.
13842 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13843 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13844 * dummy-frame.c: Include "frame-unwind.h".
13845 (dummy_frame_p): New function.
13846 (dummy_frame_unwind): New variable.
13847 * frame.c: Include "frame-unwind.h".
13848 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13849 to use the new unwind field.
13850 (set_unwind_by_pc): Delete function.
13851 (create_new_frame, get_prev_frame): Set unwind field using
13852 frame_unwind_find_by_pc.
13853 (trad_frame_unwind, trad_frame_unwinder): New variables.
13854 * frame.h (trad_frame_unwind): Declare variable.
13855 (frame_id_unwind_ftype): Delete declaration.
13856 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13857 (struct frame_unwind): Declare opaque.
13858 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13859 register_unwind with a single unwind pointer.
13860 * frame-unwind.h, frame-unwind.c: New files.
13861 * Makefile.in (SFILES): Add frame-unwind.c.
13862 (frame_unwind_h): Define.
13863 (COMMON_OBS): Add frame-unwind.o.
13864 (frame-unwind.o): Specify dependencies.
13865 (frame.o, dummy-frame.o): Update dependencies.
13866
13867 2003-01-18 Andrew Cagney <ac131313@redhat.com>
13868
13869 * ada-valprint.c: Eliminate PTR.
13870 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13871 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13872 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13873 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13874 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13875 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13876 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13877
13878 2003-01-17 Andrew Cagney <ac131313@redhat.com>
13879
13880 * main.c (captured_main): Don't use PTR.
13881 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13882 * gdbtypes.c (lookup_primitive_typename): Ditto.
13883 (lookup_struct_elt_type): Ditto.
13884 * f-valprint.c (info_common_command): Ditto.
13885 (list_all_visible_commons): Ditto.
13886 * jv-typeprint.c (java_type_print_base): Ditto.
13887
13888 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13889 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13890 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13891 i386-interix-nat.c and i386-interix-tdep.c. Rename
13892 m68klinux-nat.c and m68klinux-tdep.c. Rename
13893 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13894 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13895 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13896 * main.c (captured_main): Use xfree, not free.
13897
13898 2003-01-16 Andrew Cagney <ac131313@redhat.com>
13899
13900 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13901 ID back using a parameter.
13902 * frame.c (frame_id_unwind): Update call.
13903 (frame_saved_regs_id_unwind): Update.
13904 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13905 * dummy-frame.h (struct frame_id): Add opaque declaration.
13906 (dummy_frame_id_unwind): Update declaration.
13907
13908 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13909
13910 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13911
13912 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13913
13914 * MAINTAINERS (Stephen P. Smith): Updated email address.
13915
13916 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
13917
13918 Fix PR gdb/898
13919 * breakpoint.c (until_break_command): Add new argument. Use it to
13920 decide whether to stop only at the current frame or not.
13921 * breakpoint.h (until_break_command): Update prototype.
13922 * infcmd.c (until_command): Add new argument to until_break_command
13923 call.
13924 (advance_command): New function.
13925 (_initialize_infcmd): Update help string for 'until' command.
13926 Add new 'advance' command.
13927
13928 2003-01-14 David Carlton <carlton@math.stanford.edu>
13929
13930 * linespec.c (decode_line_1): Normalize comments.
13931 (set_flags): Ditto.
13932 (locate_first_half): Ditto.
13933 (decode_compound): Ditto.
13934 (symtab_from_filename): Ditto.
13935 (decode_all_digits): Ditto.
13936 (decode_dollar): Ditto.
13937 (find_methods): Ditto.
13938 (find_toplevel_char): Ditto.
13939
13940 2003-01-13 Andrew Cagney <ac131313@redhat.com>
13941
13942 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13943 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13944 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13945 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13946 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13947 * language.c, language.h, m32r-tdep.c: Update copyright.
13948 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13949 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13950 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13951 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13952 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13953 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13954
13955 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13956
13957 * stabsread.h (process_later, resolve_cfront_continuation):
13958 Obsolete.
13959 Update copyright years.
13960 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13961 Update copyright year.
13962 * dbxread.c(struct cont_elem): Obsolete.
13963 (process_later, process_now): Obsolete functions.
13964 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13965 Update copyright year.
13966 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13967 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13968 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13969 (parse_partial_symbols): Obsolete cfront support.
13970 * stabsread.c
13971 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13972 macros.
13973 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13974 read_cfront_baseclasses, read_cfront_member_functions,
13975 resolve_cfront_continuation,read_cfront_static_fields,
13976 copy_cfront_struct_fields): Obsolete functions.
13977 (define_symbol, read_one_struct_field): Obsolete cfront support.
13978 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13979 Update Copyright year.
13980
13981 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13982
13983 * stack.c (print_frame_info, print_stack_frame_base_stub,
13984 print_stack_frame_base, show_and_print_stack_frame_stub,
13985 show_and_print_stack_frame, print_only_stack_frame_stub,
13986 print_only_stack_frame): Delete functions.
13987 (print_stack_frame_stub): Call print_frame_info instead of
13988 print_frame_info_base.
13989 (print_frame_info_base): Rename to print_frame_info.
13990 (backtrace_command_1): Call print_frame_info, instead of
13991 print_frame_info_base.
13992 (current_frame_command): Call print_stack_frame, instead of
13993 print_only_stack_frame.
13994 (frame_command): Call print_stack_frame, instead of
13995 show_and_print_stack_frame.
13996 (up_command): Ditto.
13997 (down_command): Ditto.
13998 * frame.h (print_only_stack_frame): Delete prototype.
13999 * infrun.c (normal_stop): Call print_stack_frame, instead of
14000 show_and_print_stack_frame.
14001 * thread.c (info_threads_command): Call print_stack_frame, instead
14002 of print_only_stack_frame.
14003
14004 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14005
14006 * README (Graphical interface to GDB): Update URL. Point at
14007 gdb/links/.
14008
14009 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14010 version match.
14011
14012 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14013
14014 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14015 lines.
14016
14017 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14018
14019 * thread-db.c (attach_thread): Prototype.
14020 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14021 thread information (ti), and valid flags (th_valid, ti_valid).
14022 (attach_thread): Move target_pid_to_str call to after the thread
14023 is added to GDB's list. Initialize the cache.
14024 (thread_get_info_callback, thread_db_map_id2thr)
14025 (thread_db_get_info): New functions.
14026 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14027 (thread_db_store_registers, thread_db_thread_alive)
14028 (thread_db_get_thread_local_address): Use them.
14029 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14030 of calling error() for threads in unknown state.
14031
14032 (clear_lwpid_callback): New function.
14033 (thread_db_resume): Use it to clear the cache.
14034
14035 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14036
14037 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14038 (resume_callback): Remove dead code.
14039
14040 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14041
14042 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14043 predicate.
14044 * gdbarch.h, gdbarch.c: Regenerate.
14045 * stack.c (frame_info): Only initialize the saved registers when
14046 FRAME_INIT_SAVED_REGS_P.
14047 * frame.c (frame_saved_regs_register_unwind): Assert
14048 FRAME_INIT_SAVED_REGS_P.
14049 (deprecated_generic_get_saved_register): Ditto.
14050
14051 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14052
14053 * source.c (openp): Squelch warning about "filename".
14054
14055 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14056
14057 * source.c (openp): If the file does not exist don't necessarily
14058 search the path.
14059
14060 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14061
14062 Fix PR gdb/872.
14063 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14064 (integer_types_same_name_p): New function.
14065 (rank_one_type): Use it.
14066 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14067
14068 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14069
14070 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14071 variables.
14072 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14073 * configure.in: Add --with-sysroot.
14074 * configure: Regenerated.
14075 * main.c (gdb_sysroot): New variable.
14076 (captured_main): Initialize gdb_sysroot.
14077 * defs.h (gdb_sysroot): New extern declaration.
14078 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14079
14080 2003-01-12 Michael Chastain <mec@shout.net>
14081
14082 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14083
14084 2003-01-12 Michael Chastain <mec@shout.net>
14085
14086 * top.c (print_gdb_version): Bump copyright year to 2003.
14087
14088 2003-01-12 David Carlton <carlton@bactrian.org>
14089
14090 * linespec.c (symtab_from_filename): Rename variable 's' to
14091 'file_symtab'.
14092
14093 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14094
14095 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14096 dummy frame.
14097 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14098
14099 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14100
14101 * d10v-tdep.c: Include "gdb_assert.h".
14102 (d10v_store_return_value): Rewrite to match current interface.
14103 (d10v_extract_struct_value_address): Ditto.
14104 (d10v_extract_return_value): Ditto.
14105 (d10v_gdbarch_init): Set store_restore_value,
14106 extract_struct_value_address and extract_return_value.
14107
14108 2003-01-12 J. Brobecker <brobecker@gnat.com>
14109
14110 * hpread.c (set_namestring): New procedure replacing the
14111 SET_NAMESTRING macro.
14112 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14113 by calls to set_namestring.
14114
14115 2003-01-11 J. Brobecker <brobecker@gnat.com>
14116
14117 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14118 a compilation warning.
14119 (hpread_process_one_debug_symbol): Likewise.
14120
14121 2003-01-10 David Carlton <carlton@math.stanford.edu>
14122
14123 * linespec.c (decode_line_1): Rename variable 's' to
14124 'file_symtab'.
14125 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14126 (decode_dollar): Ditto.
14127 (decode_variable): Ditto.
14128 (symbol_found): Ditto.
14129
14130 2003-01-09 Michael Chastain <mec@shout.net>
14131
14132 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14133
14134 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
14135
14136 * win32-nat.c (set_process_privilege): New function.
14137 (child_attach): Call set_process_privilege() to enable the
14138 SE_DEBUG_NAME user privilege if available in process token.
14139
14140 2003-01-10 J. Brobecker <brobecker@gnat.com>
14141
14142 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14143 compilation error in the previous revision.
14144
14145 2003-01-09 David Carlton <carlton@math.stanford.edu>
14146
14147 * linespec.c: Update copyright.
14148
14149 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
14150
14151 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14152 than inferior_ptid.
14153 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14154
14155 2003-01-09 Andrew Cagney <ac131313@redhat.com>
14156
14157 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14158 Update comments.
14159 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14160 (frame_saved_regs_zalloc): Update.
14161 (frame_saved_regs_register_unwind): Update.
14162 (create_new_frame): Update.
14163 (get_prev_frame): Update.
14164 (frame_extra_info_zalloc): Update.
14165 (deprecated_get_frame_saved_regs): Update.
14166 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14167 * cris-tdep.c: Update comment.
14168
14169 * somsolib.h: Fix function indentation.
14170 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14171 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14172 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14173 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14174 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14175
14176 * infrun.c (follow_fork): Use ISO C definition.
14177 * expprint.c (print_subexp): Use xfree instead of free.
14178 * charset.c: Include "gdb_string.h" instead of <string.h>.
14179 (register_iconv_charsets): Use ISO C definition.
14180 (host_charset, target_charset): Ditto.
14181 * Makefile.in (charset.o): Update dependencies.
14182 (mi-cmd-env.o): Update dependencies.
14183
14184 2003-01-08 Andrew Cagney <cagney@redhat.com>
14185
14186 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14187 get_frame_base.
14188
14189 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14190
14191 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14192 build directories. Save edited gdb output in Mbuild.log. If a
14193 build fails, remove any final GDB executable.
14194
14195 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14196
14197 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14198 replacing hex constants with function names and stripping leading
14199 file name directory prefixes.
14200
14201 2003-01-08 Andrew Cagney <cagney@redhat.com>
14202
14203 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14204 get_frame_base.
14205
14206 2003-01-08 David Carlton <carlton@math.stanford.edu>
14207
14208 * linespec.c (decode_line_1): Move code into decode_variable.
14209 (decode_variable): New function.
14210
14211 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14212
14213 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14214
14215 2003-01-08 Andrew Cagney <cagney@redhat.com>
14216
14217 * cris-tdep.c (cris_frame_init_saved_regs): Use
14218 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14219 saved_regs buffer.
14220 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14221 (sh64_nofp_frame_init_saved_regs): Ditto.
14222 (sh_fp_frame_init_saved_regs): Ditto.
14223 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14224 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14225 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14226 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14227
14228 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
14229
14230 * minsyms.c (lookup_minimal_symbol): Update comment.
14231 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14232 (lookup_minimal_symbol_solib_trampoline): Likewise.
14233
14234 2003-01-08 Andrew Cagney <cagney@redhat.com>
14235
14236 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14237 frame_relative_level.
14238
14239 * alpha-tdep.c: Use get_frame_extra_info.
14240 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14241 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14242 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14243 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14244
14245 * alpha-tdep.c: Use get_next_frame.
14246 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14247 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14248 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14249 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14250 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14251 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14252 * xstormy16-tdep.c: Ditto.
14253
14254 2003-01-07 Andrew Cagney <cagney@redhat.com>
14255
14256 * alpha-tdep.c: Use get_frame_base.
14257 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14258 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14259 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14260 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14261 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14262 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14263 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14264 * config/sparc/tm-sparc.h: Ditto.
14265
14266 2003-01-07 Andrew Cagney <cagney@redhat.com>
14267
14268 * frame.c (deprecated_get_frame_context): New function.
14269 (deprecated_set_frame_context): New function.
14270 * frame.h (deprecated_get_frame_context): Declare.
14271 (deprecated_set_frame_context): Declare.
14272 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14273 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14274
14275 2003-01-07 Andrew Cagney <cagney@redhat.com>
14276
14277 * frame.c (deprecated_set_frame_next_hack): New function.
14278 (deprecated_set_frame_prev_hack): New function.
14279 * frame.h (deprecated_set_frame_next_hack): Declare.
14280 (deprecated_set_frame_prev_hack): Declare.
14281 * mcore-tdep.c (analyze_dummy_frame): Use
14282 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14283 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14284
14285 2003-01-07 David Carlton <carlton@math.stanford.edu>
14286
14287 * linespec.c (decode_line_1): Move code into decode_dollar.
14288 (decode_dollar): New function.
14289
14290 2003-01-07 Andrew Cagney <cagney@redhat.com>
14291
14292 * arm-tdep.c (arm_init_extra_frame_info): Use
14293 deprecated_update_frame_base_hack.
14294 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14295 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14296 (fix_frame_pointer): Ditto.
14297 (mn10300_analyze_prologue): Ditto.
14298
14299 2003-01-07 Andrew Cagney <cagney@redhat.com>
14300
14301 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14302 extra_info using frame_extra_info_zalloc.
14303 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14304 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14305 (sh64_init_extra_frame_info): Ditto.
14306 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14307 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14308 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14309 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14310 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14311 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14312 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14313 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14314 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14315 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14316 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14317 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14318
14319 * mn10300-tdep.c (analyze_dummy_frame): Use
14320 deprecated_set_frame_extra_info_hack.
14321 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14322
14323 2003-01-07 J. Brobecker <brobecker@gnat.com>
14324
14325 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14326 class is not scText. These do not define "real" procedures.
14327 (parse_partial_symbols): Likewise.
14328
14329 2003-01-06 Michael Snyder <msnyder@redhat.com>
14330
14331 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14332
14333 2003-01-06 Andrew Cagney <ac131313@redhat.com>
14334
14335 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14336 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14337 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14338 deprecated_frame_xmalloc_with_cleanup.
14339 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14340 deprecated_frame_xmalloc.
14341 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14342 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14343
14344 2003-01-06 Andrew Cagney <cagney@redhat.com>
14345
14346 * x86-64-linux-tdep.c: Include "osabi.h".
14347 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14348
14349 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14350
14351 2003-01-06 Andrew Cagney <cagney@redhat.com>
14352
14353 * MAINTAINERS (Target Instruction Set Architectures): Update
14354 arm-elf. Can be built with -Werror, has been multiarched.
14355
14356 * value.h (unpack_long): Make buffer parameter constant.
14357 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14358 * scm-lang.h (scm_parse): Ditto.
14359 * defs.h (extract_typed_address, extract_address): Ditto.
14360 (extract_long_unsigned_integer): Ditto.
14361 * inferior.h (unsigned_pointer_to_address): Ditto.
14362 (signed_pointer_to_address): Ditto.
14363 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14364 * gdbarch.h, gdbarch.c: Regenerate.
14365 * findvar.c (extract_long_unsigned_integer): Update.
14366 (extract_address): Update.
14367 (extract_typed_address): Update.
14368 (unsigned_pointer_to_address): Update.
14369 * values.c (unpack_long): Update.
14370 (unpack_double): Update.
14371 (unpack_pointer): Update.
14372 (unpack_field_as_long): Update.
14373 * d10v-tdep.c (d10v_pointer_to_address): Update.
14374 * avr-tdep.c (avr_pointer_to_address): Update.
14375 * scm-lang.c (scm_unpack): Update.
14376 * findvar.c (signed_pointer_to_address): Update.
14377
14378 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14379
14380 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14381 since it is in i386-tdep.c.
14382
14383 2003-01-06 J. Brobecker <brobecker@gnat.com>
14384
14385 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14386 failure introduced in the previous change.
14387
14388 2003-01-05 Michael Chastain <mec@shout.net>
14389
14390 * README: Remove references to deleted remote-*.c files:
14391 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14392 remote-nrom.c, remote-os9k.c, remote-udi.c.
14393
14394 2003-01-05 Mark Kettenis <kettenis@gnu.org>
14395
14396 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14397 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14398 i386_get_longjmp_target.
14399
14400 2003-01-05 Andrew Cagney <ac131313@redhat.com>
14401
14402 * arm-tdep.c (prologue_cache): Change to a pointer.
14403 (_initialize_arm_tdep): Allocate prologue_cache.
14404 (check_prologue_cache): Update.
14405 (save_prologue_cache): Update.
14406 (arm_gdbarch_init): Update.
14407
14408 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14409
14410 * stabsread.c (update_method_name_from_physname): Call complaint()
14411 instead of error.
14412
14413 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14414
14415 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14416 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14417 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14418
14419 * blockframe.c: Include "gdbcmd.h" and "command.h".
14420 (backtrace_below_main): New variable.
14421 (file_frame_chain_valid, func_frame_chain_valid)
14422 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14423 (generic_func_frame_chain_valid): Remove functions.
14424 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14425 (_initialize_blockframe): New function.
14426 * Makefile.in (blockframe.o): Update dependencies.
14427 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14428 comment. Call frame_chain_valid ().
14429 * frame.h: Remove old prototypes. Add prototype for
14430 frame_chain_valid and update comments to match.
14431 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14432 Remove old comment.
14433 * gdbarch.h: Regenerated.
14434 * gdbarch.c: Regenerated.
14435
14436 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14437 set_gdbarch_frame_chain_valid.
14438 * avr-tdep.c (avr_gdbarch_init): Likewise.
14439 * cris-tdep.c (cris_gdbarch_init): Likewise.
14440 * frv-tdep.c (frv_gdbarch_init): Likewise.
14441 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14442 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14443 (i386_nw_init_abi): Likewise.
14444 (i386_gdbarch_init): Likewise.
14445 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14447 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14448 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14449 * mips-tdep.c (mips_gdbarch_init): Likewise.
14450 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14451 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14452 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14453 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14454 * s390-tdep.c (s390_gdbarch_init): Likewise.
14455 * sh-tdep.c (sh_gdbarch_init): Likewise.
14456 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14457 * v850-tdep.c (v850_gdbarch_init): Likewise.
14458 * vax-tdep.c (vax_gdbarch_init): Likewise.
14459 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14460
14461 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14462 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14463 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14464 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14465 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14466 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14467 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14468 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14469
14470 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14471
14472 * Makefile.in (acconfig_h): Remove incorrect macro.
14473 (config_h): Define.
14474 (osabi.o): Update dependencies.
14475 * configure.tgt: Set gdb_osabi based on target triplet.
14476 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14477 * configure: Regenerated.
14478 * config.in: Regenerated.
14479 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14480 (GDB_OSABI_DEFAULT): Define if not already defined.
14481 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14482 (set_osabi_string): New variables.
14483 (gdbarch_register_osabi): Add new OS ABI to
14484 gdb_osabi_available_names.
14485 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14486 (set_osabi, show_osabi): New functions.
14487 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14488
14489 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14490
14491 * arch-utils.c (gdbarch_info_init): Set osabi to
14492 GDB_OSABI_UNINITIALIZED.
14493 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14494 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14495 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14496 * gdbarch.c: Regenerated.
14497 * gdbarch.h: Regenerated.
14498 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14499 there's no BFD.
14500 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14501 * osabi.h (enum gdb_osabi): Move to defs.h.
14502 (gdbarch_init_osabi): Update prototype.
14503 * defs.h (enum gdb_osabi): Moved here.
14504 * Makefile.in: Update dependencies.
14505
14506 * alpha-tdep.h: Don't include "osabi.h".
14507 (struct gdbarch_tdep): Remove osabi member.
14508 * alpha-tdep.c: Include "osabi.h".
14509 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14510 iterate over arches. Update call to gdbarch_init_osabi.
14511 (alpha_dump_tdep): Don't dump osabi.
14512 * alpha-linux-tdep.c: Include "osabi.h".
14513 * alpha-osf1-tdep.c: Include "osabi.h".
14514 * alphafbsd-tdep.c: Include "osabi.h".
14515 * alphanbsd-tdep.c: Include "osabi.h".
14516
14517 * arm-tdep.h: Don't include "osabi.h".
14518 (struct gdbarch_tdep): Remove osabi member.
14519 * arm-tdep.c: Include "osabi.h".
14520 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14521 iterate over arches. Update call to gdbarch_init_osabi.
14522 (arm_dump_tdep): Don't dump osabi.
14523 * arm-linux-tdep.c: Include "osabi.h".
14524 * armnbsd-tdep.c: Include "osabi.h".
14525
14526 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14527 Update call to gdbarch_init_osabi.
14528
14529 * i386-tdep.h: Don't include "osabi.h".
14530 (struct gdbarch_tdep): Remove osabi member.
14531 * i386-tdep.c: Include "osabi.h".
14532 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14533 iterate over arches. Update call to gdbarch_init_osabi.
14534 (i386_dump_tdep): Don't dump osabi.
14535 * i386-linux-tdep.c: Include "osabi.h".
14536 * i386-sol2-tdep.c: Include "osabi.h".
14537 * i386bsd-tdep.c: Include "osabi.h".
14538 * i386gnu-tdep.c: Include "osabi.h".
14539 * i386ly-tdep.c: Include "osabi.h".
14540 * i386nbsd-tdep.c: Include "osabi.h".
14541 * i386obsd-tdep.c: Include "osabi.h".
14542
14543 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14544 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14545 check osabi when iterating over arches. Update call to
14546 gdbarch_init_osabi.
14547 (mips_dump_tdep): Don't dump osabi.
14548
14549 * ns32k-tdep.h: Don't include "osabi.h".
14550 (struct gdbarch_tdep): Remove.
14551 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14552 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14553 allocate tdep. Update call to gdbarch_init_osabi.
14554 (ns32k_dump_tdep): Remove.
14555 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14556 * ns32knbsd-tdep.c: Include "osabi.h".
14557
14558 * ppc-tdep.h: Don't include "osabi.h".
14559 (struct gdbarch_tdep): Remove osabi member.
14560 * rs6000-tdep.c: Include "osabi.h".
14561 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14562 osabi when iterating over arches. Update call to
14563 gdbarch_init_osabi.
14564 (rs6000_dump_tdep): Don't dump osabi.
14565 * ppc-linux-tdep.c: Include "osabi.h".
14566 * ppcnbsd-tdep.c: Include "osabi.h".
14567
14568 * sh-tdep.h: Don't include "osabi.h".
14569 (struct gdbarch_tdep): Remove osabi member.
14570 * sh-tdep.c: Include "osabi.h".
14571 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14572 iterate over arches. Update call to gdbarch_init_osabi.
14573 (sh_dump_tdep): Don't dump osabi.
14574 * shnbsd-tdep.c: Include "osabi.h".
14575
14576 * sparc-tdep.c: Include "osabi.h".
14577 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14578 iterate over arches. Update call to gdbarch_init_osabi.
14579 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14580 tdep structure.
14581
14582 * vax-tdep.h: Don't include "osabi.h".
14583 (struct gdbarch_tdep): Remove.
14584 * vax-tdep.c: Include "osabi.h".
14585 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14586 iterate over arches. Don't allocate tdep. Update call
14587 to gdbarch_init_osabi.
14588 (vax_dump_tdep): Remove.
14589 (_initialize_vax_tdep): Update call to gdbarch_register.
14590
14591 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14592
14593 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14594 entirely.
14595 (breakpoint_re_set_one): Don't fetch the value for a disabled
14596 watchpoint.
14597
14598 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14599
14600 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14601 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14602 (COERCE_FLOAT_TO_DOUBLE): Remove.
14603 * gdbarch.c: Regenerate.
14604 * gdbarch.h: Regenerate.
14605 * Makefile.in: Remove value_h from gdbarch_h.
14606 * valops.c (coerce_float_to_double): New variable.
14607 (default_coerce_float_to_double): Remove.
14608 (standard_coerce_float_to_double): Remove.
14609 (value_arg_coerce): Use coerce_float_to_double.
14610 (_initialize_valops): Add "set coerce-float-to-double".
14611 * value.h (default_coerce_float_to_double): Remove prototype.
14612 (standard_coerce_float_to_double): Remove prototype.
14613
14614 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14615 prototyped.
14616 * mdebugread.c (parse_symbol): Likewise.
14617 * stabsread.c (define_symbol): Mark all functions as prototyped.
14618
14619 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14620 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14621 set_gdbarch_coerce_float_to_double.
14622 * arm-tdep.c (arm_gdbarch_init): Likewise.
14623 * frv-tdep.c (frv_gdbarch_init): Likewise.
14624 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14625 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14626 * mips-tdep.c (mips_gdbarch_init): Likewise.
14627 (mips_coerce_float_to_double): Remove.
14628 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14629 (rs6000_coerce_float_to_double): Remove.
14630 * s390-tdep.c (s390_gdbarch_init): Likewise.
14631 * sh-tdep.c (sh_gdbarch_init): Likewise.
14632 (sh_coerce_float_to_double): Remove.
14633 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14634 (sparc_coerce_float_to_double): Remove.
14635 * v850-tdep.c (v850_gdbarch_init): Likewise.
14636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14637 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14638 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14639 (hppa_coerce_float_to_double): Remove prototype.
14640 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14641
14642 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14643
14644 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14645
14646 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14647
14648 Suggested by Stewart Brown <sb24@avaya.com>:
14649 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14650 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14651 (c_type_print_varspec_suffix): Likewise.
14652
14653 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14654
14655 * configure.in: Don't set and AC_SUBST SUBDIRS.
14656 * configure: Regenerated.
14657
14658 * configure.in: Remove code dealing with shared libraries.
14659 * Makefile.in: Remove HLDFLAGS and HLDENV.
14660 * configure: Regenerated.
14661
14662 2003-01-04 Andrew Cagney <ac131313@redhat.com>
14663
14664 * frame.c (deprecated_frame_xmalloc): New function.
14665 (deprecated_set_frame_saved_regs_hack): New function.
14666 (deprecated_set_frame_extra_info_hack): New function.
14667 * frame.h (deprecated_frame_xmalloc): Declare.
14668 (deprecated_set_frame_saved_regs_hack): Declare.
14669 (deprecated_set_frame_extra_info_hack): Declare.
14670
14671 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14672
14673 * configure.in: Move code that provides the --enable-gdbtk option
14674 right after the code that handles the --enable-tui option, and
14675 polish it somewhat.
14676 * configure: Regenerated.
14677
14678 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14679 AC_CHECK_FUNCS and remove the old check for pread64.
14680 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14681 * acconfig.h (_GNU_SOURCE): Add.
14682 (HAVE_PREAD64): Remove.
14683 * configure, aclocal.m4, config.in: Regenerated.
14684
14685 2003-01-03 Andrew Cagney <ac131313@redhat.com>
14686
14687 * alpha-tdep.c: Use get_frame_saved_regs.
14688 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14689 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14690 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14691 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14692 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14693
14694 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14695
14696 * configure.in: Remove all use of the SUBDIRS variable; add
14697 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14698 code providing the --enable-multi-ice option, and move it right in
14699 front of the code that checks whether gdbserver is supported.
14700 Polish that too.
14701 * configure: Regenerated.
14702 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14703 @SUBDIRS@.
14704
14705 2003-01-03 Andrew Cagney <cagney@redhat.com>
14706
14707 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14708 * avr-tdep.c, cris-tdep.c: Ditto.
14709 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14710 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14711
14712 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14713
14714 * configure.in: Remove --enable-netrom option.
14715 * configure: Regenerated.
14716
14717 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14718
14719 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14720 declaration for `struct re_pattern_buffer' instead.
14721 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14722
14723 2003-01-03 J. Brobecker <brobecker@gnat.com>
14724
14725 * mdebugread.c (parse_symbol): Count until the stEnd matching
14726 the structure name.
14727
14728 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14729
14730 * configure.in: Remove --with-cpu option.
14731 subscripts. Remove evil changequotes here.
14732 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14733 * config.in, configure: Regenerated.
14734
14735 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14736 * configure.in: Cleanup section that sources GDB and BFD configure
14737 subscripts. Remove evil changequotes here.
14738 * config.in, configure: Regenerated.
14739
14740 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14741
14742 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14743 frame accessor methods.
14744 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14745 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14746 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14747 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14748 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14749 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14750 * z8k-tdep.c: Ditto.
14751
14752 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14753
14754 * configure.in: Remove UI_OUT configuration code.
14755 * ada-lang.c: Update assuming UI_OUT is always true.
14756 * Makefile.in (UIOUT_CFLAGS): Remove.
14757 * configure: Regenerated.
14758 * TODO: Remove blurb about elimination of -DUI_OUT.
14759
14760 * configure.in: Move code that provides the --enable-gdbcli,
14761 --enable-gdbmi options right before the code that handles the
14762 --enable-tui option. Polish a bit.
14763 * configure: Regenerated.
14764
14765 * configure.in: Rewrite check for GNU regex and the
14766 --without-included regex option, and move it into the "Checks for
14767 library functions" section. This makes us use the system regex
14768 again by default on systems with version 2 of the GNU C library.
14769 This was apparently broken.
14770 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14771 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14772 * config.in, configure: Regenerated.
14773
14774 * configure.in: Move code that provides the --enable-tui option
14775 before the "Checks for libraries" section. Polish the code
14776 somewhat and set need_curses to yes if we build the TUI. Rewrite
14777 code that looks for a library providing termcap functionality to
14778 match more closely what's done in the Readline library, and move
14779 it into to the "Checks for libraries" section.
14780 * configure: Regenerated.
14781 * Makefile.in (TERMCAP): Remove variable.
14782 * config/i386/go32.mh (TERMCAP): Remove variable.
14783
14784 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14785
14786 * MAINTAINERS: Mention gdb_mbuild.sh.
14787 * gdb_mbuild.sh: Rewrite.
14788
14789 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14790
14791 * configure.in: Fix typo in last change.
14792 * config.in, configure: Regenerated.
14793
14794 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14795
14796 * valarith.c (value_binop): Delete obsolete code and comments.
14797 * configure.host: Ditto.
14798 * buildsym.h (make_blockvector): Ditto.
14799 * buildsym.c (make_blockvector): Ditto.
14800 * defs.h (enum language): Ditto.
14801 (chill_demangle): Ditto.
14802 * elfread.c (elf_symtab_read): Ditto.
14803 * dwarfread.c (CHILL_PRODUCER): Ditto.
14804 (set_cu_language): Ditto.
14805 (handle_producer): Ditto.
14806 * expprint.c (print_subexp): Ditto.
14807 * gdbtypes.c (chill_varying_type): Ditto.
14808 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14809 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14810 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14811 (chill_varying_type): Ditto.
14812 * language.h (_LANG_chill): Ditto.
14813 * language.c (binop_result_type, integral_type): Ditto.
14814 (character_type, string_type, structured_type): Ditto.
14815 (lang_bool_type, binop_type_check): Ditto.
14816 * stabsread.h (os9k_stabs): Ditto.
14817 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14818 (define_symbol, read_type, read_struct_fields): Ditto.
14819 (read_array_type, read_enum_type, read_huge_number): Ditto.
14820 (read_range_type, start_stabs): Ditto.
14821 * symfile.c (init_filename_language_table): Ditto.
14822 (add_psymbol_with_dem_name_to_list): Ditto.
14823 * symtab.c (symbol_init_language_specific): Ditto.
14824 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14825 * symtab.h (struct general_symbol_info): Ditto.
14826 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14827 * typeprint.c (typedef_print): Ditto.
14828 * utils.c (fprintf_symbol_filtered): Ditto.
14829 * valops.c (value_cast, search_struct_field, value_slice): Delete
14830 obsolete code.
14831 (varying_to_slice): Delete function.
14832 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14833 (varying_to_slice): Delete declaration.
14834 * MAINTAINERS: Update.
14835
14836 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14837
14838 * configure.in: Reorganize "Checks for library functions section"
14839 a bit. Remove check for `btowc' and `isascii' functions.
14840 * configure: Regenerated.
14841
14842 * acconfig.h (_MSE_INT_H): Remove.
14843 * configure.in: Create "Checks for header files" section, and move
14844 appropriate tests there. Don't check for objlist.h, wchar.h,
14845 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14846 misdetection fix. Also add "Checks for types", "Checks for
14847 compiler characteristics" and "Checks for library functions"
14848 sections.
14849 * config.in, configure: Regenerated.
14850
14851 * configure.in: Create "Checks for programs" section, and move
14852 appropriate tests there.
14853
14854 2003-01-01 Mark Kettenis <kettenis@gnu.org>
14855
14856 * configure.in: Create "Checks for libraries" section, and move
14857 appropriate tests there. Cleanup check for wctype in libw. Use
14858 AC_SEARCH_LIBS to see whether we need libsocket.
14859 * configure: Regenerated.
14860
14861 For older changes see ChangeLog-2002
14862 \f
14863 Local Variables:
14864 mode: change-log
14865 left-margin: 8
14866 fill-column: 74
14867 version-control: never
14868 End:
This page took 0.334184 seconds and 4 git commands to generate.