*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
691c0433
AC
12003-11-16 Andrew Cagney <cagney@redhat.com>
2
96cb1c2f
AC
3 * configure.tgt: Delete mips*tx39*-elf*.
4 * config/mips/tm-tx39.h: Delete file.
5 * config/mips/tx39.mt: Delete file.
6 * config/mips/tx39.mt: Delete file.
7
691c0433
AC
8 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
9 * remote-mips.c (common_open): Instead of
10 "mips_read_register_type" and "mips_set_processor_type_command"
11 call "deprecated_mips_set_processor_regs_hack".
12 * config/mips/tm-mips.h (mips_read_processor_type): Delete
13 declaration.
14 (mips_set_processor_type_command): Delete declaration.
15 * mips-tdep.c (mips_gdbarch_init): Update comment.
16 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
17 (mips_set_processor_type): Delete function.
18 (NUM_MIPS_PROCESSOR_REGS): Define.
19 (mips_show_processor_type_command): Delete function.
20 (mips_set_processor_type_command): Delete function.
21 (tmp_mips_processor_type): Delete.
22 (mips_processor_type): Delete.
23 (mips_processor_type_table): Delete.
24 (mips_r3051_reg_names): Delete.
25 (mips_r3081_reg_names): Delete.
26 (mips_lsi33k_reg_names): Delete.
27 (mips_processor_reg_names): Delete.
28 (mips_read_processor_type): Delete function.
29 (deprecated_mips_set_processor_regs_hack): New function.
30 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
31 (mips_register_name): Get the processor names from the tdep.
32 (mips_tx39_reg_names): New array.
33 (mips_generic_reg_names): Wire to a standard set of names.
34 (mips_gdbarch_init): Set "mips_processor_reg_names".
35 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
36 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
37 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
38
56cea623
AC
392003-11-16 Andrew Cagney <cagney@redhat.com>
40
41 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
42 (mips_fpa0_regnum, mips_regnum): New function.
43 (mips_gdbarch_init): Fill in the "regnum" fields.
44 * mips-tdep.h (struct mips_regnum): Define.
45 (mips_regnum): Declare.
46 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
47 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
48 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
49 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
50 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
51 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
52 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
53 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
54 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
55 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
56 * remote-mips.c: Include "mips-tdep.h". Update.
57 * mipsnbsd-tdep.c: Update.
58 * mipsv4-nat.c: Update.
59 * mips-tdep.c: Update.
60 * mips-nat.c: Update.
61 * mips-linux-tdep.c: Update.
62 * mips-linux-nat.c: Update.
63 * irix5-nat.c: Update.
64 * dve3900-rom.c: Include "mips-tdep.h". Update.
65 (ignore_packet): Supress GCC warning.
66 * config/mips/nm-riscos.h: Update.
67
719ec221
AC
682003-11-16 Andrew Cagney <cagney@redhat.com>
69
70 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
71 register_size.
72 (mips_register_raw_size): Delete function.
73 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
74 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
75 Check and set "mips64_transfers_32bit_regs_p".
76 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
77 (mips_register_convertible): Check the architecture's
78 "mips64_transfers_32bit_regs_p".
79 (set_mips64_transfers_32bit_regs): New function.
80 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
81 "set remote-mips64-transfers-32bit-regs" command. Specify
82 set_mips64_transfers_32bit_regs as the set function.
56cea623 83 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 84
20187ed5
MK
852003-11-16 Mark Kettenis <kettenis@gnu.org>
86
87 * i386-tdep.h (i386_supply_gregset): Provide prototype.
88 * i386-tdep.c (i386_supply_gregset): Make public.
89
6771c427
AC
902003-11-16 Andrew Cagney <cagney@redhat.com>
91
92 * mips-tdep.c (mips_register_byte): Delete function.
93 (mips_gdbarch_init): Do not set "deprecated_register_byte".
94 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
95 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
96 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
97
c8048956
MK
982003-11-16 Mark Kettenis <kettenis@gnu.org>
99
100 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
101
cc8a868a
AC
1022003-11-16 Andrew Cagney <cagney@redhat.com>
103
104 * config/mips/linux64.mt: Delete file.
105 * config/mips/tm-linux64.h: Delete file.
106 * config/mips/tm-mips64.h: Delete file.
107 * config/mips/embed64.mt: Delete file.
108 * config/djgpp/fnchange.lst: Update.
109 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
110 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
111 * config/mips/tm-irix6.h: Update copyright. Include
112 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
113 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
114 "OP_LDGPR".
115
5ef80fb0
AC
1162003-11-15 Andrew Cagney <cagney@redhat.com>
117
118 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
119 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
120 n32 registers 64 bit.
121 (mips_register_raw_size, mips_register_byte): For pseudo
122 registers, use the register's pseudo size and not the
123 corresponding raw register's size.
124 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
125 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
126 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
127 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
128
4246e332
AC
1292003-11-15 Andrew Cagney <cagney@redhat.com>
130
8fa9cfa1
AC
131 * mips-tdep.c (struct gdbarch_tdep): Delete member
132 gdb_target_is_mips64.
133 (GDB_TARGET_IS_MIPS64): Delete macro.
134 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
135 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
136 (mips_addr_bits_remove): Simplify.
137
c73e8f27
AC
138 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
139 register_size.
140
4246e332
AC
141 Replace MIPS_REGSIZE with mips_regsize.
142 * mips-tdep.c (mips_regsize): New function.
143 * mips-tdep.h (mips_regsize): Declare.
144 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
145 (SIZEOF_STRUCT_REG): Update.
146 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
147 (mipsnbsd_fill_reg): Update.
148 (mipsnbsd_supply_fpreg): Update.
149 (mipsnbsd_fill_fpreg): Update.
150 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
151 * mips-tdep.c (mips_register_raw_size): Update.
152 (mips_register_type): Update.
153 (SIGFRAME_BASE): Update.
154 (SIGFRAME_PC_OFF): Update.
155 (SIGFRAME_REGSAVE_OFF): Update.
156 (SIGFRAME_FPREGSAVE_OFF): Update.
157 (SIGFRAME_REG_SIZE): Update.
158 (mips32_heuristic_proc_desc): Update.
159 (print_gp_register_row): Update.
160 (mips_dump_tdep): Do not print MIPS_REGSIZE.
161 * irix5-nat.c (supply_gregset): Update.
162 (fetch_core_registers): Update.
163 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
164 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
165 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
166 (MIPS_REGISTER_BYTE): Update.
167 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
168
5e044b1e
AC
1692003-11-15 Andrew Cagney <cagney@redhat.com>
170
171 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
172 USE_REGISTER_NOT_ARG.
173 * stabsread.c (define_symbol): Update.
174
3a16a68c
AC
1752003-11-15 Andrew Cagney <cagney@redhat.com>
176
177 * bcache.h (deprecated_bcache): Declare.
178 (bcache): Make returned buffer constant.
179 * bcache.c (deprecated_bcache): New function.
180 (bcache_data): New function.
181 (bcache): Call bcache data.
182 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
183 (add_psymbol_with_dem_name_to_list): Ditto.
184
bb41a796
MK
1852003-11-15 Mark Kettenis <kettenis@gnu.org>
186
187 * glibc-tdep.h (struct gdbarch): Declare opaque.
188 (glibc_skip_solib_resolver): Adjust prototype.
189 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
190 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
191 (arm_linux_init_abi): Set skip_solib_resolver.
192 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
193 (i386_linux_init_abi): Set skip_solib_resolver.
194 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
195 (arm_linux_skip_solib_resolver): Remove prototype.
196 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
197 (i386_linux_skip_solib_resolver): Remove prototype.
198
4c8c40e6
MK
1992003-11-14 Mark Kettenis <kettenis@gnu.org>
200
201 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
202 function.
203 * gdbarch.c, gdbarch.h: Regenerate.
204 * infrun.c (handle_inferior_event): Call
205 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
206 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
207 definition.
208 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
209 prototype.
210
0e5d83e3
JJ
2112003-11-14 Jeff Johnston <jjohnstn@redhat.com>
212
213 * libunwind-frame.c: New file.
214 * libunwind-frame.h: New file.
215 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
216 * configure.in: Add --with-libunwind option support. Define
217 HAVE_LIBUNWIND if libunwind support selected / defaulted.
218 Also check for libunwind.h and libunwind-ia64.h headers.
219 * configure: Regenerated.
220 * Makefile.in: Add support for libunwind-frame.o.
221 * config.in: Regenerated.
222
287a334e
JJ
2232003-11-14 Jeff Johnston <jjohnstn@redhat.com>
224
225 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
226 set up the ia64 linux native target method for getting the kernel
227 unwind table.
228 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
229 * inftarg.c (child_xfer_partial): Enable section of code to
230 handle TARGET_OBJECT_UNWIND_TABLE.
231 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
232
140be7b8
ILT
2332003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
234
235 * config/arm/nbsd.mt (TM_FILE): Define.
236 * config/arm/tm-nbsd.h: New file.
237
0a90bcdd
AC
2382003-11-14 Andrew Cagney <cagney@redhat.com>
239
240 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
241 * ppc-sysv-tdep.c: Include "objfiles.h".
242 (ppc64_sysv_abi_push_dummy_call): Provide the
243 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
244
245 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
246 "name_of_malloc" to ".malloc".
247
087f1027
MK
2482003-11-13 Mark Kettenis <kettenis@gnu.org>
249
250 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
251
3882f37a
DC
2522003-11-13 David Carlton <carlton@kealia.com>
253
254 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
255
a8cf2722
AC
2562003-11-13 Andrew Cagney <cagney@redhat.com>
257
258 * arch-utils.h (selected_architecture_name): Declare.
259 (selected_byte_order): Declare.
260 * arch-utils.c (selected_byte_order): New function.
261 (selected_architecture_name): New function.
262 (target_architecture_auto): Make static.
263 (set_architecture_string): Make static.
264 (target_byte_order): Make static.
265 (target_byte_order_auto): Make static.
266 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
267 non-multi-arch definition.
268 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
269 (target_byte_order, target_architecture): Delete declaration.
270 (target_byte_order_auto, target_architecture_auto): Ditto.
271 * gdbarch.h: Re-generate.
272 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
273 "selected_byte_order".
274
475b6ddd
AC
2752003-11-13 Andrew Cagney <cagney@redhat.com>
276
277 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
278
a22286a9
JB
2792003-11-13 Jim Blandy <jimb@redhat.com>
280
281 * cp-namespace.c: Doc fix.
282
7bb11558
MS
2832003-11-12 Michael Snyder <msnyder@redhat.com>
284
39add00a
MS
285 * sh64_tdep.c: Regularize some names.
286 (sh_sh64_register_name): Rename to sh64_register_name.
287 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
288 (sh_sh64_register_byte): Rename to sh64_register_byte.
289 (sh_sh64_build_float_register_type):
290 Rename to sh64_build_float_register_type.
291 (sh_sh64_register_convert_to_virtual):
292 Rename to sh64_register_convert_to_virtual.
293 (sh_sh64_register_convert_to_raw):
294 Rename to sh64_register_convert_to_raw.
295
2a314ed5
MS
296 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
297 sh64_media_reg_base_num, sh64_compact_reg_base_num,
298 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
299 sh64_extract_return_value, sh64_show_media_regs,
300 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
301 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
302 sh64_pseudo_register_read, sh64_pseudo_register_write,
303 sh64_do_pseudo_register, sh_compact_print_registers_info):
304 Delete unused variable 'tdep'.
305
7bb11558
MS
306 * sh64-tdep.c: Coding standard and spelling comment fixes.
307 (sh64_extract_return_value): Replace deprecated_store_floating
308 with store_typed_floating.
309 (sh_sh64_register_convert_to_raw): Replace
310 deprecated_store_floating with store_typed_floating.
311 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
312 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
313 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
314 sh64_extract_struct_value_address, sh64_pop_frame,
315 sh64_extract_return_value, sh64_store_return_value,
316 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
317 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
318 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
319 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
320 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
321 deprecated_register_virtual_type, deprecated_register_raw_size,
322 deprecated_max_register_raw_size, or
323 deprecated_max_register_virtual_size. Instead, just set
324 gdbarch_register_type.
39add00a
MS
325 (sh_sh64_register_raw_size): Delete.
326 (sh_sh64_register_virtual_size): Delete.
7bb11558 327
e7c27a73
DJ
3282003-11-12 Daniel Jacobowitz <drow@mvista.com>
329
330 * dwarf2read.c (struct dwarf2_cu): New type.
331
332 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
333 dwarf2_cu structure to pass down.
334
335 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
336 (add_partial_enumeration, locate_pdi_sibling, process_die)
337 (read_file_scope, read_func_scope)
338 (read_lexical_block_scope, dwarf2_get_pc_bounds)
339 (dwarf2_add_field, dwarf2_attach_fields_to_type)
340 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
341 (read_structure_scope, read_enumeration, read_array_type)
342 (read_common_block, read_namespace, read_tag_pointer_type)
343 (read_tag_ptr_to_member_type, read_tag_reference_type)
344 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
345 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
346 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
347 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
348 (read_full_die. read_attribute_value, read_attribute)
349 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
350 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
351 (die_containing_type, type_at_offset, tag_type_to_type)
352 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
353 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
354
1640b821
DJ
3552003-11-12 Daniel Jacobowitz <drow@mvista.com>
356
357 PR breakpoints/1450
358 * breakpoint.c (insert_bp_location): Fix a logic error by returning
359 0 after a catchpoint fails.
360
d7891507
MC
3612003-11-11 Michael Chastain <mec.gnu@mindspring.com>
362
363 * mips-tdep.c (msymbol_size): Delete.
364
f594e5e9
MC
3652003-11-07 Michael Chastain <mec@shout.net>
366
367 * symtab.h (struct minimal_symbol): Add size.
368 * dbxread.c: Use it.
369 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
370 Rename to record_minimal_symbol.
371 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
372 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
373 (install_minimal_symbols): Ditto.
374 * objfiles.c (terminate_minimal_symbol_table): Ditto.
375 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
376 * m68hc11-tdep.c: Ditto.
377 * mips-tdep.c: Ditto.
378 * sh64-tdep.c: Ditto.
379
68e39e73
MC
3802003-11-10 Michael Chastain <mec.gnu@mindspring.com>
381
382 * MAINTAINERS: Change my e-mail address.
383
b60eb90d
AC
3842003-11-10 Andrew Cagney <cagney@redhat.com>
385
963e2bb7
AC
386 * gdbarch.sh (return_value): Replace "inval" and "outval" with
387 "readbuf" and "writebuf".
388 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
389 * d10v-tdep.c (d10v_return_value): Ditto.
390 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
391 (ppc_sysv_abi_broken_return_value): Ditto.
392 (ppc64_sysv_abi_return_value): Ditto.
393 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
394 (ppc_sysv_abi_return_value): Ditto.
395 (ppc_sysv_abi_broken_return_value): Ditto.
396 (ppc64_sysv_abi_return_value): Ditto.
397 * values.c (register_value_being_returned): Update call.
398 * stack.c (return_command): Update call.
399 * gdbarch.h, gdbarch.c: Re-generate.
400
8aa91c1e
AC
401 * target.h (struct target_ops): Order xfer buffer parameters "read
402 write" not "write read".
403 * bfd-target.c (target_bfd_xfer_partial): Update.
404 * remote.c (remote_xfer_partial): Update.
405 * inftarg.c (child_xfer_partial): Update.
406 * target.c (default_xfer_partial): Update.
407 (target_read_partial, target_write_partial): Update.
408 (debug_to_xfer_partial): Update.
409
100bcc3f
AC
410 * arch-utils.h, arch-utils.c: Fix typo in comment.
411
b60eb90d
AC
412 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
413 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
414 (set_gdbarch_from_file): Call
415 "deprecated_current_gdbarch_select_hack".
b60eb90d 416
bf922ad9
AC
4172003-11-09 Andrew Cagney <cagney@redhat.com>
418
ebdba546
AC
419 * arch-utils.c (gdbarch_update_p): New function.
420 * gdbarch.sh (gdbarch_update_p): Delete function.
421 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 422 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
423 * gdbarch.c: Re-generate.
424
7de2341d
AC
425 * gdbarch.sh (clear_gdbarch_swap): Delete function.
426 (swapout_gdbarch_swap): Delete function.
427 (swapin_gdbarch_swap): Delete function.
428 (init_gdbarch_swap): Delete function.
429 (initialize_non_multiarch): Delete function.
430 (current_gdbarch_swap_in_hack): New function.
431 (current_gdbarch_swap_out_hack): New function.
432 (current_gdbarch_swap_init_hack): New function.
433 * gdbarch.c: Re-generate.
434
db446970
AC
435 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
436 parameter to "current_gdbarch". Add comment explaining why.
437 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
438 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
439 * gdbarch.c: Re-generate.
440
341e3d11
AC
441 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
442 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
443 * config/s390/xm-linux.h: Delete file.
444 * config/m88k/xm-delta88v4.h: Delete stray.
445
bf922ad9
AC
446 * Makefile.in (arch-utils.o): Update dependencies.
447 * arch-utils.c: Include "osabi.h".
448 (gdbarch_info_fill): New function.
449 * arch-utils.h (gdbarch_info_fill): Declare.
450 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
451 * gdbarch.c: Re-generate.
452
a3640c75
MK
4532003-11-09 Mark Kettenis <kettenis@gnu.org>
454 David S. Miller <davem@redhat.com>
455
456 * glibc-tdep.c, glibc-tdep.h: New files.
457 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
458 * config/i386/linux.mt (TDEPFILES): Likewise.
459 * i386-linux-tdep.c (glibc-tdep.h): Include.
460 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
461 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
462 * arm-linux-tdep.c (glibc-tdep.h): Include.
463 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
464 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
465 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
466 (glibc_tdep_h): Define.
467 (glibc-tdep.o): Add dependencies.
468 (arm-linux-tdep.o): Update dependencies.
469 (i386-linux-tdep.o): Likewise.
470
e60e0ab2
AC
4712003-11-09 Andrew Cagney <cagney@redhat.com>
472
473 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
474 * config/mips/nm-irix6.h: Delete file.
475 * config/mips/nm-linux.h: Update copyright.
476 (MIPS_GNULINUX_TARGET): Delete macro.
477 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
478 * config/mips/xm-irix6.h: Delete file.
479 * config/mips/linux.mh (XM_FILE): Delete definition.
480 * config/mips/xm-linux.h: Delete file.
481
181555e9
AC
4822003-11-09 Andrew Cagney <cagney@redhat.com>
483
484 * d10v-tdep.c (d10v_return_value): New function.
485 (d10v_use_struct_convention): Delete function.
486 (d10v_store_return_value): Delete function.
487 (d10v_extract_struct_value_address): Delete function.
488 (d10v_gdbarch_init): Set "return_value" instead of
489 "extract_return_value", "store_return_value",
490 "extract_struct_value_address", and "use_struct_convention".
491 (RET1_REGNUM): Delete const.
492
dea0c52f
MK
4932003-11-09 Mark Kettenis <kettenis@gnu.org>
494
495 From David S. Miller <davem@redhat.com>:
496 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
497 * gdbarch.c, gdbarch.h: Regenerated.
498 * arch-utils.c (generic_skip_solib_resolver): New function.
499 * arch-utils.h (generic_skip_solib_resolver): New prototype.
500 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
501
6314a349
AC
5022003-11-07 Andrew Cagney <cagney@redhat.com>
503
504 * top.c (print_gdb_version): Replace STREQ with strcmp.
505 * valops.c (value_struct_elt_for_reference): Ditto.
506 (value_struct_elt_for_reference): Ditto.
507 * symtab.c (gdb_mangle_name): Ditto.
508 (find_line_symtab): Ditto.
509 * symmisc.c (maintenance_print_symbols): Ditto.
510 * symfile.c (symbol_file_command): Ditto.
511 * stabsread.c (define_symbol, read_type): Ditto.
512 (cleanup_undefined_types, scan_file_globals): Ditto.
513 * solib.c (solib_map_sections): Ditto.
514 * solib-svr4.c (bfd_lookup_symbol): Ditto.
515 * rs6000-tdep.c (skip_prologue): Ditto.
516 * p-valprint.c (pascal_value_print): Ditto.
517 (pascal_object_is_vtbl_ptr_type): Ditto.
518 * objfiles.c (in_plt_section): Ditto.
519 * minsyms.c (lookup_minimal_symbol): Ditto.
520 (compact_minimal_symbols): Ditto.
521 (find_solib_trampoline_target): Ditto.
522 * mdebugread.c (parse_type): Ditto.
523 * language.c (set_language_command): Ditto.
524 (set_type_command, set_range_command): Ditto.
525 * f-lang.c (add_common_block): Ditto.
526 (add_common_block): Ditto.
527 (find_first_common_named): Ditto.
528 (patch_all_commons_by_name): Ditto.
529 * elfread.c (elf_locate_sections): Ditto.
530 (elf_locate_sections): Ditto.
531 (elfstab_offset_sections): Ditto.
532 * dwarf2read.c (dwarf2_locate_sections): Ditto.
533 * dbxread.c (add_old_header_file): Ditto.
534 (find_corresponding_bincl_psymtab): Ditto.
535 (read_dbx_symtab, process_one_symbol): Ditto.
536 * coffread.c (patch_opaque_types): Ditto.
537 * cli/cli-decode.c (delete_cmd): Ditto.
538 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
539 * c-typeprint.c (c_type_print_base): Ditto.
540 * breakpoint.c (bpstat_stop_status): Ditto.
541 (clear_command, breakpoint_re_set_one): Ditto.
542
49df298f
AC
5432003-11-07 Andrew Cagney <cagney@redhat.com>
544
545 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
546 * bcache.c (struct bstring): Make "length" an unsigned short, add
547 "half_hash".
548 (struct bcache): Add "half_hash_error_count".
549 (bcache): Compute and save the "half_hash". Compare the
550 "half_hash" before comparing the length. Update
551 half_hash_error_count.
552
f168dd80
AC
5532003-11-07 Andrew Cagney <cagney@redhat.com>
554
555 * inftarg.c (child_xfer_partial): New function
556 (init_child_ops): Set "to_xfer_partial".
557
05580c65
AC
5582003-11-07 Andrew Cagney <cagney@redhat.com>
559
560 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
561 set "return_value" instead of "use_struct_convention".
562 (ppc_linux_use_struct_convention): Delete function.
563 (ppc_linux_return_value): New function.
564 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
565 (ppc_sysv_abi_broken_return_value): New function.
566 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
567 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
568 static.
569 (ppc_sysv_abi_extract_return_value): Delete function.
570 (ppc_sysv_abi_broken_extract_return_value): Delete function.
571 (ppc_sysv_abi_store_return_value): Delete function.
572 (ppc_sysv_abi_broken_store_return_value): Delete function.
573 (ppc_sysv_abi_use_struct_convention): Delete function.
574 (ppc64_sysv_abi_use_struct_convention): Delete function.
575 (ppc64_sysv_abi_extract_return_value): Delete function.
576 (ppc64_sysv_abi_store_return_value): Delete function.
577 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
578 (ppcnbsd_init_abi): Set "return_value", instead of
579 "use_struct_convention", "extract_return_value", and
580 "store_return_value".
581 (ppcnbsd_use_struct_convention): Delete function.
582 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
583 (ppc_sysv_abi_return_value): Declare.
584 (ppc_sysv_abi_broken_return_value): Declare.
585 (ppc_sysv_abi_use_struct_convention): Delete.
586 (ppc_sysv_abi_store_return_value): Delete.
587 (ppc_sysv_abi_extract_return_value): Delete.
588 (ppc_sysv_abi_broken_store_return_value): Delete.
589 (ppc_sysv_abi_broken_extract_return_value): Delete.
590 (ppc64_sysv_abi_use_struct_convention): Delete.
591 (ppc64_sysv_abi_extract_return_value): Delete.
592 (ppc64_sysv_abi_store_return_value): Delete.
593 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
594 set "return_value" instead of "extract_return_value",
595 "store_return_value", and "use_struct_convention".
596
1763fba4
MK
5972003-11-07 Mark Kettenis <kettenis@gnu.org>
598
22c7ba1a
MK
599 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
600
1763fba4
MK
601 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
602 fscanf.
603
fc07cc2d
MK
6042003-11-07 Mark Kettenis <kettenis@gnu.org>
605
606 * fbsd-proc.c: Fix formatting.
607
6a748db6
KB
6082003-11-06 Kevin Buettner <kevinb@redhat.com>
609
610 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
611 Define.
612 (new_variant): Set name for iacc0_regnum.
613 (frv_register_name): Accommodate pseudo-registers.
614 (frv_register_type): Add case for iacc0_regnum.
615 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
616 (frv_gdbarch_init): Set number of pseudo registers. Establish
617 pseudo-register read/write methods.
618
bf896cb0
AC
6192003-11-06 Andrew Cagney <cagney@redhat.com>
620
621 * valops.c (destructor_name_p): Replace STREQN with strncmp.
622 * top.c (command_line_input): Ditto.
623 * objc-exp.y (yylex): Ditto.
624 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
625 * jv-exp.y (yylex): Ditto.
626 * f-exp.y (yylex): Ditto.
627 * event-top.c (command_line_handler): Ditto.
628 * environ.c (get_in_environ): Ditto.
629 (set_in_environ): Ditto.
630 * dwarfread.c (handle_producer): Ditto.
631 * dbxread.c (process_one_symbol): Ditto.
632 * c-typeprint.c (c_type_print_base): Ditto.
633 * c-exp.y (yylex): Ditto.
634
0b603eba
AC
6352003-11-06 Andrew Cagney <cagney@redhat.com>
636 Jeff Johnston <jjohnstn@redhat.com>
637
638 * target.c (add_target): Only set "to_xfer_partial" when NULL.
639 (init_dummy_target): Set "to_xfer_partial".
640
9cedbfec
AC
6412003-11-06 Andrew Cagney <cagney@redhat.com>
642
643 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
644 REGISTER_CONVENTION.
645
26bb91f3
DJ
6462003-11-06 Daniel Jacobowitz <drow@mvista.com>
647
648 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
649 static.
650
0bde7532
DJ
6512003-11-06 Daniel Jacobowitz <drow@mvista.com>
652
653 * breakpoint.c (remove_breakpoint): Take an bp_location
654 instead of a breakpoint argument. Check the bp_location's type.
655 Fix a reversed condition for hardware breakpoints.
656
657 (insert_bp_location): Update call to remove_breakpoint.
658 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
659 (remove_hw_watchpoints): Likewise.
660 (reattach_breakpoints): Likewise.
661 (detach_breakpoints): Likewise.
662 (delete_breakpoint): Likewise.
663
075f6582
DJ
6642003-11-06 Daniel Jacobowitz <drow@mvista.com>
665
666 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
667 (beakpoint_init_inferior): Likewise.
668 (breakpoint_here_p): Likewise. Only check addresses for software
669 or hardware breakpoints.
670 (breakpoint_inserted_here_p): Likewise.
671 (breakpoint_thread_match): Likewise. Correct comment.
672 (bpstat_have_active_hw_watchpoints): Likewise.
673 (check_duplicates): Likewise.
674
879bfdc2
DJ
6752003-11-06 Daniel Jacobowitz <drow@mvista.com>
676
677 * breakpoints.c (insert_bp_location): New function, broken out
678 from insert_breakpoints. Work on an bp_location instead of a
679 breakpoint.
680 (insert_breakpoints): Use it.
681
cf3a9e5b
DJ
6822003-11-06 Daniel Jacobowitz <drow@mvista.com>
683
684 * breakpoint.h (struct bp_location): Add section.
685 (struct breakpoint): Remove section.
686 * breakpoint.c (insert_breakpoints, remove_breakpoint)
687 (breakpoint_here_p, breakpoint_inserted_here_p)
688 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
689 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
690 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
691 section through loc.
692
ffce0d52
DJ
6932003-11-06 Daniel Jacobowitz <drow@mvista.com>
694
695 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
696 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
697
e049a4b5
DJ
6982003-11-06 Daniel Jacobowitz <drow@mvista.com>
699
700 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
701 arguments. Initialize owner and type for the new breakpoint
702 location item.
703 (set_raw_breakpoint): Update call to allocate_bp_location.
704
7cc221ef
DJ
7052003-11-06 Daniel Jacobowitz <drow@mvista.com>
706
707 * breakpoint.h (struct bp_location): Add a chain pointer.
708 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
709 macros.
710 (bp_location_chain): New variable.
711 (allocate_bp_location): New function.
712 (set_raw_breakpoint): Use it.
713 (delete_breakpoint): Remove ->loc from the bp_location_chain.
714
5cab636d
DJ
7152003-11-06 Daniel Jacobowitz <drow@mvista.com>
716
717 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
718 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 719 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
720 * breakpoint.c (condition_command, read_memory_nobpt)
721 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
722 (reattach_breakpoints, update_breakpoints_after_exec)
723 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
724 (breakpoint_init_inferior, breakpoint_here_p)
725 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
726 (breakpoint_thread_match, bpstat_stop_status)
727 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
728 (describe_other_breakpoints, check_duplicates)
729 (make_breakpoint_permanent, create_thread_event_breakpoint)
730 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
731 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
732 (watch_command_1, print_one_exception_catchpoint)
733 (clear_command, breakpoint_re_set_one): Adjust member accesses to
734 use the breakpoint's ->loc.
735 (set_raw_breakpoint): Likewise. Initialize ->loc.
736 (delete_breakpoint): Likewise. Free ->loc.
737
7be0c536
AC
7382003-11-05 Andrew Cagney <cagney@redhat.com>
739
4c7d882e
AC
740 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
741 macro.
742 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
743 * config/i386/tm-cygwin.h
744 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
745 * config/powerpc/tm-linux.h
746 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
747 (at_subroutine_call_instruction_target): Delete declaration.
748 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
749 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
750 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
751
7be0c536
AC
752 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
753 "struct bfd_section" and "struct bfd".
754 * target.h (struct section_table): Ditto.
755 * rs6000-nat.c (xcoff_relocate_core): Ditto.
756 * solib-svr4.c (elf_locate_base): Ditto.
757 * pa64solib.c (dld_cache_t): Ditto.
758 * objfiles.h (struct obj_section): Ditto.
759 * objfiles.c (add_to_objfile_sections): Ditto.
760 * exec.c (bfdsec_to_vmap): Ditto.
761 (add_to_section_table): Ditto.
762 (build_section_table): Ditto.
763 * corelow.c (get_core_register_section): Ditto.
764 * coffread.c (find_linenos): Ditto.
765 * elfread.c (elf_interpreter): Delete #if0'd function.
766
767 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
768 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
769 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
770 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
771
772 * arch-utils.h (generic_cannot_extract_struct_value_address):
773 Delete declaration.
774 * wince.c (_initialize_wince): Fix multi-line string.
775 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
776
d8fe84e3
EZ
7772003-11-05 Elena Zannoni <ezannoni@redhat.com>
778
779 * top.c (execute_command): Fix broken logic for command execution
780 while inferior is running in async mode.
781
cbdfc7c0
MK
7822003-11-06 Mark Kettenis <kettenis@gnu.org>
783
784 * dwarf2-frame.c (execute_cfa_program): Mark register as
785 REG_SAVED_REG for DW_CFA_register opcode.
786
dac94105
MK
7872003-11-05 Mark Kettenis <kettenis@gnu.org>
788
789 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
790 %rsp, %rip and %eflags to match ABI-change.
791
85bf2b91
JJ
7922003-11-05 Jeff Johnston <jjohnstn@redhat.com>
793
794 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
795 (ia64_gdbarch_init): Don't bother calculating the os.
796 Instead use the gdbarch_info struct and look at the osabi field.
797 Also use gdbarch_list_lookup_by_info() to look for a
798 candidate gdbarch.
799
cd31fb03
KB
8002003-11-05 Kevin Buettner <kevinb@redhat.com>
801
802 * frv-tdep.c (frv_register_byte): Delete.
803 (frv_extract_return_value, frv_store_return_value)
804 (frv_extract_struct_value_address): Don't call frv_register_byte().
805 Convert to non-deprecated form.
806 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
807 Convert calls to set_gdbarch_deprecated_extract_return_value(),
808 set_gdbarch_deprecated_store_return_value(), and
809 set_gdbarch_deprecated_extract_struct_value_address() into
810 non-deprecated forms.
811
0a056982
AC
8122003-11-05 Andrew Cagney <cagney@redhat.com>
813
814 * mips-tdep.c (mips_dump_tdep): Do not print
815 PRINT_EXTRA_FRAME_INFO.
816 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
817 Rename PRINT_EXTRA_FRAME_INFO.
818 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
819 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
820 (mips_print_extra_frame_info): Delete declaration.
821 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
822
29e0a062
EZ
8232003-11-05 Elena Zannoni <ezannoni@redhat.com>
824
825 * coffread.c (coff_symtab_read): Remove passing of info parameter
826 to prim_record_minimal_symbol_and_info.
827
8af580fc
EZ
8282003-11-05 Elena Zannoni <ezannoni@redhat.com>
829
830 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
831 (decode_base_type): Delete ifdeffed out code.
832
507836c0
AC
8332003-11-04 Andrew Cagney <cagney@redhat.com>
834
835 * symtab.c (find_active_alias): Delete function.
836 (lookup_block_symbol): Delete alias code.
837 * stabsread.c (resolve_live_range): Delete function.
838 (add_live_range): Delete function.
839 (resolve_symbol_reference): Delete function.
840 (define_symbol): Delete live range and alias code.
841 (scan_file_globals): Delete alias code.
842 * symtab.h (SYMBOL_RANGES): Delete macro.
843 (struct range_list): Delete structure.
844 (struct symbol): Delete field "ranges".
845 (SYMBOL_ALIASES): Delete macro.
846 (struct alias_list): Delete structure.
847 (struct symbol): Delete field "aliases".
848
1083b3bc
MS
8492003-11-04 Michael Snyder <msnyder@redhat.com>
850
851 * MAINTAINERS: Remove myself as owner of breakpoints and
852 of sparc/solaris.
853
474e5826
CV
8542003-11-03 Corinna Vinschen <vinschen@redhat.com>
855
856 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
857 (sh_sh4al_dsp_register_name): Ditto.
858 (sh4_nofpu_show_regs): Ditto.
859 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
860 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
861
2160782c
AC
8622003-11-03 Andrew Cagney <cagney@redhat.com>
863
864 * bcache.c: Include "gdb_assert.h".
865 (struct bcache): Add fields "expand_count" and
866 "expand_hash_count".
867 (expand_hash_table): Update the expand counts.
868 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
869 on object sizes and hashes.
870 * Makefile.in (bcache.o): Update dependencies.
871
85302095
AC
8722003-11-03 Andrew Cagney <cagney@redhat.com>
873
874 * exec.c (xfer_memory): Eliminate xfer_fn.
875
526eef89
KB
8762003-10-31 Kevin Buettner <kevinb@redhat.com>
877
878 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
879 (opcodes/frv-desc.h): Include.
880 (iacc0h_regnum, iacc0l_regnum): Define.
881 (last_spr_regnum, frv_num_regs): Update.
882 (new_variant): Don't supply default names for holes in the SPRs.
883 Supply names for iacc0h_regnum and iacc0l_regnum.
884 (frv_register_type): Use symbolic constants first_fpr_regnum and
885 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
886 builtin_type_int instead of builtin_type_int32.
887 (frv_register_sim_regno): New function.
888 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
889 * Makefile.in (gdb_sim_frv_h): Define.
890 (frv-tdep.o): Update dependencies.
891
9e815ec2
AC
8922003-10-31 Andrew Cagney <cagney@redhat.com>
893
894 * avr-tdep.c (avr_frame_this_id): Do not call
895 deprecated_inside_entry_file.
896 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
897 * m32r-tdep.c (m32r_frame_this_id): Ditto.
898 * d10v-tdep.c (d10v_frame_this_id): Ditto.
899 * arm-tdep.c (arm_prologue_this_id): Ditto.
900 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
901
e372db49
JB
9022003-10-31 Jim Blandy <jimb@redhat.com>
903
904 * elfread.c (elf_symtab_read): Allocate correct number of tail
905 elements to sectinfo structure. (Fix from Woody LaRue.)
906
e8bcf01f
AC
9072003-10-31 Andrew Cagney <cagney@redhat.com>
908
909 * stack.c (return_command): Use get_frame_type, instead of
910 CALL_DUMMY_HAS_COMPLETED.
911 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
912 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
913
4c05fe53
MK
9142003-10-31 Mark Kettenis <kettenis@gnu.org>
915
916 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
917 explicitly specify size of array.
918 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
919 TDEP->sc_num_regs.
920
c8b91b89
AC
9212003-10-31 Andrew Cagney <cagney@redhat.com>
922
923 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
924 function.
925 (s390_gdbarch_init): Set extract_struct_value_address.
926 * arch-utils.c (generic_cannot_extract_struct_value_address):
927 Delete function.
928 * arch-utils.h (generic_cannot_extract_struct_value_address):
929 Delete definition.
930
fdfb6fc8
MK
9312003-10-31 Mark Kettenis <kettenis@gnu.org>
932
933 * i386-linux-nat.c (fetch_core_registers): Remove.
934 (linux_elf_core_fns): Remove.
935 (_initialize_i386_linux_nat): Remove.
936
2f4950cd
AC
9372003-10-31 Andrew Cagney <cagney@redhat.com>
938
939 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
940 "exec.h".
941 (exec_entry_point): New function.
942 (enable_break): Create a "tmp_bfd_target", use that and
943 entry_point_address when computing the relocation offset.
944 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
945 * Makefile.in (solib-svr4.o): Update dependencies.
946
bba2d28d
AC
9472003-10-31 Andrew Cagney <cagney@redhat.com>
948
949 * defs.h (XZALLOC): Define.
950 * target.h (struct target_ops): Add "to_data";
951 * bfd-target.h, bfd-target.c: New files.
952 * Makefile.in (SFILES): Add "bfd-target.c".
953 (COMMON_OBS): Add "bfd-target.o".
954 (bfd-target.o): Specify dependencies.
955 (bfd_target_h): Define.
956 * defs.h (XZALLOC): Define.
957
6066c3de
AC
9582003-10-31 Andrew Cagney <cagney@redhat.com>
959
960 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
961 adjust_breakpoint_address.
962 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
963 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
964 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
965 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
966
4b8a223f
AC
9672003-10-31 Andrew Cagney <cagney@redhat.com>
968
969 * target.h (struct target_ops): Replace "to_read_partial" and
970 "to_write_partial" with "to_xfer_partial". Update comments.
971 * target.c (debug_to_write_partial): Delete function.
972 (debug_to_xfer_partial): Replace debug_to_read_partial.
973 (add_target, update_current_target, setup_target_debug): Set
974 "to_xfer_partial" instead of "to_read_partial" and
975 "to_write_partial".
976 (default_xfer_partial): Replace "default_write_partial".
977 (default_read_partial): Delete.
978 (target_read_partial, target_write_partial): Call
979 "to_xfer_partial".
980 * remote.c (init_remote_ops): Set "to_xfer_partial".
981 (init_remote_async_ops): Ditto.
982 (remote_xfer_partial): Replace "remote_read_partial".
983
66a72d25
MK
9842003-10-31 Mark Kettenis <kettenis@gnu.org>
985
986 * i386-tdep.c (i386_supply_fpregset): Support floating-point
987 registers in `fxsave' format.
988 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
989
9a12a2a0
MK
9902003-10-30 Mark Kettenis <kettenis@gnu.org>
991
e9f1aad5
MK
992 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
993 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
994 TDEP->gregset_num_regs and tdep->sizeof_gregset.
995
bb489b3c
MK
996 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
997 specify size of array.
998 (i386_linux_init_abi): Remove initialization of
999 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1000 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1001
da285bc4
MK
1002 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1003 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1004 core-regset.o.
1005
9a12a2a0
MK
1006 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1007 the ELF header.
1008
0e24ac5d
MK
10092003-10-29 Mark Kettenis <kettenis@gnu.org>
1010
6d6d8e9c
MK
1011 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1012 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1013 core-regset.o.
1014
25e60c9b
MK
1015 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1016
0e24ac5d
MK
1017 * corelow.c: Include "arch-utils.h", "regset.h" and
1018 "gdb_assert.h".
1019 (core_gdbarch): New variable.
1020 (sniff_core_bfd): Don't sniff if we have support for register sets
1021 in CORE_GDBARCH.
1022 (core_close): Reset CORE_GDBARCH.
1023 (core_open): Initialize CORE_GDBARCH.
1024 (get_core_register_section): Use register sets if they are
1025 supported by CORE_GDBARCH.
1026 (get_core_registers): Don't print error message if we have support
1027 for register sets in CORE_GDBARCH.
1028
0a0a4ac3
AC
10292003-10-29 Andrew Cagney <cagney@redhat.com>
1030
1031 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1032 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1033
7b097ae3
MK
10342003-10-29 Mark Kettenis <kettenis@gnu.org>
1035
1036 * objfiles.h (clear_objfile_data): New prototype.
1037 * objfiles.c (clear_objfile_data): New function.
1038 * symfile.c (reread_symbols): Clear per-objfile data.
1039
46f45a4a
JJ
10402003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1041
1042 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1043 printf_unfiltered instead of printf_filtered for output messages.
1044 (add_symbol_file_command): Ditto.
1045 (reread_symbols): Ditto.
1046 (overlay_auto_command): Ditto.
1047 (overlay_manual_command): Ditto.
1048 (overlay_off_command): Ditto.
1049
2b026650
MK
10502003-10-27 Mark Kettenis <kettenis@gnu.org>
1051
1052 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1053 (gdbarch_from_bfd): New function.
1054 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1055 deprecated_select_gdbarch_hack.
1056 * arch-utils.h (gdbarch_from_bfd): New prototype.
1057
0bcad584 10582003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1059
1060 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1061 arch_info. Use warning instead of fprintf_filtered. Do not use
1062 deprecated bfd_printable_arch_mach.
1063
7f398216
KB
10642003-10-26 Kevin Buettner <kevinb@redhat.com>
1065
1066 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1067 Delete.
1068 (frv_register_type): Rename from frv_register_virtual_type. Add
1069 ``struct gdbarch *'' parameter.
1070 (frv_gdbarch_init): Delete calls to the following functions:
1071 set_gdbarch_deprecated_size(),
1072 set_gdbarch_deprecated_register_bytes(),
1073 set_gdbarch_deprecated_register_raw_size(),
1074 set_gdbarch_deprecated_max_register_raw_size(),
1075 set_gdbarch_deprecated_register_virtual_size(),
1076 set_gdbarch_deprecated_max_register_virtual_size(),
1077 set_gdbarch_deprecated_register_virtual_size(),
1078 set_gdbarch_deprecated_register_virtual_type().
1079 Add call to function set_gdbarch_register_type().
1080
bcf48cc7
MK
10812003-10-26 Mark Kettenis <kettenis@gnu.org>
1082
6c7de422
MK
1083 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1084 FDOFF_REGNUM): Remove defines.
1085 * win32-nat.c (do_child_fetch_inferior_registers): Include
1086 "i387-tdep.h".
3e685d41 1087 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1088 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1089 undefine I387_ST0_REGNUM.
1090
f783586b
MK
1091 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1092 * x86-64-tdep.c (x86_64_store_return_value): Use
1093 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1094
bcf48cc7
MK
1095 Change register numbers to enumartion values.
1096 * i386-tdep.h (enum i386_regnum): New.
1097 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1098 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1099 I386_ST0_REGNUM): Remove defines.
1100 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1101 I386_EDI_REGNUM): Remove defines.
1102
b6591e8b
AC
11032003-10-24 Andrew Cagney <cagney@redhat.com>
1104
1105 * target.c: Include "gdbcore.h".
1106 (get_target_memory, get_target_memory_unsigned): New functions.
1107 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1108 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1109 Use get_target_memory_unsigned.
1110 * Makefile.in (target.o): Update dependencies.
1111
5f724446
AC
11122003-10-24 Andrew Cagney <cagney@redhat.com>
1113
ce2826aa
AC
1114 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1115 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1116 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1117 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1118 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1119
5f724446
AC
1120 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1121 (can_run_code_for): Use the OO term "singleton".
1122
fc70c2a0
AC
11232003-10-23 Andrew Cagney <cagney@redhat.com>
1124
1125 * Makefile.in (stack.o): Add $(regcache_h).
1126 * stack.c: Include "regcache.h"
1127 (return_command): Rewrite. Use get_frame_id and
1128 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1129 about unhandled return-values.
1130 * value.h (set_return_value): Delete declaration.
1131 * values.c (set_return_value): Delete function.
1132
4afcc598
JJ
11332003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1134
1135 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1136 (pseudo_regs): Add comment regarding register stack registers.
1137 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1138 (floatformat_valid): New static routine.
1139 (floatformat_ia64_ext): Add name field and set up is_valid routine
1140 to floatformat_valid().
1141 (examine_prologue): For the previous cfm, use
1142 frame_unwind_register()
1143 if the cfm is not stored in a register-stack register. Save the
1144 previous cfm value in the prev_cfm field. Add debug output.
1145 (ia64_frame_this_id): Use frame_id_build_special() to also register
1146 the bsp. Add debug output.
1147 (ia64_sigtramp_frame_this_id): Ditto.
1148 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1149 registers and also add some checks for framelessness before accepting
1150 current register values for fields such as return address. For cfm,
1151 use the cached prev_cfm field if available. Add comment to explain
1152 PSR logic. Add debug output.
1153 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1154 as part of initialization.
1155 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1156 calculated. Cache the bsp and cfm values.
1157 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1158 instead of using ia64_frame_prev_register() which doesn't expect most
1159 registers to be saved. The saved values for bsp and sp
1160 can be taken from the cache. Add debug output.
1161 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1162 the bsp.
1163
6cfae0bc
JB
11642003-10-23 Jim Blandy <jimb@redhat.com>
1165
1166 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1167 architecture the current arch can run code for --- but not if it's
1168 a superset.
1169 (can_run_code_for): New function.
1170
fcd182f9
JW
11712003-10-22 James E Wilson <wilson@specifixinc.com>
1172
1173 * MAINTAINERS: Move myself from paper trail section back to write
1174 after approval section.
1175
4646aa9d
AC
11762003-10-22 Andrew Cagney <cagney@redhat.com>
1177
1178 * exec.h: New file.
1179 * win32-nat.c: Include "exec.h".
1180 * solib.c: Include "exec.h".
1181 * target.h (build_section_table): Delete declaration.
1182 * somsolib.c: Include "exec.h".
1183 (exec_ops): Delete extern declaration.
1184 * rs6000-nat.c: Update copyright. Include "exec.h".
1185 (exec_ops): Delete extern declaration.
1186 * pa64solib.c: Update copyright. Include "exec.h".
1187 (exec_ops): Delete extern declaration.
1188 * exec.c: Update copyright. Include "exec.h".
1189 * corelow.c: Update dependencies. Include "exec.h".
1190 * Makefile.in (exec_h): Define.
1191 (exec.o, somsolib.o): Update dependencies.
1192 (pa64solib.o, corelow.o): Update dependencies.
1193
0088c768
AC
11942003-10-22 Andrew Cagney <cagney@redhat.com>
1195
1196 * target.c: Include "gdb_assert.h" (target_read): Call
1197 "target_read_partial", not "target_write_partial".
1198 (default_read_partial, default_write_partial): New function.
1199 (target_read_partial, target_write_partial): Simplify, assume that
1200 there is always a read/write method.
1201 (update_current_target, add_target): Always set "to_read_partial"
1202 and "to_write_partial".
1203 (target_write, target_read): Fail on a zero byte transfer.
1204 * Makefile.in (target.o): Update dependencies.
1205 * target.h: Update copyright date.
1206 (target_object): Fix typo.
1207
e2d0e7eb
AC
12082003-10-22 Andrew Cagney <cagney@redhat.com>
1209
1210 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1211 multi-arch method, add "targ" parameter.
1212 (struct target_ops): Declare.
1213 * gdbarch.h, gdbarch.c: Re-generate.
1214 * Makefile.in (c-valprint.o): Update dependencies.
1215 * arch-utils.h: Update copyright.
1216 (convert_from_func_ptr_addr_identity): Declare.
1217 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1218 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1219 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1220 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1221 * infcall.c (find_function_addr, call_function_by_hand): Update.
1222 * c-valprint.c: Include "target.h".
1223 (print_function_pointer_address): Update.
1224
f1c07ab0
AC
12252003-10-22 Andrew Cagney <cagney@redhat.com>
1226
1227 * target.c (target_close): New function.
1228 (debug_to_close): Use "target_close".
1229 (push_target): Use "target_close".
1230 (unpush_target): Use "target_close".
1231 (pop_target): Use "target_close".
1232 * target.h (struct target_ops): Add "to_xclose".
1233 (target_open): Delete macro. Move comment to "to_open".
1234 (target_close): Replace macro with function that takes a target.
1235 * top.c (quit_target): Pass "current_target" to "target_close".
1236
5520a790
EZ
12372003-10-21 Elena Zannoni <ezannoni@redhat.com>
1238
1239 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1240 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1241 * symtab.h (lookup_minimal_symbol_text): Update.
1242 * breakpoint.c (create_overlay_event_breakpoint,
1243 create_longjmp_breakpoint): Update callers.
1244 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1245 * symtab.c (find_pc_sect_line): Ditto.
1246
caa92b73
AC
12472003-10-21 Andrew Cagney <cagney@redhat.com>
1248
1249 * target.c (errno): Delete extern declaration.
1250
aa2a9a3c
JJ
12512003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1252
1253 * ia64-tdep.c: Change all occurrences of
1254 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1255 (ia64_frame_prev_register): Minor whitespace change.
1256
4beec2b7
MC
12572003-10-20 Michael Chastain <mec@shout.net>
1258
1259 * config/djgpp/fnchange.lst: Add lines for:
1260 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1261 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1262 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1263 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1264 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1265 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1266 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1267
92ad9cd9
AC
12682003-10-20 Andrew Cagney <cagney@redhat.com>
1269
1270 * values.c (register_value_being_returned): Update comments. Use
1271 "gdbarch_return_value" when available.
1272 (using_struct_return): Ditto.
1273 (set_return_value): Ditto. Use "gdbarch_return_value" when
1274 available.. Print a warning, and not an error, when an unhandled
1275 return type is encountered.
1276 * infcmd.c: Include "gdb_assert.h".
1277 (print_return_value): When gdbarch_return_value_p, and using
1278 struct return, assume that the value is not available.
1279 * defs.h (return_value_convention): Define.
1280 * gdbarch.sh (gdbarch_return_value): New predicate method.
1281 * gdbarch.h, gdbarch.c: Re-generate
1282 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1283
198beae2
AC
12842003-10-20 Andrew Cagney <cagney@redhat.com>
1285
1286 * symtab.c: Replace "struct sec" with "struct bfd_section".
1287 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1288
24d693a6 12892003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1290
1291 * config/djgpp/fnchange.lst: Add lines for:
1292 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1293 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1294 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1295
21ad8dc3
MK
12962003-10-19 Mark Kettenis <kettenis@gnu.org>
1297
1298 * amd64fbsd-nat.c (fetch_inferior_registers,
1299 store_inferior_registers): Remove functions.
1300 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1301
cced5e27
MK
13022003-10-18 Mark Kettenis <kettenis@gnu.org>
1303
1304 Add NetBSD/amd64 native configuration:
1305 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1306 * amd64nbsd-tdep.c: New file.
1307 * amd64nbsd-nat.c: New file.
1308 * amd64bsd-nat.c: New file.
1309 * config/i386/nbsd64.mh: New file.
1310 * config/i386/nbsd64.mt: New file.
1311 * configure.host: Add x86_64-*-netbsd*.
1312 * configure.tgt: Add x86_64-*-netbsd*.
1313 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1314 New targets.
1315 * NEWS (New native configurations): Mention NetBSD/amd64.
1316
666de3fd
MC
13172003-10-17 Michael Chastain <mec@shout.net>
1318
1319 * config/djgpp/fnchange.lst: Remove dead lines for:
1320 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1321 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1322 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1323 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1324 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1325 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1326 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1327 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1328 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1329 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1330 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1331 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1332 gdb/config/sparc/tm-sparclite.h,
1333 gdb/gdbtk/generic/ChangeLog-2001,
1334 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1335 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1336 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1337 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1338 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1339 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1340 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1341 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1342 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1343 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1344 itcl/iwidgets3.0.0/demos/fileselectionbox,
1345 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1346 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1347 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1348 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1349 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1350 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1351 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1352 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1353 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1354 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1355 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1356 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1357 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1358 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1359 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1360 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1361 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1362 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1363 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1364 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1365 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1366 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1367 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1368 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1369 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1370 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1371 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1372 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1373 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1374 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1375 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1376 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1377 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1378 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1379 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1380 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1381 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1382 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1383 itcl/iwidgets3.0.0/demos/scrolledframe,
1384 itcl/iwidgets3.0.0/demos/scrolledhtml,
1385 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1386 itcl/iwidgets3.0.0/demos/scrolledtext,
1387 itcl/iwidgets3.0.0/demos/selectionbox,
1388 itcl/iwidgets3.0.0/demos/selectiondialog,
1389 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1390 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1391 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1392 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1393 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1394 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1395 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1396 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1397 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1398 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1399 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1400 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1401 itcl/iwidgets3.0.0/doc/selectionbox.n,
1402 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1403 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1404 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1405 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1406 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1407 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1408 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1409 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1410 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1411 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1412 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1413 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1414 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1415 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1416 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1417 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1418 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1419 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1420 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1421 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1422 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1423 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1424 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1425 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1426 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1427 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1428 itcl/iwidgets3.0.0/tests/selectionbox.test,
1429 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1430 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1431 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1432 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1433 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1434 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1435 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1436 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1437 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1438 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1439 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1440 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1441 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1442 tk/mac/tkMacProjects.sit.hqx.
1443
1e3ff5ad
AC
14442003-10-17 Andrew Cagney <cagney@redhat.com>
1445
8db32d44
AC
1446 * target.c (target_section_by_addr): New function.
1447 (do_xfer_memory): Use "target_section_by_addr".
1448 * target.h (target_section_by_addr): Declare.
1449
1e3ff5ad
AC
1450 * target.h (struct target_ops): Add "to_read_partial" and
1451 "to_write_partial", delete "to_query".
1452 (target_read_partial, target_write_partial): Declare.
1453 (target_read, target_write): Declare.
1454 (target_query): Delete macro.
1455 * target.c (target_read_partial): New function.
1456 (target_write_partial, target_read, target_write): New function.
1457 (update_current_target): Delete inheritance of "to_query". Add
1458 comments about "to_read_partial" and "to_write_partial".
1459 (debug_to_partial_read, debug_to_partial_write): New functions.
1460 (debug_to_query): Delete function.
1461 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1462 instead of "to_query".
1463 * remote.c (remote_read_partial): Replace "remote_query".
1464 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1465 (init_remote_async_ops): Ditto.
1466 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1467 "target_read_partial" instead of "target_query".
1468 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1469 Use "target_read_partial" instead of "target_query".
1470
48c66725
JJ
14712003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1472
1473 * frame.h (struct frame_id): Add new field: special_addr.
1474 (frame_id_build_special): New prototype.
1475 * frame.c (frame_id_build_special): New function.
1476 (frame_id_build): Change to call frame_id_build_special().
1477 (frame_id_eq): Change to also test special_addr field.
1478 (frame_id_inner): Update comment.
1479
7998dfc3
AC
14802003-10-17 Andrew Cagney <cagney@redhat.com>
1481
1482 * target.c (update_current_target): Perform the target cleanup.
1483 Put the target stack beneath the squashed "current_target".
1484 (add_target): Delete disabled call to "cleanup_target".
1485 (cleanup_target): Delete function.
1486 (push_target, unpush_target): Do not call "cleanup_target".
1487
9c04404e 14882003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1489
1490 * target.c (target_stack): Change to a static target_ops.
1491 (update_current_target): Walk the "struct target_ops" stack.
1492 (pop_target, do_xfer_memory, target_info): Ditto.
1493 (find_target_beneath): Ditto.
1494 (push_target): Rewrite to use the "struct target_ops" stack.
1495 (unpush_target): Ditto.
1496 * target.h (struct target_stack_item): Delete definition.
1497 (target_stack): Delete declaration.
1498 (struct target_ops): Add field "beneath".
1499
c98a2b49 15002003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1501
1502 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1503 declaration.
1504 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1505 (h8300_examine_prologue): Use h8300_normal_mode flag
1506 (h8300_gdbarch_init): Set architecture info for normal mode
1507
506fb367
DJ
15082003-10-16 Daniel Jacobowitz <drow@mvista.com>
1509
1510 * remote.c (remote_protocol_vcont): New variable.
1511 (set_remote_protocol_vcont_packet_cmd): New function.
1512 (show_remote_protocol_vcont_packet_cmd): New function.
1513 (init_all_packet_configs): Handle remote_protocol_vcont.
1514 (remote_vcont_probe): New function.
1515 (remote_vcont_resume): New function.
1516 (remote_resume): Use it.
1517 (remote_async_resume): Call remote_resume.
1518 (_initialize_remote): Add verbose-resume packet commands.
1519
65815ea1
AC
15202003-10-16 Andrew Cagney <cagney@redhat.com>
1521
1522 * infrun.c (handle_inferior_event): Add comment about
1523 "frame_id_inner" being too weak.
1524
40324f1b
EZ
15252003-10-16 Elena Zannoni <ezannoni@redhat.com>
1526
1527 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1528 second parameter, which is always null. Remove
1529 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1530 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1531 accordingly.
1532 * somsolib.c (som_solib_create_inferior_hook,
1533 som_solib_desire_dynamic_linker_symbols): Update callers.
1534 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1535
15362003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1537
1538 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1539 debug interface, SDI (Scalable Debug Interface).
1540 * NEWS: Mention m32r SDI protocol was supported.
1541 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1542 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1543
51931cbb
JJ
15442003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1545
1546 * ia64-linux-tdep.c: Include gdbcore.h.
1547 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1548 (ia64_linux_sigcontext_register_addr): Find the address of the
1549 sigcontext area stored in the sigframe instead of using
1550 a magic offset constant.
1551
84e7fd53
AC
15522003-10-15 Andrew Cagney <cagney@redhat.com>
1553
1554 * remote.c (remote_search): Delete function.
1555 * target.h (target_search): Delete disabled macro.
1556 (struct target_ops): Delete disabled field "to_search".
1557
0f4d7c52
KB
15582003-10-14 Kevin Buettner <kevinb@redhat.com>
1559
1560 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1561 instead of deprecated_inside_entry_file().
1562
2e952408
CV
15632003-10-14 Corinna Vinschen <vinschen@redhat.com>
1564
1565 * sh-tdep.c: Fix copy/paste hangover in comment.
1566 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1567 mode.
1568 (sh3e_sh4_extract_return_value): Ditto.
1569
7e86466e
RH
15702003-10-13 Richard Henderson <rth@redhat.com>
1571
1572 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1573 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1574 match c_val_print a bit closer.
1575
46a16dba
KB
15762003-10-13 Kevin Buettner <kevinb@redhat.com>
1577
1578 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1579 (frv_gdbarch_adjust_breakpoint_address): New function.
1580 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1581 method.
1582
76897487
KB
15832003-10-13 Kevin Buettner <kevinb@redhat.com>
1584
1585 * breakpoint.h (struct breakpoint): Add new member
1586 ``requested_address''.
1587 * breakpoint.c (breakpoint_adjustment_warning)
1588 (adjust_breakpoint_address): New static functions.
1589 (print_it_typical): Issue warning if breakpoint's address is different
1590 from its requested address.
1591 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1592 (breakpoint_re_set_one): Set breakpoint's
1593 ``requested_address'' field. Set ``address'' field to the
1594 result of calling adjust_breakpoint_address() on the requested
1595 address.
1596
a1131521
KB
15972003-10-13 Kevin Buettner <kevinb@redhat.com>
1598
1599 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1600 * gdbarch.h, gdbarch.c: Regenerate.
1601
6ce6d90f
MK
16022003-10-11 Mark Kettenis <kettenis@gnu.org>
1603
155c1d33
MK
1604 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1605 TDEP->sc_num_regs.
1606
8a96bc77
MK
1607 * i386fbsd-tdep.c: New file.
1608 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1609 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1610 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1611 i386bsd-tdep.c.
1612 (_initialize_i386fbsd_tdep): New function.
1613 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1614 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1615 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1616 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1617 TDEP->sc_num_regs.
1618 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1619 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1620 to initialize TDEP->sc_num_regs.
1621 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1622 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1623 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1624 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1625 FreeBSD ELF OS/ABI's here.
1626 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1627 (i386fbsd-tdep.o): New target.
1628 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1629 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1630
477f40d1
MK
1631 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1632 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1633 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1634 in initialization of TDEP->sc_num_regs.
1635
c6b33596
MK
1636 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1637 (x86_64_init_abi): Initialize regset_from_core_section if
1638 appropriate.
1639
8446b36a
MK
1640 * i386-tdep.c (i386_regset_from_core_section): New function.
1641 (i386_gdbarch_init): Initialize regset_from_core_section if
1642 appropriate.
1643 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1644
c783cbd6
MK
1645 * i386-tdep.h (struct regset): Declare opaque.
1646
6ce6d90f
MK
1647 * gdbarch.sh (regset_from_core_section): New method.
1648 (struct regset): Declare opaque.
1649 * gdbarch.c, gdbarch.h: Regenerated.
1650
b98ed7be
AM
16512003-10-11 Alan Modra <amodra@bigpond.net.au>
1652
1653 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1654 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1655 Correct test for pc within section.
1656
f6214256
MK
16572003-10-11 Mark Kettenis <kettenis@gnu.org>
1658
1659 * gdbarch.sh: Remove trailing whitepsace from comments.
1660
a8f4cde1
RM
16612003-10-08 Roland McGrath <roland@redhat.com>
1662
1663 * gcore.c (make_mem_sec): Function removed, folded into ...
1664 (gcore_create_callback): ... here. To omit a section, clear its
1665 SEC_LOAD bit rather than zeroing its size.
1666 Omit read-only sections only if they correspond to a known disk file.
1667 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1668
74276724
MS
16692003-10-10 Michael Snyder <msnyder@redhat.com>
1670
1671 * d10v-tdep.c: Fix typo in comment.
1672
e754ae69
AC
16732003-10-10 Andrew Cagney <cagney@redhat.com>
1674
1675 * rs6000-tdep.c (e500_store_return_value): Delete function.
1676 (e500_extract_return_value): Delete function.
1677 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1678 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1679 "ppc_sysv_abi_restore_return_value" where applicable.
1680 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1681 (ppc_sysv_abi_extract_return_value): Declare.
1682 (ppc_sysv_abi_broken_store_return_value): Declare.
1683 (ppc_sysv_abi_broken_extract_return_value): Declare.
1684 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1685 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1686 start of file.
1687 (do_ppc_sysv_return_value): New function.
1688 (ppc_sysv_abi_extract_return_value): New function.
1689 (ppc_sysv_abi_store_return_value): New function.
1690 (ppc_sysv_abi_broken_extract_return_value): New function.
1691 (ppc_sysv_abi_broken_store_return_value): New function.
1692 (ppc_sysv_abi_use_struct_convention): Call
1693 do_ppc_sysv_return_value.
1694
8d4ce20a
JB
16952003-10-10 J. Brobecker <brobecker@gnat.com>
1696
1697 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1698 to lookup the main function symbol.
1699
afce3d2a
CV
17002003-10-10 Corinna Vinschen <vinschen@redhat.com>
1701
1702 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1703 types correctly.
1704 (sh_push_dummy_call_fpu): Fix argument passing rules.
1705 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1706 float types.
1707 (sh3e_sh4_store_return_value): Ditto.
1708
7fe958be
EZ
17092003-10-10 Elena Zannoni <ezannoni@redhat.com>
1710
1711 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1712 comment.
1713
3f997a97
CV
17142003-10-10 Corinna Vinschen <vinschen@redhat.com>
1715
1716 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1717 more readable code. Accomodate passing of bitfields.
1718
8be9034a
AC
17192003-10-10 Andrew Cagney <cagney@redhat.com>
1720
1721 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1722 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1723 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1724 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1725 (ppc64_sysv_abi_push_dummy_call): New function.
1726 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1727 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1728 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1729
85a453d5
KI
17302003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1731
1732 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1733 * README: Ditto.
1734 * d10v-tdep.c: Ditto.
1735 * h8300-tdep.c: Ditto.
1736 * remote-e7000.c: Ditto.
1737 * remote-hms.c: Ditto.
1738 * ser-e7kpc.c: Ditto.
1739 * sh-stub.c: Ditto.
1740 * sh-tdep.c: Ditto.
1741 * sh-tdep.h: Ditto.
1742 * sh3-rom.c: Ditto.
1743 * sh64-tdep.c: Ditto.
1744 * top.c: Ditto.
1745 * wince.c: Ditto.
1746 * config/d10v/d10v.mt: Ditto.
1747 * config/sh/embed.mt: Ditto.
1748 * config/sh/linux.mt: Ditto.
1749 * config/sh/tm-linux.h: Ditto.
1750 * config/sh/tm-sh.h: Ditto.
1751 * config/sh/wince.mt: Ditto.
1752
221c12ff
AC
17532003-10-09 Andrew Cagney <cagney@redhat.com>
1754
1755 * ppc-tdep.h (struct type): Declare opaque.
1756 * x86-64-tdep.h (struct regcache): Declare opaque.
1757 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1758 coding style.
1759
ef5200c1
AC
17602003-10-09 Andrew Cagney <cagney@redhat.com>
1761
1762 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1763 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1764 (SOFTWARE_SINGLE_STEP_P): Ditto.
1765 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1766 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1767 (SOFTWARE_SINGLE_STEP_P): Ditto.
1768 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1769 software_single_step to rs6000_software_single_step.
a8f4cde1 1770
9644bbdd
AC
17712003-10-09 Andrew Cagney <cagney@redhat.com>
1772
1773 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1774
db72fa6b
MS
17752003-10-09 Michael Snyder <msnyder@redhat.com>
1776
f3efb16c
MS
1777 * frame.h: Fix typo in comment.
1778 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1779 * d10v-tdep.c: Random whitespace/comment tweaks.
1780
9a5cef92
EZ
17812003-10-09 Elena Zannoni <ezannoni@redhat.com>
1782
1783 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1784 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1785 on stack.
a8f4cde1 1786
9a5cef92
EZ
1787 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1788 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1789 in detail.
a8f4cde1 1790
0f317a0c
DJ
17912003-10-09 Daniel Jacobowitz <drow@mvista.com>
1792
1793 * remote-mips.c (mips_initialize): Remove unneeded call to
1794 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1795
bbab2f46
DJ
17962003-10-09 Daniel Jacobowitz <drow@mvista.com>
1797
1798 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1799 a memory pointer.
1800
550950b8
JJ
18012003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1802
1803 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1804 for any lwp we resume.
1805 (running_callback): Add lwps that have pending status events
1806 against them to be considered running.
1807
15c69bc7
KI
18082003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1809
1810 * m32r-tdep.c : Include "dis-asm.h".
1811 * Makefile.in (m32r-tdep.o): Update dependencies.
1812
51065942
JB
18132003-10-06 J. Brobecker <brobecker@gnat.com>
1814
1815 * completer.h (get_gdb_completer_word_break_characters): Delete.
1816 * completer.c: include language.h.
1817 (gdb_completer_word_break_characters): Delete.
1818 (get_gdb_completer_word_break_characters): Delete.
1819 (location_completer): Use the word break characters of the current
1820 language.
1821 (complete_line): Likewise.
1822 (line_completion_function): Likewise.
1823 (skip_quoted_chars): Likewise.
1824 * Makefile.in (completer.o): Add dependency on language.h.
1825 * top.c (init_main): Set the readline word break characters
1826 to GDB's default word break characters.
1827
6084f43a
JB
18282003-10-06 J. Brobecker <brobecker@gnat.com>
1829
1830 * language.h (language_defn): new field, la_word_break_characters.
1831 * language.c (unknown_language_defn): Set new field to
1832 default_word_break_characters.
1833 (auto_language_defn): Likewise.
1834 (local_language_defn): Likewise.
1835 * ada-lang.c (ada_language_defn): Likewise.
1836 * c-lang.c (c_language_defn): Likewise.
1837 (cplus_language_defn): Likewise.
1838 (asm_language_defn): Likewise.
1839 (minimal_language_defn): Likewise.
1840 * f-lang.c (f_language_defn): Likewise.
1841 * jv-lang.c (java_language_defn): Likewise.
1842 * m2-lang.c (m2_language_defn): Likewise.
1843 * objc-lang.c (objc_language_defn): Likewise.
1844 * p-lang.c (pascal_language_defn): Likewise.
1845 * scm-lang.c (scm_language_defn): Likewise.
1846
944fcfab
AC
18472003-10-06 Andrew Cagney <cagney@redhat.com>
1848
1849 * ppc-sysv-tdep.c: Re-indent.
1850
9f0a5303
JB
18512003-10-06 J. Brobecker <brobecker@gnat.com>
1852
1853 * language.h (default_word_break_characters): Add prototype.
1854 * language.c (default_word_break_characters): New function.
1855
7270b6ed
AS
18562003-10-06 Andreas Schwab <schwab@suse.de>
1857
1858 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1859 with %eax.
1860
a5d61f66
AC
18612003-10-06 Andrew Cagney <cagney@redhat.com>
1862
1863 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1864 "h8500-tdep.c".
1865 (z8k-tdep.o): Delete custom build rule.
1866
28a86f5c
AC
18672003-10-06 Andrew Cagney <cagney@redhat.com>
1868
1bfd8a83
AC
1869 * Makefile.in: Update all dependencies.
1870
17144ef8
AC
1871 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1872 No longer list PA as as obsolete candidate. List m32r as
1873 broken instead of obsolete.
a8f4cde1 1874
a5679ae5
AC
1875 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1876 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1877 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1878 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1879 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1880 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1881 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1882 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1883 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1884 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1885 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1886 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1887 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1888 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1889 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1890 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1891 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1892 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1893 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1894 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1895 * config/z8k/z8k.mt: Ditto.
1896
4a8269c0
AC
1897 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1898 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1899 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1900 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1901 sparclite were removed.
1902 * configure.host, configure.tgt: Remove corresponding tuples.
1903
41989fcd
AC
1904 * breakpoint.c, breakpoint.h: Remove obsolete code.
1905 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1906 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1907 * stabsread.h, xcoffread.c: Ditto.
1908
28a86f5c
AC
1909 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1910 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1911 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1912 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1913
4efdaa0d
DL
19142003-10-06 David Lecomber <dsl@sources.redhat.com>
1915
1916 * f-valprint.c: Reformatting
1917
ae53de43
MK
19182003-10-06 Mark Kettenis <kettenis@gnu.org>
1919
a8bb57e7
MK
1920 * x86-64-tdep.c: Remove duplicate comment.
1921
ae53de43
MK
1922 * x86-64-tdep.c (x86_64_store_return_value): Don't use
1923 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
1924 names for return values. This fixes a bug since we looked at %rbx
1925 instead of %rdx.
1926
473f17b0
MK
19272003-10-05 Mark Kettenis <kettenis@gnu.org>
1928
2c261fae
MK
1929 * x86-64-tdep.c: Include "regset.h".
1930
473f17b0
MK
1931 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1932 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1933 sizeof_fpregset.
1934 * i386-tdep.c: Include "regset.h".
1935 (i386_supply_gregset): New function.
1936 (i386_supply_fpregset): New function.
1937 (i386_gdbarch_init): Initialze register set-related members of
1938 TDEP.
1939 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1940 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1941
afd48b75
AC
19422003-10-03 Andrew Cagney <cagney@redhat.com>
1943
1944 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1945 set extract_return_value, store_return_value and
1946 use_struct_convention to ppc64_sysv_abi_extract_return_value,
1947 ppc64_sysv_abi_store_return_value and
1948 ppc64_sysv_abi_use_struct_convention.
1949 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1950 (ppc64_sysv_abi_store_return_value): Declare.
1951 (ppc64_sysv_abi_use_struct_convention): Declare.
1952 * ppc-sysv-tdep.c (enum return_value_convention): Define.
1953 (ppc64_sysv_abi_extract_return_value): New function.
1954 (ppc64_sysv_abi_store_return_value): New function.
1955 (ppc64_sysv_abi_use_struct_convention): New function.
1956 (ppc64_sysv_abi_return_value): New function.
1957
9b540880
AC
19582003-10-03 Andrew Cagney <cagney@redhat.com>
1959
1960 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
1961 convert a descriptor to a function when it's in the ".opd"
1962 section.
1963
8748518b
CV
19642003-10-03 Corinna Vinschen <vinschen@redhat.com>
1965
1966 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
1967 reg_size to keep GCC silent.
1968
0fd85043
CV
19692003-10-03 Corinna Vinschen <vinschen@redhat.com>
1970
1971 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
1972 base for DW_EH_PE_textrel encodings.
1973 (read_encoded_value): Add a DW_EH_PE_textrel case.
1974 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
1975 section.
1976
37b517aa
MK
19772003-10-03 Mark Kettenis <kettenis@gnu.org>
1978
1979 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
1980
12c266ea
AC
19812003-10-02 Andrew Cagney <cagney@redhat.com>
1982
1983 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
1984 REGISTER_RAW_SIZE.
1985 * gdbarch.h, gdbarch.c: Re-generate.
1986 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
1987 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
1988 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1989 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1990 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
1991 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
1992 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
1993 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
1994 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
1995 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
1996 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
1997 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
1998 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
1999 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2000 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2001 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2002
78ba4af6
JB
20032003-10-02 Jim Blandy <jimb@redhat.com>
2004
2005 * dwarf2read.c (struct die_info): Doc fix.
2006
617daa0e
CV
20072003-10-02 Corinna Vinschen <vinschen@redhat.com>
2008
2009 * sh-tdep.c: Running thru gdb_indent.sh.
2010
e5e33cd9
CV
20112003-10-02 Corinna Vinschen <vinschen@redhat.com>
2012
2013 * sh-tdep.c (sh_justify_value_in_reg): New function.
2014 (sh_stack_allocsize): Ditto.
2015 (flt_argreg_array): New array used for floating point argument
2016 passing.
2017 (sh_init_flt_argreg): New function.
a8f4cde1 2018 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2019 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2020 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2021 Fix argument passing strategy.
2022 (sh_push_dummy_call_nofpu): Ditto.
2023
5fe830e4
AC
20242003-10-01 Andrew Cagney <cagney@redhat.com>
2025
2026 * value.h (register_value_being_returned): Declare. Replace
2027 "value_being_returned".
2028 * infcall.c (call_function_by_hand): Use
2029 register_value_being_returned.
2030 * infcmd.c (print_return_value): Call
2031 "register_value_being_returned", handle struct return locally.
2032 * values.c (register_value_being_returned): New function. Replace
2033 "value_being_returned".
a8f4cde1 2034
5fe830e4 20352003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2036
2037 * linux-proc.c (linux_do_registers): New function.
2038 (linux_make_note_section): Use linux_do_registers in case of
2039 single threaded inferior programs.
2040
64f395bf
AC
20412003-10-01 Andrew Cagney <cagney@redhat.com>
2042
2043 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2044 use STRUCT_ADDR. When not using "struct return convention", pass
2045 "0" to "value_being_returned". Add FIXMEs.
2046 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2047 value_being_returned. Add comments.
2048 * values.c (value_being_returned): Add fixme.
2049 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2050 (hppa_value_returned_from_stack): Add FIXME.
2051
639d11d3
DC
20522003-09-30 David Carlton <carlton@kealia.com>
2053
2054 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2055 'has_children' and 'next' by 'child' and 'sibling'.
2056 (read_comp_unit): Rework algorithm, breaking body into
2057 read_die_and_children and read_die_and_siblings.
2058 (read_die_and_children, read_die_and_siblings): New.
2059 (read_full_die): Add 'has_children' argument; set it instead of
2060 the die's 'has_children' field. Minor formatting cleanup.
2061 (free_die_list): Use die->child and die->sibling instead of
2062 die->next.
2063 (dump_die_list): Ditto.
2064 (sibling_die): Use die->sibling.
2065 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2066 'has_children' and 'next' fields.
a8f4cde1
RM
2067 (process_die, read_file_scope, read_func_scope)
2068 (read_lexical_block_scope, read_structure_scope)
2069 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2070 (read_namespace, read_subroutine_type, dump_die): Ditto.
2071
5bffac25
AC
20722003-09-30 Andrew Cagney <cagney@redhat.com>
2073
2074 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2075 to 224, not 220.
2076
f30992d4
AC
20772003-09-30 Andrew Cagney <cagney@redhat.com>
2078
2079 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2080 REGISTER_VIRTUAL_SIZE.
2081 * gdbarch.h, gdbarch.c: Regenerate.
2082 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2083 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2084 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2085
2e092625
AC
20862003-09-29 Andrew Cagney <cagney@redhat.com>
2087
2088 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2089 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2090 * gdbarch.h, gdbarch.c: Regenerate.
2091 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2092 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2093
2094 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2095 * remote-vxmips.c (vx_read_register): Ditto.
2096 * remote-vx68.c (vx_read_register): Ditto.
2097 * gnu-nat.c (inf_validate_procs): Ditto.
2098
7a5dd6ee
JB
20992003-09-29 J. Brobecker <brobecker@gnat.com>
2100
2101 * infcall.c (call_function_by_hand): Fix build failure
2102 introduced in the previous change to this file.
2103
1fe43d45
AC
21042003-09-29 Andrew Cagney <cagney@redhat.com>
2105
2106 * NEWS: Mention Objective-C.
2107
e28a332c
JG
21082003-09-29 Jerome Guitton <guitton@act-europe.fr>
2109
2110 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2111 test if the register has been saved on the stack.
2112 (arm_scan_prologue_cache): When analysing the instruction
2113 "str lr, [sp, #-4]", save the address where lr has been stored.
2114
9ff63c35
AC
21152003-09-28 Andrew Cagney <cagney@redhat.com>
2116
7f5f525d
AC
2117 * frame.c (frame_read_unsigned_register): Delete function.
2118 * frame.h (frame_read_unsigned_register): Delete declaration.
2119 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2120 get_frame_register_unsigned.
2121 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2122 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2123 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2124
7f5f525d
AC
2125 * frame.h (frame_read_register): Delete declaration.
2126 * frame.c (frame_read_register): Delete function.
2127 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2128 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2129 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2130 * mips-tdep.c (mips_register_to_value): Ditto.
2131 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2132 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2133
2134 * frame.c (frame_read_signed_register): Delete function.
2135 (frame_read_unsigned_register): Update comments.
2136 * frame.h (frame_read_signed_register): Delete declaration.
2137 * h8300-tdep.c (h8300_print_register): Use
2138 get_frame_register_signed.
2139 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2140
9ff63c35
AC
2141 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2142 Rename VALUE_RETURNED_FROM_STACK.
2143 * infcmd.c (print_return_value): Update.
2144 * infcall.c (call_function_by_hand): Update.
2145
41d041d6
MK
21462003-09-28 Mark Kettenis <kettenis@gnu.org>
2147
2148 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2149 regcache argument and reverse the order of the other two
2150 arguments. Remove local regcache variable. Determine
2151 architecture from REGCACHE. Update comments.
2152 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2153 reverse the order of the other two arguments. Remove local
2154 regcache variable. Determine architecture from REGCACHE. Update
2155 comments.
2156 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2157 prototypes. Update comments.
2158 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2159 comment.
2160 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2161 Update.
2162 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2163 * i386-interix-nat.c (supply_fpregset): Update.
2164 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2165 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2166 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2167 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2168 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2169 Update.
2170 * i386obsd-tdep.c (fetch_core_registers): Update.
2171 * i386v4-nat.c (supply_fpregset): Update.
2172 * x86-64-linux-nat.c (supply_fpregset): Update.
2173 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2174
1cb97e17
MK
21752003-09-27 Mark Kettenis <kettenis@gnu.org>
2176
5716833c
MK
2177 * i386-tdep.h: Put opaque declarations in alphabetical
2178 order. Remove spurious whitespace.
2179 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2180 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2181 * i386-tdep.c (MM0_REGNUM): Remove define.
2182 (i386_mmx_regnum_p): Add gdbarch argument.
2183 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2184 Rewrite using new macro definitions for FPU/SSE registers.
2185 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2186 definitions from i387-tdep.h.
2187 (i386_register_name): Update.
2188 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2189 new macro definitions for FPU/SSE registers.
2190 (i386_extract_return_value): Determine whether floating-point
2191 registers are present by examining REGCACHE's architecture.
2192 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2193 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2194 FPU/SSE registers.
2195 (i386_register_type): Update.
2196 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2197 definitions for FPU registers. Use REGCACHE's architecture to
2198 determine the appropriate register numbers.
2199 (i386_pseudo_register_read, i386_pseudo_register_write,
2200 i386_register_reggroup_p): Update.
2201 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2202 TDEP->mm0_regnum.
2203 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2204 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2205 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2206 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2207 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2208 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2209 *' to `void *'.
2210 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2211 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2212 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2213 definitions for FPU/SSE registers.
2214 (FXSAVE_MXCSR_ADDR): New define.
2215 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2216 TDEP->mm0_regnum.
2217 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2218 (I387_ST0_REGNUM): Define.
2219
41d35cb0
MK
2220 * regcache.h (get_regcache_arch): New prototype.
2221 * regcache.c (get_regcache_arch): New function.
2222
54e74f72
MK
2223 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2224 whitespace.
2225
1cb97e17
MK
2226 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2227 Initialize using ARRAY_SIZE.
2228
0968aa8c
AC
22292003-09-27 Andrew Cagney <cagney@redhat.com>
2230
2231 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2232 "init_frame_pc_default".
2233 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2235 * vax-tdep.c (vax_gdbarch_init): Update.
2236 * v850-tdep.c (v850_gdbarch_init): Update.
2237 * sh64-tdep.c (sh64_gdbarch_init): Update.
2238 * s390-tdep.c (s390_gdbarch_init): Update.
2239 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2240 * mcore-tdep.c (mcore_gdbarch_init): Update.
2241 * h8300-tdep.c (h8300_gdbarch_init): Update.
2242 * cris-tdep.c (cris_gdbarch_init): Update.
2243 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2244
54c84734
MK
22452003-09-26 Mark Kettenis <kettenis@gnu.org>
2246
2247 * regset.h: New file.
2248 * Makefile.in (regset_h): Add.
2249
1b1d3794
AC
22502003-09-25 Andrew Cagney <cagney@redhat.com>
2251
2252 * frame.h (deprecated_frame_saved_regs): Rename
2253 get_frame_saved_regs.
2254 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2255 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2256 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2257 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2258 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2259
e6beb428
AC
22602003-09-25 Andrew Cagney <cagney@redhat.com>
2261
2262 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2263 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2264 and Java.
2265 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2266 arm*-*-* do not use the new frame code.
2267
710122da
DC
22682003-09-25 David Carlton <carlton@kealia.com>
2269
2270 * c-exp.y: Remove 'register' declarations.
2271 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2272
79c2c32d
DC
22732003-09-25 David Carlton <carlton@kealia.com>
2274
2275 * c-exp.y: Include cp-support.h. Add qualified_type.
2276 (yylex): Delete nested type hack; add comments.
2277 * cp-namespace.c (cp_lookup_nested_type): New function.
2278 * cp-support.h: Declare cp_lookup_nested_type.
2279 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2280 instead of value_struct_elt_for_reference.
2281 * valops.c: Include cp-support.h.
2282 (value_aggregate_elt): New function.
2283 (value_namespace_elt): Ditto.
2284 (value_struct_elt_for_reference): Make static.
2285 * value.h: Delete declaration of value_struct_elt_for_reference;
2286 add declaration for value_aggregate_elt.
2287 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2288 (valops.o): Ditto.
2289
898c62f5
DJ
22902003-09-25 Daniel Jacobowitz <drow@mvista.com>
2291
2292 * stack.c: Include "reggroups.h".
2293 (frame_info): Only display registers in all_reggroup.
2294 * Makefile.in (stack.o): Update dependencies.
2295
28cd8767
JG
22962003-09-25 Jerome Guitton <guitton@act-europe.fr>
2297
2298 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2299 "add ip, sp #n" in the prologue.
2300 (arm_scan_prologue): Ditto.
2301
a4ab2b5d
JG
23022003-09-25 Jerome Guitton <guitton@act-europe.fr>
2303
2304 * MAINTAINERS (write after approval): Add myself.
2305
3f244638
AS
23062003-09-25 Andreas Schwab <schwab@suse.de>
2307
2308 * m68k-tdep.c: Include "dwarf2-frame.h".
2309 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2310 * Makefile.in (m68k-tdep.o): Update dependencies.
2311
1c0159e0
CV
23122003-09-25 Corinna Vinschen <vinschen@redhat.com>
2313
2314 * sh-tdep.c (struct frame_extra_info): Remove.
2315 (struct sh_frame_cache): New structure.
2316 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2317 (GET_TARGET_REG): Ditto but target register.
2318 (GET_PUSHED_REG): Remove.
2319 (IS_MOV_ARG_TO_REG): New macro.
2320 (IS_MOV_ARG_TO_IND_R14): New macro.
2321 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2322 (IS_MOVW_PCREL_TO_REG): New macro.
2323 (IS_MOVL_PCREL_TO_REG): New macro.
2324 (IS_SUB_REG_FROM_SP): New macro.
2325 (IS_ARG_MOV): Remove.
2326 (IS_MOV_TO_R14): Remove.
2327 (IS_RESTORE_FP): New macro.
2328 (IS_RTS): New macro.
2329 (IS_LDS): New macro.
2330 (IS_MOV_FP_SP): New macro.
2331 (IS_ADD_REG_TO_FP): New macro.
2332 (IS_ADD_IMM_FP): New macro.
2333 (sh_skip_prologue_hard_way): Remove.
2334 (sh_saved_pc_after_call): Remove.
2335 (sh_frame_chain): Remove.
2336 (sh_find_callers_reg): Remove.
a8f4cde1 2337 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2338 (sh_fp_frame_init_saved_regs): Remove.
2339 (sh_init_extra_frame_info): Remove.
2340 (sh_analyze_prologue): New function.
2341 (sh_skip_prologue): Remove deprecated code. Rely on new function
2342 sh_analyze_prologue when after_prologue fails.
2343 (sh_frame_saved_pc): Remove.
2344 (sh_alloc_frame_cache): New function.
2345 (sh_frame_cache): Ditto.
2346 (sh_frame_prev_register): Ditto.
2347 (sh_frame_this_id): Ditto.
2348 (sh_frame_unwind): New structure defining the heuristic frame
2349 sniffer interface.
2350 (sh_frame_sniffer): New function.
2351 (sh_unwind_sp): Ditto.
2352 (sh_unwind_pc): Ditto.
2353 (sh_unwind_dummy_id): Ditto.
2354 (sh_frame_base_address): Ditto.
2355 (sh_frame_base): New structure defining new frame base code.
2356 (sh_in_function_epilogue_p): New function.
2357 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2358 code and to call all new code instead. Initialize dwarf2 and
2359 heuristic frame sniffer.
2360
5f9769d1
PH
23612003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2362
a8f4cde1
RM
2363 * parser-defs.h (struct exp_descriptor): New definition, containing
2364 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2365 evaluating expressions.
2366 (exp_descriptor_standard): Declare new variable.
2367 (print_subexp): Make global and declare here (from expprint.c).
2368 (dump_subexp): Ditto.
2369 (dump_subexp_body_standard): Declare.
2370 (operator_length_standard): Declare.
2371 (op_name_standard): Declare.
2372 (print_subexp): Declare.
2373 (print_subexp_standard): Declare.
2374
2375 * language.h (struct language_defn): Add la_exp_desc field to hold
2376 pointer to table for language-specific operators.
2377 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2378
2379 * parse.c (operator_length): Move most code to new
5f9769d1 2380 operator_length_standard function. Use language-specific information.
a8f4cde1 2381 (operator_length_standard): New function taking most code from
5f9769d1
PH
2382 operator_length.
2383 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2384
2385 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2386 and OP_EXTENDED_LAST.
a8f4cde1
RM
2387
2388 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2389 Make global; remove static declaration.
2390 Move most code to print_subexp_standard.
a8f4cde1 2391 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2392 print_subexp.
2393 (op_name): Add expression to argument signature.
a8f4cde1 2394 Use langauge-specific op_name.
5f9769d1
PH
2395 Move most code to op_name_standard.
2396 (op_name_standard): New function, containing code formerly in op_name.
2397 (dump_subexp): Use new version of op_name function.
2398 Use language-specific dump_subexp_body, and move most existing code to
2399 dump_subexp_body_standard.
2400 (dump_raw_expression): Use new op_name interface.
2401 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2402 (dump_subexp_body_standard): New function, containing code formerly
2403 in dump_subexp_body.
a8f4cde1 2404
5f9769d1
PH
2405 * language.c (unknown_language): Add default la_exp_desc field and
2406 remove evaluate_exp field.
2407 (auto_language): Ditto.
2408 (local_language): Ditto.
2409 * f-lang.c (f_language_defn): Ditto.
2410 * c-lang.c (c_language_defn): Ditto.
2411 (cplus_language_defn): Ditto.
2412 (asm_language_defn): Ditto.
2413 (minimal_language_defn): Ditto.
2414 * p-lang.c (pascal_language_defn): Ditto.
2415 * m2-lang.c (m2_language_defn): Ditto.
2416 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2417
2418 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2419 Java-specific expression evaluator.
2420 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2421 field.
a8f4cde1 2422 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2423 Scheme-specific expression evaluator.
2424 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2425 field.
2426 * objc-lang.c (print_object_command): Take evaluate_exp from the
2427 la_exp_desc field.
a8f4cde1 2428
5f9769d1 2429 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2430
2431 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2432 la_exp_desc's type.
2433 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2434
24daaebc
PH
24352003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2436
2437 * parser-defs.h (operator_length): Declare.
a8f4cde1 2438
24daaebc
PH
2439 * parse.c (length_of_subexp): Use operator_length to get operator
2440 lengths and arities for operators.
2441 Move most code to new operator_length function.
a8f4cde1 2442 (operator_length): New function absorbing most code from
24daaebc
PH
2443 length_of_subexp.
2444 (prefixify_subexp): Remove large case and use operator_length instead.
2445 (parse_exp_1): Use renamings:
a8f4cde1 2446 dump_prefix_expression => dump_raw_expression and
24daaebc 2447 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2448
24daaebc
PH
2449 * expression.h (dump_prefix_expression): Rename to ...
2450 (dump_raw_expression): New name.
2451 (dump_postfix_expression): Rename to ...
2452 (dump_prefix_expression): New name.
a8f4cde1 2453
24daaebc
PH
2454 * expprint.c (dump_subexp): Make global. Add comment.
2455 Move most existing code to dump_subexp_body.
2456 (dump_subexp_body): New function.
2457 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2458 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2459 work before the expression is prefixified.
2460 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2461 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2462 that's what it does.
a8f4cde1 2463 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2464 prefixified expression.
2465 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2466
8c2957c4
JB
24672003-09-22 Jim Blandy <jimb@redhat.com>
2468
2469 * dwarf2read.c (read_array_type): When building the type for an
2470 array of unspecified length, make sure to choose the upper bound
2471 so that the array's total length comes out to be zero --- that's
2472 how we represent such arrays.
2473
592e3010
MC
24742003-09-22 Michael Chastain <mec@shout.net>
2475
2476 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2477
365c70b1
JJ
24782003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2479
2480 * top.c (quit_force): Fix indirect call to quit_target so
2481 a struct qt_args pointer is passed.
2482
5d6eb653
AC
24832003-09-22 Andrew Cagney <cagney@redhat.com>
2484
2485 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2486 * arch-utils.c (init_frame_pc_noop): Delete function.
2487 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2488 "init_frame_pc".
2489 * mips-tdep.c (mips_gdbarch_init): Ditto.
2490 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2491 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2492 declaration.
2493 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2494 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2495 declaration.
2496 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2497
b222a67f
AG
24982003-09-22 Anthony Green <green@redhat.com>
2499
2500 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2501 declaration.
2502
d5b5ac79
AC
25032003-09-20 Andrew Cagney <cagney@redhat.com>
2504
deafb061
AC
2505 * breakpoint.c: Eliminate ARGSUSED.
2506 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2507 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2508 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2509 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2510 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2511 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2512 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2513 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2514 * wince.c, remote-vx.c: Ditto.
2515
d5b5ac79
AC
2516 * cli/cli-script.c: Remove "register" attributes.
2517 * config/pa/tm-hppa.h: Ditto.
2518 * cli/cli-decode.c: Ditto.
2519 * cli/cli-cmds.c: Ditto.
2520
c6316faa
AC
25212003-09-19 Andrew Cagney <cagney@redhat.com>
2522
2523 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2524 DEPRECATED_NPC_REGNUM.
2525 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2526
f4f99b11
CF
25272003-09-19 Christopher Faylor <cgf@redhat.com>
2528
2529 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2530
1708f284
JB
25312003-09-19 Jim Blandy <jimb@redhat.com>
2532
2533 * macrotab.c (macro_include): Use the correct comparison to find
2534 the appropriate place for this inclusion in the list.
2535
b9fbf434
AC
25362003-09-19 Andrew Cagney <cagney@redhat.com>
2537
2538 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2539 (DEPRECATED_HPUX_TEXT_END): Define.
2540 (deprecated_hpux_text_end): Declare.
2541 (struct target_ops): Declare opaque.
2542 * hppah-nat.c (text_end): Make static.
2543 (deprecated_hpux_text_end): New function.
2544 * exec.c (text_end): Delete global variable.
2545 (NEED_TEXT_START_END): Do not define.
2546 (exec_file_attach): Replace code computing "text_end" code with
2547 call to DEPRECATED_HPUX_TEXT_END.
2548
5b03f266
AC
25492003-09-19 Andrew Cagney <cagney@redhat.com>
2550
2551 * utils.c (align_up, align_down): New functions.
2552 * defs.h (align_up, align_down): Declare.
2553 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2554 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2555 and "align_down".
2556 (round_up, round_down): Delete functions.
2557 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2558 "align_down".
2559 (ROUND_DOWN, ROUND_UP): Delete macros.
2560 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2561 * h8300-tdep.c: Replace "round_up" and "round_down" with
2562 "align_up" and "align_down".
2563 (round_up, round_down): Delete macros.
2564 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2565 "align_down".
2566 (ROUND_UP, ROUND_DOWN): Delete macros.
2567
51db5742
JB
25682003-09-18 J. Brobecker <brobecker@gnat.com>
2569
2570 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2571 hard-coded constant. Use the proper machine name instead.
2572
77949794
AC
25732003-09-17 Andrew Cagney <cagney@redhat.com>
2574
2575 * sparc-tdep.c (legacy_register_name): Delete function.
2576 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2577 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2578 * infcmd.c (gdb_register_name): Delete variable.
2579 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2580 REGISTER_NAME and "tm.h".
2581 * gdbarch.h, gdbarch.c: Regenerate.
2582 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2583 REGISTER_NAMES in comments.
2584 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2585 * m68klinux-nat.c (regmap): Ditto.
2586
b55c33cc
JB
25872003-09-17 Jim Blandy <jimb@redhat.com>
2588
2589 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2590
957e27ac
AC
25912003-09-17 Andrew Cagney <cagney@redhat.com>
2592
2593 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2594 (ppcnbsd_init_abi): Set "use_struct_convention" to
2595 "ppcnbsd_use_struct_convention".
2596
192cb3d4
MK
25972003-09-17 Mark Kettenis <kettenis@gnu.org>
2598
2599 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2600 * gdbarch.h, gdbarch.c: Regenerate.
2601 (stabs_argument_has_addr): New architecture method.
2602 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2603 * arch-utils.c: Include "buildsym.h".
2604 (default_stabs_argument_has_addr): New function.
2605 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2606 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2607
efe59759
AC
26082003-09-17 Andrew Cagney <cagney@redhat.com>
2609
2610 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2611 * gdbarch.h, gdbarch.c: Regenerate.
2612 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2613 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2614 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2615 * sparcnbsd-tdep.c: Update.
a8f4cde1 2616
62700349
AC
26172003-09-17 Andrew Cagney <cagney@redhat.com>
2618
2619 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2620 * gdbarch.h, gdbarch.c: Regenerate.
2621 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2622 * d10v-tdep.c, frame.c: Update.
2623 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2624 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2625 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2626 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2627 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2628 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2629 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2630 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2631 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2632 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2633 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2634 * config/pa/nm-hppah.h: Update.
2635
b9ff3018
AC
26362003-09-16 Andrew Cagney <cagney@redhat.com>
2637
2638 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2639 "use_struct_convention" to "ppc_linux_use_struct_convention".
2640 (ppc_linux_use_struct_convention): New function.
2641 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2642 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2643 "rs6000_use_struct_convention".
2644 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2645 declaration.
2646 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2647 Delete function.
2648
aa1ee363
AC
26492003-09-16 Andrew Cagney <cagney@redhat.com>
2650
2651 * buildsym.c: Remove more occurances of "register".
2652 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2653 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2654 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2655 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2656 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2657 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2658 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2659 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2660
f2ea0907
CV
26612003-09-16 Corinna Vinschen <vinschen@redhat.com>
2662
2663 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2664 numbers to enumeration values.
2665 * sh-tdep.c: Accomodate above change.
2666 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2667 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2668 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2669 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2670 (IS_FPUSH): Rename from IS_FMOV.
2671 (sh_extract_struct_value_address): Remove useless comment.
2672 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2673 instead of own local values.
2674 (sh_dump_tdep): Remove.
2675 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2676 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2677
1c704f11
AC
26782003-09-15 Andrew Cagney <cagney@redhat.com>
2679
2680 * doublest.c (convert_floatformat_to_doublest): No longer need to
2681 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2682
ac79b88b
DJ
26832003-09-15 Daniel Jacobowitz <drow@mvista.com>
2684
2685 * values.c (unpack_double): Call floatformat_is_valid.
2686
1c671366
MK
26872003-09-15 Mark Kettenis <kettenis@gnu.org>
2688
de5227fb
MK
2689 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2690 ps_strings into a long.
2691
1c671366
MK
2692 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2693 _initialize_am64fbsd_nat.
2694
a604369a
KB
26952003-09-15 Kevin Buettner <kevinb@redhat.com>
2696
2697 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2698 associated with DW_AT_ranges attribute is out of bounds.
2699
b3cacbee
DL
27002003-09-15 David Lecomber <dsl@sources.redhat.com>
2701
2702 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2703
d0f37bb2
MC
27042003-09-14 Michael Chastain <mec@shout.net>
2705
2706 * config/m68k/nm-apollo68v.h: Delete.
2707 * config/m68k/xm-apollo68v.h: Delete.
2708
69517000
AC
27092003-09-14 Andrew Cagney <cagney@redhat.com>
2710
2711 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2712 * dcache.c: Update copyrights and descriptions.
2713 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2714
ef8b349d
AC
27152003-09-14 Andrew Cagney <cagney@redhat.com>
2716
2717 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2718 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2719
52f0bd74
AC
27202003-09-14 Andrew Cagney <cagney@redhat.com>
2721
2722 * alpha-nat.c: Remove some occurances of "register".
2723 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2724 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2725 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2726 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2727 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2728 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2729 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2730 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2731 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2732 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2733 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2734 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2735 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2736 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2737 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2738 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2739 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2740 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2741 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2742 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2743 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2744 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2745
4a4b3fed
AC
27462003-09-13 Andrew Cagney <cagney@redhat.com>
2747
2748 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2749 * ppc-tdep.h (struct regcache): Declare opaque.
2750 * objfiles.h (struct objfile_data): Declare opaque.
2751 * cp-support.h (struct objfile): Declare opaque.
2752 * linux-nat.h (target_waitstatus): Declare opaque.
2753
2110b94f
MK
27542003-09-14 Mark Kettenis <kettenis@gnu.org>
2755
1c671366
MK
2756 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2757 (stabs_argument_has_addr): New architecture method.
2758 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2759 * arch-utils.c: Include "buildsym.h".
2760 (default_stabs_argument_has_addr): New function.
2761 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2762 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2763
2110b94f
MK
2764 * cris-tdep.c (cris_gdbarch_init): Set
2765 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2766 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2767 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2768 * mips-tdep.c (mips_gdbarch_init): Likewise.
2769 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2770 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2771
48436ce6
AC
27722003-09-13 Andrew Cagney <cagney@redhat.com>
2773
2774 * values.c (using_struct_return): Delete "function" and "funcaddr"
2775 parameters.
2776 * value.h (using_struct_return): Update declaration.
2777 * infcmd.c (finish_command_continuation): Update.
2778 (finish_command): Update.
2779 * infcall.c (call_function_by_hand): Update.
2780 * eval.c (evaluate_subexp_standard): Update.
2781
403d9909
CF
27822003-09-13 Christopher Faylor <cgf@redhat.com>
2783
2784 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2785 SSE registers since gdb will not operate correctly without this.
2786 Restore include file ordering munged in previous change.
2787 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2788
ebf7d56b
MK
27892003-09-13 Mark Kettenis <kettenis@gnu.org>
2790
8e823e25
MK
2791 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2792 REG_STRUCT_HAS_ADDR.
2793 * gdbarch.c, gdbarch.h: Updated.
2794 * infcall.c (call_function_by_hand): Update.
2795 * stabsread.c (define_symbol): Updated.
a8f4cde1 2796
ebf7d56b
MK
2797 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2798
d3f13f72
CF
27992003-09-12 Christopher Faylor <cgf@redhat.com>
2800
2801 * win32-nat.c: Reorganize so that defines used by target headers are
2802 actually defined by the system headers.
2803 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2804 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2805
14f75137
JB
28062003-09-12 Jim Blandy <jimb@redhat.com>
2807
d646061f
JB
2808 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2809 the file has no .data, .bss, or .rodata sections. Instead wait
2810 until we see a variable alleged to live in one of those sections.
2811
2a13f9bc
JB
2812 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2813 .bss section, presume that any variables we find live in the
2814 .rodata section.
2815
4f49b26b
JB
2816 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2817 offsets for global and static variables.
2818
14f75137
JB
2819 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2820 symbol types are, by definition, in the .data section, so it is
2821 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2822 If there is no .data section, there should be no N_DATA or N_DATA
2823 | N_EXT symbols.
2824
212c460c
MK
28252003-09-12 Mark Kettenis <kettenis@gnu.org>
2826
2827 * amd64fbsd-tdep.c: Fix sigtramp recognition.
2828 (amd64fbsd_sigcontext_addr): Rewrite.
2829 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2830 with correct values.
2831 (amd64fbsd_sc_reg_offset): Initialize with correct values.
2832 (amd64fbsd_init_abi): Fix typo.
2833
68856ea3
AC
28342003-09-12 Andrew Cagney <cagney@redhat.com>
2835
2836 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2837 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2838
627b3ba2
AC
28392003-09-12 Andrew Cagney <cagney@redhat.com>
2840
2841 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2842 "entry_file_highpc". Update comments.
2843 * defs.h (deprecated_inside_entry_file): Rename
2844 "inside_entry_file".
2845 * blockframe.c (deprecated_inside_entry_file): Rename
2846 "inside_entry_file".
2847 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
2848 * vax-tdep.c (vax_frame_chain): Update.
2849 * sh64-tdep.c (sh64_frame_chain): Update.
2850 * sh-tdep.c (sh_frame_chain): Update.
2851 * rs6000-tdep.c (rs6000_frame_chain): Update.
2852 * ns32k-tdep.c (ns32k_frame_chain): Update.
2853 * mips-tdep.c (mips_frame_chain): Update.
2854 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2855 * m32r-tdep.c (m32r_frame_this_id): Update.
2856 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2857 * frv-tdep.c (frv_frame_this_id): Update.
2858 * d10v-tdep.c (d10v_frame_this_id): Update.
2859 * cris-tdep.c (cris_frame_chain): Update.
2860 * blockframe.c (legacy_frame_chain_valid): Update.
2861 * avr-tdep.c (avr_frame_this_id): Update.
2862 * arm-tdep.c (arm_prologue_this_id): Update.
2863 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2864 * objfiles.c (objfile_relocate): Update.
2865 * mipsread.c (mipscoff_symfile_read): Update.
2866 (mipscoff_symfile_read): Update.
2867 * mdebugread.c (parse_partial_symbols): Update.
2868 * dwarfread.c (read_file_scope): Update.
2869 * dwarf2read.c (read_file_scope): Update.
2870 * dbxread.c (read_dbx_symtab): Update.
2871 (read_dbx_symtab): Update.
2872 * coffread.c (complete_symtab): Update.
2873
b0abbc58
JJ
28742003-09-12 Jeff Johnston <jjohnstn@redhat.com>
2875
2876 * top.c (quit_target): New static helper function.
2877 (quit_force): Moved code to quit_target(). Call quit_target()
2878 via catch_errors() to catch errors during quit.
2879
a1632d59
DC
28802003-09-11 David Carlton <carlton@kealia.com>
2881
2882 * buildsym.c (finish_block): Use allocate_block to allocate the
2883 block.
2884 * mdebugread.c (new_block): Add FIXME.
2885
5c4e30ca
DC
28862003-09-11 David Carlton <carlton@kealia.com>
2887
2888 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2889 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2890 (recursive_dump_type): Ditto.
2891 * printcmd.c (print_formatted): Ditto.
2892 * typeprint.c (print_type_scalar): Ditto.
2893 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2894 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2895 * cp-support.h: Declare cp_check_possible_namespace_symbols,
2896 maint_cplus_cmd_list.
2897 * cp-support.c: Make maint_cplus_cmd_list extern.
2898 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2899 command.h.
2900 (lookup_symbol_file): Look in possible namespace blocks when
2901 appropriate.
2902 (initialize_namespace_symtab): New.
2903 (get_possible_namespace_block, free_namespace_block)
2904 (check_possible_namespace_symbols)
2905 (check_possible_namespace_symbols_loop)
2906 (check_one_possible_namespace_symbol)
2907 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2908 (_initialize_cp_namespace): Ditto.
2909 * block.h: Declare allocate_block.
2910 * block.c (allocate_block): New.
2911 * jv-lang.c (get_java_class_symtab): Allocate blocks via
2912 allocate_block.
2913 * symfile.h: Update declaration of add_psymbol_to_list.
2914 * symfile.c (add_psymbol_to_list): Return the partial symbol in
2915 question.
2916 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2917 scan_partial_symbols_call.
2918 (scan_partial_symbols): Add NAMESPACE argument; update calls to
2919 helper functions.
2920 (add_partial_symbol): If necessary, scan mangled names for names
2921 of namespaces.
2922 (add_partial_namespace): Add NAMESPACE argument; generate partial
2923 symbols associated to namespaces.
2924 (add_partial_enumeration): Add NAMESPACE argument.
2925 (new_symbol): Allow namespace syms.
2926 (read_namespace): Generate namespace syms.
2927 * objfiles.h: Add opaque declaration of struct symtab.
2928 (struct objfile): Add cp_namespace_symtab member.
2929 * objfiles.c (allocate_objfile): Set
2930 objfile->cp_namespace_symtab.
2931 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2932 dictionary_h, command_h.
2933
33a7c2fc
AC
29342003-09-11 Andrew Cagney <cagney@redhat.com>
2935
2936 * rs6000-tdep.c (rs6000_push_dummy_call): Use
2937 regcache_raw_write_signed to set SP_REGNUM, move the operation to
2938 near the function's end.
2939 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2940 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2941 regcache_raw_write_signed to set SP_REGNUM.
2942
63cd24fe
EZ
29432003-09-11 Elena Zannoni <ezannoni@redhat.com>
2944
2945 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2946 orig_addrs is set up properly.
2947
f27dd7fd
AC
29482003-09-11 Andrew Cagney <cagney@redhat.com>
2949
2950 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2951 * gdbarch.h, gdbarch.c: Re-generate.
2952 * infcall.c (call_function_by_hand): Update.
2953 * hppa-tdep.c (hppa_push_arguments): Update.
2954 * ada-lang.c (place_on_stack): Update.
2955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2956 * sparc-tdep.c (sparc_gdbarch_init): Update.
2957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2958 * hppa-tdep.c (hppa_gdbarch_init): Update.
2959 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
2960 stack_align.
2961
f630a401
DJ
29622003-09-11 Daniel Jacobowitz <drow@mvista.com>
2963
2964 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
2965 register do need a frame.
2966
0ddabb4c
AC
29672003-09-11 Andrew Cagney <cagney@redhat.com>
2968
2969 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
2970 buildable since GDB 5.0.
2971 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
2972 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
2973 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
2974 * irix4-nat.c: Delete file.
2975 * config/mips/irix4.mh: Delete file.
2976 * config/mips/irix3.mh: Delete file.
2977 * config/mips/irix3.mt: Delete file.
2978 * config/mips/tm-irix3.h: Delete file.
2979 * config/mips/nm-irix3.h: Delete file.
2980 * config/mips/xm-irix3.h: Delete file.
2981 * config/mips/nm-irix4.h: Delete file.
2982 * config/mips/xm-irix4.h: Delete file.
2983 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
2984
fde2cceb
JB
29852003-09-10 J. Brobecker <brobecker@gnat.com>
2986
2987 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
2988 * Makefile.in (hppa-tdep.o): Update dependencies.
2989
66f667f5
JW
29902003-09-10 James E Wilson <wilson@specifixinc.com>
2991
ef5fd69f
JW
2992 * MAINTAINERS: Change my e-mail address. Move to paper trail
2993 section.
66f667f5 2994
53e8aaea
KB
29952003-09-10 Kevin Buettner <kevinb@redhat.com>
2996
2997 * MAINTAINERS (frv): New ISA entry.
2998
dcc6aaff
KB
29992003-09-10 Kevin Buettner <kevinb@redhat.com>
3000
3001 * frv-tdep.c (dis-asm.h): Include.
3002 * Makefile.in (frv-tdep.o): Update dependencies.
3003
932644f0
JJ
30042003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3005
3006 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3007 Fix typo for high range of floating registers.
3008
91c24f0a
DC
30092003-09-09 David Carlton <carlton@kealia.com>
3010
3011 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3012 highpc initialization here out of scan_partial_symbols.
3013 (scan_partial_symbols): Restructure into a recursive version,
3014 calling add_partial_namespace and add_partial_enumeration when
3015 appropriate.
3016 (add_partial_namespace): New.
3017 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3018
c9263853
AC
30192003-09-09 Andrew Cagney <cagney@redhat.com>
3020
e56a0ecc
AC
3021 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3022 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3023 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3024 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3025
794a477a
AC
3026 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3027 (rs6000_push_dummy_call): Set the "TOC" register.
3028
c9263853
AC
3029 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3030 methods "max_register_raw_size", "max_register_virtual_size" or
3031 "register_virtual_size".
3032
afa7d0b2
ILT
30332003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3034
3035 * MAINTAINERS: Update my e-mail address.
3036
7a41266b
AC
30372003-09-09 Andrew Cagney <cagney@redhat.com>
3038
3039 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3040 (rs6000_push_dummy_call): Store the struct return address.
3041 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3042
77b2b6d4
AC
30432003-09-09 Andrew Cagney <cagney@redhat.com>
3044
3045 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3046 "ppc_sysv_abi_push_arguments".
3047 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3048 "ppc_sysv_abi_push_arguments".
3049 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3050 instead of "push_arguments".
3051 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3052
e8a7b686
AC
30532003-09-09 Andrew Cagney <cagney@redhat.com>
3054
3055 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3056 instead of CALL_DUMMY_ADDRESS.
3057
f86f5ca3
PH
30582003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3059
3060 * p-lang.c: Eliminate "register".
3061 * c-lang.c: Ditto.
3062 * expprint.c: Ditto.
3063 * f-lang.c: Ditto.
3064 * jv-lang.c: Ditto.
3065 * language.c: Ditto.
3066 * m2-lang.c: Ditto.
3067 * parse.c: Ditto.
3068 * scm-lang.c: Ditto.
3069 * objc-lang.c: Ditto.
3070
83ee270e
NC
30712003-09-09 Nick Clifton <nickc@redhat.com>
3072
3073 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3074
a89aa300
AC
30752003-09-04 Andrew Cagney <cagney@redhat.com>
3076
3077 * avr-tdep.c: Include "dis-asm.h".
3078 * cris-tdep.c: Include "dis-asm.h".
3079 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3080 instead of corresponding typedef.
3081 * h8300-tdep.c: Include "dis-asm.h".
3082 * ia64-tdep.c: Include "dis-asm.h".
3083 * i386-tdep.c: Include "dis-asm.h".
3084 (i386_print_insn): Use "struct disassemble_info" instead of
3085 corresponding typedef.
3086 * m68k-tdep.c: Include "dis-asm.h".
3087 * mcore-tdep.c: Include "dis-asm.h".
3088 * mips-tdep.c: Include "dis-asm.h".
3089 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3090 instead of corresponding typedef.
3091 * ns32k-tdep.c: Include "dis-asm.h".
3092 * s390-tdep.c: Include "dis-asm.h".
3093 * sparc-tdep.c: Include "dis-asm.h".
3094 * vax-tdep.c: Include "dis-asm.h".
3095 * v850-tdep.c: Include "dis-asm.h".
3096 * mn10300-tdep.c: Include "dis-asm.h".
3097 * rs6000-tdep.c: Include "dis-asm.h".
3098 * xstormy16-tdep.c: Include "dis-asm.h".
3099 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3100 print_insn_xstormy16.
3101 * Makefile.in (v850-tdep.o): Update dependencies.
3102 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3103 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3104 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3105 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3106 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3107 (gdbarch_h): Remove $(dis_asm_h).
3108 * disasm.c: Include "dis-asm.h".
3109 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3110 corresponding typedef.
3111 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3112 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3113 * gdbarch.sh: Do not include "dis-asm.h".
3114 (struct disassemble_info): Declare opaque.
3115 (TARGET_PRINT_INSN): Update declaration.
3116 * gdbarch.h, gdbarch.c: Re-generate.
3117
88a82a65
AC
31182003-09-08 Andrew Cagney <cagney@redhat.com>
3119
3120 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3121 CALL_DUMMY_ADDRESS, change to a predicate.
3122 * gdbarch.h, gdbarch.c: Re-generate.
3123 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3124 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3125 * infcall.c (call_function_by_hand): Ditto.
3126 * sparc-tdep.c (sparc_push_return_address): Ditto.
3127 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3128 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3129 CALL_DUMMY_ADDRESS with entry_point_address.
3130 * v850-tdep.c (v850_push_return_address): Ditto.
3131 * s390-tdep.c (s390_push_return_address): Ditto.
3132 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3133 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3134 * mcore-tdep.c (mcore_push_return_address): Ditto.
3135 * cris-tdep.c (cris_push_return_address): Ditto.
3136 * arm-tdep.c (arm_push_return_address): Ditto.
3137
3e2c4033
AC
31382003-09-08 Andrew Cagney <cagney@redhat.com>
3139
3140 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3141 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3142 and REG_UNMODIFIED to REG_SAME_VALUE.
3143 (execute_cfa_program): Update.
3144 (dwarf2_frame_cache): Update. Initialize table to
3145 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3146 location.
3147 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3148
39efb398
AC
31492003-09-08 Andrew Cagney <cagney@redhat.com>
3150
3151 * gnu-nat.c: Remove "inline" function attribute.
3152 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3153
f5cb5aca
KB
31542003-09-08 Kevin Buettner <kevinb@redhat.com>
3155
3156 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3157 target.
3158
1cb761c7
KB
31592003-09-08 Kevin Buettner <kevinb@redhat.com>
3160
3161 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3162 (frame_extra_info): Rename this struct to frv_unwind_cache.
3163 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3164 Add fields ``prev_sp'' and ``base''.
3165 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3166 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3167 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3168 Delete.
3169 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3170 Revise all callers. Fill in the unwind cache argument and make
3171 other adjustments to account for new frame mechanisms.
3172 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3173 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3174 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3175 (frv_frame_unwind, frv_frame_base): New structs.
3176 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3177 additional arguments expected by this method and adjust function
3178 body accordingly.
3179 (frv_gdbarch_init): Remove calls to the following functions:
3180 set_gdbarch_deprecated_init_frame_pc(),
3181 set_gdbarch_deprecated_saved_pc_after_call(),
3182 set_gdbarch_deprecated_frame_chain(),
3183 set_gdbarch_deprecated_frame_saved_pc(),
3184 set_gdbarch_deprecated_frame_init_saved_regs(),
3185 set_gdbarch_deprecated_push_arguments(),
3186 set_gdbarch_deprecated_push_return_address(),
3187 set_gdbarch_deprecated_pop_frame(),
3188 set_gdbarch_deprecated_call_dummy_words(),
3189 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3190 set_gdbarch_deprecated_init_extra_frame_info(),
3191 set_gdbarch_deprecated_dummy_write_sp(), and
3192 set_gdbarch_deprecated_pc_in_call_dummy().
3193 Add calls to the following functions:
3194 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3195 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3196 frame_base_set_default().
3197 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3198
68f6cf99
MK
31992003-09-09 Mark Kettenis <kettenis@gnu.org>
3200
3201 * dwarf2-frame.c (read_encoded_value): Add support for
3202 DW_EH_PE_aligned encoding.
3203
73b65bb0
DJ
32042003-09-08 Daniel Jacobowitz <drow@mvista.com>
3205
3206 * infrun.c (normal_stop): Don't print a message if the inferior
3207 has exited.
3208
7c8a5605
JB
32092003-09-08 Jim Blandy <jimb@redhat.com>
3210
3211 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3212 * dbxread.c: #include "gdb_assert.h".
3213 (read_dbx_symtab): If the objfile has no .data section, use the
3214 section index for the .bss section instead.
3215
7dd88986
DJ
32162003-09-08 Daniel Jacobowitz <drow@mvista.com>
3217
3218 * frame.c (deprecated_safe_get_selected_frame): New function.
3219 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3220 * findvar.c (read_var_value): Call it.
3221
55ff77ac
CV
32222003-09-08 Corinna Vinschen <vinschen@redhat.com>
3223
3224 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3225 (sh64-tdep.o): Add dependencies.
3226 * configure.tgt: Add FIXME to sh-*-linux*.
3227 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3228 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3229 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3230 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3231 * sh64-tdep.c: New file, containing all sh64 related code from
3232 sh-tdep.c.
3233 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3234 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3235 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3236 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3237 * config/sh/wince.mt (TDEPFILES): Ditto.
3238
bfb39158
DJ
32392003-09-07 Daniel Jacobowitz <drow@mvista.com>
3240
3241 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3242 (stop_wait_callback): Handle !lp->signalled also.
3243 (lin_lwp_has_pending, flush_callback): New functions.
3244 (lin_lwp_wait): Call flush_callback.
3245 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3246 (linux_proc_pending_signals): New function.
3247 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3248
9407de8e
DJ
32492003-09-07 Daniel Jacobowitz <drow@mvista.com>
3250
3251 From Nick Kelsey <nickk@ubicom.com>:
3252 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3253 when the stop PC is at the beginning of a function also.
3254
2ef47cd0
DJ
32552003-09-06 Daniel Jacobowitz <drow@mvista.com>
3256
3257 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3258 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3259
6f4492c8
MK
32602003-09-06 Mark Kettenis <kettenis@gnu.org>
3261
3262 * sol-thread.c: Include "gdb_string.h".
3263
d3420b2f
MK
32642003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3265
3266 * gcore.c: Reorder include files in alphabetical order. Include
3267 "gdb_assert.h". Various coding style fixes.
3268 (derive_stack_segment, derive_heap_segment): Replace check for
3269 non-null BOTTOM and TOP with gdb_assert.
3270 (derive_heap_segment): Replace check for successful creation of
3271 ZERO with gdb_assert.
3272 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3273
5220ea4c
AC
32742003-09-04 Andrew Cagney <cagney@redhat.com>
3275
3276 * thread-db.c (verbose_dlsym): New function.
3277 (thread_db_load): Use verbose_dlsym
3278 (thread_db_new_objfile): Print that libthread_db was loaded, and
3279 that thread debugging was enabled.
3280
6e8c2c06
AC
32812003-09-04 Andrew Cagney <cagney@redhat.com>
3282
3283 * configure.tgt: Add "mips64*-*-*" target. Delete
3284 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3285 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3286 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3287 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3288 mips*-sony-*, and mips64*-*-elf* targets.
3289 * config/mips/embedl.mt: Delete file.
3290 * config/mips/embedl64.mt: Delete file.
3291 * config/mips/mips.mt: Delete file.
3292 * config/mips/mips64.mt: Delete file.
3293 * config/mips/tm-embed.h: Delete file.
3294 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3295 * config/mips/embed64.mt: Delete out-of-date comment.
3296
3a3bc038
AC
32972003-09-04 Andrew Cagney <cagney@redhat.com>
3298
3299 * hppa-tdep.c (hppa_gdbarch_init): Set
3300 "have_nonsteppable_watchpoint".
3301 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3302 * mips-tdep.c (mips_dump_tdep): Do not print
3303 HAVE_NONSTEPPABLE_WATCHPOINT.
3304 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3305 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3306 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3307 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3308
a957e642
CV
33092003-09-04 Corinna Vinschen <vinschen@redhat.com>
3310
3311 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3312 unused code. Add comment.
3313
a6fbcf2f
CV
33142003-09-04 Corinna Vinschen <vinschen@redhat.com>
3315
3316 * breakpoint.c (watchpoint_check): Check for pc being in an
3317 epilogue if watchpoint frame couldn't be found.
3318
c14a44d5
AC
33192003-09-04 Andrew Cagney <cagney@redhat.com>
3320
3321 * Makefile.in: Re-generate all dependencies.
3322
f6c40618
AC
33232003-09-03 Andrew Cagney <cagney@redhat.com>
3324
3325 * arch-utils.h (legacy_print_insn): Delete declaration.
3326 * arch-utils.c (legacy_print_insn): Delete function.
3327 * disasm.c (deprecated_tm_print_insn_info): Delete.
3328 (_initialize_disasm): Delete function, contained code initializing
3329 deprecated_tm_print_insn_info.
3330 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3331 (deprecated_tm_print_insn_info): Delete.
3332 (TARGET_PRINT_INSN): Do not provide a default.
3333 * gdbarch.h, gdbarch.c: Re-generate.
3334
242e8be5
AC
33352003-09-03 Andrew Cagney <cagney@redhat.com>
3336
3337 * disasm.c (fprintf_disasm): New function.
3338 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3339 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3340 reverts 2003-08-14 change.
3341 (_initialize_disasm): Call "init_disassemble_info", instead of
3342 INIT_DISASSEMBLE_INFO_NO_ARCH.
3343
3ffc3dda
MS
33442003-09-03 Michael Snyder <msnyder@redhat.com>
3345
3346 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3347
52d16ba8
AC
33482003-09-03 Andrew Cagney <cagney@redhat.com>
3349
3350 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3351 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3352 * symfile.c (syms_from_objfile): Update.
3353 (reread_symbols): `Update
3354 * exec.c (exec_file_attach): Update.
3355 (exec_file_attach): Update.
3356 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3357 2003-08-29 change.
3358 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3359
eb5492fa
DJ
33602003-09-03 Daniel Jacobowitz <drow@mvista.com>
3361
3362 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3363 trad-frame.h.
3364 (arm_get_cache): Delete macro.
3365 (struct arm_prologue_cache): Update comments. Make saved_regs into
3366 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3367 to prev_sp.
3368 (thumb_scan_prologue): Update for cache changes. Don't call
3369 DEPRECATED_PC_IN_CALL_DUMMY.
3370 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3371 argument and use it in desperation search for our prologue. Do not
3372 search past the specified PC.
3373 (arm_make_prologue_cache): Simplify.
3374
3375 (arm_prologue_this_id, arm_prologue_prev_register)
3376 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3377 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3378 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3379 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3380 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3381
3382 (arm_frame_chain_valid, arm_find_callers_reg)
3383 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3384 (arm_pop_frame): Delete obsolete methods.
3385 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3386
3387 (arm_gdbarch_init): Update for new frame methods. Register prologue
3388 and sigtramp unwinders. Set the default frame base method.
3389
3390 * Makefile.in (arm-tdep.o): Update dependencies.
3391 * varobj.c (find_frame_addr_in_frame_chain): Call
3392 get_frame_base_address.
3393 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3394
24de872b
DJ
33952003-09-03 Daniel Jacobowitz <drow@mvista.com>
3396
3397 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3398 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3399 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3400 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3401 Take NEXT_FRAME and CACHE arguments. Call
3402 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3403 Set unwound_pc in CACHE instead of modifying the frame argument.
3404 Don't bother checking the frame type when looking for sigtramp
3405 frames.
3406 (arm_make_prologue_cache, arm_frame_chain)
3407 (arm_init_extra_frame_info): New functions.
3408
9b8d791a
DJ
34092003-09-03 Daniel Jacobowitz <drow@mvista.com>
3410
3411 * arm-tdep.c (arm_get_cache): Define.
3412 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3413 unwound_sp, unwound_pc, and saved_regs.
3414 (thumb_scan_prologue): Take a cache instead of the frame.
3415 (arm_scan_prologue): Likewise.
3416 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3417 instead of a temporary frame.
3418 (arm_init_extra_frame_info): Allocate and use a cache.
3419 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3420
7ee3275f
AC
34212003-09-03 Andrew Cagney <cagney@redhat.com>
3422
3423 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3424 * config/mips/wince.mt (TM_CLIBS): Ditto.
3425 * config/sh/wince.mt (TM_CLIBS): Ditto.
3426 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3427 * config/sparc/sp64.mt (CC): Delete.
3428
57b29be7
AC
34292003-09-03 Andrew Cagney <cagney@redhat.com>
3430
3431 * defs.h: Do not include "arch-utils.h".
3432 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3433 GDB_MULTI_ARCH_PURE.
3434 * configure.in (GDB_MULTI_ARCH): Do not define.
3435 * configure, config.in: Regenerate.
3436 * configure.tgt: Do not set variable "gdb_multi_arch".
3437 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3438 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3439 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3440 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3441 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3442 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3443 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3444 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3445 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3446 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3447 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3448 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3449 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3450 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3451 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3452 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3453 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3454 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3455
12e035e2
MC
34562003-08-30 Michael Chastain <mec@shout.net>
3457
3458 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3459 * config/m68k/nm-hp300hpux.h: Delete.
3460 * config/m68k/tm-hp300hpux.h: Delete.
3461 * config/m68k/xm-hp300hpux.h: Delete.
3462 * config/m68k/xm-hp300bsd.h: Delete.
3463 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3464 tm-hp300hpux.h, xm-hp300hpux.h.
3465 * somsolib.c: Remove comment about hp300 shared libraries.
3466
bda34dc2
MK
34672003-08-31 Mark Kettenis <kettenis@gnu.org>
3468
5bca7895
MK
3469 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3470 Only define PTRACE_GET_THREAD_AREA is not already defined.
3471 Various style fixes in code and comments and some additional
3472 spelling fixes in comments. Move after functions dealing with
3473 debug registers.
3474 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3475 Fix coding-style.
3476
bda34dc2
MK
3477 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3478 frame_unwind_register_unsigned instead of
3479 frame_unwind_unsigned_register.
3480
c890192f
MK
34812003-08-30 Mark Kettenis <kettenis@gnu.org>
3482
3483 * configure.in: Search for gethostbyname in libnsl.
3484 * configure: Regenerated.
3485
60fac5b8
MK
34862003-08-29 Mark Kettenis <kettenis@gnu.org>
3487
e294916c
MK
3488 * configure.in: Remove redundant AC_MSG_RESULT in check for
3489 uintptr_t in stdint.h.
3490 * configure: Regenerated.
3491
c40d267a
MK
3492 * amd64-nat.h (struct regcache): Add opaque declaration.
3493
60fac5b8
MK
3494 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3495 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3496 Change "register array" to "register cache" in comments.
3497 (x86_64_linux_gregset64_reg_offset): New variable.
3498 (GETREGS_SUPPLIES): Remove macro.
3499 (supply_gregset): Call amd64_supply_native_gregset instead of
3500 x86_64_linux_supply_gregset.
3501 (fill_gregset): Rename `regno' to `regnum'. Call
3502 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3503 (store_regs): Rename `regno' to `regnum'.
3504 (store_fpregs): Rename `regno' to `regnum'.
3505 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3506 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3507 Reorganize function a bit.
3508 (store_inferior_registers): Rename `regno' to `regnum'. Use
3509 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3510 Reorganize function a bit.
3511 (_initialize_x86_64_linux_nat): New function.
3512 * config/i386/x86-64linux.mh.
3513
546143b6
AC
35142003-08-29 Andrew Cagney <cagney@redhat.com>
3515
3516 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3517 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3518 (target_remove_watchpoint): Delete macro.
3519 (target_insert_watchpoint): Delete macro.
3520 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3521 (remote_mips_stopped_by_watchpoint): Delete declaration.
3522 (remote_mips_remove_watchpoint): Delete declaration.
3523 (remote_mips_set_watchpoint): Delete declaration.
3524 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3525 * remote-mips.c (_initialize_remote_mips): Set
3526 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3527 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3528 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3529 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3530 (mips_stopped_by_watchpoint): Rename
3531 remote_mips_stopped_by_watchpoint.
3532 (mips_can_hardware_watchpoint): Rename
3533 remote_mips_can_use_hardware_watchpoint, update function
3534 signature.
3535
7bace51b
MK
35362003-08-29 Mark Kettenis <kettenis@gnu.org>
3537
b0f5c6f2
MK
3538 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3539 USER_DS. We haven't given them a register number yet.
3540
2a6d284d
MK
3541 * amd64-nat.h: New file.
3542 * amd64-nat.c: New file.
3543 * amd64fbsd-nat.c: Include "amd64-nat.h".
3544 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3545 (amd64fbsd32_r_reg_offset): New variable.
3546 (supply_gregset): Simply call amd64_supply_native_gregset.
3547 (fill_gregset): Rename `regno' to `regnum'. Simply call
3548 amd64_collect_native_gregset.
3549 (fill_fpregset): Rename `regno' to `regnum'.
3550 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3551 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3552 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3553 `fpregset_t'. Call amd64_supply_native_gregset instead of
3554 supply_gregset. Call x86_64_supply_fxsave instead of
3555 supply_fpregset.
3556 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3557 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3558 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3559 `fpregset_t'. Call amd64_collect_native_gregset instead of
3560 fill_gregset. Call x86_64_collect_fxsave instead of
3561 fill_fpregset.
3562 (_initialize_am64fbsd_nat): Initialize
3563 amd64_native_gregset32_reg_offset and
3564 amd64_native_gregset64_reg_offset.
3565 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3566
a16d75cc
MK
3567 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3568 null pointer. Fix typo in comment.
3569
7bace51b
MK
3570 * regcache.c (supply_register): Reimplement to call
3571 regcache_raw_supply.
3572 (regcache_collect): Reimplement by calling regcache_raw_collect.
3573
9a661b68
MK
35742003-08-28 Mark Kettenis <kettenis@gnu.org>
3575
3576 * regcache.c (register_buffer): Consitify first argument.
3577 (regcache_raw_supply, regcache_raw_collect): New
3578 functions.
3579
e94cc8fa
DJ
35802003-08-28 Daniel Jacobowitz <drow@mvista.com>
3581
3582 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3583 by Nathan J. Williams.
3584
c64bd0ce
DJ
35852003-08-28 Daniel Jacobowitz <drow@mvista.com>
3586
3587 * lin-lwp.c (wait_lwp): New function, copied from
3588 stop_wait_callback. Clean up.
3589 (stop_wait_callback): Use wait_lwp.
3590
e5ab0dce
AC
35912003-08-28 Andrew Cagney <cagney@redhat.com>
3592
3593 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3594 flavour and disassembler options.
3595 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3596 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3597 deprecated_tm_print_insn_info.
a8f4cde1 3598
a788de9b
AC
35992003-08-27 Andrew Cagney <cagney@redhat.com>
3600
3601 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3602 Use target_read_memory.
3603 (s390_get_frame_info): Update. Do not reference
3604 deprecated_tm_print_insn_info.
3605 (s390_check_function_end, s390_is_sigreturn): Ditto.
3606
36482093
AC
36072003-08-27 Andrew Cagney <cagney@redhat.com>
3608
3609 * Makefile.in (cris-tdep.o): Update dependencies.
3610 * cris-tdep.c: Include "gdb_assert.h".
3611 (cris_gdbarch_init): Set print_insn.
3612 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3613 (cris_delayed_get_disassembler): Simplify, directly call the
3614 disassembler returned by cris_get_disassembler.
3615 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3616 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3617 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3618 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3619 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3620 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3621 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3622 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3623 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3624 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3625 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3626 (gdb_print_insn_sparc): Delete function.
3627 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3628 deprecated_tm_print_insn_info.
3629 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3630 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3631 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3633 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3634 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3635 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3636 (s390_gdbarch_init): Set print_insn.
3637
0285512f
AC
36382003-08-27 Andrew Cagney <cagney@redhat.com>
3639
3640 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3641 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3642 * infcall.c (call_function_by_hand): Convert the entry point
3643 address into a code address.
3644
cdcd5552
AC
36452003-08-27 Andrew Cagney <cagney@redhat.com>
3646
3647 * dsrec.c: Include "gdb_string.h".
3648 * Makefile.in (dsrec.o): Update dependencies.
3649
e85cddad
MC
36502003-08-27 Michael Chastain <mec@shout.net>
3651
3652 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3653
8bbfbb23
AC
36542003-08-27 Andrew Cagney <cagney@redhat.com>
3655
3656 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3657 (alpha_osf1_init_abi): Do not set call_dummy_address.
3658
ba058b66
DC
36592003-08-27 David Carlton <carlton@kealia.com>
3660
3661 From Randolph Chung <tausq@debian.org>:
3662 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3663 compiles with -Wformat-nonliteral -Werror.
3664
87f84c9d
JB
36652003-08-26 Jim Blandy <jimb@redhat.com>
3666
3667 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3668 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3669 bfd_lookup_symbol, since we only want symbols in code sections.
3670 (look_for_base): Pass zero as the SECT_FLAGS argument to
3671 bfd_lookup_symbol, since we're not concerned about which section
3672 the symbol is in.
3673
102d615a
JJ
36742003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3675
3676 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3677 we are frameless or the return address register is already known.
102d615a 3678
cc7ad3ea
AC
36792003-08-26 Andrew Cagney <cagney@redhat.com>
3680
3681 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3682 in size. Add comments.
3683
af8b88dd
JJ
36842003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3685
3686 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3687 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3688
e0a4f5a1
JM
36892003-08-26 Jason Merrill <jason@redhat.com>
3690
3691 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3692 case out of #ifdef MIPS block.
3693
4ae9ee8e
DJ
36942003-08-25 Daniel Jacobowitz <drow@mvista.com>
3695
3696 PR java/1322
3697 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3698 available before calling SECT_OFF_TEXT.
3c164570 3699 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3700
004d836a
JJ
37012003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3702
a8f4cde1 3703 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3704 bof, and nat0-nat127 as pseudo-registers.
3705 (ia64_frame_cache): New struct used to cache frame info.
3706 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3707 register grouping so registers without names are still saved and
004d836a 3708 restored.
a8f4cde1 3709 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3710 pseudo values.
3711 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3712 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3713 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3714 ia64_frame_cache.
3715 (examine_prologue): Change prototype to add next_frame pointer.
3716 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3717 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3718 alloc insn and if equal, mark as not frameless. At end of routine,
3719 if not frameless, calculate registers for the previous frame and store
3720 in the cache, if a cache is provided.
3721 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3722 and pass 0 for next_frame.
3723 (ia64_store_return_value): Change to use convert_typed_floating()
3724 instead of calling ia64_convert_to_raw().
3725 (ia64_extract_return_value): Change to use convert_typed_floating()
3726 instead of calling ia64_convert_to_virtual().
3727 (ia64_frame_cache): New routine to support new frame model.
3728 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3729 (ia64_frame_sniffer): Ditto.
3730 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3731 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3732 (ia64_sigtramp_frame_prev_register): Ditto.
3733 (ia64_sigtramp_frame_sniffer): Ditto.
3734 (ia64_frame_base_address): Ditto.
3735 (ia64_extract_struct_value_address): Change to issue error message.
3736 (ia64_frame_align): New routine to align sp.
3737 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3738 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3739 ia64_push_dummy_call().
3740 (ia64_push_return_address): Ditto.
3741 (ia64_unwind_dummy_id): New function.
3742 (ia64_unwind_pc): Ditto.
3743 (ia64_convert_register_p): Ditto.
3744 (ia64_register_to_value): Ditto.
3745 (ia64_value_to_register): Ditto.
3746 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3747 (ia64_register_byte, ia64_register_raw_size): Ditto.
3748 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3749 (ia64_saved_pc_after_call): Ditto.
3750 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3751 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3752 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3753 (ia64_register_convert_to_raw): Ditto.
3754 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3755 (ia64_init_extra_frame_info): Ditto.
3756 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3757 (ia64_gdbarch_init): Remove registering of deprecated functions that
3758 are no longer used. Add registration of new gdbarch functions.
3759 Remove registering deprecated_write_sp. Replace
3760 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3761 Delete set_gdbarch_deprecated_register_convertible(),
3762 set_gdbarch_deprecated_register_convert_to_virtual(), and
3763 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3764 set_gdbarch_deprecated_register_size(),
3765 set_gdbarch_deprecated_register_bytes(),
3766 set_gdbarch_pcregnum(),
3767 set_gdbarch_deprecated_register_byte(),
3768 set_gdbarch_deprecated_register_raw_size(),
3769 set_gdbarch_deprecated_max_register_raw_size(),
3770 set_gdbarch_deprecated_register_virtual_size(),
3771 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3772 Replace set_gdbarch_deprecated_extract_return_value() with
3773 set_gdbarch_extract_return_value(). Remove calls to:
3774 set_gdbarch_deprecated_saved_pc_after_call();
3775 set_gdbarch_deprecated_frame_chain(),
3776 set_gdbarch_deprecated_frame_saved_pc(),
3777 set_gdbarch_deprecated_frame_init_saved_regs(),
3778 set_gdbarch_deprecated_get_saved_register(),
3779 set_gdbarch_deprecated_call_dummy_words(),
3780 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3781 set_gdbarch_deprecated_init_extra_frame_info(),
3782 set_gdbarch_deprecated_frame_args_address(),
3783 set_gdbarch_deprecated_frame_locals_address(),
3784 and set_gdbarch_deprecated_dummy_write_sp().
3785 Add set_gdbarch_convert_register_p(),
3786 set_gdbarch_register_to_value(),
3787 set_gdbarch_value_to_register(),
3788 set_gdbarch_push_dummy_call(),
3789 set_gdbarch_frame_align(),
3790 set_gdbarch_unwind_dummy_id(),
3791 set_gdbarch_unwind_pc(),
3792 frame_unwind_append_sniffer(),
3793 frame_unwind_append_sniffer(),
3794 and frame_base_set_default().
3795
aede7613
CD
37962003-08-25 Chris Demetriou <cgd@broadcom.com>
3797
3798 * configure.tgt: Document need for special "mipsisa64" handling.
3799 (mipsisa64*-*-linux64): Handle as target linux64.
3800 (mipsisa64*-*-*): Handle as target embed64.
3801
43c3a82e
MC
38022003-08-18 Michael Chastain <mec@shout.net>
3803
3804 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3805 objfile bug.
3806
6564f77d
MK
38072003-08-24 Mark Kettenis <kettenis@gnu.org>
3808
2de139ba
MK
3809 * i387-tdep.h: Update copyright date.
3810 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3811
6564f77d
MK
3812 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3813 CFLAGS games to reflect reality.
3814
42cf1509
AC
38152003-08-24 Andrew Cagney <cagney@redhat.com>
3816
3817 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3818 GDB_MULTI_ARCH is always non-zero.
3819 * osabi.c (_initialize_gdb_osabi): Ditto.
3820 (gdbarch_init_osabi): Ditto.
3821 * sparc-tdep.c: Ditto for #if code.
3822
0485f6ad
MK
38232003-08-23 Mark Kettenis <kettenis@gnu.org>
3824
3825 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3826 Update comments.
3827 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
3828 comments.
3829 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3830 x86_64_supply_fxsave.
3831 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3832 x86_64_supply_fxsave.
3833 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3834 x86_64_supply_fxsave.
3835
c7716133
AJ
38362003-08-23 Andreas Jaeger <aj@suse.de>
3837
3838 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3839 i387_supply_fxsave.
3840
ed504bdf
MK
38412003-08-23 Mark Kettenis <kettenis@gnu.org>
3842
3843 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3844 i387_supply_register.
3845 (go32_fetch_registers): Adjust call to i387_supply_fsave.
3846 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3847 i387_supply_fsave.
3848 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3849 i387_supply_fxsave.
3850 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3851 i387_supply_fsave.
3852 * i386bsd-nat.c (supply_fpregset): Adjust call to
3853 i387_supply_fsave.
3854 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
3855 call to i387_supply_fxsave. Call i387_supply_fsave instead of
3856 supply_fpregset.
3857 (store_inferior_registers): Remove extraneous whitespace. Call
3858 i387_fill_fsave instead of fill_fpregset.
3859 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3860 (supply_fpregset): Likewise.
3861 * i386v4-nat.c (supply_fpregset): Adjust call to
3862 i387_supply_fsave.
3863 * i386-interix-nat.c (supply_fpregset): Adjust call to
3864 i387_supply_fsave.
3865 * i386-linux-nat.c (supply_fpregset): Adjust call to
3866 i387_supply_fsave.
3867 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3868 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3869 i387supply_fsave and i387_supply_fxsave.
3870 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3871 Incorporate code from `i387_supply_register.
3872 (i387_supply_register): Remove.
3873 (i387_supply_fxsave): Add `regnum' argument.
3874 Update comments.
3875 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3876 prototype.
3877 (i387_supply_register): remove prototype.
3878 Update comments.
a8f4cde1 3879
4be5d520
MC
38802003-08-22 Michael Chastain <mec@shout.net>
3881
3882 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3883 Add lines for files in gdb/testsuite/gdb.cp/* that are
3884 still not 8.3 unique.
3885
7ed85d26
DJ
38862003-08-22 Daniel Jacobowitz <drow@mvista.com>
3887
3888 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3889 TYPE_VPTR_FIELDNO is valid.
3890
eb0d3137
MK
38912003-08-19 Mark Kettenis <kettenis@gnu.org>
3892
3893 * utils.c (set_width_command): Remove prototypes.
3894 (set_screen_size): New prototype.
3895 (init_page_info): Simplify by fetching the screen size from
3896 Readline. Call set_screen_size.
3897 (set_screen_size): New function.
3898 (set_width): Add missing whitespace in comment.
3899 (set_width_command): Call set_screen_size.
3900 (set_height_command): New function.
3901 (initialize_utils): Fix formatting. Make "set height" command
3902 call set_height_command. Remove redundant code that turns off
3903 pagination if output isn't a terminal. Remove redundant call to
3904 set_width_command.
a8f4cde1 3905
7e6d0ac8
MK
39062003-08-22 Mark Kettenis <kettenis@gnu.org>
3907
3567a8ea
MK
3908 * sparc64-tdep.h (sparc64_regnum): Fix comment.
3909 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3910 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3911 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3912 `case' keyword.
3913 (sparc64_register_info): Give the reister with number
3914 SPARC64_STATE_REGNUM a name.
3915 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3916 %asi and %ccr.
3917 (sparc64_push_dummy_call): Take BIAS into account when checking
3918 stcak alignment.
3919 (sparc_software_single_step): Remove assertions that check whether
3920 NPC and NNPC were zero.
3921 (sparc_supply_rwindow): Make public. Merge functionality with
3922 sparc64_supply_rwindow.
3923 (sparc_fill_rwindow): Make public. Merge functionality with
3924 sparc64_fill_rwindow.
3925 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3926 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3927 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3928 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3929 sparc_supply_rwindow instead of sparc64_supply_rwindow.
3930
7e6d0ac8
MK
3931 * reggroups.c: Add whitespace after declarations of local
3932 variables in functions.
3933
72e5f484
MC
39342003-08-21 Michael Chastain <mec@shout.net>
3935
3936 * gdbtypes.h: Change array bound type from an int to enum.
3937
435ac228
AC
39382003-08-21 Andrew Cagney <cagney@redhat.com>
3939
3940 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3941 * config/sparc/tm-sparc.h: Ditto.
3942 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3943 unconditionally.
3944 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3945
0d0e1a63
MK
39462003-07-13 Mark Kettenis <kettenis@gnu.org>
3947
3948 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3949 (register_objfile_data, set_objfile_data, objfile_data): New
3950 prototypes.
3951 * objfiles.c (objfile_alloc_data, objfile_free_data): New
3952 prototypes.
3953 (allocate_objfile): Call objfile_alloc_data.
3954 (free_objfile): Call objfile_free_data.
3955 (struct objfile_data): New.
3956 (struct objfile_data_registration): New.
3957 (struct objfile_data_registry): New.
3958 (objfile_data_registry): New variable.
3959 (register_objfile_data): New function.
3960 (objfile_alloc_data, objfile_free_data): New functions.
3961 (set_objfile_data, objfile_data): New functions.
3962 * dwarf2-frame.c (dwarf2_frame_data): New variable.
3963 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
3964 (_initialize_dwarf2_frame): New function and prototype.
3965
d90cf509
AC
39662003-08-21 Andrew Cagney <cagney@redhat.com>
3967
3968 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
3969 a specific architecture.
3970 * arch-utils.h (set_architecture_from_arch_mach): Delete
3971 declaration.
3972 (target_architecture_hook): Delete declaration.
3973 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
3974 (default_float_format): Assume GDB_MULTI_ARCH.
3975 (default_double_format): Assume GDB_MULTI_ARCH.
3976 (set_endian_from_file): Delete function.
3977 (arch_ok): Delete function.
3978 (set_arch): Delete function.
3979 (set_architecture_from_arch_mach): Delete function.
3980 (set_architecture_from_file): Delete function.
3981 (set_architecture): Assume GDB_MULTI_ARCH.
3982 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
3983
8b39fe56
MK
39842003-08-21 Mark Kettenis <kettenis@gnu.org>
3985
3986 Rewrite FreeBSD/sparc64 native configuration.
3987 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
3988 * sparc64fbsd-nat.c: New file.
3989 * sparc64fbsd-tdep.c: New file.
3990 * sparc64-tdep.c sparc64-tdep.h: New files.
3991 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
3992 sparc64fbsd-tdep.o): New dependencies.
3993 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
3994 and sparc64fbsd-tdep.c.
3995 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
3996 * config/sparc/fbsd.mh: Remove copyright notice.
3997 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
3998 sparcbsd-nat.o.
3999 * config/sparc/fbsd.mt: Remove copyright notice.
4000 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4001 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4002 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4003 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4004 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4005 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4006 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4007 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4008 "sparc/tm-sp64.h".
4009 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4010 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4011
a7f19c79
MC
40122003-08-21 Michael Chastain <mec@shout.net>
4013
4014 * symtab.h: Add doco on the space critical structures and
4015 some measurements of space usage.
4016
da08ea5b
MS
40172003-08-21 Michael Snyder <msnyder@redhat.com>
4018
4019 * tracepoint.c (trace_dump_command): Trace break address
4020 is subject to DECR_PC_AFTER_BREAK.
4021 (set_traceframe_context): Make "trace_line" an int.
4022 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4023
6df2bf50
MS
40242003-08-20 Michael Snyder <msnyder@redhat.com>
4025
4026 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4027 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4028 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4029 argument passing.
a8f4cde1 4030 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4031 functions, replace sh_push_dummy_call.
4032 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4033
0955bbf0
MC
40342003-08-20 Michael Chastain <mec@shout.net>
4035
4036 * gdbtypes.h (struct main_type): Rearrange to save space.
4037
260a4188
MS
40382003-08-20 Michael Snyder <msnyder@redhat.com>
4039
4040 * trad-frame.c: Comment typo fix.
4041
8baa6f92
KB
40422003-08-20 Michael Snyder <msnyder@redhat.com>
4043 Kevin Buettner <kevinb@redhat.com>
4044
4045 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4046 (frv_frame_init_saved_regs): Add declaration.
4047 (frame_extra_info): Add new field ``saved_regs''.
4048 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4049 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4050 Update frame related code.
4051 (frv_extract_struct_value_address): Adjust formatting.
4052 * Makefile.in (frv-tdep.o): Update dependencies.
4053 * config/frv/tm-frv.h (target_insert_watchpoint)
4054 (target_remove_watchpoint, target_insert_hw_breakpoint)
4055 (target_remove_hw_breakpoint): Delete these macros.
4056 (remote_insert_watchpoint, remote_remove_watchpoint)
4057 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4058 these declarations.
4059
87193939
MC
40602003-08-20 Michael Chastain <mec@shout.net>
4061
4062 * defs.h (ENUM_BITFIELD): New macro.
4063 * symtab.h (ENUM_BITFIELD): Use it.
4064 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4065
062103ba
SA
40662003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4067
4068 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4069
8b148df9
AC
40702003-08-18 Andrew Cagney <cagney@redhat.com>
4071
4072 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4073 * gdbarch.h, gdbarch.c: Re-generate.
4074 * infcall.c (call_function_by_hand): Adjust the SP by
4075 frame_red_zone_size before allocating any stack space.
4076 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4077 * x86-64-tdep.c (x86_64_frame_align): New function.
4078 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4079
4080 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4081 Remove code adjusting SP so that it skips over the Red Zone.
4082
954a4db8
MK
40832003-08-18 Mark Kettenis <kettenis@gnu.org>
4084
4085 * NEWS (New native configurations): Mention FreeBSD/amd64.
4086
1a241548
AC
40872003-08-18 Andrew Cagney <cagney@redhat.com>
4088
4089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4090 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4091 "m68k_frame_p".
4092 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4093
f82b2acd
MK
40942003-08-18 Mark Kettenis <kettenis@gnu.org>
4095
4096 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4097
4056d258
ML
40982003-08-18 Michal Ludvig <mludvig@suse.cz>
4099
4100 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4101 Define.
4102 * i386-linux-nat.c: Include "linux-nat.h".
4103 (child_post_startup_inferior): New function.
a8f4cde1 4104
99ab4326
MK
41052003-08-18 Mark Kettenis <kettenis@gnu.org>
4106
4107 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4108 at the start of a frameless function. This probably fixes PR
4109 backtrace/1338.
4110
c8d5f0d6
MC
41112003-08-17 Michael Chastain <mec@shout.net>
4112
4113 * symfile.c (find_sym_fns): Remove special case for apollo target.
4114
9016a515
DJ
41152003-08-17 Daniel Jacobowitz <drow@mvista.com>
4116
4117 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4118 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4119 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4120 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4121 (linux_supports_tracevforkdone): New function.
4122 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4123 TRACEVFORKDONE.
4124 (child_follow_fork): Handle vfork.
4125 (linux_handle_extended_wait): Likewise. Also handle exec.
4126 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4127 * NEWS: Mention fork tracing.
4128
c538c11c
DJ
41292003-08-17 Daniel Jacobowitz <drow@mvista.com>
4130
4131 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4132
4de4c07c
DJ
41332003-08-17 Daniel Jacobowitz <drow@mvista.com>
4134
4135 * Makefile.in (i386-linux-nat.o): Update dependencies.
4136 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4137 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4138 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4139 * i386-linux-nat.c: Include "linux-nat.h".
4140 (child_post_startup_inferior): New function.
4141 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4142 * infptrace.c (kill_inferior): Wrap in #ifdef.
4143 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4144 attaching to each LWP.
4145 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4146 (init_lin_lwp_ops): Fill in some more operations.
4147 * linux-nat.h (linux_enable_event_reporting)
4148 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4149 prototypes.
4150 * linux-nat.c (linux_enable_event_reporting): New function.
4151 (child_post_attach, linux_child_post_startup_inferior)
4152 (child_post_startup_inferior, child_follow_fork)
4153 (linux_handle_extended_wait, kill_inferior): New functions.
4154
7996bcec
AC
41552003-08-16 Andrew Cagney <cagney@redhat.com>
4156
4157 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4158 * gdbarch.h, gdbarch.c: Re-generate.
4159
3d48a7a0
MK
41602003-08-16 Mark Kettenis <kettenis@gnu.org>
4161
4162 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4163
7989c619
AC
41642003-08-16 Andrew Cagney <cagney@redhat.com>
4165
4166 * NEWS: Mention that "set prompt-escape-char" was deleted.
4167 * top.c (get_prompt_1): Delete function.
4168 (gdb_prompt_escape):
4169 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4170 prompt-escape-char" command.
4171 (MAX_PROMPT_SIZE): Delete macro.
4172 (get_prompt): Simplify, do not call get_prompt_1.
4173
07978cd8
AC
41742003-08-16 Andrew Cagney <cagney@redhat.com>
4175
4176 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4177 -Werror. -Wformat-nonliteral problems.
4178
3ff7cf9e
JB
41792003-08-15 J. Brobecker <brobecker@gnat.com>
4180
4181 Further multiarching work mostly for hppa64-*-hpux11:
4182 * hppa-tdep.h: New file.
4183 * hppa-tdep.c: #include hppa-tdep.c.
4184 (hppa32_num_regs): Renamed from hppa_num_regs.
4185 (hppa64_num_regs): New constant.
4186 (hppa64_call_dummy_breakpoint_offset): New constant.
4187 (hppa32_call_dummy_length): New constant.
4188 (hppa64_call_dummy_length): New constant.
4189 (hppa32_stack_align): Make name 32bit explicit.
4190 (hppa32_register_virtual_type): Likewise.
4191 (hppa32_extract_return_value): Likewise.
4192 (hppa32_use_struct_convention): Likewise.
4193 (hppa32_store_return_value): Likewise.
4194 (hppa64_register_virtual_type): New function.
4195 (hppa64_extract_return_value): New function.
4196 (hppa64_use_struct_convention): New function.
4197 (hppa64_store_return_value): New function.
4198 (hppa_frame_locals_address): Remove declaration, function does
4199 not exist anymore.
4200 (hppa_register_byte): Add support for PA64 ABI.
4201 (hppa_gdbarch_init): Add support for PA64 ABI.
4202 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4203 Make name 32bit explicit.
4204 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4205 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4206 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4207 (hppa64_hpux_frame_base_before_sigtramp): New function.
4208 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4209 * config/pa/tm-hppa64.h: Remove macros that are no longer
4210 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4211 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4212 * config/pa/tm-hppah.h: Update function calls in macros
4213 following the function renaming in hppa-hpux-tdep.c.
4214 * Makefile.in (hppa_tdep_h): New variable.
4215 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4216
5d05ca6d
MS
42172003-08-14 Michael Snyder <msnyder@redhat.com>
4218
4219 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4220
37ba2569
JB
42212003-08-13 J. Brobecker <brobecker@gnat.com>
4222
4223 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4224 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4225 routine.
4226
aed7f26a
MS
42272003-08-13 Michael Snyder <msnyder@redhat.com>
4228
4229 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4230 (frv_saved_pc_after_call): Use deprecated ftype.
4231 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4232 (frv_remote_translate_xfer_address): Remove.
4233 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4234
752d4ac1
JB
42352003-08-13 J. Brobecker <brobecker@gnat.com>
4236
4237 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4238 initialization after the common gdbarch initialization, not before.
4239
1426ac1d
JB
42402003-08-13 J. Brobecker <brobecker@gnat.com>
4241
4242 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4243 (ADDR_BITS_REMOVE): Remove, redundant.
4244
b6fbdd1d
JB
42452003-08-13 J. Brobecker <brobecker@gnat.com>
4246
4247 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4248 gdbarch method to clear the 2 low bits of text addresses.
4249
44160db3
AC
42502003-08-12 Andrew Cagney <cagney@redhat.com>
4251
4252 * Makefile.in (dsrec.o): Update dependencies.
4253 * dsrec.c: Include "gdb_assert.h".
4254 (make_srec): Use snprintf instead of sprintf, use a literal format
4255 string.
4256
bcf7d3ca
AC
42572003-08-12 Andrew Cagney <cagney@redhat.com>
4258
4259 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4260 FRAME_OBSTACK_ZALLOC.
4261
49ed40de
KB
42622003-08-12 Kevin Buettner <kevinb@redhat.com>
4263
4264 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4265 SSE registers.
4266
b246147c
MK
42672003-08-10 Mark Kettenis <kettenis@gnu.org>
4268
4269 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4270 amd64fbsd_sc_reg_offset): Add extern declarations.
4271 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4272 declarations.
4273
d95fdc0d
BE
42742003-08-11 Ben Elliston <bje@wasabisystems.com>
4275
4276 * MAINTAINERS (write after approval): Update my mail address.
4277
cf6a0e73
AC
42782003-08-10 Andrew Cagney <cagney@redhat.com>
4279
4280 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4281
f837910f
MK
42822003-08-10 Mark Kettenis <kettenis@gnu.org>
4283
e2dbbd2d
MK
4284 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4285 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4286 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4287 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4288 i386bsd_sc_reg_offset): Add extern declarations.
4289 * i386obsd-nat.c: Include "i386-tdep.h"
4290 (_initialize_i386obsd_nat): Remove extern declarations.
4291 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4292 declarations.
4293 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4294 declarations.
4295
f837910f
MK
4296 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4297 instead of frame_read_register.
4298 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4299 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4300 SP_REGNUM.
4301 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4302 instead of frame_unwind_unsigned_register. Use
4303 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4304 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4305 instead of read_register. Use builtin_type_void_data_ptr instead
4306 of builtin_type_void_func_ptr when extracting the address of the
4307 jmp_buf.
4308 (i386_extract_return_value, i386_store_return_value,
4309 i386_pseudo_register_read, i386_pseudo_register_write): Use
4310 register_size instead REGISTER_RAW_SIZE.
4311
edcf254d
AC
43122003-08-10 Andrew Cagney <cagney@redhat.com>
4313
4314 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4315 sprintf. Make "name" constant.
4316
26604a34
MK
43172003-08-10 Mark Kettenis <kettenis@gnu.org>
4318
192285c6
MK
4319 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4320 instead of frame_read_register.
f837910f
MK
4321 (i387_print_float_info): Use get_frame_register and
4322 get_frame_register_unsigned instead of frame_register_read.
192285c6 4323
f0925262
MK
4324 * i386fbsd-nat.c: Include "i386-tdep.h".
4325 (child_resume): Make `eflags' an ULONGEST. Use
4326 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4327 instead of register_read and register_write.
4328
a144416f
MK
4329 * i386bsd-nat.c (fetch_inferior_registers,
4330 store_inferior_registers): Don't use && at the end of a line.
4331 (_initialize_i386bsd_nat): Fix typo.
4332
fec74868
MK
4333 * frame.c (_initialize_frame): Add missing backslash.
4334
87232496
MK
4335 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4336 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4337 and supply_register instead of manipulating the register buffer
4338 directly.
4339
c9b9de0b
MK
4340 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4341 * config/i386/nm-i386sol2.h
4342 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4343
26604a34
MK
4344 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4345 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4346 instructions that GCC likes to mingle into the prologue. Fixes
4347 gdb/1253 and gdb/1255.
4348
25d29d70
AC
43492003-08-09 Andrew Cagney <cagney@redhat.com>
4350
4351 Fix GDB PR cli/926.
4352 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4353 * command.h (add_setshow_uinteger_cmd): Declare.
4354 * frame.c (set_backtrace_cmd): New function.
4355 (show_backtrace_cmd): New function.
4356 * frame.c (_initialize_frame): Replace "set/show
4357 backtrace-below-main" with "set/show backtrace past-main". Add
4358 command "set/show backtrace limit".
4359 (backtrace_past_main): Rename "backtrace_below_main".
4360 (backtrace_limit): New variable.
4361 (get_prev_frame): Update. Check the backtrace_limit.
4362
9ebf4acf
AC
43632003-08-09 Andrew Cagney <cagney@redhat.com>
4364
4365 * defs.h (xstrprintf): Declare.
4366 * utils.c (xstrprintf): New function.
4367 * breakpoint.c (insert_breakpoints): Replace sprintf and
4368 non-literal format strings, with xstrprintf and cleanups.
4369 (delete_breakpoint,breakpoint_re_set): Ditto.
4370 (commands_command, insert_breakpoints): Ditto.
4371 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4372 (break_at_finish_command_1): Ditto.
4373
3771659b
AC
43742003-08-09 Andrew Cagney <cagney@redhat.com>
4375
4376 * MAINTAINERS (language support): List Adam Fedor as Objective C
4377 maintainer.
4378
b4263afa
JB
43792003-08-08 J. Brobecker <brobecker@gnat.com>
4380
4381 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4382 are now multiarched.
4383
d84defb1
JB
43842003-08-08 J. Brobecker <brobecker@gnat.com>
4385
4386 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4387 longer necessary now that hppa64 is partially multiarch'ed.
4388
f786f615
AC
43892003-08-08 Andrew Cagney <cagney@redhat.com>
4390
4391 * interps.c (interp_set): Check for a NULL "old_interp".
4392
c938e9b0
L
43932003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4394
4395 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4396 (install-only): Support DESTDIR.
4397 (uninstall): Likewise.
4398 (install-gdbtk): Likewise.
4399
9a146a11
EZ
44002003-08-08 Elena Zannoni <ezannoni@redhat.com>
4401
4402 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4403 contains something meaningful at all times.
4404
4405Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4406
62599e99 4407 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4408
56296155
BC
4409Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4410
62599e99 4411 * MAINTAINERS (write after approval): Added self.
56296155 4412
9710e734
AC
44132003-08-07 Andrew Cagney <cagney@redhat.com>
4414
4415 * inferior.h (AT_SYMBOL): Define.
4416 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4417 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4418 * mips-tdep.c (mips_call_dummy_address): Delete function.
4419 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4420 set call_dummy_address.
4421
98b3ab73
AC
44222003-08-07 Andrew Cagney <cagney@redhat.com>
4423
4424 * language.c (op_error): Delete function.
4425 (binop_type_check): Delete function.
4426 * language.h (type_op_error, range_op_error): Delete macros.
4427 (op_error): Delete declaration.
4428
2fcf52f0
AC
44292003-08-07 Andrew Cagney <cagney@redhat.com>
4430
4431 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4432
abd4220e 44332003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4434
abd4220e 4435 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4436 (x86_64_push_arguments): Skip the red zone.
abd4220e 4437
9dd5f34f
AC
44382003-08-05 Andrew Cagney <cagney@redhat.com>
4439
4440 * reggroups.c (reggroup_next): Check for the final entry.
4441
e5e78edc
AC
44422003-08-04 Andrew Cagney <cagney@redhat.com>
4443
ab4e3d93
AC
4444 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4445 * cli/cli-script.c (define_command): Call query directly, instead
4446 of passing it a buffer.
4447 * ocd.c (ocd_error): Pass error a constant format string.
4448 * remote-mips.c (mips_error): Use fputs_filtered.
4449
1062ca82
AC
4450 * solib-svr4.c (_initialize_svr4_solib): Update
4451 register_gdbarch_data call.
4452 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4453
fcc1c85c
AC
4454 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4455 (register_gdbarch_data): Delete "free" parameter. Update
4456 comments.
4457 * gdbarch.h, gdbarch.c: Re-generate.
4458 * reggroups.c (_initialize_reggroup): Update.
4459 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4460 * frame-base.c (_initialize_frame_base): Update.
4461 * frame-unwind.c (_initialize_frame_unwind): Update.
4462 * user-regs.c (_initialize_user_regs): Update.
4463 * remote.c (_initialize_remote): Update.
4464 * regcache.c (_initialize_regcache): Update.
4465
116f06ea
AC
4466 * regcache.c (xfree_regcache_descr): Delete function.
4467 (_initialize_regcache): Update call to register_gdbarch_data.
4468 (init_regcache_descr, init_legacy_regcache_descr): Use
4469 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4470
e5e78edc
AC
4471 * remote.c (free_remote_state): Delete function.
4472 (_initialize_remote): Update register_gdbarch_data.
4473 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4474 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4475
6c7d17ba
AC
44762003-08-04 Andrew Cagney <cagney@redhat.com>
4477
4478 * reggroups.c (struct reggroup_el): Define.
4479 (struct reggroups): Delete field "nr_group". Replace array
4480 "group" with a "first" to "last" linked list.
4481 (reggroups_init): Update. Allocate using gdbarch's obstack.
4482 (reggroups_free): Delete function.
4483 (add_group): Update. Add "el" parameter.
4484 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4485 (default_groups): Update.
4486 (reggroup_next): Replace reggroups.
4487 (reggroups_dump): Update.
4488 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4489 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4490 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4491
89b7795b
DJ
44922003-08-04 Daniel Jacobowitz <drow@mvista.com>
4493
4494 * Makefile.in (tui-interp.o): Update dependencies.
4495
306d9ac5
DC
44962003-08-04 David Carlton <carlton@kealia.com>
4497
4498 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4499 to internal_error call.
4500 * source.c (forward_search_command): Add "%s" format argument.
4501 (reverse_search_command): Ditto.
4502 * top.c (quit_confirm): Ditto.
4503 * cli/cli-setshow.c (do_setshow_command): Ditto.
4504 * cp-valprint.c (cp_print_class_method): Replace
4505 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4506 (cp_print_class_member): Ditto.
4507 * event-top.c (command_line_handler): Ditto.
4508 * linux-proc.c (linux_info_proc_cmd): Ditto.
4509 * p-typeprint.c (pascal_type_print_base): Ditto.
4510 * p-valprint.c (pascal_object_print_class_method): Ditto.
4511 (pascal_object_print_class_member): Ditto.
4512 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4513 * remote.c (remote_cisco_section_offsets): Ditto.
4514 * top.c (command_line_input): Ditto.
4515 * utils.c (vwarning,error_stream,quit): Ditto.
4516 * valprint.c (print_floating,print_binary_chars)
4517 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4518
57bfe177
AC
45192003-08-04 Andrew Cagney <cagney@redhat.com>
4520
4521 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4522
e546b999
AC
45232003-08-02 Andrew Cagney <cagney@redhat.com>
4524
4525 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4526 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4527 amd64fbsd-nat.c.
4528
91092ee5
AC
45292003-08-02 Andrew Cagney <cagney@redhat.com>
4530
4531 * Makefile.in: Update all dependencies and definitions.
4532
889f28e2
AF
45332003-08-02 Adam Fedor <fedor@gnu.org>
4534
4535 * linespec.c (is_objc_method_format): New function
4536 (decode_line_1, locate_first_half): Use it.
4537 Fixes PR objc/1298
4538
880bc914
AC
45392003-08-01 Andrew Cagney <cagney@redhat.com>
4540
4541 * NEWS: Mention that m32r is multi-arch.
4542 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4543 * configure.tgt: Recognize m32r-*-*.
4544 * config/m32r/tm-m32r.h: Delete file.
4545 * config/m32r/m32r.mt: New file.
a8f4cde1 4546 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4547 gethostname succeeds, in order to avoid a compilation
4548 warning.
4549 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4550 compiler warning.
4551
19f59343
MS
45522003-08-01 Michael Snyder <msnyder@redhat.com>
4553
4554 * sh-tdep.c (sh_frame_align): New gdbarch method.
4555 (sh_gdbarch_init): Set up frame_align method.
4556
4e7d7511
MS
45572003-07-31 Michael Snyder <msnyder@redhat.com>
4558
4559 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4560 which is already covered by the new frames infrastructure.
4561
63022984
AC
45622003-07-31 Andrew Cagney <cagney@redhat.com>
4563
4564 * user-regs.c (struct user_reg): Add "next" link.
4565 (struct user_regs): Replace "user" with "first" and "last" links.
4566 (append_user_reg): Add pre-allocated "reg" parameter.
4567 (builtin_user_regs): Provide initial value for "last".
4568 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4569 (user_regs_init): Allocate memory from the gdbarch obstack.
4570 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4571 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4572 linked list.
4573 (usernum_to_user_reg): New function.
4574 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4575 (value_of_user_reg): Use usernum_to_user_reg.
4576 (user_regs_free): Delete function.
4577 (_initialize_user_regs): Update register_gdbarch_data call.
4578
7cf6e574
DJ
45792003-07-31 Daniel Jacobowitz <drow@mvista.com>
4580
4581 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4582
c48a845b
MS
45832003-07-30 Michael Snyder <msnyder@redhat.com>
4584
4e7d7511 4585 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4586 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4587 value_being_returned.
4588 * infcmd.c (print_return_value): Pass zero as struct_addr.
4589 * values.c (value_being_returned): If struct_addr is passed,
4590 use it instead of trying to recover it from the inferior.
4591
f0d8db19
KB
45922003-07-30 Kevin Buettner <kevinb@redhat.com>
4593
4594 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4595 the prologue analyzer won't need to attempt to extract the pc
4596 value from the woefully incomplete dummy frame.
4597 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4598 possible. Disable code which modifies the frame.
4599
e5c113a1
AC
46002003-07-28 Andrew Cagney <cagney@redhat.com>
4601
4602 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4603 to level 2.
4604 (annotate_breakpoints_table, annotate_record): Ditto.
4605 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4606 (annotate_field_name_end, annotate_field_value): Ditto.
4607 (annotate_field_end, annotate_frame_source_begin): Ditto.
4608 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4609 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4610 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4611 (annotate_frame_address_end, annotate_frame_address): Ditto.
4612 (annotate_frame_args, annotate_frame_end): Ditto.
4613 (annotate_frame_where, annotate_arg_begin): Ditto.
4614 (annotate_arg_name_end, annotate_arg_value): Ditto.
4615 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4616 (annotate_function_call, annotate_signal_name): Ditto.
4617 (annotate_signal_string, annotate_signal_name_end): Ditto.
4618 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4619 (annotate_value_begin, annotate_value_history_value): Ditto.
4620 (annotate_value_history_end, annotate_value_end): Ditto.
4621 (annotate_display_begin, annotate_display_number_end): Ditto.
4622 (annotate_display_format, annotate_display_expression): Ditto.
4623 (annotate_display_expression_end, annotate_display_value): Ditto.
4624 (annotate_display_end, annotate_array_section_begin): Ditto.
4625 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4626 (annotate_elt, annotate_array_section_end): Ditto.
4627
bb1db049
AC
46282003-07-28 Andrew Cagney <cagney@redhat.com>
4629
4630 * regcache.c (struct regcache_descr): Update comments on
4631 nr_raw_registers.
4632 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4633 sizeof_raw_register_valid_p.
4634 (init_regcache_descr): Set nr_raw_registers and
4635 sizeof_raw_register_valid_p before calling
4636 init_legacy_regcache_descr.
4637
20e6603c
AC
46382003-07-28 Andrew Cagney <cagney@redhat.com>
4639
4640 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4641 MOD NUM_REGS.
4642
db742940
DJ
46432003-07-28 Daniel Jacobowitz <drow@mvista.com>
4644
4645 * thread.c (info_threads_command): Use get_selected_frame ().
4646 Check that there is at least one non-sentinel frame.
4647
ce7f4371
SC
46482003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4649
4650 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4651 (m68hc11_pop_frame): Remove.
4652 (m68hc11_frame_saved_pc): Remove.
4653 (m68hc11_frame_chain): Remove.
4654 (m68hc11_frame_init_saved_regs): Remove.
4655 (m68hc11_init_extra_frame_info): Remove.
4656 (m68hc11_store_struct_return): Remove.
4657 (m68hc11_saved_pc_after_call): Remove.
4658
1ea653ae
SC
46592003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4660
4661 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4662 frame unwind information.
4663 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4664 and adapted for frame unwinding.
4665 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4666 (m68hc11_unwind_pc): New function.
4667 (m68hc11_frame_unwind_cache): New function to analyze frames.
4668 (m68hc11_frame_this_id): New function to create new frame struct.
4669 (m68hc11_frame_prev_register): New function to unwind a register from
4670 the frame.
4671 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4672 (m68hc11_frame_p): New function for the above.
4673 (m68hc11_frame_base_address): New function to return fp of frame.
4674 (m68hc11_frame_args_address): Update for frame.
4675 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4676 (m68hc11_unwind_sp): New function.
4677 (m68hc11_unwind_dummy_id): New function.
4678 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4679 calls.
4680
c8a7f6ac
SC
46812003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4682
4683 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4684 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4685 when we are beyond the current pc.
4686
3dc990bf
SC
46872003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4688
4689 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4690 from m68hc11_push_arguments.
4691 (m68hc11_push_arguments): Remove.
4692 (m68hc11_push_return_address): Remove.
4693 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4694 handlers; remove deprecated_extra_stack_alignment_needed.
4695
222e5d1d
AC
46962003-07-27 Andrew Cagney <cagney@redhat.com>
4697
4698 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4699 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4700 REAL_PC and not the pointer.
4701 * hppa-hpux-tdep.c: Include frame.h
4702
a7e9a47e
AC
47032003-07-27 Andrew Cagney <cagney@redhat.com>
4704
4705 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4706 GDB_MULTI_ACH_PARTIAL.
4707
7e3dd49e
AC
47082003-07-27 Andrew Cagney <cagney@redhat.com>
4709
4710 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4711 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4712 operator at start and not end of line.
4713 (decode_prologue): Ditto.
4714 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4715 frame_unwind_register_unsigned instead of
4716 frame_unwind_unsigned_register.
4717 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4718 read_register.
4719 (m32r_push_dummy_call): Use register_size instead of
4720 REGISTER_RAW_SIZE.
4721 (m32r_frame_sniffer): Replace m32r_frame_p.
4722 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4723 * m32r-rom.c (report_transfer_performance): Delete extern
4724 declaration.
4725 (m32r_load, m32r_upload_command): Use print_transfer_performance
4726 instead of report_transfer_performance.
4727 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4728 / add_show_from_set.
4729
0880807f
AC
47302003-07-26 Andrew Cagney <cagney@redhat.com>
4731
4732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4733 store_return_value and extract_struct_value_address.
4734
64ae9269
DJ
47352003-07-26 Daniel Jacobowitz <drow@mvista.com>
4736
4737 PR c++/1267
4738 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4739 NULL, default to the section containing PC.
4740
e286caf2
SC
47412003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4742
4743 * NEWS: Mention "regs" deprecated for m68hc11 too.
4744
4745 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4746 (m68hc11_print_register): New function to print out one register.
4747 (m68hc11_print_registers_info): New function to print registers.
4748 (show_regs): Deprecate and use the above.
4749 (m68hc11_gdbarch_init): Install the print_registers_info.
4750
705b278b
JJ
47512003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4752
4753 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4754 that we have a SIGTRAP before returning non-zero.
4755
63cd4198
EZ
47562003-07-23 Michal Ludvig <mludvig@suse.cz>
4757 Elena Zannoni <ezannoni@redhat.com>
4758
a8f4cde1 4759 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4760 find_function_start_sal() returns empty record.
4761
6926787d
AS
47622003-07-23 Andreas Schwab <schwab@suse.de>
4763
4764 * ia64-tdep.c (ia64_print_insn): New function.
4765 (ia64_gdbarch_init): Set print_insn to it.
4766 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4767 deprecated_tm_print_insn_info.
4768
708cc1b6
MS
47692003-07-22 Michael Snyder <msnyder@redhat.com>
4770
4771 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4772 handle 8-bit returns (long long).
4773 (h8300h_extract_return_value): Ditto.
4774 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4775
aebd7893
AC
47762003-07-22 Andrew Cagney <cagney@redhat.com>
4777
4778 * gdbarch.c Include "gdb_obstack.h".
4779 (struct gdbarch): Add an "obstack".
4780 (alloc_gdbarch_data): Allocate the gdbarch data using
4781 GDBARCH_OBSTACK_CALLOC.
4782 (free_gdbarch_data): Delete function.
4783 (gdbarch_obstack_zalloc): New function.
4784 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4785 Assert that the architecture is not initialized.
4786 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4787 vector from the obstack.
4788 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4789 architecture obstack.
4790 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4791 (set_gdbarch_data): Assert that the data is not initialized.
4792 (struct gdbarch_data): Delete member "free".
4793 (register_gdbarch_data): Do not initialize "free".
4794 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4795
153721e6
AC
47962003-07-22 Andrew Cagney <cagney@redhat.com>
4797
4798 * configure.in (build_warnings): Add -Wformat-nonliteral.
4799 * configure: Re-generate.
4800
c193f044 48012003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4802
4803 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4804
c3228f12
EZ
48052003-07-22 Elena Zannoni <ezannoni@redhat.com>
4806
4807 * findvar.c (read_var_value): Remove case for thread local storage
4808 variables. It is now entirely handled by the dwarf2 location
4809 expression code.
4810 * printcmd.c (address_info): Ditto.
4811 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4812 enumeration value.
4813 (struct symbol): Remove objfile field, which was used by
4814 LOC_THREAD_LOCAL_STATIC only.
4815 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4816 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4817 usage of objfile pointer.
4818 * dwarf2loc.c (locexpr_describe_location): Add case to handle
4819 thread local variables.
4820 Add include of objfiles.h.
4821 * dwarf2expr.c (execute_stack_op): Add comments about thread local
4822 storage variables.
4823 * Makefile.in (dwarf2loc.o): Update dependencies.
4824
aef9bcd2
AC
48252003-07-22 Andrew Cagney <cagney@redhat.com>
4826
4827 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4828 get_frame_base.
4829 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4830 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4831 (struct value): Add opaque declaration.
4832 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4833
d95a8903
AC
48342003-07-21 Andrew Cagney <cagney@redhat.com>
4835
4836 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4837 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4838
4db73d49
SC
48392003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4840
a8f4cde1 4841 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
4842 regcache_cooked_read_unsigned instead of read_register.
4843 (m68hc11_saved_pc_after_call): Likewise.
4844 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4845 instead of write_register.
4846 (m68hc11_register_type): New function.
4847 (m68hc11_register_virtual_type): Remove.
4848 (m68hc11_store_return_value): Convert to use the regcache.
4849 (m68hc11_extract_struct_value_address): Likewise.
4850 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4851 m68hc11_register_type; undeprecate store_return_value and
4852 extract_struct_value_address.
4853
ef2b8fcd
SC
48542003-07-20 Stephane Carrez <stcarrez@nerim.fr>
4855
4856 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4857 and translate to use regcache.
4858 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4859
625b0b97
AC
48602003-07-18 Andrew Cagney <cagney@redhat.com>
4861
4862 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4863 * gdbarch.h, gdbarch.c: Re-generate.
4864 * i386-tdep.c (i386_gdbarch_init): Do not set
4865 DWARF2_BUILD_FRAME_INFO.
4866 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4867 unconditionally.
4868 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4869 DWARF2_BUILD_FRAME_INFO.
4870
22b0d388
AC
48712003-07-18 Andrew Cagney <cagney@redhat.com>
4872
4873 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4874 * disasm.c (gdb_disassemble_info): Initilize di.arch.
4875
1ce5d6dd
AC
48762003-07-18 Andrew Cagney <cagney@redhat.com>
4877
4878 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4879 frame_unwind_address_in_block, instead of frame_pc_unwind.
4880 (dwarf2_frame_cache): Ditto.
4881
e6e5e94c
AC
48822003-07-18 Andrew Cagney <cagney@redhat.com>
4883
4884 * user-regs.h (struct gdbarch): Declare opaque.
4885 * ui-out.h (struct ui_file): Declare opaque.
4886 * dwarf2-frame.h (struct frame_info): Declare opaque.
4887
5483d879
KW
48882003-07-18 Kris Warkentin <kewarken@qnx.com>
4889
4890 * nto-procfs.c: Clean ARI hits. Change #include <..> to
4891 #include "...".
4892 (procfs_meminfo): Change strerror to safe_strerror.
4893 (procfs_can_run): Remove K&R badness.
4894
278a7cf7
MS
48952003-07-17 Michael Snyder <msnyder@redhat.com>
4896
4897 * remote-sim.c: Comment typo fix.
4898
606e3b82
AC
48992003-07-17 Andrew Cagney <cagney@redhat.com>
4900
4901 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
4902 configure.
4903 * sparc-tdep.c (sparc_intreg_size): Make non-static.
4904 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4905 GDB_MULTI_ARCH_PARTIAL.
4906
c43af07c
EZ
49072003-07-17 Elena Zannoni <ezannoni@redhat.com>
4908
4909 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4910 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
4911 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4912
3b85b0f1
TR
49132003-07-16 Theodore A. Roth <troth@openavr.org>
4914
4915 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4916 found.
4917 (avr_frame_unwind_cache): Don't unwind FP for main.
4918 Update a comment.
4919 Save the computed prev_sp.
4920 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 4921 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
4922 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4923
336d1bba
AC
49242003-07-16 Andrew Cagney <cagney@redhat.com>
4925
4926 * frame-base.h (frame_base_p_ftype): Delete definition.
4927 (frame_base_append_predicate): Delete declaration.
4928 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4929 (frame_unwind_append_predicate): Delete declaration.
4930 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4931 (append_predicate): Delete parameter "p".
4932 (frame_unwind_append_predicate): Delete function.
4933 (frame_unwind_append_sniffer): Update call to append_predicate.
4934 (frame_unwind_free): Delete function.
4935 (_initialize_frame_unwind): Pass NULL as "free" to
4936 register_gdbarch_data.
4937 (frame_unwind_init): Append the dummy_frame_sniffer.
4938 (frame_unwind_find_by_frame): Simplify.
4939 * frame-base.c (struct frame_base_table): Delete field "p".
4940 (append_predicate): Delete parameter "p".
4941 (frame_base_append_predicate): Delete function.
4942 (frame_base_append_sniffer): Update call to append_predicate.
4943 (frame_base_free): Delete function.
4944 (frame_base_find_by_frame): Simplify.
4945 (_initialize_frame_base): Pass NULL as "free" to
4946 register_gdbarch_data.
4947 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4948 (x86_64_sigtramp_frame_sniffer): Replace
4949 "x86_64_sigtramp_frame_p".
4950 (x86_64_init_abi): Set the frame unwind sniffers.
4951 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4952 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4953 (m68k_gdbarch_init): Set the frame unwind sniffers.
4954 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4955 "i386_sigtramp_frame_p".
4956 (i386_frame_sniffer): Replace "i386_frame_p".
4957 (i386_gdbarch_init): Set the frame unwind sniffers.
4958 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
4959 (avr_gdbarch_init): Set the frame unwind sniffers.
4960 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
4961 "alpha_sigtramp_frame_p"
4962 (alpha_heuristic_frame_sniffer): Replace
4963 "alpha_heuristic_frame_p".
4964 (alpha_gdbarch_init): Set the frame unwind sniffers.
4965 (alpha_dwarf2_init_abi): Ditto.
4966 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
4967 "alpha_debug_frame_p".
4968 (alpha_mdebug_frame_base_sniffer): Replace
4969 "alpha_mdebug_frame_base_p".
4970 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
4971 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
4972 (d10v_gdbarch_init): Set the frame unwind sniffer.
4973 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4974 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4975 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
4976 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
4977 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
4978 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
4979
48db5a3c
CV
49802003-07-16 Michael Snyder <msnyder@redhat.com>
4981
4982 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
4983 should go thru sh_dsp_register_sim_regno, else the dsp regs
4984 will not get the right values.
4985
49862003-07-16 Corinna Vinschen <vinschen@redhat.com>
4987
4988 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
4989 deprecated_store_floating by call to store_typed_floating.
4990 (sh_sh4_register_convert_to_raw): Substitute call to
4991 deprecated_extract_floating by call to extract_typed_floating.
4992
49932003-07-16 Corinna Vinschen <vinschen@redhat.com>
4994
4995 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
4996
49972003-07-16 Corinna Vinschen <vinschen@redhat.com>
4998
4999 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5000 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5001 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5002 as possible.
5003 (do_pseudo_register): Remove.
5004 (sh_push_dummy_code): New function.
5005 (sh64_store_struct_return): Rename from sh_store_struct_return.
5006 Only called for sh64 now.
5007 (sh_extract_struct_value_address): Regcache'ify.
5008 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5009 and accomodate new tasks.
5010 (sh64_push_return_address): Rename from sh_push_return_address.
5011 Only called for sh64 now.
5012 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5013 Regcache'ify.
5014 (sh3e_sh4_extract_return_value): Regcache'ify.
5015 (sh_default_store_return_value): Ditto.
5016 (sh3e_sh4_store_return_value): Ditto.
5017 (sh_default_register_byte): Remove.
5018 (sh_sh4_register_byte): Remove.
5019 (sh_default_register_raw_size): Remove.
5020 (sh_sh4_register_raw_size): Remove.
5021 (sh_register_virtual_size): Remove.
5022 (sh_sh3e_register_virtual_type): Remove.
5023 (sh_sh3e_register_type): New function.
5024 (sh_sh4_register_virtual_type): Remove.
5025 (sh_sh4_register_type): New function.
5026 (sh_default_register_virtual_type): Remove.
5027 (sh_default_register_type): New function.
5028 (do_fv_register_info): Add parameters to accomodate call from
5029 sh_print_registers_info.
5030 (do_dr_register_info): Ditto.
5031 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5032 Add parameters to accomodate call from sh_print_registers_info.
5033 (sh_do_fp_register): Ditto.
5034 (sh64_do_pseudo_register): Call do_dr_register_info,
5035 do_fv_register_info and sh_do_fp_register with default parameters.
5036 (sh_do_register): Add parameters to accomodate call from
5037 sh_print_registers_info.
5038 (sh_print_register): Ditto.
5039 (sh_print_registers_info): Rename from sh_do_registers_info.
5040 Add parameters to be used as gdbarch_print_registers_info
5041 implementation. Accomodate removed do_pseudo_register function
5042 pointer.
5043 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5044 function pointer. Call sh_print_register with default parameters.
5045 (sh64_do_registers_info): Call sh_print_registers_info instead of
5046 sh_do_registers_info.
5047 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5048 detection of deprecated vs. non-deprecated functionality.
5049 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5050 function pointer assignments by direct function calls.
5051
e8a89fe2
AC
50522003-07-15 Andrew Cagney <cagney@redhat.com>
5053
5054 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5055 (frame_register_unwind, create_new_frame): Ditto.
5056 (legacy_get_prev_frame, get_frame_type): Ditto.
5057 (get_frame_base_address): Use frame_base_find_by_frame.
5058 (get_frame_locals_address): Use frame_base_find_by_frame.
5059 (get_frame_args_address): Use frame_base_find_by_frame.
5060 * frame-base.h (frame_base_sniffer_ftype): Declare.
5061 (frame_base_append_sniffer): Declare.
5062 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5063 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5064 (frame_base_append_sniffer): New function.
5065 (frame_base_append_predicate): Add a NULL sniffer.
5066 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5067 (struct frame_base_table): Add "sniffer".
5068 (frame_base_free): Free the "sniffer" table.
5069 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5070 (frame_unwind_append_sniffer): Declare.
5071 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5072 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5073 (struct frame_unwind_table): Add "sniffer", delete "middle".
5074 (append_predicate): Add "sniffer" parameter, append the sniffer.
5075 (frame_unwind_init): Update append_predicate call.
5076 (frame_unwind_append_sniffer): New function.
5077 (frame_unwind_append_predicate): Update append_predicate call.
5078 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5079
0714963c
AC
50802003-07-15 Andrew Cagney <cagney@redhat.com>
5081
5082 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5083 before code inhibiting repeated unwind attempts. Add to
5084 commentary on that test's problems.
5085 * blockframe.c (inside_main_func): Look for "main" in the minimal
5086 symbol table.
5087 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5088 identical.
5089
d9170e22
AC
50902003-07-15 Andrew Cagney <cagney@redhat.com>
5091
5092 * complaints.c (struct explanation): Define.
5093 (struct complaints): Change type of "explanation" to "struct
5094 explanation".
5095 (symfile_explanations): Convert to a "struct explanation" table.
5096 (vcomplaint): Update.
5097
eba29c8c
ML
50982003-07-15 Michal Ludvig <mludvig@suse.cz>
5099
5100 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5101 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5102 x86_64_linux_(fill,supply)_gregset functions.
5103 * x86-64-linux-tdep.c (USER_*): New defines.
5104 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5105 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5106 New functions.
5107 (fetch_core_registers): Ditto.
5108 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5109 * x86-64-linux-tdep.h: New file.
5110 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5111 and core-regset.o.
5112 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5113
68cc0bfb
MK
51142003-07-13 Mark Kettenis <kettenis@gnu.org>
5115
88a115f7
MK
5116 * x86-64-tdep.c (x86_64_store_return_value): Use
5117 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5118
68cc0bfb
MK
5119 * configure.host: Add x86_64-*-freebsd*.
5120 * configure.tgt: Add x86_64-*-freebsd*.
5121 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5122 * amd64fbsd-nat.c: New file.
5123 * amd64fbsd-tdep.c: New file.
5124 * config/i386/nm-fbsd64.h: New file.
5125 * config/i386/fbsd64.mh: New file.
5126 * config/i386/fbsd64.mt: New file.
5127
138e7be5
MK
51282003-07-11 Mark Kettenis <kettenis@gnu.org>
5129
5130 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5131 `sc_regs_offset' and `sc_fpregs_offset'.
5132 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5133 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5134 (alpha_sigtramp_register_address): Rewrite to use new members of
5135 `struct gdbarch_tdep'.
5136 (alpha_gdbarch_init): Initialize new members of struct
5137 gdbarch_tdep'.
5138 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5139 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5140 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5141 (alphafbsd_pc_in_sigtramp): Implement.
5142 (alphafbsd_sigtramp_offset): New function.
5143 (alphafbsd_sigcontext_addr): New function.
5144 (alphafbsd_init_abi): Initialize signal trampoline related members
5145 of `struct gdbarch_tdep'.
5146 (_initialize_alphafbsd_tdep): Add prototype.
5147
95303a68
TR
51482003-07-11 Theodore A. Roth <troth@openavr.org>
5149
ba292e4c
TR
5150 * Makefile.in (install-only): Quote sed expression when generating
5151 transformed_name.
95303a68 5152
6896c0c7
RH
51532003-07-11 Richard Henderson <rth@redhat.com>
5154
5155 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5156 * dwarf2-frame.c: Include complaints.h.
5157 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5158 variable initialization; return NULL on error.
5159 (decode_frame_entry): New.
5160
8edd5d01
AC
51612003-07-11 Andrew Cagney <cagney@redhat.com>
5162
c4a09524
AC
5163 * frame.h (frame_address_in_block): Delete declaration.
5164 * blockframe.c (frame_address_in_block): Delete function.
5165 (get_frame_block): Use get_frame_address_in_block.
5166 (block_innermost_frame): Ditto.
5167 * stack.c (print_frame, backtrace_command_1): Ditto.
5168
8edd5d01
AC
5169 * frame.h (get_frame_address_in_block): Declare.
5170 (frame_unwind_address_in_block): Declare.
5171 * frame.c (frame_unwind_address_in_block): New function.
5172 (get_frame_address_in_block): New function.
5173
f7968451
AC
51742003-07-10 Andrew Cagney <cagney@redhat.com>
5175
5176 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5177 pre-default. Note: re-generate has no effect.
a8f4cde1 5178
ae99b398
AC
51792003-07-10 Andrew Cagney <cagney@redhat.com>
5180
5181 * gdbarch.sh: When a variable, but not a function, compare against
5182 0. Fix problem in previous patch.
5183 * gdbarch.c: Re-generate.
a8f4cde1 5184
956ac328
AC
51852003-07-10 Andrew Cagney <cagney@redhat.com>
5186
5187 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5188 functions against NULL, not 0.
5189 * gdbarch.c: Re-generate.
a8f4cde1 5190
287c3240
FF
51912003-07-10 Fred Fish <fnf@ninemoons.com>
5192
5193 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5194 null string instead of a null pointer.
5195 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5196
32f63c4b
MS
51972003-07-09 Michael Snyder <msnyder@redhat.com>
5198
5199 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5200
402ecd56
MK
52012003-07-09 Mark Kettenis <kettenis@gnu.org>
5202
5203 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5204 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5205 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5206 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5207 * x86-64-tdep.c: ... from here.
5208
c481dac7
AS
52092003-07-09 Andreas Schwab <schwab@suse.de>
5210
5211 * m68k-tdep.h (enum struct_return): Define.
5212 (struct gdbarch_tdep): Add struct_return.
5213 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5214 bytes are padded to the right, not to the left. Pass struct value
5215 address in register %a1, not on stack.
5216 (m68k_use_struct_convention): New function.
5217 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5218 struct_return in tdep to pcc_struct_return.
5219 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5220 reg_struct_return.
5221
a8f4cde1 52222003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5223
a8f4cde1 5224 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5225
96a4ee76
AC
52262003-07-09 Andrew Cagney <cagney@redhat.com>
5227
5228 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5229 Add comments about the checks.
5230
1517c6d1
AC
52312003-07-08 Andrew Cagney <cagney@redhat.com>
5232
5233 * Makefile.in: Make dependency section headers consistent.
5234 (config_h): Move to $BUILD headers section.
5235 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5236 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5237 (ada-exp.tab.c): Move to YACC/LEX section.
5238 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5239 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5240
dc5dd1eb
KW
52412003-07-08 Kris Warkentin <kewarken@qnx.com>
5242
5243 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5244 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5245 of strerror with safe_strerror, use ISO C function definitions,
5246 and replace instances of sprintf with snprintf.
dc5dd1eb 5247
612dde91
AC
52482003-07-07 Andrew Cagney <cagney@redhat.com>
5249
5250 * frame.c (get_prev_frame): Enable check for identical frames.
5251 Update comments. Update error messages.
5252
492c11d3
JB
52532003-07-07 Joel Brobecker <brobecker@gnat.com>
5254
5255 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5256
376a5a49
JB
52572003-07-07 Joel Brobecker <brobecker@gnat.com>
5258
5259 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5260 sort_symtab_syms, no longer necessary.
5261
22b4a9ad
JB
52622003-07-07 Joel Brobecker <brobecker@gnat.com>
5263
5264 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5265
5bbcb741
JB
52662003-07-07 Joel Brobecker <brobecker@gnat.com>
5267
5268 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5269 (mips_register_byte): Likewise.
5270
c139e7d9
DJ
52712003-07-07 Daniel Jacobowitz <drow@mvista.com>
5272
5273 * Makefile.in (sparc_tdep_h): New.
5274 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5275 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5276 * sparc-linux-nat.c: Include "sparc-tdep.h".
5277 * sparc-nat.c: Likewise.
5278 * sparc-tdep.c: Likewise.
5279 * sparc64nbsd-nat.c: Likewise.
5280 * sparcnbsd-nat.c: Likewise.
5281 * sparcnbsd-tdep.c: Likewise.
5282 * sparc-tdep.h: New file.
5283 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5284 and sparc_npc_regnum.
5285
fd8f87c5
DJ
52862003-07-07 Daniel Jacobowitz <drow@mvista.com>
5287
5288 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5289 (mips_linux_cannot_store_register): List supported instead of
5290 unsupported registers.
5291
13adf674
DJ
52922003-07-07 Daniel Jacobowitz <drow@mvista.com>
5293
5294 * disasm.c (dump_insns): Separate instructions from addresses.
5295
8de307e0
AS
52962003-07-07 Andreas Schwab <schwab@suse.de>
5297
5298 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5299 dependencies.
5300 * m68k-tdep.c (NUM_FREGS): Delete.
5301 (SIG_PC_FP_OFFSET): Delete.
5302 (TARGET_M68K): Delete.
5303 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5304 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5305 P_MOVEL_SP, P_MOVEML_SP): Define.
5306 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5307 P_TRAP): Delete.
5308 (m68k_register_raw_size): Delete.
5309 (m68k_register_virtual_size): Delete.
5310 (m68k_register_type): Renamed from m68k_register_virtual_type and
5311 add gdbarch argument.
5312 (m68k_store_struct_return): Delete.
5313 (m68k_deprecated_extract_return_value): Delete.
5314 (m68k_deprecated_extract_struct_value_address): Delete.
5315 (m68k_frame_chain): Delete.
5316 (m68k_frame_saved_pc): Delete.
5317 (m68k_fix_call_dummy): Delete.
5318 (m68k_push_dummy_frame): Delete.
5319 (m68k_pop_frame): Delete.
5320 (m68k_extract_return_value): New function.
5321 (m68k_store_return_value): Rewrite using regcache.
5322 (m68k_extract_struct_value_address): Rewrite using regcache.
5323 (m68k_push_dummy_call): New function.
5324 (struct m68k_frame_cache): Define.
5325 (m68k_alloc_frame_cache): New function.
5326 (m68k_analyze_frame_setup): New function.
5327 (m68k_analyze_register_saves): New function.
5328 (m68k_analyze_prologue): New function.
5329 (m68k_skip_prologue): Rewrite using above functions.
5330 (m68k_unwind_pc): New function.
5331 (m68k_frame_cache): New function.
5332 (m68k_frame_this_id): New function.
5333 (m68k_frame_prev_register): New function.
5334 (m68k_frame_unwind): New variable.
5335 (m68k_frame_p): New function.
5336 (m68k_sigtramp_frame_cache): New function.
5337 (m68k_sigtramp_frame_this_id): New function.
5338 (m68k_sigtramp_frame_prev_register): New function.
5339 (m68k_sigtramp_frame_unwind): New variable.
5340 (m68k_sigtramp_frame_p): New function.
5341 (m68k_frame_base_address): New function.
5342 (m68k_frame_base): New function.
5343 (m68k_unwind_dummy_id): New function.
5344 (fill_gregset): Use regcache_collect.
5345 (fill_fpregset): Likewise.
5346 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5347 defined.
5348 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5349 deprecated_init_frame_pc, deprecated_store_struct_return,
5350 deprecated_extract_return_value, deprecated_store_return_value,
5351 deprecated_frame_chain, deprecated_frame_saved_pc,
5352 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5353 deprecated_register_virtual_size,
5354 deprecated_max_register_raw_size,
5355 deprecated_max_register_virtual_size,
5356 deprecated_register_virtual_type, deprecated_register_size,
5357 deprecated_register_byte, deprecated_register_bytes,
5358 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5359 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5360 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5361 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5362 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5363 deprecated_push_dummy_frame, deprecated_pop_frame,
5364 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5365 only if SYSCALL_TRAP is defined. Set extract_return_value,
5366 store_return_value, extract_struct_value_address, register_type,
5367 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5368 predicates.
5369 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5370 M68K_MAX_REGISTER_SIZE): Define.
5371 (struct m68k_sigtramp_info): Define.
5372 (struct gdbarch_tdep): Add get_sigtramp_info.
5373 * m68klinux-nat.c (fetch_register): Use register_size instead of
5374 REGISTER_RAW_SIZE. Don't put assignment in if.
5375 (store_register): Likewise.
5376 (fetch_inferior_registers): Likewise.
5377 (store_inferior_registers): Likewise.
5378 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5379 (m68k_linux_frame_saved_pc): Delete.
5380 (m68k_linux_sigcontext_reg_offset,
5381 m68k_linux_ucontext_reg_offset): Define.
5382 (m68k_linux_get_sigtramp_info): New function.
5383 (m68k_linux_extract_return_value): Rewrite using regcache.
5384 (m68k_linux_store_return_value): Likewise.
5385 (m68k_linux_extract_struct_value_address): Likewise.
5386 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5387 Don't set deprecated_frame_saved_pc,
5388 deprecated_extract_return_value, deprecated_store_return_value,
5389 deprecated_extract_struct_value_address. Set
5390 extract_return_value, store_return_value,
5391 extract_struct_value_address.
5392
eb8bc282
AC
53932003-07-07 Andrew Cagney <cagney@redhat.com>
5394
5395 * expprint.c: Include "user-regs.h" instead of "frame.h".
5396 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5397 frame_map_regnum_to_name.
5398 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5399 (frame_map_name_to_regnum): Simplify, call
5400 user_reg_map_name_to_regnum.
5401 (frame_map_regnum_to_name): Simplify, call
5402 user_reg_map_regnum_to_name.
5403 (frame_register_unwind): Update.
5404 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5405 (_initialize_frame_reg): Call user_reg_add_builtin.
5406 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5407 (value_of_register): Use value_of_user_reg.
5408 * eval.c (evaluate_subexp_standard): Update.
5409 * parse.c (write_dollar_variable): Update.
5410 * d10v-tdep.c (d10v_print_registers_info): Update.
5411 * infcmd.c (registers_info): Update.
5412 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5413 (builtin_regs_h): Delete macro.
5414 (user_regs_h): Define.
5415 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5416 (builtin-regs.o): Delete target.
5417 (user-regs.o): Specify dependencies.
5418 (expprint.o): Update dependencies.
5419 (findvar.o): Update dependencies.
5420 (frame.o): Update dependencies.
5421 (std-regs.o): Update dependencies.
5422
9f476a01
CF
54232003-07-06 Christopher Faylor <cgf@redhat.com>
5424
5425 * win32-nat.c (solib_symbols_add): Use one variable for all section
5426 address stuff. Pass variable rather than address of variable to
5427 safe_symbol_file_add.
5428
a731b831
AS
54292003-07-06 Andreas Schwab <schwab@suse.de>
5430
5431 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5432
9f83329d
JB
54332003-07-04 Joel Brobecker <brobecker@gnat.com>
5434
5435 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5436
27e28cc5
KW
54372003-07-04 Kris Warkentin <kewarken@qnx.com>
5438
5439 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5440
54412003-07-04 Kris Warkentin <kewarken@qnx.com>
5442
5443 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5444 * config/i386/nto.mh: New file.
5445 * config/i386/nm-nto.h: New file.
5446 * configure.host: Add i[3456]86-*-nto*.
5447
100f2e98
JB
54482003-07-03 Joel Brobecker <brobecker@gnat.com>
5449
5450 * remote-vx.c (vx_add_symbols): Fix compilation error.
5451
e23457df
AC
54522003-07-03 Andrew Cagney <cagney@redhat.com>
5453
5454 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5455 * gdbarch.h, gdbarch.c: Re-generate.
5456 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5457 (legacy_register_name): Declare.
5458 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5459 (REGISTER_NAME): Define.
5460 * sparc-tdep.c (legacy_register_name): New function.
5461 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5462 (REGISTER_NAME): Define.
5463 (hppa64_register_name): Declare.
5464 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5465 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5466 (hppa64_register_name): New function.
5467 (hppa_register_name): New function.
5468 * arch-utils.c (legacy_register_name): Delete.
5469 * arch-utils.h (legacy_register_name): Delete.
5470
38caaeec
DJ
54712003-07-03 Daniel Jacobowitz <drow@mvista.com>
5472
5473 * cli/cli-interp.c (cli_interpreter_resume): Update the
5474 cli_uiout's stream to gdb_stdout.
5475
dadd712e
AC
54762003-07-03 Andrew Cagney <cagney@redhat.com>
5477
5478 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5479 predicate.
5480 * gdbarch.h, gdbarch.c: Re-generate.
5481 * regcache.c (init_regcache_descr): Use legacy code when either
5482 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5483
c7f1390e
DJ
54842003-07-02 Daniel Jacobowitz <drow@mvista.com>
5485
5486 * NEWS: Move "set logging" entry into GDB 6.0 section.
5487
4bc8c588
JB
54882003-07-02 Jim Blandy <jimb@redhat.com>
5489
a9dd42f1
JB
5490 * s390-tdep.c (struct frame_extra_info): new member:
5491 'stack_bought_valid'.
5492 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5493 initialize fextra_info->stack_bought.
5494 (s390_frameless_function_invocation): Don't trust the value of
5495 fextra_info_ptr->stack_bought unless
5496 fextra_info->stack_bought_valid is set.
5497
4bc8c588
JB
5498 New S390 prologue analyzer.
5499 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5500 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5501 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5502 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5503 compute_x_addr, s390_on_stack, s390_store,
5504 s390_get_signal_frame_info): New functions.
5505 (S390_NUM_SPILL_SLOTS): New macro.
5506 (s390_get_frame_info): Rewritten.
5507 (is_arg_reg): Deleted.
5508
5509 Break out the decoding of S/390 instructions into separate
5510 functions, to make it more legible, and easier to check
5511 against the spec.
5512 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5513 is_rx, is_rxe): New functions.
5514 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5515 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5516 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5517 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5518 enums for opcode values. (Is this an improvement?)
5519
fd13a04a
AC
55202003-07-02 Andrew Cagney <cagney@redhat.com>
5521
5522 * i386-tdep.c: Revert change committed as part of trad-frame code
5523 below.
5524
3f8091c1
DJ
55252003-07-02 Daniel Jacobowitz <drow@mvista.com>
5526
5527 * breakpoint.c (insert_catchpoint): Make static.
5528
8dd5115e
AS
55292003-07-02 Andreas Schwab <schwab@suse.de>
5530
5531 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5532 former ia64_push_arguments and ia64_push_return_address, and use
5533 regcache functions instead of read/write_register.
5534 (ia64_gdbarch_init): Set push_dummy_call instead of
5535 deprecated_push_arguments and deprecated_push_return_address.
5536
a2229c23
AJ
55372003-07-01 Andreas Jaeger <aj@suse.de>
5538
5539 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5540 before the call.
5541 Set %rax only to number of SSE registers used.
5542
3b3850e8
AC
55432003-07-01 Andrew Cagney <cagney@redhat.com>
5544
5545 * trad-frame.h: Update comments, a -1 .addr is reserved.
5546 (trad_frame_value_p, trad_frame_addr_p): Declare.
5547 (trad_frame_reg_p): Declare.
5548 (trad_frame_set_value): Rename trad_frame_register_value.
5549 (trad_frame_set_unknown): Declare.
5550 * trad-frame.c (trad_frame_realreg_p): New function.
5551 (trad_frame_addr_p, trad_frame_value_p): New function.
5552 (trad_frame_set_unknown): New function.
5553 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5554 (trad_frame_prev_register): Use trad_frame_realreg_p,
5555 trad_frame_addr_p and trad_frame_value_p.
5556 (trad_frame_set_value): Rename trad_frame_register_value.
5557 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5558 and trad_frame_set_value.
a2229c23 5559
4d819d0e
JB
55602003-06-30 Jim Blandy <jimb@redhat.com>
5561
5562 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5563 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5564 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5565 for 16 registers, and then 32 more bytes.
5566 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5567 New macros.
5568 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5569 Move up in the file, since it's now used by is_simple_arg.
5570 (is_simple_arg): Don't assume registers are four bytes long.
5571 Exclude all double arguments. Extended floats are not simple
5572 args.
5573 (is_power_of_two): New function.
5574 (pass_by_copy_ref): Call is_power_of_two, and check that the
5575 length fits in a register, rather than listing all the acceptable
5576 sizes. Extended floats are not passed by reference.
5577 (s390_push_arguments): Don't assume registers are four bytes long.
5578 Reserve an argument register to point to the buffer for structures
5579 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5580 S390_STACK_FRAME_OVERHEAD.
5581
1ad828f1
AS
55822003-06-30 Andreas Schwab <schwab@suse.de>
5583
5584 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5585 format error message.
5586
39b00981
JB
55872003-06-30 Joel Brobecker <brobecker@gnat.com>
5588
5589 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5590
b2a7f303
DC
55912003-06-30 David Carlton <carlton@kealia.com>
5592
5593 Band-aid for PR c++/1245.
5594 * Makefile.in (cp-support.o): Depend on complaints_h.
5595 * cp-support.c: Include complaints.h. Add declaration for
5596 find_last_component.
5597 (cp_find_first_component): Separate code into
5598 cp_find_first_component_aux.
5599 (cp_find_first_component_aux): Call demangled_name_complaint.
5600 (demangled_name_complaint): New.
5601
a257b5bb
AC
56022003-06-30 Andrew Cagney <cagney@redhat.com>
5603
5604 * remote.c (remote_write_bytes): Explicitly compute and then use
5605 the payload size. Update comments to reflect. Fixes problem of
5606 GDB not sending small packets as found by Fred Fish.
5607
0a2cfde4
AC
56082003-06-30 Andrew Cagney <cagney@redhat.com>
5609
5610 * remote.c (remote_async_wait): Fix -Wformat problem.
5611
3fcb8548
AC
56122003-06-29 Andrew Cagney <cagney@redhat.com>
5613
5614 * remote.c (remote_wait): Call error, and not warning, when the
5615 packet is corrupt.
5616 (remote_async_wait): Ditto.
5617
9f9970a3
DJ
56182003-06-29 Daniel Jacobowitz <drow@mvista.com>
5619
5620 * sparc-tdep.c (sparc_y_regnum): Make external again.
5621
83a8ccca
DJ
56222003-06-29 Daniel Jacobowitz <drow@mvista.com>
5623
5624 * cli/cli-logging.c (pop_output_files): Add void to function
5625 definition.
5626
d2cf594a
AC
56272003-06-29 Andrew Cagney <cagney@redhat.com>
5628
5629 * frame.c (frame_register_unwind): Use unsigned char when dumping
5630 the buffer contents.
5631
0fac0b41
DJ
56322003-06-28 Daniel Jacobowitz <drow@mvista.com>
5633
5634 * cli/cli-logging.c: New file.
5635 * cli-out.c (struct ui_out_data): Add original_stream.
5636 (cli_redirect): New function.
5637 (cli_ui_out_impl): Add cli_redirect.
5638 (cli_out_new): Initialize original_stream.
5639 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5640 (uo_redirect, ui_out_redirect): New.
5641 * ui-out.h (struct ui_out_impl): Add redirect member.
5642 (redirect_ftype): New.
5643 (ui_out_redirect): Add prototype.
5644 * Makefile.in: Add rules for cli-logging.c.
5645 * NEWS: Mention "set logging".
5646
88a07d7c
EZ
56472003-06-27 Elena Zannoni <ezannoni@redhat.com>
5648
5649 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5650
4eb58876
AC
56512003-06-27 Andrew Cagney <cagney@redhat.com>
5652
5653 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5654 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5655 * avr-tdep.c (avr_call_dummy_address): Delete function.
5656 (avr_gdbarch_init): Do not set call_dummy_address.
5657
1549f619
EZ
56582003-06-27 Elena Zannoni <ezannoni@redhat.com>
5659
5660 * symfile.c (syms_from_objfile): Move variables to inner block.
5661 Move the checks for the non-mainline case a bit earlier to avoid
5662 doing some useless computations.
5663
3cb3398d
EZ
56642003-06-27 Elena Zannoni <ezannoni@redhat.com>
5665
5666 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5667
3799ccc6
EZ
56682003-06-26 Elena Zannoni <ezannoni@redhat.com>
5669
5670 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5671 sections.
5672
ce1f6491
MC
56732003-06-26 Michael Chastain <mec@shout.net>
5674
5675 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5676 gdb/testsuite/gdb.c++/pr-1210.exp.
5677
d958dfd0
AC
56782003-06-26 Andrew Cagney <cagney@redhat.com>
5679
5680 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5681 altivec_expression.h and altivec_registers.h.
5682
d31431ed
AC
56832003-06-26 Andrew Cagney <cagney@redhat.com>
5684
5685 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5686 info->mach when MIPS16. Patch suggested by Fred Fish.
5687
714b1282
AC
56882003-06-26 Andrew Cagney <cagney@redhat.com>
5689
5690 * utils.c (internal_vproblem): Print the problem to a reason
5691 buffer and then pass to query. Make the msg variable more local.
5692
42efa47a
AC
56932003-06-26 Andrew Cagney <cagney@redhat.com>
5694
5695 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5696 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5697 * gdbarch.h, gdbarch.c: Re-generate.
5698 * frame-base.c (default_frame_args_address): Update. Use
5699 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5700 not available.
5701 (default_frame_locals_address): Ditto for
5702 DEPRECATED_FRAME_LOCALS_ADDRESS.
5703 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5704 (vax_frame_num_args): Update.
5705 (vax_gdbarch_init): Update.
5706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5708 * mcore-tdep.c (mcore_gdbarch_init): Update.
5709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5710 * ia64-tdep.c (ia64_gdbarch_init): Update.
5711 * symtab.h (address_class): Update comments.
5712 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5713 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5714 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5715 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5716 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5717 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5718 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5719 * alpha-mdebug-tdep.c: Update.
5720 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5721
8ffd9b1b
AJ
57222003-06-26 Andreas Jaeger <aj@suse.de>
5723
5724 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5725 of SSE registers so that varargs functions work. Rework handling
5726 of passing arguments on the stack.
5727 (x86_64_store_return_value): Return double and float values in SSE
5728 register.
5729
e8ac10a6
MC
57302003-06-24 Michael Chastain <mec@shout.net>
5731
5732 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5733 the "constructor breakpoints ignored" bug.
5734
986af8e6
DC
57352003-06-25 David Carlton <carlton@kealia.com>
5736
5737 * MAINTAINERS: Update e-mail address.
5738
d64558a5
JB
57392003-06-24 Jim Blandy <jimb@redhat.com>
5740
e538d2d7
JB
5741 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5742
02631ec0
JB
5743 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5744 function.
5745 (ppc_linux_init_abi): Register it as the
5746 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5747
e716d87a
JB
5748 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5749 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5750 method.
5751
d64558a5
JB
5752 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5753 (ppc64_standard_linkage_target): Use it.
5754
449a5da4
AC
57552003-06-23 Andrew Cagney <cagney@redhat.com>
5756
5757 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5758 for 0 "int0" and 4 "int32" sized registers.
5759 * gdbtypes.c (builtin_type_int0): Define.
5760 (build_gdbtypes): Initialize builtin_type_int0.
5761 * gdbtypes.h (builtin_type_int0): Declare.
5762
b2a02dda
SC
57632003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5764
5765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5766 as characters are unsigned.
5767
fba3138e
DJ
57682003-06-22 Daniel Jacobowitz <drow@mvista.com>
5769
5770 PR gdb/1179
5771 * dwarfread.c (struct_type): Skip static fields without crashing.
5772
f6c8180b
AC
57732003-06-22 Andrew Cagney <cagney@redhat.com>
5774
5775 GDB 6.0 branch created.
f2c06f52
AC
5776 * README: Update.
5777 * PROBLEMS: Update. Empty.
5778 * NEWS: Update.
f6c8180b 5779
ae822768
DJ
57802003-06-22 Daniel Jacobowitz <drow@mvista.com>
5781
5782 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5783 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5784
261de166
AC
57852003-06-22 Andrew Cagney <cagney@redhat.com>
5786
5787 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5788 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5789 Velikov.
5790
30e94205
DJ
57912003-06-22 Daniel Jacobowitz <drow@mvista.com>
5792
5793 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5794 compilers.
5795
9e14d721
DJ
57962003-06-21 Daniel Jacobowitz <drow@mvista.com>
5797
5798 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5799 argument of val_print.
5800 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5801 to the address argument of baseclass_offset or target_read_memory.
5802 Do add it to the argument of cp_print_value_fields.
5803
a4b8ebc8
AC
58042003-06-21 Andrew Cagney <cagney@redhat.com>
5805
5806 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5807 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5808 instead of 0..NUM_REGS.
5809 (mips_register_reggroup_p): New function.
5810 (mips_pseudo_register_write): New function.
5811 (mips_pseudo_register_read): New function.
5812 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5813 based on the register's type.
5814 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5815 cooked.
5816 (mips_get_saved_register): Simplify. Assert that REGNO is a
5817 pseudo / cooked.
5818 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
5819 (mips_register_type): Replace mips_register_virtual_type. Map
5820 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
5821 when available.
5822 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
5823 that the register is cooked / virtual.
5824 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5825 Only get the extra info when needed.
5826 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5827 (mips32_heuristic_proc_desc): Fetch the cooked register.
5828 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5829 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5830 (mips_print_register): Use gdbarch_register_type, instead of
5831 REGISTER_VIRTUAL_TYPE.
5832 (print_gp_register_row): Use gdbarch_register_type, instead of
5833 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
5834 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5835 Print the pseudo / cooked registers.
5836 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5837 Print the pseudo / cooked registers.
5838 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
5839 REG_NUM is pseudo / cooked.
5840 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5841 (mips_n32n64_xfer_return_value): Ditto.
5842 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5843 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5844 (mips_register_sim_regno): New function.
5845 (mips_gdbarch_init): Set deprecated_register_byte,
5846 register_group_p, pseudo_register_write, pseudo_register_read,
5847 register_sim_regno, and num_pseudo_regs. Set register_type,
5848 instead of register_virtual_type.
5849 * Makefile.in (mips-tdep.o): Update dependencies.
5850 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5851 REGISTER_VIRTUAL_TYPE.
5852 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5853 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5854 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5855 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5856 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5857
325ed089
DJ
58582003-06-21 Daniel Jacobowitz <drow@mvista.com>
5859
5860 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5861 * cli/cli-cmds.c: Include "gdb_vfork.h".
5862 (shell_escape): Use vfork.
5863
f0e7d0e8
AC
58642003-06-21 Andrew Cagney <cagney@redhat.com>
5865
c57bb9fa
AC
5866 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5867 32 bit floating-point register saves.
5868
6e51443a
AC
5869 * frame.h (deprecated_unwind_get_saved_register): Delete.
5870 * frame.c (deprecated_unwind_get_saved_register): Delete function.
5871 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5872 and deprecated_get_next_frame_hack instead of
5873 deprecated_unwind_get_saved_register.
5874
ed183c7c
AC
5875 * mips-tdep.c (mips_dump_tdep): Do not print
5876 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5877
f0e7d0e8
AC
5878 * frame.c (get_frame_register): New function.
5879 (frame_unwind_register_signed): New function.
5880 (get_frame_register_signed): New function.
5881 (frame_unwind_register_unsigned): New function.
5882 (get_frame_register_unsigned): New function.
5883 * frame.h: Add comments on naming schema.
5884 (get_frame_register, frame_unwind_register_signed): Declare.
5885 (get_frame_register_signed, get_frame_register_signed): Declare.
5886 (frame_unwind_register_unsigned): Declare.
5887 (get_frame_register_unsigned): Declare.
5888
2224d941
TR
58892003-06-20 Theodore A. Roth <troth@openavr.org>
5890
5891 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5892
8619218d
TR
58932003-06-20 Theodore A. Roth <troth@openavr.org>
5894
5895 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5896 (avr_read_sp): Ditto.
5897
0b1b50c0
DJ
58982003-06-20 Daniel Jacobowitz <drow@mvista.com>
5899
5900 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5901 * config/arm/nm-linux.h: Likewise.
5902 * config/arm/tm-linux.h: Likewise.
5903 * config/ia64/nm-linux.h: Likewise.
5904 * config/ia64/tm-ia64.h: Likewise.
5905 * config/s390/tm-linux.h: Likewise.
5906 * config/s390/tm-s390.h: Likewise.
5907 * s390-nat.c: Likewise.
5908 * s390-tdep.c: Likewise.
5909
5910 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5911 * config/ia64/linux.mt: Likewise.
5912 * config/m68k/linux.mh: Likewise.
5913 * config/mips/linux.mt: Likewise.
5914 * config/powerpc/linux.mh: Likewise.
5915 * config/sh/linux.mt: Likewise.
5916
c8c18e65
KW
59172003-06-19 Kris Warkentin <kewarken@qnx.com>
5918
5919 * solib.c (solib_open): Change tests for whether to search
5920 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
5921 comments.
5922
dcccef2e
TR
59232003-06-19 Theodore A. Roth <troth@openavr.org>
5924
5925 * avr-tdep.c (avr_frame_address): Delete function.
5926 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5927 set_gdbarch_frame_args_address.
5928
5861a190
AC
59292003-06-19 Andrew Cagney <cagney@redhat.com>
5930
5931 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5932 (REGISTER_CONVERT_FROM_TYPE): Delete.
5933 (mips_register_convert_to_type): Delete declaration.
5934 (mips_register_convert_from_type): Delete declaration.
5935 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
5936 kernel/.
5937
0274a8ce
MS
59382003-06-19 Michael Snyder <msnyder@redhat.com>
5939
5940 * linux-nat.h: New file.
5941 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 5942 * lin-lwp.c: Include linux-nat.h.
0274a8ce 5943 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 5944 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
5945 (linux_make_note_section): Iterate over lwps instead of threads.
5946 (linux_do_thread_registers): Use lwp instead of merged pid.
5947 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 5948 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
5949 Add dependency on linux_nat_h.
5950
adf5f719
TR
59512003-06-19 Theodore A. Roth <troth@openavr.org>
5952
5953 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5954
6766a268
DJ
59552003-06-19 Daniel Jacobowitz <drow@mvista.com>
5956
5957 * varobj.c (get_type, get_target_type): Use check_typedef.
5958
1171114a
DJ
59592003-06-19 Daniel Jacobowitz <drow@mvista.com>
5960
5961 * breakpoint.c (insert_catchpoint): Call internal_error.
5962
adcf68a2
TR
59632003-06-19 Theodore A. Roth <troth@openavr.org>
5964
5965 * avr-tdep.c (avr_push_dummy_code): Delete function.
5966 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
5967
ea67f13b
DJ
59682003-06-19 Daniel Jacobowitz <drow@mvista.com>
5969
5970 * arch-utils.c (default_prepare_to_proceed): Remove.
5971 (generic_prepare_to_proceed): Remove.
5972 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
5973 (generic_prepare_to_proceed): Remove prototype.
5974 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
5975 * gdbarch.c: Regenerate.
5976 * gdbarch.h: Regenerate.
5977 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
5978 * hppah-nat.c (hppa_switched_threads): Remove.
5979 * infrun.c (prepare_to_proceed): New static function, copied from
5980 generic_prepare_to_proceed. Remove select_it argument.
5981 (proceed): Call prepare_to_proceed.
5982 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
5983 variables.
5984 (ptrace_wait): Don't set the removed variables.
5985 (hppa_switched_threads): Remove.
5986 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
5987 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
5988 (lin_lwp_prepare_to_proceed): Remove prototype.
5989 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
5990 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
5991
4add8633
TR
59922003-06-18 Theodore A. Roth <troth@openavr.org>
5993
5994 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
5995 trad-frame.h.
5996 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
5997 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
5998 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
5999 (AVR_PROLOGUE_*): Enumerate prologue types.
6000 (struct frame_extra_info): Remove.
6001 (struct avr_unwind_cache): Define.
6002 (avr_write_sp): Delete function.
6003 (avr_read_fp): Ditto.
6004 (avr_init_extra_frame_info): Ditto.
6005 (avr_pop_frame): Ditto.
6006 (avr_frame_saved_pc): Ditto.
6007 (avr_saved_pc_after_call): Ditto.
6008 (avr_push_return_address): Ditto.
6009 (avr_frame_chain): Ditto.
6010 (avr_store_struct_return): Ditto.
6011 (avr_push_arguments): Ditto.
6012 (avr_scan_prologue): Update comments. Changed to set up the info for
6013 cache unwinding. Now returns end of prologue PC.
6014 (avr_skip_prologue): Better handling of functions lacking a prologue
6015 by using avr_scan_prologue.
6016 (avr_scan_arg_moves): New function.
6017 (avr_saved_regs_unwinder): Ditto.
6018 (avr_frame_unwind_cache): Ditto.
6019 (avr_unwind_pc): Ditto.
6020 (avr_frame_this_id): Ditto.
6021 (avr_frame_prev_register): Ditto.
6022 (avr_frame_p): Ditto.
6023 (avr_frame_base_address ): Ditto.
6024 (avr_unwind_dummy_id): Ditto.
6025 (avr_push_dummy_code): Ditto.
6026 (push_stack_item): Ditto.
6027 (pop_stack_item): Ditto.
6028 (avr_push_dummy_call): Ditto.
6029 (struct stack_item): Define.
6030 (avr_frame_unwind): Declare structure.
6031 (avr_frame_base): Ditto.
6032 (avr_gdbarch_init): Remove calls to
6033 set_gdbarch_deprecated_init_frame_pc,
6034 set_gdbarch_deprecated_target_read_fp,
6035 set_gdbarch_deprecated_dummy_write_sp,
6036 set_gdbarch_deprecated_fp_regnum,
6037 set_gdbarch_deprecated_push_arguments,
6038 set_gdbarch_deprecated_push_return_address,
6039 set_gdbarch_deprecated_pop_frame,
6040 set_gdbarch_deprecated_store_struct_return,
6041 set_gdbarch_deprecated_frame_init_saved_regs,
6042 set_gdbarch_deprecated_init_extra_frame_info,
6043 set_gdbarch_deprecated_frame_chain,
6044 set_gdbarch_deprecated_frame_saved_pc,
6045 set_gdbarch_deprecated_saved_pc_after_call.
6046 Add calls to set_gdbarch_push_dummy_call,
6047 set_gdbarch_push_dummy_code,
6048 frame_unwind_append_predicate,
6049 frame_base_set_default,
6050 set_gdbarch_unwind_dummy_id,
6051 set_gdbarch_unwind_pc.
6052 Wrap a long line.
6053
7be04a68
MS
60542003-06-18 Corinna Vinschen <vinschen@redhat.com>
6055
6056 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6057 registers for H8/300S.
6058 (h8300_print_registers_info): Ditto.
8ffd9b1b 6059 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6060
ae087d01
DJ
60612003-06-18 Daniel Jacobowitz <drow@mvista.com>
6062
6063 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6064 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6065 (lin_lwp_wait): Likewise. Update comments.
6066 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6067 (pull_pid_from_list, linux_record_stopped_pid): New.
6068
07d8f827
SC
60692003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6070
6071 * ada-lang.c (scan_discrim_bound): Name first argument.
6072 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6073 declared by ALL_BLOCK_SYMBOLS.
6074
7cb47b14
SC
60752003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6076
6077 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6078 ("regcache.h"): Include it.
6079 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6080
6ad8ae5c
DJ
60812003-06-17 Daniel Jacobowitz <drow@mvista.com>
6082
6083 * NEWS: Mention gdbserver detach change and "disconnect" command.
6084 * infcmd.c (disconnect_command): New function.
6085 (_initialize_infcmd): Add ``disconnect'' command.
6086 * remote.c (remote_async_detach): Delete.
6087 (remote_detach): Merge remote_async_detach.
6088 (remote_disconnect): New.
6089 (init_remote_ops): Set to_disconnect.
6090 (init_remote_cisco_ops): Likewise.
6091 (init_remote_async_ops): Likewise. Use remote_detach.
6092 * target.c (cleanup_target): Default to_disconnect.
6093 (update_current_target): Inherit to_disconnect.
6094 (target_disconnect, debug_to_disconnect): New functions.
6095 (setup_target_debug): Set to_disconnect.
6096 * target.h (struct target_ops): Add to_disconnect.
6097 (target_disconnect): Add prototype.
6098
687595f9
DJ
60992003-06-17 Daniel Jacobowitz <drow@mvista.com>
6100
6101 * breakpoint.c (insert_catchpoint): New function.
6102 (insert_breakpoints): Use catch_exceptions to call
6103 insert_catchpoint. Disable catchpoints if they fail to insert.
6104
29239a8f
DJ
61052003-06-17 Daniel Jacobowitz <drow@mvista.com>
6106
6107 * symfile.c (reread_symbols): Clear sym_private.
6108
2cdf3c63
AC
61092003-06-17 Andrew Cagney <cagney@redhat.com>
6110
6111 * trad-frame.h (struct frame_info): Add opaque declaration.
6112 * remote-fileio.h (struct cmd_list_element): Add opaque
6113 declaration.
6114 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6115 comments.
6116
cf0e1e0d
DJ
61172003-06-17 Daniel Jacobowitz <drow@mvista.com>
6118
6119 * remote.c (remote_prepare_to_store): Replace call to
6120 deprecated_read_register_bytes with multiple regcache_raw_read
6121 calls.
6122
192cdb19
KW
61232003-06-17 Kris Warkentin <kewarken@qnx.com>
6124
6125 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6126 (nto_find_and_open_solib): Likewise.
6127 (nto_init_solib_absolute_prefix): Likewise.
6128 (_initialize_nto_tdep): Fix indentation.
6129
89929b45
KW
61302003-06-17 Kris Warkentin <kewarken@qnx.com>
6131
6132 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6133
46019f27
KW
61342003-06-17 Kris Warkentin <kewarken@qnx.com>
6135
6136 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6137
1a38736e
JB
61382003-06-17 Jim Blandy <jimb@redhat.com>
6139
6140 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6141
3605c34a
TR
61422003-06-16 Theodore A. Roth <troth@openavr.org>
6143
6144 * avr-tdep.c (avr_extract_return_value): New function.
6145 (avr_gdbarch_init): Set extract_return_value method.
6146
870b3035
AC
61472003-06-16 Andrew Cagney <cagney@redhat.com>
6148
6149 * frame.h (deprecated_get_next_frame_hack): Declare.
6150 * frame.c (legacy_saved_regs_prev_register): Only require
6151 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6152 there are always saved regs.
6153 (deprecated_generic_get_saved_register): Do not require
6154 DEPRECATED_FRAME_INIT_SAVED_REGS.
6155 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6156 use frame ID unwind instead.
6157 (deprecated_get_next_frame_hack): New function.
6158
63d47a7d
CV
61592003-06-16 Corinna Vinschen <vinschen@redhat.com>
6160
6161 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6162 (h8300_push_dummy_call): ...this function. Some minor optimization.
6163 (h8300_push_return_address): Remove.
6164 (h8300_gdbarch_init): Remove calls to
6165 set_gdbarch_deprecated_dummy_write_sp,
6166 set_gdbarch_deprecated_push_arguments and
6167 set_gdbarch_deprecated_push_return_address.
6168 Add call to set_gdbarch_push_dummy_call.
6169
4bb1dc5e
CV
61702003-06-16 Corinna Vinschen <vinschen@redhat.com>
6171
6172 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6173 (E_PSEUDO_EXR_REGNUM): Ditto.
6174 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6175 registers into safe registers.
4bb1dc5e
CV
6176 (h8300_skip_prologue): Check for stm instruction to push registers
6177 used for register variables onto stack.
6178 (gdb_print_insn_h8300): Remove.
6179 (h8300_examine_prologue): Add a comment.
6180 (h8300_register_name): Take pseudo registers into account.
6181 (h8300s_register_name): Ditto.
6182 (h8300sx_register_name): Ditto.
6183 (h8300_print_register): Ditto.
6184 (h8300_print_registers_info): Define "nice" printing order.
6185 (h8300_saved_pc_after_call): Take pseudo registers into account.
6186 (h8300_register_type): Ditto. Return type used for remote connection
6187 when requesting real CCR or EXR register, return actual type when
6188 requesting pseudo CCR or EXR.
6189 (h8300_pseudo_register_read): New function.
6190 (h8300_pseudo_register_write): Ditto.
6191 (h8300_dbg_reg_to_regnum): Ditto.
6192 (h8300s_dbg_reg_to_regnum): Ditto.
6193 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6194 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6195 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6196 set_gdbarch_print_insn architecture dependent.
6197 Call set_gdbarch_pseudo_register_read and
6198 set_gdbarch_pseudo_register_write.
6199 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6200
a59fe496
AC
62012003-06-16 Andrew Cagney <cagney@redhat.com>
6202
6203 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6204 * gdbarch.h, gdbarch.c: Re-generate.
6205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6206 * s390-tdep.c (s390_gdbarch_init): Update.
6207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6208 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6209 * mips-tdep.c (mips_gdbarch_init): Update.
6210 * mcore-tdep.c (mcore_gdbarch_init): Update.
6211 * cris-tdep.c (cris_gdbarch_init): Update.
6212 * infcall.c (call_function_by_hand): Update.
6213 * ia64-tdep.c (ia64_push_arguments): Update comment.
6214 * frame.c (legacy_get_prev_frame): Do not assume
6215 SAVE_DUMMY_FRAME_TOS_P.
6216 * dummy-frame.c (find_dummy_frame): Update comment.
6217
6f4e5a41
AC
62182003-06-16 Andrew Cagney <cagney@redhat.com>
6219
6220 * regcache.c (do_cooked_read): Do not use register_valid_p.
6221
72fab697
TR
62222003-06-15 Theodore A. Roth <troth@openavr.org>
6223
6224 * avr-tdep.c (avr_register_type): Remove a blank line.
6225 (avr_scan_prologue): Correct some comments.
6226
e3d8b004
TR
62272003-06-15 Theodore A. Roth <troth@openavr.org>
6228
6229 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6230 prologue types.
8ffd9b1b 6231 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6232 option.
6233 Add code to scan -mcall-prologues for mega devices.
6234
866b76ea
TR
62352003-06-15 Theodore A. Roth <troth@openavr.org>
6236
6237 * avr-tdep.c (avr_register_byte): Delete function.
6238 (avr_register_raw_size): Delete function.
6239 (avr_register_virtual_size): Delete function.
6240 (avr_register_virtual_type): Delete function.
6241 (avr_register_type): New function.
6242 (avr_address_to_pointer): Remove unused code.
6243 (avr_read_fp): Need to read FP as two separate bytes due to change to
6244 avr_register_type() usage.
6245 (avr_gdbarch_init): Don't set deprecated_register_size.
6246 Don't set deprecated_register_bytes.
6247 Don't set deprecated_register_byte.
6248 Don't set deprecated_register_raw_size.
6249 Don't set deprecated_max_register_raw_size.
6250 Don't set deprecated_register_virtual_size.
6251 Don't set deprecated_max_register_virtual_size.
6252 Don't set deprecated_register_virtual_type.
6253 Set register_type method.
6254
3993f6b1
DJ
62552003-06-15 Daniel Jacobowitz <drow@mvista.com>
6256
6257 * Makefile.in (linux-nat.o): Add rule.
6258 * linux-nat.c: New file.
6259 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6260 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6261 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6262 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6263 * config/arm/linux.mh (NATDEPFILES): Likewise.
6264 * config/i386/linux.mh (NATDEPFILES): Likewise.
6265 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6266 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6267 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6268 * config/mips/linux.mh (NATDEPFILES): Likewise.
6269 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6270 * config/s390/s390.mh (NATDEPFILES): Likewise.
6271 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6272
786a90bb
MK
62732003-06-15 Mark Kettenis <kettenis@gnu.org>
6274
6275 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6276 replace out-of-date comment.
6277
3bd3f01e
AC
62782003-06-15 Andrew Cagney <cagney@redhat.com>
6279
6280 * rdi-share/host.h (Fail): Change to a varargs function.
6281 * remote-rdi.c (Fail): Update.
8ffd9b1b 6282
de5b9bb9
MK
62832003-06-15 Mark Kettenis <kettenis@gnu.org>
6284
6285 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6286 (i386_convert_register_p, i386_register_to_value,
6287 i386_register_from_value): Handle types longer than 8 bytes.
6288
d532c08f
MK
62892003-06-15 Mark Kettenis <kettenis@gnu.org>
6290
6291 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6292 Move floating-point code to new function in i387-tdep.c.
6293 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6294 New functions containing code moved here from i386-tdep.c.
6295 * i387-tdep.h: Add opaque declaration for `struct type'.
6296 (i387_register_to_value, i387_value_to_register): New prototypes.
6297 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6298 (x86_64_init_abi): Set convert_register_p, register_to_value and
6299 value_to_register here.
8ffd9b1b 6300
42c466d7
AC
63012003-06-14 Andrew Cagney <cagney@redhat.com>
6302
6303 * mips-tdep.c (mips_register_to_value): Make static.
6304 (mips_value_to_register): Make static.
6305 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6306 * ia64-tdep.c (ia64_register_raw_size): Make static.
6307 (ia64_register_virtual_size): Make static.
6308 (ia64_register_byte): Make static.
6309 * i387-tdep.c: Include "i387-tdep.h".
6310 (print_387_control_word): Delete function.
6311 (print_387_status_word): Delete function.
6312 (print_387_status_bits): Delete function.
6313 (print_387_control_bits): Delete function.
6314 * Makefile.in (i387-tdep.o): Update dependencies.
6315 * rdi-share/host.h (Fail): Declare.
6316 * remote-rdi.c (Fail): Update to match declaration.
6317
2a9cda49
AC
63182003-06-14 Andrew Cagney <cagney@redhat.com>
6319
6320 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6321 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6322 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6323 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6324 * README: Delete reference to remote-array.
6325 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6326 (remote-array.o): Delete target.
6327 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6328 * remote-array.c: Delete file.
6329
ff2e87ac
AC
63302003-06-14 Andrew Cagney <cagney@redhat.com>
6331 Mark Kettenis <kettenis@gnu.org>
6332
6333 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6334 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6335 parameter with "frame".
6336 * gdbarch.h, gdbarch.c: Re-generate.
6337 * frame.h (put_frame_register): Declare.
6338 * frame.c (put_frame_register): New function.
6339 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6340 (legacy_register_to_value): Rewrite, use "frame" to get the
6341 register value.
6342 (legacy_value_to_register): Rewrite, use "frame" to find the
6343 register's location before storing.
6344 * arch-utils.h (legacy_convert_register_p): Update.
6345 (legacy_register_to_value, legacy_value_to_register): Update.
6346 * findvar.c (value_from_register): Rewrite, eliminate use of
6347 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6348 "frame" to REGISTER_TO_VALUE.
6349 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6350 lval_reg_frame_relative + lval_register branch of the switch. Do
6351 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6352 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6353 I386_EDI_REGNUM): New defines.
6354 (i386_next_regnum, i386_convert_register_p,
6355 i386_register_to_value, i386_value_to_register): New functions.
6356 (i386_register_convertible, i386_register_convert_to_virtual,
6357 i386_convert_to_raw): Remove functions.
6358 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6359 value_to_register instead of register_convertible,
6360 register_convert_to_virtual and register_convert_to_raw.
6361 * mips-tdep.c (mips_convert_register_p): New function.
6362 (mips_value_to_register): Replace mips_register_convert_from_type.
6363 (mips_register_to_value): Replace mips_register_convert_to_type.
6364 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6365 register_to_value.
6366 * alpha-tdep.c (alpha_convert_register_p): Update.
6367 (alpha_value_to_register): Update, store the register.
6368 (alpha_register_to_value): Update, fetch the register.
6369
98be1e77
TR
63702003-06-14 Theodore A. Roth <troth@openavr.org>
6371
6372 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6373 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6374 Don't set deprecated_call_dummy_words.
6375 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6376 Don't set remote_translate_xfer_address.
6377 (avr_io_reg_read_command): Remove commented out debug printf.
6378 Wrap a long line.
6379
57bc6122
TR
63802003-06-14 Theodore A. Roth <troth@openavr.org>
6381
6382 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6383 causes gdb to seg fault.
6384
eb01fc62
DJ
63852003-06-14 Daniel Jacobowitz <drow@mvista.com>
6386
6387 * sparc-nat.c (fetch_inferior_registers): Correct
6388 a reference to "registers".
6389
3b3e6bee
DJ
63902003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6391
6392 * Makefile.in (exc_request_U_h): Define
6393 (exc_request_S_h): Likewise.
6394 (msg_reply_S_h): Likewise.
6395 (msg_U_h): Likewise.
6396 (notify_S_h): Likewise.
6397 (process_reply_S_h): Likewise.
6398 (gnu-nat.o): Depend on gdb_obstack_h
6399 * gnu-nat.c: Include "gdb_obstack.h".
6400
b8de8283
AC
64012003-06-13 Andrew Cagney <cagney@redhat.com>
6402
6403 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6404 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6405
f3be58bc
AC
64062003-06-13 Andrew Cagney <cagney@redhat.com>
6407
6408 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6409 when deprecated REGISTER macros can be deleted.
6410 * gdbarch.h, gdbarch.c: Re-generate.
6411
4c0122c8
JB
64122003-06-13 Jim Blandy <jimb@redhat.com>
6413
6414 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6415 Linux entry point symbols for _dl_debug_state, too.
6416
3e210248
AC
64172003-06-13 Andrew Cagney <cagney@redhat.com>
6418
6419 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6420 available, do not use the FP register, and always save the TOS.
6421 * dummy-frame.c (dummy_frame_this_id): Do not assert
6422 SAVE_DUMMY_FRAME_TOS.
6423 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6424 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6425 (i386_push_dummy_call): Add 8 to the returned SP.
6426 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6427 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6428 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6429 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6430 (x86_64_push_dummy_call): Return "sp + 16".
6431 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6432 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6433 save_dummy_frame_tos.
6434
0b65af49
JB
64352003-06-13 Jim Blandy <jimb@redhat.com>
6436
6437 * frv-tdep.c (frv_use_struct_convention): Delete static
6438 declaration for function deleted in my change of 2003-06-12.
6439
4ea2465e
TR
64402003-06-13 Theodore A. Roth <troth@openavr.org>
6441
6442 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6443 (avr_pointer_to_address): Shift code addrs left 1 bit.
6444 (avr_convert_from_func_ptr_addr): Delete function since operation is
6445 better handled by avr_address_to_pointer and avr_pointer_to_address.
6446 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6447
1581182a
MK
64482003-06-13 Mark Kettenis <kettenis@gnu.org>
6449
6450 From Kelley Cook <kelleycook@wideopenwest.com>:
6451 * configure.host: Accept i[34567]86 variants.
6452 * configure.tgt: Likewise.
6453 * nlm/configure.in: Likewise.
6454 * nlm/configure: Regenerated.
6455
7aa1783e
RE
64562003-06-13 Richard Earnshaw <rearnsha@arm.com>
6457
6458 * arm-tdep.c (solib-svr4.h): Dont' include it.
6459 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6460 * arm-linux-tdep.c: ... here. Make static.
6461 (arm_linux_init_abi): Register it.
6462 (solib-svr4.h): Include it.
6463 * Makefile.in: Update dependencies.
6464 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6465 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6466
0261a0d0
CV
64672003-06-13 Corinna Vinschen <vinschen@redhat.com>
6468
6469 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6470 indicate registers used for return values.
6471 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6472 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6473 members.
6474 (h8300_init_extra_frame_info): Ditto.
6475 (h8300_frame_locals_address): Removed.
6476 (h8300_frame_args_address): Removed.
6477 (h8300_extract_return_value): Use new regcache structure. Only care
6478 for 16 bit CPUs.
6479 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6480 (h8300_store_return_value): Use new regcache structure. Only care
6481 for 16 bit CPUs.
6482 (h8300h_store_return_value): Same function for 32 bit CPUs.
6483 (h8300_store_struct_return): Removed.
6484 (h8300_extract_struct_value_address): Use new regcache structure.
6485 (h8300h_extract_struct_value_address): Removed.
6486 (h8300_push_dummy_code): New function.
6487 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6488 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6489 set_gdbarch_store_return_value architecture dependent.
6490 Call set_gdbarch_push_dummy_code and
6491 set_gdbarch_extract_struct_value_address.
6492 Remove calls to set_gdbarch_frame_args_address,
6493 set_gdbarch_frame_locals_address,
6494 set_gdbarch_deprecated_store_struct_return,
6495 set_gdbarch_deprecated_extract_return_value,
6496 set_gdbarch_deprecated_extract_struct_value_address,
6497 set_gdbarch_deprecated_call_dummy_words and
6498 set_gdbarch_deprecated_sizeof_call_dummy_words.
6499
055c394a
CV
65002003-06-13 Corinna Vinschen <vinschen@redhat.com>
6501
6502 * h8300-tdep.c (h8300_register_byte): Remove.
6503 (h8300h_register_byte): Remove.
6504 (h8300_register_virtual_type): Remove. Substitute by...
6505 (h8300_register_type): New function.
6506 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6507 (h8300h_extract_struct_value_address): Ditto.
6508 (h8300_gdbarch_init): Drop calls to
6509 set_gdbarch_deprecated_register_byte and
6510 set_gdbarch_deprecated_register_virtual_type.
6511 Add call to set_gdbarch_register_type.
6512
9c04cab7
AC
65132003-06-13 Andrew Cagney <cagney@redhat.com>
6514
6515 * gdbarch.sh: Update comments on registers.
6516 (deprecated_register_byte): Rename register_byte.
6517 (deprecated_register_raw_size): Rename register_raw_size.
6518 (deprecated_register_virtual_size): Rename register_virtual_size.
6519 (deprecated_register_virtual_type): Rename register_virtual_type.
6520 * gdbarch.h, gdbarch.c: Re-generate.
6521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6522 * vax-tdep.c (vax_gdbarch_init): Update.
6523 * v850-tdep.c (v850_gdbarch_init): Update.
6524 * sparc-tdep.c (sparc_gdbarch_init): Update.
6525 * sh-tdep.c (sh_gdbarch_init): Update.
6526 * s390-tdep.c (s390_gdbarch_init): Update.
6527 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6528 * ns32k-tdep.c: Update.
6529 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6530 * mips-tdep.c (mips_gdbarch_init): Update.
6531 * mcore-tdep.c (mcore_gdbarch_init): Update.
6532 * m68k-tdep.c (m68k_gdbarch_init): Update.
6533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6534 * ia64-tdep.c (ia64_gdbarch_init): Update.
6535 * hppa-tdep.c (hppa_gdbarch_init): Update.
6536 * h8300-tdep.c (h8300_gdbarch_init): Update.
6537 * frv-tdep.c (frv_gdbarch_init): Update.
6538 * cris-tdep.c (cris_gdbarch_init): Update.
6539 * avr-tdep.c (avr_gdbarch_init): Update.
6540 * alpha-tdep.c (alpha_gdbarch_init): Update.
6541 * arm-tdep.c (arm_gdbarch_init): Update.
6542
b060cbea
AC
65432003-06-13 Andrew Cagney <cagney@redhat.com>
6544
6545 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6546 mips_o32_use_struct_convention with always_use_struct_convention.
6547
0fc9922a
DC
65482003-06-12 David Carlton <carlton@kealia.com>
6549
6550 * cp-namespace.c (cp_set_block_scope): Comment out
6551 processing_has_namespace_info branch.
6552
1fd35568
JB
65532003-06-12 Jim Blandy <jimb@redhat.com>
6554
f470a70a
JB
6555 Recognize and skip 64-bit PowerPC Linux linkage functions.
6556 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6557 insn_pattern, insns_match_pattern, d_field, ds_field): New
6558 functions, macros, and types for working with PPC instructions.
6559 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6560 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6561 ppc64_skip_trampoline_code): New functions, variables, and macros
6562 for recognizing and skipping linkage functions.
6563 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6564 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6565
49ff75ad
JB
6566 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6567 register offsets for both the 32- and 64-bit interfaces.
6568
bd918c83
JB
6569 Actually finish the job started by my change of 2003-05-29.
6570 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6571 other #definition of this.
6572 (ppc_linux_skip_trampoline_code): Remove declaration.
6573 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6574 static.
6575 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6576 method for GDBARCH.
6577
6578 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6579 'long' on ppc64-*-linux*.
6580
f8c59253
JB
6581 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6582 isn't #defined, assume the register doesn't exist: act as if
6583 tdep->ppc_mq_regnum were -1.
6584
8fbb30b1
JB
6585 * configure.host, configure.tgt: Add entries for
6586 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6587 powerpc/linux.mt.
6588 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6589 New files.
6590
1fd35568
JB
6591 * arch-utils.c (always_use_struct_convention): New function.
6592 * arch-utils.h (always_use_struct_convention): New prototype.
6593 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6594 (alpha_gdbarch_init): Register always_use_struct_convention,
6595 instead of alpha_use_struct_convention.
6596 * cris-tdep.c (cris_use_struct_convention): Delete.
6597 (cris_gdbarch_init): Register always_use_struct_convention,
6598 instead of cris_use_struct_convention.
6599 * frv-tdep.c (frv_use_struct_convention): Delete.
6600 (frv_gdbarch_init): Register always_use_struct_convention,
6601 instead of frv_use_struct_convention.
6602 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6603 (h8300_gdbarch_init): Register always_use_struct_convention,
6604 instead of h8300_use_struct_convention.
e3305dd9 6605 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6606 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6607 instead of mips_o32_use_struct_convention.
6608
e14e6e9c
AC
66092003-06-12 Andrew Cagney <cagney@redhat.com>
6610
6611 * wince.c: Include "mips-tdep.h".
6612 * mips-tdep.h (mips_next_pc): Declare.
6613 * mcore-tdep.c: Make more local functions static.
6614 * Makefile.in (wince.o): Update dependencies.
6615
2335f48e
DC
66162003-06-12 David Carlton <carlton@kealia.com>
6617
6618 * symtab.c (lookup_symbol_aux_minsyms): Replace
6619 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6620 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6621 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6622 SYMBOL_NATURAL_NAME.
6623
f70a7d61
AS
66242003-06-12 Andreas Schwab <schwab@suse.de>
6625
6626 * Makefile.in (tuiDisassem.o): Update dependencies.
6627
b6429628
DC
66282003-06-12 David Carlton <carlton@bactrian.org>
6629
6630 * symtab.h: Delete declaration of make_symbol_overload_list.
6631 Add declaration of lookup_partial_symbol.
6632 * symtab.c (remove_params): Move to cp-support.c.
6633 (overload_list_add_symbol, make_symbol_overload_list)
6634 (sym_return_val_size, sym_return_val_index): Ditto.
6635 (lookup_partial_symbol): Make extern.
6636 * cp-support.h: Add declaration of make_symbol_overload_list.
6637 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6638 symtab.h, and block.h.
6639 (remove_params): Move here from symtab.c.
6640 (overload_list_add_symbol, make_symbol_overload_list)
6641 (sym_return_val_size, sym_return_val_index): Ditto.
6642 * valops.c: Include cp-support.h.
6643 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6644 frame_h, and block_h.
6645 (valops.o): Depend on cp_support_h.
6646
084edea5
CV
66472003-06-12 Corinna Vinschen <vinschen@redhat.com>
6648
6649 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6650 substitute by NUM_REGS throughout.
6651 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6652 (h8300s_register_name): New function for H8S registers.
6653 (h8300sx_register_name): Ditto for H8SX registers.
6654 (h8300_print_register): Revise register printing, avoid depending
6655 on 32 bit long.
0261a0d0 6656 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6657 (h8300h_register_byte): New function for any other architecture.
6658 (h8300_register_raw_size): Remove.
6659 (h8300_register_virtual_type): Revise to return actually useful
6660 type.
6661 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6662 (h8300h_extract_struct_value_address): New function for any other
6663 architecture.
6664 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6665 set_gdbarch_register_name, set_gdbarch_register_byte,
6666 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6667 Remove calls to set_gdbarch_deprecated_register_size,
6668 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6669 set_gdbarch_deprecated_max_register_raw_size,
6670 set_gdbarch_register_virtual_size and
6671 set_gdbarch_deprecated_max_register_virtual_size entirely.
6672 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6673 set_gdbarch_long_double_bit.
6674
06194148
JJ
66752003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6676
8ffd9b1b
AJ
6677 * doublest.c (convert_doublest_to_floatformat): When dealing
6678 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6679 processing a full 32 bits of mantissa.
6680
de4f826b
DC
66812003-06-11 David Carlton <carlton@bactrian.org>
6682
6683 * dictionary.h: New.
6684 * dictionary.c: New.
6685 * block.h: Add opaque declaration for struct dictionary.
6686 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6687 'sym' members.
6688 (BLOCK_DICT): New macro.
6689 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6690 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6691 BLOCK_SHOULD_SORT.
6692 (ALL_BLOCK_SYMBOLS): Update definition.
6693 * Makefile.in (SFILES): Add dictionary.c.
6694 (dictionary_h): New.
6695 (COMMON_OBS): Add dictionary.o.
6696 (dictionary.o): New.
6697 (ada-lang.o): Depend on dictionary_h.
6698 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6699 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6700 (mi-cmd-stack.o): Ditto.
6701 (gdbtk-cmds.o): Update dependencies.
6702 (gdbtk-stack.o): Ditto.
6703 * ada-lang.c: Include dictionary.h.
6704 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6705 (fill_in_ada_prototype, debug_print_block): Ditto.
6706 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6707 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6708 'is_sorted'.
6709 * mdebugread.c: Include dictionary.h.
6710 (struct parse_stack): Delete 'maxsyms' member.
6711 (parse_symbol): Update calls to new_block. Delete calls to
6712 shrink_block. Use dictionary methods.
6713 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6714 Update calls to new_symtab. Don't maintain maxsyms data.
6715 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6716 (add_symbol): Just call dict_add_symbol.
6717 (new_symtab): Delete 'maxsyms' argument.
6718 (new_symtab): Update calls to new_block.
6719 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6720 (shrink_block): Delete function.
6721 (fixup_sigtramp): Update call to new_block. Add symbol via
6722 dict_add_symbol.
6723 * jv-lang.c: Include dictionary.h.
6724 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6725 appropriately. Set class_symtab->free_func. Make sure the
6726 blockvector is big enough to hold two blocks.
6727 (add_class_symtab_symbol): Use dictionary methods.
6728 (free_class_block): New function.
6729 (type_from_class): Replace explicit iteration by
6730 ALL_BLOCK_SYMBOLS.
6731 * symtab.h (struct symtab): Replace 'free_ptr' method by
6732 'free_func'.
6733 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6734 sort_symtab_syms.
6735 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6736 sort_symtab_syms.
6737 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6738 Include dictionary.h.
6739 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6740 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6741 sort_symtab_syms.
6742 * objfiles.c: Include dictionary.h.
6743 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6744 * buildsym.c: Include dictionary.h.
6745 (finish_block): Use dictionary methods.
6746 (end_symtab): Set free_func to NULL, not free_ptr.
6747 * tracepoint.c: Include dictionary.h.
6748 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6749 (scope_info): Ditto.
6750 * stack.c: Include dictionary.h.
6751 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6752 (print_block_frame_labels, print_frame_arg_vars)
6753 (print_frame_args): Ditto.
6754 * symmisc.c (free_symtab_block): Use dictionary methods.
6755 (dump_symtab): Ditto.
6756 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6757 Include dictionary.h.
6758 * symfile.h: Delete declarations of sort_block_syms,
6759 sort_symtab_syms.
6760 * symfile.c (sort_block_syms): Delete.
6761 (sort_symtab_syms): Delete.
6762 * symtab.c: Include dictionary.h.
6763 (lookup_block_symbol): Use dictionary iterators.
6764 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6765 (search_symbols, make_symbol_completion_list): Ditto.
6766 (make_symbol_overload_list): Ditto.
6767 * valops.c (value_of_local): Use dict_empty.
6768 Include dictionary.h.
6769
a31f978c
JB
67702003-06-11 J. Brobecker <brobecker@gnat.com>
6771
6772 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6773
526e70c0
DC
67742003-06-11 David Carlton <carlton@bactrian.org>
6775
6776 * block.h (BLOCK_SHOULD_SORT): Delete.
6777 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6778 blocks.
6779 * ada-lang.c (ada_add_block_symbols): Ditto.
6780 * symfile.c (sort_block_syms): Delete.
6781 (sort_symtab_syms): Ditto.
6782 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6783 declarations.
6784 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6785 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6786 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6787 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6788 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6789 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6790 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6791
33c08150
JJ
67922003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6793
8ffd9b1b 6794 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6795 bits to 128.
6796
781a750d
AC
67972003-06-11 Andrew Cagney <cagney@redhat.com>
6798
6799 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6800 REGISTER_CONVERTIBLE.
6801 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6802 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6803 * gdbarch.h, gdbarch.c: Re-generate.
6804 * arch-utils.h (deprecated_register_convertible_not): Rename
6805 generic_register_convertible_not.
6806 * arch-utils.c (deprecated_register_convertible_not): Rename
6807 generic_register_convertible.
6808 (legacy_convert_register_p, legacy_register_to_value): Update.
6809 * sh-tdep.c (sh64_push_arguments): Update.
6810 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6811 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6812 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6813 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6814 * arch-utils.c (legacy_value_to_register): Update.
6815 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6816 (rs6000_register_convert_to_raw): Make parameter "from" const.
6817 * mips-tdep.c (mips_gdbarch_init): Update.
6818 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
6819 * infcmd.c (default_print_registers_info): Update.
6820 * ia64-tdep.c (ia64_gdbarch_init): Update.
6821 (ia64_register_convert_to_raw): Make parameter "from" const.
6822 * i386-tdep.c (i386_gdbarch_init): Update.
6823 (i386_register_convert_to_raw): Update.
6824
cd90e54f
AC
68252003-06-11 Andrew Cagney <cagney@redhat.com>
6826
6827 * remote-fileio.c: Include "remote-fileio.h".
6828 * Makefile.in (remote-fileio.o): Update dependencies.
6829 (remote_fileio_h): Fix typo.
6830
a78f21af
AC
68312003-06-11 Andrew Cagney <cagney@redhat.com>
6832
6833 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6834 (xstormy16_save_dummy_frame_tos): Make static.
6835 (_initialize_xstormy16_tdep): Add declaration.
6836 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6837 * v850-tdep.c: Make local functions static.
6838 (_initialize_v850_tdep): Add declaration.
6839 * sparc-tdep.c: Make local functions static.
6840 (_initialize_sparc_tdep): Add declaration.
6841 * sh-tdep.c: Make local functions static.
6842 (_initialize_sh_tdep): Add declaration.
6843 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6844 * s390-tdep.c: Make local functions static.
6845 (_initialize_s390_tdep): Add declaration.
6846 * dbxread.c (find_stab_function_addr): Make static.
6847 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6848 * ocd.c (_initialize_remote_ocd): Add declaration.
6849 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6850 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6851 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6852 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6853 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6854 * remote-array.c (_initialize_array): Add declaration.
6855 (_initialize_remote_monitors): Add declaration.
6856 * remote-mips.c: Make local functions static.
6857 (_initialize_remote_mips): Add declaration.
6858 * mcore-tdep.c: Make all local functions static.
6859 (_initialize_mcore_tdep): Add declaration.
6860 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6861 * abug-rom.c (_initialize_abug_rom): Add declaration.
6862 * rom68k-rom.c (_initialize_rom68k): Add declaration.
6863 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6864 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6865 * remote-est.c (_initialize_est): Add declaration.
6866 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6867 (m68hc11_call_dummy_address): Make static.
6868 * ia64-tdep.c: Make local functions static.
6869 (_initialize_ia64_tdep): Add declaration.
6870 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6871 * monitor.c (monitor_wait_filter): Make static.
6872 (_initialize_remote_monitors): Add declaration.
6873 * remote-hms.c (_initialize_remote_hms): Add declaration.
6874 * remote-e7000.c (fetch_regs_from_dump): Make static.
6875 (expect_n): Make static.
6876 (_initialize_remote_e7000): Add declaration.
6877 * ser-e7kpc.c: Always include "defs.h".
6878 (_initialize_ser_e7000pc): Add declaration.
6879 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6880 * cris-tdep.c: Make all but one function static.
6881 (_initialize_cris_tdep): Add declaration.
6882 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6883 * solib.c (update_solib_list): Make static.
6884 (_initialize_solib): Add declaration.
6885 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6886 (_initialize_avr_tdep): Add declaration.
6887 * remote-rdi.c (voiddummy): Make static.
6888 (_initialize_remote_rdi): Add declaration.
6889 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6890 * remote-rdp.c (send_rdp): Make static.
6891 (_initialize_remote_rdp): Add declaration.
6892 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6893
cbcdb1f5
CV
68942003-06-11 Corinna Vinschen <vinschen@redhat.com>
6895
6896 * remote-fileio.c: Make ari happy.
6897
a191ea8d
JB
68982003-06-10 J. Brobecker <brobecker@gnat.com>
6899
6900 * rs6000-nat.c (child_xfer_memory): Compute the right address when
6901 fetching the trailing bytes of the buffer we are about to write.
6902
0ef75e11
AC
69032003-06-10 Andrew Cagney <cagney@redhat.com>
6904
6905 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6906 * Makefile.in (remote-fileio.o): Update dependencies.
6907 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
6908 include <setjmp.h>, or <sys/types.h> conditional on USG.
6909 (remote_fio_jmp_buf): Delete global variable.
6910
449092f6 69112003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 6912 Martin M. Hunt <hunt@redhat.com>
449092f6 6913
559fa028
AC
6914 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6915 (SFILES): Add remote-fileio.c.
6916 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
6917 dependencies for building remote.o.
449092f6
CV
6918 * remote-fileio.c: New file implementing the remote File-I/O protocol.
6919 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 6920 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
6921 static storage class.
6922 (remote_wait, remote_async_wait): Call remote_fileio_request() on
6923 'F' packet.
6924 (_initialize_remote): Call initialize_remote_fileio().
6925 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
6926 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6927 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6928 (captured_main): Initialize new ui_files.
6929 * ui-file.c: Add read and fgets input functions.
6930 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6931 (null_file_read): New function.
6932 (ui_file_read): New function.
6933 (set_ui_file_read): New function.
6934 (stdio_file_read): New function.
6935 * ui-file.h: New type ui_file_read_ftype.
6936 (set_ui_file_read): Declare.
6937 (ui_file_read): Declare.
6938
248de703
AC
69392003-06-09 Andrew Cagney <cagney@redhat.com>
6940
6941 * frame.h (deprecated_unwind_get_saved_register): Rename
6942 generic_unwind_get_saved_register, update comments.
6943 * mips-tdep.c (mips_get_saved_register): Update.
6944 * frame.c (deprecated_unwind_get_saved_register): Update.
6945
0ed8aa57
AC
69462003-06-09 Andrew Cagney <cagney@redhat.com>
6947
6948 * vax-tdep.c (vax_frame_locals_address): Delete function.
6949 (vax_gdbarch_init): Do not set frame_locals_address.
6950 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6951 (m68hc11_gdbarch_init): Do not set frame_locals_address.
6952 * s390-tdep.c (s390_frame_args_address): Delete function.
6953 (s390_gdbarch_init): Do not set frame_args_address or
6954 frame_locals_address.
6955 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6956 (ns32k_gdbarch_init): Do not set frame_locals_address.
6957 * hppa-tdep.c (hppa_frame_args_address): Delete function.
6958 (hppa_frame_locals_address): Delete function.
6959 (hppa_gdbarch_init): Do not set frame_args_address, or
6960 frame_locals_address.
6961 * arm-tdep.c (arm_frame_args_address): Delete.
6962 (arm_frame_locals_address): Delete.
6963 (arm_gdbarch_init): Do not set frame_args_address, or
6964 frame_locals_address.
6965
983a287a
AC
69662003-06-09 Andrew Cagney <cagney@redhat.com>
6967
6968 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
6969 * gdbarch.h, gdbarch.c: Re-generate.
6970 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
6971 * arch-utils.c (frame_num_args_unknown): Delete function.
6972 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
6973 (frame_info): Use FRAME_NUM_ARGS_P.
6974 * arm-tdep.c (arm_frame_num_args): Delete function.
6975 (arm_gdbarch_init): Do not set frame_num_args.
6976 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
6977 * hppa-tdep.c (hppa_frame_num_args): Delete function.
6978 (hppa_gdbarch_init): Do not set frame_num_args.
6979 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
6980 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6981 frame_num_args to default frame_num_args_unknown.
6982 * v850-tdep.c (v850_gdbarch_init): Ditto.
6983 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6984 * sh-tdep.c (sh_gdbarch_init): Ditto.
6985 * s390-tdep.c (s390_gdbarch_init): Ditto.
6986 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6987 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6988 * mips-tdep.c (mips_gdbarch_init): Ditto.
6989 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6990 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6992 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6993 * i386-tdep.c (i386_gdbarch_init): Ditto.
6994 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6995 * frv-tdep.c (frv_gdbarch_init): Ditto.
6996 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6997 * cris-tdep.c (cris_gdbarch_init): Ditto.
6998 * avr-tdep.c (avr_gdbarch_init): Ditto.
6999 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7000
8d3b0994
AC
70012003-06-09 Andrew Cagney <cagney@redhat.com>
7002
7003 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7004 (print_frame_args): Moved to "stack.c".
7005 * stack.c: Include "gdb_assert.h".
7006 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7007 (print_frame_args): Moved from "printcmd.c".
7008 * frame.h (print_frame_args): Delete declaration.
7009 * Makefile.in (stack.o): Update dependencies.
7010
25e3a86b
AC
70112003-06-08 Andrew Cagney <cagney@redhat.com>
7012
7013 * frame.c (get_prev_frame): Remove reference to
7014 frame_args_address_correct in comments.
7015 * frame-base.c (default_frame_args_address): Delete code
7016 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7017 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7018 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7019 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7020 (vax_frame_args_address_correct): Delete declaration.
7021
a9e5fdc2
AC
70222003-06-08 Andrew Cagney <cagney@redhat.com>
7023
7024 * gdbarch.sh (UNWIND_SP): Add.
7025 * gdbarch.h, gdbarch.c: Re-generate.
7026 * frame.c (frame_sp_unwind): New function.
7027 (get_frame_sp): New function.
7028 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7029 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7030 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7031 value.
7032 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7033 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7034
8983bd83
AC
70352003-06-08 Andrew Cagney <cagney@redhat.com>
7036
7fec2c59
AC
7037 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7038 REMOTE_BREAKPOINT.
7039 * remote.c: Update.
7040 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7041 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7042 * config/m68k/tm-sun3.h: Update.
7043 * config/m68k/tm-m68klynx.h: Update.
7044 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7045
8983bd83
AC
7046 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7047 trad_frame". Update comments.
7048 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7049 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7050 (trad_frame_register_value, trad_frame_prev_register): Update.
7051
b9362cc7
AC
70522003-06-08 Andrew Cagney <cagney@redhat.com>
7053
7054 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7055 from GCC's acinclude.m4.
7056 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7057 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7058 * main.c (error_init): Delete declaration.
7059 * defs.h (error_init): Declare.
7060 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7061 (rs6000_convert_from_func_ptr_addr): Make static.
7062 (_initialize_rs6000_tdep): Add declaration.
7063 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7064 (show_commands, set_verbose, show_history): Delete declaration.
7065 * top.h (set_verbose): Add declaration.
7066 (show_history, set_history, show_commands): Add declaration.
7067 (do_restore_instream_cleanup): Add declaration.
7068 * objc-lang.c (specialcmp): Make static.
7069 (print_object_command): Make static.
7070 (find_objc_msgsend): Make static.
7071 (find_objc_msgcall_submethod_helper): Make static.
7072 (find_objc_msgcall_submethod): Make static.
7073 (_initialize_objc_language): Add declaration.
7074 (find_implementation_from_class): Make static.
7075 (find_implementation): Make static.
7076 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7077 * objc-lang.h (lookup_struct_typedef): Add declaration.
7078 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7079 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7080 (do_restore_user_call_depth): Make static.
7081 (do_restore_instream_cleanup): Delete declaration.
7082 (dont_repeat): Delete declaration.
7083 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7084 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7085 * reggroups.c (_initialize_reggroup): Add declaration.
7086 * cp-support.c (_initialize_cp_support): Add declaration.
7087 * cp-abi.c (_initialize_cp_abi): Add declaration.
7088 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7089 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7090 (_initialize_gnu_v3_abi): Add declaration.
7091 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7092 (_initialize_gnu_v2_abi): Add declaration.
7093 * frame-base.c (_initialize_frame_base): Add declaration.
7094 * doublest.c (floatformat_from_length): Make static.
7095 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7096 * frame.c (create_sentinel_frame): Make static.
7097 (_initialize_frame): Add declaration.
7098 * top.c (do_catch_errors): Make static.
7099 (gdb_rl_operate_and_get_next_completion): Make static.
7100 * typeprint.c: Include "typeprint.h".
7101 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7102 (sentinel_frame_this_id): Make static.
7103 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7104 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7105 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7106 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7107 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7108 * maint.c (maintenance_print_architecture): Make static.
7109 * signals/signals.c (_initialize_signals): Add declaration.
7110 * std-regs.c (_initialize_frame_reg): Add declaration.
7111 * jv-exp.y (push_variable): ISO C definition.
7112 (push_qualified_expression_name): Ditto.
7113 * memattr.c (_initialize_mem): Add declaration.
7114 * remote.c (remote_check_watch_resources): Make static.
7115 (remote_stopped_by_watchpoint): Make static.
7116 (remote_stopped_data_address): Make static.
7117 * d10v-tdep.c (nr_dmap_regs): Make static.
7118 (a0_regnum): Make static.
7119 (d10v_frame_unwind_cache): Make static.
7120 (d10v_frame_p): Make static.
7121 * osabi.c (show_osabi): Make static.
7122 (_initialize_gdb_osabi): Add extern declaration.
7123 * gdbtypes.c (make_qualified_type): Make static.
7124 (safe_parse_type): Make static.
7125 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7126 * macrotab.c (macro_bcache_free): Make static.
7127 * interps.c (interp_set_quiet): Make static.
7128 (interpreter_exec_cmd): Make static.
7129 * stack.h (select_frame_command): New file.
7130 * stack.c: Include "stack.h".
7131 (select_frame_command_wrapper): Delete function.
7132 (select_frame_command): Make global.
7133 * infcall.c: Include "infcall.h".
7134 * linespec.c: Include "linespec.h".
7135 * symfile.c (sections_overlap): Make static.
7136 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7137 * charset.c (_initialize_charset): Add missing prototype.
7138 * regcache.c (init_legacy_regcache_descr): Make static.
7139 (do_regcache_xfree): Make static.
7140 (regcache_xfer_part): Make static.
7141 (_initialize_regcache): Add missing prototype.
7142 * breakpoint.c (parse_breakpoint_sals): Make static.
7143 (breakpoint_sals_to_pc): Make static.
7144 * interps.h (clear_interpreter_hooks): ISO C declaration.
7145 * Makefile.in (stack_h): Define.
7146 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7147 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7148
a0f267c7
AC
71492003-06-08 Andrew Cagney <cagney@redhat.com>
7150
7151 * Makefile.in (d10v-tdep.o): Update dependencies.
7152 (SFILES): Add trad-frame.c.
7153 (trad_frame_h): Define.
7154 (COMMON_OBS): Add trad-frame.o.
7155 (trad-frame.o): Specify dependencies.
7156 * d10v-tdep.c: Include "trad-frame.h".
7157 (saved_regs_unwinder): Delete function.
7158 (d10v_frame_prev_register): Use trad_frame_prev_register.
7159 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7160 trad_frame", delete "regs" and "prev_sp".
7161 (prologue_find_regs): Use trad-frame.
7162 * trad-frame.h, trad-frame.c: New files.
7163
4538b4f4
MK
71642003-06-08 Mark Kettenis <kettenis@gnu.org>
7165
7166 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7167
a0273b2f
AF
71682003-06-07 Adam Fedor <fedor@gnu.org>
7169
7170 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7171 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7172 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7173 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7174 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7175 Use it.
7176
3a6c3343
AC
71772003-06-07 Andrew Cagney <cagney@redhat.com>
7178
7179 * symfile.h: Re-indent, clean up comments.
7180
b46e02f6
AC
71812003-06-07 Andrew Cagney <cagney@redhat.com>
7182
7183 * inferior.h (deprecated_write_sp): Replace
7184 generic_target_write_sp.
7185 * regcache.c (deprecated_write_sp): Replace
7186 generic_target_write_sp.
7187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7188 * vax-tdep.c (vax_gdbarch_init): Update.
7189 * v850-tdep.c (v850_gdbarch_init): Update.
7190 * sparc-tdep.c (sparc_gdbarch_init): Update.
7191 * sh-tdep.c (sh_gdbarch_init): Update.
7192 * s390-tdep.c (s390_gdbarch_init): Update.
7193 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7196 * mcore-tdep.c (mcore_gdbarch_init): Update.
7197 * m68k-tdep.c (m68k_gdbarch_init): Update.
7198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7199 * ia64-tdep.c (ia64_gdbarch_init): Update.
7200 * h8300-tdep.c (h8300_gdbarch_init): Update.
7201 * frv-tdep.c (frv_gdbarch_init): Update.
7202 * cris-tdep.c (cris_gdbarch_init): Update.
7203 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7204
a42e117c
AC
72052003-06-07 Andrew Cagney <cagney@redhat.com>
7206
7207 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7208 Assert that PC_REGNUM is valid.
7209 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7210
bd1ce8ba
AC
72112003-06-07 Andrew Cagney <cagney@redhat.com>
7212
7213 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7214 * gdbarch.h, gdbarch.c: Regenerate.
7215 * mn10300-tdep.c: Include "gdb_assert.h".
7216 (mn10300_read_fp): New function.
7217 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7218 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7219 * ia64-tdep.c: Include "gdb_assert.h".
7220 (ia64_read_fp): New function.
7221 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7222 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7223 * regcache.c (generic_target_read_sp): Delete function.
7224 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7225 * inferior.h (generic_target_read_sp): Delete declaration.
7226 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7227 generic_target_read_sp.
7228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7229 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7230 * sh-tdep.c (sh_gdbarch_init): Ditto.
7231 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7232 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7233
ec5cbaec
AC
72342003-06-07 Andrew Cagney <cagney@redhat.com>
7235
7236 * gdbarch.sh: Comment each field of startup_gdbarch.
7237 * gdbarch.h, gdbarch.c: Re-generate.
7238
cde9ea48
AC
72392003-06-07 Andrew Cagney <cagney@redhat.com>
7240
7241 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7242 * gdbarch.h, gdbarch.c: Re-generate.
7243 * regcache.c: Update comments on read_pc et.al.
7244 (generic_target_read_pc): Delete function.
7245 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7246 * inferior.h (generic_target_read_pc): Delete declaration.
7247 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7248 generic_target_read_pc.
7249 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7250 * sh-tdep.c (sh_gdbarch_init): Ditto.
7251 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7253
9a90a780
AC
72542003-06-07 Andrew Cagney <cagney@redhat.com>
7255
7256 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7257 "index" with "special_local_sect". Use strcmp instead of STREQ.
7258 Append period to coments.
7259
a39a16c4
MM
72602003-06-06 Mark Mitchell <mark@codesourcery.com>
7261
7262 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7263 (elfstab_offset_sections): Likewise.
7264 * gdb-stabs.h (stab_section_info): Likewise.
7265 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7266 * objfiles.c (objfile_relocate): Likewise.
7267 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7268 * remote.c (get_offsets): Likewise.
7269 (remote_cisco_objfile_relocate): Likewise.
7270 * somread.c (som_symfile_offsets): Likewise.
7271 * symfile.c (alloc_section_addr_info): New function.
7272 (build_section_addr_info_from_section_tab): Use it.
7273 (free_section_addr_info): Adjust.
7274 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7275 (syms_from_objfile): Allocate local_addr dynamically.
7276 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7277 dynamically.
7278 (add_symbol_file_command): Allocate sect_opts dynamically.
7279 (reread_symbols): Avoid use of SECT_OFF_MAX.
7280 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7281 (alloc_section_addr_info): Declare it.
7282 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7283 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7284 dynamically.
7285 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7286
20c6c2f8
AC
72872003-06-06 Andrew Cagney <cagney@redhat.com>
7288
7289 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7290 (d10v_frame_unwind_cache): Do not set "return_pc".
7291
884a26c8
MS
72922003-06-06 Michael Snyder <msnyder@redhat.com>
7293
7294 * h8300-tdep.c: Make tidy (long lines).
7295
088ce440
ML
72962003-06-06 Michal Ludvig <mludvig@suse.cz>
7297
8ffd9b1b 7298 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7299 to regcache_collect().
7300
7d773d96
JB
73012003-06-05 J. Brobecker <brobecker@gnat.com>
7302
7303 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7304 pc_in_sigtramp multiarch method.
7305 (hppa_hpux_som_init_abi): Use it.
7306 (hppa_hpux_elf_init_abi): Likewise.
7307 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7308 macro has been multiarched.
7309 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7310 macro here, as hppa64 isn't multiarched yet.
7311
1df6926e
AC
73122003-06-05 Andrew Cagney <cagney@redhat.com>
7313
7314 * Makefile.in (value_h): Add $(frame_h).
7315 * value.h: Include "frame.h".
7316 (struct value): Replace "frame_addr" with "frame_id".
7317 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7318 * values.c (allocate_value): Use VALUE_FRAME_ID.
7319 (value_copy): Use VALUE_FRAME_ID.
7320 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7321 * valops.c (value_assign): Update. Use frame_find_by_id.
7322
6b53acc6
ML
73232003-06-05 Michal Ludvig <mludvig@suse.cz>
7324
7325 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7326 in each pass.
7327
4d9850d3
JJ
73282003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7329
7330 * thread-db.c (check_event): For create/death event breakpoints,
7331 loop through all messages to ensure that we read the message
7332 corresponding to the breakpoint we are at.
7333
8efca6ba
MS
73342003-06-04 Michael Snyder <msnyder@redhat.com>
7335
7336 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7337
0912c7f2
MK
73382003-06-04 Mark Kettenis <kettenis@gnu.org>
7339
7340 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7341 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7342 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7343 when handling .eh_frame sections.
7344
4e370325
JB
73452003-06-04 J. Brobecker <brobecker@gnat.com>
7346
7347 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7348 prepare_to_proceed procedure instead of the hppa-specific one.
7349 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7350
b757528f 73512003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7352
b757528f
JJ
7353 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7354 * config.in: Regenerated.
7355 * configure.in: Add test for syscall function and check for
7356 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7357 * configure: Regenerated.
7358 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7359 <sys/syscall.h>.
7360 (kill_lwp): New function that uses tkill syscall or
7361 uses kill, depending on whether threading model is nptl or not.
7362 All callers of kill() changed to use kill_lwp().
7363 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7364 see if all threads have already exited in the nptl model.
7365 (stop_and_resume_callback): New callback function used by the
7366 lin_lwp_wait thread exit handling code.
7367 (stop_wait_callback): Check for threads already having exited and
7368 delete such threads fromt the lwp list when discovered.
7369 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7370
b757528f
JJ
7371 Roland McGrath <roland@redhat.com>
7372 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7373 nptl libthread_db.
7374
087779b1
RH
73752003-06-03 Richard Henderson <rth@redhat.com>
7376
b21fd293
RH
7377 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7378 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7379 (alpha_sigtramp_frame_prev_register): Likewise.
7380 (alpha_heuristic_frame_prev_register): Likewise.
7381 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7382
8ffd9b1b 7383 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7384 alpha-specific register id names.
7385 (alpha_mdebug_frame_unwind_cache): Likewise.
7386 (alpha_mdebug_frame_prev_register): Likewise.
7387
baa490c4
RH
73882003-06-03 Richard Henderson <rth@redhat.com>
7389
7390 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7391 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7392 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7393 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7394 unwind routines.
7395 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7396 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7397 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7398
7399 * alpha-linux-tdep.c: Remove unnecessary includes.
7400 * Makefile.in (alpha-linux-tdep.o): Update.
7401
74022003-06-03 Richard Henderson <rth@redhat.com>
7403
7404 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7405 (alphabsd_fill_fpreg): Likewise.
7406
f534e522
JB
74072003-06-03 J. Brobecker <brobecker@gnat.com>
7408
7409 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7410 references to struct frame_info fields by calls to the equivalent
7411 accessors. Necessary now that frame_info is opaque.
7412
4035536b
JB
74132003-06-03 J. Brobecker <brobecker@gnat.com>
7414
7415 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7416 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7417 structure, field no longer exists.
7418
0bd79c5c
JB
74192003-06-03 J. Brobecker <brobecker@gnat.com>
7420
7421 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7422 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7423
37bb6d9f
JB
74242003-06-03 J. Brobecker <brobecker@gnat.com>
7425
7426 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7427 references to struct frame_info fields by calls to the equivalent
7428 accessors. Necessary now that frame_info is opaque.
7429
852ee05c
JB
74302003-06-03 J. Brobecker <brobecker@gnat.com>
7431
7432 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7433 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7434 structure, field no longer exists.
7435
7d58c67d
TR
74362003-06-03 Theodore A. Roth <troth@openavr.org>
7437
8ffd9b1b 7438 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7439 accumulation of the size of all registers instead of blindly using
7440 DEPRECATED_REGISTER_BYTES.
7441
0a48e7e8
MS
74422003-06-03 Michael Snyder <msnyder@redhat.com>
7443
7444 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7445 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7446 for h8300sx.
7447
9798ab0d
JB
74482003-06-03 J. Brobecker <brobecker@gnat.com>
7449
7450 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7451 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7452
00b037e2
AC
74532003-06-03 Andrew Cagney <cagney@redhat.com>
7454
7455 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7456 (sparc_convert_to_raw): Delete function.
7457 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7458 register_convert_to_virtual.
7459
043b2f77
JJ
74602003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7461
7462 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7463 layer if not dealing with a statically-linked threaded program.
7464
f43caff8
KW
74652003-06-03 Kris Warkentin <kewarken@qnx.com>
7466
7467 * solib.c (solib_open): Update comment to reflect actual search order.
7468
ae1e7417
AC
74692003-06-03 Andrew Cagney <cagney@redhat.com>
7470
7471 * frame.c (get_frame_memory_signed): New function.
7472 (get_frame_memory, get_frame_memory_unsigned): New function.
7473 (get_frame_arch): New function.
7474 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7475 (get_frame_memory, get_frame_unsigned_memory): Declare.
7476 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7477 get_frame_memory_unsigned and get_frame_arch.
7478 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7479
cb123844
RG
74802003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7481
7482 * MAINTAINERS (write after approval): Add myself.
7483
1bb792e9
JB
74842003-06-03 Jim Blandy <jimb@redhat.com>
7485
7486 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7487 elements of gregset_t are 64 bits each, but access registers
7488 are still 32 bits, so they're packed two per gregset_t
7489 element. Unpack/pack them properly.
7490
aee8d8ba
DC
74912003-06-02 David Carlton <carlton@bactrian.org>
7492
7493 * linespec.c (find_methods): Break out code into
7494 add_matching_methods and add_constructors.
7495 (add_matching_methods): New.
7496 (add_constructors): Ditto.
7497
bf7488d2
AC
74982003-06-02 Andrew Cagney <cagney@redhat.com>
7499
bf7488d2
AC
7500 * sparc-tdep.c (sparc_print_registers): Delete call to
7501 REGISTER_CONVERTIBLE.
7502 (sparc_gdbarch_init): Do not set register_convertible.
7503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7504 * frv-tdep.c (frv_gdbarch_init): Ditto.
7505 * cris-tdep.c (cris_gdbarch_init): Ditto.
7506
adedef68
EZ
75072003-06-02 Elena Zannoni <ezannoni@redhat.com>
7508
8ffd9b1b 7509 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7510 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7511 (syms_from_objfile): Ditto.
7512
650fcc91
AS
75132003-06-03 Andreas Schwab <schwab@suse.de>
7514
7515 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7516 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7517
df4a182b
RH
75182003-06-02 Richard Henderson <rth@redhat.com>
7519
7520 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7521 a member of all_reggroup.
7522
c483c494
RH
75232003-06-02 Richard Henderson <rth@redhat.com>
7524
7525 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7526 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7527 (alpha_lds, alpha_sts): New.
7528 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7529 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7530 restructure and fail for type sizes other than 4 or 8.
7531 (alpha_value_to_register): Similarly.
7532 (alpha_extract_return_value): Use alpha_sts.
7533 (alpha_store_return_value): Use alpha_lds.
7534 (alpha_gdbarch_init): Update hooks.
7535
b38b6be2
RH
75362003-06-02 Richard Henderson <rth@redhat.com>
7537
7538 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7539 regnum identifiers.
7540 (alpha_sigtramp_register_address): Likewise.
7541
98a8e1e5
RH
75422003-06-02 Richard Henderson <rth@redhat.com>
7543
7544 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7545 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7546 * alpha-tdep.h: Declare them.
7547
7548 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7549 Remove zerobuf. Don't error on UNIQUE.
7550 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7551 (ALPHA_REGSET_UNIQUE): Provide default.
7552 (supply_gregset): Use alpha_supply_int_regs.
7553 (fill_gregset): Use alpha_fill_int_regs.
7554 (supply_fpregset): Use alpha_supply_fp_regs.
7555 (fill_fpregset): Use alpha_fill_fp_regs.
7556 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7557 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7558 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7559 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7560 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7561 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7562
67dfac52
RH
75632003-06-02 Richard Henderson <rth@redhat.com>
7564
f75d70cc
RH
7565 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7566
67dfac52
RH
7567 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7568 (alpha_store_return_value): Likewise.
7569
0cf566ec
DC
75702003-06-02 David Carlton <carlton@math.stanford.edu>
7571
7572 * block.c (contained_in): Add 'const' to arguments.
7573 (block_function): Ditto.
7574 * block.h: Update declarations for block_function and
7575 contained_in.
7576
cdef89d0
DC
75772003-06-02 David Carlton <carlton@math.stanford.edu>
7578
7579 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7580 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7581 * p-valprint.c (pascal_val_print): Ditto.
7582 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7583
72667056
RH
75842003-06-02 Richard Henderson <rth@redhat.com>
7585
98a8e1e5
RH
7586 * alpha-tdep.c (alpha_push_dummy_call): Use
7587 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7588
8ffd9b1b 7589 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7590 sign-extension of 32-bit values.
7591 (alpha_store_return_value): Similarly.
0ede8eca 7592
98a8e1e5
RH
7593 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7594 (alpha_extract_return_value): Likewise.
7595 (alpha_store_return_value): Likewise.
7b5e1cb3 7596
98a8e1e5
RH
7597 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7598 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7599
98a8e1e5
RH
7600 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7601 (alpha_extract_struct_value_address): Likewise.
7602 (alpha_store_return_value): Likewise.
7603 (alpha_store_struct_return): Remove.
7604 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7605
98a8e1e5
RH
7606 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7607 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7608 macros where appropriate.
7609 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7610 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7611
98a8e1e5
RH
7612 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7613 for SP, GP; void_func_ptr for PC; non-language-specific types
7614 for all others.
7615 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7616
6dd77b81
RH
76172003-06-02 Richard Henderson <rth@redhat.com>
7618
7619 * top.h (lim_at_start): Declare.
7620 * main.c (captured_main): Set it.
7621 * top.c (lim_at_start): Define.
7622 (command_loop): Use it instead of &environ.
7623 * event-top.c (command_handler): Likewise.
7624
f4dbdb54
JT
76252003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7626
7627 * mipsnbsd-tdep.c: Update copyright years.
7628 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7629
8f285956
RH
76302003-06-01 Richard Henderson <rth@redhat.com>
7631
98a8e1e5
RH
7632 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7633 (alpha-linux-tdep.o): Update dependencies.
7634 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7635 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7636
615967cb
RH
76372003-06-01 Richard Henderson <rth@redhat.com>
7638
98a8e1e5
RH
7639 * alpha-tdep.c (alpha_register_reggroup_p): New.
7640 (alpha_gdbarch_init): Register it.
615967cb 7641
b59661bd
AC
76422003-06-02 Andrew Cagney <cagney@redhat.com>
7643
7644 * dwarfread.c: Eliminate "register"
7645 (decode_die_type): Eliminate assignment within "if".
7646 (struct_type, decode_array_element_type): Ditto.
7647 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7648 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7649 (decode_modified_type, completedieinfo): Ditto.
7650 * block.c: Eliminate "register".
7651 (blockvector_for_pc_sect): Eliminate assignment within "if".
7652 * cp-support.h (struct symbol): Opaque declaration.
7653 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7654
5ef165c2
RH
76552003-06-01 Richard Henderson <rth@redhat.com>
7656
98a8e1e5
RH
7657 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7658 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7659
143985b7
AF
76602003-06-01 Adam Fedor <fedor@gnu.org>
7661
7662 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7663 * gdbarch.[ch]: Regenerate.
7664 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7665 (hppa_gdbarch_init): Set it in the gdbarch vector.
7666 * i386-tdep.c (i386_fetch_pointer_argument): New
7667 (i386_gdbarch_init): Set it into gdbarch.
7668 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7669 (rs6000_gdbarch_init): Set it in gdbarch.
7670 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7671 (sparc_gdbarch_init): Set it in gdbarch.
7672
ae0167b9
AC
76732003-06-01 Andrew Cagney <cagney@redhat.com>
7674
7c0b4a20
AC
7675 * defs.h (extract_address): Delete declaration.
7676 * findvar.c (extract_address): Delete function.
7677 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7678 extract_address with the inline equivalent,
7679 extract_unsigned_integer.
7680 (xstormy16_extract_struct_value_address): Ditto.
7681 (xstormy16_pointer_to_address): Ditto.
7682 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7683 * v850-tdep.c (v850_push_arguments): Ditto.
7684 (v850_extract_return_value): Ditto.
7685 (v850_extract_struct_value_address): Ditto.
7686 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7687 (sparcnbsd_get_longjmp_target_64): Ditto.
7688 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7689 (get_longjmp_target): Ditto.
7690 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7691 (sh64_extract_struct_value_address): Ditto.
7692 (sh_push_arguments): Ditto.
7693 (sh64_push_arguments): Ditto.
7694 * remote-vxsparc.c (vx_read_register): Ditto.
7695 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7696 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7697 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7698 * mipsv4-nat.c (get_longjmp_target): Ditto.
7699 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7700 * mips-nat.c (get_longjmp_target): Ditto.
7701 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7702 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7703 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7704 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7705 * irix5-nat.c (get_longjmp_target): Ditto.
7706 * irix4-nat.c (get_longjmp_target): Ditto.
7707 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7708 (ia64_push_arguments): Ditto.
7709 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7710 * h8300-tdep.c (h8300_push_arguments): Ditto.
7711 (h8300_store_return_value): Ditto.
7712 (h8300_extract_struct_value_address): Ditto.
7713 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7714 (frv_push_arguments): Ditto.
7715 * avr-tdep.c (avr_pointer_to_address): Ditto.
7716 (avr_push_arguments): Ditto.
7717 * arm-tdep.c (arm_push_dummy_call): Ditto.
7718 (arm_get_longjmp_target): Ditto.
7719 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7720 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7721 (alpha_get_longjmp_target): Ditto.
7722
ae0167b9
AC
7723 * solib-irix.c (extract_mips_address): Inline extract_address,
7724 replacing it with extract_signed_integer.
7725 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7726 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7727 (first_link_map_member, open_symbol_file_object): Ditto.
7728 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7729 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7730 (LM_NEXT, LM_NAME): Ditto.
7731
44d88583
RH
77322003-06-01 Richard Henderson <rth@redhat.com>
7733
98a8e1e5
RH
7734 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7735 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7736 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7737 (alpha_cannot_store_register): Likewise.
7738 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7739 * alpha-nat.c (supply_gregset): Likewise.
7740 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7741
310e9b6a
AC
77422003-06-01 Andrew Cagney <cagney@redhat.com>
7743
7744 * infcall.c (call_function_by_hand): Update comment on
7745 DEPRECATED_DUMMY_WRITE_SP.
7746
7747 * mips-tdep.c (mips_gdbarch_init): Do not set
7748 deprecated_dummy_write_sp.
7749 (mips_eabi_push_dummy_call): Set the SP register.
7750 (mips_o64_push_dummy_call): Set the SP register.
7751 (mips_o32_push_dummy_call): Set the SP register.
7752 (mips_n32n64_push_dummy_call): Set the SP register.
7753
5ab84872
RH
77542003-06-01 Richard Henderson <rth@redhat.com>
7755
98a8e1e5
RH
7756 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7757 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7758 (supply_gregset): Likewise.
7759 * alpha-tdep.c (alpha_store_return_value): Likewise.
7760 (alpha_get_longjmp_target): Likewise.
7761 (alpha_register_name): Constify array.
7762 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7763 deprecated_register_size, deprecated_register_bytes,
7764 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7765 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7766 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7767
09cc52fd
RH
77682003-06-01 Richard Henderson <rth@redhat.com>
7769
7770 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7771 from arg_reg_buffer to regcache to avoid double conversion.
7772
c7f16359
MK
77732003-06-01 Mark Kettenis <kettenis@gnu.org>
7774
7775 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7776 SP_REGNUM.
7777 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7778 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7779
7131cb6e
RH
77802003-06-01 Richard Henderson <rth@redhat.com>
7781
98a8e1e5
RH
7782 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7783 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7784
f3e0f90b
RH
77852003-06-01 Richard Henderson <rth@redhat.com>
7786
98a8e1e5
RH
7787 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7788 not overlapping PC_REGNUM.
f3e0f90b 7789
c88e30c0
RH
77902003-06-01 Richard Henderson <rth@redhat.com>
7791
98a8e1e5
RH
7792 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7793 alpha_push_arguments. Don't dump argument register data to
7794 the target stack. Fix float and 128-bit long double semantics.
7795 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7796 (alpha_fix_call_dummy): Remove.
7797 (alpha_call_dummy_words): Remove.
7798 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7799
f1a559ae
RH
78002003-06-01 Richard Henderson <rth@redhat.com>
7801
7802 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7803
5e045346
AC
78042003-06-01 Andrew Cagney <cagney@redhat.com>
7805
95404a3e
AC
7806 * mips-tdep.c (is_mips16_addr): New function.
7807 (make_mips16_addr, unmake_mips16_addr): New functions.
7808 (pc_is_mips16, mips_fetch_instruction): Use.
7809 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7810 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7811 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7812 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7813 TARGET_MIPS.
7814 * config/mips/tm-mips.h: Update copyright.
7815 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7816 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7817 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7818 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7819 (TM_PRINT_INSN_MACH): Delete.
7820 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7821
5e045346
AC
7822 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7823 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7824 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7825 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7826 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
7827 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
7828 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
7829 mips*-*-riscos* and mips*-*-sysv* onto mips.
7830 * config/mips/mips64.mt: New file.
7831 * config/mips/mips.mt: New file.
7832 * config/mips/littlemips.mt: Delete file.
7833 * config/mips/decstation.mt: Delete file.
7834 * config/mips/vr4300el.mt: Delete file.
7835 * config/mips/vr5000el.mt: Delete file.
7836 * config/mips/vr5000.mt: Delete file.
7837 * config/mips/vr4100.mt: Delete file.
7838 * config/mips/vr4xxxel.mt: Delete file.
7839 * config/mips/vr4300.mt: Delete file.
7840 * config/mips/vr4xxx.mt: Delete file.
7841 * config/mips/bigmips.mt: Delete file.
7842 * config/mips/bigmips64.mt: Delete file.
7843 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7844 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7845 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7846 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7847 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7848 "tm-bigmips.h".
7849 * config/mips/tm-irix3.h: Ditto.
7850 * config/mips/tm-mipsv4.h: Ditto.
7851 * config/mips/tm-embed.h: Ditto.
7852 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7853 "tm-bigmips64.h".
7854 * config/mips/tm-vr5000el.h: Delete file.
7855 * config/mips/tm-tx39l.h: Delete file.
7856 * config/mips/tm-vr4300el.h: Delete file.
7857 * config/mips/tm-vr4xxxel.h: Delete file.
7858 * config/mips/tm-vr4300.h: Delete file.
7859 * config/mips/tm-vr4100.h: Delete file.
7860 * config/mips/tm-vr4xxx.h: Delete file.
7861 * config/mips/tm-vr5000.h: Delete file.
7862 * config/mips/tm-embedl64.h: Delete file.
7863 * config/mips/tm-embedl.h: Delete file.
7864 * config/mips/tm-embed64.h: Delete file.
7865 * config/mips/tm-bigmips64.h: Delete file.
7866 * config/mips/tm-bigmips.h: Delete file.
7867
2473a4a9
MK
78682003-06-01 Mark Kettenis <kettenis@gnu.org>
7869
97a5b208
MK
7870 Fix gdb/1216.
7871 * shnbsd-nat.c: Include "sh-tdep.h".
7872
2473a4a9
MK
7873 From Richard Henderson <rth@redhat.com>:
7874 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7875
e0f7ec59
AC
78762003-05-31 Andrew Cagney <cagney@redhat.com>
7877
7878 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
7879 forward declaration.
7880 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7881 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7882 (mips_find_saved_regs): Use set_reg_offset.
7883 (mips_frame_init_saved_regs): Delete function.
7884 (mips_pop_frame): Call mips_find_saved_regs instead of
7885 DEPRECATED_FRAME_INIT_SAVED_REGS.
7886
68dcc709
AC
78872003-05-31 Andrew Cagney <cagney@redhat.com>
7888
7889 * mips-tdep.c (mips_gdbarch_init): Do not set
7890 deprecated_max_register_raw_size, register_virtual_size, and
7891 deprecated_max_register_virtual_size.
7892
cfc14b3a
MK
78932003-05-31 Mark Kettenis <kettenis@gnu.org>
7894
6405b0a6
MK
7895 * i386-tdep.c: Include "dwarf2-frame.h".
7896 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7897 * Makefile.in (i386-tdep.o): Update dependencies.
7898
cfc14b3a
MK
7899 * dwarf2-frame.c, dwarf2-frame.h: New files.
7900 * Makefile.in (SFILES): Add dwarf2-frame.c.
7901 (dwarf2_frame_h): Define.
7902 (COMMON_OBS): Add dwarf2-frame.o.
7903 (dwarf2-frame.o): Add dependencies.
7904
6a2751d2
AJ
79052003-05-31 Andreas Jaeger <aj@suse.de>
7906
7907 * x86-64-linux-nat.c: Fix comment.
7908
1c3545ae
MK
79092003-05-31 Mark Kettenis <kettenis@gnu.org>
7910
10f93086
MK
7911 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7912 function signature.
7913
1c3545ae
MK
7914 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7915 have a sigcontext_addr handler.
7916 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7917 sigcontext_addr handler.
7918
e11c53d2
AC
79192003-05-31 Andrew Cagney <cagney@redhat.com>
7920
7921 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7922 (print_fp_register_row): Replace do_fp_register_row.
7923 (mips_print_fp_register): Add "file" and "frame" parameters.
7924 (mips_print_register): Add "file" and "frame" parameters.
7925 (mips_print_registers_info): Replace mips_do_registers_info.
7926 (mips_gdbarch_init): Set print_registers_info instead of
7927 deprecated_do_registers_info.
7928 (mips_read_fp_register_single): Add "frame" parameter.
7929 (mips_read_fp_register_double): Add "frame" parameter.
7930
a3386186
MK
79312003-05-31 Mark Kettenis <kettenis@gnu.org>
7932
70913449
MK
7933 * i386-tdep.c (i386_register_name): Check for MMX registers first.
7934 Fixes a bug where GDB would print the wrong register names for
7935 targets without SSE.
7936
2b5e0749
MK
7937 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7938 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7939 registers.
7940
7941 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7942 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7943 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7944 TDEP->sc_sp_offset.
7945
a3386186
MK
7946 From Michal Ludvig <mludvig@suse.cz>:
7947 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7948 and `sc_num_regs'.
7949 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7950 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7951 I386_ST0_REGNUM): Move here from...
7952 * i386-tdep.c: ... here.
7953 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7954 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7955 registers if possible.
7956 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7957 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7958 Remove variables.
7959 (i386bsd_sc_reg_offset): New variable.
7960 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
7961 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7962 TDEP->sc_sp_offset.
7963 (i386fbsd_sc_reg_offset): New variable.
7964 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
7965 TDEP->sc_num_regs.
7966 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
7967 variables.
7968 (i386fbsd4_sc_reg_offset): New variable.
7969 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
7970 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7971 TDEP->sc_sp_offset.
7972 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
7973 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
7974 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
7975 Remove variables.
7976 (i386nbsd_sc_reg_offset): New variable.
7977 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
7978 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7979 TDEP->sc_sp_offset.
7980 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
7981 Remove variables.
7982 (i386obsd_sc_reg_offset): New variable.
7983 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
7984 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7985 TDEP->sc_sp_offset.
7986 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
7987 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
7988 for frame pointer offset in `struct sigcontext'.
7989
25ab4790
AC
79902003-05-31 Andrew Cagney <cagney@redhat.com>
7991
7992 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
7993 architecture methods call_dummy_words, sizeof_call_dummy_words,
7994 push_return_address, store_struct_return, and fix_call_dummy. Set
7995 push_dummy_call instead of deprecated_push_arguments.
7996 (mips_store_struct_return): Delete function.
7997 (mips_fix_call_dummy): Delete function.
7998 (mips_push_return_address): Delete function.
7999 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8000 RA_REGNUM and T9_REGNUM.
8001 (mips_n32n64_push_dummy_call): Ditto for
8002 mips_n32n64_push_arguments.
8003 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8004 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8005
6a65450a
AC
80062003-05-31 Andrew Cagney <cagney@redhat.com>
8007
8008 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8009 "dummy_addr" to "bp_addr".
8010 * infcall.c (call_function_by_hand): Pass "funaddr" to
8011 gdbarch_push_dummy_call.
8012 * gdbarch.h, gdbarch.c: Re-generate.
8013 * i386-tdep.c (i386_push_dummy_call): Update.
8014 * arm-tdep.c (arm_push_dummy_call): Update.
8015 * d10v-tdep.c (d10v_push_dummy_call): Update.
8016
c4f35dd8
MK
80172003-05-31 Mark Kettenis <kettenis@gnu.org>
8018
8019 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8020 variable declarations.
8021 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8022 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8023 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8024 x86_64_init_frame_pc, x86_64_init_frame_pc,
8025 x86_64_function_has_prologue): Remove prototypes.
8026 (X86_64_NUM_GREGS): New define.
8027 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8028 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8029 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8030 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8031 XMM1_REGNUM): Remove defines.
8032 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8033 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8034 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8035 X86_64_XMM1_REGNUM): New defines.
8036 (struct x86_64_register_info): Renamed from `struct
8037 register_info'. Remove `size' member.
8038 (x86_64_register_info_table): Remove variable.
8039 (x86_64_register_info): New variable.
8040 (X86_64_NUM_REGS): New define.
8041 (X86_64_NUM_GREGS): Remove define.
8042 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8043 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8044 Remove variables.
8045 (x86_54_dwarf2_reg_to_regnum): Remove function.
8046 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8047 (x86_64_dwarf_reg_to_regnum): New function.
8048 (x86_64_register_name): Rewrite.
8049 (x86_64_register_raw_size): Remove function.
8050 (x86_64_register_byte_table): Remove variable.
8051 (x86_64_register_byte): Remove function.
8052 (x86_64_register_virtual_type): Remove function.
8053 (x86_64_register_type): New function.
8054 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8055 x86_64_register_convert_to_raw): Remove functions.
8056 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8057 (x86_64_use_struct_convention): Make static. Adjust for renamed
8058 defines.
8059 (x86_64_frame_init_saved_regs): Remove function.
8060 (x86_64_push_arguments): Make static. Change to accept a regcache
8061 as argument.
8062 (x86_64_store_return_value, x86_64_extract_return_value): Make
8063 static. Rewrite based on i386 counterparts.
8064 (x86_64_push_dummy_call): New function.
8065 (X86_64_NUM_SAVED_REGS): New define.
8066 (x86_64_register_number): Remove function.
8067 (x86_64_store_struct_return): Remove function.
8068 (x86_64_frameless_function_invocation,
8069 x86_64_function_has_prologue): Remove functions.
8070 (PROLOG_BUFSIZE): Remove define.
8071 (struct x86_64_frame_cache): New structure.
8072 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8073 x86_64_frame_cache, x86_64_frame_this_id,
8074 x86_64_frame_prev_register, x86_64_frame_p,
8075 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8076 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8077 functions.
8078 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8079 variables.
8080 (x86_64_skip_prologue): Rewrite in terms of
8081 x86_64_analyze_prologue.
8082 (x86_64_frame_base_address): New function.
8083 (x86_64_frame_base): New variable.
8084 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8085 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8086 set deprecated_fp_regnum, deprecated_register_size,
8087 deprecated_register_bytes, register_raw_size, register_byte,
8088 register_virtual_type, register_convertiable,
8089 register_convert_to_virtual, convert_to_raw,
8090 deprecated_get_saved_register, deprecated_target_read_fp,
8091 deprecated_push_arguments, deprecated_push_return_address,
8092 deprecated_pop_frame, deprecated_store_struct_return,
8093 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8094 frameless_function_invocation, deprecated_frame_saved_pc,
8095 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8096 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8097 deprecated_init_frame_pc and virtual_frame_pointer. Call
8098 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8099 and x86_64_frame_p. Call frame_base_set_default to register
8100 x86_64_frame_base.
8101 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8102 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8103 (_initialize_x86_64_tdep): Remove function.
8104 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8105 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8106 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8107 define.
8108 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8109 (x86_64_linux_sigcontext_addr): Rewrite.
8110 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8111 x86_64_linux_frame_saved_pc): Remove functions.
8112 (x86_64_linux_pc_in_sigtramp): Renamed from
8113 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8114 trampoline.
8115 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8116 Remove_functions.
8117 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8118 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8119 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8120 (x86_64_regmap): Rename to regmap.
8121 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8122 x86_64_num_gregs.
8123 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8124 x86_64_regmap.
8125 (x86_64_fxsave_offset): Remove function.
8126 (supply_fpregset): Simply call x86_64_supply_fxsave.
8127 (fill_fpregset): Simply call x86_64_fill_fxsave.
8128 (fetch_inferior_registers, store_inferior_registers): Avoid
8129 asignment in if-statement.
8130 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8131 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8132 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8133 (fetch_core_registers): Remove function.
8134 (linux_elf_core_fns): Remove.
8135 (offsetoff): Don't define.
8136 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8137 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8138 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8139 add core-regset.o.
8140 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8141 protection against multiple includes instead of NM_X86_64_h. Add
8142 various comments. Include "config/nm-linux.h". Don't include
8143 <signal.h>.
8144 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8145 GET_THREAD_SIGNALS): Remove defines.
8146 (x86_64_register_u_addr, kernel_u_size,
8147 lin_thread_get_thread_signals): Remove prototypes.
8148 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8149 [HAVE_LINK_H]: Don't include "solib.h".
8150 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8151 * config/i386/tm-x86-64linux.h: Fix comments.
8152 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8153 x86-64-tdep.o): Update dependencies.
8154
c25083af
AC
81552003-05-30 Andrew Cagney <cagney@redhat.com>
8156
c8f55a7b
AC
8157 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8158 Change parameter type to a "struct regcache *".
8159
c25083af
AC
8160 * gdbarch.sh: Regardless of the multi-arch level, always define
8161 the macro when not already defined.
8162 * gdbarch.h, gdbarch.c: Re-generate.
8163
fbe586ae
RH
81642003-05-30 Richard Henderson <rth@redhat.com>
8165
8166 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8167 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8168 (alpha_mdebug_frame_this_id): Likewise.
8169 (alpha_mdebug_frame_prev_register): Likewise.
8170 (alpha_mdebug_frame_base_address): Likewise.
8171 (alpha_mdebug_frame_locals_address): Likewise.
8172 (alpha_mdebug_frame_args_address): Likewise.
8173 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8174 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8175 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8176 loop increment.
8177 (alpha_heuristic_frame_this_id): Make static.
8178 (alpha_heuristic_frame_prev_register): Likewise.
8179 (alpha_heuristic_frame_base_address): Likewise.
8180 * alpha-tdep.h: Update.
8181
acd5c798
MK
81822003-05-30 Mark Kettenis <kettenis@gnu.org>
8183
8184 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8185 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8186 defenitions.
8187 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8188 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8189 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8190 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8191 I386_ST0_REGNUM): New defines.
8192 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8193 codestream_get): Remove define.
8194 (codestream_next_addr, condestream_addr, condestream_buf,
8195 codestream_off, codestream_cnt): Remove variables.
8196 (codestream_fill, codestream_seek, codestream_read): Remove
8197 functions.
8198 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8199 functionality.
8200 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8201 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8202 i386_frame_saved_pc, i386_saved_pc_after_call,
8203 i386_frame_num_args, i386_frame_init_saved_regs,
8204 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8205 i386_push_arguments): Remove functions.
8206 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8207 functionality. Use i386_analyze_prologue instead of
8208 i386_get_frame_setup.
8209 (I386_NUM_SAVED_REGS): New define.
8210 (struct i386_frame_cache): New structure.
8211 (i386_alloc_frame_cache, i386_analyze_struct_return,
8212 i386_skip_probe, i386_analyze_frame_setup,
8213 i386_analyze_register_saves, i386_analyze_prologue,
8214 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8215 i386_frame_prev_register, i386_sigtramp_frame_cache,
8216 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8217 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8218 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8219 New functions.
8220 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8221 New variables.
8222 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8223 I386_EAX_REGNUM and I386_EDX_REGNUM.
8224 (i386_extract_return_value, i386_store_return_value): Use
8225 I386_ST0_REGNUM where appropriate.
8226 (i386_extract_struct_value_address): Rewrite to use extract_address.
8227 (i386_svr4_pc_in_sigtramp): Add comment.
8228 (i386_svr4_sigcontext_addr): Rewrite.
8229 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8230 TDEP->sc_sp_offset.
8231 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8232 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8233 of new defines. Set push_dummy_call, don't set
8234 deprecated_push_arguments, deprecated_push_return_address,
8235 deprecated_pop_frame. Don't set parm_boundary. Don't set
8236 deprecated_frame_chain, deprecated_frame_saved_pc,
8237 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8238 save_dummy_frame_tos, unwind_pc. Call
8239 frame_unwind_append_predicate and frame_base_set_default. Don't
8240 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8241 Don't set frameless_function_invocation. Don't set
8242 deprecated_register_bytes, deprecated_register_size,
8243 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8244 * i386-linux-tdep.c: Fix formatting in some comments.
8245 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8246 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8247 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8248 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8249 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8250 redundant parentheses.
8251 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8252 (i386_linux_sigcontext_addr): Use it. Rewrite.
8253 (find_minsym_and_objfile): Change name of second argument.
8254 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8255 changed. Use frame_pc_unwind instead of
8256 DEPRECATED_SAVED_PC_AFTER_CALL.
8257 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8258 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8259 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8260 unwinder.
8261 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8262 "dummy-frame.h".
8263 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8264 (_initialize_i386_cygwin_tdep): New prototype.
8265 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8266 deprecated_frame_chain_valid.
8267 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8268 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8269 Rely on the SVR4 defaults.
8270 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8271 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8272
c89b70f1
AC
82732003-05-30 Andrew Cagney <cagney@redhat.com>
8274
8275 * infcall.c (call_function_by_hand): Always call
8276 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8277
85b32d22
RH
82782003-05-30 Richard Henderson <rth@redhat.com>
8279
c89b70f1
AC
8280 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8281 increment.
85b32d22 8282
bfe51b1e
JB
82832003-05-29 Jim Blandy <jimb@redhat.com>
8284
8285 Use gdbarch methods for solib stuff on PowerPC Linux.
8286 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8287 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8288 show through.
8289 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8290 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8291 giving the same effect as the #definitions above.
8292
1abf022c
AF
82932003-05-29 Adam Fedor <fedor@gnu.org>
8294
8295 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8296 (find_implementation_from_class): Replace it with the standard
8297 case i.e. do nothing.
8298
d2427a71
RH
82992003-05-29 Richard Henderson <rth@redhat.com>
8300
8301 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8302 (alpha_linux_sigtramp_offset): Use it. Make static.
8303 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8304 update for new frame model.
8305 * alpha-mdebug-tdep.c: New file.
8306 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8307 (alpha_osf1_init_abi): Install it.
8308 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8309 (linked_proc_desc_table): Remove.
8310 (alpha_frame_past_sigtramp_frame): Remove.
8311 (alpha_dynamic_sigtramp_offset): Remove.
8312 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8313 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8314 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8315 (push_sigtramp_desc): Remove.
8316 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8317 (alpha_cannot_store_register): Likewise.
8318 (alpha_sigcontext_addr): Remove.
8319 (alpha_find_saved_regs): Remove.
8320 (alpha_frame_init_saved_regs): Remove.
8321 (alpha_init_frame_pc_first): Remove.
8322 (read_next_frame_reg): Remove.
8323 (alpha_frame_saved_pc): Remove.
8324 (alpha_saved_pc_after_call): Remove.
8325 (temp_proc_desc, temp_saved_regs): Remove.
8326 (alpha_about_to_return): Remove.
8327 (cached_proc_desc): Remove.
8328 (alpha_frame_chain): Remove.
8329 (alpha_print_extra_frame_info): Remove.
8330 (alpha_init_extra_frame_info): Remove.
8331 (alpha_frame_locals_address): Remove.
8332 (alpha_frame_args_address): Remove.
8333 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8334 (alpha_push_dummy_frame): Remove.
8335 (alpha_pop_frame): Remove.
8336 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8337 (alpha_read_insn): New.
8338 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8339 for different insn encodings.
8340 (alpha_in_lenient_prologue): Remove.
8341 (struct alpha_sigtramp_unwind_cache): New.
8342 (alpha_sigtramp_frame_unwind_cache): New.
8343 (alpha_sigtramp_register_address): New.
8344 (alpha_sigtramp_frame_this_id): New.
8345 (alpha_sigtramp_frame_prev_register): New.
8346 (alpha_sigtramp_frame_unwind): New.
8347 (alpha_sigtramp_frame_p): New.
8348 (struct alpha_heuristic_unwind_cache): New.
8349 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8350 don't count nop insns that occur between functions.
8351 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8352 heuristic_proc_desc, but without the mdebug wrapping.
8353 (alpha_heuristic_frame_this_id): New.
8354 (alpha_heuristic_frame_prev_register): New.
8355 (alpha_heuristic_frame_unwind): New.
8356 (alpha_heuristic_frame_p): New.
8357 (alpha_heuristic_frame_base_address): New.
8358 (alpha_heuristic_frame_base): New.
8359 (alpha_unwind_dummy_id): New.
8360 (alpha_unwind_pc): New.
8361 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8362 frame related deprecated initializations; install replacements.
8363 (alpha_dump_tdep): Remove.
8364 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8365 (alpha_read_insn, alpha_after_prologue,
8366 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8367 alpha_heuristic_frame_prev_register,
8368 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8369 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8370 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8371 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8372
93ec1121
AC
83732003-05-29 Andrew Cagney <cagney@redhat.com>
8374
8375 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8376 dependant on the availability of ASSERT_FUNCTION.
8377 (ASSERT_FUNCTION): Do not define when there is no function name.
8378
98f08d3d
KB
83792003-05-29 Kevin Buettner <kevinb@redhat.com>
8380
8381 From Jimi X <jimix@watson.ibm.com>:
8382 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8383
0897f59b
JB
83842003-05-28 Jim Blandy <jimb@redhat.com>
8385
8386 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8387 argument to ptrace to int; the system headers should give it the
8388 right type, and pointers don't fit in ints on powerpc64-*-*.
8389
14898363
L
83902003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8391
8392 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8393 DW_TAG_catch_block.
8394
a7a48797
EZ
83952003-05-26 Elena Zannoni <ezannoni@redhat.com>
8396
8397 * stabsread.c (dbx_lookup_type): Make static.
8398 (read_type): Ditto.
8399 (add_undefined_type): Ditto.
8400 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8401 not export.
8402
f5479e9c
EZ
84032003-05-26 Elena Zannoni <ezannoni@redhat.com>
8404
8405 * hpread.c (hpread_has_name): Make static.
8406 (hpread_psymtab_to_symtab): Ditto.
8407 (file_exists): Ditto.
8408 (hpread_call_pxdb): Ditto.
8409 (hpread_pxdb_needed): Ditto.
8410 (hpread_quick_traverse): Ditto.
8411 (hpread_get_header): Ditto.
8412 (hpread_get_lntt): Ditto.
8413 (hpread_get_slt): Ditto.
8414 (class_of): Ditto.
8415
eb2e12d7
AS
84162003-05-25 Andreas Schwab <schwab@suse.de>
8417
78bf922a
AS
8418 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8419 stack_align and deprecated_extra_stack_alignment_needed.
8420 (m68k_stack_align): Delete.
8421
eb2e12d7
AS
8422 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8423 (m68k_register_virtual_size): Likewise.
8424 (altos_skip_prologue): Remove obsolete function.
8425 (isi_frame_num_args): Likewise.
8426 (news_frame_num_args): Likewise.
8427 (m68k_fix_call_dummy): Make static.
8428 (m68k_push_dummy_frame): Likewise.
8429 (m68k_pop_frame): Likewise.
8430 (m68k_skip_prologue): Likewise.
8431 (m68k_frame_init_saved_regs): Likewise.
8432 (m68k_saved_pc_after_call): Likewise.
8433 (m68k_get_longjmp_target): Make multi-arch.
8434 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8435 structure. Register m68k_get_longjmp_target if enabled.
8436 * m68k-tdep.h (struct gdbarch_tdep): Define.
8437 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8438
8439 * Makefile.in (config.status): Also depend on configure.tgt
8440 and configure.host.
8441 (m68klinux-tdep.o): Update dependencies.
8442 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8443 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8444 (M68K_LINUX_JB_PC): Define.
8445 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8446 and take additional parameter.
8447 (m68k_linux_sigtramp_saved_pc): Update.
8448 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8449 m68k_linux_pc_in_sigtramp, in_plt_section,
8450 find_solib_trampoline_target.
8451 * config/m68k/tm-linux.h: Don't include any tm headers.
8452 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8453 (JB_ELEMENT_SIZE): Likewise.
8454 (JB_PC): Likewise.
8455 (GET_LONGJMP_TARGET): Likewise.
8456 (IN_SIGTRAMP): Likewise.
8457 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8458
eb2c22dc
MK
84592003-05-25 Mark Kettenis <kettenis@gnu.org>
8460
8461 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8462 (sparc32_push_arguments): Re-implement by calling
8463 sparc32_do_push_arguments.
8464
44b7b84e
MK
84652003-05-25 Mark Kettenis <kettenis@gnu.org>
8466
8467 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8468 SPARC_O1_REGNUM): New defines.
8469 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8470 (sparc32_store_return_value): New function.
8471 (sparc_extract_struct_value_address): Rewrite to operate on a
8472 regcache.
8473 (sparc_gdbarch_init): Don't set
8474 deprecated_extract_struct_value_address. Set
8475 extract_struct_value_address instead. Don't set
8476 deprecated_extract_return_value and deprecated_store_return_value
8477 for 32-bit targets. Set extract_return_value and
8478 store_return_value instead.
8479 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8480 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8481 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8482 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8483 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8484 (sparc_store_return_value): Remove prototype.
8485 (sparc32_store_return_value): New prototype.
8486 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8487 Adjust prototypes.
8488
f6ad61e3
MK
84892003-05-24 Mark Kettenis <kettenis@gnu.org>
8490
8491 * sparcnbsd-tdep.c: Include "gdb_string.h".
8492
b276f1bb
AC
84932003-05-23 Andrew Cagney <cagney@redhat.com>
8494
8495 * p-valprint.c (pascal_val_print): Replace extract_address with
8496 the inline equivalent extract_unsigned_integer.
8497 * jv-valprint.c (java_value_print): Ditto.
8498 * ada-valprint.c (ada_val_print_1): Ditto.
8499 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8500
e76c5fcc
TR
85012003-05-23 Theodore A. Roth <troth@openavr.org>
8502
8503 * blockframe.c (frameless_look_for_prologue): Remove unused
8504 after_prologue variable.
8505
2cdd89cb
MK
85062003-05-23 Mark Kettenis <kettenis@gnu.org>
8507
8508 * blockframe.c (get_pc_function_start): Rewrite to avoid
8509 asignments in if-statements.
8510
182d43bc
EZ
85112003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8512
8513 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8514 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8515 files, don't relocate absolute symbols (and do use mst_abs).
8516
e8f3fcdd
AC
85172003-05-23 Andrew Cagney <cagney@redhat.com>
8518
8519 * objc-lang.c: Include "gdb_assert.h".
8520 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8521 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8522 (gdb_check, gdb_check_fatal): Delete functions.
8523 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8524 gdb_assert.
8525 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8526 * Makefile.in (objc-lang.o): Update dependencies.
8527
3c23e6fb
ILT
85282003-05-22 Ian Lance Taylor <ian@airs.com>
8529
8530 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8531 with fprintf_filtered, not fprintf_unfiltered.
8532
af1342ab
AC
85332003-05-22 Andrew Cagney <cagney@redhat.com>
8534
8535 * stack.c (frame_info): Inline extract_address, replacing it with
8536 extract_unsigned_integer.
8537 * findvar.c (unsigned_pointer_to_address): Ditto.
8538 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8539 * dwarf2expr.c (dwarf2_read_address): Ditto.
8540 * frame.c (frame_pc_unwind): Update comment.
8541 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8542
47e242ec
JJ
85432003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8544
8545 * infptrace.c (detach): Call print_sys_errmsg rather than
8546 perror_with_name to issue warning message when errno is non-zero
8547 after calling ptrace detach.
8548
e2ac8128
JB
85492003-05-21 J. Brobecker <brobecker@gnat.com>
8550
8551 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8552 macro definitions from here...
8553 * hppa-tdep.c: ...to there.
8554
92b3541e
KB
85552003-05-20 Kevin Buettner <kevinb@redhat.com>
8556
8557 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8558 register_ptrace_addr(). Fix all callers.
8559
55809acb
AS
85602003-05-21 Andreas Schwab <schwab@suse.de>
8561
8562 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8563 dependencies.
8564 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8565 end.
8566 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8567 (_initialize_m68k_linux_tdep): New function.
8568 (m68k_linux_frame_saved_pc): Make static.
8569 (m68k_linux_extract_return_value): Likewise.
8570 (m68k_linux_store_return_value): Likewise.
8571 (m68k_linux_extract_struct_value_address): Likewise.
8572 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8573 Remove.
8574 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8575 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8576 (DEPRECATED_FRAME_SAVED_PC): Remove.
8577
0fbc10f7
KW
85782003-05-20 Kris Warkentin <kewarken@qnx.com>
8579
8580 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8581 regset numbering rather than our own.
8582
58da2eb2
DC
85832003-05-19 David Carlton <carlton@bactrian.org>
8584
8585 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8586
1fcb5155
DC
85872003-05-19 David Carlton <carlton@bactrian.org>
8588
8589 Partial fix for PR c++/827.
8590 * cp-support.h: Include symtab.h.
8591 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8592 * cp-namespace.c: Update contributors.
8593 (cp_lookup_symbol_nonlocal): New.
8594 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8595 (lookup_symbol_file): Ditto.
8596 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8597 * block.h: Declare block_scope, block_using, block_global_block.
8598 * block.c (block_scope): New.
8599 (block_using, block_global_block): Ditto.
8600 * Makefile.in (cp_support_h): Depend on symtab_h.
8601 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8602
5f9a71c3
DC
86032003-05-19 David Carlton <carlton@bactrian.org>
8604
8605 * language.h (struct language_defn): Add 'la_value_of_this'
8606 and 'la_lookup_symbol_nonlocal' members.
8607 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8608 lookup_symbol_static, lookup_symbol_global,
8609 lookup_symbol_aux_block.
8610 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8611 if we should search fields of this and how to do static/global
8612 lookup.
8613 (lookup_symbol_aux_block): Make extern.
8614 (basic_lookup_symbol_nonlocal): New.
8615 (lookup_symbol_static, lookup_symbol_global): Ditto.
8616 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8617 'la_lookup_symbol_nonlocal' members.
8618 * c-lang.c (c_language_defn, cplus_language_defn)
8619 (asm_language_defn, minimal_language_defn): Ditto.
8620 * jv-lang.c (java_language_defn): Ditto.
8621 * language.c (unknown_language_defn, auto_language_defn)
8622 (local_language_defn): Ditto.
8623 * m2-lang.c (m2_language_defn): Ditto.
8624 * objc-lang.c (objc_language_defn): Ditto.
8625 * scm-lang.c (scm_language_defn): Ditto.
8626 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8627 * p-lang.c (pascal_language_defn): Ditto for both.
8628 * Makefile.in (f-lang.o): Depend on value_h.
8629 (p-lang.o): Ditto.
8630
89a9d1b1
DC
86312003-05-19 David Carlton <carlton@bactrian.org>
8632
8633 * block.h: Declare block_static_block.
8634 * block.c (block_static_block): New.
8635 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8636 lookup_symbol_aux_local, calling block_static_block instead.
8637 (lookup_symbol_aux_local): Delete 'static_block' argument.
8638
eed3f8ab
DC
86392003-05-19 David Carlton <carlton@bactrian.org>
8640
8641 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8642
a09d8bda
ML
86432003-05-19 Michal Ludvig <mludvig@suse.cz>
8644
8645 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8646 register numbers mapping.
8647
69636828
AF
86482003-05-18 Adam Fedor <fedor@gnu.org>
8649
8650 * symtab.c (completion_list_objc_symbol): New function.
8651 (make_symbol_completion_list): Use it to add ObjC symbols
8652 when looking though the list.
8653 (language_search_unquoted_string): New function.
8654 (make_file_symbol_completion_list): Use it.
8655
55baeb84
AS
86562003-05-18 Andreas Schwab <schwab@suse.de>
8657
d0b45d99
AS
8658 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8659 dependencies.
8660 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8661 as m68k_linux_extract_return_value.
8662 (DEPRECATED_STORE_RETURN_VALUE): Define as
8663 m68k_linux_store_return_value.
8664 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8665 m68k_linux_extract_struct_value_address.
8666 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8667 get_next_frame, get_frame_base, get_frame_pc.
8668 (m68k_linux_frame_saved_pc): Use get_frame_base.
8669 (m68k_linux_extract_return_value): New function.
8670 (m68k_linux_store_return_value): New function.
8671 (m68k_linux_extract_struct_value_address): New function.
8672 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8673
55baeb84
AS
8674 * c-exp.y (typebase): Remove duplicate occurence of
8675 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8676 of lookup_signed_typename.
55baeb84 8677
b6b08ebf
MK
86782003-05-18 Mark Kettenis <kettenis@gnu.org>
8679
8680 * dwarf2loc.c (find_location_expression): Change type of second
8681 argument to `size_t *'.
8682 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8683 for size variable.
8684
5ad1c190
DC
86852003-05-18 David Carlton <carlton@bactrian.org>
8686
8687 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8688 'linkage_name'. Add comment.
8689 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8690 'linkage_name'.
8691 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8692 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8693 (lookup_block_symbol): Ditto.
8694
b8b527c5
AC
86952003-05-16 Andrew Cagney <cagney@redhat.com>
8696
8697 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8698 * gdbarch.h, gdbarch.c: Re-generate.
8699 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8700 * TODO (REGISTER_BYTES): Delete reference.
8701 * alpha-tdep.c (alpha_gdbarch_init): Update.
8702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8703 * x86-64-tdep.c (x86_64_init_abi): Update.
8704 * vax-tdep.c (vax_gdbarch_init): Update.
8705 * v850-tdep.c (v850_gdbarch_init): Update.
8706 * sparc-tdep.c (sparc_gdbarch_init): Update.
8707 * sh-tdep.c (sh_gdbarch_init): Update.
8708 * s390-tdep.c (s390_gdbarch_init): Update.
8709 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8710 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8711 (ns32k_gdbarch_init_32382): Update.
8712 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8713 * mcore-tdep.c (mcore_gdbarch_init): Update.
8714 * m68k-tdep.c (m68k_gdbarch_init): Update.
8715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8716 * ia64-tdep.c (ia64_gdbarch_init): Update.
8717 * i386-tdep.c (i386_gdbarch_init): Update.
8718 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8719 * hppa-tdep.c (hppa_gdbarch_init): Update.
8720 * h8300-tdep.c (h8300_gdbarch_init): Update.
8721 * frv-tdep.c (frv_gdbarch_init): Update.
8722 * cris-tdep.c (cris_gdbarch_init): Update.
8723 * avr-tdep.c (avr_gdbarch_init): Update.
8724 * arm-tdep.c (arm_gdbarch_init): Update.
8725 * sparc-tdep.c (sparc_pop_frame): Update.
8726 * rs6000-tdep.c (rs6000_pop_frame): Update.
8727 * remote.c (init_remote_state): Update.
8728 (remote_prepare_to_store): Update.
8729 * remote-vx.c (vx_prepare_to_store): Update.
8730 * remote-sds.c (sds_fetch_registers): Update.
8731 (sds_prepare_to_store): Update.
8732 * remote-array.c: Update.
8733 * regcache.c (init_legacy_regcache_descr): Update.
8734 (init_regcache_descr): Update.
8735 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8736 (mips_o64_extract_return_value): Update.
8737 * irix5-nat.c (fetch_core_registers): Update.
8738 * irix4-nat.c (fetch_core_registers): Update.
8739 * i386-tdep.h: Update.
8740 * hppa-tdep.c (pa_do_registers_info): Update.
8741 (pa_do_strcat_registers_info): Update.
8742 * cris-tdep.c (cris_register_bytes_ok): Update.
8743 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8744 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8745 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8746 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8747 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8748 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8749 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8750 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8751 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8752 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8753 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8754 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8755 (REGISTER_BYTES_OK): Update.
8756 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8757 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8758
ee2842e2
ILT
87592003-05-16 Ian Lance Taylor <ian@airs.com>
8760
8761 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8762 (vax_print_insn, print_insn_arg): Remove static functions.
8763 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8764 print_insn_vax from opcodes library.
8765 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8766
973177d3
AC
87672003-05-15 Andrew Cagney <cagney@redhat.com>
8768
aaab4dba
AC
8769 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8770 * target.h (memory_breakpoint_from_pc): Delete declaration.
8771 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8772 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8773 * monitor.c (monitor_insert_breakpoint): Use
8774 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8775 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8776 * gdbarch.h, gdbarch.c: Re-generate.
8777 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8778 (sparc_gdbarch_init): Set breakpoint_from_pc to
8779 sparc_breakpoint_from_pc.
8780 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8781 (BREAKPOINT_FROM_PC): Define.
8782 (sparc_breakpoint_from_pc): Declare.
8783 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8784 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8785 (BREAKPOINT_FROM_PC): Define.
8786 (BREAKPOINT): Delete macro.
8787 * target.h: Update comment.
8788 * s390-tdep.c (s390_gdbarch_init): Update comments.
8789 * remote.c: Update comments.
8790 * remote-mips.c: Update comments.
8791 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8792 * mem-break.c: Update comment.
8793 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8794 (ia64_memory_insert_breakpoint): Update.
8795 * config/sparc/tm-sparc.h: Update comment.
8796 * config/pa/tm-hppa64.h: Update comment.
8797 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8798 (rs6000_breakpoint_from_pc): Update.
8799 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8800 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8801 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8802 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8803 (mips_breakpoint_from_pc): Update.
8804 (mips_dump_tdep): Update.
8805
e06963ff
AC
8806 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8807 * minsyms.c (lookup_minimal_symbol): Inline
8808 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8809
973177d3
AC
8810 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8811 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8812 * p-lang.c (pascal_printstr): Ditto.
8813 * objc-lang.c (objc_printstr): Ditto.
8814 * m2-lang.c (m2_printstr): Ditto.
8815 * jv-valprint.c (java_print_value_fields): Ditto.
8816 * f-lang.c (f_printstr): Ditto.
8817 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
8818 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8819 for repeat_count_threshold.
8820 * Makefile.in (cp-valprint.o): Update dependencies.
8821
5ea2bd7f 88222003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8823
5ea2bd7f
JJ
8824 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8825 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
8826 they start with mov r2,r12. Support skipping over indirect stores
8827 of the input registers. Upon hitting a non-nop branch instruction
8828 or predicated instruction, bail out by setting lim_pc to the current
8829 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
8830 beyond our calculated value and we have trust_limit set,
8831 use the lim_pc value.
8832
cc8c88f3
AC
88332003-05-15 Andrew Cagney <cagney@redhat.com>
8834
8835 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8836 generic_find_dummy_frame.
8837 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8838 (deprecated_generic_find_dummy_frame): Update.
8839 (deprecated_read_register_dummy): Update.
8840 * frame.c (deprecated_generic_get_saved_register): Update.
8841
909cd28e
TR
88422003-05-15 Theodore A. Roth <troth@openavr.org>
8843
8844 * avr-tdep.c (avr_breakpoint_from_pc): New function.
8845 (avr_gdbarch_init): Set breakpoint_from_pc method.
8846
b923b08d
AC
88472003-05-15 Andrew Cagney <cagney@redhat.com>
8848
8849 * regcache.c (build_regcache): Set deprecated_register_valid
8850 directly.
8851 (deprecated_grub_regcache_for_register_valid): Delete function.
8852 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8853 declaration.
8854
ae2f03ac 88552003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
8856
8857 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
8858 * symtab.c (lookup_symbol_aux): Delete calls to
8859 lookup_symbol_aux_minsyms.
8860 (lookup_symbol_aux_minsyms): Comment out function and
8861 prototype. Delete lookup by mangled name.
ae2f03ac 8862
18ec9831
KB
88632003-05-14 Kevin Buettner <kevinb@redhat.com>
8864
8865 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8866 correctly indicate an empty stack and ``stack_allocated'' to the
8867 indicate the number of elements initially allocated.
8868 (dwarf_expr_grow_stack): Simplify method for computing new
8869 stack size. Don't loop infinitely if ``stack_len'' is zero.
8870 (execute_stack_op): Move ``ctx->in_reg'' initialization
8871 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8872 be used in conjuction with DW_OP_piece. Revise error message
8873 accordingly.
8874
de18ac1f
TR
88752003-05-14 Theodore A. Roth <troth@openavr.org>
8876
8877 * MAINTAINERS: Update my email address.
8878 * avr-tdep.c: Ditto.
8879
176620f1
EZ
88802003-05-14 Elena Zannoni <ezannoni@redhat.com>
8881
8882 * symtab.h (enum domain_enum): Rename from namespace_enum.
8883 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8884 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8885 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8886 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8887 TYPES_NAMESPACE, METHODS_NAMESPACE.
8888 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8889 (struct symbol, struct partial_symbol): Rename field
8890 'namespace_enum namespace' to 'domain_enum domain'.
8891 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8892 Delete old define kludge for namespace.
8893
8894 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8895 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8896 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8897 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8898 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8899 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8900 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8901 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8902 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8903 occurrences of the above.
8904
b7f31508
ILT
89052003-05-14 Ian Lance Taylor <ian@airs.com>
8906
8907 * Makefile.in (install-only): Use $(SHELL) when running
8908 mkinstalldirs.
8909
2fdbdd39
ILT
89102003-05-13 Ian Lance Taylor <ian@airs.com>
8911
a208d82c
ILT
8912 * MAINTAINERS (write after approval): Add myself.
8913
2fdbdd39
ILT
8914 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8915 second and third arguments.
8916 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8917 * ser-unix.c (_initialize_ser_hardwire): Likewise.
8918
fbd9dcd3
AC
89192003-05-13 Andrew Cagney <cagney@redhat.com>
8920
8921 * defs.h (store_address): Delete declaration.
8922 findvar.c (store_address): Delete function.
8923 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8924 store_unsigned_integer.
8925 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8926 * v850-tdep.c (v850_push_arguments): Ditto.
8927 * sparc-tdep.c (sparc_get_saved_register): Ditto.
8928 * sh-tdep.c (sh64_get_saved_register): Ditto.
8929 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8930 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8931 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8932 (mips_get_saved_register): Ditto.
8933 * ia64-tdep.c (ia64_get_saved_register): Ditto.
8934 (find_func_descr, ia64_push_arguments): Ditto.
8935 * i386-tdep.c (i386_push_arguments): Ditto.
8936 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8937 * frv-tdep.c (frv_push_arguments): Ditto.
8938 * frame.c (legacy_saved_regs_prev_register): Ditto.
8939 (deprecated_generic_get_saved_register): Ditto.
8940 * findvar.c (unsigned_address_to_pointer): Ditto.
8941 * dwarf2read.c (dwarf2_const_value): Ditto.
8942 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8943 * alpha-tdep.c (alpha_push_arguments): Ditto.
8944
6760f9e6
JB
89452003-05-12 J. Brobecker <brobecker@gnat.com>
8946
8947 * NEWS: Mention that the hppa-hpux port has been partially
8948 multiarched (32bit ABIT only, so far).
8949
30e221b4
AC
89502003-05-11 Andrew Cagney <cagney@redhat.com>
8951
8952 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8953 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8954 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8955 sim/testsuite/sim/arm/misaligned2.ms, and
8956 sim/testsuite/sim/arm/misaligned3.ms.
8957 * disasm.h (struct ui_file): Add opaque struct declaration.
8958 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
8959 * frame.h (struct ui_file): Ditto.
8960
dea7f9ba
MK
89612003-05-11 Mark Kettenis <kettenis@gnu.org>
8962
8963 * value.h: Pretty print.
8964
01986c48
MK
89652003-05-10 Mark Kettenis <kettenis@gnu.org>
8966
8967 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
8968
123a958e
AC
89692003-05-08 Andrew Cagney <cagney@redhat.com>
8970
8971 * regcache.h (max_register_size): Delete declaration.
8972 * regcache.c (max_register_size): Delete function.
8973 (struct regcache_descr): Delete field "max_register_size".
8974 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
8975 registers fit in MAX_REGISTER_SIZE.
8976 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
8977 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
8978 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
8979 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
8980 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
8981 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
8982 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
8983 * dve3900-rom.c, hppa-tdep.c: Ditto.
8984
eb294659
DC
89852003-05-08 David Carlton <carlton@math.stanford.edu>
8986
8987 * valops.c (push_word): Fix typo.
8988
d9d9c31f
AC
89892003-05-08 Andrew Cagney <cagney@redhat.com>
8990
8991 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
8992 * gdbarch.h: Re-generate.
8993 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
8994 (legacy_max_register_raw_size): Delete declaration.
8995 * regcache.c (legacy_max_register_raw_size): Delete function.
8996 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
8997 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
8998 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
8999 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9000 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9001 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9002 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9003 * findvar.c, dwarf2cfi.c: Ditto.
9004
22540ece
AC
90052003-05-08 Andrew Cagney <cagney@redhat.com>
9006
9007 * mips-tdep.c (read_signed_register): New function, moved to here
9008 from "regcache.c".
9009 (read_signed_register_pid): Ditto.
9010 * regcache.c (read_signed_register_pid): Delete function, moved to
9011 "mips-tdep.c".
9012 (read_signed_register): Ditto.
9013 * regcache.h (read_signed_register): Delete declaration.
9014 (read_signed_register_pid): Delete declaration.
9015
0c92afe8
AC
90162003-05-08 Andrew Cagney <cagney@redhat.com>
9017
9018 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9019 * gdbarch.h: Re-generate.
9020 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9021 (legacy_max_register_virtual_size): Delete declaration.
9022 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9023 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9024 * tracepoint.c (memrange_sortmerge): Ditto.
9025 * sparc-tdep.c (sparc_print_registers): Ditto.
9026 * regcache.c (legacy_max_register_virtual_size): Delete function.
9027
6037b830
JB
90282002-05-08 J. Brobecker <brobecker@gnat.com>
9029
9030 * fork-child.c (escape_bang_in_quoted_argument): New function.
9031 (fork_inferior): Escape '!' characters in quoted arguments
9032 only when needed.
9033
5d62c8b1
JB
90342003-05-08 J. Brobecker <brobecker@gnat.com>
9035
9036 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9037 the language of the CU is not currently supported by GDB.
9038
20a0e81d
JB
90392003-05-08 J. Brobecker <brobecker@gnat.com>
9040
9041 * defs.h (language): Add language_minimal enum value.
9042 * c-lang.c (minimal_language_defn): New language definition.
9043 (_initialize_c_language): Add the new minimal language to the list
9044 of languages known to GDB.
9045
710ee10a
KB
90462003-05-08 Kevin Buettner <kevinb@redhat.com>
9047
9048 * frame.c (get_frame_type): Don't attempt to lazily initialize
9049 frame's unwinder for legacy frames.
9050
1750fa04
AC
90512003-05-07 Andrew Cagney <cagney@redhat.com>
9052
9053 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9054 and "regcache" parameters.
9055 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9056
ddf9f258 90572003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9058
9059 * dwarf2read.c (dwarf_decode_lines): Only use output of
9060 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9061 the current address.
9062
87767c29
AC
90632003-05-07 Andrew Cagney <cagney@redhat.com>
9064
9065 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9066 code.
9067
5e7b2f39
JB
90682003-05-07 Jim Blandy <jimb@redhat.com>
9069
9070 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9071 'maint info symtabs' and 'maint info psymtabs'.
9072 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9073 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9074 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9075 Declarations updated.
9076 * maint.c (maintenance_list_command): Delete.
9077 (_initialize_maint_cmds): Update calls to add_cmd.
9078 * gdbcmd.h (maintenancelistlist): Delete declaration.
9079 * cli/cli-cmds.c (maintenancelistlist): Delete.
9080 (init_cmd_lists): Don't initialize it.
9081 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9082
f6684c31
AC
90832003-05-07 Andrew Cagney <cagney@redhat.com>
9084
9085 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9086 "regcache".
9087 (d10v_print_registers_info): Update.
9088 (d10v_dmap_register, d10v_imap_register): Delete functions.
9089 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9090 and "imap_register".
9091 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9092 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9093 * arch-utils.c (generic_remote_translate_xfer_address): Add
9094 "regcache" and "gdbarch" parameters.
9095 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9096 parameter. Change class to multi-arch.
9097 * gdbarch.h, gdbarch.c: Re-generate.
9098 * remote.c (remote_xfer_memory): Use
9099 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9100
e4846b08
JJ
91012003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9102
9103 * infrun.c (prev_pc): Move declaration ahead of proceed().
9104 (proceed): Refresh prev_pc value before resuming.
9105 (stop_stepping): Remove code to refresh prev_pc.
9106
6b71b8ac
KW
91072003-05-06 Kris Warkentin <kewarken@qnx.com>
9108
9109 * nto-tdep.c: Removed stray comment.
9110
47979a4b
KW
91112003-05-06 Kris Warkentin <kewarken@qnx.com>
9112
9113 * i386-nto-tdep.c: Fix old K&R function definitions.
9114 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9115 Also change add_show_from_set() call to add_setshow_cmd().
9116 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9117
00905d52
AC
91182003-05-05 Andrew Cagney <cagney@redhat.com>
9119
9120 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9121 (fprint_dummy_frames): New function.
9122 (maintenance_print_dummy_frames): New function.
9123 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9124 * frame.c (fprint_frame_id): Make global.
9125 * frame.h (fprint_frame_id): Declare.
9126 * Makefile.in (dummy-frame.o): Update dependencies.
9127
b1e29e33
AC
91282003-05-05 Andrew Cagney <cagney@redhat.com>
9129
9130 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9131 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9132 SIZEOF_CALL_DUMMY_WORDS.
9133 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9134 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9135 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9136 CALL_DUMMY_BREAKPOINT_OFFSET.
9137 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9138 CALL_DUMMY_START_OFFSET.
9139 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9140 * gdbarch.h, gdbarch.c: Re-generate.
9141 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9142 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9143 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9144 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9145 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9146 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9147 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9148 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9149 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9150 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9151 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9152 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9153 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9154 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9155 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9156
91572003-05-05 Kris Warkentin <kewarken@qnx.com>
9158
9159 * configure.tgt: Add i[3456]86-*-nto*.
9160 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9161 * nto-tdep.c: New file. Neutrino target support routines.
9162 * nto-tdep.h: New file. Neutrino target header.
9163 * config/tm-qnxnto.h: New file.
9164 * config/i386/i386nto.mt: New file.
9165 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9166
0ce3d317
AC
91672003-05-04 Andrew Cagney <cagney@redhat.com>
9168
9169 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9170 (load_infrun_state): Ditto.
9171 (struct thread_info): Drop "prev_func_name" field.
9172 * thread.c (load_infrun_state): Update.
9173 (save_infrun_state): Update.
9174 * infrun.c (prev_func_name): Delete variable.
9175 (init_wait_for_inferior): Do not clear prev_func_name.
9176 (stop_stepping, keep_going, context_switch): Do not swap
9177 prev_func_name.
9178 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9179 instead of PC_IN_SIGTRAMP.
9180
46654a5b
AC
91812003-05-04 Andrew Cagney <cagney@redhat.com>
9182
9183 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9184 REGISTER_BYTE with register_offset_hack.
9185 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9186 that REGISTER_BYTE is consistent with the regcache.
9187 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9188 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9189
14b08c1b
MK
91902003-05-04 Mark Kettenis <kettenis@gnu.org>
9191
04c8243f
MK
9192 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9193 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9194
14b08c1b
MK
9195 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9196
c7a11e01
JB
91972003-05-03 J. Brobecker <brobecker@gnat.com>
9198
9199 From Thierry Schneider <tpschneider1@yahoo.com>
9200 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9201 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9202 (mi-cmd-symbol.o): Add rule.
9203
7043d8dc
AC
92042003-05-03 Andrew Cagney <cagney@redhat.com>
9205
9206 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9207 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9208 * gdbarch.h, gdbarch.c: Re-generate.
9209 * d10v-tdep.c (d10v_push_dummy_code): New function.
9210 (d10v_gdbarch_init): Set push_dummy_code.
9211 * infcall.c (legacy_push_dummy_code): New function.
9212 (generic_push_dummy_code): New function.
9213 (push_dummy_code): New function.
9214 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9215 instead of dummy_addr, to push_dummy_call. Move call to
9216 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9217 switch.
9218 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9219
92bf2b80
AC
92202003-05-03 Andrew Cagney <cagney@redhat.com>
9221
9222 * disasm.h (print_insn): Declare.
9223 * disasm.c (init_gdb_disassemble_info): New function.
9224 (gdb_disassembly): Call init_gdb_disassemble_info.
9225 (gdb_print_insn): New function.
9226 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9227 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9228 * mcore-tdep.c: Include "disasm.h"
9229 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9230 * d10v-tdep.c: Include "disasm.h".
9231 (display_trace): Call gdb_print_insn, instead of print_insn.
9232 (print_insn): Delete function.
9233 * printcmd.c: Include "disasm.h".
9234 (print_insn): Delete function.
9235 (print_formatted): Call gdb_print_insn, instead of print_insn.
9236 * Makefile.in (printcmd.o): Update dependencies.
9237 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9238
27d94c49
AC
92392003-05-02 Andrew Cagney <cagney@redhat.com>
9240
82de1e5b
AC
9241 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9242 PC_REGNUM, re-indent.
9243 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9244 PC_REGNUM isn't set.
9245
27d94c49
AC
9246 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9247 * gdbarch.h, gdbarch.c: Re-generate.
9248 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9249 register_virtual_size, pc_regnum, or register_bytes.
9250 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9251 (d10v_register_type): Use D10V_PC_REGNUM.
9252 (d10v_print_registers_info, d10v_read_pc): Ditto.
9253 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9254 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9255
a9c0dc7f
DC
92562003-05-02 David Carlton <carlton@bactrian.org>
9257
9258 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9259 the name with mstrsave.
9260
e33d66ec
EZ
92612003-05-02 Elena Zannoni <ezannoni@redhat.com>
9262
9263 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9264 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9265 (host_charset_name, target_charset_name): New vars for use by
9266 set/show commands.
9267 (host_charset_enum, target_charset_enum): New enums for set/show
9268 commands.
9269 (set_charset_sfunc, set_host_charset_sfunc,
9270 set_target_charset_sfunc): New functions.
9271 (set_host_charset, set_target_charset): Make static.
9272 (list_charsets, set_host_charset_command,
9273 set_target_charset_command): Delete functions.
9274 (show_charset_command): Rewrite as....
9275 (show_charset): Hook this up with the set/show command mechanism.
9276 (_initialize_charset): Change names of charsets to match the
9277 set/show enums. Use host_charset_name and target_charset_name.
9278 Use set/show mechanism for charset, host-charset, target-charset
9279 commands. Do not make 'show host-charset' and 'show
9280 target-charset' be aliases of 'show charset'.
9281
9282 * charset.h (set_host_charset, set_target_charset): Don't export,
9283 they are not used outside the file.
9284
2b6fd0d8
AC
92852003-05-01 Andrew Cagney <cagney@redhat.com>
9286
9287 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9288 (gdb_disassembly): Make "di" non static, always initialize and
9289 cleanup. Always use dis_asm_read_memory.
9290 (gdb_dis_asm_read_memory): Delete function.
9291
6ae2f580
AC
92922003-05-01 Andrew Cagney <cagney@redhat.com>
9293
9294 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9295 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9296
810ecf9f
AC
92972003-04-30 Andrew Cagney <cagney@redhat.com>
9298
9299 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9300 "tm_print_insn_info".
9301 (TARGET_PRINT_INSN_INFO): Delete macro.
9302 (dis_asm_read_memory): Delete function declaration.
9303 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9304 (tm_print_insn_info): Delete variable definition.
9305 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9306 * gdbarch.h, gdbarch.c: Re-generate.
9307 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9308 "deprecated_tm_print_insn_info".
9309 * mcore-tdep.c (mcore_dump_insn): Ditto.
9310 * mips-tdep.c (mips_gdbarch_init): Ditto.
9311 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9312 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9313 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9314 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9315 instead of TARGET_PRINT_INSN_INFO, add comment.
9316 * s390-tdep.c (s390_get_frame_info): Instead of
9317 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9318 (s390_check_function_end, s390_is_sigreturn): Ditto.
9319 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9320 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9321 * disasm.c: Include "gdbcore.h".
9322 (_initialize_disasm): New function, initialize
9323 "deprecated_tm_print_insn_info".
9324 (deprecated_tm_print_insn_info): New variable.
9325 (dis_asm_read_memory): Moved from "corefile.c", made static.
9326 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9327 * Makefile.in (disasm.o): Update dependencies.
9328
07020390
AC
93292003-04-30 Andrew Cagney <cagney@redhat.com>
9330
9331 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9332
a9fa03de
AF
93332003-04-29 Adam Fedor <fedor@gnu.org>
9334
9335 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9336 * infcall.c (find_function_addr): Make non-static.
9337 * infcall.h (find_function_addr): Declare.
9338 * Makefile.in (eval.o): Update dependencies.
9339
1bae87b9
AF
93402003-04-28 Adam Fedor <fedor@gnu.org>
9341
9342 * symtab.c (symbol_find_demangled_name): Check for and demangle
9343 ObjC symbols.
9344 (symbol_init_demangled_name): Init for language_objc as well.
9345
0ba6dca9
AC
93462003-04-28 Andrew Cagney <cagney@redhat.com>
9347
9348 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9349 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9350 * gdbarch.h, gdbarch.c: Re-generate.
9351 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9352 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9353 * inferior.h (deprecated_read_fp): Rename read_fp.
9354 (generic_target_read_fp): Delete declaration.
9355 * regcache.c (generic_target_read_fp): Delete function.
9356 (deprecated_read_fp): Replace read_fp, use
9357 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9358 * d10v-tdep.c (d10v_read_fp): Delete function.
9359 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9360
9361 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9362 deprecated_target_read_fp to generic_target_read_fp.
9363 * sh-tdep.c (sh_gdbarch_init): Ditto.
9364 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9366 * frv-tdep.c (frv_gdbarch_init): Ditto.
9367
9368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9369 deprecated_fp_regnum.
9370 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9371 * vax-tdep.c (vax_gdbarch_init): Ditto.
9372 * v850-tdep.c (v850_gdbarch_init): Ditto.
9373 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9374 * sh-tdep.c (sh_gdbarch_init): Ditto.
9375 * s390-tdep.c (s390_gdbarch_init): Ditto.
9376 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9378 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9379 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9381 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9382 * i386-tdep.c (i386_gdbarch_init): Ditto.
9383 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9385 * frv-tdep.c (frv_gdbarch_init): Ditto.
9386 * cris-tdep.c (cris_gdbarch_init): Ditto.
9387 * avr-tdep.c (avr_gdbarch_init): Ditto.
9388 * arm-tdep.c (arm_gdbarch_init): Ditto.
9389 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9390
9391 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9392 * v850-tdep.c (v850_gdbarch_init): Ditto.
9393 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9394 * sh-tdep.c (sh_gdbarch_init): Ditto.
9395 * s390-tdep.c (s390_gdbarch_init): Ditto.
9396 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9397 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9398 * mips-tdep.c (mips_gdbarch_init): Ditto.
9399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9400 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9401 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9402 * frv-tdep.c (frv_gdbarch_init): Ditto.
9403 * avr-tdep.c (avr_gdbarch_init): Ditto.
9404 * arm-tdep.c (arm_gdbarch_init): Ditto.
9405
9406 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9407 DEPRECATED_FP_REGNUM.
9408 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9409 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9410 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9411 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9412 (sparc32_register_virtual_type): Ditto.
9413 * sh-tdep.c (sh64_frame_chain): Ditto.
9414 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9415 (sh_nofp_frame_init_saved_regs): Ditto.
9416 (sh64_nofp_frame_init_saved_regs): Ditto.
9417 (sh_fp_frame_init_saved_regs): Ditto.
9418 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9419 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9420 * procfs.c (procfs_fetch_registers): Ditto.
9421 (procfs_store_registers): Ditto.
9422 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9423 (store_inferior_registers, fetch_core_registers): Ditto.
9424 (fetch_kcore_registers, clear_regs): Ditto.
9425 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9426 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9427 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9428 * nlm/i386.c (do_status): Ditto.
9429 * mipsv4-nat.c (supply_gregset): Ditto.
9430 * mips-tdep.c: Ditto for comments.
9431 * mips-nat.c (fetch_inferior_registers): Ditto.
9432 (store_inferior_registers, fetch_core_registers): Ditto.
9433 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9434 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9435 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9436 (i386_do_pop_frame, i386_register_type): Ditto.
9437 * hppa-tdep.c (hppa_frame_chain): Ditto.
9438 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9439 (hppa_pop_frame, hppa_read_fp): Ditto.
9440 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9441 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9442 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9443 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9444 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9445 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9446 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9447 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9448 * blockframe.c: Ditto for comments.
9449 * arch-utils.h: Ditto for comments.
9450 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9451 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9452 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9453 * alpha-tdep.h: Ditto for comments.
9454 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9455 (alpha_cannot_store_register): Ditto.
9456 (alpha_push_dummy_frame): Ditto.
9457 * alpha-nat.c (supply_gregset): Ditto.
9458
9459 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9460 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9461 * config/sparc/tm-sparc.h: Update comment.
9462
9463 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9464 deprecated_read_fp instead of TARGET_READ_FP.
9465 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9466 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9467 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9468 deprecated_read_fp instead of read_fp.
9469 * s390-tdep.c (s390_push_arguments): Ditto.
9470 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9471 * frame.h: Ditto in comments.
9472 * frame.c (legacy_get_prev_frame): Ditto.
9473 * dummy-frame.c (dummy_frame_this_id): Ditto.
9474 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9475
d7a27068
AC
94762003-04-28 Andrew Cagney <cagney@redhat.com>
9477
9478 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9479 * gdbarch.h, gdbarch.c: Re-generate.
9480 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9481 * vax-tdep.c (_initialize_vax_tdep): Update.
9482 * v850-tdep.c (_initialize_v850_tdep): Update.
9483 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9484 * s390-tdep.c (_initialize_s390_tdep): Update.
9485 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9486 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9487 * mips-tdep.c (_initialize_mips_tdep): Update.
9488 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9489 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9490 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9491 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9492 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9493 * frv-tdep.c (_initialize_frv_tdep): Update.
9494 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9495 (_initialize_cris_tdep): Update.
9496 * arch-utils.c (legacy_print_insn): Update.
9497 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9498
d2630e69
AF
94992003-04-26 Adam Fedor <fedor@gnu.org>
9500
9501 * linespec.c (decode_objc): New function to decode ObjC calls
9502 (decode_line_1): Check for ObjC calls (using decode_objc)
9503 * Makefile (linespec.o): Update dependencies.
9504
3086aeae
DJ
95052003-04-26 Daniel Jacobowitz <drow@mvista.com>
9506
9507 * breakpoint.h (struct breakpoint_ops): New.
9508 (struct breakpoint): Add ops member.
9509
9510 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9511 (mention): Use new breakpoint ops member.
9512 (set_raw_breakpoint): Initialize ops field to NULL.
9513 (print_exception_catchpoint, print_one_exception_catchpoint)
9514 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9515 (gnu_v3_exception_catchpoint_ops): New.
9516 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9517
1fbec6c3
AF
95182003-04-25 Adam Fedor <fedor@gnu.org>
9519
9520 * Makefile.in (COMMON_OBS): Add objc-lang.o
9521
0ef21242
AC
95222003-04-25 Andrew Cagney <cagney@redhat.com>
9523
9524 * d10v-tdep.c (print_insn): Delete function.
9525 (display_trace): Use TARGET_PRINT_INSN.
9526 (_initialize_d10v_tdep): Do not set tm_print_insn.
9527 (d10v_gdbarch_init): Set print_insn.
9528
f75493ed
AC
95292003-04-25 Andrew Cagney <cagney@redhat.com>
9530
9531 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9532 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9533 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9534 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9535 (nr_dmap_regs, a0_regnum): ... new functions.
9536 (d10v_print_registers_info): Use a0_regnum, use register_size.
9537 (d10v_register_byte): Delete function.
9538 (d10v_register_raw_size): Delete function.
9539 (d10v_register_type): Use a0_regnum.
9540 (d10v_print_registers_info): Use a0_regnum.
9541 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9542 (d10v_gdbarch_init): Do not set register_byte or
9543 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9544 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9545 extract_address.
9546 (trace_command): Use XCALLOC.
9547 (print_insn): Delete reference to tm_print_insn.
9548 (saved_regs_unwinder): Use store_unsigned_integer instead of
9549 store_address.
9550 * frame.h (FRAME_OBSTACK_CALLOC): Define
9551
2202b100
DC
95522003-04-25 David Carlton <carlton@bactrian.org>
9553
9554 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9555
4e45ca2e
AF
95562003-04-24 Adam Fedor <fedor@gnu.org>
9557
9558 * objc-lang.c: Include "valprint.h"
9559 * Makefile.in (objc-lang.o): Update dependencies.
9560
93de3e7f
AF
95612003-04-24 Adam Fedor <fedor@gnu.org>
9562
8ffd9b1b 9563 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9564 architecture dependant compilation and mark as unimplemented
9565 (until they get put in the gdbarch vector).
9566
0f20eeea
DC
95672003-04-23 David Carlton <carlton@bactrian.org>
9568
9569 * cp-support.c (cp_find_first_component): Accept 'operator' in
9570 more locations.
9571
74cfe982
AC
95722003-04-23 Andrew Cagney <cagney@redhat.com>
9573
9574 * infcall.c (call_function_by_hand): Eliminate redundant
9575 indentation. Move "saved_async" and "old_cleanups" to where they
9576 are needed.
8ffd9b1b 9577
52557533
AC
95782003-04-23 Andrew Cagney <cagney@redhat.com>
9579
9580 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9581 and "buffer". Move the "name" code to where it is needed.
9582
158775de
AC
95832003-04-23 Andrew Cagney <cagney@redhat.com>
9584
9585 * infcall.c (call_function_by_hand): Move variables "start_sp",
9586 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9587 code to ON_STACK switch branch.
8ffd9b1b 9588
ebc7896c
AC
95892003-04-23 Andrew Cagney <cagney@redhat.com>
9590
9591 * infcall.c (call_function_by_hand): Make declaration of "i",
9592 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9593 lint.
9594
d727590f
AC
95952003-04-23 Andrew Cagney <cagney@redhat.com>
9596
9597 * infcall.c (call_function_by_hand): Delete variable
9598 "n_method_args". Localize "param_type"'s declaration to the loop
9599 that it is used. Reinstate code assigning to said variable -
9600 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9601 Rationalize code using "param_type".
9602
d585e13a
AC
96032003-04-22 Andrew Cagney <cagney@redhat.com>
9604
9605 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9606 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9607 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9608 to DEPRECATED_PUSH_RETURN_ADDRESS.
9609
051caad9
KB
96102003-04-22 Kevin Buettner <kevinb@redhat.com>
9611
9612 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9613 on the DWARF2 register number prior to fetching a register.
9614
77296879
JB
96152003-04-22 J. Brobecker <brobecker@gnat.com>
9616
9617 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9618 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9619 this macro was always set to 0.
77296879
JB
9620 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9621 considering the fact that this macro was always set to 0.
9622 * hppa-tdep.h (hppa_store_return_value): Likewise.
9623 (hppa_extract_return_value): Likewise.
9624
4252f1df
JB
96252003-04-22 J. Brobecker <brobecker@gnat.com>
9626
9627 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9628 the hppa-pro target only.
9629
14604c6b
JB
96302003-04-21 J. Brobecker <brobecker@gnat.com>
9631
9632 Ongoing multi-arch conversion effort for HP/UX:
9633 * config/pa/tm-hppa.h: Move all macro that are no longer
9634 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9635 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9636
77eb01d1
JB
96372003-04-21 J. Brobecker <brobecker@gnat.com>
9638
9639 * config/pa/tm-hppa.h: Obsolete a section that was only used
9640 for hppa-pro.
9641
61995b3b
JB
96422003-04-21 J. Brobecker <brobecker@gnat.com>
9643
9644 Ongoing multi-arch conversion for HP/UX.
9645 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9646 if already defined (allows hppa64 to stay non-multiarched for now).
9647 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9648
4aa79dcc
AC
96492003-04-21 Andrew Cagney <cagney@redhat.com>
9650
9651 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9652
0f751ff2
AC
96532003-04-21 Andrew Cagney <cagney@redhat.com>
9654
9655 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9656 "i386_num_mmx_regs".
9657
04714b91
AC
96582003-04-21 Andrew Cagney <cagney@redhat.com>
9659
9660 * infcall.c: New file.
9661 * infcall.h: New file.
9662 * valarith.c: Include "infcall.h".
9663 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9664 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9665 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9666 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9667 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9668 (SFILES): Add "infcall.c"
9669 (COMMON_OBS): Add "infcall.o".
9670 (infcall.o): Specify dependencies.
9671 * value.h (call_function_by_hand): Delete declaration.
9672 * inferior.h (run_stack_dummy): Delete declaration.
9673 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9674 (run_stack_dummy): Move to "infcall.c", merged into
9675 call_function_by_hand.
9676 * valops.c (call_function_by_hand): Moved to "infcall.c".
9677 (find_function_addr, value_arg_coerce): Ditto.
9678 (unwindonsignal_p, coerce_float_to_double): Ditto.
9679 (_initialize_valops): Move "set/show coerce-float-to-double", and
9680 "set/show unwindonsignal" commands to "infcall.c".
9681 * v850-tdep.c, target.h: Update comments.
9682 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9683 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9684 (sh64_init_extra_frame_info): Update comments.
9685 * mn10300-tdep.c: Update comments.
9686 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9687 * config/sparc/tm-sparc.h: Update comments.
9688 * breakpoint.h: Update comments.
9689 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9690 * arm-tdep.c: Update comment.
9691
f9d3c2a8
MK
96922003-04-19 Mark Kettenis <kettenis@gnu.org>
9693
c40e1eab
MK
9694 * i386-tdep.c (i386_num_register_names): New variable.
9695 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9696 (MM0_REGNUM): Remove redundant parentheses in define.
9697 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9698 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9699 i386_mxcsr_regnum_p): Remove redundant parentheses.
9700 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9701
94ea66b3
MK
9702 * i386-tdep.c (i386_extract_return_value,
9703 i386_store_return_value): Correct check for availability of
9704 floating-point registers.
9705
54299a1d
MK
9706 * i386-tdep.c (i386_frame_num_args): Remove function.
9707 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9708
c86c27af
MK
9709 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9710 mmx_regnum_to_fp_regnum. Adjust all callers.
9711
f9d3c2a8
MK
9712 * i386-tdep.c (i386_get_longjmp_target): Use
9713 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9714 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9715 extract_address.
9716
94ba74a9
MK
97172003-04-19 Mark Kettenis <kettenis@gnu.org>
9718
9719 * core-regset.c: Update comments to reflect reality. Re-order
9720 includes.
9721 (fetch_core_registers): Use switch instead of if. Remove
9722 redundant prototype.
9723
4074e13c
JB
97242003-04-18 Jim Blandy <jimb@redhat.com>
9725
9726 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9727 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9728
e3ab4aba
RH
97292003-04-17 Richard Henderson <rth@redhat.com>
9730
9731 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9732
627bf7c1
EZ
97332003-04-17 Michael Snyder <msnyder@redhat.com>
9734 Karen Bennet <bennet@redhat.com>
9735
9736 Committed by Elena Zannoni <ezannoni@redhat.com>
9737 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9738
514621a9
EZ
97392003-04-17 Elena Zannoni <ezannoni@redhat.com>
9740
9741 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9742 value if the return type is void.
514621a9 9743
b4acd559
JJ
97442003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9745
9746 * thread-db.c: Reindented.
8ffd9b1b 9747
530b167e 97482003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9749
9750 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9751 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9752 as types.
9753
0a48e7e8
MS
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
8ffd9b1b 9777
ab9fe00e
KB
97782003-04-16 Kevin Buettner <kevinb@redhat.com>
9779
610a3745 9780 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9781 the size of ``long double'' to 16, instead of 8.
9782
e64a344c
MK
97832003-04-16 Mark Kettenis <kettenis@gnu.org>
9784
9785 * i386-linux-nat.c: Add some whitespace to make things more
9786 readable.
9787 (fetch_register, store_register, fetch_inferior_registers,
9788 store_inferior_registers): Get rid of assignment in if-statement.
9789 (store_register): Fix typo in error message.
9790
25d41031
AC
97912003-04-16 Andrew Cagney <cagney@redhat.com>
9792
9793 * utils.c (xmmalloc): Always allocate something, matches
9794 libiberty/xmalloc's semantics.
9795 (xmrealloc, xmcalloc): Ditto.
9796
c50901fd
AC
97972003-04-16 Andrew Cagney <cagney@redhat.com>
9798
9799 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9800 update comments.
9801 (get_frame_type): Initialize unwind and type when needed.
9802 (get_frame_id, frame_register_unwind): Ditto.
9803
f81824a9
AC
98042003-04-16 Andrew Cagney <cagney@redhat.com>
9805
9806 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9807 obsolete.
9808 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9809 * sparcl-stub.c: Obsolete file.
9810 * config/sparc/tm-sparclet.h: Obsolete file.
9811 * sparclet-stub.c: Obsolete file.
9812 * sparclet-rom.c: Obsolete file.
9813 * sparcl-tdep.c: Obsolete file.
9814 * config/sparc/tm-sparclite.h: Obsolete file.
9815 * config/sparc/sparclite.mt: Obsolete file.
9816 * config/sparc/sparclet.mt: Obsolete file.
9817 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9818 sparc86x-*-* obsolete.
9819
9219021c
DC
98202003-04-15 David Carlton <carlton@math.stanford.edu>
9821
9822 * Makefile.in (SFILES): Add cp-namespace.c.
9823 (COMMON_OBS): Add cp-namespace.o.
9824 (block.o): Depend on gdb_obstack_h and cp_support_h.
9825 (buildsym.o): Depend on cp_support_h.
9826 (cp-namespace.o): New.
9827 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9828 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9829 (dwarf2read.o): Depend on cp_support_h.
9830 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9831 * dwarf2read.c (process_die): Set processing_has_namespace_info,
9832 processing_current_namespace.
9833 (read_namespace): Update processing_current_namespace; check for
9834 anonymous namespaces.
9835 (dwarf2_name): New function.
9836 (dwarf2_extension): Ditto.
9837 * cp-support.h: Update copyright, contributors.
9838 Add inclusion guards.
9839 Add opaque declaration for structs obstack, block, symbol.
9840 (struct using_direct): New struct.
9841 Add declarations for cp_find_first_component,
9842 cp_entire_prefix_len, processing_has_namespace_info,
9843 processing_current_namespace, cp_is_anonymous,
9844 cp_add_using_directive, cp_initialize_namespace,
9845 cp_finalize_namespace, cp_set_block_scope,
9846 cp_scan_for_anonymous_namespaces.
9847 * cp-namespace.c: New file.
9848 * cp-support.c: Update copyright.
9849 Include ctype.h, gdb_assert.h, gdbcmd.h.
9850 New variable maint_cplus_cmd_list.
9851 (cp_find_first_component): New function.
9852 (cp_entire_prefix_len, maint_cplus_command)
9853 (first_component_command, _initialize_cp_support): Ditto.
9854 * buildsym.c: Include cp-support.h.
9855 New variable using_list.
9856 (add_symbol_to_list): Check for anonymous namespaces.
9857 (finish_block): Set block's scope.
9858 (start_symtab): Initialize C++ namespace support.
9859 (end_symtab): Finalize C++ namespace support.
9860 * block.h: Add opaque declarations for structs
9861 block_namespace_info, using_direct, and obstack.
9862 Add declarations for block_set_scope and block_set_using.
9863 (struct block): Add 'language_specific' member.
9864 (BLOCK_NAMESPACE): New macro.
9865 * block.c: Include gdb_obstack.h and cp-support.h.
9866 (struct block_namespace_info): New struct.
9867 (block_set_scope): New function.
9868 (block_set_using, block_initialize_namespace): Ditto.
9869
d5a921c9
KB
98702003-04-14 Kevin Buettner <kevinb@redhat.com>
9871
9872 * solib-svr4.c (svr4_have_link_map_offsets): New function.
9873 (locate_base): Return early if there aren't any link map offsets.
9874 (svr4_solib_create_inferior_hook): Warn if shared library support
9875 is unavailable.
9876
d2a52b27
DC
98772003-04-14 David Carlton <carlton@math.stanford.edu>
9878
9879 * symtab.c (symbol_set_names): Add prefix when storing Java names
9880 in hash table. Fix for PR java/1039.
9881
980cae7a
DC
98822003-04-14 David Carlton <carlton@math.stanford.edu>
9883
9884 * symtab.c (symbol_set_names): Rename 'name' arg to
9885 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9886 * symtab.h: Change 'name' argument in declaration of
9887 symbol_set_names to 'linkage_name'.
9888 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9889
e227b13c
AC
98902003-04-14 Andrew Cagney <cagney@redhat.com>
9891
9892 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9893 return the fully sign-extended register value.
9894 (get_frame_pointer): Ditto.
9895 (mips_pop_frame): Initialize "proc_desc" after checking for a
9896 dummy frame.
9897
36712a20
AC
98982003-04-14 Andrew Cagney <cagney@redhat.com>
9899
9900 * mips-tdep.c (mips_push_dummy_frame): Delete function.
9901 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9902 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9903 (mips_push_register): Delete function.
9904 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9905 PUSH_FP_REGNUM.
9906
44ea7b70
JB
99072003-04-14 Jim Blandy <jimb@redhat.com>
9908
9909 * symmisc.c: #include "gdb_regex.h".
9910 (maintenance_list_symtabs, maintenance_list_psymtabs): New
9911 functions.
9912 * maint.c (maintenance_list_command): New function.
9913 (_initialize_maint_cmds): Register the above as commands.
9914 * symtab.h (maintenance_list_symtabs,
9915 maintenance_list_psymtabs): New declarations.
9916 * cli/cli-cmds.c (maintenancelistlist): New variable.
9917 (init_cmd_lists): Initialize it.
9918 * cli/cli-cmds.h (maintenancelistlist): New declaration.
9919 * gdbcmd.h (maintenancelistlist): New declaration.
9920 * Makefile.in (symmisc.o): Update dependencies.
9921
2d0c7962
EZ
99222003-04-14 Elena Zannoni <ezannoni@redhat.com>
9923
9924 * s390-nat.c: Include asm/types.h for addr_t.
9925
1947a811
CV
99262003-04-14 Corinna Vinschen <vinschen@redhat.com>
9927
9928 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9929 actually incoming type.
9930
adb616d7
AC
99312003-04-13 Andrew Cagney <cagney@redhat.com>
9932
9933 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9934 get_next_frame and get_frame_saved_regs.
9935
9b5e151c
AC
99362003-04-13 Andrew Cagney <cagney@redhat.com>
9937
9938 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9939 of gdbarch_num_regs.
9940
ef6e7e13
AC
99412003-04-13 Andrew Cagney <cagney@redhat.com>
9942
9943 * frame.h: Mention what replaced what in "struct frame_info".
9944 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9945 deprecated_update_frame_base_hack and
9946 deprecated_update_frame_pc_hack.
9947 * hppa-tdep.c: Ditto.
9948
61fbb938
DJ
99492003-04-13 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9952 to read_reg and update its comment. Remove regnum member.
9953 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9954 Don't call read_reg when setting in_reg. Call read_reg to get
9955 the frame base if it's in a register. Return the register number
9956 on the stack instead of in the context. Remove extra arguments
9957 to read_reg.
9958 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
9959 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
9960 the register number on the expression stack.
9961 (needs_frame_read_reg): Remove extra arguments.
9962
0d53c4c4
DJ
99632003-04-13 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
9966 made non-static.
9967 (execute_stack_op): All callers updated.
9968 * dwarf2expr.h: Add prototype for dwarf2_read_address.
9969 * dwarf2loc.c (find_location_expression): New function.
9970 (dwarf_expr_frame_base): Call it.
9971 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
9972 (dwarf2_tracepoint_var_ref): New function, broken out from
9973 locexpr_tracepoint_var_ref.
9974 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
9975 Make static.
9976 (loclist_read_variable, loclist_read_needs_frame): New functions.
9977 (loclist_describe_location, loclist_tracepoint_var_ref): New
9978 functions.
9979 (dwarf2_loclist_funcs): New struct location_funcs.
9980 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
9981 (struct dwarf2_locexpr_baton): Add comments.
9982 (dwarf2_loclist_funcs): New extern.
9983 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
9984 base_address and base_known.
9985 (dwarf_loc_buffer): New variable.
9986 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
9987 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
9988 (dwarf2_has_info): Initialize dwarf_loc_offset.
9989 (dwarf2_build_psymtabs): Read in .debug_loc.
9990 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
9991 DWARF_LOC_SIZE.
9992 (psymtab_to_symtab_1): Likewise. Move base address calculation
9993 here, from...
9994 (dwarf2_get_pc_bounds): ... here. Use the base address from
9995 cu_header.
9996 (dwarf2_symbol_mark_computed): Handle location lists.
9997
6aca59a3
DJ
99982003-04-13 Daniel Jacobowitz <drow@mvista.com>
9999
10000 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10001 if the linkage name demangled successfully.
10002
aca1fcd0
MK
100032003-04-13 Mark Kettenis <kettenis@gnu.org>
10004
97095916
MK
10005 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10006 disassmbly_flavour): Removed.
10007
aca1fcd0
MK
10008 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10009
562a961f
MK
100102003-04-13 Mark Kettenis <kettenis@gnu.org>
10011
10012 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10013
bd013d54
AC
100142003-04-12 Andrew Cagney <cagney@redhat.com>
10015
10016 * frame.h (struct frame_info): Move definition from here ...
10017 * frame.c (struct frame_info): ... to here.
10018
167ef8b1
AC
100192003-04-12 Andrew Cagney <cagney@redhat.com>
10020
10021 * gdbthread.h (save_infrun_state): Delete parameter
10022 "prev_func_start".
10023 (struct thread_info): Delete field "prev_func_start".
10024 (load_infrun_state): Ditto.
10025 * thread.c (load_infrun_state, save_infrun_state): Update.
10026 * infrun.c (prev_func_start): Delete variable.
10027 (context_switch, init_wait_for_inferior): Update.
10028 (stop_stepping, keep_going): Update.
10029
da3331ec
AC
100302003-04-12 Andrew Cagney <cagney@redhat.com>
10031
10032 * gdbarch.sh: Add missing opaque declarations.
10033 * gdbarch.h: Regnerate.
10034 * symtab.h: Add missing opaque declarations.
10035 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10036 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10037 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10038 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10039 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10040 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10041 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10042 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10043 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10044 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10045 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10046 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10047 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10048
18adea3f
AC
100492003-04-11 Andrew Cagney <cagney@redhat.com>
10050
10051 * frame.c (get_frame_id): Return this frame's "id".
10052 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10053 function start.
10054 (legacy_saved_regs_this_id): Replace function body with
10055 internal-error.
10056 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10057 FRAME_OBSTACK_ZALLOC.
10058 (create_new_frame): Mark the frame ID as valid.
10059
2252e863
AO
100602003-04-11 Alexandre Oliva <aoliva@redhat.com>
10061
10062 * Makefile.in (libbfd_h): Added missing setting.
10063 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10064 according to the selected ABI.
10065
a8245ab8
JJ
100662003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10067
10068 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10069
6913c89a
AC
100702003-04-11 Andrew Cagney <cagney@redhat.com>
10071
10072 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10073 SAVED_PC_AFTER_CALL.
10074 * gdbarch.h, gdbarch.c: Regenerate.
10075 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10076 * x86-64-tdep.c (x86_64_init_abi): Update.
10077 * vax-tdep.c (vax_gdbarch_init): Update.
10078 * v850-tdep.c (v850_gdbarch_init): Update.
10079 * sparc-tdep.c (sparc_gdbarch_init): Update.
10080 * sh-tdep.c (sh_gdbarch_init): Update.
10081 * s390-tdep.c (s390_gdbarch_init): Update.
10082 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10083 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10084 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10085 * mips-tdep.c (mips_gdbarch_init): Update.
10086 * mcore-tdep.c (mcore_gdbarch_init): Update.
10087 * m68k-tdep.c (m68k_gdbarch_init): Update.
10088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10089 * ia64-tdep.c (ia64_gdbarch_init): Update.
10090 (ia64_saved_pc_after_call): Update declaration.
10091 * i386ly-tdep.c (i386lynx_init_abi): Update.
10092 * i386-tdep.c (i386_gdbarch_init): Update.
10093 * hppa-tdep.c (hppa_gdbarch_init): Update.
10094 * h8300-tdep.c (h8300_gdbarch_init): Update.
10095 * frv-tdep.c (frv_gdbarch_init): Update.
10096 * cris-tdep.c (cris_gdbarch_init): Update.
10097 * avr-tdep.c (avr_gdbarch_init): Update.
10098 * arm-tdep.c (arm_gdbarch_init): Update.
10099 * alpha-tdep.c (alpha_gdbarch_init): Update.
10100 * ns32knbsd-nat.c (frame_num_args): Update.
10101 * ns32k-tdep.c (umax_frame_num_args): Update.
10102 * mips-tdep.c (mips_init_frame_pc_first): Update.
10103 * infrun.c (step_over_function): Update.
10104 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10105 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10106 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10107 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10108 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10109 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10110 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10111 * arch-utils.c (init_frame_pc_default): Update.
10112 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10113 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10114 declaration.
8ffd9b1b 10115
38edeab8
AC
101162003-04-11 Andrew Cagney <cagney@redhat.com>
10117
10118 * i387-tdep.c: Update copyright.
10119 (i387_to_double): Delete function.
10120 (double_to_i387): Delete function.
10121
81f8a206
AC
101222003-04-10 Andrew Cagney <cagney@redhat.com>
10123
10124 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10125 frame's function's address. Simplify.
10126 (d10v_frame_unwind_cache): Check that the frame's function is
10127 non-zero.
10128
6e691f7a
JB
101292003-04-10 Jim Blandy <jimb@redhat.com>
10130
10131 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10132 call to set_gdbarch_deprecated_push_arguments.
10133
7f78e237
AC
101342003-04-10 Andrew Cagney <cagney@redhat.com>
10135
10136 * frame.c (fprint_frame_id): New function.
10137 (fprint_frame_type, fprint_frame): New function.
10138 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10139 (create_sentinel_frame, get_frame_id): Ditto.
10140 (frame_id_p, frame_id_eq): Ditto.
10141 (frame_id_inner, create_new_frame): Ditto.
10142 (legacy_get_prev_frame, get_prev_frame): Ditto.
10143 (deprecated_update_frame_pc_hack): Ditto.
10144 (frame_register_unwind): Ditto.
10145 (deprecated_update_frame_base_hack): Ditto.
10146
f870b49b
CV
101472003-04-10 Corinna Vinschen <vinschen@redhat.com>
10148
10149 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10150 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10151 frame_chain function.
10152 * Makefile.in: Add dependencies due to above change.
10153
7c86889b
CV
101542003-04-10 Corinna Vinschen <vinschen@redhat.com>
10155
10156 * blockframe.c (legacy_frame_chain_valid): Move call to
10157 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10158 inside_entry_file.
10159
d0a55772
AC
101602003-04-09 Andrew Cagney <cagney@redhat.com>
10161
10162 * frame.h (struct frame_id): Replace "pc" and "base" with
10163 "stack_addr" and "code_addr". Update comments.
10164 (frame_id_build): Update parameter names and comment.
10165 (struct frame_info): Replace "id_p" and "id" with "this_id".
10166 * dummy-frame.c (dummy_frame_this_id): Update.
10167 * breakpoint.c (print_one_breakpoint): Update.
10168 * frame.c (get_frame_id): Update.
10169 (get_frame_base, frame_id_build): Update.
10170 (create_sentinel_frame, legacy_get_prev_frame): Update.
10171 (deprecated_update_frame_base_hack): Update.
10172 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10173 (frame_id_inner): Ditto.
10174
ac16bf07
AC
101752003-04-09 Andrew Cagney <cagney@redhat.com>
10176
10177 * defs.h (gdb_print_host_address): Make "addr" parameter a
10178 pointer constant.
10179 * utils.c (gdb_print_host_address): Update.
10180
366cfc9e
KB
101812003-04-09 Kevin Buettner <kevinb@redhat.com>
10182
10183 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10184 register number for R0 is 0.
10185
cd983b5c
JB
101862003-04-09 J. Brobecker <brobecker@gnat.com>
10187
10188 * frame.h (struct gdbarch): Add opaque structure definition
10189 to avoid a compilation warning on LynxOS 4.0.
10190
d1340264
AC
101912003-04-09 Andrew Cagney <cagney@redhat.com>
10192
10193 * frame.h (struct frame_info): Delete field "pc". Replace
10194 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10195 structure.
10196 * frame.c (frame_pc_unwind): Update.
10197 (create_sentinel_frame): Do not set "pc".
10198 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10199 (get_frame_pc): Call frame_pc_unwind.
10200 (deprecated_update_frame_pc_hack): Update.
10201 (create_new_frame): Use "pc" not "->pc".
10202
90a6fffb
AC
102032003-04-09 Andrew Cagney <cagney@redhat.com>
10204
10205 * frame.c (get_frame_id): Eliminate code updating "frame".
10206 (legacy_get_prev_frame): Ditto.
10207 (get_frame_base): Return id.base directly.
10208 (deprecated_update_frame_base_hack): Update "id.base".
10209 * frame.h (struct frame_info): Delete field "frame".
10210
2fbce691
AC
102112003-04-09 Andrew Cagney <cagney@redhat.com>
10212
10213 * NEWS: Mention that the "Sequent family" is obsolete.
10214 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10215 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10216 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10217 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10218 * config/i386/tm-ptx4.h: Obsolete file.
10219 * config/i386/tm-ptx.h: Obsolete file.
10220 * symm-tdep.c: Obsolete file.
10221 * config/i386/symmetry.mt: Obsolete file.
10222 * config/i386/tm-symmetry.h: Obsolete file.
10223 * symm-nat.c: Obsolete file.
10224 * config/i386/nm-symmetry.h: Obsolete file.
10225 * config/i386/xm-symmetry.h: Obsolete file.
10226 * config/i386/symmetry.mh: Obsolete file.
10227 * config/i386/nm-ptx4.h: Obsolete file.
10228 * config/i386/ptx4.mh: Obsolete file.
10229 * config/i386/ptx.mt: Obsolete file.
10230 * config/i386/ptx.mh: Obsolete file.
10231 * config/i386/xm-ptx4.h: Obsolete file.
10232 * config/i386/xm-ptx.h: Obsolete file.
10233
78c43945
AC
102342003-04-09 Andrew Cagney <cagney@redhat.com>
10235
10236 Obsolete mips*-*-mach3*.
10237 * NEWS: Mention that mips*-*-mach3* is obsolete.
10238 * m3-nat.c: Obsolete file.
10239 * config/nm-m3.h: Obsolete file.
10240 * config/mips/tm-mipsm3.h: Obsolete file.
10241 * config/mips/mipsm3.mt: Obsolete file.
10242 * config/mips/mipsm3.mh: Obsolete file.
10243 * config/mips/xm-mipsm3.h: Obsolete file.
10244 * mipsm3-nat.c: Obsolete file.
10245 * configure.host: Obsolete mips-dec-mach3*.
10246 * configure.tgt: Obsolete mips*-*-mach3*.
10247
f1908289
AC
102482003-04-09 Andrew Cagney <cagney@redhat.com>
10249
10250 * doublest.h: Update copyright.
10251 (deprecated_store_floating, deprecated_extract_floating): Rename
10252 store_floating and extract_floating. Update comments.
10253 * doublest.c: Update copyright.
10254 (extract_floating_by_length): Replace extract_floating.
10255 (store_floating_by_length): Replace store_floating.
10256 (deprecated_extract_floating): New function.
10257 (deprecated_store_floating): New function.
10258 (extract_typed_floating): Call extract_floating_by_length.
10259 (store_typed_floating): Call store_floating_by_length.
10260 * x86-64-tdep.c (x86_64_store_return_value): Update.
10261 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10262 (sh64_extract_return_value): Update.
10263 (sh_sh4_register_convert_to_virtual): Update.
10264 (sh_sh64_register_convert_to_virtual): Update.
10265 (sh_sh4_register_convert_to_raw): Update.
10266 (sh_sh64_register_convert_to_raw): Update.
10267 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10268 (rs6000_register_convert_to_raw): Update.
10269 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10270 (ia64_register_convert_to_raw): Update.
10271 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10272 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10273 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10274 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10275 (alpha_register_convert_to_raw): Update.
10276
4443bd83
AC
102772003-04-08 Andrew Cagney <cagney@redhat.com>
10278
10279 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10280 * gdbarch.h, gdbarch.c: Re-generate.
10281 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10282 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10283 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10284 conditionally, use frame_pc_unwind as an alternative. Add
10285 comments.
10286 * arch-utils.c (init_frame_pc_default): Only call
10287 SAVED_PC_AFTER_CALL when available.
10288
c0236d92
EZ
102892003-04-08 Elena Zannoni <ezannoni@redhat.com>
10290
fbe586ae 10291 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10292 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10293 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10294 (start_remote): Ditto.
10295 (handle_inferior_event): Ditto.
10296 (save_inferior_status): Ditto.
10297 (restore_inferior_status): Ditto.
10298 * infcmd.c (attach_command): Ditto.
10299 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10300 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10301 * alpha-tdep.c (heuristic_proc_start): Ditto.
10302 * mips-tdep.c (heuristic_proc_start): Ditto.
10303 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10304 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10305 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10306 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10307 * remote-vx.c (vx_create_inferior): Ditto.
10308
103092003-04-08 Elena Zannoni <ezannoni@redhat.com>
10310
10311 * infrun.c (stop_soon_quietly): Make it an enum, to better
10312 override the default behavior of handle_inferior_event.
10313 (clear_proceed_status): Update uses of stop_soon_quietly to
10314 reflect that it is now an enum.
10315 (start_remote): Ditto.
10316 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10317 is set to handle the new GNU/Linux kernel behavior for
10318 attach/sigstop. Update uses of stop_soon_quietly.
10319 * inferior.h (enum stop_kind): New enum.
10320 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10321 Reset normal handle_inferior_event behavior, afterwards.
10322 * fork-child.c (startup_inferior): Update.
10323 * alpha-tdep.c (heuristic_proc_start): Update.
10324 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10325 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10326 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10327 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10328 * remote-vx.c (vx_create_inferior): Update.
10329 * mips-tdep.c (heuristic_proc_start): Update.
10330
1211bce3
EZ
103312003-04-07 Elena Zannoni <ezannoni@redhat.com>
10332
10333 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10334 be freed more than once, causing wild memory corruptions.
1211bce3 10335 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10336 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10337 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10338 with the "core" target.
1211bce3 10339
f0ef6b29
KB
103402003-04-07 Kevin Buettner <kevinb@redhat.com>
10341
10342 * mips-tdep.c (mips_print_fp_register): New function, created from
10343 do_fp_register_row(). Registers are now (also) printed as hex.
10344 Only one register is printed per row.
10345 (mips_print_register, do_fp_register_row): Print floating point
10346 registers with mips_print_fp_register().
10347
8cf71652
AC
103482003-04-06 Andrew Cagney <cagney@redhat.com>
10349
5e488a7b
AC
10350 * valprint.h (inspect_it): Add extern declaration.
10351 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10352 (selectors_info, classes_info): Ditto.
10353 (find_objc_msgcall): Fix indentation.
10354 (objc_printstr): Delete extern declarations.
10355
8cf71652
AC
10356 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10357
e6ba3bc9
AC
103582003-04-06 Andrew Cagney <cagney@redhat.com>
10359
10360 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10361 Update comment.
10362 * frame.c (legacy_saved_regs_this_id): Update.
10363 (legacy_get_prev_frame): Update.
10364 * xstormy16-tdep.c: Update comment.
10365 * sparc-tdep.c (sparc_frame_chain): Update comment.
10366 * blockframe.c (legacy_frame_chain_valid): Update.
10367
55e1d7e7
AC
103682003-04-06 Andrew Cagney <cagney@redhat.com>
10369
996179ee
AC
10370 * valprint.c (val_print_type_code_int): Delete #ifdef
10371 PRINT_TYPELESS_INTEGER code.
10372
55e1d7e7
AC
10373 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10374 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10375 multi-arch definition.
10376 * gdbarch.h: Re-generate.
10377
43bd9a9e
AC
103782003-04-05 Andrew Cagney <cagney@redhat.com>
10379
10380 Eliminate FRAME_FIND_SAVED_REGS.
10381 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10382 Change FSR parameter to a pointer.
10383 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10384 Assume FSR parameter is a pointer.
10385 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10386 Make fsr a pointer.
10387 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10388 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10389 saved_regs a pointer.
10390 (hppa_frame_saved_pc): Ditto.
10391 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10392 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10393 pointer.
10394 (restore_pc_queue): Make fsr a pointer.
10395 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10396 (hppa_frame_chain): Make saved_regs a pointer, call
10397 hppa_frame_init_saved_regs.
10398 * sparc-tdep.c: Include "gdb_assert.h".
10399 (sparc_frame_find_saved_regs): Replace internal_error with
10400 gdb_assert.
10401 * remote-vxsparc.c (vx_read_register): Delete reference to
10402 FRAME_FIND_SAVED_REGS.
10403 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10404 * gdbarch.h: Regenerate.
10405 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10406 (deprecated_get_frame_saved_regs): Delete declaration.
10407 (struct frame_saved_regs): Delete definition.
10408 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10409 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10410 (hppa_frame_find_saved_regs): Delete declaration.
10411 (FRAME_FIND_SAVED_REGS): Delete macro.
10412 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10413 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10414 FRAME_FIND_SAVED_REGS in comment.
10415
be41e9f4
AC
104162003-04-05 Andrew Cagney <cagney@redhat.com>
10417
10418 * frame.c (frame_func_unwind, get_frame_func): New functions.
10419 * frame.h (get_frame_func, frame_func_unwind): Declare.
10420 (struct frame_info): Add field "prev_func" for caching the
10421 previous frame's function address.
10422 * arm-tdep.c (arm_frameless_function_invocation): Combine
10423 get_pc_function_start and get_frame_pc into get_frame_func.
10424 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10425 (sh64_nofp_frame_init_saved_regs): Ditto.
10426 * s390-tdep.c (s390_function_start): Ditto.
10427 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10428 (rs6000_frameless_function_invocation): Ditto.
10429 (rs6000_frame_saved_pc): Ditto.
10430 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10431 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10432 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10433 (i386_frame_init_saved_regs): Ditto.
10434 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10435 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10436 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10437 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10438 * blockframe.c (frameless_look_for_prologue): Ditto.
10439
a01dd7cc
AC
104402003-04-05 Andrew Cagney <cagney@redhat.com>
10441
10442 * frame.c (legacy_get_prev_frame): Link prev to next at the
10443 function start. Update comments.
10444
5e5592e6
AC
104452003-04-05 Andrew Cagney <cagney@redhat.com>
10446
10447 * frame.c (get_frame_id): Update comment.
10448 (legacy_get_prev_frame): Update comment.
10449 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10450 * gdbarch.h: Regenerate.
10451 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10452 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10453
6fba5002
AC
104542003-04-05 Andrew Cagney <cagney@redhat.com>
10455
10456 * stack.c (print_frame_info): Use get_frame_pc.
10457
7df05f2b
AC
104582003-04-04 Andrew Cagney <cagney@redhat.com>
10459
10460 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10461 the frame's type from the unwinder.
10462 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10463 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10464 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10465 (get_frame_base_address): Use get_frame_type.
10466 (get_frame_locals_address, get_frame_args_address): Ditto.
10467 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10468 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10469 (struct frame_info): Add comment explaining why the frame contains
10470 a "type" field.
10471 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10472 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10473 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10474 NORMAL_FRAME.
10475 * frame-unwind.h: Include "frame.h".
10476 (struct frame_unwind): Add "type" field.
10477 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10478
11889732
AC
104792003-04-04 Andrew Cagney <cagney@redhat.com>
10480
10481 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10482 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10483 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10484 get_frame_base.
10485 (d10v_unwind_dummy_id): Use frame_id_build.
10486 * frame.c (find_frame_sal): Use get_frame_pc.
10487 (create_new_frame): Use deprecated_update_frame_pc_hack and
10488 deprecated_update_frame_base_hack.
10489 (create_sentinel_frame): Add comment about ->pc going away.
10490 (get_prev_frame): Add comment about ->pc going away.
10491 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10492 frame_id_build, deprecated_update_frame_pc_hack and
10493 deprecated_update_frame_base_hack.
10494 (select_frame): Use get_frame_pc.
10495 (legacy_saved_regs_this_id): Use frame_id_build.
10496
50c46a0d
EZ
104972003-04-04 Elena Zannoni <ezannoni@redhat.com>
10498
fbe586ae
RH
10499 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10500 signed integer case.
10501 (classify_argument): Handle enumerations and references.
50c46a0d 10502
50bbdbd9
AC
105032003-04-04 Andrew Cagney <cagney@redhat.com>
10504
10505 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10506 ID to NULL.
10507
36018d2e
AF
105082003-04-01 Adam Fedor <fedor@gnu.org>
10509
10510 * gdb/objc-lang.c (selectors_info): Replace calls to
10511 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10512 SYMBOL_NATURAL_NAME.
10513 (classes_info, find_methods): Likewise.
10514
35cec841
KB
105152003-04-03 Kevin Buettner <kevinb@redhat.com>
10516
10517 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10518 ``mach'' to the value determined by bfd_default_set_arch_mach().
10519
43136899
BR
105202003-04-02 Bob Rossi <bob_rossi@cox.net>
10521
10522 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10523 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10524 (mi-cmd-file.o): Update dependencies.
10525
040b99fd
KB
105262003-04-01 Kevin Buettner <kevinb@redhat.com>
10527
10528 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10529 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10530
9a3d7dfd
AF
105312003-04-01 Adam Fedor <fedor@gnu.org>
10532
10533 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10534 * language.h (struct language_defn): Add la_demangle.
10535 (language_demangle): Declare.
10536 * language.c (language_demangle): New function.
10537 (unk_lang_demangle): Likewise.
10538 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10539 Add ukn_lang_demangle.
9a3d7dfd 10540 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10541 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10542 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10543 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10544 * jv-lang.c (java_demangle): New function
10545 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10546 * objc-lang.c (objc_demangle): Add options argument
10547 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10548 * maint.c (maintenance_demangle): Replace switch with
10549 call to language_demangle.
10550 * utils.c (fprintf_symbol_filtered): Likewise.
10551
5e074003
AC
105522003-04-01 Andrew Cagney <cagney@redhat.com>
10553
10554 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10555 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10556 PRINT_TYPELESS_INTEGER.
10557 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10558 PUSH_RETURN_ADDRESS.
10559
270cb5d6
AC
105602003-04-01 Andrew Cagney <cagney@redhat.com>
10561
10562 * Makefile.in (d10v-tdep.o): Update dependencies.
10563 * d10v-tdep.c: Include "frame-base.h".
10564 (d10v_frame_unwind): Make constant.
10565 (d10v_frame_base_address): New function.
10566 (d10v_frame_base): New variable.
10567 (d10v_gdbarch_init): Set frame_base default.
10568 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10569 comment for base.
10570 (d10v_frame_unwind_cache): Set and use "prev_sp".
10571 (d10v_frame_this_id): Use the previous frame's inner most stack
10572 address and this frame's func address for the frame ID. Use
10573 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10574
6bfb3e36
AC
105752003-04-01 Andrew Cagney <cagney@redhat.com>
10576
10577 * frame.h (get_frame_locals_address, get_frame_args_address):
10578 Refer to the base address, instead of the address of the first
10579 local or parameter.
8ffd9b1b 10580
da62e633
AC
105812003-04-01 Andrew Cagney <cagney@redhat.com>
10582
10583 Add frame debug info addresses:
10584 * frame-base.c: New file.
10585 * frame-base.h: New file.
10586 * frame.h (struct frame_base): Add opaque declaration.
10587 (get_frame_base): Update comment.
10588 (get_frame_base_address): Declare.
10589 (get_frame_locals_address): Declare.
10590 (get_frame_args_address): Declare.
10591 (struct frame_info): Add "base" and "base_cache". Update
10592 comments on the unwinder.
10593 * frame.c: Include "frame-base.h".
10594 (get_frame_locals_address): New function.
10595 (get_frame_base_address): New function.
10596 (get_frame_args_address): New function.
10597 * findvar.c (read_var_value): Use get_frame_locals_address and
10598 get_frame_args_address.
10599 * stack.c (frame_info): Use get_frame_locals_address and
10600 get_frame_args_address.
10601 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10602 moved to "frame-base.c".
10603 * printcmd.c (print_frame_nameless_args): Ditto.
10604 * symtab.h (address_class): Update comments.
10605 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10606 get_frame_base_address.
10607 * dwarf2expr.c (execute_stack_op): Ditto.
10608 * Makefile.in (frame_base_h): Define.
10609 (frame.o): Update dependencies.
10610 (frame-base.o): Add dependencies.
10611 (SFILES): Add frame-base.c.
10612 (COMMON_OBS): Add frame-base.o.
10613
3d30e9c2
AC
106142003-04-01 Andrew Cagney <cagney@redhat.com>
10615
10616 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10617 CALL_DUMMY_LENGTH): Ditto.
10618 * gdbarch.c: Re-generate.
10619 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10620 (CALL_DUMMY_LENGTH): Delete macro.
10621 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10622 * arm-tdep.c (arm_gdbarch_init): Ditto.
10623 * avr-tdep.c (avr_gdbarch_init): Ditto.
10624 * cris-tdep.c (cris_gdbarch_init): Ditto.
10625 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10626 * frv-tdep.c (frv_gdbarch_init): Ditto.
10627 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10628 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10629 * i386-tdep.c (i386_gdbarch_init): Ditto.
10630 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10632 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10633 * mips-tdep.c (mips_gdbarch_init): Ditto.
10634 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10636 * s390-tdep.c (s390_gdbarch_init): Ditto.
10637 * sh-tdep.c (sh_gdbarch_init): Ditto.
10638 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10639 * v850-tdep.c (v850_gdbarch_init): Ditto.
10640 * vax-tdep.c (vax_gdbarch_init): Ditto.
10641 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10642
ce0c7262
CV
106432003-04-01 Corinna Vinschen <vinschen@redhat.com>
10644
10645 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10646
73dd234f
AC
106472003-04-01 Andrew Cagney <cagney@redhat.com>
10648
10649 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10650 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10651 * gdbarch.h, gdbarch.c: Re-generate.
10652 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10653 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10654 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10655 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10656 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10657 * infcmd.c (run_stack_dummy): Simplify assuming
10658 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10659 * infrun.c (handle_inferior_event): Ditto.
10660 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10661 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10662 * arm-tdep.c (arm_gdbarch_init): Ditto.
10663 * avr-tdep.c (avr_gdbarch_init): Ditto.
10664 * cris-tdep.c (cris_gdbarch_init): Ditto.
10665 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10666 * frv-tdep.c (frv_gdbarch_init): Ditto.
10667 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10668 * i386-tdep.c (i386_gdbarch_init): Ditto.
10669 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10671 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10672 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10673 * mips-tdep.c (mips_gdbarch_init): Ditto.
10674 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10675 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10676 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10677 * s390-tdep.c (s390_gdbarch_init): Ditto.
10678 * sh-tdep.c (sh_gdbarch_init): Ditto.
10679 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10680 * v850-tdep.c (v850_gdbarch_init): Ditto.
10681 * vax-tdep.c (vax_gdbarch_init): Ditto.
10682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10683
97606a13
DJ
106842003-04-01 Daniel Jacobowitz <drow@mvista.com>
10685
10686 * symfile.c (symfile_relocate_debug_section): Update call to
10687 bfd_simple_get_relocated_section_contents.
10688
e8ab51f7
AC
106892003-03-31 Andrew Cagney <cagney@redhat.com>
10690
10691 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10692 * gdbarch.h, gdbarch.c: Regenerate.
10693 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10694 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10695 available.
10696 * frame.h (generic_fix_call_dummy): Delete declaration.
10697 * dummy-frame.h: Update comment.
10698 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10700 fix_call_dummy.
10701 * sh-tdep.c (sh_gdbarch_init): Ditto.
10702 * s390-tdep.c (s390_gdbarch_init): Ditto.
10703 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10706 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10707 * i386-tdep.c (i386_gdbarch_init): Ditto.
10708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10709 * frv-tdep.c (frv_gdbarch_init): Ditto.
10710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10711 * cris-tdep.c (cris_gdbarch_init): Ditto.
10712 * avr-tdep.c (avr_gdbarch_init): Ditto.
10713 * arm-tdep.c (arm_gdbarch_init): Ditto.
10714
018d1b48
JB
107152003-03-31 J. Brobecker <brobecker@gnat.com>
10716
10717 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10718 (INIT_FRAME_AP): Likewise.
10719 (EXTRA_FRAME_INFO): Likewise.
10720
e9a2674e
AC
107212003-03-31 Andrew Cagney <cagney@redhat.com>
10722
10723 * gdbarch.sh: Include "symfile.h".
10724 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10725 * gdbarch.h, gdbarch.c: Re-generate.
10726 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10728 call_dummy_address, the default is at entry_point_address.
10729 * v850-tdep.c (v850_gdbarch_init): Ditto.
10730 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10731 * sh-tdep.c (sh_gdbarch_init): Ditto.
10732 * s390-tdep.c (s390_gdbarch_init): Ditto.
10733 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10734 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10735 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10736 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10737 * i386-tdep.c (i386_gdbarch_init): Ditto.
10738 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10739 * frv-tdep.c (frv_gdbarch_init): Ditto.
10740 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10741 * cris-tdep.c (cris_gdbarch_init): Ditto.
10742 * arm-tdep.c (arm_gdbarch_init): Ditto.
10743
e8a8712a
AC
107442003-03-31 Andrew Cagney <cagney@redhat.com>
10745
10746 * gdbarch.sh (CALL_DUMMY_P): Delete.
10747 * gdbarch.h, gdbarch.c: Re-generate.
10748 * inferior.h (CALL_DUMMY_P): Delete macro.
10749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10750 * vax-tdep.c (vax_gdbarch_init): Update.
10751 * v850-tdep.c (v850_gdbarch_init): Update.
10752 * sparc-tdep.c (sparc_gdbarch_init): Update.
10753 * sh-tdep.c (sh_gdbarch_init): Update.
10754 * s390-tdep.c (s390_gdbarch_init): Update.
10755 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10756 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10757 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10758 * mips-tdep.c (mips_gdbarch_init): Update.
10759 * mcore-tdep.c (mcore_gdbarch_init): Update.
10760 * m68k-tdep.c (m68k_gdbarch_init): Update.
10761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10762 * ia64-tdep.c (ia64_gdbarch_init): Update.
10763 * i386-tdep.c (i386_gdbarch_init): Update.
10764 * h8300-tdep.c (h8300_gdbarch_init): Update.
10765 * frv-tdep.c (frv_gdbarch_init): Update.
10766 * d10v-tdep.c (d10v_gdbarch_init): Update.
10767 * cris-tdep.c (cris_gdbarch_init): Update.
10768 * breakpoint.c (deprecated_frame_in_dummy): Update.
10769 * avr-tdep.c (avr_gdbarch_init): Update.
10770 * alpha-tdep.c (alpha_gdbarch_init): Update.
10771 * arm-tdep.c (arm_gdbarch_init): Update.
10772 * dummy-frame.c (dummy_frame_this_id): Update comments.
10773 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10774 * frame.c (legacy_get_prev_frame): Ditto.
10775 * valops.c (call_function_by_hand): Delete function.
10776 (hand_function_call): Rename to call_function_by_hand
10777
ed234cf8
AC
107782003-03-30 Andrew Cagney <cagney@redhat.com>
10779
10780 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10781 * value.h (struct value): Update comment.
ed234cf8 10782
06c77151
AC
107832003-03-30 Andrew Cagney <cagney@redhat.com>
10784
6c2b5168
AC
10785 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10786 D10V_FP_REGNUM.
10787 (d10v_gdbarch_init): Do not set fp_regnum.
10788
06c77151
AC
10789 * frame.c (get_frame_base): Force ID initialization.
10790 (get_prev_frame): Move computation of the frame ID from here ...
10791 (get_frame_id): ... to here.
10792 (legacy_get_prev_frame): Mark the frame ID as valid.
10793 * frame.h (struct frame_info): Add field "id_p".
10794
97a1a11c
MK
107952003-03-30 Mark Kettenis <kettenis@gnu.org>
10796
10797 * i386-tdep.c (i386_store_struct_return): Removed.
10798 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10799
6c0e89ed
AC
108002003-03-30 Andrew Cagney <cagney@redhat.com>
10801
10802 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10803 * gdbarch.h, gdbarch.c: Regenerate.
10804 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10806 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10807 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10808 * i386-tdep.c (i386_gdbarch_init): Ditto.
10809 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10810 * cris-tdep.c (cris_gdbarch_init): Ditto.
10811 * vax-tdep.c (vax_gdbarch_init): Ditto.
10812 * s390-tdep.c (s390_gdbarch_init): Ditto.
10813 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10814 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10815 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10816 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10817 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10818 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10819 * sparc-tdep.c (sparc_gdbarch_init): Update.
10820 * sh-tdep.c (sh_gdbarch_init): Update.
10821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10822 * mips-tdep.c (mips_gdbarch_init): Update.
10823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10824 * ia64-tdep.c (ia64_gdbarch_init): Update.
10825 * frv-tdep.c (frv_gdbarch_init): Update.
10826 * avr-tdep.c (avr_gdbarch_init): Update.
10827 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10828 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
10829 instead of when push_dummy_call is not available.
8ffd9b1b 10830
f7dd6af2
AC
108312003-03-30 Andrew Cagney <cagney@redhat.com>
10832
10833 * infttrace.c: Include "gdbthread.h".
10834 (parent_attach_all): Fix function signature.
10835 (call_ptrace): Update call.
10836 * Makefile.in (infttrace.o): Update dependencies.
10837
28f617b3
AC
108382003-03-30 Andrew Cagney <cagney@redhat.com>
10839
10840 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10841 PUSH_RETURN_ADDRESS.
10842 * gdbarch.h, gdbarch.c: Regenerate.
10843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10844 * x86-64-tdep.c (x86_64_init_abi): Update.
10845 * v850-tdep.c (v850_gdbarch_init): Update.
10846 * sparc-tdep.c (sparc_gdbarch_init): Update.
10847 * sh-tdep.c (sh_gdbarch_init): Update.
10848 * s390-tdep.c (s390_gdbarch_init): Update.
10849 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10850 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10851 * mips-tdep.c (mips_gdbarch_init): Update.
10852 * mcore-tdep.c (mcore_gdbarch_init): Update.
10853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10854 * ia64-tdep.c (ia64_gdbarch_init): Update.
10855 * i386-tdep.c (i386_gdbarch_init): Update.
10856 * h8300-tdep.c (h8300_gdbarch_init): Update.
10857 * frv-tdep.c (frv_gdbarch_init): Update.
10858 * cris-tdep.c (cris_gdbarch_init): Update.
10859 * avr-tdep.c (avr_gdbarch_init): Update.
10860 * arm-tdep.c (arm_gdbarch_init): Update.
10861 * valops.c (hand_function_call): Update.
10862
4d628cd7
AC
108632003-03-29 Andrew Cagney <cagney@redhat.com>
10864
10865 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10866 sizeof_call_dummy_words.
10867 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10868 define.
10869 * gdbarch.h: Regenerate.
8ffd9b1b 10870
65e82032
AC
108712003-03-29 Andrew Cagney <cagney@redhat.com>
10872
10873 * infttrace.h: New file.
10874 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10875 (hpread_get_textlow): Detect an uninitialized dn_bufp.
10876 (hpread_read_doc_function_type): Detect an initialized type1.
10877 (hpread_quick_traverse): Initialize mod_name_string.
10878 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10879 (som_solib_get_solib_by_pc): Declare.
10880 (so_lib_thread_start_addr): Declare.
10881 (no_shared_libraries): Declare.
10882 * somread.c (init_import_symbols): Make static. Add forward
10883 declaration.
10884 * config/pa/nm-hppah.h: Include "infttrace.h" for
10885 parent_attach_all.
10886 (hppa_insert_hw_watchpoint): Declare.
10887 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10888 * hppah-nat.c: Include "gdb_string.h".
10889 (parent_attach_all): Delete extern declaration, moved to
10890 "infttrace.h".
10891 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10892 int.
10893 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10894 * Makefile.in (infttrace_h): Define.
10895 (hpread.o): Update dependencies.
10896 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10897 * hppa-hpux-tdep.c: Include "gdb_string.h".
10898 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10899 * infrun.c (handle_inferior_event): Always initialize
10900 stepped_after_stopped_by_watchpoint. Add default and remove
10901 fallthrough in switch statement.
10902 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10903 parameter to int.
10904 (hppa_remove_hw_watchpoint): Ditto.
10905
2c3bbe77
AC
109062003-03-29 Andrew Cagney <cagney@redhat.com>
10907
10908 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10909 offset.
10910
2dd604e7
RE
109112003-03-29 Richard Earnshaw <rearnsha@arm.com>
10912
10913 * arm-tdep.c (arm_push_arguments): Delete.
10914 (struct stack_item): New type.
10915 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10916 (arm_store_struct_return): Delte.
10917 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
10918 arm_push_arguments or arm_store_struct_return.
10919
e8933a55
AC
109202003-03-28 Andrew Cagney <cagney@redhat.com>
10921
10922 * Makefile.in (d10v-tdep.o): Update dependencies.
10923 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10924 * d10v-tdep.c: Include "remote.h".
10925 (target_resume_hook): Delete extern declaration.
10926 (target_wait_loop_hook): Ditto.
10927 (tdisassemble_command): Eliminate assignment in "if" conditional.
10928 (d10v_ts2_register_sim_regno): Eliminate call to
10929 legacy_register_sim_regno.
10930 (d10v_ts3_register_sim_regno): Ditto.
10931
6949171e
JJ
109322003-03-28 Jeff Johnston <jjohnstn@redhat.com>
10933
10934 * thread.c: Reindented.
10935 * lin-lwp.c: Ditto.
10936 * linux-proc.c: Ditto.
10937
98c7071f
BR
109382003-03-28 Bob Rossi <bob_rossi@cox.net>
10939
fbe586ae 10940 * MAINTAINERS (write after approval): Add myself.
98c7071f 10941
5edc9ca6
TR
109422003-03-27 Theodore A. Roth <troth@openavr.org>
10943
10944 * objc-exp.y: Add missing semi-colons.
10945
378bfd1b
AC
109462003-03-27 Andrew Cagney <cagney@redhat.com>
10947
10948 * regcache.c (write_sp): Delete function and references.
10949 * inferior.h (write_sp): Delete declaration.
10950 * valops.c (hand_function_call): Replace write_sp with
10951 TARGET_WRITE_SP.
10952 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10953 (sparc_pop_frame): Ditto.
8ffd9b1b 10954
56056df7
AC
109552003-03-27 Andrew Cagney <cagney@redhat.com>
10956
10957 * NEWS: Mention removal of support for hppa*-*-bsd* and
10958 hppa*-*-osf* natives, and hppa*-*-pro* target.
10959 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
10960 * config/pa/xm-pa.h: Obsolete file.
10961 * config/pa/xm-hppab.h: Obsolete file.
10962 * config/pa/nm-hppab.h: Obsolete file.
10963 * config/pa/tm-hppab.h: Obsolete file.
10964 * config/pa/tm-hppao.h: Obsolete file.
10965 * config/pa/nm-hppao.h: Obsolete file.
10966 * config/pa/tm-pro.h: Obsolete file.
10967 * config/pa/hppaosf.mt: Obsolete file.
10968 * config/pa/hppaosf.mh: Obsolete file.
10969 * config/pa/hppapro.mt: Obsolete file.
10970 * config/pa/hppabsd.mt: Obsolete file.
10971 * config/pa/hppabsd.mh: Obsolete file.
10972 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
10973 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
10974 hppa*-*-osf*.
10975
5873a88d
AC
109762003-03-27 Andrew Cagney <cagney@redhat.com>
10977
10978 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
10979 push_arguments. Don't set push_return_address or write_sp.
10980 (d10v_push_dummy_call): Replace d10v_push_arguments.
10981 (d10v_push_return_address, d10v_write_sp): Delete function,
10982 handled by push_dummy_call.
10983
b81774d8
AC
109842003-03-26 Andrew Cagney <cagney@redhat.com>
10985
10986 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
10987 (push_dummy_call): New pure multi-arch replacement with gdbarch,
10988 regcache and dummy_addr parameters.
10989 * gdbarch.h, gdbarch.c: Re-generate.
10990 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
10991 available; assume it will handle stack alignment and return
10992 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
10993 legacy_push_arguments.
10994 (legacy_push_arguments): Rename default_push_arguments.
10995 * value.h (legacy_push_arguments): Rename default_push_arguments.
10996 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
10997 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10998 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
10999 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11000 * config/i386/tm-symmetry.h: Update.
11001 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11002 * x86-64-tdep.c (x86_64_init_abi): Update.
11003 * v850-tdep.c (v850_gdbarch_init): Update.
11004 * sparc-tdep.c (sparc_gdbarch_init): Update.
11005 * sh-tdep.c (sh_gdbarch_init): Update.
11006 * s390-tdep.c (s390_gdbarch_init): Update.
11007 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11008 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11009 * mips-tdep.c (mips_gdbarch_init): Update.
11010 * mcore-tdep.c (mcore_gdbarch_init): Update.
11011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11012 * ia64-tdep.c (ia64_gdbarch_init): Update.
11013 * i386-tdep.c (i386_gdbarch_init): Update.
11014 * hppa-tdep.c (hppa_gdbarch_init): Update.
11015 * h8300-tdep.c (h8300_gdbarch_init): Update.
11016 * frv-tdep.c (frv_gdbarch_init): Update.
11017 * d10v-tdep.c (d10v_gdbarch_init): Update.
11018 * cris-tdep.c (cris_gdbarch_init): Update.
11019 * avr-tdep.c (avr_gdbarch_init): Update.
11020 * arm-tdep.c (arm_gdbarch_init): Update.
11021 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11022 * alpha-tdep.c (alpha_gdbarch_init): Update.
11023
f541410f
DJ
110242003-03-26 Daniel Jacobowitz <drow@mvista.com>
11025
11026 * signals/signals.c (do_target_signal_to_host): Correct realtime
11027 signal range test.
11028
69f567ae
DJ
110292003-03-26 Daniel Jacobowitz <drow@mvista.com>
11030
11031 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11032 (struct sal_chain, map_catch_names): Remove.
11033 (catch_exception_command_1): Don't call
11034 handle_gnu_4_16_catch_command.
11035
d5d14a5a
DJ
110362003-03-26 Daniel Jacobowitz <drow@mvista.com>
11037
11038 From Mark Dettinger <dettinge@de.ibm.com>:
11039 * dwarf2cfi.c (read_2u): Increment pointer by two.
11040
bdd73e22
DJ
110412003-03-26 Daniel Jacobowitz <drow@mvista.com>
11042
11043 * signals/signals.c: Fix typos in last change.
11044
960cb555
DJ
110452003-03-26 Daniel Jacobowitz <drow@mvista.com>
11046
11047 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11048 not already defined. Use __SIGRTMIN if available.
11049 (target_signal_from_host): Remove SIGRTMIN block.
11050 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11051 the signal is within the realtime range.
11052
f636b87d
AF
110532003-03-25 Adam Fedor <fedor@gnu.org>
11054
11055 * Makefile.in (infrun.o): Add $(language_h)
11056 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11057 for language specific trampolines.
11058 * language.h (struct language_defn): Add skip_trampoline.
11059 (skip_language_trampoline): Declare.
11060 * language.c (unk_lang_trampoline, skip_language_trampoline):
11061 New functions.
11062 (unknown_language_defn, auto_language_defn, local_language_defn):
11063 Add ukn_lang_trampoline.
11064 * ada-lang.c (ada_language_defn): Add NULL for language
11065 specific skip_trampoline.
11066 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11067 scm-lang.c: Likewise.
11068 * objc-lang.c (objc_skip_trampoline): New function.
11069 (objc_language_defn): Add objc_skip_trampoline.
11070
28f617b3 110712003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11072
11073 * frame.c (get_prev_frame): Delay validating a frame's ID -
11074 non-NULL, didn't go backwards - until an attempt to unwind it to
11075 the previous frame.
11076
f933a9c5
AC
110772003-03-25 Andrew Cagney <cagney@redhat.com>
11078
11079 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11080 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11081 * gdbarch.h, gdbarch.c: Re-generate.
11082 * config/sparc/tm-sparc.h
11083 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11084 * sparc-tdep.c (sparc_gdbarch_init): Set
11085 deprecated_extra_stack_alignment_needed.
11086 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11087 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11088 extra_stack_alignment_needed.
11089 * v850-tdep.c (v850_gdbarch_init): Ditto.
11090 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11091 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11092 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11093 * cris-tdep.c (cris_gdbarch_init): Ditto.
11094 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11096
4183d812
AC
110972003-03-25 Andrew Cagney <cagney@redhat.com>
11098
11099 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11100 STORE_STRUCT_RETURN.
11101 * gdbarch.h, gdbarch.c: Regenerate.
11102 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11103 (d10v_push_arguments): Set the struct return register.
11104 (d10v_gdbarch_init): Update.
11105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11106 * x86-64-tdep.c (x86_64_init_abi): Update.
11107 * vax-tdep.c (vax_gdbarch_init): Update.
11108 * v850-tdep.c (v850_gdbarch_init): Update.
11109 * sparc-tdep.c (sparc_gdbarch_init): Update.
11110 * sh-tdep.c (sh_gdbarch_init): Update.
11111 * s390-tdep.c (s390_gdbarch_init): Update.
11112 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11113 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11114 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11115 * mips-tdep.c (mips_gdbarch_init): Update.
11116 * mcore-tdep.c (mcore_gdbarch_init): Update.
11117 * m68k-tdep.c (m68k_gdbarch_init): Update.
11118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11119 * ia64-tdep.c (ia64_gdbarch_init): Update.
11120 * i386-tdep.c (i386_gdbarch_init): Update.
11121 * hppa-tdep.c (hppa_gdbarch_init): Update.
11122 * h8300-tdep.c (h8300_gdbarch_init): Update.
11123 * frv-tdep.c (frv_gdbarch_init): Update.
11124 * cris-tdep.c (cris_gdbarch_init): Update.
11125 * avr-tdep.c (avr_gdbarch_init): Update.
11126 * arm-tdep.c (arm_gdbarch_init): Update.
11127 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11128
1bf6d5cc
AC
111292003-03-25 Andrew Cagney <cagney@redhat.com>
11130
11131 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11132 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11133 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11134 * gdbarch.h, gdbarch.c: Regenerate.
11135 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11136 call_dummy_stack_adjust_p.
11137 * vax-tdep.c (vax_gdbarch_init): Ditto.
11138 * v850-tdep.c (v850_gdbarch_init): Ditto.
11139 * sh-tdep.c (sh_gdbarch_init): Ditto.
11140 * s390-tdep.c (s390_gdbarch_init): Ditto.
11141 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11142 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11143 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11144 * mips-tdep.c (mips_gdbarch_init): Ditto.
11145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11146 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11148 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11149 * i386-tdep.c (i386_gdbarch_init): Ditto.
11150 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11151 * frv-tdep.c (frv_gdbarch_init): Ditto.
11152 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11153 * cris-tdep.c (cris_gdbarch_init): Ditto.
11154 * avr-tdep.c (avr_gdbarch_init): Ditto.
11155 * arm-tdep.c (arm_gdbarch_init): Ditto.
11156 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11157 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11158 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11159 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11160 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11161 call_dummy_stack_adjust_p.
11162 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11163 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11164 * sparc-tdep.c (sparc32_push_arguments): Update.
11165 * valops.c (hand_function_call): Update.
11166
71c08af0
CV
111672003-03-25 Corinna Vinschen <vinschen@redhat.com>
11168
11169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11170 set_gdbarch_char_signed.
11171
30757f90
RE
111722003-03-25 Richard Earnshaw <rearnsha@arm.com>
11173
11174 PR cli/548
11175 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11176
03d48a7d
RE
111772003-03-25 Richard Earnshaw <rearnsha@arm.com>
11178
11179 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11180 (_initialize_arm_tdep): Don't set tm_print_insn.
11181
2cf6873c
AF
111822003-03-24 Adam Fedor <fedor@gnu.org>
11183
11184 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11185 * objc-lang.h: Add multiple inclusion protection.
11186 (start_msglist, add_msglist, end_msglist): Additional declarations.
11187
17c0759e
RE
111882003-03-24 Richard Earnshaw <rearnsha@arm.com>
11189
11190 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11191 value was renamed to ARM_FLOAT_SOFT_FPA.
11192
618ce49f
AC
111932003-03-23 Andrew Cagney <cagney@redhat.com>
11194
11195 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11196 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11197 * gdbarch.h, gdbarch.c: Regenerate.
11198 * valops.c (hand_function_call): Update.
11199 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11200 * frame.c (legacy_saved_regs_this_id): Update.
11201 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11202 * dummy-frame.h: Update.
11203 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11204 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11205 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11206 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11207 * config/m68k/tm-sun3.h: Update.
11208 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11210 * x86-64-tdep.c (x86_64_init_abi): Update.
11211 * vax-tdep.c (vax_gdbarch_init): Update.
11212 * v850-tdep.c (v850_gdbarch_init): Update.
11213 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11214 * sh-tdep.c (sh_gdbarch_init): Update.
11215 * s390-tdep.c (s390_gdbarch_init): Update.
11216 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11217 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11218 (frame_get_saved_regs): Update.
11219 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11220 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11221 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11222 * mips-tdep.c (mips_gdbarch_init): Update.
11223 * mcore-tdep.c (mcore_gdbarch_init): Update.
11224 * m68k-tdep.c (m68k_gdbarch_init): Update.
11225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11226 * ia64-tdep.c (ia64_gdbarch_init): Update.
11227 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11228 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11229 (i386_interix_back_one_frame): Update.
11230 * hppa-tdep.c (hppa_gdbarch_init): Update.
11231 (hppa_init_extra_frame_info): Update.
11232 * h8300-tdep.c (h8300_gdbarch_init): Update.
11233 * frv-tdep.c (frv_gdbarch_init): Update.
11234 * cris-tdep.c (cris_gdbarch_init): Update.
11235 * avr-tdep.c (avr_gdbarch_init): Update.
11236 * arm-tdep.c (arm_gdbarch_init): Update.
11237 * alpha-tdep.c (alpha_gdbarch_init): Update.
11238
fd50bc42
RE
112392003-03-22 Richard Earnshaw <rearnsha@arm.com>
11240
11241 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11242 (arm_get_fp_model): Declare.
11243 * arm-tdep.c (fp_model_strings): New string array.
11244 (arm_fp_model, current_fp_model): New variables.
11245 (arm_get_fp_model): New function.
11246 (arm_set_fp): New function.
11247 (set_fp_model_sfunc): New function.
11248 (show_fp_model): New function.
11249 (_initialize_arm_tdep): Add new command to set/show the FPU.
11250 (arm_extract_return_value): Use arm_get_fp_model.
11251 (arm_store_return_value): Likewise.
11252 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11253 to initialize the floating-point data types.
11254 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11255 model is FPA.
11256
26304000
RE
112572003-03-22 Richard Earnshaw <rearnsha@arm.com>
11258
11259 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11260 the current setting of each value.
11261 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11262 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11263 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11264 commands and add new version as subcommands of "set/show arm".
11265
afd7eef0
RE
112662003-03-22 Richard Earnshaw <rearnsha@arm.com>
11267
11268 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11269 (set_arm_command, show_arm_command): New functions.
11270 (_initialize_arm_tdep): Add them.
11271 (num_disassembly_options): Renamed from num_flavor_options.
11272 (valid_disassembly_styles): Renamed from valid_flavors.
11273 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11274 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11275 set_disassembly_flavor_sfunc.
11276 (set_disassembly_style): Renamed from set_disassembly_flavor.
11277 (arm_othernames): Updated.
11278 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11279 command. Add "set/show arm disassembly" commands. Deprecate
11280 "othernames" command.
11281
299a7944
RE
112822003-03-22 Richard Earnshaw <rearnsha@arm.com>
11283
11284 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11285 (arm-tdep.o): Depend on elf_arm_h.
11286
c1dac9e6
RE
112872003-03-22 Richard Earnshaw <rearnsha@arm.com>
11288
11289 * Makefile.in (coff_internal_h): Define.
11290 (arm-tdep.o): Update dependencies.
11291
2702d96c
RE
112922003-03-22 Richard Earnshaw <rearnsha@arm.com>
11293
11294 * arm-tdep.c (prologue_cache): Delete.
11295 (check_prologue_cache, save_prologue_cache): Delete.
11296 (arm_scan_prologue): Don't check or update the prologue_cache.
11297 (arm_gdb_arch_init): Don't initialize it.
11298 (_initialize_arm_tdep): Likewise.
11299
27d5d74b
SC
113002003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11301
11302 * MAINTAINERS (tui): Maintainer of tui code.
11303
1762d96d
CV
113042003-03-21 Corinna Vinschen <vinschen@redhat.com>
11305
11306 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11307 (i386-cygwin-tdep.o): Add dependencies.
11308 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11309 * i386-cygwin-tdep.c: New file.
11310 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11311 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11312
4c2e2391
AC
113132003-03-20 Andrew Cagney <cagney@redhat.com>
11314
f20d38b7
AC
11315 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11316 (handle_inferior_event): Remove code calling
11317 DYNAMIC_TRAMPOLINE_NEXTPC.
11318
0022b738
AC
11319 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11320 already has a full path.
11321
864dbc90
AC
11322 * main.c (gdb_main): Return 1.
11323 (captured_main): Call error to report an invalid interpreter.
11324
4c2e2391
AC
11325 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11326 * alpha-osf1-tdep.c: Include "gdb_string.h".
11327
5ef7553b
JB
113282003-03-19 J. Brobecker <brobecker@gnat.com>
11329
11330 Continuing work to convert the hppa targets to multiarch partial.
11331
11332 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11333 method, now that hppa_push_dummy_frame has a conformant prototype.
11334 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11335 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11336 for the switch to multiarch partial.
11337
7bde8967
KB
113382003-03-19 Kevin Buettner <kevinb@redhat.com>
11339
11340 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11341 when iss is issNull.
11342
b006a9e9
KB
113432003-03-18 Kevin Buettner <kevinb@redhat.com>
11344
11345 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11346 NUM_REGS bounds check.
11347
5e2e9765
KB
113482003-03-18 Kevin Buettner <kevinb@redhat.com>
11349
11350 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11351 * mips-tdep.c (gdb_assert.h): Include.
11352 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11353 (mips_register_name): Handle integer registers explicitly. Add
11354 bounds checking.
11355 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11356 (mips_lsi33k_reg_names): Don't list integer registers; they're
11357 handled by mips_register_name() now.
11358 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11359 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11360 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11361 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11362 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11363
a2867626
AC
113642003-03-18 Andrew Cagney <cagney@redhat.com>
11365
11366 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11367 a void pointer.
11368 * gdbtypes.h (print_scalar_formatted): Update declaration.
11369 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11370
06600e06
JB
113712003-03-18 J. Brobecker <brobecker@gnat.com>
11372
11373 * infrun.c (observer.h): Add #include.
11374 (normal_stop): Add call to observer_notify_normal_stop.
11375 * Makefile.in (infrun.o): Add dependency on observer.h.
11376
7daf4f5b
JB
113772003-03-18 J. Brobecker <brobecker@gnat.com>
11378
11379 Continuing work to convert the hppa targets to multiarch partial.
11380 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11381 parameter. Reformat comment.
11382 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11383 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11384 to match new profile.
11385
3371ccc0
JB
113862003-03-18 J. Brobecker <brobecker@gnat.com>
11387
11388 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11389 appear to be working in any case.
11390
4fbe891e
JB
113912003-03-18 J. Brobecker <brobecker@gnat.com>
11392
11393 * observer.c (observer_test_first_observer): New static variable.
11394 (observer_test_second_observer): Likewise.
11395 (observer_test_third_observer): Likewise.
11396 (observer_test_first_notification_function): New static function.
11397 (observer_test_second_notification_function): Likewise.
11398 (observer_test_third_notification_function): Likewise.
11399
a7ff40e7
JB
114002003-03-17 J. Brobecker <brobecker@gnat.com>
11401
11402 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11403 * somsolib.c (gdb_assert.h): Likewise.
11404 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11405 (somsolib.o): Likewise.
11406
26ca4152
AC
114072003-03-17 Andrew Cagney <cagney@redhat.com>
11408
11409 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11410 BFD. Simplify setting of di.endian.
11411
0a613259
AC
114122003-03-17 Andrew Cagney <cagney@redhat.com>
11413
11414 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11415 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11416
11417 From Elena Zannoni <ezannoni@redhat.com>
11418 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11419 vector and floating-point parameters.
11420 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11421 convention.
11422 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11423
1132738f
FN
114242003-03-17 Fernando Nasser <fnasser@redhat.com>
11425
11426 * MAINTAINERS: Remove my name from several maintainership roles.
11427
6dc42492
AC
114282003-03-17 Andrew Cagney <cagney@redhat.com>
11429
11430 Fix frame off-by-one bug.
11431 * frame-unwind.h (frame_this_id_ftype): Replace
11432 frame_unwind_id_ftype.
11433 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11434 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11435 with "prev_register".
11436 * frame-unwind.c (frame_unwind_find_by_pc): Return
11437 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11438 comment.
11439 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11440 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11441 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11442 (dummy_frame_unwind): Update.
11443 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11444 sentinel_frame_register_unwind.
11445 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11446 (sentinel_frame_unwinder): Update.
11447 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11448 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11449 * frame.c (create_sentinel_frame): Update. Initialize
11450 "prologue_cache" instead of "unwind_cache".
11451 (frame_register_unwind): Call this frame's prev_register with the
11452 next frame and this frame's prologue cache.
11453 (get_prev_frame): Simplify. Always call prev frame's this_id with
11454 this frame and prev frame's prologue cache. Document that this
11455 call is shifted one to the left when compared to the
11456 frame_register_unwind call.
11457 (legacy_saved_regs_prev_register): Replace
11458 frame_saved_regs_register_unwind.
11459 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11460 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11461 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11462 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11463 (d10v_frame_unwind): Update.
11464 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11465 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11466 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11467 "saved_regs" with "this_saved_regs".
11468
efd710d6
AC
114692003-03-16 Andrew Cagney <cagney@redhat.com>
11470
11471 * frame.c (frame_pop): Don't call target_store_registers. Fix
11472 problem reported by Mark Kettenis.
11473
4e259f09
MK
114742003-03-16 Mark Kettenis <kettenis@gnu.org>
11475
11476 * i386-tdep.c (i386_register_type): Renamed from
11477 i386_register_virtual_type. Adjust function signature.
11478 (i386_gdbarch_init): Set register_type instead of
11479 deprecated_max_register_raw_size,
11480 deprecated_max_register_virtual_size and register_virtual_type.
11481
055bb976
AC
114822003-03-14 Andrew Cagney <cagney@redhat.com>
11483
11484 * frame.c (get_prev_frame): When a legacy frame, always call
11485 legacy_get_prev_frame. Simplify unwind code using assumption that
11486 the unwinder is new.
11487 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11488 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11489 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11490
ac2adee5
AC
114912003-03-14 Andrew Cagney <cagney@redhat.com>
11492
11493 * frame.c (get_saved_register): Delete function.
11494 * frame.h (get_saved_register): Delete declaration.
11495 * xstormy16-tdep.c: Update comment.
11496 * regcache.h: Update comments.
11497 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11498 get_saved_register and extract_address, use
11499 frame_read_unsigned_register.
11500 (sparc_frame_saved_pc): Ditto.
11501 (sparc_get_saved_register): Instead of get_saved_register, use
11502 frame_register.
11503 (sparc_pop_frame): Ditto.
11504 * findvar.c: Update comments.
11505 (value_of_register): Call frame_register instead of
11506 get_saved_register.
11507 (value_from_register): Ditto.
11508 * config/sparc/tm-sparc.h: Update comment.
11509 * breakpoint.c: Update comment.
11510
129c1cd6
AC
115112003-03-14 Andrew Cagney <cagney@redhat.com>
11512
11513 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11514 GET_SAVED_REGISTER.
11515 * gdbarch.h, gdbarch.c: Re-generate.
11516 * frame.h: Update comments.
11517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11518 * x86-64-tdep.c (x86_64_init_abi): Update.
11519 * sparc-tdep.c (sparc_gdbarch_init): Update.
11520 * sh-tdep.c (sh_gdbarch_init): Update.
11521 * mips-tdep.c (mips_gdbarch_init): Update.
11522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11523 * cris-tdep.c (cris_gdbarch_init): Update.
11524 * ia64-tdep.c (ia64_gdbarch_init): Update.
11525 * frame.c (frame_register): Update.
11526 (get_saved_register): Update.
11527 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11528
749b82f6
AC
115292003-03-13 Andrew Cagney <cagney@redhat.com>
11530
11531 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11532 * gdbarch.h, gdbarch.c: Regenerate.
11533 * valops.c (hand_function_call): Update comment.
11534 * stack.c (return_command): Update comment.
11535 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11536 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11538 * x86-64-tdep.c (x86_64_init_abi): Update.
11539 * vax-tdep.c (vax_gdbarch_init): Update.
11540 * v850-tdep.c (v850_gdbarch_init): Update.
11541 * sparc-tdep.c (sparc_gdbarch_init): Update.
11542 * sh-tdep.c (sh_gdbarch_init): Update.
11543 * s390-tdep.c (s390_gdbarch_init): Update.
11544 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11545 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11546 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11547 * mips-tdep.c (mips_gdbarch_init): Update.
11548 * mcore-tdep.c (mcore_gdbarch_init): Update.
11549 * m68k-tdep.c (m68k_gdbarch_init): Update.
11550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11551 * ia64-tdep.c (ia64_gdbarch_init): Update.
11552 * i386-tdep.c (i386_gdbarch_init): Update.
11553 * hppa-tdep.c (hppa_gdbarch_init): Update.
11554 * h8300-tdep.c (h8300_gdbarch_init): Update.
11555 * frv-tdep.c (frv_gdbarch_init): Update.
11556 * cris-tdep.c (cris_gdbarch_init): Update.
11557 * avr-tdep.c (avr_gdbarch_init): Update.
11558 * arm-tdep.c (arm_gdbarch_init): Update.
11559 * alpha-tdep.c (alpha_gdbarch_init): Update.
11560
1594fa56
AC
115612003-03-13 Andrew Cagney <cagney@redhat.com>
11562
11563 * frame.c (legacy_frame_p): New function.
11564 (get_prev_frame): Use legacy_frame_p.
11565 * frame.h (legacy_frame_p): Declare.
11566
7717fda3
V
115672003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11568
fbe586ae 11569 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11570 listing corrected.
11571
0c67cbe9
V
115722003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11573
fbe586ae 11574 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11575
03febf99
AC
115762003-03-12 Andrew Cagney <cagney@redhat.com>
11577
11578 * frame.c (get_prev_frame): Rename the frame parameter to
11579 "this_frame".
11580 (get_next_frame, legacy_get_prev_frame): Ditto.
11581
0a1e1ca1
AC
115822003-03-12 Andrew Cagney <cagney@redhat.com>
11583
11584 * frame.c (get_current_frame): Check target_has_registers before
11585 checking target_has_stack.
11586 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11587 instead of deprecated_selected_frame.
11588 * findvar.c (value_of_register): Pass "frame", not
11589 deprecated_selected_frame, to value_of_builtin_reg.
11590
a66a9c23
AC
115912003-03-12 Andrew Cagney <cagney@redhat.com>
11592
11593 * regcache.c (regcache_cooked_write_signed): New function.
11594 (regcache_cooked_write_unsigned): New function.
11595 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11596 (regcache_cooked_read_signed): Fix regnum in range assertion.
11597 * regcache.h (regcache_cooked_write_signed): Declare.
11598 (regcache_cooked_write_unsigned): Declare.
11599
8bedc050
AC
116002003-03-12 Andrew Cagney <cagney@redhat.com>
11601
11602 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11603 * gdbarch.h, gdbarch.c: Re-generate.
11604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11605 * x86-64-tdep.h: Update.
11606 * x86-64-tdep.c (x86_64_init_abi): Update.
11607 * v850-tdep.c (v850_gdbarch_init): Update.
11608 * sparc-tdep.c (sparc_gdbarch_init): Update.
11609 * sh-tdep.c (sh_gdbarch_init): Update.
11610 * s390-tdep.c (s390_gdbarch_init): Update.
11611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11612 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11615 * mips-tdep.c (mips_gdbarch_init): Update.
11616 * mcore-tdep.c (mcore_gdbarch_init): Update.
11617 * m68k-tdep.c (m68k_gdbarch_init): Update.
11618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11619 * ia64-tdep.c (ia64_gdbarch_init): Update.
11620 * i386-tdep.c (i386_gdbarch_init): Update.
11621 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11622 * hppa-tdep.c (hppa_gdbarch_init): Update.
11623 * h8300-tdep.c (h8300_gdbarch_init): Update.
11624 * frv-tdep.c (frv_gdbarch_init): Update.
11625 * cris-tdep.c (cris_gdbarch_init): Update.
11626 * avr-tdep.c (avr_gdbarch_init): Update.
11627 * arm-tdep.c (arm_gdbarch_init): Update.
11628 * alpha-tdep.c (alpha_gdbarch_init): Update.
11629 * sh-tdep.c (sh_init_extra_frame_info): Update.
11630 (sh64_init_extra_frame_info): Update.
11631 * ns32knbsd-nat.c (frame_num_args): Update.
11632 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11633 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11634 (xstormy16_frame_chain_valid): Update.
11635 * vax-tdep.c (vax_saved_pc_after_call): Update.
11636 * v850-tdep.c (v850_frame_chain): Update.
11637 (v850_pop_frame): Update.
11638 (v850_init_extra_frame_info): Update.
11639 * sparc-tdep.c (setup_arbitrary_frame): Update.
11640 * ns32k-tdep.c (umax_frame_num_args): Update.
11641 * s390-tdep.c (s390_pop_frame_regular): Update.
11642 * mn10300-tdep.c (mn10300_frame_chain): Update.
11643 (mn10300_pop_frame_regular): Update.
11644 (mn10300_init_extra_frame_info): Update.
11645 * mips-tdep.c (mips_init_frame_pc_first): Update.
11646 (mips_frame_chain): Update.
11647 (mips_pop_frame): Update.
11648 * mcore-tdep.c (mcore_frame_chain): Update.
11649 (mcore_pop_frame): Update.
11650 (mcore_init_extra_frame_info): Update.
11651 * arch-utils.c (init_frame_pc_default): Update.
11652 * m68k-tdep.c (isi_frame_num_args): Update.
11653 (delta68_frame_num_args): Update.
11654 (news_frame_num_args): Update.
11655 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11656 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11657 (alpha_frame_chain): Update.
11658 (alpha_pop_frame): Update.
11659 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11660 (hppa_init_extra_frame_info): Update.
11661 (hppa_frame_chain): Update.
11662 (hppa_frame_chain_valid): Update.
11663 * cris-tdep.c (cris_init_extra_frame_info): Update.
11664 * avr-tdep.c (avr_init_extra_frame_info): Update.
11665 * arm-tdep.c (arm_frame_chain_valid): Update.
11666 (arm_init_extra_frame_info): Update.
11667 (arm_pop_frame): Update.
11668 * frame.c (frame_pc_unwind): Update.
11669 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11670 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11671 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11672 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11673 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11674 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11675
7a25a7c1
AC
116762003-03-12 Andrew Cagney <cagney@redhat.com>
11677
11678 Eliminate the need for POP_FRAME.
11679 * frame.c (do_frame_unwind_register): New function.
11680 (frame_pop): When no POP_FRAME, pop the frame using register
11681 unwind and a scratch regcache.
11682 (frame_saved_regs_pop): Delete function.
11683 (trad_frame_unwinder): Update.
11684 * d10v-tdep.c (d10v_frame_pop): Delete function.
11685 (d10v_frame_unwind): Update.
11686 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11687 (sentinel_frame_unwinder): Update.
11688 * dummy-frame.c (dummy_frame_pop): Delete function.
11689 (dummy_frame_unwind): Update.
11690 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11691 (struct frame_unwind): Update.
11692
2f38ef89
KB
116932003-03-11 Kevin Buettner <kevinb@redhat.com>
11694
11695 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11696 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11697 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11698 Do range checks on register number obtained from debugging info.
11699 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11700 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11701 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11702 mapping function.
11703 (do_fp_register_row): Fix typo which caused double type to be
11704 used when attempting to unpack a float.
11705
552f4abf
JB
117062003-03-11 J. Brobecker <brobecker@gnat.com>
11707
11708 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11709
e0d2ae16
AC
117102003-03-11 Andrew Cagney <cagney@redhat.com>
11711
11712 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11713 frame. Problem found by Corinna Vinschen.
11714
ddbfdd06
PM
117152003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11716
11717 * doublest.c (floatformat_from_length): Accept also
11718 the real size of 'long double' type.
11719
088b2ddc 117202003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11721
088b2ddc 11722 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11723 * breakpoint.c (bpstat_copy): Copy the command lines as well
11724 as the old value, to match what is freed in bpstat_clear.
11725
f56f77c1
DC
117262003-03-10 David Carlton <carlton@math.stanford.edu>
11727
11728 * minsyms.c (add_minsym_to_hash_table): Replace
11729 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11730 (compare_minimal_symbols, compact_minimal_symbols)
11731 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11732 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11733 of DEPRECATED_SYMBOL_MATCHES_NAME.
11734 (lookup_minimal_symbol_solib_trampoline): Ditto.
11735
5602984a
AC
117362003-03-10 Andrew Cagney <cagney@redhat.com>
11737
11738 * regcache.h (regcache_cooked_read_ftype): Define.
11739 (regcache_save, regcache_restore): Add a cooked_read parameter.
11740 * regcache.c (regcache_save, regcache_restore): Update.
11741 (do_cooked_read): New function.
11742 (regcache_cpy): Pass do_cooked_read to regcache_save and
11743 regcache_restore.
11744
8bedc050
AC
117452003-03-10 Andrew Cagney <cagney@redhat.com>
11746
11747 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11748 * gdbarch.h, gdbarch.c: Re-generate.
11749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11750 * x86-64-tdep.h: Update.
11751 * x86-64-tdep.c (x86_64_init_abi): Update.
11752 * v850-tdep.c (v850_gdbarch_init): Update.
11753 * sparc-tdep.c (sparc_gdbarch_init): Update.
11754 * sh-tdep.c (sh_gdbarch_init): Update.
11755 * s390-tdep.c (s390_gdbarch_init): Update.
11756 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11757 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11758 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11759 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11760 * mips-tdep.c (mips_gdbarch_init): Update.
11761 * mcore-tdep.c (mcore_gdbarch_init): Update.
11762 * m68k-tdep.c (m68k_gdbarch_init): Update.
11763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11764 * ia64-tdep.c (ia64_gdbarch_init): Update.
11765 * i386-tdep.c (i386_gdbarch_init): Update.
11766 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11767 * hppa-tdep.c (hppa_gdbarch_init): Update.
11768 * h8300-tdep.c (h8300_gdbarch_init): Update.
11769 * frv-tdep.c (frv_gdbarch_init): Update.
11770 * cris-tdep.c (cris_gdbarch_init): Update.
11771 * avr-tdep.c (avr_gdbarch_init): Update.
11772 * arm-tdep.c (arm_gdbarch_init): Update.
11773 * alpha-tdep.c (alpha_gdbarch_init): Update.
11774 * sh-tdep.c (sh_init_extra_frame_info): Update.
11775 (sh64_init_extra_frame_info): Update.
11776 * ns32knbsd-nat.c (frame_num_args): Update.
11777 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11778 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11779 (xstormy16_frame_chain_valid): Update.
11780 * vax-tdep.c (vax_saved_pc_after_call): Update.
11781 * v850-tdep.c (v850_frame_chain): Update.
11782 (v850_pop_frame): Update.
11783 (v850_init_extra_frame_info): Update.
11784 * sparc-tdep.c (setup_arbitrary_frame): Update.
11785 * ns32k-tdep.c (umax_frame_num_args): Update.
11786 * s390-tdep.c (s390_pop_frame_regular): Update.
11787 * mn10300-tdep.c (mn10300_frame_chain): Update.
11788 (mn10300_pop_frame_regular): Update.
11789 (mn10300_init_extra_frame_info): Update.
11790 * mips-tdep.c (mips_init_frame_pc_first): Update.
11791 (mips_frame_chain): Update.
11792 (mips_pop_frame): Update.
11793 * mcore-tdep.c (mcore_frame_chain): Update.
11794 (mcore_pop_frame): Update.
11795 (mcore_init_extra_frame_info): Update.
11796 * arch-utils.c (init_frame_pc_default): Update.
11797 * m68k-tdep.c (isi_frame_num_args): Update.
11798 (delta68_frame_num_args): Update.
11799 (news_frame_num_args): Update.
11800 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11801 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11802 (alpha_frame_chain): Update.
11803 (alpha_pop_frame): Update.
11804 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11805 (hppa_init_extra_frame_info): Update.
11806 (hppa_frame_chain): Update.
11807 (hppa_frame_chain_valid): Update.
11808 * cris-tdep.c (cris_init_extra_frame_info): Update.
11809 * avr-tdep.c (avr_init_extra_frame_info): Update.
11810 * arm-tdep.c (arm_frame_chain_valid): Update.
11811 (arm_init_extra_frame_info): Update.
11812 (arm_pop_frame): Update.
11813 * frame.c (frame_pc_unwind): Update.
11814 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11815 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11816 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11817 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11818 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11819 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11820
12cc2063
AC
118212003-03-10 Andrew Cagney <cagney@redhat.com>
11822
11823 * gdbarch.sh (gdbarch_unwind_pc): New method.
11824 * gdbarch.h, gdbarch.c: Regenerate.
11825 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
11826 but use read_pc and FRAME_SAVED_PC as fall backs.
11827 (frame_saved_regs_pc_unwind): Delete function.
11828 (trad_frame_unwinder): Update.
11829 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11830 (struct frame_unwind): Update.
11831 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11832 (dummy_frame_unwind): Update.
11833 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11834 (sentinel_frame_unwinder): Update.
11835 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11836 (d10v_frame_unwind): Update.
11837 (d10v_unwind_pc): New function.
11838 (d10v_gdbarch_init): Set unwind_pc.
11839
ef840a37
AC
118402003-03-10 Andrew Cagney <cagney@redhat.com>
11841
a2ce2e56
AC
11842 * gdbarch.h: Re-generate.
11843
ef840a37
AC
11844 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11845 PC.
11846 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11847 the PC register.
11848
08f3424b
MK
118492003-03-08 Mark Kettenis <kettenis@gnu.org>
11850
11851 * gdbarch.sh (save_dummy_frame_tos): Add comment.
11852
1248ede2
AC
118532003-03-08 Andrew Cagney <cagney@redhat.com>
11854
11855 * cli-out.c: Update copyright.
11856 (cli_out_data): Define typedef. Use instead of ui_out_data.
11857
f49bacc8
AC
118582003-03-08 Andrew Cagney <cagney@redhat.com>
11859
11860 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11861 the result.
11862
9b05f993
AC
118632003-03-07 Andrew Cagney <cagney@redhat.com>
11864
11865 * gdbarch.sh: Don't generate two macro definitions when an
11866 undefined macro taking no arguments.
11867 * gdbarch.h: Regenerate.
8ffd9b1b 11868
166f4c7b
ML
118692002-03-07 Michal Ludvig <mludvig@suse.cz>
11870
11871 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11872 (x86_64_unwind_dummy_id): New functions.
11873 (x86_64_init_abi): Register these two new functions.
11874
6d686a84
ML
118752003-03-07 Michal Ludvig <mludvig@suse.cz>
11876
11877 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 11878 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
11879 separate function.
11880 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11881
6314f104
AC
118822003-03-05 Andrew Cagney <cagney@redhat.com>
11883
11884 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11885 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11886 * frame.c (get_prev_frame): Restructure the frame ID unwind code
11887 to use unwind_dummy_id when a dummy frame.
11888 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11889 predicate.
11890 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 11891
ceea5145
AC
118922003-03-05 Andrew Cagney <cagney@redhat.com>
11893
11894 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11895 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11896 Do not use d10v_read_sp or d10v_read_fp when obtaining register
11897 values.
11898
0d843116
AC
118992003-03-05 Andrew Cagney <cagney@redhat.com>
11900
11901 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11902 (struct d10v_unwind_cache): Delete field "frameless". Replace
11903 "next_addr" with "sp_offset". Add "r11_offset".
11904 (d10v_frame_unwind_cache): Update.
11905 (prologue_find_regs): Update. When "mv r11, sp", save the
11906 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
11907 RN was saved in r11_offset.
11908
b2579786
AC
119092003-03-05 Andrew Cagney <cagney@redhat.com>
11910
11911 * frame.c (deprecated_update_frame_pc_hack): Also update the the
11912 cached PC value in the next frame.
11913
218e5956
AC
119142003-03-05 Andrew Cagney <cagney@redhat.com>
11915
11916 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11917 "id_unwind_cache" with "id".
11918 (frame_id_unwind): Delete declaration.
11919 * frame.c (frame_id_unwind): Delete function.
11920 (get_prev_frame): Call the frame id unwind method directly. Store
11921 the returned next frame's ID value in NEXT_FRAME. Note that there
11922 is a problem with the wrong unwind ID being called with the wrong
11923 unwind cache.
11924
ed363b1b
DJ
119252003-03-05 Daniel Jacobowitz <drow@mvista.com>
11926
11927 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11928
fe1f4a5e
DJ
119292003-03-05 James Ingham <jingham@apple.com>
11930 Daniel Jacobowitz <drow@mvista.com>
11931
11932 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11933 (auto_cp_abi): New variable.
11934 (current_cp_abi, num_cp_abis): Make static.
11935 (CP_ABI_MAX): Define.
11936 (cp_abis): Turn into an array.
11937 (value_virtual_fn_field): Fix formatting.
11938 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
11939 takes a pointer.
11940 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11941 (list_cp_abis, _initialize_cp_abi): New functions.
11942 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
11943 declarations for cp_abis, num_cp_abis, current_cp_abi, and
11944 switch_to_cp_abi. Update prototype for register_cp_abi.
11945 * Makefile.in (cp-abi.o): Update dependencies.
11946 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11947 instead of switch_to_cp_abi.
11948 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
11949 register_cp_abi.
11950 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11951 register_cp_abi.
11952 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11953
e4adbba9
DJ
119542003-03-05 Daniel Jacobowitz <drow@mvista.com>
11955
11956 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11957 * dwarf2loc.c: Include "regcache.h".
11958 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
11959 register_size.
11960 * Makefile.in (dwarf2loc.o): Update dependencies.
11961
91ccbfc1
TR
119622003-03-04 Theodore A. Roth <troth@openavr.org>
11963
11964 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
11965 number of io registers reported by remote target is not a multiple of
11966 step.
11967
3d4e8fd2
DC
119682003-03-04 David Carlton <carlton@math.stanford.edu>
11969
11970 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
11971 (lookup_symbol_aux_psymtabs): Update call to
11972 lookup_partial_symbol.
11973 (lookup_transparent_type, find_main_psymtab)
11974 (make_symbol_overload_list): Ditto.
11975
ed42d87b
KH
119762003-03-04 Kazu Hirata <kazu@cs.umass.edu>
11977
11978 * MAINTAINERS (Write after approval): Update my email address.
11979
a0ed5532
AC
119802003-03-03 Andrew Cagney <cagney@redhat.com>
11981
11982 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
11983 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
11984 predicate. Replace MAX_REGISTER_RAW_SIZE.
11985 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
11986 MAX_REGISTER_VIRTUAL_SIZE.
11987 * regcache.c (legacy_max_register_raw_size): New function.
11988 (legacy_max_register_virtual_size): New function.
11989 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
11990 (MAX_REGISTER_RAW_SIZE): Define.
11991 (legacy_max_register_raw_size): Declare.
11992 (legacy_max_register_virtual_size): Declare.
11993 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11994 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
11995 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11996 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11997 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
11998 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
11999 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12000 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12001 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12003 * vax-tdep.c (vax_gdbarch_init): Update.
12004 * v850-tdep.c (v850_gdbarch_init): Update.
12005 * sparc-tdep.c (sparc_gdbarch_init): Update.
12006 * sh-tdep.c (sh_gdbarch_init): Update.
12007 * s390-tdep.c (s390_gdbarch_init): Update.
12008 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12009 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12011 * mips-tdep.c (mips_gdbarch_init): Update.
12012 * mcore-tdep.c (mcore_gdbarch_init): Update.
12013 * m68k-tdep.c (m68k_gdbarch_init): Update.
12014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12015 * ia64-tdep.c (ia64_gdbarch_init): Update.
12016 * i386-tdep.c (i386_gdbarch_init): Update.
12017 * hppa-tdep.c (hppa_gdbarch_init): Update.
12018 * h8300-tdep.c (h8300_gdbarch_init): Update.
12019 * frv-tdep.c (frv_gdbarch_init): Update.
12020 * cris-tdep.c (cris_gdbarch_init): Update.
12021 * avr-tdep.c (avr_gdbarch_init): Update.
12022 * arm-tdep.c (arm_gdbarch_init): Update.
12023 * alpha-tdep.c (alpha_gdbarch_init): Update.
12024 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12025 max_register_raw_size or max_register_virtual_size.
12026
8e437497
DC
120272003-03-03 David Carlton <carlton@math.stanford.edu>
12028
12029 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12030 SYMBOL_MATCHES_NAME, add comment.
12031 (SYMBOL_MATCHES_NATURAL_NAME): New.
12032 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12033 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12034 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12035 * symtab.c (lookup_partial_symbol): Use
12036 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12037 unhelpful comment.
12038 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12039 SYMBOL_MATCHES_NAME.
12040 Fix for PR c++/33.
12041
25120b0d
DC
120422003-03-03 David Carlton <carlton@math.stanford.edu>
12043
12044 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12045 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12046 by regexp matching against SYMBOL_NATURAL_NAME.
12047
78a11fb4
DC
120482003-03-03 David Carlton <carlton@math.stanford.edu>
12049
12050 * linespec.c (find_method): Extract code into collect_methods.
12051 (collect_methods): New.
12052
645dd519
MK
120532003-03-02 Mark Kettenis <kettenis@gnu.org>
12054
b4700d91
MK
12055 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12056 get_frame_base.
12057
645dd519
MK
12058 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12059 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12060
0aa7e1aa
SC
120612003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12062
8ffd9b1b 12063 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12064 and not regnum when summing the size of all registers up to regnum.
12065
f30ee0bc
AC
120662003-03-01 Andrew Cagney <cagney@redhat.com>
12067
12068 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12069 FRAME_INIT_SAVED_REGS.
12070 * gdbarch.h, gdbarch.c: Regenerate.
12071 * stack.c (frame_info): Update.
12072 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12073 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12074 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12075 * ns32k-tdep.c (ns32k_pop_frame): Update.
12076 * mips-tdep.c (mips_pop_frame): Update.
12077 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12078 * ia64-tdep.c (ia64_frame_chain): Update.
12079 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12080 (ia64_frameless_function_invocation): Update.
12081 (ia64_init_extra_frame_info): Update.
12082 (ia64_pop_frame_regular): Update.
12083 * frame.h (struct frame_info): Update comment.
12084 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12085 * frame.c (frame_saved_regs_register_unwind): Update.
12086 (frame_saved_regs_register_unwind): Update.
12087 (deprecated_generic_get_saved_register): Update.
12088 * cris-tdep.c: Update comment.
12089 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12090 Rename macro.
12091 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12092 * x86-64-tdep.c (x86_64_init_abi): Update.
12093 * vax-tdep.c (vax_gdbarch_init): Update.
12094 * v850-tdep.c (v850_gdbarch_init): Update.
12095 * sparc-tdep.c (sparc_gdbarch_init): Update.
12096 * sh-tdep.c (sh_gdbarch_init): Update.
12097 * s390-tdep.c (s390_gdbarch_init): Update.
12098 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12099 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12100 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12101 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12102 * mips-tdep.c (mips_gdbarch_init): Update.
12103 * mcore-tdep.c (mcore_gdbarch_init): Update.
12104 * m68k-tdep.c (m68k_gdbarch_init): Update.
12105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12106 * ia64-tdep.c (ia64_gdbarch_init): Update.
12107 * i386-tdep.c (i386_gdbarch_init): Update.
12108 * frv-tdep.c (frv_gdbarch_init): Update.
12109 * avr-tdep.c (avr_gdbarch_init): Update.
12110 * arm-tdep.c (arm_gdbarch_init): Update.
12111 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12112
42fa7c0f
AC
121132003-03-01 Andrew Cagney <cagney@redhat.com>
12114
12115 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12116 option enum and switch. When no windows, set the interpreter to
12117 INTERP_CONSOLE.
8ffd9b1b 12118
49c7e338
AC
121192003-03-01 Andrew Cagney <cagney@redhat.com>
12120
12121 * main.c (captured_main): Replace magic option characters with an
12122 enum.
12123
e9582e71
AC
121242003-03-01 Andrew Cagney <cagney@redhat.com>
12125
12126 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12127 INIT_EXTRA_FRAME_INFO.
12128 * gdbarch.h, gdbarch.c: Regenerate.
12129 * arm-tdep.c: Update comments.
12130 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12131 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12132 * frame.h, avr-tdep.c: Ditto.
12133 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12134 (create_new_frame, legacy_get_prev_frame): Ditto.
12135 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12136 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12137 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12138 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12139 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12140 * v850-tdep.c (v850_gdbarch_init): Ditto.
12141 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12142 * sh-tdep.c (sh_gdbarch_init): Ditto.
12143 * s390-tdep.c (s390_gdbarch_init): Ditto.
12144 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12145 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12146 * mips-tdep.c (mips_gdbarch_init): Ditto.
12147 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12149 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12150 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12151 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12152 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12153 * frv-tdep.c (frv_gdbarch_init): Ditto.
12154 * cris-tdep.c (cris_gdbarch_init): Ditto.
12155 * avr-tdep.c (avr_gdbarch_init): Ditto.
12156 * arm-tdep.c (arm_gdbarch_init): Ditto.
12157 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12158 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12159
35cac7cf
AC
121602003-03-01 Andrew Cagney <cagney@redhat.com>
12161
12162 * gdbarch.sh (register_type): New function with predicate.
12163 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12164 * gdbarch.h, gdbarch.c: Re-generate.
12165 * arch-utils.c (generic_register_byte): Use generic_register_size.
12166 (generic_register_size): When available, use
12167 gdbarch_register_type.
12168 * regcache.c (init_regcache_descr): When available, initialize the
12169 register type array using gdbarch_register_type. If the
12170 architecture supplies gdbarch_register_type, do not use the legacy
12171 regcache layout.
12172 * d10v-tdep.c (d10v_register_type): Replace
12173 d10v_register_virtual_type.
12174 (d10v_gdbarch_init): Set register_type instead of
12175 register_virtual_type.
12176
7b83296f
AC
121772003-03-01 Andrew Cagney <cagney@redhat.com>
12178
12179 * Makefile.in (ax-gdb.o): Update dependencies.
12180 * ax-gdb.c: Include "regcache.h".
12181 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12182 * findvar.c (value_of_register): Ditto.
12183 * infcmd.c (default_print_registers_info): Ditto.
12184
eadc1c87
MK
121852003-03-01 Mark Kettenis <kettenis@gnu.org>
12186
12187 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12188 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12189
14143612
MK
121902003-03-01 Mark Kettenis <kettenis@gnu.org>
12191
12192 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12193 of STREQ.
12194
a55cc764
DJ
121952003-02-28 Daniel Jacobowitz <drow@mvista.com>
12196
12197 * Makefile.in (dwarf2loc.o): Update dependencies.
12198 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12199 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12200 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12201 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12202 (locexpr_tracepoint_var_ref): New function.
12203 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12204
08a617da
AC
122052003-02-28 Andrew Cagney <cagney@redhat.com>
12206
12207 * regcache.c (register_size): New function.
12208 * regcache.h (register_size): Declare
12209 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12210 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12211
4224873a
DC
122122003-02-28 David Carlton <carlton@math.stanford.edu>
12213
12214 * linespec.c (decode_compound): Extract code into find_method.
12215 (find_method): New.
12216
ccdc5d7f
JB
122172003-02-28 J. Brobecker <brobecker@gnat.com>
12218
12219 * Makefile.in: Add rules to build and link in observer.o.
12220
974e8ced
JB
122212003-02-27 J. Brobecker <brobecker@gnat.com>
12222
12223 * observer.c: Minor comments edits.
12224
7a28f973
JB
122252003-02-27 J. Brobecker <brobecker@gnat.com>
12226
12227 * observer.h, observer.c: New file.
12228
27cddce2
AC
122292003-02-27 Andrew Cagney <cagney@redhat.com>
12230
12231 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12232
b94a41a1
SC
122332003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12234
12235 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12236 (M6812_OP_STS_EXT): Likewise.
12237 (m6811_prologue): Use the above to recognize prologue.
12238 (m6812_prologue): Likewise.
12239
c8be8951
DC
122402003-02-27 David Carlton <carlton@math.stanford.edu>
12241
12242 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12243 SYMBOL_PRINT_NAME.
12244 (compare_psymbols): Ditto.
12245 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12246
d05bb1fc
MS
122472003-02-27 Michael Snyder <msnyder@redhat.com>
12248
4e845cd3
MS
12249 * f-lang.c (build_fortran_types): New function.
12250 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12251 * doublest.c (extract_floating): Fix warning text.
12252
f3824013
AC
122532003-02-27 Andrew Cagney <cagney@redhat.com>
12254
12255 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12256 predicate. Replaces PUSH_DUMMY_FRAME.
12257 * gdbarch.h, gdbarch.c: Regnerate.
12258 * valops.c (hand_function_call): Update. Call
12259 generic_push_dummy_frame directly.
12260 * vax-tdep.c (vax_gdbarch_init): Update.
12261 * sparc-tdep.c (sparc_gdbarch_init): Update.
12262 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12263 * m68k-tdep.c (m68k_gdbarch_init): Update.
12264 * hppa-tdep.c (hppa_gdbarch_init): Update.
12265 * alpha-tdep.c (alpha_gdbarch_init): Update.
12266 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12267 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12268 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12270 push_dummy_frame to generic_push_dummy_frame.
12271 * v850-tdep.c (v850_gdbarch_init): Ditto.
12272 * sh-tdep.c (sh_gdbarch_init): Ditto.
12273 * s390-tdep.c (s390_gdbarch_init): Ditto.
12274 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12276 * mips-tdep.c (mips_gdbarch_init): Ditto.
12277 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12279 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12280 * i386-tdep.c (i386_gdbarch_init): Ditto.
12281 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12282 * frv-tdep.c (frv_gdbarch_init): Ditto.
12283 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12284 * cris-tdep.c (cris_gdbarch_init): Ditto.
12285 * avr-tdep.c (avr_gdbarch_init): Ditto.
12286 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12287
ad188201
KB
122882003-02-26 Kevin Buettner <kevinb@redhat.com>
12289
12290 * mips-tdep.c (show_mips_abi): New function.
12291 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12292 command ``show mips abi''.
12293
6b37567a 122942003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12295
6b37567a 12296 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12297 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12298 more sline entries have been seen for the function.
12299
d3e0a5bf
MC
123002003-02-26 Michael Chastain <mec@shout.net>
12301
12302 * configure: Regenerate with autoconf 000227.
12303
18972eea
MC
123042003-02-26 Michael Chastain <mec@shout.net>
12305
12306 Close PR build/660.
12307 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12308 for old libc5/glibc.
12309 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12310
0bbde931
KW
123112003-02-26 Kris Warkentin <kewarken@qnx.com>
12312
12313 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12314 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12315
27ca5dad
MC
123162003-02-26 Michael Chastain <mec@shout.net>
12317
12318 * configure.in: New variable HAVE_UINTPTR_T.
12319 * configure, config.in: Regenerated.
12320
6f88d630
DJ
123212003-02-26 Daniel Jacobowitz <drow@mvista.com>
12322
12323 Fix PR build/1097.
12324 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12325
b14185ce
AC
123262003-02-25 Andrew Cagney <cagney@redhat.com>
12327
12328 * frame.c (get_prev_frame): Add comment on check for
12329 inside_entry_func. Only check for inside_entry_file when not a
12330 dummy and not a sentinel. Check that the new frame is not inner
12331 to the old frame.
12332
ac2bd0a9
AC
123332003-02-25 Andrew Cagney <cagney@redhat.com>
12334
12335 * frame.c (frame_debug): New variable.
12336 (_initialize_frame): Add "set/show debug frame" command.
12337 (get_prev_frame): When frame_debug, print reason why unwind
12338 failed.
12339
b18a0fd2
MC
123402003-02-25 Michael Chastain <mec@shout.net>
12341
12342 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12343 to avoid uintptr_t definition problems.
12344
22abf04a
DC
123452003-02-25 David Carlton <carlton@math.stanford.edu>
12346
12347 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12348 (SYMBOL_LINKAGE_NAME): Ditto.
12349 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12350 SYMBOL_LINKAGE_NAME.
12351 (struct general_symbol_info): Expand comment.
12352 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12353 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12354 (SYMBOL_MATCHES_REGEXP): Ditto.
12355 * symtab.c (symbol_natural_name): New function.
12356 * objfiles.h: Replace all uses of SYMBOL_NAME by
12357 DEPRECATED_SYMBOL_NAME.
12358 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12359 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12360 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12361 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12362 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12363 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12364 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12365 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12366 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12367 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12368 * ada-exp.y: Ditto.
12369 * ada-exp.y: Update copyright.
12370 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12371 * cp-valprint.c: Ditto.
12372
1a5848f6
JJ
123732003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12374
12375 * infptrace.c (detach): Do not flag error if ptrace detach fails
12376 and errno is set to ESRCH.
12377
7343d46a
AC
123782003-02-24 Andrew Cagney <cagney@redhat.com>
12379
12380 * infptrace.c (udot_info): Change type of udot_off to long. Use
12381 paddr when printing udot_off's value.
12382
49fa1dc2
DC
123832003-02-24 David Carlton <carlton@math.stanford.edu>
12384
12385 * symtab.c (make_symbol_overload_list): Only read in partial
12386 symtabs containing a matching partial symbol.
12387
0fe19209
DC
123882003-02-24 David Carlton <carlton@math.stanford.edu>
12389
12390 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12391 do the comparison, not strcmp.
12392 * symfile.c (compare_psymbols): Ditto.
12393 * defs.h: Declare strcmp_iw_ordered.
12394 * utils.c (strcmp_iw_ordered): New function.
12395
8e3ee7b5
JB
123962003-02-24 Jim Blandy <jimb@redhat.com>
12397
12398 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12399 support, shared libs): Remove my name from here, to better reflect
12400 reality.
12401
7df1a324
KW
124022003-02-24 Kris Warkentin <kewarken@qnx.com>
12403
12404 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12405 (target_ops): Add to_have_continuable_watchpoint.
12406 * target.c (update_current_target): Add INHERIT line for
12407 to_have_continuable_watchpoint.
12408 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12409 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12410 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12411 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12412
d1c76907
EZ
124132003-02-24 Elena Zannoni <ezannoni@redhat.com>
12414
12415 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12416 maintainership.
12417
2610b0bf
KW
124182003-02-24 Kris Warkentin <kewarken@qnx.com>
12419
f46169db
KW
12420 * solib.c (solib_open): Call target defined search function after
12421 failing with solib-search-path.
12422 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12423 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12424
9a3c34fe
KW
124252003-02-24 Kris Warkentin <kewarken@qnx.com>
12426
f46169db 12427 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12428
2417dd25
SC
124292003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12430
12431 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12432
b631436b
SC
124332003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12434
12435 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12436 (m68hc11_add_reggroups): New function.
12437 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12438 (m68hc11_gdbarch_init): Install the reggroups.
12439 (_initialize_m68hc11_tdep): Initialize them.
12440
0aa8c1e4
JW
124412003-02-21 James E Wilson <wilson@tuliptree.org>
12442
12443 * MAINTAINERS: Update my email address.
12444
50ceaba5
DC
124452003-02-21 David Carlton <carlton@math.stanford.edu>
12446
12447 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12448
4c2df51b
DJ
124492003-02-21 Daniel Jacobowitz <drow@mvista.com>
12450
12451 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12452 * symtab.h: Add opaque declarations of struct axs_value and
12453 struct agent_expr.
12454 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12455 (struct location_funcs): New type.
12456 (struct symbol): Add "loc" to aux_value.
12457 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12458 * dwarf2read.c: Include "dwarf2expr.h".
12459 (dwarf2_symbol_mark_computed): New function.
12460 (read_func_scope): Use it.
12461 (var_decode_location): New function.
12462 (new_symbol): Use it.
12463 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12464
12465 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12466 (dwarf2expr_h, dwarf2loc_h): New variables.
12467 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12468 (dwarf2expr.o, dwarf2loc.o): New rules.
12469 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12470 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12471 LOC_COMPUTED_ARG.
12472 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12473 * m2-exp.y (yylex): Likewise.
12474 * printcmd.c (address_info, print_frame_args): Likewise.
12475 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12476 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12477 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12478 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12479 * symtab.c (lookup_block_symbol): Likewise.
12480
5784d15e
AF
124812003-02-20 Adam Fedor <fedor@gnu.org>
12482
12483 * symtab.h: Remove objc_specific struct
12484 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12485 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12486 Have language_objc use cplus_specific struct.
12487
d4cad8db
TT
124882003-02-20 Tom Tromey <tromey@redhat.com>
12489
12490 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12491 TYPE_NAME, when printing a String value. PR java/1075.
12492
2f9a90b4
AF
124932003-02-20 Adam Fedor <fedor@gnu.org>
12494
d38074a8 12495 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12496 * objc-lang.c (find_methods): Make static.
2f9a90b4 12497
6f17862b
CF
124982003-02-20 Christopher Faylor <cgf@redhat.com>
12499
12500 * win32-nat.c (get_image_name): Check return value from
12501 ReadProcessMemory.
12502 (child_xfer_memory): Ditto.
12503
715d1656
AO
125042003-02-20 Alexandre Oliva <aoliva@redhat.com>
12505
12506 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12507 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12508 '${exec_prefix}' (in addition to the expansion thereof) as
12509 relocatable.
12510 * configure: Rebuilt.
12511
b1262a02
DC
125122003-02-20 David Carlton <carlton@math.stanford.edu>
12513
12514 * symtab.c (search_symbols): Revert the search_symbols part of my
12515 2002-12-23 patch. Add comment.
12516
7134143f
DJ
125172002-02-20 Daniel Jacobowitz <drow@mvista.com>
12518
12519 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12520 * dbxread.c (elfstab_build_psymtabs): Don't call
12521 install_minimal_symbols.
12522 (stabsect_build_psymtabs): Likewise.
12523 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12524 earlier.
12525 * somread.c (som_symfile_read): Call install_minimal_symbols
12526 and do_cleanups earlier.
12527 * nlmread.c (nlm_symfile_read): Likewise.
12528 * mdebugread.c (elfmdebug_build_psymtabs): Call
12529 install_minimal_symbols and make appropriate cleanups.
12530
cf466558
KB
125312003-02-20 Kevin Buettner <kevinb@redhat.com>
12532
12533 * solib.c (reload_shared_libraries): New function.
12534 (_initialize_solib): Add callbacks for ``set solib-search-path''
12535 and ``set solib-absolute-prefix''.
12536
de5ad195
DC
125372003-02-20 David Carlton <carlton@math.stanford.edu>
12538
12539 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12540 expand comment.
12541 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12542 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12543 * ada-typeprint.c (ada_typedef_print): Ditto.
12544 * ax-gdb.c (gen_var_ref): Ditto.
12545 * breakpoint.c (print_one_breakpoint): Ditto.
12546 * buildsym.c (finish_block): Ditto.
12547 * c-valprint.c (c_val_print): Ditto.
12548 * expprint.c (print_subexp): Ditto.
12549 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12550 * infcmd.c (jump_command): Ditto.
12551 * linespec.c (decode_line_2, decode_compound): Ditto.
12552 * maint.c (maintenance_translate_address): Ditto.
12553 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12554 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12555 Ditto.
8ffd9b1b
AJ
12556 * p-valprint.c (pascal_val_print): Ditto.
12557 * stabsread.c (define_symbol): Ditto.
de5ad195 12558 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12559 (print_frame_arg_vars, return_command): Ditto.
12560 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12561 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12562 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12563 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12564 (rbreak_command): Ditto.
12565 * tracepoint.c (tracepoints_info): Ditto.
12566 * typeprint.c (typedef_print): Ditto.
12567 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12568 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12569 * ada-typeprint.c: Update Copyright.
12570 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12571 * tracepoint.c, cli/cli-cmds.c: Ditto.
12572
f796e4be
KB
125732003-02-20 Kevin Buettner <kevinb@redhat.com>
12574
12575 * frame.c (generic_unwind_get_saved_register): Make non-static.
12576 * frame.h (generic_unwind_get_saved_register): Declare.
12577 * mips-tdep.c (read_next_frame_reg): Fetch register from
12578 current regcache when frame is NULL.
12579 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12580 that must be NULL.
12581 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12582 instead of frame_register_unwind().
12583
836cc9f4
AC
125842003-02-20 Andrew Cagney <ac131313@redhat.com>
12585
12586 * remote-sim.c (gdbsim_insert_breakpoint)
12587 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12588 code.
12589
501eef12
AC
125902003-02-20 Andrew Cagney <ac131313@redhat.com>
12591
12592 * remote.c (_initialize_remote): Add commands "set/show remote
12593 hardware-watchpoint-limit" and "set/show remote
12594 hardware-breakpoint-limit".
12595 (remote_hw_watchpoint_limit): Initialize to -1.
12596 (remote_hw_breakpoint_limit): Ditto.
12597 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12598
1b6bc7e0
CF
125992003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12600
12601 * coff-pe-read.c: New file - support reading of minimal symbols from a
12602 portable executable using the export table.
12603 * coff-pe-read.h: New file.
12604 * coffread.c: Include coff-pe-read.h.
12605 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12606 debugging symbols found.
12607 * Makefile.in (SFILES): Add coff-pe-read.o.
12608 (coff_pe_read_h): Define.
12609 (COMMON_OBS): Add coff-pe-read.o.
12610 (coffread.o): Add coff_pe_read_h dependency.
12611 (coff-pe-read.o): New target.
12612
fe898f56
DC
126132003-02-19 David Carlton <carlton@math.stanford.edu>
12614
12615 * Makefile.in (SFILES): Add block.c.
12616 (block_h): New.
12617 (COMMON_OBS): Add block.o.
12618 (block.o): New.
12619 (x86-64-tdep.o): Add $(block_h).
12620 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12621 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12622 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12623 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12624 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12625 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12626 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12627 * value.h: Add opaque declaration for struct block.
12628 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12629 * ada-lang.h: Ditto.
12630 * x86-64-tdep.c: #include "block.h"
12631 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12632 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12633 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12634 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12635 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12636 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12637 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12638 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12639 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12640 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12641 * symtab.c (block_function): Ditto.
12642 (contained_in): Ditto.
12643 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12644 block.h. Add opaque declaration for struct block.
12645 * symtab.h: Move block_function and contained_in declarations to
12646 block.h. Add opaque declarations for struct block, struct
12647 blockvector.
12648 (struct block): Move to block.h.
12649 (struct blockvector): Ditto.
12650 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12651 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12652 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12653 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12654 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12655 Ditto.
12656 * block.c: New file.
12657 * block.h: New file.
12658
173345b5
TR
126592003-02-19 Theodore A. Roth <troth@openavr.org>
12660
12661 * avr-tdep.c (avr_extract_return_value): Remove function.
12662 (avr_store_return_value): Remove function.
12663 (avr_extract_struct_value_address): Remove function.
12664 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12665
338ef23d
AC
126662003-02-19 Andrew Cagney <ac131313@redhat.com>
12667
12668 * rs6000-tdep.c: Include "gdb_assert.h".
12669 (registers_e500): Add "acc" and "spefscr".
12670 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12671 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12672 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12673 really is "r0".
12674 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12675
5412f5f3
KS
126762003-02-18 Keith Seitz <keiths@redhat.com>
12677
12678 * Makefile.in: Add gdbtk-interps.c.
12679
881324eb
KB
126802003-02-18 Kevin Buettner <kevinb@redhat.com>
12681
12682 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12683 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12684
6a2f5abf
AC
126852003-02-18 Andrew Cagney <cagney@redhat.com>
12686
12687 * symtab.h (struct objfile): Add opaque declaration.
12688
54c7009d
EZ
126892003-02-18 Elena Zannoni <ezannoni@redhat.com>
12690
12691 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12692 * dbxread.c (process_one_symbol): Use last_function_start rather
12693 than function_start_offset to find the real beginning of the
12694 current function. The latter is just the text section offset on
12695 some systems, the former is always the real function start.
54c7009d 12696
7ee6d7eb
AC
126972003-02-17 Andrew Cagney <cagney@redhat.com>
12698
12699 * configure.in: Revert ${target} != ${host}.
12700
2846da9b
AC
127012003-02-17 Andrew Cagney <ac131313@redhat.com>
12702
12703 * configure.in (Makefile): Use the test ${target} != ${host},
12704 instead of the absence of the "nm.h" file, to determine of the
12705 configuration non-native.
12706 * configure: Regenerate.
8ffd9b1b 12707
3b27aeea
EZ
127082003-02-14 Elena Zannoni <ezannoni@redhat.com>
12709
fbe586ae 12710 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12711
12712 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12713 conditionalize tui_active test.
12714 (lookup_cmd_1): Ditto.
12715
b0b1c2c0
MK
127162003-02-14 Mark Kettenis <kettenis@gnu.org>
12717
12718 * configure.in: Add check for _etext.
12719 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12720 available.
12721 * config.in, configure: regenerated.
12722
8f05cde5
DJ
127232003-02-14 Daniel Jacobowitz <drow@mvista.com>
12724
12725 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12726
021e7609
AC
127272003-02-14 Andrew Cagney <ac131313@redhat.com>
12728
12729 * main.c (tui_version): Delete variable.
12730 (captured_main): When --tui, set interpreter_p to "tui" instead of
12731 enabling tui_version.
12732 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12733 tui_version.
12734 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12735 * cli/cli-cmds.c (disassemble_command): Ditto.
12736 * defs.h (tui_version): Delete declaration.
12737 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12738 (tui-interp.o): Add rules.
12739 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12740
e325dcec
CF
127412003-02-14 Christopher Faylor <cgf@redhat.com>
12742
36ffb041 12743 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12744 just-loaded dll.
12745
c4f90d87
JM
127462003-02-12 Jason Molenda (jmolenda@apple.com)
12747
fbe586ae
RH
12748 * symmisc.c (print_objfile_statistics): Include information about
12749 the number of psymtabs and symtabs in each object file.
c4f90d87 12750
e46e5ccd
KS
127512003-02-13 Keith R Seitz <keiths@redhat.com>
12752
12753 * main.h (struct captured_main_args): Add interpreter_p.
12754 * main.c (captured_main): Initialize interpreter_p from context.
12755 * gdb.c (main): Set interpreter_p argument.
12756 * Makefile.in (gdb.o): Add dependency for interps.h.
12757
fe97fe9c
AC
127582003-02-12 Andrew Cagney <ac131313@redhat.com>
12759
12760 * event-top.c (cli_command_loop): Delete declaration.
12761 (_initialize_event_loop): Delete function setting event_loop_hook.
12762 * event-top.h (cli_command_loop): Declare. Update copyright.
12763 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12764 * interps.c (current_interp_command_loop): When event_loop_p, call
12765 cli_command_loop.
12766
1cdac4ef
AC
127672003-02-12 Andrew Cagney <ac131313@redhat.com>
12768
12769 * interps.h (interp_command_loop_ftype): Change return type to
12770 void.
12771
48037ead
ML
127722003-02-12 Michal Ludvig <mludvig@suse.cz>
12773
12774 * x86-64-tdep.c (x86_64_extract_return_value)
12775 (x86_64_store_return_value): Use regcache instead of regbuf.
12776 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12777 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12778
033afc63
AC
127792003-02-11 Andrew Cagney <ac131313@redhat.com>
12780
12781 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12782 * aclocal.m4: Regenerate.
12783 * configure: Regenerate.
12784
12785 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12786 TCL_LD_SEARCH_FLAGS.
12787
40d02bca
ML
127882003-02-10 Michal Ludvig <mludvig@suse.cz>
12789
12790 * dwarf2cfi.c: Reindented.
12791
11308a41
AC
127922003-02-09 Andrew Cagney <ac131313@redhat.com>
12793
12794 * interps.c (clear_interpreter_hooks): Convert function definition
12795 to ISO C.
12796
e1c1c0f6
DC
127972003-02-07 David Carlton <carlton@math.stanford.edu>
12798
12799 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12800
ab5d3da6
KB
128012003-02-07 Kevin Buettner <kevinb@redhat.com>
12802
12803 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12804 (struct type): ...to here.
12805 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12806 field.
12807 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12808 (replace_type): Set length on all type variants for a given type.
12809
b8a92b82
AC
128102003-02-07 Andrew Cagney <ac131313@redhat.com>
12811
12812 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12813 <sys/stat.h>.
12814 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12815
5cb316ef
AC
128162003-02-06 Andrew Cagney <ac131313@redhat.com>
12817
2555fe1a
AC
12818 * Makefile.in (symm-nat.o): Update dependencies.
12819 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12820 (lynx-nat.o, ia64-linux-nat.): Ditto.
12821 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12822 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12823 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12824
44270758
AC
12825 * Makefile.in (inflow_h): Define.
12826 (procfs.o, inflow.o, procfs.o): Update dependencies.
12827 * inftarg.c (child_stop): Delete extern declaration of
12828 inferior_process_group. Include "inflow.h".
12829 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
12830 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12831 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
12832 (our_process_group, inferior_process_group): Extern declarations.
12833
df8f7274
AC
12834 * procfs.c: Include "gdb_assert.h".
12835
5cb316ef
AC
12836 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12837 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12838 * jv-typeprint.c (java_type_print_base): Ditto.
12839 * typeprint.c (typedef_print): Eliminate STREQ.
12840 * cli/cli-script.c (define_command, define_command): Ditto.
12841 * main.c (captured_main): Ditto.
12842 * values.c (lookup_internalvar): Ditto.
12843 * utils.c (safe_strerror, parse_escape): Eliminate assignment
12844 within `if' conditional.
12845 * linespec.c (decode_line_2): Ditto.
12846 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12847 (bfd_openw_with_cleanup): Ditto.
12848
2a28ccea
MK
128492003-02-07 Mark Kettenis <kettenis@gnu.org>
12850
12851 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12852 legacy_extract_return_value and store_return_value to
12853 legacy_return_value.
12854
786b8124
CF
128552003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
12856
12857 * win32-nat.c (get_relocated_section_addrs): New function. Find
12858 section load addresses for symbol handling in relocated DLLs.
12859 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12860
b871e4ec
FF
128612003-02-05 Fred Fish <fnf@intrinsity.com>
12862
12863 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12864 '=' and '!='.
12865 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12866 with '&' and '=='.
12867 (angel_RDI_info): Ditto.
12868 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12869 with '&' and '!='.
12870 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 12871
4389a95a 128722003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
12873 Keith Seitz <keiths@redhat.com>
12874 Elena Zannoni <ezannoni@redhat.com>
12875 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
12876
12877 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12878 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12879 (SUBDIR_MI_OBS): Add "mi-interp.o".
12880 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12881 (SFILES): Add "interps.c".
12882 (COMMON_OBS): Add "interps.o".
12883 (interps_h, mi_main_h): Define.
12884 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12885 (mi-main.o, main.o, event-top.o): Update dependencies.
12886 * cli/cli-interp.c: New file.
12887 * interps.h, interps.c: New files.
12888 * top.c: (gdb_init): Don't install the default interpreter, handed
12889 by captured_main.
12890 * main.c: Include "interps.h".
12891 (interpreter_p): Note that it should malloc'ed.
12892 (captured_command_loop): Call current_interp_command_loop.
12893 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
12894 xfree and xstrdup when updating interpreter_p. Install the
12895 default interpreter. Add hack to stop mi1's copyright notice
12896 being encoded.
12897 * event-top.h (gdb_setup_readline): Declare.
12898 (gdb_disable_readline): Declare.
12899 * event-top.c: Include "interps.h".
12900 (display_gdb_prompt): Call current_interp_display_prompt_p.
12901 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12902 gdb_stdlog, and gdb_stdtarg.
12903 (_initialize_event_loop): Don't call gdb_setup_readline.
12904 * cli-out.c (cli_out_set_stream): New function.
12905 * cli-out.h (cli_out_set_stream): Declare.
12906
ff3b5810
MK
129072003-02-06 Mark Kettenis <kettenis@gnu.org>
12908
12909 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12910 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
12911 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12912 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12913 config/i386/i386v42mp.mt: Removed.
12914
5b729aa5
MK
129152003-02-05 Mark Kettenis <kettenis@gnu.org>
12916
12917 * configure.tgt (*-*-solaris*): Set gdb_osabi to
12918 GDB_OSABI_SOLARIS.
12919
8cc15142
MC
129202003-02-05 Michael Chastain <mec@shout.net>
12921
12922 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12923 2.12.1 and earlier versions.
12924
5aa5d4b9
AC
129252003-02-05 Andrew Cagney <ac131313@redhat.com>
12926
12927 Remove orphaned hosts, targets and files.
12928 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12929 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12930 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12931 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12932 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12933 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12934 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12935 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12936 * config/sparc/tm-sp64sim.h: Delete.
12937 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12938 hosts.
12939 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12940 mips*-dec-mach3* targets.
12941
b68767c1
MC
129422003-02-04 Michael Chastain <mec@shout.net>
12943
12944 * NEWS: Fix typo: sepcifying -> specifying.
12945
5ae7ca1d
MC
129462003-02-04 Michael Chastain <mec@shout.net>
12947
12948 * dwarfread.c: Add documentation on the state of dwarf-1,
12949 looking towards obsoletion.
12950
d08a4280
MC
129512003-02-03 Michael Chastain <mec@shout.net>
12952
12953 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12954 gdb/testsuite/gdb.c++/pr-1023.exp.
12955
e9be73e4
AC
129562003-02-04 Andrew Cagney <ac131313@redhat.com>
12957
12958 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
12959 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
12960
12961 * utils.c (init_page_info): Delete reference to MPW in comments.
12962 * main.c (captured_main): Delete #ifdef MPW.
12963
05d57f6f
AC
129642003-02-04 Andrew Cagney <ac131313@redhat.com>
12965
8ffd9b1b 12966 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
12967 * monitor.c (monitor_expect): Obsolete reference to m32r.
12968 * configure.tgt: Mark m32r-*-elf* as obsolete.
12969 * MAINTAINERS: Mark m32k as obsolete.
12970 * m32r-rom.c: Obsolete file.
12971 * config/m32r/m32r.mt: Obsolete file.
12972 * config/m32r/tm-m32r.h: Obsolete file.
12973 * m32r-stub.c: Obsolete file.
12974 * m32r-tdep.c: Obsolete file.
12975
8b0e5691
AC
129762003-02-04 Andrew Cagney <ac131313@redhat.com>
12977
12978 * NEWS: Mention that the z8k-zilog-none is obsolete.
12979 * MAINTAINERS: Mark z8k as obsolete.
12980 * configure.tgt: Obsolete the z8k-*-coff* target.
12981 * config/z8k/z8k.mt: Obsolete file.
12982 * config/z8k/tm-z8k.h: Obsolete file.
12983 * z8k-tdep.c: Obsolete file.
12984
67f16606
AC
129852003-02-04 Andrew Cagney <ac131313@redhat.com>
12986
12987 * NEWS: Mention that the mn10200-elf is obsolete.
12988 * configure.tgt: Obsolete mn10200-*-* target.
12989 * breakpoint.c (update_breakpoints_after_exec): Update comment to
12990 mention that the mn10200 is obsolete.
12991 * breakpoint.h: Ditto.
12992 * MAINTAINERS: Mark the mn10200-elf as obsolete.
12993 * config/mn10200/mn10200.mt: Obsolete file.
12994 * config/mn10200/tm-mn10200.h: Obsolete file.
12995 * mn10200-tdep.c: Obsolete file.
12996
fd2299bd
AC
129972003-02-04 Andrew Cagney <ac131313@redhat.com>
12998
12999 * MAINTAINERS: Mark h8500 as obsolete.
13000 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13001 * findvar.c (value_from_register): Ditto.
13002 * h8500-tdep.c: Mark file as obsolete.
13003 * config/h8500/h8500.mt: Ditto.
13004 * config/h8500/tm-h8500.h: Ditto.
13005 * NEWS: Mention that h8500 is obsolete.
13006
eb9a305d
DC
130072003-02-04 David Carlton <carlton@math.stanford.edu>
13008
13009 * objfiles.c (allocate_objfile): Always set name. Add comment at
13010 start of function.
13011 * jv-lang.c (get_dynamics_objfile): Add comment.
13012
406fc7fb
DC
130132003-02-04 David Carlton <carlton@math.stanford.edu>
13014
13015 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13016 * printcmd.c (build_address_symbolic): Replace uses of
13017 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13018 SYMBOL_NAME, and asm_demangle.
13019 Update copyright.
13020
93d91629
DC
130212003-02-04 David Carlton <carlton@math.stanford.edu>
13022
13023 * linespec.c (decode_compound): Extract code into
13024 lookup_prefix_sym.
13025 (lookup_prefix_sym): New function.
13026
1c5cb38e
DC
130272003-02-04 David Carlton <carlton@math.stanford.edu>
13028
13029 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13030 FLOAT_COERCION_BADNESS.
13031 * gdbtypes.c (rank_one_type): Replace all uses of
13032 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13033
0cf824c9
JB
130342003-02-04 Jim Blandy <jimb@redhat.com>
13035
13036 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13037 section, let dwarf_macinfo_section point to it, not
13038 dwarf_loc_section.
13039
a2d356b0
DJ
130402003-02-04 Daniel Jacobowitz <drow@mvista.com>
13041
13042 Pointed out by Anton Blanchard <anton@samba.org>.
13043 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13044 (ppc_linux_at_sigtramp_return_path): Use it.
13045
2de7ced7
DJ
130462003-02-04 Daniel Jacobowitz <drow@mvista.com>
13047
13048 * defs.h (streq): Add prototype.
13049 * utils.c (streq): New function.
13050
13051 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13052 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13053 * mdebugread.c (new_symbol): Likewise.
13054 * stabsread.c (define_symbol): Likewise.
13055 * coffread.c (process_coff_symbol): Likewise.
13056 * dwarfread.c (new_symbol): Likewise.
13057
13058 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13059 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13060 here.
13061 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13062 SYMBOL_INIT_DEMANGLED_NAME.
13063 * objfiles.c: Include "hashtab.h".
13064 (allocate_objfile): Call htab_set_functions_ex for the
13065 demangled_names_hash.
13066 (free_objfile): Call htab_delete for the demangled_names_hash.
13067 * objfiles.h (struct htab): Add declaration.
13068 (struct objfile): Add demangled_names_hash.
13069 * symfile.c: Include "hashtab.h".
13070 (reread_symbols): Call htab_delete for the demangled_names_hash.
13071 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13072 SYMBOL_NAME in the bcache.
13073 * symtab.c: Include "hashtab.h". Update comments.
13074 (create_demangled_names_hash, symbol_set_names): New functions.
13075 (symbol_find_demangled_name): New function, broken out from
13076 symbol_init_demangled_names.
13077 (symbol_init_demangled_names): Use it.
13078 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13079 (SYMBOL_SET_NAMES): New macro.
13080 (symbol_set_names): Add prototype.
13081
15831452
JB
130822003-02-03 Jim Blandy <jimb@redhat.com>
13083
13084 Use a single, consistent representation for an empty minimal
13085 symbol table in an objfile.
13086 * objfiles.c (terminate_minimal_symbol_table): New function.
13087 (allocate_objfile): Call it.
13088 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13089 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13090 non-NULL.
15831452
JB
13091 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13092 objfile has minimal symbols, compare minimal_symbol_count to zero,
13093 instead of comparing msymbols with NULL.
13094 * objfiles.c (have_minimal_symbols): Same.
13095 * solib-sunos.c (solib_add_common_symbols): Call
13096 terminate_minimal_symbol_table.
13097 * symfile.c (reread_symbols): Same.
8ffd9b1b 13098
ffc65945
KB
130992003-02-03 Kevin Buettner <kevinb@redhat.com>
13100
13101 * s390-tdep.c (s390_address_class_type_flags)
13102 (s390_address_class_type_flags_to_name)
13103 (s390_address_class_name_to_type_flags): New functions.
13104 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13105 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13106
f211c6d4
MS
131072003-02-03 Michael Snyder <msnyder@redhat.com>
13108
13109 * arm-tdep.c: Fix spell-o in comment.
13110
659b0389
ML
131112003-02-03 Michal Ludvig <mludvig@suse.cz>
13112
13113 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13114 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13115 error messages to contain BFD filename.
659b0389 13116
3b31d625
EZ
131172003-02-02 Elena Zannoni <ezannoni@redhat.com>
13118
997b089a 13119 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13120 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13121 (do_mixed_source_and_assembly): Use
13122 make_cleanup_ui_out_tuple_begin_end and
13123 make_cleanup_ui_out_tuple_begin_end.
13124 (do_mixed_source_and_assembly): Ditto.
13125 * thread.c (do_captured_list_thread_ids): Ditto.
13126 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13127 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13128 ui_out_tuple_end): Delete prototypes.
13129 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13130 ui_out_list_end, ui_out_tuple_end): Delete.
13131
13132 From Kevin Buettner <kevinb@redhat.com>:
13133 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13134 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13135 (do_cleanup_table_end): New functions.
13136 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13137 Use cleanups to invoke_ui_out_tuple_end().
13138 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13139 * cli/cli-setshow.c (cmd_show_list): Use
13140 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13141
5b181d62
AC
131422003-02-02 Andrew Cagney <ac131313@redhat.com>
13143
13144 * frame.c (frame_unwind_register): New function.
13145 (frame_unwind_unsigned_register): Use.
13146 (frame_unwind_signed_register): Use.
13147 (frame_read_register): New function.
13148 * frame.h (frame_unwind_register): Declare.
13149 (frame_read_register): Declare.
13150
13151 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13152 and frame_unwind_register instead of read_memory, write_register
13153 and deprecated_write_register_bytes.
13154
5f601589
AC
131552003-02-02 Andrew Cagney <ac131313@redhat.com>
13156
13157 * frame.h: Note that namelen can be negative.
13158 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13159 NAME's length.
13160
13161 * NEWS: Mention that the d10v's `regs' command is deprecated.
13162 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13163 (d10v_print_registers_info): New function.
13164 (show_regs): Call d10v_print_registers_info.
13165 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13166
6a3fe0a4
MK
131672003-02-02 Mark Kettenis <kettenis@gnu.org>
13168
13169 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13170 lost in the previous patch.
13171
075559bc
AC
131722003-02-01 Andrew Cagney <ac131313@redhat.com>
13173
13174 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13175 * stack.c (print_frame_info_base): Output complete FRAME tuple
13176 for synthesized frames.
075559bc 13177
6789195b
AC
131782003-02-02 Andrew Cagney <ac131313@redhat.com>
13179
13180 * mips-nat.c (zerobuf): Delete.
13181 (fetch_inferior_registers): Alloc local zerobuf.
13182 (fetch_core_registers): Alloc local zerobuf.
13183 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13184 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13185 * thread-db.c (thread_db_store_registers): Ditto.
13186 * sh-tdep.c (sh_do_register): Ditto.
13187 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13188 * remote-sim.c (gdbsim_store_register): Ditto.
13189 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13190 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13191 * monitor.c (monitor_supply_register): Ditto.
13192 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13193 * mips-nat.c (fetch_inferior_registers): Ditto.
13194 * m68klinux-nat.c (fetch_register): Ditto.
13195 * lynx-nat.c (fetch_inferior_registers): Ditto.
13196 (fetch_inferior_registers): Ditto.
13197 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13198 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13199 (hpux_thread_store_registers): Ditto.
13200 * hppah-nat.c (fetch_register): Ditto.
13201 * hppab-nat.c (fetch_register): Ditto.
13202 * hppa-tdep.c (pa_register_look_aside): Ditto.
13203 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13204 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13205
e669114a
AC
132062003-02-01 Andrew Cagney <ac131313@redhat.com>
13207
13208 * gdbarch.sh: Explictly specify all method levels. When a
13209 variable with an empty level, provide a non-multi-arch default.
13210 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13211 * gdbarch.h: Re-generate.
13212 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13213 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13214
9a043c1d
AC
132152003-02-01 Andrew Cagney <ac131313@redhat.com>
13216
13217 * defs.h (host_pointer_to_address): Delete declaration.
13218 (address_to_host_pointer): Delete declaration.
13219 * utils.c (host_pointer_to_address): Delete function.
13220 (address_to_host_pointer): Delete function.
13221 * procfs.c (procfs_address_to_host_pointer): New function.
13222 * procfs.c (proc_set_watchpoint): Use.
13223 (procfs_can_use_hw_breakpoint): Update comments.
13224 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13225 (som_solib_add): Use.
13226 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13227 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13228
7ca9f392
AC
132292003-02-01 Andrew Cagney <ac131313@redhat.com>
13230
94bbfd30
AC
13231 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13232 strlen d_name.
13233
7ca9f392
AC
13234 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13235 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13236 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13237 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13238 (define_symbol): Update.
13239 * symfile.c (generic_load): Remove references to nindy.
13240 * symtab.c: Remove references to nindy.
13241
31a85ea2
AC
132422003-02-01 Andrew Cagney <ac131313@redhat.com>
13243
13244 * infcmd.c (print_float_info): Delete code conditional on
13245 FLOAT_INFO.
13246 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13247 * config/m68k/nm-apollo68b.h: Ditto.
13248 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13249 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13250 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13251
f6e85fc8
MK
132522003-02-01 Mark Kettenis <kettenis@gnu.org>
13253
6015b6a0
MK
13254 * config/i386/tm-i386os9k.h: Removed.
13255
f7a30bdf
MK
13256 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13257 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13258 they're identical to i[3456]86-*-sysv* now.
13259 * config/i386/i386v32.mh: Removed.
13260 * config/i386/xm-i386v32.h: Removed.
13261 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13262
28d52111
MK
13263 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13264
4d3f6bce
MK
13265 * config/i386/i386dgux.mh: Removed.
13266 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13267
f6e85fc8
MK
13268 * configure.in: Fix typo.
13269 * configure: Regenerated.
13270
53955967
DC
132712003-01-31 David Carlton <carlton@math.stanford.edu>
13272
13273 * dwarf2read.c (dwarf2_locate_sections): Set
13274 dwarf_ranges_section.
13275
b1364885
AC
132762003-01-31 Andrew Cagney <ac131313@redhat.com>
13277
8dbb1c65
AC
13278 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13279 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13280
8731e58e
AC
13281 * utils.c: Re-indent.
13282
b1364885
AC
13283 * config/djgpp/fnchange.lst: Delete nindy files.
13284 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13285 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13286 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13287 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13288 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13289 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13290 * Makefile.in (init.c): Remove nindy references.
13291 (saber_gdb): Delete rule.
13292 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13293 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13294 and a68v-nat.c.
13295 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13296 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13297 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13298 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13299 nindy-share/stop.h.
13300 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13301 * saber.suppress: Delete file.
13302
086df311
DJ
133032003-01-31 Daniel Jacobowitz <drow@mvista.com>
13304
13305 * dbxread.c (stabs_data): New static variable.
13306 (fill_symbuf): Support an in-memory buffer for stabs data.
13307 (stabs_seek): New function.
13308 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13309 (read_ofile_symtab): Use stabs_seek.
13310 (elfstab_build_psymtabs): Take an asection* instead of
13311 an offset and size. Relocate the stabs data if necessary.
13312 Save the section* for dbx_psymtab_to_symtab.
13313 * dwarf2read.c: Add section variables for each debug section.
13314 (dwarf2_locate_sections): Fill them in.
13315 (dwarf2_read_section): Take an asection* argument.
13316 Relocate the section contents if necessary.
13317 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13318 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13319 it to dwarf2_read_section.
13320 (dwarf2_build_frame_info): Update callers.
13321 * elfread.c (elf_symfile_read): Update call to
13322 elfstab_build_psymtabs.
13323 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13324 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13325 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13326 * symfile.c (symfile_dummy_outputs): New function.
13327 (symfile_relocate_debug_section): New function.
13328 * symfile.h (symfile_relocate_debug_section): Add prototype.
13329
87d1b352
RH
133302003-01-31 Richard Henderson <rth@redhat.com>
13331
13332 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13333 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13334 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13335 * alpha-tdep.c (alpha_register_name): Add "unique".
13336 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13337 (ALPHA_UNIQUE_REGNUM): New.
13338 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13339
c48861fb
AC
133402003-01-31 Andrew Cagney <ac131313@redhat.com>
13341
13342 * README: Remove reference to Ericsson 1800 monitor.
13343 * Makefile.in (remote-es.o): Delete rule.
13344 (ALLDEPFILES): Delete remote-es.c.
13345 * remote-es.c: Delete file.
13346 * config/m68k/es1800.mt: Delete file.
13347 * config/djgpp/fnchange.lst: Update.
13348 * configure.tgt: Delete m68*-ericsson-* target.
13349
d764a824
AF
133502003-01-31 Adam Fedor <fedor@gnu.org>
13351
13352 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13353 Remove duplicate/shadowing variable of same name.
13354
fe36c4f4
JB
133552003-01-30 Jim Blandy <jimb@redhat.com>
13356
13357 * symfile.c (find_separate_debug_file): Assert that the objfile's
13358 directory name we compute ends with a slash, and then assume that
13359 that's so everywhere we use it.
13360
cb741690
DJ
133612003-01-30 Daniel Jacobowitz <drow@mvista.com>
13362
13363 * valops.c (value_assign): Flush frame cache after stores to memory
13364 also.
13365
96ee5227
AC
133662003-01-30 Andrew Cagney <ac131313@redhat.com>
13367
13368 * Makefile.in (mon960-rom.o): Delete rule.
13369 * mon960-rom.c: Delete file.
13370
7f6104a9
AC
133712003-01-30 Andrew Cagney <ac131313@redhat.com>
13372
13373 * d10v-tdep.c: Include "frame-unwind.h".
13374 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13375 list.
13376 (next_addr, uses_frame): Delete.
13377 (struct d10v_unwind_cache): Define.
13378 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13379 Use info instead of next_addr and uses_frame globals.
13380 (d10v_frame_init_saved_regs): Delete function.
13381 (d10v_init_extra_frame_info): Delete function.
13382 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13383 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13384 init_frame_pc or frame_saved_pc.
13385 (d10v_pop_frame): Delete function.
13386 (do_d10v_pop_frame): Delete function.
13387 (d10v_frame_chain): Delete function.
13388 (d10v_frame_chain_valid): Delete function.
13389 (d10v_frame_pc_unwind): New function.
13390 (d10v_frame_id_unwind): New function.
13391 (saved_regs_unwinder): New function.
13392 (d10v_frame_register_unwind): New function.
13393 (d10v_frame_pop): New function.
13394 (d10v_frame_unwind): New variable.
13395 (d10v_frame_p): New function.
13396 (d10v_frame_saved_pc): Delete function.
13397 * Makefile.in (d10v-tdep.o): Update dependencies.
13398
cad2e848
JB
133992003-01-30 J. Brobecker <brobecker@gnat.com>
13400
13401 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13402 causing some regressions due to a change in the default value
13403 for this macro.
13404
af34e669
DJ
134052003-01-29 Richard Henderson <rth@redhat.com>
13406 Elena Zannoni <ezannoni@redhat.com>
13407 Daniel Jacobowitz <drow@mvista.com>
13408
13409 Fix PR gdb/961.
8ffd9b1b 13410 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13411 variables.
13412 (RANGES_SECTION): New.
13413 (dwarf_ranges_buffer): New variable.
13414 (struct comp_unit_head): Add member "die".
13415 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13416 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13417 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13418 (dwarf2_locate_sections): Likewise.
13419 (dwarf2_build_psymtabs): Read .debug_ranges.
13420 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13421 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13422 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13423 Look for DW_AT_ranges and return the bounding box.
13424
baa93fa6
CF
134252003-01-29 Brian Ford <ford@vss.fsi.com>
13426
13427 * win32-nat.c (cygwin_pid): Removed as unused.
13428 (child_attach): Try fall back to Cygwin pid.
13429
c63f977f
JB
134302003-01-29 Jim Blandy <jimb@redhat.com>
13431
13432 * objfiles.h (struct objfile): Doc fix.
13433
d62d1979
AC
134342003-01-29 Andrew Cagney <ac131313@redhat.com>
13435
13436 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13437 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13438 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13439 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13440 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13441 (FRAME_SAVED_PC): Change to a function with predicate.
13442 * gdbarch.h, gdbarch.c: Re-generate.
13443
1ae18a04
AC
134442003-01-28 Andrew Cagney <ac131313@redhat.com>
13445
52287340
AC
13446 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13447
1ae18a04
AC
13448 * complaints.c (complain): Delete function.
13449 * complaints.h (struct deprecated_complaint): Delete definition.
13450 (complain): Delete declaration.
13451
f2c16bd6
KB
134522003-01-28 Kevin Buettner <kevinb@redhat.com>
13453
13454 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13455 dummy frames.
13456
a94dd1fd
AC
134572003-01-27 Andrew Cagney <ac131313@redhat.com>
13458
13459 * sentinel-frame.h, sentinel-frame.c: New files.
13460 * Makefile.in (frame.o): Update dependencies.
13461 (SFILES): Add sentinel-frame.c.
13462 (sentinel_frame_h): Define.
13463 (COMMON_OBS): Add sentinel-frame.o.
13464 (sentinel-frame.o): Specify dependencies.
13465 * frame.c: Include "sentinel-frame.h".
13466 (frame_register_unwind): Rewrite assuming that there is always a a
13467 ->next frame.
13468 (frame_register, generic_unwind_get_saved_register): Ditto.
13469 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13470 (create_sentinel_frame, unwind_to_current_frame): New functions.
13471 (get_current_frame): Rewrite using create_sentinel_frame and
13472 unwind_to_current_frame. When possible, always create a frame.
13473 (create_new_frame): Set next to the sentinel frame.
13474 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13475 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13476 ID cache when necessary.
13477 (frame_saved_regs_id_unwind): Use frame_relative_level.
13478 (deprecated_generic_get_saved_register): Use frame_relative_level,
13479 get_frame_saved_regs, get_frame_pc, get_frame_base and
13480 get_next_frame.
13481 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13482 frame_register.
13483
5378adc4
DJ
134842003-01-27 Daniel Jacobowitz <drow@mvista.com>
13485
13486 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13487
51ee2ddc
DJ
134882003-01-27 Daniel Jacobowitz <drow@mvista.com>
13489
13490 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13491 (maintenance_set_profile_cmd): Use error () instead of warning ().
13492
d9feb4e7
DJ
134932003-01-27 Daniel Jacobowitz <drow@mvista.com>
13494
13495 * configure.in: Check that -pg works if using --enable-profiling.
13496 Check for monstartup and _mcleanup regardless of --enable-profiling.
13497 * maint.c: Check for monstartup and _mcleanup before using them.
13498 * config.in: Regenerated.
13499 * configure: Regenerated.
13500
2d188dd3
NC
135012003-01-24 Nick Clifton <nickc@redhat.com>
13502
13503 * Add sh2e support:
13504
13505 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13506
13507 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13508 (sh2e_show_regs): New.
13509 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13510 * config/sh/tm-sh.h: Added sh2e to comments.
13511
cb3c37b2
JB
135122003-01-23 Jim Blandy <jimb@redhat.com>
13513
13514 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13515 symbols found)" message here; we haven't checked for a separate
13516 debug info file yet, so we don't know yet.
13517 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13518 we've looked everywhere. Also, there's no need to print a special
13519 message when we're loading the separate debug info file: the one
13520 symbol_file_add prints is fine.
13521
5b5d99cf
JB
135222003-01-23 Alexander Larsson <alexl@redhat.com>
13523 Jim Blandy <jimb@redhat.com>
13524
13525 Add support for executables whose debug info has been separated
13526 out into a separate file, leaving only a link behind.
13527 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13528 and separate_debug_objfile_backlink.
13529 (put_objfile_before): New declaration.
13530 * symfile.c: #include "filenames.h".
13531 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13532 debug info in a separate file, read that, too. Save the addrs
13533 argument, so we can use it again to read the separated debug info;
13534 syms_from_objfile modifies the table we pass it.
13535 (reread_symbols): After re-reading an objfile, call
13536 reread_separate_symbols to refresh its separate debug info
13537 objfile, if it has one.
13538 (reread_separate_symbols, find_separate_debug_file,
13539 get_debug_link_info, separate_debug_file_exists): New functions.
13540 (debug_file_directory): New global var.
13541 (_initialize_symfile): Initialize debug_file_directory, and
13542 provide the new `set debug-file-directory' command to let the user
13543 change it.
13544 * objfiles.c (free_objfile): If this objfile has its debug info in
13545 a separate objfile, free that one too. If this is itself a
13546 separate debug info objfile, clear our parent's backlink.
13547 (put_objfile_before): New function.
13548 * utils.c (gnu_debuglink_crc32): New function.
13549 * defs.h (gnu_debuglink_crc32): New declaration.
13550 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13551 * configure.in: Handle --with-separate-debug-dir config option.
13552 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13553 * acconfig.h (DEBUGDIR): New macro.
13554 * configure, aclocal.m4, config.in: Regenerated.
13555
7e8580c1
JB
135562003-01-22 Jim Blandy <jimb@redhat.com>
13557
7904e09f
JB
13558 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13559 like the old symbol_file_add, but taking new arguments: you can
13560 now pass in either a `struct section_addr_info' list to say where
13561 each section is loaded, or a `struct section_offsets' table. Pass
13562 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13563 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13564 with the appropriate quiescent values for the new arguments.
13565
7e8580c1
JB
13566 * symfile.c: #include "gdb_assert.h".
13567 (syms_from_objfile): Add the ability to pass in a section offset
13568 table directly, as an alternative to the section_addr_info table.
13569 Document arguments better.
13570 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13571 * symfile.h (syms_from_objfile): Update declaration.
13572 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13573 syms_from_objfile.
13574 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13575
d28f9cdf
DJ
135762003-01-22 Daniel Jacobowitz <drow@mvista.com>
13577
13578 Original patch by Tom Tromey <tromey@cygnus.com> and
13579 Jason Molenda <jmolenda@apple.com>.
13580 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13581 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13582 * NEWS: Mention profiling.
13583 * configure.in (--enable-gdbtk): Fix typo.
13584 (--enable-profiling): New. Set PROFILE_CFLAGS.
13585 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13586 Fill in function.
13587 (profiling_state): New variable.
13588 (mcleanup_wrapper): New function.
13589 (_initialize_maint): Remove NOTYET, fix call to
13590 add_setshow_boolean_cmd for "maint set profile".
13591 * configure: Regenerated.
13592
df21e465
MH
135932003-01-21 Martin M. Hunt <hunt@redhat.com>
13594
13595 * Makefile.in (install-gdbtk): Install PNG images too.
13596
73c1f219
AC
135972003-01-21 Andrew Cagney <ac131313@redhat.com>
13598
13599 * exec.c (text_start): Delete global variable.
13600 (exec_file_attach): Make text_start local to the function.
13601 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13602 * valops.c (hand_function_call): Delete code that handles
13603 BEFORE_TEXT_END and AFTER_TEXT_END.
13604 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13605 of CALL_DUMMY_LOCATION.
13606 * gdbarch.c: Regenerate.
13607 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13608 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13609 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13610 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13611 (text_end): Delete extern declaration.
13612
eb4f72c5
AC
136132003-01-21 Andrew Cagney <ac131313@redhat.com>
13614
13615 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13616 * blockframe.c (backtrace_below_main): Move to "frame.c".
13617 (frame_chain_valid): Delete check for backtrace_below_main.
13618 (_initialize_blockframe): Delete initialization, move ``set
13619 backtrace-below-main'' command to "frame.c".
13620 (do_flush_frames_sfunc): Delete function.
13621 * frame.c: Include "command.h" and "gdbcmd.h".
13622 (frame_type_from_pc): New function.
13623 (create_new_frame): Use frame_type_from_pc.
13624 (legacy_get_prev_frame): New function.
13625 (get_prev_frame): Rewrite. When an old style frame, call
13626 legacy_get_prev_frame. Otherwize, unwind the PC first.
13627 (_initialize_frame): Add ``set backtrace-below-main'' command.
13628 * Makefile.in (frame.o): Update dependencies.
13629
778ce8cc
AC
136302003-01-19 Andrew Cagney <ac131313@redhat.com>
13631
13632 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13633 DEPRECATED_REGISTERS_INFO.
13634
01c193c8
AC
136352003-01-19 Andrew Cagney <ac131313@redhat.com>
13636
13637 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13638 Maintainers'. Update `Various Maintainers'.
13639
dedc2a2b
AC
136402003-01-19 Andrew Cagney <ac131313@redhat.com>
13641
13642 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13643 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13644 Suppress actual parameters when `-'.
13645 * gdbarch.h, gdbarch.c: Regenerate.
13646
b7261c70
AC
136472003-01-19 Andrew Cagney <ac131313@redhat.com>
13648
13649 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13650 code handling dummy frames.
13651
dbe9fe58
AC
136522003-01-19 Andrew Cagney <ac131313@redhat.com>
13653
13654 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13655 (struct frame_unwind): Add field pop.
13656 * frame.h (frame_pop): Declare.
13657 * frame.c (frame_saved_regs_pop): New function.
13658 (trad_frame_unwinder): Add frame_saved_regs_pop.
13659 (frame_pop): New function.
13660 * dummy-frame.c (dummy_frame_pop): New function.
13661 (discard_innermost_dummy): New function.
13662 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13663 (dummy_frame_unwind): Add dummy_frame_pop.
13664 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13665 * valops.c (hand_function_call): Ditto.
13666 * stack.c (return_command): Ditto.
13667
570b8f7c
AC
136682003-01-18 Andrew Cagney <ac131313@redhat.com>
13669
13670 * cris-tdep.c: Fix function declaration indentation.
13671 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13672 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13673 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13674 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13675 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13676 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13677
136782003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13679
13680 * README (Unpacking and Installation -- quick overview):
13681 Warn against ".../gdb-5.3/gdb/configure".
13682
494cca16
AC
136832003-01-18 Andrew Cagney <ac131313@redhat.com>
13684
13685 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13686 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13687 (struct frame_unwind): Declare opaque.
13688 (dummy_frame_p): Declare function.
13689 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13690 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13691 * dummy-frame.c: Include "frame-unwind.h".
13692 (dummy_frame_p): New function.
13693 (dummy_frame_unwind): New variable.
13694 * frame.c: Include "frame-unwind.h".
13695 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13696 to use the new unwind field.
13697 (set_unwind_by_pc): Delete function.
13698 (create_new_frame, get_prev_frame): Set unwind field using
13699 frame_unwind_find_by_pc.
13700 (trad_frame_unwind, trad_frame_unwinder): New variables.
13701 * frame.h (trad_frame_unwind): Declare variable.
13702 (frame_id_unwind_ftype): Delete declaration.
13703 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13704 (struct frame_unwind): Declare opaque.
13705 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13706 register_unwind with a single unwind pointer.
13707 * frame-unwind.h, frame-unwind.c: New files.
13708 * Makefile.in (SFILES): Add frame-unwind.c.
13709 (frame_unwind_h): Define.
13710 (COMMON_OBS): Add frame-unwind.o.
13711 (frame-unwind.o): Specify dependencies.
13712 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13713
4efb68b1
AC
137142003-01-18 Andrew Cagney <ac131313@redhat.com>
13715
13716 * ada-valprint.c: Eliminate PTR.
13717 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13718 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13719 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13720 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13721 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13722 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13723 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13724
a84d24ee
AC
137252003-01-17 Andrew Cagney <ac131313@redhat.com>
13726
762f08a3
AC
13727 * main.c (captured_main): Don't use PTR.
13728 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13729 * gdbtypes.c (lookup_primitive_typename): Ditto.
13730 (lookup_struct_elt_type): Ditto.
13731 * f-valprint.c (info_common_command): Ditto.
13732 (list_all_visible_commons): Ditto.
13733 * jv-typeprint.c (java_type_print_base): Ditto.
13734
a84d24ee
AC
13735 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13736 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13737 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13738 i386-interix-nat.c and i386-interix-tdep.c. Rename
13739 m68klinux-nat.c and m68klinux-tdep.c. Rename
13740 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13741 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13742 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13743 * main.c (captured_main): Use xfree, not free.
13744
c170fb60
AC
137452003-01-16 Andrew Cagney <ac131313@redhat.com>
13746
13747 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13748 ID back using a parameter.
13749 * frame.c (frame_id_unwind): Update call.
13750 (frame_saved_regs_id_unwind): Update.
13751 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13752 * dummy-frame.h (struct frame_id): Add opaque declaration.
13753 (dummy_frame_id_unwind): Update declaration.
13754
867f3898
AC
137552003-01-15 Andrew Cagney <ac131313@redhat.com>
13756
13757 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13758
40622be8 137592003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13760
40622be8 13761 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13762
ae66c1fc
EZ
137632003-01-14 Elena Zannoni <ezannoni@redhat.com>
13764
997b089a 13765 Fix PR gdb/898
ae66c1fc
EZ
13766 * breakpoint.c (until_break_command): Add new argument. Use it to
13767 decide whether to stop only at the current frame or not.
13768 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13769 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13770 call.
13771 (advance_command): New function.
13772 (_initialize_infcmd): Update help string for 'until' command.
13773 Add new 'advance' command.
13774
a04257e6
DC
137752003-01-14 David Carlton <carlton@math.stanford.edu>
13776
13777 * linespec.c (decode_line_1): Normalize comments.
13778 (set_flags): Ditto.
13779 (locate_first_half): Ditto.
13780 (decode_compound): Ditto.
13781 (symtab_from_filename): Ditto.
13782 (decode_all_digits): Ditto.
13783 (decode_dollar): Ditto.
13784 (find_methods): Ditto.
13785 (find_toplevel_char): Ditto.
13786
1bac305b
AC
137872003-01-13 Andrew Cagney <ac131313@redhat.com>
13788
13789 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13790 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13791 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13792 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13793 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13794 * language.c, language.h, m32r-tdep.c: Update copyright.
13795 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13796 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13797 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13798 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13799 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13800 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13801
25caa7a8
EZ
138022003-01-13 Elena Zannoni <ezannoni@redhat.com>
13803
13804 * stabsread.h (process_later, resolve_cfront_continuation):
13805 Obsolete.
13806 Update copyright years.
13807 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13808 Update copyright year.
13809 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13810 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13811 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13812 Update copyright year.
13813 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13814 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13815 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13816 (parse_partial_symbols): Obsolete cfront support.
13817 * stabsread.c
13818 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13819 macros.
13820 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13821 read_cfront_baseclasses, read_cfront_member_functions,
13822 resolve_cfront_continuation,read_cfront_static_fields,
13823 copy_cfront_struct_fields): Obsolete functions.
13824 (define_symbol, read_one_struct_field): Obsolete cfront support.
13825 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13826 Update Copyright year.
13827
7789c6f5
EZ
138282003-01-13 Elena Zannoni <ezannoni@redhat.com>
13829
13830 * stack.c (print_frame_info, print_stack_frame_base_stub,
13831 print_stack_frame_base, show_and_print_stack_frame_stub,
13832 show_and_print_stack_frame, print_only_stack_frame_stub,
13833 print_only_stack_frame): Delete functions.
13834 (print_stack_frame_stub): Call print_frame_info instead of
13835 print_frame_info_base.
13836 (print_frame_info_base): Rename to print_frame_info.
13837 (backtrace_command_1): Call print_frame_info, instead of
13838 print_frame_info_base.
13839 (current_frame_command): Call print_stack_frame, instead of
13840 print_only_stack_frame.
13841 (frame_command): Call print_stack_frame, instead of
13842 show_and_print_stack_frame.
13843 (up_command): Ditto.
13844 (down_command): Ditto.
13845 * frame.h (print_only_stack_frame): Delete prototype.
13846 * infrun.c (normal_stop): Call print_stack_frame, instead of
13847 show_and_print_stack_frame.
13848 * thread.c (info_threads_command): Call print_stack_frame, instead
13849 of print_only_stack_frame.
13850
3f5a3016
AC
138512003-01-13 Andrew Cagney <ac131313@redhat.com>
13852
d99ba314
AC
13853 * README (Graphical interface to GDB): Update URL. Point at
13854 gdb/links/.
13855
3f5a3016
AC
13856 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
13857 version match.
13858
083ae935
DJ
138592003-01-13 Daniel Jacobowitz <drow@mvista.com>
13860
13861 * symtab.c (find_pc_sect_line): Don't consider end-of-function
13862 lines.
13863
5365276c
DJ
138642003-01-13 Daniel Jacobowitz <drow@mvista.com>
13865
13866 * thread-db.c (attach_thread): Prototype.
13867 (struct private_thread_info): Remove lwpid. Add thread handle (th),
13868 thread information (ti), and valid flags (th_valid, ti_valid).
13869 (attach_thread): Move target_pid_to_str call to after the thread
13870 is added to GDB's list. Initialize the cache.
13871 (thread_get_info_callback, thread_db_map_id2thr)
13872 (thread_db_get_info): New functions.
13873 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13874 (thread_db_store_registers, thread_db_thread_alive)
13875 (thread_db_get_thread_local_address): Use them.
13876 (thread_db_pid_to_str): Likewise. Return "Missing" instead
13877 of calling error() for threads in unknown state.
13878
13879 (clear_lwpid_callback): New function.
13880 (thread_db_resume): Use it to clear the cache.
13881
9fc30b6b
DJ
138822003-01-13 Daniel Jacobowitz <drow@mvista.com>
13883
13884 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13885 (resume_callback): Remove dead code.
13886
8f871025
AC
138872003-01-13 Andrew Cagney <ac131313@redhat.com>
13888
13889 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13890 predicate.
13891 * gdbarch.h, gdbarch.c: Regenerate.
13892 * stack.c (frame_info): Only initialize the saved registers when
13893 FRAME_INIT_SAVED_REGS_P.
13894 * frame.c (frame_saved_regs_register_unwind): Assert
13895 FRAME_INIT_SAVED_REGS_P.
13896 (deprecated_generic_get_saved_register): Ditto.
13897
3f565f1e
DJ
138982003-01-13 Daniel Jacobowitz <drow@mvista.com>
13899
13900 * source.c (openp): Squelch warning about "filename".
13901
072b1022
DJ
139022003-01-13 Daniel Jacobowitz <drow@mvista.com>
13903
13904 * source.c (openp): If the file does not exist don't necessarily
13905 search the path.
13906
973ccf8b
DJ
139072003-01-13 Daniel Jacobowitz <drow@mvista.com>
13908
13909 Fix PR gdb/872.
13910 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13911 (integer_types_same_name_p): New function.
13912 (rank_one_type): Use it.
13913 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13914
030292b7
DJ
139152003-01-13 Daniel Jacobowitz <drow@mvista.com>
13916
13917 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13918 variables.
13919 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13920 * configure.in: Add --with-sysroot.
13921 * configure: Regenerated.
13922 * main.c (gdb_sysroot): New variable.
13923 (captured_main): Initialize gdb_sysroot.
13924 * defs.h (gdb_sysroot): New extern declaration.
13925 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13926
afb5d334
MC
139272003-01-12 Michael Chastain <mec@shout.net>
13928
13929 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13930
751ceeb4
MC
139312003-01-12 Michael Chastain <mec@shout.net>
13932
13933 * top.c (print_gdb_version): Bump copyright year to 2003.
13934
94cd26f8
DC
139352003-01-12 David Carlton <carlton@bactrian.org>
13936
13937 * linespec.c (symtab_from_filename): Rename variable 's' to
13938 'file_symtab'.
13939
1ce79225
AC
139402003-01-12 Andrew Cagney <ac131313@redhat.com>
13941
13942 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13943 dummy frame.
13944 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13945
fa1fd571
AC
139462003-01-12 Andrew Cagney <ac131313@redhat.com>
13947
13948 * d10v-tdep.c: Include "gdb_assert.h".
13949 (d10v_store_return_value): Rewrite to match current interface.
13950 (d10v_extract_struct_value_address): Ditto.
13951 (d10v_extract_return_value): Ditto.
13952 (d10v_gdbarch_init): Set store_restore_value,
13953 extract_struct_value_address and extract_return_value.
13954
68b8d23e
JB
139552003-01-12 J. Brobecker <brobecker@gnat.com>
13956
13957 * hpread.c (set_namestring): New procedure replacing the
13958 SET_NAMESTRING macro.
13959 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
13960 by calls to set_namestring.
13961
139622003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
13963
13964 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
13965 a compilation warning.
13966 (hpread_process_one_debug_symbol): Likewise.
13967
88d262ca
DC
139682003-01-10 David Carlton <carlton@math.stanford.edu>
13969
13970 * linespec.c (decode_line_1): Rename variable 's' to
13971 'file_symtab'.
13972 (decode_all_digits): Rename argument 's' to 'file_symtab'.
13973 (decode_dollar): Ditto.
13974 (decode_variable): Ditto.
13975 (symbol_found): Ditto.
13976
86669319
MC
139772003-01-09 Michael Chastain <mec@shout.net>
13978
13979 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
13980
616a9dc4
CV
139812003-01-07 Corinna Vinschen <vinschen@redhat.com>
13982
13983 * win32-nat.c (set_process_privilege): New function.
13984 (child_attach): Call set_process_privilege() to enable the
13985 SE_DEBUG_NAME user privilege if available in process token.
13986
3269bcfa
JB
139872003-01-10 J. Brobecker <brobecker@gnat.com>
13988
13989 * hpread.c (hpread_process_one_debug_symbol): Fix a small
13990 compilation error in the previous revision.
13991
2b0ee454
DC
139922003-01-09 David Carlton <carlton@math.stanford.edu>
13993
13994 * linespec.c: Update copyright.
13995
b3ba1b44
DJ
139962003-01-09 Daniel Jacobowitz <drow@mvista.com>
13997
13998 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
13999 than inferior_ptid.
14000 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14001
4ef3f3be
AC
140022003-01-09 Andrew Cagney <ac131313@redhat.com>
14003
479ab5a0
AC
14004 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14005 Update comments.
14006 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14007 (frame_saved_regs_zalloc): Update.
14008 (frame_saved_regs_register_unwind): Update.
14009 (create_new_frame): Update.
14010 (get_prev_frame): Update.
14011 (frame_extra_info_zalloc): Update.
14012 (deprecated_get_frame_saved_regs): Update.
14013 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14014 * cris-tdep.c: Update comment.
14015
bde58177
AC
14016 * somsolib.h: Fix function indentation.
14017 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14018 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14019 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14020 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14021 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14022
4ef3f3be
AC
14023 * infrun.c (follow_fork): Use ISO C definition.
14024 * expprint.c (print_subexp): Use xfree instead of free.
14025 * charset.c: Include "gdb_string.h" instead of <string.h>.
14026 (register_iconv_charsets): Use ISO C definition.
14027 (host_charset, target_charset): Ditto.
14028 * Makefile.in (charset.o): Update dependencies.
14029 (mi-cmd-env.o): Update dependencies.
14030
1c615f7a
AC
140312003-01-08 Andrew Cagney <cagney@redhat.com>
14032
14033 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14034 get_frame_base.
14035
c9a1dc08
AC
140362003-01-08 Andrew Cagney <ac131313@redhat.com>
14037
14038 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14039 build directories. Save edited gdb output in Mbuild.log. If a
14040 build fails, remove any final GDB executable.
14041
dbad9d94
AC
140422003-01-08 Andrew Cagney <ac131313@redhat.com>
14043
14044 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14045 replacing hex constants with function names and stripping leading
14046 file name directory prefixes.
14047
8d357cca
AC
140482003-01-08 Andrew Cagney <cagney@redhat.com>
14049
14050 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14051 get_frame_base.
14052
bca02a8a
DC
140532003-01-08 David Carlton <carlton@math.stanford.edu>
14054
14055 * linespec.c (decode_line_1): Move code into decode_variable.
14056 (decode_variable): New function.
14057
7f8ab3a0
AC
140582003-01-08 Andrew Cagney <ac131313@redhat.com>
14059
14060 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14061
7b5849cc
AC
140622003-01-08 Andrew Cagney <cagney@redhat.com>
14063
14064 * cris-tdep.c (cris_frame_init_saved_regs): Use
14065 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14066 saved_regs buffer.
14067 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14068 (sh64_nofp_frame_init_saved_regs): Ditto.
14069 (sh_fp_frame_init_saved_regs): Ditto.
14070 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14071 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14072 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14073 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14074
72a5efb3
DJ
140752003-01-08 Daniel Jacobowitz <drow@mvista.com>
14076
14077 * minsyms.c (lookup_minimal_symbol): Update comment.
14078 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14079 (lookup_minimal_symbol_solib_trampoline): Likewise.
14080
11c02a10
AC
140812003-01-08 Andrew Cagney <cagney@redhat.com>
14082
aab3ea25
AC
14083 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14084 frame_relative_level.
14085
da50a4b7
AC
14086 * alpha-tdep.c: Use get_frame_extra_info.
14087 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14088 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14089 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14090 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14091
11c02a10
AC
14092 * alpha-tdep.c: Use get_next_frame.
14093 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14094 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14095 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14096 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14097 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14098 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14099 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14100
1e2330ba
AC
141012003-01-07 Andrew Cagney <cagney@redhat.com>
14102
14103 * alpha-tdep.c: Use get_frame_base.
14104 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14105 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14106 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14107 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14108 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14109 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14110 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14111 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14112
2d75187b
AC
141132003-01-07 Andrew Cagney <cagney@redhat.com>
14114
14115 * frame.c (deprecated_get_frame_context): New function.
14116 (deprecated_set_frame_context): New function.
14117 * frame.h (deprecated_get_frame_context): Declare.
14118 (deprecated_set_frame_context): Declare.
14119 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14120 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14121
483d36b2
AC
141222003-01-07 Andrew Cagney <cagney@redhat.com>
14123
14124 * frame.c (deprecated_set_frame_next_hack): New function.
14125 (deprecated_set_frame_prev_hack): New function.
14126 * frame.h (deprecated_set_frame_next_hack): Declare.
14127 (deprecated_set_frame_prev_hack): Declare.
14128 * mcore-tdep.c (analyze_dummy_frame): Use
14129 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14130 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14131
14e91ac5
DC
141322003-01-07 David Carlton <carlton@math.stanford.edu>
14133
14134 * linespec.c (decode_line_1): Move code into decode_dollar.
14135 (decode_dollar): New function.
14136
b0c6b05c
AC
141372003-01-07 Andrew Cagney <cagney@redhat.com>
14138
14139 * arm-tdep.c (arm_init_extra_frame_info): Use
14140 deprecated_update_frame_base_hack.
14141 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14142 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14143 (fix_frame_pointer): Ditto.
14144 (mn10300_analyze_prologue): Ditto.
14145
a00a19e9
AC
141462003-01-07 Andrew Cagney <cagney@redhat.com>
14147
14148 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14149 extra_info using frame_extra_info_zalloc.
14150 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14151 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14152 (sh64_init_extra_frame_info): Ditto.
14153 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14154 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14155 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14156 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14157 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14158 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14159 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14160 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14161 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14162 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14163 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14164 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14165
14166 * mn10300-tdep.c (analyze_dummy_frame): Use
14167 deprecated_set_frame_extra_info_hack.
14168 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14169
1fb4c65b
JB
141702003-01-07 J. Brobecker <brobecker@gnat.com>
14171
14172 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14173 class is not scText. These do not define "real" procedures.
14174 (parse_partial_symbols): Likewise.
14175
9fe7d6bf
MS
141762003-01-06 Michael Snyder <msnyder@redhat.com>
14177
14178 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14179
f6c609c4
AC
141802003-01-06 Andrew Cagney <ac131313@redhat.com>
14181
14182 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14183 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14184 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14185 deprecated_frame_xmalloc_with_cleanup.
14186 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14187 deprecated_frame_xmalloc.
14188 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14189 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14190
d995ff4b
AC
141912003-01-06 Andrew Cagney <cagney@redhat.com>
14192
84dc46cb
AC
14193 * x86-64-linux-tdep.c: Include "osabi.h".
14194 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14195
d995ff4b
AC
14196 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14197
66140c26
AC
141982003-01-06 Andrew Cagney <cagney@redhat.com>
14199
14200 * MAINTAINERS (Target Instruction Set Architectures): Update
14201 arm-elf. Can be built with -Werror, has been multiarched.
14202
14203 * value.h (unpack_long): Make buffer parameter constant.
14204 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14205 * scm-lang.h (scm_parse): Ditto.
14206 * defs.h (extract_typed_address, extract_address): Ditto.
14207 (extract_long_unsigned_integer): Ditto.
14208 * inferior.h (unsigned_pointer_to_address): Ditto.
14209 (signed_pointer_to_address): Ditto.
14210 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14211 * gdbarch.h, gdbarch.c: Regenerate.
14212 * findvar.c (extract_long_unsigned_integer): Update.
14213 (extract_address): Update.
14214 (extract_typed_address): Update.
14215 (unsigned_pointer_to_address): Update.
14216 * values.c (unpack_long): Update.
14217 (unpack_double): Update.
14218 (unpack_pointer): Update.
14219 (unpack_field_as_long): Update.
14220 * d10v-tdep.c (d10v_pointer_to_address): Update.
14221 * avr-tdep.c (avr_pointer_to_address): Update.
14222 * scm-lang.c (scm_unpack): Update.
14223 * findvar.c (signed_pointer_to_address): Update.
14224
b089b3da
ML
142252003-01-06 Michal Ludvig <mludvig@suse.cz>
14226
8ffd9b1b 14227 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14228 since it is in i386-tdep.c.
14229
aff87235
JB
142302003-01-06 J. Brobecker <brobecker@gnat.com>
14231
14232 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14233 failure introduced in the previous change.
14234
34f5e845
MC
142352003-01-05 Michael Chastain <mec@shout.net>
14236
14237 * README: Remove references to deleted remote-*.c files:
14238 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14239 remote-nrom.c, remote-os9k.c, remote-udi.c.
14240
28bcfd30
MK
142412003-01-05 Mark Kettenis <kettenis@gnu.org>
14242
14243 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14244 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14245 i386_get_longjmp_target.
14246
15a5b3ee
AC
142472003-01-05 Andrew Cagney <ac131313@redhat.com>
14248
14249 * arm-tdep.c (prologue_cache): Change to a pointer.
14250 (_initialize_arm_tdep): Allocate prologue_cache.
14251 (check_prologue_cache): Update.
14252 (save_prologue_cache): Update.
14253 (arm_gdbarch_init): Update.
14254
c263362b
DJ
142552003-01-04 Daniel Jacobowitz <drow@mvista.com>
14256
14257 * stabsread.c (update_method_name_from_physname): Call complaint()
14258 instead of error.
14259
51603483
DJ
142602003-01-04 Daniel Jacobowitz <drow@mvista.com>
14261
14262 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14263 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14264 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14265
14266 * blockframe.c: Include "gdbcmd.h" and "command.h".
14267 (backtrace_below_main): New variable.
14268 (file_frame_chain_valid, func_frame_chain_valid)
14269 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14270 (generic_func_frame_chain_valid): Remove functions.
14271 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14272 (_initialize_blockframe): New function.
14273 * Makefile.in (blockframe.o): Update dependencies.
14274 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14275 comment. Call frame_chain_valid ().
14276 * frame.h: Remove old prototypes. Add prototype for
14277 frame_chain_valid and update comments to match.
14278 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14279 Remove old comment.
14280 * gdbarch.h: Regenerated.
14281 * gdbarch.c: Regenerated.
14282
14283 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14284 set_gdbarch_frame_chain_valid.
14285 * avr-tdep.c (avr_gdbarch_init): Likewise.
14286 * cris-tdep.c (cris_gdbarch_init): Likewise.
14287 * frv-tdep.c (frv_gdbarch_init): Likewise.
14288 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14289 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14290 (i386_nw_init_abi): Likewise.
14291 (i386_gdbarch_init): Likewise.
14292 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14294 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14295 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14296 * mips-tdep.c (mips_gdbarch_init): Likewise.
14297 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14298 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14299 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14300 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14301 * s390-tdep.c (s390_gdbarch_init): Likewise.
14302 * sh-tdep.c (sh_gdbarch_init): Likewise.
14303 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14304 * v850-tdep.c (v850_gdbarch_init): Likewise.
14305 * vax-tdep.c (vax_gdbarch_init): Likewise.
14306 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14307
14308 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14309 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14310 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14311 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14312 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14313 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14314 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14315 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14316
b00a8037
DJ
143172002-01-04 Daniel Jacobowitz <drow@mvista.com>
14318
14319 * Makefile.in (acconfig_h): Remove incorrect macro.
14320 (config_h): Define.
14321 (osabi.o): Update dependencies.
14322 * configure.tgt: Set gdb_osabi based on target triplet.
14323 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14324 * configure: Regenerated.
14325 * config.in: Regenerated.
14326 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14327 (GDB_OSABI_DEFAULT): Define if not already defined.
14328 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14329 (set_osabi_string): New variables.
14330 (gdbarch_register_osabi): Add new OS ABI to
14331 gdb_osabi_available_names.
14332 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14333 (set_osabi, show_osabi): New functions.
14334 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14335
4be87837
DJ
143362003-01-04 Daniel Jacobowitz <drow@mvista.com>
14337
14338 * arch-utils.c (gdbarch_info_init): Set osabi to
14339 GDB_OSABI_UNINITIALIZED.
14340 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14341 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14342 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14343 * gdbarch.c: Regenerated.
14344 * gdbarch.h: Regenerated.
14345 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14346 there's no BFD.
14347 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14348 * osabi.h (enum gdb_osabi): Move to defs.h.
14349 (gdbarch_init_osabi): Update prototype.
14350 * defs.h (enum gdb_osabi): Moved here.
14351 * Makefile.in: Update dependencies.
14352
14353 * alpha-tdep.h: Don't include "osabi.h".
14354 (struct gdbarch_tdep): Remove osabi member.
14355 * alpha-tdep.c: Include "osabi.h".
14356 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14357 iterate over arches. Update call to gdbarch_init_osabi.
14358 (alpha_dump_tdep): Don't dump osabi.
14359 * alpha-linux-tdep.c: Include "osabi.h".
14360 * alpha-osf1-tdep.c: Include "osabi.h".
14361 * alphafbsd-tdep.c: Include "osabi.h".
14362 * alphanbsd-tdep.c: Include "osabi.h".
14363
14364 * arm-tdep.h: Don't include "osabi.h".
14365 (struct gdbarch_tdep): Remove osabi member.
14366 * arm-tdep.c: Include "osabi.h".
14367 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14368 iterate over arches. Update call to gdbarch_init_osabi.
14369 (arm_dump_tdep): Don't dump osabi.
14370 * arm-linux-tdep.c: Include "osabi.h".
14371 * armnbsd-tdep.c: Include "osabi.h".
14372
14373 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14374 Update call to gdbarch_init_osabi.
14375
14376 * i386-tdep.h: Don't include "osabi.h".
14377 (struct gdbarch_tdep): Remove osabi member.
14378 * i386-tdep.c: Include "osabi.h".
14379 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14380 iterate over arches. Update call to gdbarch_init_osabi.
14381 (i386_dump_tdep): Don't dump osabi.
14382 * i386-linux-tdep.c: Include "osabi.h".
14383 * i386-sol2-tdep.c: Include "osabi.h".
14384 * i386bsd-tdep.c: Include "osabi.h".
14385 * i386gnu-tdep.c: Include "osabi.h".
14386 * i386ly-tdep.c: Include "osabi.h".
14387 * i386nbsd-tdep.c: Include "osabi.h".
14388 * i386obsd-tdep.c: Include "osabi.h".
14389
14390 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14391 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14392 check osabi when iterating over arches. Update call to
14393 gdbarch_init_osabi.
14394 (mips_dump_tdep): Don't dump osabi.
14395
14396 * ns32k-tdep.h: Don't include "osabi.h".
14397 (struct gdbarch_tdep): Remove.
14398 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14399 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14400 allocate tdep. Update call to gdbarch_init_osabi.
14401 (ns32k_dump_tdep): Remove.
14402 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14403 * ns32knbsd-tdep.c: Include "osabi.h".
14404
14405 * ppc-tdep.h: Don't include "osabi.h".
14406 (struct gdbarch_tdep): Remove osabi member.
14407 * rs6000-tdep.c: Include "osabi.h".
14408 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14409 osabi when iterating over arches. Update call to
14410 gdbarch_init_osabi.
14411 (rs6000_dump_tdep): Don't dump osabi.
14412 * ppc-linux-tdep.c: Include "osabi.h".
14413 * ppcnbsd-tdep.c: Include "osabi.h".
14414
14415 * sh-tdep.h: Don't include "osabi.h".
14416 (struct gdbarch_tdep): Remove osabi member.
14417 * sh-tdep.c: Include "osabi.h".
14418 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14419 iterate over arches. Update call to gdbarch_init_osabi.
14420 (sh_dump_tdep): Don't dump osabi.
14421 * shnbsd-tdep.c: Include "osabi.h".
14422
14423 * sparc-tdep.c: Include "osabi.h".
14424 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14425 iterate over arches. Update call to gdbarch_init_osabi.
14426 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14427 tdep structure.
14428
14429 * vax-tdep.h: Don't include "osabi.h".
14430 (struct gdbarch_tdep): Remove.
14431 * vax-tdep.c: Include "osabi.h".
14432 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14433 iterate over arches. Don't allocate tdep. Update call
14434 to gdbarch_init_osabi.
14435 (vax_dump_tdep): Remove.
14436 (_initialize_vax_tdep): Update call to gdbarch_register.
14437
a881cf8e
DJ
144382003-01-04 Daniel Jacobowitz <drow@mvista.com>
14439
14440 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14441 entirely.
14442 (breakpoint_re_set_one): Don't fetch the value for a disabled
14443 watchpoint.
14444
1e698235
DJ
144452003-01-04 Daniel Jacobowitz <drow@mvista.com>
14446
14447 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14448 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14449 (COERCE_FLOAT_TO_DOUBLE): Remove.
14450 * gdbarch.c: Regenerate.
14451 * gdbarch.h: Regenerate.
14452 * Makefile.in: Remove value_h from gdbarch_h.
14453 * valops.c (coerce_float_to_double): New variable.
14454 (default_coerce_float_to_double): Remove.
14455 (standard_coerce_float_to_double): Remove.
14456 (value_arg_coerce): Use coerce_float_to_double.
14457 (_initialize_valops): Add "set coerce-float-to-double".
14458 * value.h (default_coerce_float_to_double): Remove prototype.
14459 (standard_coerce_float_to_double): Remove prototype.
14460
14461 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14462 prototyped.
14463 * mdebugread.c (parse_symbol): Likewise.
14464 * stabsread.c (define_symbol): Mark all functions as prototyped.
14465
14466 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14467 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14468 set_gdbarch_coerce_float_to_double.
14469 * arm-tdep.c (arm_gdbarch_init): Likewise.
14470 * frv-tdep.c (frv_gdbarch_init): Likewise.
14471 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14472 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14473 * mips-tdep.c (mips_gdbarch_init): Likewise.
14474 (mips_coerce_float_to_double): Remove.
14475 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14476 (rs6000_coerce_float_to_double): Remove.
14477 * s390-tdep.c (s390_gdbarch_init): Likewise.
14478 * sh-tdep.c (sh_gdbarch_init): Likewise.
14479 (sh_coerce_float_to_double): Remove.
14480 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14481 (sparc_coerce_float_to_double): Remove.
14482 * v850-tdep.c (v850_gdbarch_init): Likewise.
14483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14484 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14485 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14486 (hppa_coerce_float_to_double): Remove prototype.
14487 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14488
f436a26a
DJ
144892003-01-04 Daniel Jacobowitz <drow@mvista.com>
14490
14491 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14492
248f8055
DJ
144932003-01-04 Daniel Jacobowitz <drow@mvista.com>
14494
14495 Suggested by Stewart Brown <sb24@avaya.com>:
14496 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14497 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14498 (c_type_print_varspec_suffix): Likewise.
14499
72cfdc76
MK
145002003-01-04 Mark Kettenis <kettenis@gnu.org>
14501
bfd260bb
MK
14502 * configure.in: Don't set and AC_SUBST SUBDIRS.
14503 * configure: Regenerated.
14504
72cfdc76
MK
14505 * configure.in: Remove code dealing with shared libraries.
14506 * Makefile.in: Remove HLDFLAGS and HLDENV.
14507 * configure: Regenerated.
14508
c8b8a898
AC
145092003-01-04 Andrew Cagney <ac131313@redhat.com>
14510
14511 * frame.c (deprecated_frame_xmalloc): New function.
14512 (deprecated_set_frame_saved_regs_hack): New function.
14513 (deprecated_set_frame_extra_info_hack): New function.
14514 * frame.h (deprecated_frame_xmalloc): Declare.
14515 (deprecated_set_frame_saved_regs_hack): Declare.
14516 (deprecated_set_frame_extra_info_hack): Declare.
14517
14abd0fb
MK
145182003-01-04 Mark Kettenis <kettenis@gnu.org>
14519
8ee53726
MK
14520 * configure.in: Move code that provides the --enable-gdbtk option
14521 right after the code that handles the --enable-tui option, and
14522 polish it somewhat.
14523 * configure: Regenerated.
14524
14abd0fb
MK
14525 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14526 AC_CHECK_FUNCS and remove the old check for pread64.
14527 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14528 * acconfig.h (_GNU_SOURCE): Add.
14529 (HAVE_PREAD64): Remove.
14530 * configure, aclocal.m4, config.in: Regenerated.
14531
b2fb4676
AC
145322003-01-03 Andrew Cagney <ac131313@redhat.com>
14533
14534 * alpha-tdep.c: Use get_frame_saved_regs.
14535 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14536 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14537 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14538 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14539 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14540
8dcde887
MK
145412003-01-03 Mark Kettenis <kettenis@gnu.org>
14542
14543 * configure.in: Remove all use of the SUBDIRS variable; add
14544 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14545 code providing the --enable-multi-ice option, and move it right in
14546 front of the code that checks whether gdbserver is supported.
14547 Polish that too.
14548 * configure: Regenerated.
14549 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14550 @SUBDIRS@.
14551
8ccd593b
AC
145522003-01-03 Andrew Cagney <cagney@redhat.com>
14553
14554 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14555 * avr-tdep.c, cris-tdep.c: Ditto.
14556 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14557 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14558
91151a06
MK
145592003-01-03 Mark Kettenis <kettenis@gnu.org>
14560
14561 * configure.in: Remove --enable-netrom option.
14562 * configure: Regenerated.
14563
8fe84d01
MK
145642003-01-03 Mark Kettenis <kettenis@gnu.org>
14565
14566 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14567 declaration for `struct re_pattern_buffer' instead.
14568 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14569
f0394be6
JB
145702003-01-03 J. Brobecker <brobecker@gnat.com>
14571
14572 * mdebugread.c (parse_symbol): Count until the stEnd matching
14573 the structure name.
14574
27e9bf90
MK
145752003-01-02 Mark Kettenis <kettenis@gnu.org>
14576
93d331ba
MK
14577 * configure.in: Remove --with-cpu option.
14578 subscripts. Remove evil changequotes here.
14579 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14580 * config.in, configure: Regenerated.
8ffd9b1b 14581
27e9bf90
MK
14582 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14583 * configure.in: Cleanup section that sources GDB and BFD configure
14584 subscripts. Remove evil changequotes here.
14585 * config.in, configure: Regenerated.
14586
50abf9e5
AC
145872003-01-02 Andrew Cagney <ac131313@redhat.com>
14588
14589 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14590 frame accessor methods.
14591 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14592 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14593 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14594 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14595 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14596 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14597 * z8k-tdep.c: Ditto.
8ffd9b1b 14598
287c1a40
MK
145992003-01-02 Mark Kettenis <kettenis@gnu.org>
14600
f5dbc56d
MK
14601 * configure.in: Remove UI_OUT configuration code.
14602 * ada-lang.c: Update assuming UI_OUT is always true.
14603 * Makefile.in (UIOUT_CFLAGS): Remove.
14604 * configure: Regenerated.
14605 * TODO: Remove blurb about elimination of -DUI_OUT.
14606
627af7ea
MK
14607 * configure.in: Move code that provides the --enable-gdbcli,
14608 --enable-gdbmi options right before the code that handles the
14609 --enable-tui option. Polish a bit.
14610 * configure: Regenerated.
14611
06825bd1
MK
14612 * configure.in: Rewrite check for GNU regex and the
14613 --without-included regex option, and move it into the "Checks for
14614 library functions" section. This makes us use the system regex
14615 again by default on systems with version 2 of the GNU C library.
14616 This was apparently broken.
14617 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14618 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14619 * config.in, configure: Regenerated.
14620
287c1a40
MK
14621 * configure.in: Move code that provides the --enable-tui option
14622 before the "Checks for libraries" section. Polish the code
14623 somewhat and set need_curses to yes if we build the TUI. Rewrite
14624 code that looks for a library providing termcap functionality to
14625 match more closely what's done in the Readline library, and move
14626 it into to the "Checks for libraries" section.
14627 * configure: Regenerated.
14628 * Makefile.in (TERMCAP): Remove variable.
14629 * config/i386/go32.mh (TERMCAP): Remove variable.
14630
684e56bf
AC
146312003-01-02 Andrew Cagney <ac131313@redhat.com>
14632
14633 * MAINTAINERS: Mention gdb_mbuild.sh.
14634 * gdb_mbuild.sh: Rewrite.
14635
e1ea1d75
MK
146362003-01-02 Mark Kettenis <kettenis@gnu.org>
14637
14638 * configure.in: Fix typo in last change.
14639 * config.in, configure: Regenerated.
14640
1b831c93
AC
146412003-01-02 Andrew Cagney <ac131313@redhat.com>
14642
14643 * valarith.c (value_binop): Delete obsolete code and comments.
14644 * configure.host: Ditto.
14645 * buildsym.h (make_blockvector): Ditto.
14646 * buildsym.c (make_blockvector): Ditto.
14647 * defs.h (enum language): Ditto.
14648 (chill_demangle): Ditto.
14649 * elfread.c (elf_symtab_read): Ditto.
14650 * dwarfread.c (CHILL_PRODUCER): Ditto.
14651 (set_cu_language): Ditto.
14652 (handle_producer): Ditto.
14653 * expprint.c (print_subexp): Ditto.
14654 * gdbtypes.c (chill_varying_type): Ditto.
14655 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14656 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14657 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14658 (chill_varying_type): Ditto.
14659 * language.h (_LANG_chill): Ditto.
14660 * language.c (binop_result_type, integral_type): Ditto.
14661 (character_type, string_type, structured_type): Ditto.
14662 (lang_bool_type, binop_type_check): Ditto.
14663 * stabsread.h (os9k_stabs): Ditto.
14664 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14665 (define_symbol, read_type, read_struct_fields): Ditto.
14666 (read_array_type, read_enum_type, read_huge_number): Ditto.
14667 (read_range_type, start_stabs): Ditto.
14668 * symfile.c (init_filename_language_table): Ditto.
14669 (add_psymbol_with_dem_name_to_list): Ditto.
14670 * symtab.c (symbol_init_language_specific): Ditto.
14671 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14672 * symtab.h (struct general_symbol_info): Ditto.
14673 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14674 * typeprint.c (typedef_print): Ditto.
14675 * utils.c (fprintf_symbol_filtered): Ditto.
14676 * valops.c (value_cast, search_struct_field, value_slice): Delete
14677 obsolete code.
14678 (varying_to_slice): Delete function.
14679 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14680 (varying_to_slice): Delete declaration.
14681 * MAINTAINERS: Update.
14682
8bb2c122
MK
146832003-01-02 Mark Kettenis <kettenis@gnu.org>
14684
97bf5e38
MK
14685 * configure.in: Reorganize "Checks for library functions section"
14686 a bit. Remove check for `btowc' and `isascii' functions.
14687 * configure: Regenerated.
14688
5ee754fc
MK
14689 * acconfig.h (_MSE_INT_H): Remove.
14690 * configure.in: Create "Checks for header files" section, and move
14691 appropriate tests there. Don't check for objlist.h, wchar.h,
14692 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14693 misdetection fix. Also add "Checks for types", "Checks for
14694 compiler characteristics" and "Checks for library functions"
14695 sections.
14696 * config.in, configure: Regenerated.
14697
8bb2c122
MK
14698 * configure.in: Create "Checks for programs" section, and move
14699 appropriate tests there.
14700
9a156167
MK
147012003-01-01 Mark Kettenis <kettenis@gnu.org>
14702
14703 * configure.in: Create "Checks for libraries" section, and move
14704 appropriate tests there. Cleanup check for wctype in libw. Use
14705 AC_SEARCH_LIBS to see whether we need libsocket.
14706 * configure: Regenerated.
14707
a80e2bcb 14708For older changes see ChangeLog-2002
c906108c
SS
14709\f
14710Local Variables:
14711mode: change-log
14712left-margin: 8
14713fill-column: 74
14714version-control: never
14715End:
This page took 1.129755 seconds and 4 git commands to generate.