daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
597684c5
MK
12003-11-27 Mark Kettenis <kettenis@gnu.org>
2
3e74aeed
MK
3 * dwarf2-frame.c: Fix another comment.
4
efb1c01c
MK
5 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
6 (x86_64_use_struct_convention, x86_64_extract_return_value,
7 x86_64_store_return_value): Remove.
8 (amd64_reg_class): New enum.
9 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
10 amd64_return_value): New functions.
11 (x86_64_init_abi): Don't set extract_return_value,
12 store_return_value and use_struct_convention. Set return_value to
13 amd64_return_value.
14 * i387-tdep.h (i387_return_value): New prototype.
15 * i387-tdep.c (i387_return_value): New function.
16
e4e9607c
MK
17 * dwarf2-frame.c: Fix some comments and whitespace problems.
18
13739f4d
MK
19 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
20 "gdb_assert.h" and "gdb_string.h".
21 (i386nbsd_r_reg_offset): Rename from regmap.
22 (SIZEOF_STRUCT_REG): Remove.
23 (i386nbsd_supply_reg, fetch_core_registers,
24 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
25 Remove.
26 (i386nbsd_aout_supply_regset,
27 i386nbsd_aout_regset_from_core_section): New functions.
28 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
29 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
30 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
31 initialize TDEP->sc_num_regs.
32 (i386nbsdaout_init_abi): New function.
33 (i386nbsdelf_init_abi): Remove initialization of
34 TDEP->num_xmm_regs. Don't set num_regs here.
35 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
36 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
37
597684c5
MK
38 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
39 .note.netbsdcore.procinfo section to recognize NetBSD core files.
40
37e79b6b
MC
412003-11-26 Michael Chastain <mec.gnu@mindspring.com>
42
43 * cp-abi.c: Update copyright years.
44
24557e30
AC
452003-11-25 Andrew Cagney <cagney@redhat.com>
46
47 * thread-db.c (enable_thread_event): New function. Ensure that BP
48 is a code address.
49 (enable_thread_event_reporting): Use enable_thread_event.
50
78c63a3b
MS
512003-11-25 Michael Snyder <msnyder@redhat.com>
52
53 * mips-tdep.c (mips_o64_extract_return_value): Correct for
54 NUM_REGS (see changes 2003-06-21).
55 (mips_eabi_extract_return_value): Ditto.
56
aff6338a
AC
572003-11-25 Andrew Cagney <cagney@redhat.com>
58
59 * infrun.c: Don't include "exec.h".
60 (handle_inferior_event): Pass current_target, instead of exec_ops,
61 to SOLIB_ADD. Add comments.
62 * Makefile.in (infrun.o): Update dependencies.
63
9e08b29b
DJ
642003-11-24 Daniel Jacobowitz <drow@mvista.com>
65
66 * NEWS: Mention improved location expression support.
67
603942cc
AC
682003-11-23 Andrew Cagney <cagney@redhat.com>
69
70 * Makefile.in (infrun.o): Update dependencies.
71 * infrun.c: Include "exec.h".
72 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
73
66c57289
AC
742003-11-23 Andrew Cagney <cagney@redhat.com>
75
dd3ecc14
AC
76 * frame.c (frame_unwind_signed_register): Delete function.
77 * frame.h (frame_unwind_register_signed): Delete declaration.
78 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
79
eec1a560
AC
80 * arch-utils.h (generic_cannot_extract_struct_value_address):
81 Delete declaration.
82
cb137aa5
AC
83 * defs.h (DEPRECATED_STREQN): Rename STREQN.
84 (DEPRECATED_STREQ): Rename STREQ.
85 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
86 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
87 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
88 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
89 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
90 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
91 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
92 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
93 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 94
cb137aa5 95 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
96 * elfread.c (elf_symtab_read): Delete STREQ from comment.
97
29dfb2ac
AC
982003-11-22 Andrew Cagney <cagney@redhat.com>
99
213cc0ad
AC
100 * frame.c (deprecated_frame_xmalloc): Delete function.
101 (deprecated_set_frame_extra_info_hack): Delete function.
102 (deprecated_set_frame_saved_regs_hack): Delete function.
103 * frame.h (deprecated_frame_xmalloc): Delete declaration.
104 (deprecated_set_frame_extra_info_hack): Delete declaration.
105 (deprecated_set_frame_saved_regs_hack): Delete declaration.
106 * mcore-tdep.c (analyze_dummy_frame): Instead of
107 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
108 and deprecated_set_frame_extra_info_hack use
109 deprecated_frame_xmalloc_with_cleanup.
110 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
111 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
112 deprecated_set_frame_saved_regs_hack.
113
35bb18ac
AC
114 * mips-tdep.c (mips_frame_chain): Delete call to
115 deprecated_inside_entry_file.
116
38a7ce4b
AC
117 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
118 (deprecated_set_frame_prev_hack): Delete declaration.
119 * frame.c (deprecated_set_frame_next_hack): Delete function.
120 (deprecated_set_frame_prev_hack): Delete function.
121 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
122 "deprecated_set_frame_next_hack" and
123 "deprecated_set_frame_prev_hack".
124 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
125
47ebcfbe
AC
126 * mips-tdep.c (mips_register_convertible): Delete function.
127 (mips_register_convert_to_virtual): Delete function.
128 (mips_register_convert_to_raw): Delete function.
129 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
130 "deprecated_register_convert_to_virtual", or
131 "deprecated_register_convert_to_raw".
132 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
133 32/64 cooked to raw register conversions.
134
2a9264f1 135 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 136 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
137 (struct frame_info): Delete member "context".
138 * frame.h (deprecated_get_frame_context): Delete declaration.
139 (deprecated_set_frame_context): Delete declaration.
140
7af6341f
AC
141 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
142 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
143 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
144 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
145
10a08821
AC
146 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
147 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
148 mips_regsize.
149 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
150 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
151 * config/mips/tm-irix5.h: Update copyright.
152 (SIGFRAME_REG_SIZE): Delete macro.
153
00d33403
AC
154 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
155 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
156 declaration.
157 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
158 * infcall.c (call_function_by_hand): Delete #ifdef
159 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
160 * infcmd.c (print_return_value): Ditto.
161
74da7425
AC
162 * mips-tdep.c (skip_prologue_using_sal): New function.
163 (mips32_skip_prologue, mips16_skip_prologue): Use
164 skip_prologue_using_sal to get an upper bound on the search.
165
369864a4
AC
166 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
167 #if 0'ed macro.
168 * infrun.c (step_into_function): Delete #ifdef
169 PROLOGUE_FIRSTLINE_OVERLAP code.
170 * symtab.c (find_function_start_sal): Ditto.
171
a5a12285
AC
172 * remote-rdp.c: Update copyright.
173 (rdp_init): #if 0 references to "target_byte_order".
174
29dfb2ac
AC
175 * mips-tdep.c (mips_o32_store_return_value): Delete function.
176 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
177 (mips_o32_extract_return_value): Delete function.
178 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
179 (mips_n32n64_extract_return_value): Delete function.
180 (mips_n32n64_store_return_value): Delete function.
181 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
182 instead of "store_return_value", "extract_return_value", and
183 "use_struct_convention".
184 (mips_n32n64_use_struct_convention): Delete function.
185
3a3da38c
KB
1862003-11-21 Kevin Buettner <kevinb@redhat.com>
187
188 * frv-tdep.c (frv_frame_this_id): Eliminate call to
189 inside_entry_func().
190
c5e656c1
MK
1912003-11-20 Mark Kettenis <kettenis@gnu.org>
192
193 * i386-tdep.c (i386_extract_return_value,
194 i386_store_return_value): Add gdbarch argument. Use it instead of
195 determining it from REGCACHE. Remove recursive call for
196 structures with a single member.
197 (i386_use_struct_convention): Remove.
198 (i386_reg_struct_return_p): New function.
199 (i386_return_value): New function.
200 (i386_gdbarch_init): Set return_value, don't set
201 extract_return_value, store_return_value and
202 use_struct_convention.
203 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
204
515cc92e
JB
2052003-11-20 Jim Blandy <jimb@redhat.com>
206
207 * osabi.c (_initialize_gdb_osabi): Don't return before registering
208 the 'set osabi' and 'show osabi' commands.
209
3f1d7f16
MK
2102003-11-19 Mark Kettenis <kettenis@gnu.org>
211
212 * frame.c (get_prev_frame): Use result from
213 get_frame_address_in_block instead of get_frame_pc as argument to
214 inside_main_func. Fixes PR backtrace/1435.
215
667e784f
AC
2162003-11-19 Andrew Cagney <cagney@redhat.com>
217
218 * stack.c (return_command): Handle "void", "legacy" and "unknown
219 location" return values separatly.
220 * values.c (using_struct_return): Return 0 for a "void" return
221 type. Mention "register_value_being_returned".
222 (register_value_being_returned): Mention "using_struct_return".
223
4cecd739
DJ
2242003-11-19 Daniel Jacobowitz <drow@mvista.com>
225
226 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
227 (frame_base_offset): Delete.
228 (read_func_scope): Delete call to decode_locdesc.
229 (decode_locdesc): Update comments. Don't set the removed variables.
230 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
231 DW_OP_fbreg support.
232
6b992462
DJ
2332003-11-18 Daniel Jacobowitz <drow@mvista.com>
234
235 * dwarf2read.c (optimized_out, islocal): Remove.
236 (decode_locdesc): Update comments. Don't set optimized_out
237 or islocal.
238
968d1cb4
JJ
2392003-11-17 Jeff Johnston <jjohnstn@redhat.com>
240 David Mosberger <davidm@hpl.hp.com>
241
242 * ia64-tdep.c: Include elf.h.
243 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
244 libunwind-ia64.h.
245 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
246 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
247 (ia64_is_fpreg, ia64_access_reg): Ditto.
248 (ia64_access_fpreg, ia64_access_mem): Ditto.
249 (get_kernel_table): Ditto.
250 (ia64_find_unwind_table): Ditto.
251 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
252 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
253 (ia64_libunwind_frame_prev_register): Ditto.
254 (ia64_libunwind_frame_sniffer): Ditto.
255 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
256 sniffer. Register libunwind functions needed by generic
257 libunwind frame code using libunwind_frame_set_descr().
258
d29caefc
DJ
2592003-11-16 Daniel Jacobowitz <drow@mvista.com>
260
261 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
262 bp_shlib_disabled breakpoint if there is a shared library mapped
263 at its expected address.
264
691c0433
AC
2652003-11-16 Andrew Cagney <cagney@redhat.com>
266
96cb1c2f
AC
267 * configure.tgt: Delete mips*tx39*-elf*.
268 * config/mips/tm-tx39.h: Delete file.
269 * config/mips/tx39.mt: Delete file.
270 * config/mips/tx39.mt: Delete file.
271
691c0433
AC
272 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
273 * remote-mips.c (common_open): Instead of
274 "mips_read_register_type" and "mips_set_processor_type_command"
275 call "deprecated_mips_set_processor_regs_hack".
276 * config/mips/tm-mips.h (mips_read_processor_type): Delete
277 declaration.
278 (mips_set_processor_type_command): Delete declaration.
279 * mips-tdep.c (mips_gdbarch_init): Update comment.
280 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
281 (mips_set_processor_type): Delete function.
282 (NUM_MIPS_PROCESSOR_REGS): Define.
283 (mips_show_processor_type_command): Delete function.
284 (mips_set_processor_type_command): Delete function.
285 (tmp_mips_processor_type): Delete.
286 (mips_processor_type): Delete.
287 (mips_processor_type_table): Delete.
288 (mips_r3051_reg_names): Delete.
289 (mips_r3081_reg_names): Delete.
290 (mips_lsi33k_reg_names): Delete.
291 (mips_processor_reg_names): Delete.
292 (mips_read_processor_type): Delete function.
293 (deprecated_mips_set_processor_regs_hack): New function.
294 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
295 (mips_register_name): Get the processor names from the tdep.
296 (mips_tx39_reg_names): New array.
297 (mips_generic_reg_names): Wire to a standard set of names.
298 (mips_gdbarch_init): Set "mips_processor_reg_names".
299 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
300 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
301 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
302
56cea623
AC
3032003-11-16 Andrew Cagney <cagney@redhat.com>
304
305 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
306 (mips_fpa0_regnum, mips_regnum): New function.
307 (mips_gdbarch_init): Fill in the "regnum" fields.
308 * mips-tdep.h (struct mips_regnum): Define.
309 (mips_regnum): Declare.
310 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
311 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
312 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
313 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
314 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
315 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
316 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
317 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
318 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
319 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
320 * remote-mips.c: Include "mips-tdep.h". Update.
321 * mipsnbsd-tdep.c: Update.
322 * mipsv4-nat.c: Update.
323 * mips-tdep.c: Update.
324 * mips-nat.c: Update.
325 * mips-linux-tdep.c: Update.
326 * mips-linux-nat.c: Update.
327 * irix5-nat.c: Update.
328 * dve3900-rom.c: Include "mips-tdep.h". Update.
329 (ignore_packet): Supress GCC warning.
330 * config/mips/nm-riscos.h: Update.
331
719ec221
AC
3322003-11-16 Andrew Cagney <cagney@redhat.com>
333
334 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
335 register_size.
336 (mips_register_raw_size): Delete function.
337 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
338 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
339 Check and set "mips64_transfers_32bit_regs_p".
340 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
341 (mips_register_convertible): Check the architecture's
342 "mips64_transfers_32bit_regs_p".
343 (set_mips64_transfers_32bit_regs): New function.
344 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
345 "set remote-mips64-transfers-32bit-regs" command. Specify
346 set_mips64_transfers_32bit_regs as the set function.
56cea623 347 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 348
20187ed5
MK
3492003-11-16 Mark Kettenis <kettenis@gnu.org>
350
351 * i386-tdep.h (i386_supply_gregset): Provide prototype.
352 * i386-tdep.c (i386_supply_gregset): Make public.
353
6771c427
AC
3542003-11-16 Andrew Cagney <cagney@redhat.com>
355
356 * mips-tdep.c (mips_register_byte): Delete function.
357 (mips_gdbarch_init): Do not set "deprecated_register_byte".
358 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
359 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
360 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
361
c8048956
MK
3622003-11-16 Mark Kettenis <kettenis@gnu.org>
363
364 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
365
cc8a868a
AC
3662003-11-16 Andrew Cagney <cagney@redhat.com>
367
368 * config/mips/linux64.mt: Delete file.
369 * config/mips/tm-linux64.h: Delete file.
370 * config/mips/tm-mips64.h: Delete file.
371 * config/mips/embed64.mt: Delete file.
372 * config/djgpp/fnchange.lst: Update.
373 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
374 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
375 * config/mips/tm-irix6.h: Update copyright. Include
376 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
377 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
378 "OP_LDGPR".
379
5ef80fb0
AC
3802003-11-15 Andrew Cagney <cagney@redhat.com>
381
382 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
383 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
384 n32 registers 64 bit.
385 (mips_register_raw_size, mips_register_byte): For pseudo
386 registers, use the register's pseudo size and not the
387 corresponding raw register's size.
388 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
389 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
390 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
391 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
392
4246e332
AC
3932003-11-15 Andrew Cagney <cagney@redhat.com>
394
8fa9cfa1
AC
395 * mips-tdep.c (struct gdbarch_tdep): Delete member
396 gdb_target_is_mips64.
397 (GDB_TARGET_IS_MIPS64): Delete macro.
398 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
399 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
400 (mips_addr_bits_remove): Simplify.
401
c73e8f27
AC
402 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
403 register_size.
404
4246e332
AC
405 Replace MIPS_REGSIZE with mips_regsize.
406 * mips-tdep.c (mips_regsize): New function.
407 * mips-tdep.h (mips_regsize): Declare.
408 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
409 (SIZEOF_STRUCT_REG): Update.
410 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
411 (mipsnbsd_fill_reg): Update.
412 (mipsnbsd_supply_fpreg): Update.
413 (mipsnbsd_fill_fpreg): Update.
414 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
415 * mips-tdep.c (mips_register_raw_size): Update.
416 (mips_register_type): Update.
417 (SIGFRAME_BASE): Update.
418 (SIGFRAME_PC_OFF): Update.
419 (SIGFRAME_REGSAVE_OFF): Update.
420 (SIGFRAME_FPREGSAVE_OFF): Update.
421 (SIGFRAME_REG_SIZE): Update.
422 (mips32_heuristic_proc_desc): Update.
423 (print_gp_register_row): Update.
424 (mips_dump_tdep): Do not print MIPS_REGSIZE.
425 * irix5-nat.c (supply_gregset): Update.
426 (fetch_core_registers): Update.
427 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
428 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
429 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
430 (MIPS_REGISTER_BYTE): Update.
431 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
432
5e044b1e
AC
4332003-11-15 Andrew Cagney <cagney@redhat.com>
434
435 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
436 USE_REGISTER_NOT_ARG.
437 * stabsread.c (define_symbol): Update.
438
3a16a68c
AC
4392003-11-15 Andrew Cagney <cagney@redhat.com>
440
441 * bcache.h (deprecated_bcache): Declare.
442 (bcache): Make returned buffer constant.
443 * bcache.c (deprecated_bcache): New function.
444 (bcache_data): New function.
445 (bcache): Call bcache data.
446 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
447 (add_psymbol_with_dem_name_to_list): Ditto.
448
bb41a796
MK
4492003-11-15 Mark Kettenis <kettenis@gnu.org>
450
451 * glibc-tdep.h (struct gdbarch): Declare opaque.
452 (glibc_skip_solib_resolver): Adjust prototype.
453 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
454 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
455 (arm_linux_init_abi): Set skip_solib_resolver.
456 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
457 (i386_linux_init_abi): Set skip_solib_resolver.
458 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
459 (arm_linux_skip_solib_resolver): Remove prototype.
460 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
461 (i386_linux_skip_solib_resolver): Remove prototype.
462
4c8c40e6
MK
4632003-11-14 Mark Kettenis <kettenis@gnu.org>
464
465 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
466 function.
467 * gdbarch.c, gdbarch.h: Regenerate.
468 * infrun.c (handle_inferior_event): Call
469 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
470 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
471 definition.
472 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
473 prototype.
474
0e5d83e3
JJ
4752003-11-14 Jeff Johnston <jjohnstn@redhat.com>
476
477 * libunwind-frame.c: New file.
478 * libunwind-frame.h: New file.
479 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
480 * configure.in: Add --with-libunwind option support. Define
481 HAVE_LIBUNWIND if libunwind support selected / defaulted.
482 Also check for libunwind.h and libunwind-ia64.h headers.
483 * configure: Regenerated.
484 * Makefile.in: Add support for libunwind-frame.o.
485 * config.in: Regenerated.
486
287a334e
JJ
4872003-11-14 Jeff Johnston <jjohnstn@redhat.com>
488
489 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
490 set up the ia64 linux native target method for getting the kernel
491 unwind table.
492 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
493 * inftarg.c (child_xfer_partial): Enable section of code to
494 handle TARGET_OBJECT_UNWIND_TABLE.
495 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
496
140be7b8
ILT
4972003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
498
499 * config/arm/nbsd.mt (TM_FILE): Define.
500 * config/arm/tm-nbsd.h: New file.
501
0a90bcdd
AC
5022003-11-14 Andrew Cagney <cagney@redhat.com>
503
504 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
505 * ppc-sysv-tdep.c: Include "objfiles.h".
506 (ppc64_sysv_abi_push_dummy_call): Provide the
507 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
508
509 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
510 "name_of_malloc" to ".malloc".
511
087f1027
MK
5122003-11-13 Mark Kettenis <kettenis@gnu.org>
513
514 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
515
3882f37a
DC
5162003-11-13 David Carlton <carlton@kealia.com>
517
518 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
519
a8cf2722
AC
5202003-11-13 Andrew Cagney <cagney@redhat.com>
521
522 * arch-utils.h (selected_architecture_name): Declare.
523 (selected_byte_order): Declare.
524 * arch-utils.c (selected_byte_order): New function.
525 (selected_architecture_name): New function.
526 (target_architecture_auto): Make static.
527 (set_architecture_string): Make static.
528 (target_byte_order): Make static.
529 (target_byte_order_auto): Make static.
530 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
531 non-multi-arch definition.
532 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
533 (target_byte_order, target_architecture): Delete declaration.
534 (target_byte_order_auto, target_architecture_auto): Ditto.
535 * gdbarch.h: Re-generate.
536 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
537 "selected_byte_order".
538
475b6ddd
AC
5392003-11-13 Andrew Cagney <cagney@redhat.com>
540
541 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
542
a22286a9
JB
5432003-11-13 Jim Blandy <jimb@redhat.com>
544
545 * cp-namespace.c: Doc fix.
546
7bb11558
MS
5472003-11-12 Michael Snyder <msnyder@redhat.com>
548
39add00a
MS
549 * sh64_tdep.c: Regularize some names.
550 (sh_sh64_register_name): Rename to sh64_register_name.
551 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
552 (sh_sh64_register_byte): Rename to sh64_register_byte.
553 (sh_sh64_build_float_register_type):
554 Rename to sh64_build_float_register_type.
555 (sh_sh64_register_convert_to_virtual):
556 Rename to sh64_register_convert_to_virtual.
557 (sh_sh64_register_convert_to_raw):
558 Rename to sh64_register_convert_to_raw.
559
2a314ed5
MS
560 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
561 sh64_media_reg_base_num, sh64_compact_reg_base_num,
562 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
563 sh64_extract_return_value, sh64_show_media_regs,
564 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
565 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
566 sh64_pseudo_register_read, sh64_pseudo_register_write,
567 sh64_do_pseudo_register, sh_compact_print_registers_info):
568 Delete unused variable 'tdep'.
569
7bb11558
MS
570 * sh64-tdep.c: Coding standard and spelling comment fixes.
571 (sh64_extract_return_value): Replace deprecated_store_floating
572 with store_typed_floating.
573 (sh_sh64_register_convert_to_raw): Replace
574 deprecated_store_floating with store_typed_floating.
575 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
576 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
577 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
578 sh64_extract_struct_value_address, sh64_pop_frame,
579 sh64_extract_return_value, sh64_store_return_value,
580 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
581 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
582 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
583 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
584 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
585 deprecated_register_virtual_type, deprecated_register_raw_size,
586 deprecated_max_register_raw_size, or
587 deprecated_max_register_virtual_size. Instead, just set
588 gdbarch_register_type.
39add00a
MS
589 (sh_sh64_register_raw_size): Delete.
590 (sh_sh64_register_virtual_size): Delete.
7bb11558 591
e7c27a73
DJ
5922003-11-12 Daniel Jacobowitz <drow@mvista.com>
593
594 * dwarf2read.c (struct dwarf2_cu): New type.
595
596 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
597 dwarf2_cu structure to pass down.
598
599 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
600 (add_partial_enumeration, locate_pdi_sibling, process_die)
601 (read_file_scope, read_func_scope)
602 (read_lexical_block_scope, dwarf2_get_pc_bounds)
603 (dwarf2_add_field, dwarf2_attach_fields_to_type)
604 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
605 (read_structure_scope, read_enumeration, read_array_type)
606 (read_common_block, read_namespace, read_tag_pointer_type)
607 (read_tag_ptr_to_member_type, read_tag_reference_type)
608 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
609 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
610 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
611 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
612 (read_full_die. read_attribute_value, read_attribute)
613 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
614 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
615 (die_containing_type, type_at_offset, tag_type_to_type)
616 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
617 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
618
1640b821
DJ
6192003-11-12 Daniel Jacobowitz <drow@mvista.com>
620
621 PR breakpoints/1450
622 * breakpoint.c (insert_bp_location): Fix a logic error by returning
623 0 after a catchpoint fails.
624
d7891507
MC
6252003-11-11 Michael Chastain <mec.gnu@mindspring.com>
626
627 * mips-tdep.c (msymbol_size): Delete.
628
f594e5e9
MC
6292003-11-07 Michael Chastain <mec@shout.net>
630
631 * symtab.h (struct minimal_symbol): Add size.
632 * dbxread.c: Use it.
633 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
634 Rename to record_minimal_symbol.
635 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
636 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
637 (install_minimal_symbols): Ditto.
638 * objfiles.c (terminate_minimal_symbol_table): Ditto.
639 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
640 * m68hc11-tdep.c: Ditto.
641 * mips-tdep.c: Ditto.
642 * sh64-tdep.c: Ditto.
643
68e39e73
MC
6442003-11-10 Michael Chastain <mec.gnu@mindspring.com>
645
646 * MAINTAINERS: Change my e-mail address.
647
b60eb90d
AC
6482003-11-10 Andrew Cagney <cagney@redhat.com>
649
963e2bb7
AC
650 * gdbarch.sh (return_value): Replace "inval" and "outval" with
651 "readbuf" and "writebuf".
652 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
653 * d10v-tdep.c (d10v_return_value): Ditto.
654 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
655 (ppc_sysv_abi_broken_return_value): Ditto.
656 (ppc64_sysv_abi_return_value): Ditto.
657 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
658 (ppc_sysv_abi_return_value): Ditto.
659 (ppc_sysv_abi_broken_return_value): Ditto.
660 (ppc64_sysv_abi_return_value): Ditto.
661 * values.c (register_value_being_returned): Update call.
662 * stack.c (return_command): Update call.
663 * gdbarch.h, gdbarch.c: Re-generate.
664
8aa91c1e
AC
665 * target.h (struct target_ops): Order xfer buffer parameters "read
666 write" not "write read".
667 * bfd-target.c (target_bfd_xfer_partial): Update.
668 * remote.c (remote_xfer_partial): Update.
669 * inftarg.c (child_xfer_partial): Update.
670 * target.c (default_xfer_partial): Update.
671 (target_read_partial, target_write_partial): Update.
672 (debug_to_xfer_partial): Update.
673
100bcc3f
AC
674 * arch-utils.h, arch-utils.c: Fix typo in comment.
675
b60eb90d
AC
676 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
677 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
678 (set_gdbarch_from_file): Call
679 "deprecated_current_gdbarch_select_hack".
b60eb90d 680
bf922ad9
AC
6812003-11-09 Andrew Cagney <cagney@redhat.com>
682
ebdba546
AC
683 * arch-utils.c (gdbarch_update_p): New function.
684 * gdbarch.sh (gdbarch_update_p): Delete function.
685 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 686 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
687 * gdbarch.c: Re-generate.
688
7de2341d
AC
689 * gdbarch.sh (clear_gdbarch_swap): Delete function.
690 (swapout_gdbarch_swap): Delete function.
691 (swapin_gdbarch_swap): Delete function.
692 (init_gdbarch_swap): Delete function.
693 (initialize_non_multiarch): Delete function.
694 (current_gdbarch_swap_in_hack): New function.
695 (current_gdbarch_swap_out_hack): New function.
696 (current_gdbarch_swap_init_hack): New function.
697 * gdbarch.c: Re-generate.
698
db446970
AC
699 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
700 parameter to "current_gdbarch". Add comment explaining why.
701 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
702 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
703 * gdbarch.c: Re-generate.
704
341e3d11
AC
705 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
706 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
707 * config/s390/xm-linux.h: Delete file.
708 * config/m88k/xm-delta88v4.h: Delete stray.
709
bf922ad9
AC
710 * Makefile.in (arch-utils.o): Update dependencies.
711 * arch-utils.c: Include "osabi.h".
712 (gdbarch_info_fill): New function.
713 * arch-utils.h (gdbarch_info_fill): Declare.
714 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
715 * gdbarch.c: Re-generate.
716
a3640c75
MK
7172003-11-09 Mark Kettenis <kettenis@gnu.org>
718 David S. Miller <davem@redhat.com>
719
720 * glibc-tdep.c, glibc-tdep.h: New files.
721 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
722 * config/i386/linux.mt (TDEPFILES): Likewise.
723 * i386-linux-tdep.c (glibc-tdep.h): Include.
724 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
725 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
726 * arm-linux-tdep.c (glibc-tdep.h): Include.
727 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
728 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
729 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
730 (glibc_tdep_h): Define.
731 (glibc-tdep.o): Add dependencies.
732 (arm-linux-tdep.o): Update dependencies.
733 (i386-linux-tdep.o): Likewise.
734
e60e0ab2
AC
7352003-11-09 Andrew Cagney <cagney@redhat.com>
736
737 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
738 * config/mips/nm-irix6.h: Delete file.
739 * config/mips/nm-linux.h: Update copyright.
740 (MIPS_GNULINUX_TARGET): Delete macro.
741 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
742 * config/mips/xm-irix6.h: Delete file.
743 * config/mips/linux.mh (XM_FILE): Delete definition.
744 * config/mips/xm-linux.h: Delete file.
745
181555e9
AC
7462003-11-09 Andrew Cagney <cagney@redhat.com>
747
748 * d10v-tdep.c (d10v_return_value): New function.
749 (d10v_use_struct_convention): Delete function.
750 (d10v_store_return_value): Delete function.
751 (d10v_extract_struct_value_address): Delete function.
752 (d10v_gdbarch_init): Set "return_value" instead of
753 "extract_return_value", "store_return_value",
754 "extract_struct_value_address", and "use_struct_convention".
755 (RET1_REGNUM): Delete const.
756
dea0c52f
MK
7572003-11-09 Mark Kettenis <kettenis@gnu.org>
758
759 From David S. Miller <davem@redhat.com>:
760 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
761 * gdbarch.c, gdbarch.h: Regenerated.
762 * arch-utils.c (generic_skip_solib_resolver): New function.
763 * arch-utils.h (generic_skip_solib_resolver): New prototype.
764 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
765
6314a349
AC
7662003-11-07 Andrew Cagney <cagney@redhat.com>
767
768 * top.c (print_gdb_version): Replace STREQ with strcmp.
769 * valops.c (value_struct_elt_for_reference): Ditto.
770 (value_struct_elt_for_reference): Ditto.
771 * symtab.c (gdb_mangle_name): Ditto.
772 (find_line_symtab): Ditto.
773 * symmisc.c (maintenance_print_symbols): Ditto.
774 * symfile.c (symbol_file_command): Ditto.
775 * stabsread.c (define_symbol, read_type): Ditto.
776 (cleanup_undefined_types, scan_file_globals): Ditto.
777 * solib.c (solib_map_sections): Ditto.
778 * solib-svr4.c (bfd_lookup_symbol): Ditto.
779 * rs6000-tdep.c (skip_prologue): Ditto.
780 * p-valprint.c (pascal_value_print): Ditto.
781 (pascal_object_is_vtbl_ptr_type): Ditto.
782 * objfiles.c (in_plt_section): Ditto.
783 * minsyms.c (lookup_minimal_symbol): Ditto.
784 (compact_minimal_symbols): Ditto.
785 (find_solib_trampoline_target): Ditto.
786 * mdebugread.c (parse_type): Ditto.
787 * language.c (set_language_command): Ditto.
788 (set_type_command, set_range_command): Ditto.
789 * f-lang.c (add_common_block): Ditto.
790 (add_common_block): Ditto.
791 (find_first_common_named): Ditto.
792 (patch_all_commons_by_name): Ditto.
793 * elfread.c (elf_locate_sections): Ditto.
794 (elf_locate_sections): Ditto.
795 (elfstab_offset_sections): Ditto.
796 * dwarf2read.c (dwarf2_locate_sections): Ditto.
797 * dbxread.c (add_old_header_file): Ditto.
798 (find_corresponding_bincl_psymtab): Ditto.
799 (read_dbx_symtab, process_one_symbol): Ditto.
800 * coffread.c (patch_opaque_types): Ditto.
801 * cli/cli-decode.c (delete_cmd): Ditto.
802 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
803 * c-typeprint.c (c_type_print_base): Ditto.
804 * breakpoint.c (bpstat_stop_status): Ditto.
805 (clear_command, breakpoint_re_set_one): Ditto.
806
49df298f
AC
8072003-11-07 Andrew Cagney <cagney@redhat.com>
808
809 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
810 * bcache.c (struct bstring): Make "length" an unsigned short, add
811 "half_hash".
812 (struct bcache): Add "half_hash_error_count".
813 (bcache): Compute and save the "half_hash". Compare the
814 "half_hash" before comparing the length. Update
815 half_hash_error_count.
816
f168dd80
AC
8172003-11-07 Andrew Cagney <cagney@redhat.com>
818
819 * inftarg.c (child_xfer_partial): New function
820 (init_child_ops): Set "to_xfer_partial".
821
05580c65
AC
8222003-11-07 Andrew Cagney <cagney@redhat.com>
823
824 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
825 set "return_value" instead of "use_struct_convention".
826 (ppc_linux_use_struct_convention): Delete function.
827 (ppc_linux_return_value): New function.
828 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
829 (ppc_sysv_abi_broken_return_value): New function.
830 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
831 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
832 static.
833 (ppc_sysv_abi_extract_return_value): Delete function.
834 (ppc_sysv_abi_broken_extract_return_value): Delete function.
835 (ppc_sysv_abi_store_return_value): Delete function.
836 (ppc_sysv_abi_broken_store_return_value): Delete function.
837 (ppc_sysv_abi_use_struct_convention): Delete function.
838 (ppc64_sysv_abi_use_struct_convention): Delete function.
839 (ppc64_sysv_abi_extract_return_value): Delete function.
840 (ppc64_sysv_abi_store_return_value): Delete function.
841 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
842 (ppcnbsd_init_abi): Set "return_value", instead of
843 "use_struct_convention", "extract_return_value", and
844 "store_return_value".
845 (ppcnbsd_use_struct_convention): Delete function.
846 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
847 (ppc_sysv_abi_return_value): Declare.
848 (ppc_sysv_abi_broken_return_value): Declare.
849 (ppc_sysv_abi_use_struct_convention): Delete.
850 (ppc_sysv_abi_store_return_value): Delete.
851 (ppc_sysv_abi_extract_return_value): Delete.
852 (ppc_sysv_abi_broken_store_return_value): Delete.
853 (ppc_sysv_abi_broken_extract_return_value): Delete.
854 (ppc64_sysv_abi_use_struct_convention): Delete.
855 (ppc64_sysv_abi_extract_return_value): Delete.
856 (ppc64_sysv_abi_store_return_value): Delete.
857 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
858 set "return_value" instead of "extract_return_value",
859 "store_return_value", and "use_struct_convention".
860
1763fba4
MK
8612003-11-07 Mark Kettenis <kettenis@gnu.org>
862
22c7ba1a
MK
863 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
864
1763fba4
MK
865 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
866 fscanf.
867
fc07cc2d
MK
8682003-11-07 Mark Kettenis <kettenis@gnu.org>
869
870 * fbsd-proc.c: Fix formatting.
871
6a748db6
KB
8722003-11-06 Kevin Buettner <kevinb@redhat.com>
873
874 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
875 Define.
876 (new_variant): Set name for iacc0_regnum.
877 (frv_register_name): Accommodate pseudo-registers.
878 (frv_register_type): Add case for iacc0_regnum.
879 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
880 (frv_gdbarch_init): Set number of pseudo registers. Establish
881 pseudo-register read/write methods.
882
bf896cb0
AC
8832003-11-06 Andrew Cagney <cagney@redhat.com>
884
885 * valops.c (destructor_name_p): Replace STREQN with strncmp.
886 * top.c (command_line_input): Ditto.
887 * objc-exp.y (yylex): Ditto.
888 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
889 * jv-exp.y (yylex): Ditto.
890 * f-exp.y (yylex): Ditto.
891 * event-top.c (command_line_handler): Ditto.
892 * environ.c (get_in_environ): Ditto.
893 (set_in_environ): Ditto.
894 * dwarfread.c (handle_producer): Ditto.
895 * dbxread.c (process_one_symbol): Ditto.
896 * c-typeprint.c (c_type_print_base): Ditto.
897 * c-exp.y (yylex): Ditto.
898
0b603eba
AC
8992003-11-06 Andrew Cagney <cagney@redhat.com>
900 Jeff Johnston <jjohnstn@redhat.com>
901
902 * target.c (add_target): Only set "to_xfer_partial" when NULL.
903 (init_dummy_target): Set "to_xfer_partial".
904
9cedbfec
AC
9052003-11-06 Andrew Cagney <cagney@redhat.com>
906
907 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
908 REGISTER_CONVENTION.
909
26bb91f3
DJ
9102003-11-06 Daniel Jacobowitz <drow@mvista.com>
911
912 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
913 static.
914
0bde7532
DJ
9152003-11-06 Daniel Jacobowitz <drow@mvista.com>
916
917 * breakpoint.c (remove_breakpoint): Take an bp_location
918 instead of a breakpoint argument. Check the bp_location's type.
919 Fix a reversed condition for hardware breakpoints.
920
921 (insert_bp_location): Update call to remove_breakpoint.
922 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
923 (remove_hw_watchpoints): Likewise.
924 (reattach_breakpoints): Likewise.
925 (detach_breakpoints): Likewise.
926 (delete_breakpoint): Likewise.
927
075f6582
DJ
9282003-11-06 Daniel Jacobowitz <drow@mvista.com>
929
930 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
931 (beakpoint_init_inferior): Likewise.
932 (breakpoint_here_p): Likewise. Only check addresses for software
933 or hardware breakpoints.
934 (breakpoint_inserted_here_p): Likewise.
935 (breakpoint_thread_match): Likewise. Correct comment.
936 (bpstat_have_active_hw_watchpoints): Likewise.
937 (check_duplicates): Likewise.
938
879bfdc2
DJ
9392003-11-06 Daniel Jacobowitz <drow@mvista.com>
940
941 * breakpoints.c (insert_bp_location): New function, broken out
942 from insert_breakpoints. Work on an bp_location instead of a
943 breakpoint.
944 (insert_breakpoints): Use it.
945
cf3a9e5b
DJ
9462003-11-06 Daniel Jacobowitz <drow@mvista.com>
947
948 * breakpoint.h (struct bp_location): Add section.
949 (struct breakpoint): Remove section.
950 * breakpoint.c (insert_breakpoints, remove_breakpoint)
951 (breakpoint_here_p, breakpoint_inserted_here_p)
952 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
953 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
954 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
955 section through loc.
956
ffce0d52
DJ
9572003-11-06 Daniel Jacobowitz <drow@mvista.com>
958
959 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
960 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
961
e049a4b5
DJ
9622003-11-06 Daniel Jacobowitz <drow@mvista.com>
963
964 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
965 arguments. Initialize owner and type for the new breakpoint
966 location item.
967 (set_raw_breakpoint): Update call to allocate_bp_location.
968
7cc221ef
DJ
9692003-11-06 Daniel Jacobowitz <drow@mvista.com>
970
971 * breakpoint.h (struct bp_location): Add a chain pointer.
972 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
973 macros.
974 (bp_location_chain): New variable.
975 (allocate_bp_location): New function.
976 (set_raw_breakpoint): Use it.
977 (delete_breakpoint): Remove ->loc from the bp_location_chain.
978
5cab636d
DJ
9792003-11-06 Daniel Jacobowitz <drow@mvista.com>
980
981 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
982 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 983 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
984 * breakpoint.c (condition_command, read_memory_nobpt)
985 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
986 (reattach_breakpoints, update_breakpoints_after_exec)
987 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
988 (breakpoint_init_inferior, breakpoint_here_p)
989 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
990 (breakpoint_thread_match, bpstat_stop_status)
991 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
992 (describe_other_breakpoints, check_duplicates)
993 (make_breakpoint_permanent, create_thread_event_breakpoint)
994 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
995 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
996 (watch_command_1, print_one_exception_catchpoint)
997 (clear_command, breakpoint_re_set_one): Adjust member accesses to
998 use the breakpoint's ->loc.
999 (set_raw_breakpoint): Likewise. Initialize ->loc.
1000 (delete_breakpoint): Likewise. Free ->loc.
1001
7be0c536
AC
10022003-11-05 Andrew Cagney <cagney@redhat.com>
1003
4c7d882e
AC
1004 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1005 macro.
1006 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1007 * config/i386/tm-cygwin.h
1008 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1009 * config/powerpc/tm-linux.h
1010 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1011 (at_subroutine_call_instruction_target): Delete declaration.
1012 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1013 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1014 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1015
7be0c536
AC
1016 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1017 "struct bfd_section" and "struct bfd".
1018 * target.h (struct section_table): Ditto.
1019 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1020 * solib-svr4.c (elf_locate_base): Ditto.
1021 * pa64solib.c (dld_cache_t): Ditto.
1022 * objfiles.h (struct obj_section): Ditto.
1023 * objfiles.c (add_to_objfile_sections): Ditto.
1024 * exec.c (bfdsec_to_vmap): Ditto.
1025 (add_to_section_table): Ditto.
1026 (build_section_table): Ditto.
1027 * corelow.c (get_core_register_section): Ditto.
1028 * coffread.c (find_linenos): Ditto.
1029 * elfread.c (elf_interpreter): Delete #if0'd function.
1030
1031 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1032 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1033 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1034 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1035
1036 * arch-utils.h (generic_cannot_extract_struct_value_address):
1037 Delete declaration.
1038 * wince.c (_initialize_wince): Fix multi-line string.
1039 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1040
d8fe84e3
EZ
10412003-11-05 Elena Zannoni <ezannoni@redhat.com>
1042
1043 * top.c (execute_command): Fix broken logic for command execution
1044 while inferior is running in async mode.
1045
cbdfc7c0
MK
10462003-11-06 Mark Kettenis <kettenis@gnu.org>
1047
1048 * dwarf2-frame.c (execute_cfa_program): Mark register as
1049 REG_SAVED_REG for DW_CFA_register opcode.
1050
dac94105
MK
10512003-11-05 Mark Kettenis <kettenis@gnu.org>
1052
1053 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1054 %rsp, %rip and %eflags to match ABI-change.
1055
85bf2b91
JJ
10562003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1057
1058 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1059 (ia64_gdbarch_init): Don't bother calculating the os.
1060 Instead use the gdbarch_info struct and look at the osabi field.
1061 Also use gdbarch_list_lookup_by_info() to look for a
1062 candidate gdbarch.
1063
cd31fb03
KB
10642003-11-05 Kevin Buettner <kevinb@redhat.com>
1065
1066 * frv-tdep.c (frv_register_byte): Delete.
1067 (frv_extract_return_value, frv_store_return_value)
1068 (frv_extract_struct_value_address): Don't call frv_register_byte().
1069 Convert to non-deprecated form.
1070 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1071 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1072 set_gdbarch_deprecated_store_return_value(), and
1073 set_gdbarch_deprecated_extract_struct_value_address() into
1074 non-deprecated forms.
1075
0a056982
AC
10762003-11-05 Andrew Cagney <cagney@redhat.com>
1077
1078 * mips-tdep.c (mips_dump_tdep): Do not print
1079 PRINT_EXTRA_FRAME_INFO.
1080 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1081 Rename PRINT_EXTRA_FRAME_INFO.
1082 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1083 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1084 (mips_print_extra_frame_info): Delete declaration.
1085 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1086
29e0a062
EZ
10872003-11-05 Elena Zannoni <ezannoni@redhat.com>
1088
1089 * coffread.c (coff_symtab_read): Remove passing of info parameter
1090 to prim_record_minimal_symbol_and_info.
1091
8af580fc
EZ
10922003-11-05 Elena Zannoni <ezannoni@redhat.com>
1093
1094 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1095 (decode_base_type): Delete ifdeffed out code.
1096
507836c0
AC
10972003-11-04 Andrew Cagney <cagney@redhat.com>
1098
1099 * symtab.c (find_active_alias): Delete function.
1100 (lookup_block_symbol): Delete alias code.
1101 * stabsread.c (resolve_live_range): Delete function.
1102 (add_live_range): Delete function.
1103 (resolve_symbol_reference): Delete function.
1104 (define_symbol): Delete live range and alias code.
1105 (scan_file_globals): Delete alias code.
1106 * symtab.h (SYMBOL_RANGES): Delete macro.
1107 (struct range_list): Delete structure.
1108 (struct symbol): Delete field "ranges".
1109 (SYMBOL_ALIASES): Delete macro.
1110 (struct alias_list): Delete structure.
1111 (struct symbol): Delete field "aliases".
1112
1083b3bc
MS
11132003-11-04 Michael Snyder <msnyder@redhat.com>
1114
1115 * MAINTAINERS: Remove myself as owner of breakpoints and
1116 of sparc/solaris.
1117
474e5826
CV
11182003-11-03 Corinna Vinschen <vinschen@redhat.com>
1119
1120 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1121 (sh_sh4al_dsp_register_name): Ditto.
1122 (sh4_nofpu_show_regs): Ditto.
1123 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1124 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1125
2160782c
AC
11262003-11-03 Andrew Cagney <cagney@redhat.com>
1127
1128 * bcache.c: Include "gdb_assert.h".
1129 (struct bcache): Add fields "expand_count" and
1130 "expand_hash_count".
1131 (expand_hash_table): Update the expand counts.
1132 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1133 on object sizes and hashes.
1134 * Makefile.in (bcache.o): Update dependencies.
1135
85302095
AC
11362003-11-03 Andrew Cagney <cagney@redhat.com>
1137
1138 * exec.c (xfer_memory): Eliminate xfer_fn.
1139
526eef89
KB
11402003-10-31 Kevin Buettner <kevinb@redhat.com>
1141
1142 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1143 (opcodes/frv-desc.h): Include.
1144 (iacc0h_regnum, iacc0l_regnum): Define.
1145 (last_spr_regnum, frv_num_regs): Update.
1146 (new_variant): Don't supply default names for holes in the SPRs.
1147 Supply names for iacc0h_regnum and iacc0l_regnum.
1148 (frv_register_type): Use symbolic constants first_fpr_regnum and
1149 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1150 builtin_type_int instead of builtin_type_int32.
1151 (frv_register_sim_regno): New function.
1152 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1153 * Makefile.in (gdb_sim_frv_h): Define.
1154 (frv-tdep.o): Update dependencies.
1155
9e815ec2
AC
11562003-10-31 Andrew Cagney <cagney@redhat.com>
1157
1158 * avr-tdep.c (avr_frame_this_id): Do not call
1159 deprecated_inside_entry_file.
1160 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1161 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1162 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1163 * arm-tdep.c (arm_prologue_this_id): Ditto.
1164 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1165
e372db49
JB
11662003-10-31 Jim Blandy <jimb@redhat.com>
1167
1168 * elfread.c (elf_symtab_read): Allocate correct number of tail
1169 elements to sectinfo structure. (Fix from Woody LaRue.)
1170
e8bcf01f
AC
11712003-10-31 Andrew Cagney <cagney@redhat.com>
1172
1173 * stack.c (return_command): Use get_frame_type, instead of
1174 CALL_DUMMY_HAS_COMPLETED.
1175 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1176 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1177
4c05fe53
MK
11782003-10-31 Mark Kettenis <kettenis@gnu.org>
1179
1180 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1181 explicitly specify size of array.
1182 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1183 TDEP->sc_num_regs.
1184
c8b91b89
AC
11852003-10-31 Andrew Cagney <cagney@redhat.com>
1186
1187 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1188 function.
1189 (s390_gdbarch_init): Set extract_struct_value_address.
1190 * arch-utils.c (generic_cannot_extract_struct_value_address):
1191 Delete function.
1192 * arch-utils.h (generic_cannot_extract_struct_value_address):
1193 Delete definition.
1194
fdfb6fc8
MK
11952003-10-31 Mark Kettenis <kettenis@gnu.org>
1196
1197 * i386-linux-nat.c (fetch_core_registers): Remove.
1198 (linux_elf_core_fns): Remove.
1199 (_initialize_i386_linux_nat): Remove.
1200
2f4950cd
AC
12012003-10-31 Andrew Cagney <cagney@redhat.com>
1202
1203 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1204 "exec.h".
1205 (exec_entry_point): New function.
1206 (enable_break): Create a "tmp_bfd_target", use that and
1207 entry_point_address when computing the relocation offset.
1208 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1209 * Makefile.in (solib-svr4.o): Update dependencies.
1210
bba2d28d
AC
12112003-10-31 Andrew Cagney <cagney@redhat.com>
1212
1213 * defs.h (XZALLOC): Define.
1214 * target.h (struct target_ops): Add "to_data";
1215 * bfd-target.h, bfd-target.c: New files.
1216 * Makefile.in (SFILES): Add "bfd-target.c".
1217 (COMMON_OBS): Add "bfd-target.o".
1218 (bfd-target.o): Specify dependencies.
1219 (bfd_target_h): Define.
1220 * defs.h (XZALLOC): Define.
1221
6066c3de
AC
12222003-10-31 Andrew Cagney <cagney@redhat.com>
1223
1224 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1225 adjust_breakpoint_address.
1226 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1227 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1228 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1229 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1230
4b8a223f
AC
12312003-10-31 Andrew Cagney <cagney@redhat.com>
1232
1233 * target.h (struct target_ops): Replace "to_read_partial" and
1234 "to_write_partial" with "to_xfer_partial". Update comments.
1235 * target.c (debug_to_write_partial): Delete function.
1236 (debug_to_xfer_partial): Replace debug_to_read_partial.
1237 (add_target, update_current_target, setup_target_debug): Set
1238 "to_xfer_partial" instead of "to_read_partial" and
1239 "to_write_partial".
1240 (default_xfer_partial): Replace "default_write_partial".
1241 (default_read_partial): Delete.
1242 (target_read_partial, target_write_partial): Call
1243 "to_xfer_partial".
1244 * remote.c (init_remote_ops): Set "to_xfer_partial".
1245 (init_remote_async_ops): Ditto.
1246 (remote_xfer_partial): Replace "remote_read_partial".
1247
66a72d25
MK
12482003-10-31 Mark Kettenis <kettenis@gnu.org>
1249
1250 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1251 registers in `fxsave' format.
1252 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1253
9a12a2a0
MK
12542003-10-30 Mark Kettenis <kettenis@gnu.org>
1255
e9f1aad5
MK
1256 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1257 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1258 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1259
bb489b3c
MK
1260 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1261 specify size of array.
1262 (i386_linux_init_abi): Remove initialization of
1263 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1264 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1265
da285bc4
MK
1266 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1267 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1268 core-regset.o.
1269
9a12a2a0
MK
1270 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1271 the ELF header.
1272
0e24ac5d
MK
12732003-10-29 Mark Kettenis <kettenis@gnu.org>
1274
6d6d8e9c
MK
1275 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1276 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1277 core-regset.o.
1278
25e60c9b
MK
1279 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1280
0e24ac5d
MK
1281 * corelow.c: Include "arch-utils.h", "regset.h" and
1282 "gdb_assert.h".
1283 (core_gdbarch): New variable.
1284 (sniff_core_bfd): Don't sniff if we have support for register sets
1285 in CORE_GDBARCH.
1286 (core_close): Reset CORE_GDBARCH.
1287 (core_open): Initialize CORE_GDBARCH.
1288 (get_core_register_section): Use register sets if they are
1289 supported by CORE_GDBARCH.
1290 (get_core_registers): Don't print error message if we have support
1291 for register sets in CORE_GDBARCH.
1292
0a0a4ac3
AC
12932003-10-29 Andrew Cagney <cagney@redhat.com>
1294
1295 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1296 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1297
7b097ae3
MK
12982003-10-29 Mark Kettenis <kettenis@gnu.org>
1299
1300 * objfiles.h (clear_objfile_data): New prototype.
1301 * objfiles.c (clear_objfile_data): New function.
1302 * symfile.c (reread_symbols): Clear per-objfile data.
1303
46f45a4a
JJ
13042003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1305
1306 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1307 printf_unfiltered instead of printf_filtered for output messages.
1308 (add_symbol_file_command): Ditto.
1309 (reread_symbols): Ditto.
1310 (overlay_auto_command): Ditto.
1311 (overlay_manual_command): Ditto.
1312 (overlay_off_command): Ditto.
1313
2b026650
MK
13142003-10-27 Mark Kettenis <kettenis@gnu.org>
1315
1316 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1317 (gdbarch_from_bfd): New function.
1318 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1319 deprecated_select_gdbarch_hack.
1320 * arch-utils.h (gdbarch_from_bfd): New prototype.
1321
0bcad584 13222003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1323
1324 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1325 arch_info. Use warning instead of fprintf_filtered. Do not use
1326 deprecated bfd_printable_arch_mach.
1327
7f398216
KB
13282003-10-26 Kevin Buettner <kevinb@redhat.com>
1329
1330 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1331 Delete.
1332 (frv_register_type): Rename from frv_register_virtual_type. Add
1333 ``struct gdbarch *'' parameter.
1334 (frv_gdbarch_init): Delete calls to the following functions:
1335 set_gdbarch_deprecated_size(),
1336 set_gdbarch_deprecated_register_bytes(),
1337 set_gdbarch_deprecated_register_raw_size(),
1338 set_gdbarch_deprecated_max_register_raw_size(),
1339 set_gdbarch_deprecated_register_virtual_size(),
1340 set_gdbarch_deprecated_max_register_virtual_size(),
1341 set_gdbarch_deprecated_register_virtual_size(),
1342 set_gdbarch_deprecated_register_virtual_type().
1343 Add call to function set_gdbarch_register_type().
1344
bcf48cc7
MK
13452003-10-26 Mark Kettenis <kettenis@gnu.org>
1346
6c7de422
MK
1347 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1348 FDOFF_REGNUM): Remove defines.
1349 * win32-nat.c (do_child_fetch_inferior_registers): Include
1350 "i387-tdep.h".
3e685d41 1351 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1352 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1353 undefine I387_ST0_REGNUM.
1354
f783586b
MK
1355 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1356 * x86-64-tdep.c (x86_64_store_return_value): Use
1357 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1358
bcf48cc7
MK
1359 Change register numbers to enumartion values.
1360 * i386-tdep.h (enum i386_regnum): New.
1361 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1362 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1363 I386_ST0_REGNUM): Remove defines.
1364 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1365 I386_EDI_REGNUM): Remove defines.
1366
b6591e8b
AC
13672003-10-24 Andrew Cagney <cagney@redhat.com>
1368
1369 * target.c: Include "gdbcore.h".
1370 (get_target_memory, get_target_memory_unsigned): New functions.
1371 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1372 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1373 Use get_target_memory_unsigned.
1374 * Makefile.in (target.o): Update dependencies.
1375
5f724446
AC
13762003-10-24 Andrew Cagney <cagney@redhat.com>
1377
ce2826aa
AC
1378 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1379 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1380 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1381 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1382 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1383
5f724446
AC
1384 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1385 (can_run_code_for): Use the OO term "singleton".
1386
fc70c2a0
AC
13872003-10-23 Andrew Cagney <cagney@redhat.com>
1388
1389 * Makefile.in (stack.o): Add $(regcache_h).
1390 * stack.c: Include "regcache.h"
1391 (return_command): Rewrite. Use get_frame_id and
1392 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1393 about unhandled return-values.
1394 * value.h (set_return_value): Delete declaration.
1395 * values.c (set_return_value): Delete function.
1396
4afcc598
JJ
13972003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1398
1399 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1400 (pseudo_regs): Add comment regarding register stack registers.
1401 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1402 (floatformat_valid): New static routine.
1403 (floatformat_ia64_ext): Add name field and set up is_valid routine
1404 to floatformat_valid().
1405 (examine_prologue): For the previous cfm, use
1406 frame_unwind_register()
1407 if the cfm is not stored in a register-stack register. Save the
1408 previous cfm value in the prev_cfm field. Add debug output.
1409 (ia64_frame_this_id): Use frame_id_build_special() to also register
1410 the bsp. Add debug output.
1411 (ia64_sigtramp_frame_this_id): Ditto.
1412 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1413 registers and also add some checks for framelessness before accepting
1414 current register values for fields such as return address. For cfm,
1415 use the cached prev_cfm field if available. Add comment to explain
1416 PSR logic. Add debug output.
1417 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1418 as part of initialization.
1419 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1420 calculated. Cache the bsp and cfm values.
1421 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1422 instead of using ia64_frame_prev_register() which doesn't expect most
1423 registers to be saved. The saved values for bsp and sp
1424 can be taken from the cache. Add debug output.
1425 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1426 the bsp.
1427
6cfae0bc
JB
14282003-10-23 Jim Blandy <jimb@redhat.com>
1429
1430 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1431 architecture the current arch can run code for --- but not if it's
1432 a superset.
1433 (can_run_code_for): New function.
1434
fcd182f9
JW
14352003-10-22 James E Wilson <wilson@specifixinc.com>
1436
1437 * MAINTAINERS: Move myself from paper trail section back to write
1438 after approval section.
1439
4646aa9d
AC
14402003-10-22 Andrew Cagney <cagney@redhat.com>
1441
1442 * exec.h: New file.
1443 * win32-nat.c: Include "exec.h".
1444 * solib.c: Include "exec.h".
1445 * target.h (build_section_table): Delete declaration.
1446 * somsolib.c: Include "exec.h".
1447 (exec_ops): Delete extern declaration.
1448 * rs6000-nat.c: Update copyright. Include "exec.h".
1449 (exec_ops): Delete extern declaration.
1450 * pa64solib.c: Update copyright. Include "exec.h".
1451 (exec_ops): Delete extern declaration.
1452 * exec.c: Update copyright. Include "exec.h".
1453 * corelow.c: Update dependencies. Include "exec.h".
1454 * Makefile.in (exec_h): Define.
1455 (exec.o, somsolib.o): Update dependencies.
1456 (pa64solib.o, corelow.o): Update dependencies.
1457
0088c768
AC
14582003-10-22 Andrew Cagney <cagney@redhat.com>
1459
1460 * target.c: Include "gdb_assert.h" (target_read): Call
1461 "target_read_partial", not "target_write_partial".
1462 (default_read_partial, default_write_partial): New function.
1463 (target_read_partial, target_write_partial): Simplify, assume that
1464 there is always a read/write method.
1465 (update_current_target, add_target): Always set "to_read_partial"
1466 and "to_write_partial".
1467 (target_write, target_read): Fail on a zero byte transfer.
1468 * Makefile.in (target.o): Update dependencies.
1469 * target.h: Update copyright date.
1470 (target_object): Fix typo.
1471
e2d0e7eb
AC
14722003-10-22 Andrew Cagney <cagney@redhat.com>
1473
1474 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1475 multi-arch method, add "targ" parameter.
1476 (struct target_ops): Declare.
1477 * gdbarch.h, gdbarch.c: Re-generate.
1478 * Makefile.in (c-valprint.o): Update dependencies.
1479 * arch-utils.h: Update copyright.
1480 (convert_from_func_ptr_addr_identity): Declare.
1481 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1482 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1483 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1484 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1485 * infcall.c (find_function_addr, call_function_by_hand): Update.
1486 * c-valprint.c: Include "target.h".
1487 (print_function_pointer_address): Update.
1488
f1c07ab0
AC
14892003-10-22 Andrew Cagney <cagney@redhat.com>
1490
1491 * target.c (target_close): New function.
1492 (debug_to_close): Use "target_close".
1493 (push_target): Use "target_close".
1494 (unpush_target): Use "target_close".
1495 (pop_target): Use "target_close".
1496 * target.h (struct target_ops): Add "to_xclose".
1497 (target_open): Delete macro. Move comment to "to_open".
1498 (target_close): Replace macro with function that takes a target.
1499 * top.c (quit_target): Pass "current_target" to "target_close".
1500
5520a790
EZ
15012003-10-21 Elena Zannoni <ezannoni@redhat.com>
1502
1503 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1504 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1505 * symtab.h (lookup_minimal_symbol_text): Update.
1506 * breakpoint.c (create_overlay_event_breakpoint,
1507 create_longjmp_breakpoint): Update callers.
1508 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1509 * symtab.c (find_pc_sect_line): Ditto.
1510
caa92b73
AC
15112003-10-21 Andrew Cagney <cagney@redhat.com>
1512
1513 * target.c (errno): Delete extern declaration.
1514
aa2a9a3c
JJ
15152003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1516
1517 * ia64-tdep.c: Change all occurrences of
1518 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1519 (ia64_frame_prev_register): Minor whitespace change.
1520
4beec2b7
MC
15212003-10-20 Michael Chastain <mec@shout.net>
1522
1523 * config/djgpp/fnchange.lst: Add lines for:
1524 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1525 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1526 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1527 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1528 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1529 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1530 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1531
92ad9cd9
AC
15322003-10-20 Andrew Cagney <cagney@redhat.com>
1533
1534 * values.c (register_value_being_returned): Update comments. Use
1535 "gdbarch_return_value" when available.
1536 (using_struct_return): Ditto.
1537 (set_return_value): Ditto. Use "gdbarch_return_value" when
1538 available.. Print a warning, and not an error, when an unhandled
1539 return type is encountered.
1540 * infcmd.c: Include "gdb_assert.h".
1541 (print_return_value): When gdbarch_return_value_p, and using
1542 struct return, assume that the value is not available.
1543 * defs.h (return_value_convention): Define.
1544 * gdbarch.sh (gdbarch_return_value): New predicate method.
1545 * gdbarch.h, gdbarch.c: Re-generate
1546 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1547
198beae2
AC
15482003-10-20 Andrew Cagney <cagney@redhat.com>
1549
1550 * symtab.c: Replace "struct sec" with "struct bfd_section".
1551 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1552
24d693a6 15532003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1554
1555 * config/djgpp/fnchange.lst: Add lines for:
1556 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1557 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1558 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1559
21ad8dc3
MK
15602003-10-19 Mark Kettenis <kettenis@gnu.org>
1561
1562 * amd64fbsd-nat.c (fetch_inferior_registers,
1563 store_inferior_registers): Remove functions.
1564 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1565
cced5e27
MK
15662003-10-18 Mark Kettenis <kettenis@gnu.org>
1567
1568 Add NetBSD/amd64 native configuration:
1569 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1570 * amd64nbsd-tdep.c: New file.
1571 * amd64nbsd-nat.c: New file.
1572 * amd64bsd-nat.c: New file.
1573 * config/i386/nbsd64.mh: New file.
1574 * config/i386/nbsd64.mt: New file.
1575 * configure.host: Add x86_64-*-netbsd*.
1576 * configure.tgt: Add x86_64-*-netbsd*.
1577 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1578 New targets.
1579 * NEWS (New native configurations): Mention NetBSD/amd64.
1580
666de3fd
MC
15812003-10-17 Michael Chastain <mec@shout.net>
1582
1583 * config/djgpp/fnchange.lst: Remove dead lines for:
1584 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1585 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1586 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1587 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1588 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1589 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1590 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1591 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1592 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1593 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1594 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1595 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1596 gdb/config/sparc/tm-sparclite.h,
1597 gdb/gdbtk/generic/ChangeLog-2001,
1598 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1599 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1600 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1601 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1602 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1603 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1604 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1605 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1606 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1607 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1608 itcl/iwidgets3.0.0/demos/fileselectionbox,
1609 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1610 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1611 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1612 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1613 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1614 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1615 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1616 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1617 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1618 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1619 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1620 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1621 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1622 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1623 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1624 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1625 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1626 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1627 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1628 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1629 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1630 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1631 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1632 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1633 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1634 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1635 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1636 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1637 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1638 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1639 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1640 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1641 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1642 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1643 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1644 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1645 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1646 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1647 itcl/iwidgets3.0.0/demos/scrolledframe,
1648 itcl/iwidgets3.0.0/demos/scrolledhtml,
1649 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1650 itcl/iwidgets3.0.0/demos/scrolledtext,
1651 itcl/iwidgets3.0.0/demos/selectionbox,
1652 itcl/iwidgets3.0.0/demos/selectiondialog,
1653 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1654 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1655 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1656 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1657 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1658 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1659 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1660 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1661 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1662 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1663 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1664 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1665 itcl/iwidgets3.0.0/doc/selectionbox.n,
1666 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1667 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1668 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1669 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1670 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1671 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1672 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1673 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1674 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1675 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1676 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1677 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1678 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1679 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1680 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1681 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1682 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1683 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1684 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1685 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1686 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1687 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1688 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1689 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1690 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1691 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1692 itcl/iwidgets3.0.0/tests/selectionbox.test,
1693 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1694 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1695 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1696 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1697 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1698 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1699 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1700 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1701 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1702 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1703 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1704 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1705 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1706 tk/mac/tkMacProjects.sit.hqx.
1707
1e3ff5ad
AC
17082003-10-17 Andrew Cagney <cagney@redhat.com>
1709
8db32d44
AC
1710 * target.c (target_section_by_addr): New function.
1711 (do_xfer_memory): Use "target_section_by_addr".
1712 * target.h (target_section_by_addr): Declare.
1713
1e3ff5ad
AC
1714 * target.h (struct target_ops): Add "to_read_partial" and
1715 "to_write_partial", delete "to_query".
1716 (target_read_partial, target_write_partial): Declare.
1717 (target_read, target_write): Declare.
1718 (target_query): Delete macro.
1719 * target.c (target_read_partial): New function.
1720 (target_write_partial, target_read, target_write): New function.
1721 (update_current_target): Delete inheritance of "to_query". Add
1722 comments about "to_read_partial" and "to_write_partial".
1723 (debug_to_partial_read, debug_to_partial_write): New functions.
1724 (debug_to_query): Delete function.
1725 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1726 instead of "to_query".
1727 * remote.c (remote_read_partial): Replace "remote_query".
1728 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1729 (init_remote_async_ops): Ditto.
1730 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1731 "target_read_partial" instead of "target_query".
1732 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1733 Use "target_read_partial" instead of "target_query".
1734
48c66725
JJ
17352003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1736
1737 * frame.h (struct frame_id): Add new field: special_addr.
1738 (frame_id_build_special): New prototype.
1739 * frame.c (frame_id_build_special): New function.
1740 (frame_id_build): Change to call frame_id_build_special().
1741 (frame_id_eq): Change to also test special_addr field.
1742 (frame_id_inner): Update comment.
1743
7998dfc3
AC
17442003-10-17 Andrew Cagney <cagney@redhat.com>
1745
1746 * target.c (update_current_target): Perform the target cleanup.
1747 Put the target stack beneath the squashed "current_target".
1748 (add_target): Delete disabled call to "cleanup_target".
1749 (cleanup_target): Delete function.
1750 (push_target, unpush_target): Do not call "cleanup_target".
1751
9c04404e 17522003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1753
1754 * target.c (target_stack): Change to a static target_ops.
1755 (update_current_target): Walk the "struct target_ops" stack.
1756 (pop_target, do_xfer_memory, target_info): Ditto.
1757 (find_target_beneath): Ditto.
1758 (push_target): Rewrite to use the "struct target_ops" stack.
1759 (unpush_target): Ditto.
1760 * target.h (struct target_stack_item): Delete definition.
1761 (target_stack): Delete declaration.
1762 (struct target_ops): Add field "beneath".
1763
c98a2b49 17642003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1765
1766 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1767 declaration.
1768 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1769 (h8300_examine_prologue): Use h8300_normal_mode flag
1770 (h8300_gdbarch_init): Set architecture info for normal mode
1771
506fb367
DJ
17722003-10-16 Daniel Jacobowitz <drow@mvista.com>
1773
1774 * remote.c (remote_protocol_vcont): New variable.
1775 (set_remote_protocol_vcont_packet_cmd): New function.
1776 (show_remote_protocol_vcont_packet_cmd): New function.
1777 (init_all_packet_configs): Handle remote_protocol_vcont.
1778 (remote_vcont_probe): New function.
1779 (remote_vcont_resume): New function.
1780 (remote_resume): Use it.
1781 (remote_async_resume): Call remote_resume.
1782 (_initialize_remote): Add verbose-resume packet commands.
1783
65815ea1
AC
17842003-10-16 Andrew Cagney <cagney@redhat.com>
1785
1786 * infrun.c (handle_inferior_event): Add comment about
1787 "frame_id_inner" being too weak.
1788
40324f1b
EZ
17892003-10-16 Elena Zannoni <ezannoni@redhat.com>
1790
1791 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1792 second parameter, which is always null. Remove
1793 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1794 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1795 accordingly.
1796 * somsolib.c (som_solib_create_inferior_hook,
1797 som_solib_desire_dynamic_linker_symbols): Update callers.
1798 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1799
18002003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1801
1802 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1803 debug interface, SDI (Scalable Debug Interface).
1804 * NEWS: Mention m32r SDI protocol was supported.
1805 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1806 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1807
51931cbb
JJ
18082003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1809
1810 * ia64-linux-tdep.c: Include gdbcore.h.
1811 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1812 (ia64_linux_sigcontext_register_addr): Find the address of the
1813 sigcontext area stored in the sigframe instead of using
1814 a magic offset constant.
1815
84e7fd53
AC
18162003-10-15 Andrew Cagney <cagney@redhat.com>
1817
1818 * remote.c (remote_search): Delete function.
1819 * target.h (target_search): Delete disabled macro.
1820 (struct target_ops): Delete disabled field "to_search".
1821
0f4d7c52
KB
18222003-10-14 Kevin Buettner <kevinb@redhat.com>
1823
1824 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1825 instead of deprecated_inside_entry_file().
1826
2e952408
CV
18272003-10-14 Corinna Vinschen <vinschen@redhat.com>
1828
1829 * sh-tdep.c: Fix copy/paste hangover in comment.
1830 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1831 mode.
1832 (sh3e_sh4_extract_return_value): Ditto.
1833
7e86466e
RH
18342003-10-13 Richard Henderson <rth@redhat.com>
1835
1836 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1837 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1838 match c_val_print a bit closer.
1839
46a16dba
KB
18402003-10-13 Kevin Buettner <kevinb@redhat.com>
1841
1842 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1843 (frv_gdbarch_adjust_breakpoint_address): New function.
1844 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1845 method.
1846
76897487
KB
18472003-10-13 Kevin Buettner <kevinb@redhat.com>
1848
1849 * breakpoint.h (struct breakpoint): Add new member
1850 ``requested_address''.
1851 * breakpoint.c (breakpoint_adjustment_warning)
1852 (adjust_breakpoint_address): New static functions.
1853 (print_it_typical): Issue warning if breakpoint's address is different
1854 from its requested address.
1855 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1856 (breakpoint_re_set_one): Set breakpoint's
1857 ``requested_address'' field. Set ``address'' field to the
1858 result of calling adjust_breakpoint_address() on the requested
1859 address.
1860
a1131521
KB
18612003-10-13 Kevin Buettner <kevinb@redhat.com>
1862
1863 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1864 * gdbarch.h, gdbarch.c: Regenerate.
1865
6ce6d90f
MK
18662003-10-11 Mark Kettenis <kettenis@gnu.org>
1867
155c1d33
MK
1868 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1869 TDEP->sc_num_regs.
1870
8a96bc77
MK
1871 * i386fbsd-tdep.c: New file.
1872 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1873 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1874 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1875 i386bsd-tdep.c.
1876 (_initialize_i386fbsd_tdep): New function.
1877 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1878 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1879 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1880 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1881 TDEP->sc_num_regs.
1882 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1883 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1884 to initialize TDEP->sc_num_regs.
1885 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1886 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1887 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1888 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1889 FreeBSD ELF OS/ABI's here.
1890 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1891 (i386fbsd-tdep.o): New target.
1892 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1893 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1894
477f40d1
MK
1895 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1896 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1897 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1898 in initialization of TDEP->sc_num_regs.
1899
c6b33596
MK
1900 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1901 (x86_64_init_abi): Initialize regset_from_core_section if
1902 appropriate.
1903
8446b36a
MK
1904 * i386-tdep.c (i386_regset_from_core_section): New function.
1905 (i386_gdbarch_init): Initialize regset_from_core_section if
1906 appropriate.
1907 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1908
c783cbd6
MK
1909 * i386-tdep.h (struct regset): Declare opaque.
1910
6ce6d90f
MK
1911 * gdbarch.sh (regset_from_core_section): New method.
1912 (struct regset): Declare opaque.
1913 * gdbarch.c, gdbarch.h: Regenerated.
1914
b98ed7be
AM
19152003-10-11 Alan Modra <amodra@bigpond.net.au>
1916
1917 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1918 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1919 Correct test for pc within section.
1920
f6214256
MK
19212003-10-11 Mark Kettenis <kettenis@gnu.org>
1922
1923 * gdbarch.sh: Remove trailing whitepsace from comments.
1924
a8f4cde1
RM
19252003-10-08 Roland McGrath <roland@redhat.com>
1926
1927 * gcore.c (make_mem_sec): Function removed, folded into ...
1928 (gcore_create_callback): ... here. To omit a section, clear its
1929 SEC_LOAD bit rather than zeroing its size.
1930 Omit read-only sections only if they correspond to a known disk file.
1931 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1932
74276724
MS
19332003-10-10 Michael Snyder <msnyder@redhat.com>
1934
1935 * d10v-tdep.c: Fix typo in comment.
1936
e754ae69
AC
19372003-10-10 Andrew Cagney <cagney@redhat.com>
1938
1939 * rs6000-tdep.c (e500_store_return_value): Delete function.
1940 (e500_extract_return_value): Delete function.
1941 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1942 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1943 "ppc_sysv_abi_restore_return_value" where applicable.
1944 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1945 (ppc_sysv_abi_extract_return_value): Declare.
1946 (ppc_sysv_abi_broken_store_return_value): Declare.
1947 (ppc_sysv_abi_broken_extract_return_value): Declare.
1948 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1949 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1950 start of file.
1951 (do_ppc_sysv_return_value): New function.
1952 (ppc_sysv_abi_extract_return_value): New function.
1953 (ppc_sysv_abi_store_return_value): New function.
1954 (ppc_sysv_abi_broken_extract_return_value): New function.
1955 (ppc_sysv_abi_broken_store_return_value): New function.
1956 (ppc_sysv_abi_use_struct_convention): Call
1957 do_ppc_sysv_return_value.
1958
8d4ce20a
JB
19592003-10-10 J. Brobecker <brobecker@gnat.com>
1960
1961 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1962 to lookup the main function symbol.
1963
afce3d2a
CV
19642003-10-10 Corinna Vinschen <vinschen@redhat.com>
1965
1966 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1967 types correctly.
1968 (sh_push_dummy_call_fpu): Fix argument passing rules.
1969 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1970 float types.
1971 (sh3e_sh4_store_return_value): Ditto.
1972
7fe958be
EZ
19732003-10-10 Elena Zannoni <ezannoni@redhat.com>
1974
1975 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1976 comment.
1977
3f997a97
CV
19782003-10-10 Corinna Vinschen <vinschen@redhat.com>
1979
1980 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1981 more readable code. Accomodate passing of bitfields.
1982
8be9034a
AC
19832003-10-10 Andrew Cagney <cagney@redhat.com>
1984
1985 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1986 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1987 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1988 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1989 (ppc64_sysv_abi_push_dummy_call): New function.
1990 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1991 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1992 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1993
85a453d5
KI
19942003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1995
1996 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1997 * README: Ditto.
1998 * d10v-tdep.c: Ditto.
1999 * h8300-tdep.c: Ditto.
2000 * remote-e7000.c: Ditto.
2001 * remote-hms.c: Ditto.
2002 * ser-e7kpc.c: Ditto.
2003 * sh-stub.c: Ditto.
2004 * sh-tdep.c: Ditto.
2005 * sh-tdep.h: Ditto.
2006 * sh3-rom.c: Ditto.
2007 * sh64-tdep.c: Ditto.
2008 * top.c: Ditto.
2009 * wince.c: Ditto.
2010 * config/d10v/d10v.mt: Ditto.
2011 * config/sh/embed.mt: Ditto.
2012 * config/sh/linux.mt: Ditto.
2013 * config/sh/tm-linux.h: Ditto.
2014 * config/sh/tm-sh.h: Ditto.
2015 * config/sh/wince.mt: Ditto.
2016
221c12ff
AC
20172003-10-09 Andrew Cagney <cagney@redhat.com>
2018
2019 * ppc-tdep.h (struct type): Declare opaque.
2020 * x86-64-tdep.h (struct regcache): Declare opaque.
2021 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2022 coding style.
2023
ef5200c1
AC
20242003-10-09 Andrew Cagney <cagney@redhat.com>
2025
2026 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2027 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2028 (SOFTWARE_SINGLE_STEP_P): Ditto.
2029 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2030 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2031 (SOFTWARE_SINGLE_STEP_P): Ditto.
2032 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2033 software_single_step to rs6000_software_single_step.
a8f4cde1 2034
9644bbdd
AC
20352003-10-09 Andrew Cagney <cagney@redhat.com>
2036
2037 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2038
db72fa6b
MS
20392003-10-09 Michael Snyder <msnyder@redhat.com>
2040
f3efb16c
MS
2041 * frame.h: Fix typo in comment.
2042 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2043 * d10v-tdep.c: Random whitespace/comment tweaks.
2044
9a5cef92
EZ
20452003-10-09 Elena Zannoni <ezannoni@redhat.com>
2046
2047 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2048 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2049 on stack.
a8f4cde1 2050
9a5cef92
EZ
2051 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2052 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2053 in detail.
a8f4cde1 2054
0f317a0c
DJ
20552003-10-09 Daniel Jacobowitz <drow@mvista.com>
2056
2057 * remote-mips.c (mips_initialize): Remove unneeded call to
2058 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2059
bbab2f46
DJ
20602003-10-09 Daniel Jacobowitz <drow@mvista.com>
2061
2062 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2063 a memory pointer.
2064
550950b8
JJ
20652003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2066
2067 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2068 for any lwp we resume.
2069 (running_callback): Add lwps that have pending status events
2070 against them to be considered running.
2071
15c69bc7
KI
20722003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2073
2074 * m32r-tdep.c : Include "dis-asm.h".
2075 * Makefile.in (m32r-tdep.o): Update dependencies.
2076
51065942
JB
20772003-10-06 J. Brobecker <brobecker@gnat.com>
2078
2079 * completer.h (get_gdb_completer_word_break_characters): Delete.
2080 * completer.c: include language.h.
2081 (gdb_completer_word_break_characters): Delete.
2082 (get_gdb_completer_word_break_characters): Delete.
2083 (location_completer): Use the word break characters of the current
2084 language.
2085 (complete_line): Likewise.
2086 (line_completion_function): Likewise.
2087 (skip_quoted_chars): Likewise.
2088 * Makefile.in (completer.o): Add dependency on language.h.
2089 * top.c (init_main): Set the readline word break characters
2090 to GDB's default word break characters.
2091
6084f43a
JB
20922003-10-06 J. Brobecker <brobecker@gnat.com>
2093
2094 * language.h (language_defn): new field, la_word_break_characters.
2095 * language.c (unknown_language_defn): Set new field to
2096 default_word_break_characters.
2097 (auto_language_defn): Likewise.
2098 (local_language_defn): Likewise.
2099 * ada-lang.c (ada_language_defn): Likewise.
2100 * c-lang.c (c_language_defn): Likewise.
2101 (cplus_language_defn): Likewise.
2102 (asm_language_defn): Likewise.
2103 (minimal_language_defn): Likewise.
2104 * f-lang.c (f_language_defn): Likewise.
2105 * jv-lang.c (java_language_defn): Likewise.
2106 * m2-lang.c (m2_language_defn): Likewise.
2107 * objc-lang.c (objc_language_defn): Likewise.
2108 * p-lang.c (pascal_language_defn): Likewise.
2109 * scm-lang.c (scm_language_defn): Likewise.
2110
944fcfab
AC
21112003-10-06 Andrew Cagney <cagney@redhat.com>
2112
2113 * ppc-sysv-tdep.c: Re-indent.
2114
9f0a5303
JB
21152003-10-06 J. Brobecker <brobecker@gnat.com>
2116
2117 * language.h (default_word_break_characters): Add prototype.
2118 * language.c (default_word_break_characters): New function.
2119
7270b6ed
AS
21202003-10-06 Andreas Schwab <schwab@suse.de>
2121
2122 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2123 with %eax.
2124
a5d61f66
AC
21252003-10-06 Andrew Cagney <cagney@redhat.com>
2126
2127 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2128 "h8500-tdep.c".
2129 (z8k-tdep.o): Delete custom build rule.
2130
28a86f5c
AC
21312003-10-06 Andrew Cagney <cagney@redhat.com>
2132
1bfd8a83
AC
2133 * Makefile.in: Update all dependencies.
2134
17144ef8
AC
2135 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2136 No longer list PA as as obsolete candidate. List m32r as
2137 broken instead of obsolete.
a8f4cde1 2138
a5679ae5
AC
2139 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2140 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2141 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2142 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2143 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2144 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2145 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2146 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2147 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2148 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2149 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2150 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2151 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2152 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2153 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2154 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2155 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2156 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2157 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2158 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2159 * config/z8k/z8k.mt: Ditto.
2160
4a8269c0
AC
2161 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2162 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2163 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2164 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2165 sparclite were removed.
2166 * configure.host, configure.tgt: Remove corresponding tuples.
2167
41989fcd
AC
2168 * breakpoint.c, breakpoint.h: Remove obsolete code.
2169 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2170 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2171 * stabsread.h, xcoffread.c: Ditto.
2172
28a86f5c
AC
2173 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2174 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2175 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2176 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2177
4efdaa0d
DL
21782003-10-06 David Lecomber <dsl@sources.redhat.com>
2179
2180 * f-valprint.c: Reformatting
2181
ae53de43
MK
21822003-10-06 Mark Kettenis <kettenis@gnu.org>
2183
a8bb57e7
MK
2184 * x86-64-tdep.c: Remove duplicate comment.
2185
ae53de43
MK
2186 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2187 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2188 names for return values. This fixes a bug since we looked at %rbx
2189 instead of %rdx.
2190
473f17b0
MK
21912003-10-05 Mark Kettenis <kettenis@gnu.org>
2192
2c261fae
MK
2193 * x86-64-tdep.c: Include "regset.h".
2194
473f17b0
MK
2195 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2196 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2197 sizeof_fpregset.
2198 * i386-tdep.c: Include "regset.h".
2199 (i386_supply_gregset): New function.
2200 (i386_supply_fpregset): New function.
2201 (i386_gdbarch_init): Initialze register set-related members of
2202 TDEP.
2203 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2204 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2205
afd48b75
AC
22062003-10-03 Andrew Cagney <cagney@redhat.com>
2207
2208 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2209 set extract_return_value, store_return_value and
2210 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2211 ppc64_sysv_abi_store_return_value and
2212 ppc64_sysv_abi_use_struct_convention.
2213 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2214 (ppc64_sysv_abi_store_return_value): Declare.
2215 (ppc64_sysv_abi_use_struct_convention): Declare.
2216 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2217 (ppc64_sysv_abi_extract_return_value): New function.
2218 (ppc64_sysv_abi_store_return_value): New function.
2219 (ppc64_sysv_abi_use_struct_convention): New function.
2220 (ppc64_sysv_abi_return_value): New function.
2221
9b540880
AC
22222003-10-03 Andrew Cagney <cagney@redhat.com>
2223
2224 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2225 convert a descriptor to a function when it's in the ".opd"
2226 section.
2227
8748518b
CV
22282003-10-03 Corinna Vinschen <vinschen@redhat.com>
2229
2230 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2231 reg_size to keep GCC silent.
2232
0fd85043
CV
22332003-10-03 Corinna Vinschen <vinschen@redhat.com>
2234
2235 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2236 base for DW_EH_PE_textrel encodings.
2237 (read_encoded_value): Add a DW_EH_PE_textrel case.
2238 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2239 section.
2240
37b517aa
MK
22412003-10-03 Mark Kettenis <kettenis@gnu.org>
2242
2243 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2244
12c266ea
AC
22452003-10-02 Andrew Cagney <cagney@redhat.com>
2246
2247 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2248 REGISTER_RAW_SIZE.
2249 * gdbarch.h, gdbarch.c: Re-generate.
2250 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2251 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2252 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2253 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2254 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2255 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2256 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2257 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2258 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2259 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2260 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2261 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2262 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2263 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2264 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2265 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2266
78ba4af6
JB
22672003-10-02 Jim Blandy <jimb@redhat.com>
2268
2269 * dwarf2read.c (struct die_info): Doc fix.
2270
617daa0e
CV
22712003-10-02 Corinna Vinschen <vinschen@redhat.com>
2272
2273 * sh-tdep.c: Running thru gdb_indent.sh.
2274
e5e33cd9
CV
22752003-10-02 Corinna Vinschen <vinschen@redhat.com>
2276
2277 * sh-tdep.c (sh_justify_value_in_reg): New function.
2278 (sh_stack_allocsize): Ditto.
2279 (flt_argreg_array): New array used for floating point argument
2280 passing.
2281 (sh_init_flt_argreg): New function.
a8f4cde1 2282 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2283 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2284 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2285 Fix argument passing strategy.
2286 (sh_push_dummy_call_nofpu): Ditto.
2287
5fe830e4
AC
22882003-10-01 Andrew Cagney <cagney@redhat.com>
2289
2290 * value.h (register_value_being_returned): Declare. Replace
2291 "value_being_returned".
2292 * infcall.c (call_function_by_hand): Use
2293 register_value_being_returned.
2294 * infcmd.c (print_return_value): Call
2295 "register_value_being_returned", handle struct return locally.
2296 * values.c (register_value_being_returned): New function. Replace
2297 "value_being_returned".
a8f4cde1 2298
5fe830e4 22992003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2300
2301 * linux-proc.c (linux_do_registers): New function.
2302 (linux_make_note_section): Use linux_do_registers in case of
2303 single threaded inferior programs.
2304
64f395bf
AC
23052003-10-01 Andrew Cagney <cagney@redhat.com>
2306
2307 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2308 use STRUCT_ADDR. When not using "struct return convention", pass
2309 "0" to "value_being_returned". Add FIXMEs.
2310 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2311 value_being_returned. Add comments.
2312 * values.c (value_being_returned): Add fixme.
2313 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2314 (hppa_value_returned_from_stack): Add FIXME.
2315
639d11d3
DC
23162003-09-30 David Carlton <carlton@kealia.com>
2317
2318 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2319 'has_children' and 'next' by 'child' and 'sibling'.
2320 (read_comp_unit): Rework algorithm, breaking body into
2321 read_die_and_children and read_die_and_siblings.
2322 (read_die_and_children, read_die_and_siblings): New.
2323 (read_full_die): Add 'has_children' argument; set it instead of
2324 the die's 'has_children' field. Minor formatting cleanup.
2325 (free_die_list): Use die->child and die->sibling instead of
2326 die->next.
2327 (dump_die_list): Ditto.
2328 (sibling_die): Use die->sibling.
2329 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2330 'has_children' and 'next' fields.
a8f4cde1
RM
2331 (process_die, read_file_scope, read_func_scope)
2332 (read_lexical_block_scope, read_structure_scope)
2333 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2334 (read_namespace, read_subroutine_type, dump_die): Ditto.
2335
5bffac25
AC
23362003-09-30 Andrew Cagney <cagney@redhat.com>
2337
2338 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2339 to 224, not 220.
2340
f30992d4
AC
23412003-09-30 Andrew Cagney <cagney@redhat.com>
2342
2343 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2344 REGISTER_VIRTUAL_SIZE.
2345 * gdbarch.h, gdbarch.c: Regenerate.
2346 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2347 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2348 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2349
2e092625
AC
23502003-09-29 Andrew Cagney <cagney@redhat.com>
2351
2352 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2353 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2354 * gdbarch.h, gdbarch.c: Regenerate.
2355 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2356 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2357
2358 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2359 * remote-vxmips.c (vx_read_register): Ditto.
2360 * remote-vx68.c (vx_read_register): Ditto.
2361 * gnu-nat.c (inf_validate_procs): Ditto.
2362
7a5dd6ee
JB
23632003-09-29 J. Brobecker <brobecker@gnat.com>
2364
2365 * infcall.c (call_function_by_hand): Fix build failure
2366 introduced in the previous change to this file.
2367
1fe43d45
AC
23682003-09-29 Andrew Cagney <cagney@redhat.com>
2369
2370 * NEWS: Mention Objective-C.
2371
e28a332c
JG
23722003-09-29 Jerome Guitton <guitton@act-europe.fr>
2373
2374 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2375 test if the register has been saved on the stack.
2376 (arm_scan_prologue_cache): When analysing the instruction
2377 "str lr, [sp, #-4]", save the address where lr has been stored.
2378
9ff63c35
AC
23792003-09-28 Andrew Cagney <cagney@redhat.com>
2380
7f5f525d
AC
2381 * frame.c (frame_read_unsigned_register): Delete function.
2382 * frame.h (frame_read_unsigned_register): Delete declaration.
2383 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2384 get_frame_register_unsigned.
2385 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2386 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2387 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2388
7f5f525d
AC
2389 * frame.h (frame_read_register): Delete declaration.
2390 * frame.c (frame_read_register): Delete function.
2391 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2392 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2393 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2394 * mips-tdep.c (mips_register_to_value): Ditto.
2395 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2396 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2397
2398 * frame.c (frame_read_signed_register): Delete function.
2399 (frame_read_unsigned_register): Update comments.
2400 * frame.h (frame_read_signed_register): Delete declaration.
2401 * h8300-tdep.c (h8300_print_register): Use
2402 get_frame_register_signed.
2403 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2404
9ff63c35
AC
2405 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2406 Rename VALUE_RETURNED_FROM_STACK.
2407 * infcmd.c (print_return_value): Update.
2408 * infcall.c (call_function_by_hand): Update.
2409
41d041d6
MK
24102003-09-28 Mark Kettenis <kettenis@gnu.org>
2411
2412 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2413 regcache argument and reverse the order of the other two
2414 arguments. Remove local regcache variable. Determine
2415 architecture from REGCACHE. Update comments.
2416 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2417 reverse the order of the other two arguments. Remove local
2418 regcache variable. Determine architecture from REGCACHE. Update
2419 comments.
2420 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2421 prototypes. Update comments.
2422 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2423 comment.
2424 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2425 Update.
2426 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2427 * i386-interix-nat.c (supply_fpregset): Update.
2428 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2429 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2430 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2431 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2432 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2433 Update.
2434 * i386obsd-tdep.c (fetch_core_registers): Update.
2435 * i386v4-nat.c (supply_fpregset): Update.
2436 * x86-64-linux-nat.c (supply_fpregset): Update.
2437 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2438
1cb97e17
MK
24392003-09-27 Mark Kettenis <kettenis@gnu.org>
2440
5716833c
MK
2441 * i386-tdep.h: Put opaque declarations in alphabetical
2442 order. Remove spurious whitespace.
2443 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2444 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2445 * i386-tdep.c (MM0_REGNUM): Remove define.
2446 (i386_mmx_regnum_p): Add gdbarch argument.
2447 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2448 Rewrite using new macro definitions for FPU/SSE registers.
2449 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2450 definitions from i387-tdep.h.
2451 (i386_register_name): Update.
2452 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2453 new macro definitions for FPU/SSE registers.
2454 (i386_extract_return_value): Determine whether floating-point
2455 registers are present by examining REGCACHE's architecture.
2456 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2457 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2458 FPU/SSE registers.
2459 (i386_register_type): Update.
2460 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2461 definitions for FPU registers. Use REGCACHE's architecture to
2462 determine the appropriate register numbers.
2463 (i386_pseudo_register_read, i386_pseudo_register_write,
2464 i386_register_reggroup_p): Update.
2465 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2466 TDEP->mm0_regnum.
2467 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2468 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2469 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2470 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2471 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2472 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2473 *' to `void *'.
2474 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2475 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2476 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2477 definitions for FPU/SSE registers.
2478 (FXSAVE_MXCSR_ADDR): New define.
2479 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2480 TDEP->mm0_regnum.
2481 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2482 (I387_ST0_REGNUM): Define.
2483
41d35cb0
MK
2484 * regcache.h (get_regcache_arch): New prototype.
2485 * regcache.c (get_regcache_arch): New function.
2486
54e74f72
MK
2487 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2488 whitespace.
2489
1cb97e17
MK
2490 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2491 Initialize using ARRAY_SIZE.
2492
0968aa8c
AC
24932003-09-27 Andrew Cagney <cagney@redhat.com>
2494
2495 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2496 "init_frame_pc_default".
2497 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2499 * vax-tdep.c (vax_gdbarch_init): Update.
2500 * v850-tdep.c (v850_gdbarch_init): Update.
2501 * sh64-tdep.c (sh64_gdbarch_init): Update.
2502 * s390-tdep.c (s390_gdbarch_init): Update.
2503 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2504 * mcore-tdep.c (mcore_gdbarch_init): Update.
2505 * h8300-tdep.c (h8300_gdbarch_init): Update.
2506 * cris-tdep.c (cris_gdbarch_init): Update.
2507 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2508
54c84734
MK
25092003-09-26 Mark Kettenis <kettenis@gnu.org>
2510
2511 * regset.h: New file.
2512 * Makefile.in (regset_h): Add.
2513
1b1d3794
AC
25142003-09-25 Andrew Cagney <cagney@redhat.com>
2515
2516 * frame.h (deprecated_frame_saved_regs): Rename
2517 get_frame_saved_regs.
2518 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2519 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2520 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2521 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2522 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2523
e6beb428
AC
25242003-09-25 Andrew Cagney <cagney@redhat.com>
2525
2526 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2527 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2528 and Java.
2529 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2530 arm*-*-* do not use the new frame code.
2531
710122da
DC
25322003-09-25 David Carlton <carlton@kealia.com>
2533
2534 * c-exp.y: Remove 'register' declarations.
2535 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2536
79c2c32d
DC
25372003-09-25 David Carlton <carlton@kealia.com>
2538
2539 * c-exp.y: Include cp-support.h. Add qualified_type.
2540 (yylex): Delete nested type hack; add comments.
2541 * cp-namespace.c (cp_lookup_nested_type): New function.
2542 * cp-support.h: Declare cp_lookup_nested_type.
2543 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2544 instead of value_struct_elt_for_reference.
2545 * valops.c: Include cp-support.h.
2546 (value_aggregate_elt): New function.
2547 (value_namespace_elt): Ditto.
2548 (value_struct_elt_for_reference): Make static.
2549 * value.h: Delete declaration of value_struct_elt_for_reference;
2550 add declaration for value_aggregate_elt.
2551 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2552 (valops.o): Ditto.
2553
898c62f5
DJ
25542003-09-25 Daniel Jacobowitz <drow@mvista.com>
2555
2556 * stack.c: Include "reggroups.h".
2557 (frame_info): Only display registers in all_reggroup.
2558 * Makefile.in (stack.o): Update dependencies.
2559
28cd8767
JG
25602003-09-25 Jerome Guitton <guitton@act-europe.fr>
2561
2562 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2563 "add ip, sp #n" in the prologue.
2564 (arm_scan_prologue): Ditto.
2565
a4ab2b5d
JG
25662003-09-25 Jerome Guitton <guitton@act-europe.fr>
2567
2568 * MAINTAINERS (write after approval): Add myself.
2569
3f244638
AS
25702003-09-25 Andreas Schwab <schwab@suse.de>
2571
2572 * m68k-tdep.c: Include "dwarf2-frame.h".
2573 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2574 * Makefile.in (m68k-tdep.o): Update dependencies.
2575
1c0159e0
CV
25762003-09-25 Corinna Vinschen <vinschen@redhat.com>
2577
2578 * sh-tdep.c (struct frame_extra_info): Remove.
2579 (struct sh_frame_cache): New structure.
2580 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2581 (GET_TARGET_REG): Ditto but target register.
2582 (GET_PUSHED_REG): Remove.
2583 (IS_MOV_ARG_TO_REG): New macro.
2584 (IS_MOV_ARG_TO_IND_R14): New macro.
2585 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2586 (IS_MOVW_PCREL_TO_REG): New macro.
2587 (IS_MOVL_PCREL_TO_REG): New macro.
2588 (IS_SUB_REG_FROM_SP): New macro.
2589 (IS_ARG_MOV): Remove.
2590 (IS_MOV_TO_R14): Remove.
2591 (IS_RESTORE_FP): New macro.
2592 (IS_RTS): New macro.
2593 (IS_LDS): New macro.
2594 (IS_MOV_FP_SP): New macro.
2595 (IS_ADD_REG_TO_FP): New macro.
2596 (IS_ADD_IMM_FP): New macro.
2597 (sh_skip_prologue_hard_way): Remove.
2598 (sh_saved_pc_after_call): Remove.
2599 (sh_frame_chain): Remove.
2600 (sh_find_callers_reg): Remove.
a8f4cde1 2601 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2602 (sh_fp_frame_init_saved_regs): Remove.
2603 (sh_init_extra_frame_info): Remove.
2604 (sh_analyze_prologue): New function.
2605 (sh_skip_prologue): Remove deprecated code. Rely on new function
2606 sh_analyze_prologue when after_prologue fails.
2607 (sh_frame_saved_pc): Remove.
2608 (sh_alloc_frame_cache): New function.
2609 (sh_frame_cache): Ditto.
2610 (sh_frame_prev_register): Ditto.
2611 (sh_frame_this_id): Ditto.
2612 (sh_frame_unwind): New structure defining the heuristic frame
2613 sniffer interface.
2614 (sh_frame_sniffer): New function.
2615 (sh_unwind_sp): Ditto.
2616 (sh_unwind_pc): Ditto.
2617 (sh_unwind_dummy_id): Ditto.
2618 (sh_frame_base_address): Ditto.
2619 (sh_frame_base): New structure defining new frame base code.
2620 (sh_in_function_epilogue_p): New function.
2621 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2622 code and to call all new code instead. Initialize dwarf2 and
2623 heuristic frame sniffer.
2624
5f9769d1
PH
26252003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2626
a8f4cde1
RM
2627 * parser-defs.h (struct exp_descriptor): New definition, containing
2628 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2629 evaluating expressions.
2630 (exp_descriptor_standard): Declare new variable.
2631 (print_subexp): Make global and declare here (from expprint.c).
2632 (dump_subexp): Ditto.
2633 (dump_subexp_body_standard): Declare.
2634 (operator_length_standard): Declare.
2635 (op_name_standard): Declare.
2636 (print_subexp): Declare.
2637 (print_subexp_standard): Declare.
2638
2639 * language.h (struct language_defn): Add la_exp_desc field to hold
2640 pointer to table for language-specific operators.
2641 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2642
2643 * parse.c (operator_length): Move most code to new
5f9769d1 2644 operator_length_standard function. Use language-specific information.
a8f4cde1 2645 (operator_length_standard): New function taking most code from
5f9769d1
PH
2646 operator_length.
2647 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2648
2649 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2650 and OP_EXTENDED_LAST.
a8f4cde1
RM
2651
2652 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2653 Make global; remove static declaration.
2654 Move most code to print_subexp_standard.
a8f4cde1 2655 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2656 print_subexp.
2657 (op_name): Add expression to argument signature.
a8f4cde1 2658 Use langauge-specific op_name.
5f9769d1
PH
2659 Move most code to op_name_standard.
2660 (op_name_standard): New function, containing code formerly in op_name.
2661 (dump_subexp): Use new version of op_name function.
2662 Use language-specific dump_subexp_body, and move most existing code to
2663 dump_subexp_body_standard.
2664 (dump_raw_expression): Use new op_name interface.
2665 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2666 (dump_subexp_body_standard): New function, containing code formerly
2667 in dump_subexp_body.
a8f4cde1 2668
5f9769d1
PH
2669 * language.c (unknown_language): Add default la_exp_desc field and
2670 remove evaluate_exp field.
2671 (auto_language): Ditto.
2672 (local_language): Ditto.
2673 * f-lang.c (f_language_defn): Ditto.
2674 * c-lang.c (c_language_defn): Ditto.
2675 (cplus_language_defn): Ditto.
2676 (asm_language_defn): Ditto.
2677 (minimal_language_defn): Ditto.
2678 * p-lang.c (pascal_language_defn): Ditto.
2679 * m2-lang.c (m2_language_defn): Ditto.
2680 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2681
2682 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2683 Java-specific expression evaluator.
2684 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2685 field.
a8f4cde1 2686 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2687 Scheme-specific expression evaluator.
2688 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2689 field.
2690 * objc-lang.c (print_object_command): Take evaluate_exp from the
2691 la_exp_desc field.
a8f4cde1 2692
5f9769d1 2693 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2694
2695 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2696 la_exp_desc's type.
2697 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2698
24daaebc
PH
26992003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2700
2701 * parser-defs.h (operator_length): Declare.
a8f4cde1 2702
24daaebc
PH
2703 * parse.c (length_of_subexp): Use operator_length to get operator
2704 lengths and arities for operators.
2705 Move most code to new operator_length function.
a8f4cde1 2706 (operator_length): New function absorbing most code from
24daaebc
PH
2707 length_of_subexp.
2708 (prefixify_subexp): Remove large case and use operator_length instead.
2709 (parse_exp_1): Use renamings:
a8f4cde1 2710 dump_prefix_expression => dump_raw_expression and
24daaebc 2711 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2712
24daaebc
PH
2713 * expression.h (dump_prefix_expression): Rename to ...
2714 (dump_raw_expression): New name.
2715 (dump_postfix_expression): Rename to ...
2716 (dump_prefix_expression): New name.
a8f4cde1 2717
24daaebc
PH
2718 * expprint.c (dump_subexp): Make global. Add comment.
2719 Move most existing code to dump_subexp_body.
2720 (dump_subexp_body): New function.
2721 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2722 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2723 work before the expression is prefixified.
2724 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2725 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2726 that's what it does.
a8f4cde1 2727 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2728 prefixified expression.
2729 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2730
8c2957c4
JB
27312003-09-22 Jim Blandy <jimb@redhat.com>
2732
2733 * dwarf2read.c (read_array_type): When building the type for an
2734 array of unspecified length, make sure to choose the upper bound
2735 so that the array's total length comes out to be zero --- that's
2736 how we represent such arrays.
2737
592e3010
MC
27382003-09-22 Michael Chastain <mec@shout.net>
2739
2740 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2741
365c70b1
JJ
27422003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2743
2744 * top.c (quit_force): Fix indirect call to quit_target so
2745 a struct qt_args pointer is passed.
2746
5d6eb653
AC
27472003-09-22 Andrew Cagney <cagney@redhat.com>
2748
2749 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2750 * arch-utils.c (init_frame_pc_noop): Delete function.
2751 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2752 "init_frame_pc".
2753 * mips-tdep.c (mips_gdbarch_init): Ditto.
2754 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2755 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2756 declaration.
2757 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2758 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2759 declaration.
2760 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2761
b222a67f
AG
27622003-09-22 Anthony Green <green@redhat.com>
2763
2764 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2765 declaration.
2766
d5b5ac79
AC
27672003-09-20 Andrew Cagney <cagney@redhat.com>
2768
deafb061
AC
2769 * breakpoint.c: Eliminate ARGSUSED.
2770 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2771 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2772 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2773 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2774 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2775 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2776 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2777 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2778 * wince.c, remote-vx.c: Ditto.
2779
d5b5ac79
AC
2780 * cli/cli-script.c: Remove "register" attributes.
2781 * config/pa/tm-hppa.h: Ditto.
2782 * cli/cli-decode.c: Ditto.
2783 * cli/cli-cmds.c: Ditto.
2784
c6316faa
AC
27852003-09-19 Andrew Cagney <cagney@redhat.com>
2786
2787 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2788 DEPRECATED_NPC_REGNUM.
2789 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2790
f4f99b11
CF
27912003-09-19 Christopher Faylor <cgf@redhat.com>
2792
2793 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2794
1708f284
JB
27952003-09-19 Jim Blandy <jimb@redhat.com>
2796
2797 * macrotab.c (macro_include): Use the correct comparison to find
2798 the appropriate place for this inclusion in the list.
2799
b9fbf434
AC
28002003-09-19 Andrew Cagney <cagney@redhat.com>
2801
2802 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2803 (DEPRECATED_HPUX_TEXT_END): Define.
2804 (deprecated_hpux_text_end): Declare.
2805 (struct target_ops): Declare opaque.
2806 * hppah-nat.c (text_end): Make static.
2807 (deprecated_hpux_text_end): New function.
2808 * exec.c (text_end): Delete global variable.
2809 (NEED_TEXT_START_END): Do not define.
2810 (exec_file_attach): Replace code computing "text_end" code with
2811 call to DEPRECATED_HPUX_TEXT_END.
2812
5b03f266
AC
28132003-09-19 Andrew Cagney <cagney@redhat.com>
2814
2815 * utils.c (align_up, align_down): New functions.
2816 * defs.h (align_up, align_down): Declare.
2817 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2818 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2819 and "align_down".
2820 (round_up, round_down): Delete functions.
2821 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2822 "align_down".
2823 (ROUND_DOWN, ROUND_UP): Delete macros.
2824 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2825 * h8300-tdep.c: Replace "round_up" and "round_down" with
2826 "align_up" and "align_down".
2827 (round_up, round_down): Delete macros.
2828 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2829 "align_down".
2830 (ROUND_UP, ROUND_DOWN): Delete macros.
2831
51db5742
JB
28322003-09-18 J. Brobecker <brobecker@gnat.com>
2833
2834 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2835 hard-coded constant. Use the proper machine name instead.
2836
77949794
AC
28372003-09-17 Andrew Cagney <cagney@redhat.com>
2838
2839 * sparc-tdep.c (legacy_register_name): Delete function.
2840 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2841 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2842 * infcmd.c (gdb_register_name): Delete variable.
2843 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2844 REGISTER_NAME and "tm.h".
2845 * gdbarch.h, gdbarch.c: Regenerate.
2846 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2847 REGISTER_NAMES in comments.
2848 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2849 * m68klinux-nat.c (regmap): Ditto.
2850
b55c33cc
JB
28512003-09-17 Jim Blandy <jimb@redhat.com>
2852
2853 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2854
957e27ac
AC
28552003-09-17 Andrew Cagney <cagney@redhat.com>
2856
2857 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2858 (ppcnbsd_init_abi): Set "use_struct_convention" to
2859 "ppcnbsd_use_struct_convention".
2860
192cb3d4
MK
28612003-09-17 Mark Kettenis <kettenis@gnu.org>
2862
2863 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2864 * gdbarch.h, gdbarch.c: Regenerate.
2865 (stabs_argument_has_addr): New architecture method.
2866 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2867 * arch-utils.c: Include "buildsym.h".
2868 (default_stabs_argument_has_addr): New function.
2869 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2870 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2871
efe59759
AC
28722003-09-17 Andrew Cagney <cagney@redhat.com>
2873
2874 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2875 * gdbarch.h, gdbarch.c: Regenerate.
2876 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2877 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2878 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2879 * sparcnbsd-tdep.c: Update.
a8f4cde1 2880
62700349
AC
28812003-09-17 Andrew Cagney <cagney@redhat.com>
2882
2883 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2884 * gdbarch.h, gdbarch.c: Regenerate.
2885 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2886 * d10v-tdep.c, frame.c: Update.
2887 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2888 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2889 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2890 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2891 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2892 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2893 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2894 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2895 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2896 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2897 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2898 * config/pa/nm-hppah.h: Update.
2899
b9ff3018
AC
29002003-09-16 Andrew Cagney <cagney@redhat.com>
2901
2902 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2903 "use_struct_convention" to "ppc_linux_use_struct_convention".
2904 (ppc_linux_use_struct_convention): New function.
2905 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2906 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2907 "rs6000_use_struct_convention".
2908 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2909 declaration.
2910 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2911 Delete function.
2912
aa1ee363
AC
29132003-09-16 Andrew Cagney <cagney@redhat.com>
2914
2915 * buildsym.c: Remove more occurances of "register".
2916 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2917 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2918 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2919 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2920 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2921 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2922 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2923 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2924
f2ea0907
CV
29252003-09-16 Corinna Vinschen <vinschen@redhat.com>
2926
2927 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2928 numbers to enumeration values.
2929 * sh-tdep.c: Accomodate above change.
2930 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2931 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2932 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2933 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2934 (IS_FPUSH): Rename from IS_FMOV.
2935 (sh_extract_struct_value_address): Remove useless comment.
2936 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2937 instead of own local values.
2938 (sh_dump_tdep): Remove.
2939 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2940 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2941
1c704f11
AC
29422003-09-15 Andrew Cagney <cagney@redhat.com>
2943
2944 * doublest.c (convert_floatformat_to_doublest): No longer need to
2945 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2946
ac79b88b
DJ
29472003-09-15 Daniel Jacobowitz <drow@mvista.com>
2948
2949 * values.c (unpack_double): Call floatformat_is_valid.
2950
1c671366
MK
29512003-09-15 Mark Kettenis <kettenis@gnu.org>
2952
de5227fb
MK
2953 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2954 ps_strings into a long.
2955
1c671366
MK
2956 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2957 _initialize_am64fbsd_nat.
2958
a604369a
KB
29592003-09-15 Kevin Buettner <kevinb@redhat.com>
2960
2961 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2962 associated with DW_AT_ranges attribute is out of bounds.
2963
b3cacbee
DL
29642003-09-15 David Lecomber <dsl@sources.redhat.com>
2965
2966 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2967
d0f37bb2
MC
29682003-09-14 Michael Chastain <mec@shout.net>
2969
2970 * config/m68k/nm-apollo68v.h: Delete.
2971 * config/m68k/xm-apollo68v.h: Delete.
2972
69517000
AC
29732003-09-14 Andrew Cagney <cagney@redhat.com>
2974
2975 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2976 * dcache.c: Update copyrights and descriptions.
2977 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2978
ef8b349d
AC
29792003-09-14 Andrew Cagney <cagney@redhat.com>
2980
2981 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2982 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2983
52f0bd74
AC
29842003-09-14 Andrew Cagney <cagney@redhat.com>
2985
2986 * alpha-nat.c: Remove some occurances of "register".
2987 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2988 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2989 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2990 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2991 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2992 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2993 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2994 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2995 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2996 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2997 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2998 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2999 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3000 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3001 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3002 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3003 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3004 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3005 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3006 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3007 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3008 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3009
4a4b3fed
AC
30102003-09-13 Andrew Cagney <cagney@redhat.com>
3011
3012 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3013 * ppc-tdep.h (struct regcache): Declare opaque.
3014 * objfiles.h (struct objfile_data): Declare opaque.
3015 * cp-support.h (struct objfile): Declare opaque.
3016 * linux-nat.h (target_waitstatus): Declare opaque.
3017
2110b94f
MK
30182003-09-14 Mark Kettenis <kettenis@gnu.org>
3019
1c671366
MK
3020 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3021 (stabs_argument_has_addr): New architecture method.
3022 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3023 * arch-utils.c: Include "buildsym.h".
3024 (default_stabs_argument_has_addr): New function.
3025 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3026 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3027
2110b94f
MK
3028 * cris-tdep.c (cris_gdbarch_init): Set
3029 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3030 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3031 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3032 * mips-tdep.c (mips_gdbarch_init): Likewise.
3033 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3034 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3035
48436ce6
AC
30362003-09-13 Andrew Cagney <cagney@redhat.com>
3037
3038 * values.c (using_struct_return): Delete "function" and "funcaddr"
3039 parameters.
3040 * value.h (using_struct_return): Update declaration.
3041 * infcmd.c (finish_command_continuation): Update.
3042 (finish_command): Update.
3043 * infcall.c (call_function_by_hand): Update.
3044 * eval.c (evaluate_subexp_standard): Update.
3045
403d9909
CF
30462003-09-13 Christopher Faylor <cgf@redhat.com>
3047
3048 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3049 SSE registers since gdb will not operate correctly without this.
3050 Restore include file ordering munged in previous change.
3051 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3052
ebf7d56b
MK
30532003-09-13 Mark Kettenis <kettenis@gnu.org>
3054
8e823e25
MK
3055 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3056 REG_STRUCT_HAS_ADDR.
3057 * gdbarch.c, gdbarch.h: Updated.
3058 * infcall.c (call_function_by_hand): Update.
3059 * stabsread.c (define_symbol): Updated.
a8f4cde1 3060
ebf7d56b
MK
3061 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3062
d3f13f72
CF
30632003-09-12 Christopher Faylor <cgf@redhat.com>
3064
3065 * win32-nat.c: Reorganize so that defines used by target headers are
3066 actually defined by the system headers.
3067 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3068 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3069
14f75137
JB
30702003-09-12 Jim Blandy <jimb@redhat.com>
3071
d646061f
JB
3072 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3073 the file has no .data, .bss, or .rodata sections. Instead wait
3074 until we see a variable alleged to live in one of those sections.
3075
2a13f9bc
JB
3076 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3077 .bss section, presume that any variables we find live in the
3078 .rodata section.
3079
4f49b26b
JB
3080 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3081 offsets for global and static variables.
3082
14f75137
JB
3083 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3084 symbol types are, by definition, in the .data section, so it is
3085 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3086 If there is no .data section, there should be no N_DATA or N_DATA
3087 | N_EXT symbols.
3088
212c460c
MK
30892003-09-12 Mark Kettenis <kettenis@gnu.org>
3090
3091 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3092 (amd64fbsd_sigcontext_addr): Rewrite.
3093 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3094 with correct values.
3095 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3096 (amd64fbsd_init_abi): Fix typo.
3097
68856ea3
AC
30982003-09-12 Andrew Cagney <cagney@redhat.com>
3099
3100 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3101 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3102
627b3ba2
AC
31032003-09-12 Andrew Cagney <cagney@redhat.com>
3104
3105 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3106 "entry_file_highpc". Update comments.
3107 * defs.h (deprecated_inside_entry_file): Rename
3108 "inside_entry_file".
3109 * blockframe.c (deprecated_inside_entry_file): Rename
3110 "inside_entry_file".
3111 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3112 * vax-tdep.c (vax_frame_chain): Update.
3113 * sh64-tdep.c (sh64_frame_chain): Update.
3114 * sh-tdep.c (sh_frame_chain): Update.
3115 * rs6000-tdep.c (rs6000_frame_chain): Update.
3116 * ns32k-tdep.c (ns32k_frame_chain): Update.
3117 * mips-tdep.c (mips_frame_chain): Update.
3118 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3119 * m32r-tdep.c (m32r_frame_this_id): Update.
3120 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3121 * frv-tdep.c (frv_frame_this_id): Update.
3122 * d10v-tdep.c (d10v_frame_this_id): Update.
3123 * cris-tdep.c (cris_frame_chain): Update.
3124 * blockframe.c (legacy_frame_chain_valid): Update.
3125 * avr-tdep.c (avr_frame_this_id): Update.
3126 * arm-tdep.c (arm_prologue_this_id): Update.
3127 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3128 * objfiles.c (objfile_relocate): Update.
3129 * mipsread.c (mipscoff_symfile_read): Update.
3130 (mipscoff_symfile_read): Update.
3131 * mdebugread.c (parse_partial_symbols): Update.
3132 * dwarfread.c (read_file_scope): Update.
3133 * dwarf2read.c (read_file_scope): Update.
3134 * dbxread.c (read_dbx_symtab): Update.
3135 (read_dbx_symtab): Update.
3136 * coffread.c (complete_symtab): Update.
3137
b0abbc58
JJ
31382003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3139
3140 * top.c (quit_target): New static helper function.
3141 (quit_force): Moved code to quit_target(). Call quit_target()
3142 via catch_errors() to catch errors during quit.
3143
a1632d59
DC
31442003-09-11 David Carlton <carlton@kealia.com>
3145
3146 * buildsym.c (finish_block): Use allocate_block to allocate the
3147 block.
3148 * mdebugread.c (new_block): Add FIXME.
3149
5c4e30ca
DC
31502003-09-11 David Carlton <carlton@kealia.com>
3151
3152 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3153 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3154 (recursive_dump_type): Ditto.
3155 * printcmd.c (print_formatted): Ditto.
3156 * typeprint.c (print_type_scalar): Ditto.
3157 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3158 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3159 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3160 maint_cplus_cmd_list.
3161 * cp-support.c: Make maint_cplus_cmd_list extern.
3162 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3163 command.h.
3164 (lookup_symbol_file): Look in possible namespace blocks when
3165 appropriate.
3166 (initialize_namespace_symtab): New.
3167 (get_possible_namespace_block, free_namespace_block)
3168 (check_possible_namespace_symbols)
3169 (check_possible_namespace_symbols_loop)
3170 (check_one_possible_namespace_symbol)
3171 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3172 (_initialize_cp_namespace): Ditto.
3173 * block.h: Declare allocate_block.
3174 * block.c (allocate_block): New.
3175 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3176 allocate_block.
3177 * symfile.h: Update declaration of add_psymbol_to_list.
3178 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3179 question.
3180 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3181 scan_partial_symbols_call.
3182 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3183 helper functions.
3184 (add_partial_symbol): If necessary, scan mangled names for names
3185 of namespaces.
3186 (add_partial_namespace): Add NAMESPACE argument; generate partial
3187 symbols associated to namespaces.
3188 (add_partial_enumeration): Add NAMESPACE argument.
3189 (new_symbol): Allow namespace syms.
3190 (read_namespace): Generate namespace syms.
3191 * objfiles.h: Add opaque declaration of struct symtab.
3192 (struct objfile): Add cp_namespace_symtab member.
3193 * objfiles.c (allocate_objfile): Set
3194 objfile->cp_namespace_symtab.
3195 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3196 dictionary_h, command_h.
3197
33a7c2fc
AC
31982003-09-11 Andrew Cagney <cagney@redhat.com>
3199
3200 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3201 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3202 near the function's end.
3203 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3204 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3205 regcache_raw_write_signed to set SP_REGNUM.
3206
63cd24fe
EZ
32072003-09-11 Elena Zannoni <ezannoni@redhat.com>
3208
3209 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3210 orig_addrs is set up properly.
3211
f27dd7fd
AC
32122003-09-11 Andrew Cagney <cagney@redhat.com>
3213
3214 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3215 * gdbarch.h, gdbarch.c: Re-generate.
3216 * infcall.c (call_function_by_hand): Update.
3217 * hppa-tdep.c (hppa_push_arguments): Update.
3218 * ada-lang.c (place_on_stack): Update.
3219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3220 * sparc-tdep.c (sparc_gdbarch_init): Update.
3221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3222 * hppa-tdep.c (hppa_gdbarch_init): Update.
3223 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3224 stack_align.
3225
f630a401
DJ
32262003-09-11 Daniel Jacobowitz <drow@mvista.com>
3227
3228 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3229 register do need a frame.
3230
0ddabb4c
AC
32312003-09-11 Andrew Cagney <cagney@redhat.com>
3232
3233 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3234 buildable since GDB 5.0.
3235 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3236 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3237 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3238 * irix4-nat.c: Delete file.
3239 * config/mips/irix4.mh: Delete file.
3240 * config/mips/irix3.mh: Delete file.
3241 * config/mips/irix3.mt: Delete file.
3242 * config/mips/tm-irix3.h: Delete file.
3243 * config/mips/nm-irix3.h: Delete file.
3244 * config/mips/xm-irix3.h: Delete file.
3245 * config/mips/nm-irix4.h: Delete file.
3246 * config/mips/xm-irix4.h: Delete file.
3247 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3248
fde2cceb
JB
32492003-09-10 J. Brobecker <brobecker@gnat.com>
3250
3251 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3252 * Makefile.in (hppa-tdep.o): Update dependencies.
3253
66f667f5
JW
32542003-09-10 James E Wilson <wilson@specifixinc.com>
3255
ef5fd69f
JW
3256 * MAINTAINERS: Change my e-mail address. Move to paper trail
3257 section.
66f667f5 3258
53e8aaea
KB
32592003-09-10 Kevin Buettner <kevinb@redhat.com>
3260
3261 * MAINTAINERS (frv): New ISA entry.
3262
dcc6aaff
KB
32632003-09-10 Kevin Buettner <kevinb@redhat.com>
3264
3265 * frv-tdep.c (dis-asm.h): Include.
3266 * Makefile.in (frv-tdep.o): Update dependencies.
3267
932644f0
JJ
32682003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3269
3270 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3271 Fix typo for high range of floating registers.
3272
91c24f0a
DC
32732003-09-09 David Carlton <carlton@kealia.com>
3274
3275 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3276 highpc initialization here out of scan_partial_symbols.
3277 (scan_partial_symbols): Restructure into a recursive version,
3278 calling add_partial_namespace and add_partial_enumeration when
3279 appropriate.
3280 (add_partial_namespace): New.
3281 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3282
c9263853
AC
32832003-09-09 Andrew Cagney <cagney@redhat.com>
3284
e56a0ecc
AC
3285 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3286 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3287 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3288 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3289
794a477a
AC
3290 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3291 (rs6000_push_dummy_call): Set the "TOC" register.
3292
c9263853
AC
3293 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3294 methods "max_register_raw_size", "max_register_virtual_size" or
3295 "register_virtual_size".
3296
afa7d0b2
ILT
32972003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3298
3299 * MAINTAINERS: Update my e-mail address.
3300
7a41266b
AC
33012003-09-09 Andrew Cagney <cagney@redhat.com>
3302
3303 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3304 (rs6000_push_dummy_call): Store the struct return address.
3305 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3306
77b2b6d4
AC
33072003-09-09 Andrew Cagney <cagney@redhat.com>
3308
3309 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3310 "ppc_sysv_abi_push_arguments".
3311 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3312 "ppc_sysv_abi_push_arguments".
3313 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3314 instead of "push_arguments".
3315 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3316
e8a7b686
AC
33172003-09-09 Andrew Cagney <cagney@redhat.com>
3318
3319 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3320 instead of CALL_DUMMY_ADDRESS.
3321
f86f5ca3
PH
33222003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3323
3324 * p-lang.c: Eliminate "register".
3325 * c-lang.c: Ditto.
3326 * expprint.c: Ditto.
3327 * f-lang.c: Ditto.
3328 * jv-lang.c: Ditto.
3329 * language.c: Ditto.
3330 * m2-lang.c: Ditto.
3331 * parse.c: Ditto.
3332 * scm-lang.c: Ditto.
3333 * objc-lang.c: Ditto.
3334
83ee270e
NC
33352003-09-09 Nick Clifton <nickc@redhat.com>
3336
3337 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3338
a89aa300
AC
33392003-09-04 Andrew Cagney <cagney@redhat.com>
3340
3341 * avr-tdep.c: Include "dis-asm.h".
3342 * cris-tdep.c: Include "dis-asm.h".
3343 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3344 instead of corresponding typedef.
3345 * h8300-tdep.c: Include "dis-asm.h".
3346 * ia64-tdep.c: Include "dis-asm.h".
3347 * i386-tdep.c: Include "dis-asm.h".
3348 (i386_print_insn): Use "struct disassemble_info" instead of
3349 corresponding typedef.
3350 * m68k-tdep.c: Include "dis-asm.h".
3351 * mcore-tdep.c: Include "dis-asm.h".
3352 * mips-tdep.c: Include "dis-asm.h".
3353 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3354 instead of corresponding typedef.
3355 * ns32k-tdep.c: Include "dis-asm.h".
3356 * s390-tdep.c: Include "dis-asm.h".
3357 * sparc-tdep.c: Include "dis-asm.h".
3358 * vax-tdep.c: Include "dis-asm.h".
3359 * v850-tdep.c: Include "dis-asm.h".
3360 * mn10300-tdep.c: Include "dis-asm.h".
3361 * rs6000-tdep.c: Include "dis-asm.h".
3362 * xstormy16-tdep.c: Include "dis-asm.h".
3363 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3364 print_insn_xstormy16.
3365 * Makefile.in (v850-tdep.o): Update dependencies.
3366 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3367 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3368 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3369 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3370 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3371 (gdbarch_h): Remove $(dis_asm_h).
3372 * disasm.c: Include "dis-asm.h".
3373 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3374 corresponding typedef.
3375 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3376 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3377 * gdbarch.sh: Do not include "dis-asm.h".
3378 (struct disassemble_info): Declare opaque.
3379 (TARGET_PRINT_INSN): Update declaration.
3380 * gdbarch.h, gdbarch.c: Re-generate.
3381
88a82a65
AC
33822003-09-08 Andrew Cagney <cagney@redhat.com>
3383
3384 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3385 CALL_DUMMY_ADDRESS, change to a predicate.
3386 * gdbarch.h, gdbarch.c: Re-generate.
3387 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3388 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3389 * infcall.c (call_function_by_hand): Ditto.
3390 * sparc-tdep.c (sparc_push_return_address): Ditto.
3391 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3392 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3393 CALL_DUMMY_ADDRESS with entry_point_address.
3394 * v850-tdep.c (v850_push_return_address): Ditto.
3395 * s390-tdep.c (s390_push_return_address): Ditto.
3396 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3397 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3398 * mcore-tdep.c (mcore_push_return_address): Ditto.
3399 * cris-tdep.c (cris_push_return_address): Ditto.
3400 * arm-tdep.c (arm_push_return_address): Ditto.
3401
3e2c4033
AC
34022003-09-08 Andrew Cagney <cagney@redhat.com>
3403
3404 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3405 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3406 and REG_UNMODIFIED to REG_SAME_VALUE.
3407 (execute_cfa_program): Update.
3408 (dwarf2_frame_cache): Update. Initialize table to
3409 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3410 location.
3411 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3412
39efb398
AC
34132003-09-08 Andrew Cagney <cagney@redhat.com>
3414
3415 * gnu-nat.c: Remove "inline" function attribute.
3416 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3417
f5cb5aca
KB
34182003-09-08 Kevin Buettner <kevinb@redhat.com>
3419
3420 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3421 target.
3422
1cb761c7
KB
34232003-09-08 Kevin Buettner <kevinb@redhat.com>
3424
3425 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3426 (frame_extra_info): Rename this struct to frv_unwind_cache.
3427 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3428 Add fields ``prev_sp'' and ``base''.
3429 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3430 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3431 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3432 Delete.
3433 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3434 Revise all callers. Fill in the unwind cache argument and make
3435 other adjustments to account for new frame mechanisms.
3436 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3437 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3438 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3439 (frv_frame_unwind, frv_frame_base): New structs.
3440 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3441 additional arguments expected by this method and adjust function
3442 body accordingly.
3443 (frv_gdbarch_init): Remove calls to the following functions:
3444 set_gdbarch_deprecated_init_frame_pc(),
3445 set_gdbarch_deprecated_saved_pc_after_call(),
3446 set_gdbarch_deprecated_frame_chain(),
3447 set_gdbarch_deprecated_frame_saved_pc(),
3448 set_gdbarch_deprecated_frame_init_saved_regs(),
3449 set_gdbarch_deprecated_push_arguments(),
3450 set_gdbarch_deprecated_push_return_address(),
3451 set_gdbarch_deprecated_pop_frame(),
3452 set_gdbarch_deprecated_call_dummy_words(),
3453 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3454 set_gdbarch_deprecated_init_extra_frame_info(),
3455 set_gdbarch_deprecated_dummy_write_sp(), and
3456 set_gdbarch_deprecated_pc_in_call_dummy().
3457 Add calls to the following functions:
3458 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3459 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3460 frame_base_set_default().
3461 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3462
68f6cf99
MK
34632003-09-09 Mark Kettenis <kettenis@gnu.org>
3464
3465 * dwarf2-frame.c (read_encoded_value): Add support for
3466 DW_EH_PE_aligned encoding.
3467
73b65bb0
DJ
34682003-09-08 Daniel Jacobowitz <drow@mvista.com>
3469
3470 * infrun.c (normal_stop): Don't print a message if the inferior
3471 has exited.
3472
7c8a5605
JB
34732003-09-08 Jim Blandy <jimb@redhat.com>
3474
3475 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3476 * dbxread.c: #include "gdb_assert.h".
3477 (read_dbx_symtab): If the objfile has no .data section, use the
3478 section index for the .bss section instead.
3479
7dd88986
DJ
34802003-09-08 Daniel Jacobowitz <drow@mvista.com>
3481
3482 * frame.c (deprecated_safe_get_selected_frame): New function.
3483 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3484 * findvar.c (read_var_value): Call it.
3485
55ff77ac
CV
34862003-09-08 Corinna Vinschen <vinschen@redhat.com>
3487
3488 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3489 (sh64-tdep.o): Add dependencies.
3490 * configure.tgt: Add FIXME to sh-*-linux*.
3491 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3492 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3493 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3494 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3495 * sh64-tdep.c: New file, containing all sh64 related code from
3496 sh-tdep.c.
3497 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3498 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3499 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3500 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3501 * config/sh/wince.mt (TDEPFILES): Ditto.
3502
bfb39158
DJ
35032003-09-07 Daniel Jacobowitz <drow@mvista.com>
3504
3505 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3506 (stop_wait_callback): Handle !lp->signalled also.
3507 (lin_lwp_has_pending, flush_callback): New functions.
3508 (lin_lwp_wait): Call flush_callback.
3509 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3510 (linux_proc_pending_signals): New function.
3511 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3512
9407de8e
DJ
35132003-09-07 Daniel Jacobowitz <drow@mvista.com>
3514
3515 From Nick Kelsey <nickk@ubicom.com>:
3516 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3517 when the stop PC is at the beginning of a function also.
3518
2ef47cd0
DJ
35192003-09-06 Daniel Jacobowitz <drow@mvista.com>
3520
3521 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3522 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3523
6f4492c8
MK
35242003-09-06 Mark Kettenis <kettenis@gnu.org>
3525
3526 * sol-thread.c: Include "gdb_string.h".
3527
d3420b2f
MK
35282003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3529
3530 * gcore.c: Reorder include files in alphabetical order. Include
3531 "gdb_assert.h". Various coding style fixes.
3532 (derive_stack_segment, derive_heap_segment): Replace check for
3533 non-null BOTTOM and TOP with gdb_assert.
3534 (derive_heap_segment): Replace check for successful creation of
3535 ZERO with gdb_assert.
3536 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3537
5220ea4c
AC
35382003-09-04 Andrew Cagney <cagney@redhat.com>
3539
3540 * thread-db.c (verbose_dlsym): New function.
3541 (thread_db_load): Use verbose_dlsym
3542 (thread_db_new_objfile): Print that libthread_db was loaded, and
3543 that thread debugging was enabled.
3544
6e8c2c06
AC
35452003-09-04 Andrew Cagney <cagney@redhat.com>
3546
3547 * configure.tgt: Add "mips64*-*-*" target. Delete
3548 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3549 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3550 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3551 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3552 mips*-sony-*, and mips64*-*-elf* targets.
3553 * config/mips/embedl.mt: Delete file.
3554 * config/mips/embedl64.mt: Delete file.
3555 * config/mips/mips.mt: Delete file.
3556 * config/mips/mips64.mt: Delete file.
3557 * config/mips/tm-embed.h: Delete file.
3558 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3559 * config/mips/embed64.mt: Delete out-of-date comment.
3560
3a3bc038
AC
35612003-09-04 Andrew Cagney <cagney@redhat.com>
3562
3563 * hppa-tdep.c (hppa_gdbarch_init): Set
3564 "have_nonsteppable_watchpoint".
3565 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3566 * mips-tdep.c (mips_dump_tdep): Do not print
3567 HAVE_NONSTEPPABLE_WATCHPOINT.
3568 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3569 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3570 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3571 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3572
a957e642
CV
35732003-09-04 Corinna Vinschen <vinschen@redhat.com>
3574
3575 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3576 unused code. Add comment.
3577
a6fbcf2f
CV
35782003-09-04 Corinna Vinschen <vinschen@redhat.com>
3579
3580 * breakpoint.c (watchpoint_check): Check for pc being in an
3581 epilogue if watchpoint frame couldn't be found.
3582
c14a44d5
AC
35832003-09-04 Andrew Cagney <cagney@redhat.com>
3584
3585 * Makefile.in: Re-generate all dependencies.
3586
f6c40618
AC
35872003-09-03 Andrew Cagney <cagney@redhat.com>
3588
3589 * arch-utils.h (legacy_print_insn): Delete declaration.
3590 * arch-utils.c (legacy_print_insn): Delete function.
3591 * disasm.c (deprecated_tm_print_insn_info): Delete.
3592 (_initialize_disasm): Delete function, contained code initializing
3593 deprecated_tm_print_insn_info.
3594 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3595 (deprecated_tm_print_insn_info): Delete.
3596 (TARGET_PRINT_INSN): Do not provide a default.
3597 * gdbarch.h, gdbarch.c: Re-generate.
3598
242e8be5
AC
35992003-09-03 Andrew Cagney <cagney@redhat.com>
3600
3601 * disasm.c (fprintf_disasm): New function.
3602 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3603 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3604 reverts 2003-08-14 change.
3605 (_initialize_disasm): Call "init_disassemble_info", instead of
3606 INIT_DISASSEMBLE_INFO_NO_ARCH.
3607
3ffc3dda
MS
36082003-09-03 Michael Snyder <msnyder@redhat.com>
3609
3610 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3611
52d16ba8
AC
36122003-09-03 Andrew Cagney <cagney@redhat.com>
3613
3614 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3615 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3616 * symfile.c (syms_from_objfile): Update.
3617 (reread_symbols): `Update
3618 * exec.c (exec_file_attach): Update.
3619 (exec_file_attach): Update.
3620 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3621 2003-08-29 change.
3622 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3623
eb5492fa
DJ
36242003-09-03 Daniel Jacobowitz <drow@mvista.com>
3625
3626 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3627 trad-frame.h.
3628 (arm_get_cache): Delete macro.
3629 (struct arm_prologue_cache): Update comments. Make saved_regs into
3630 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3631 to prev_sp.
3632 (thumb_scan_prologue): Update for cache changes. Don't call
3633 DEPRECATED_PC_IN_CALL_DUMMY.
3634 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3635 argument and use it in desperation search for our prologue. Do not
3636 search past the specified PC.
3637 (arm_make_prologue_cache): Simplify.
3638
3639 (arm_prologue_this_id, arm_prologue_prev_register)
3640 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3641 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3642 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3643 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3644 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3645
3646 (arm_frame_chain_valid, arm_find_callers_reg)
3647 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3648 (arm_pop_frame): Delete obsolete methods.
3649 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3650
3651 (arm_gdbarch_init): Update for new frame methods. Register prologue
3652 and sigtramp unwinders. Set the default frame base method.
3653
3654 * Makefile.in (arm-tdep.o): Update dependencies.
3655 * varobj.c (find_frame_addr_in_frame_chain): Call
3656 get_frame_base_address.
3657 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3658
24de872b
DJ
36592003-09-03 Daniel Jacobowitz <drow@mvista.com>
3660
3661 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3662 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3663 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3664 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3665 Take NEXT_FRAME and CACHE arguments. Call
3666 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3667 Set unwound_pc in CACHE instead of modifying the frame argument.
3668 Don't bother checking the frame type when looking for sigtramp
3669 frames.
3670 (arm_make_prologue_cache, arm_frame_chain)
3671 (arm_init_extra_frame_info): New functions.
3672
9b8d791a
DJ
36732003-09-03 Daniel Jacobowitz <drow@mvista.com>
3674
3675 * arm-tdep.c (arm_get_cache): Define.
3676 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3677 unwound_sp, unwound_pc, and saved_regs.
3678 (thumb_scan_prologue): Take a cache instead of the frame.
3679 (arm_scan_prologue): Likewise.
3680 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3681 instead of a temporary frame.
3682 (arm_init_extra_frame_info): Allocate and use a cache.
3683 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3684
7ee3275f
AC
36852003-09-03 Andrew Cagney <cagney@redhat.com>
3686
3687 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3688 * config/mips/wince.mt (TM_CLIBS): Ditto.
3689 * config/sh/wince.mt (TM_CLIBS): Ditto.
3690 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3691 * config/sparc/sp64.mt (CC): Delete.
3692
57b29be7
AC
36932003-09-03 Andrew Cagney <cagney@redhat.com>
3694
3695 * defs.h: Do not include "arch-utils.h".
3696 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3697 GDB_MULTI_ARCH_PURE.
3698 * configure.in (GDB_MULTI_ARCH): Do not define.
3699 * configure, config.in: Regenerate.
3700 * configure.tgt: Do not set variable "gdb_multi_arch".
3701 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3702 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3703 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3704 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3705 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3706 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3707 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3708 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3709 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3710 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3711 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3712 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3713 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3714 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3715 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3716 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3717 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3718 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3719
12e035e2
MC
37202003-08-30 Michael Chastain <mec@shout.net>
3721
3722 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3723 * config/m68k/nm-hp300hpux.h: Delete.
3724 * config/m68k/tm-hp300hpux.h: Delete.
3725 * config/m68k/xm-hp300hpux.h: Delete.
3726 * config/m68k/xm-hp300bsd.h: Delete.
3727 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3728 tm-hp300hpux.h, xm-hp300hpux.h.
3729 * somsolib.c: Remove comment about hp300 shared libraries.
3730
bda34dc2
MK
37312003-08-31 Mark Kettenis <kettenis@gnu.org>
3732
5bca7895
MK
3733 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3734 Only define PTRACE_GET_THREAD_AREA is not already defined.
3735 Various style fixes in code and comments and some additional
3736 spelling fixes in comments. Move after functions dealing with
3737 debug registers.
3738 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3739 Fix coding-style.
3740
bda34dc2
MK
3741 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3742 frame_unwind_register_unsigned instead of
3743 frame_unwind_unsigned_register.
3744
c890192f
MK
37452003-08-30 Mark Kettenis <kettenis@gnu.org>
3746
3747 * configure.in: Search for gethostbyname in libnsl.
3748 * configure: Regenerated.
3749
60fac5b8
MK
37502003-08-29 Mark Kettenis <kettenis@gnu.org>
3751
e294916c
MK
3752 * configure.in: Remove redundant AC_MSG_RESULT in check for
3753 uintptr_t in stdint.h.
3754 * configure: Regenerated.
3755
c40d267a
MK
3756 * amd64-nat.h (struct regcache): Add opaque declaration.
3757
60fac5b8
MK
3758 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3759 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3760 Change "register array" to "register cache" in comments.
3761 (x86_64_linux_gregset64_reg_offset): New variable.
3762 (GETREGS_SUPPLIES): Remove macro.
3763 (supply_gregset): Call amd64_supply_native_gregset instead of
3764 x86_64_linux_supply_gregset.
3765 (fill_gregset): Rename `regno' to `regnum'. Call
3766 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3767 (store_regs): Rename `regno' to `regnum'.
3768 (store_fpregs): Rename `regno' to `regnum'.
3769 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3770 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3771 Reorganize function a bit.
3772 (store_inferior_registers): Rename `regno' to `regnum'. Use
3773 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3774 Reorganize function a bit.
3775 (_initialize_x86_64_linux_nat): New function.
3776 * config/i386/x86-64linux.mh.
3777
546143b6
AC
37782003-08-29 Andrew Cagney <cagney@redhat.com>
3779
3780 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3781 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3782 (target_remove_watchpoint): Delete macro.
3783 (target_insert_watchpoint): Delete macro.
3784 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3785 (remote_mips_stopped_by_watchpoint): Delete declaration.
3786 (remote_mips_remove_watchpoint): Delete declaration.
3787 (remote_mips_set_watchpoint): Delete declaration.
3788 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3789 * remote-mips.c (_initialize_remote_mips): Set
3790 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3791 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3792 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3793 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3794 (mips_stopped_by_watchpoint): Rename
3795 remote_mips_stopped_by_watchpoint.
3796 (mips_can_hardware_watchpoint): Rename
3797 remote_mips_can_use_hardware_watchpoint, update function
3798 signature.
3799
7bace51b
MK
38002003-08-29 Mark Kettenis <kettenis@gnu.org>
3801
b0f5c6f2
MK
3802 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3803 USER_DS. We haven't given them a register number yet.
3804
2a6d284d
MK
3805 * amd64-nat.h: New file.
3806 * amd64-nat.c: New file.
3807 * amd64fbsd-nat.c: Include "amd64-nat.h".
3808 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3809 (amd64fbsd32_r_reg_offset): New variable.
3810 (supply_gregset): Simply call amd64_supply_native_gregset.
3811 (fill_gregset): Rename `regno' to `regnum'. Simply call
3812 amd64_collect_native_gregset.
3813 (fill_fpregset): Rename `regno' to `regnum'.
3814 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3815 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3816 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3817 `fpregset_t'. Call amd64_supply_native_gregset instead of
3818 supply_gregset. Call x86_64_supply_fxsave instead of
3819 supply_fpregset.
3820 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3821 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3822 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3823 `fpregset_t'. Call amd64_collect_native_gregset instead of
3824 fill_gregset. Call x86_64_collect_fxsave instead of
3825 fill_fpregset.
3826 (_initialize_am64fbsd_nat): Initialize
3827 amd64_native_gregset32_reg_offset and
3828 amd64_native_gregset64_reg_offset.
3829 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3830
a16d75cc
MK
3831 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3832 null pointer. Fix typo in comment.
3833
7bace51b
MK
3834 * regcache.c (supply_register): Reimplement to call
3835 regcache_raw_supply.
3836 (regcache_collect): Reimplement by calling regcache_raw_collect.
3837
9a661b68
MK
38382003-08-28 Mark Kettenis <kettenis@gnu.org>
3839
3840 * regcache.c (register_buffer): Consitify first argument.
3841 (regcache_raw_supply, regcache_raw_collect): New
3842 functions.
3843
e94cc8fa
DJ
38442003-08-28 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3847 by Nathan J. Williams.
3848
c64bd0ce
DJ
38492003-08-28 Daniel Jacobowitz <drow@mvista.com>
3850
3851 * lin-lwp.c (wait_lwp): New function, copied from
3852 stop_wait_callback. Clean up.
3853 (stop_wait_callback): Use wait_lwp.
3854
e5ab0dce
AC
38552003-08-28 Andrew Cagney <cagney@redhat.com>
3856
3857 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3858 flavour and disassembler options.
3859 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3860 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3861 deprecated_tm_print_insn_info.
a8f4cde1 3862
a788de9b
AC
38632003-08-27 Andrew Cagney <cagney@redhat.com>
3864
3865 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3866 Use target_read_memory.
3867 (s390_get_frame_info): Update. Do not reference
3868 deprecated_tm_print_insn_info.
3869 (s390_check_function_end, s390_is_sigreturn): Ditto.
3870
36482093
AC
38712003-08-27 Andrew Cagney <cagney@redhat.com>
3872
3873 * Makefile.in (cris-tdep.o): Update dependencies.
3874 * cris-tdep.c: Include "gdb_assert.h".
3875 (cris_gdbarch_init): Set print_insn.
3876 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3877 (cris_delayed_get_disassembler): Simplify, directly call the
3878 disassembler returned by cris_get_disassembler.
3879 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3880 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3881 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3882 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3883 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3884 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3885 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3886 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3887 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3888 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3889 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3890 (gdb_print_insn_sparc): Delete function.
3891 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3892 deprecated_tm_print_insn_info.
3893 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3894 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3895 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3897 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3898 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3899 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3900 (s390_gdbarch_init): Set print_insn.
3901
0285512f
AC
39022003-08-27 Andrew Cagney <cagney@redhat.com>
3903
3904 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3905 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3906 * infcall.c (call_function_by_hand): Convert the entry point
3907 address into a code address.
3908
cdcd5552
AC
39092003-08-27 Andrew Cagney <cagney@redhat.com>
3910
3911 * dsrec.c: Include "gdb_string.h".
3912 * Makefile.in (dsrec.o): Update dependencies.
3913
e85cddad
MC
39142003-08-27 Michael Chastain <mec@shout.net>
3915
3916 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3917
8bbfbb23
AC
39182003-08-27 Andrew Cagney <cagney@redhat.com>
3919
3920 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3921 (alpha_osf1_init_abi): Do not set call_dummy_address.
3922
ba058b66
DC
39232003-08-27 David Carlton <carlton@kealia.com>
3924
3925 From Randolph Chung <tausq@debian.org>:
3926 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3927 compiles with -Wformat-nonliteral -Werror.
3928
87f84c9d
JB
39292003-08-26 Jim Blandy <jimb@redhat.com>
3930
3931 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3932 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3933 bfd_lookup_symbol, since we only want symbols in code sections.
3934 (look_for_base): Pass zero as the SECT_FLAGS argument to
3935 bfd_lookup_symbol, since we're not concerned about which section
3936 the symbol is in.
3937
102d615a
JJ
39382003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3939
3940 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3941 we are frameless or the return address register is already known.
102d615a 3942
cc7ad3ea
AC
39432003-08-26 Andrew Cagney <cagney@redhat.com>
3944
3945 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3946 in size. Add comments.
3947
af8b88dd
JJ
39482003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3949
3950 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3951 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3952
e0a4f5a1
JM
39532003-08-26 Jason Merrill <jason@redhat.com>
3954
3955 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3956 case out of #ifdef MIPS block.
3957
4ae9ee8e
DJ
39582003-08-25 Daniel Jacobowitz <drow@mvista.com>
3959
3960 PR java/1322
3961 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3962 available before calling SECT_OFF_TEXT.
3c164570 3963 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3964
004d836a
JJ
39652003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3966
a8f4cde1 3967 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3968 bof, and nat0-nat127 as pseudo-registers.
3969 (ia64_frame_cache): New struct used to cache frame info.
3970 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3971 register grouping so registers without names are still saved and
004d836a 3972 restored.
a8f4cde1 3973 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3974 pseudo values.
3975 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3976 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3977 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3978 ia64_frame_cache.
3979 (examine_prologue): Change prototype to add next_frame pointer.
3980 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3981 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3982 alloc insn and if equal, mark as not frameless. At end of routine,
3983 if not frameless, calculate registers for the previous frame and store
3984 in the cache, if a cache is provided.
3985 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3986 and pass 0 for next_frame.
3987 (ia64_store_return_value): Change to use convert_typed_floating()
3988 instead of calling ia64_convert_to_raw().
3989 (ia64_extract_return_value): Change to use convert_typed_floating()
3990 instead of calling ia64_convert_to_virtual().
3991 (ia64_frame_cache): New routine to support new frame model.
3992 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3993 (ia64_frame_sniffer): Ditto.
3994 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3995 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3996 (ia64_sigtramp_frame_prev_register): Ditto.
3997 (ia64_sigtramp_frame_sniffer): Ditto.
3998 (ia64_frame_base_address): Ditto.
3999 (ia64_extract_struct_value_address): Change to issue error message.
4000 (ia64_frame_align): New routine to align sp.
4001 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4002 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4003 ia64_push_dummy_call().
4004 (ia64_push_return_address): Ditto.
4005 (ia64_unwind_dummy_id): New function.
4006 (ia64_unwind_pc): Ditto.
4007 (ia64_convert_register_p): Ditto.
4008 (ia64_register_to_value): Ditto.
4009 (ia64_value_to_register): Ditto.
4010 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4011 (ia64_register_byte, ia64_register_raw_size): Ditto.
4012 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4013 (ia64_saved_pc_after_call): Ditto.
4014 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4015 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4016 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4017 (ia64_register_convert_to_raw): Ditto.
4018 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4019 (ia64_init_extra_frame_info): Ditto.
4020 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4021 (ia64_gdbarch_init): Remove registering of deprecated functions that
4022 are no longer used. Add registration of new gdbarch functions.
4023 Remove registering deprecated_write_sp. Replace
4024 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4025 Delete set_gdbarch_deprecated_register_convertible(),
4026 set_gdbarch_deprecated_register_convert_to_virtual(), and
4027 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4028 set_gdbarch_deprecated_register_size(),
4029 set_gdbarch_deprecated_register_bytes(),
4030 set_gdbarch_pcregnum(),
4031 set_gdbarch_deprecated_register_byte(),
4032 set_gdbarch_deprecated_register_raw_size(),
4033 set_gdbarch_deprecated_max_register_raw_size(),
4034 set_gdbarch_deprecated_register_virtual_size(),
4035 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4036 Replace set_gdbarch_deprecated_extract_return_value() with
4037 set_gdbarch_extract_return_value(). Remove calls to:
4038 set_gdbarch_deprecated_saved_pc_after_call();
4039 set_gdbarch_deprecated_frame_chain(),
4040 set_gdbarch_deprecated_frame_saved_pc(),
4041 set_gdbarch_deprecated_frame_init_saved_regs(),
4042 set_gdbarch_deprecated_get_saved_register(),
4043 set_gdbarch_deprecated_call_dummy_words(),
4044 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4045 set_gdbarch_deprecated_init_extra_frame_info(),
4046 set_gdbarch_deprecated_frame_args_address(),
4047 set_gdbarch_deprecated_frame_locals_address(),
4048 and set_gdbarch_deprecated_dummy_write_sp().
4049 Add set_gdbarch_convert_register_p(),
4050 set_gdbarch_register_to_value(),
4051 set_gdbarch_value_to_register(),
4052 set_gdbarch_push_dummy_call(),
4053 set_gdbarch_frame_align(),
4054 set_gdbarch_unwind_dummy_id(),
4055 set_gdbarch_unwind_pc(),
4056 frame_unwind_append_sniffer(),
4057 frame_unwind_append_sniffer(),
4058 and frame_base_set_default().
4059
aede7613
CD
40602003-08-25 Chris Demetriou <cgd@broadcom.com>
4061
4062 * configure.tgt: Document need for special "mipsisa64" handling.
4063 (mipsisa64*-*-linux64): Handle as target linux64.
4064 (mipsisa64*-*-*): Handle as target embed64.
4065
43c3a82e
MC
40662003-08-18 Michael Chastain <mec@shout.net>
4067
4068 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4069 objfile bug.
4070
6564f77d
MK
40712003-08-24 Mark Kettenis <kettenis@gnu.org>
4072
2de139ba
MK
4073 * i387-tdep.h: Update copyright date.
4074 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4075
6564f77d
MK
4076 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4077 CFLAGS games to reflect reality.
4078
42cf1509
AC
40792003-08-24 Andrew Cagney <cagney@redhat.com>
4080
4081 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4082 GDB_MULTI_ARCH is always non-zero.
4083 * osabi.c (_initialize_gdb_osabi): Ditto.
4084 (gdbarch_init_osabi): Ditto.
4085 * sparc-tdep.c: Ditto for #if code.
4086
0485f6ad
MK
40872003-08-23 Mark Kettenis <kettenis@gnu.org>
4088
4089 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4090 Update comments.
4091 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4092 comments.
4093 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4094 x86_64_supply_fxsave.
4095 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4096 x86_64_supply_fxsave.
4097 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4098 x86_64_supply_fxsave.
4099
c7716133
AJ
41002003-08-23 Andreas Jaeger <aj@suse.de>
4101
4102 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4103 i387_supply_fxsave.
4104
ed504bdf
MK
41052003-08-23 Mark Kettenis <kettenis@gnu.org>
4106
4107 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4108 i387_supply_register.
4109 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4110 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4111 i387_supply_fsave.
4112 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4113 i387_supply_fxsave.
4114 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4115 i387_supply_fsave.
4116 * i386bsd-nat.c (supply_fpregset): Adjust call to
4117 i387_supply_fsave.
4118 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4119 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4120 supply_fpregset.
4121 (store_inferior_registers): Remove extraneous whitespace. Call
4122 i387_fill_fsave instead of fill_fpregset.
4123 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4124 (supply_fpregset): Likewise.
4125 * i386v4-nat.c (supply_fpregset): Adjust call to
4126 i387_supply_fsave.
4127 * i386-interix-nat.c (supply_fpregset): Adjust call to
4128 i387_supply_fsave.
4129 * i386-linux-nat.c (supply_fpregset): Adjust call to
4130 i387_supply_fsave.
4131 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4132 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4133 i387supply_fsave and i387_supply_fxsave.
4134 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4135 Incorporate code from `i387_supply_register.
4136 (i387_supply_register): Remove.
4137 (i387_supply_fxsave): Add `regnum' argument.
4138 Update comments.
4139 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4140 prototype.
4141 (i387_supply_register): remove prototype.
4142 Update comments.
a8f4cde1 4143
4be5d520
MC
41442003-08-22 Michael Chastain <mec@shout.net>
4145
4146 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4147 Add lines for files in gdb/testsuite/gdb.cp/* that are
4148 still not 8.3 unique.
4149
7ed85d26
DJ
41502003-08-22 Daniel Jacobowitz <drow@mvista.com>
4151
4152 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4153 TYPE_VPTR_FIELDNO is valid.
4154
eb0d3137
MK
41552003-08-19 Mark Kettenis <kettenis@gnu.org>
4156
4157 * utils.c (set_width_command): Remove prototypes.
4158 (set_screen_size): New prototype.
4159 (init_page_info): Simplify by fetching the screen size from
4160 Readline. Call set_screen_size.
4161 (set_screen_size): New function.
4162 (set_width): Add missing whitespace in comment.
4163 (set_width_command): Call set_screen_size.
4164 (set_height_command): New function.
4165 (initialize_utils): Fix formatting. Make "set height" command
4166 call set_height_command. Remove redundant code that turns off
4167 pagination if output isn't a terminal. Remove redundant call to
4168 set_width_command.
a8f4cde1 4169
7e6d0ac8
MK
41702003-08-22 Mark Kettenis <kettenis@gnu.org>
4171
3567a8ea
MK
4172 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4173 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4174 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4175 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4176 `case' keyword.
4177 (sparc64_register_info): Give the reister with number
4178 SPARC64_STATE_REGNUM a name.
4179 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4180 %asi and %ccr.
4181 (sparc64_push_dummy_call): Take BIAS into account when checking
4182 stcak alignment.
4183 (sparc_software_single_step): Remove assertions that check whether
4184 NPC and NNPC were zero.
4185 (sparc_supply_rwindow): Make public. Merge functionality with
4186 sparc64_supply_rwindow.
4187 (sparc_fill_rwindow): Make public. Merge functionality with
4188 sparc64_fill_rwindow.
4189 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4190 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4191 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4192 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4193 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4194
7e6d0ac8
MK
4195 * reggroups.c: Add whitespace after declarations of local
4196 variables in functions.
4197
72e5f484
MC
41982003-08-21 Michael Chastain <mec@shout.net>
4199
4200 * gdbtypes.h: Change array bound type from an int to enum.
4201
435ac228
AC
42022003-08-21 Andrew Cagney <cagney@redhat.com>
4203
4204 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4205 * config/sparc/tm-sparc.h: Ditto.
4206 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4207 unconditionally.
4208 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4209
0d0e1a63
MK
42102003-07-13 Mark Kettenis <kettenis@gnu.org>
4211
4212 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4213 (register_objfile_data, set_objfile_data, objfile_data): New
4214 prototypes.
4215 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4216 prototypes.
4217 (allocate_objfile): Call objfile_alloc_data.
4218 (free_objfile): Call objfile_free_data.
4219 (struct objfile_data): New.
4220 (struct objfile_data_registration): New.
4221 (struct objfile_data_registry): New.
4222 (objfile_data_registry): New variable.
4223 (register_objfile_data): New function.
4224 (objfile_alloc_data, objfile_free_data): New functions.
4225 (set_objfile_data, objfile_data): New functions.
4226 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4227 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4228 (_initialize_dwarf2_frame): New function and prototype.
4229
d90cf509
AC
42302003-08-21 Andrew Cagney <cagney@redhat.com>
4231
4232 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4233 a specific architecture.
4234 * arch-utils.h (set_architecture_from_arch_mach): Delete
4235 declaration.
4236 (target_architecture_hook): Delete declaration.
4237 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4238 (default_float_format): Assume GDB_MULTI_ARCH.
4239 (default_double_format): Assume GDB_MULTI_ARCH.
4240 (set_endian_from_file): Delete function.
4241 (arch_ok): Delete function.
4242 (set_arch): Delete function.
4243 (set_architecture_from_arch_mach): Delete function.
4244 (set_architecture_from_file): Delete function.
4245 (set_architecture): Assume GDB_MULTI_ARCH.
4246 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4247
8b39fe56
MK
42482003-08-21 Mark Kettenis <kettenis@gnu.org>
4249
4250 Rewrite FreeBSD/sparc64 native configuration.
4251 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4252 * sparc64fbsd-nat.c: New file.
4253 * sparc64fbsd-tdep.c: New file.
4254 * sparc64-tdep.c sparc64-tdep.h: New files.
4255 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4256 sparc64fbsd-tdep.o): New dependencies.
4257 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4258 and sparc64fbsd-tdep.c.
4259 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4260 * config/sparc/fbsd.mh: Remove copyright notice.
4261 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4262 sparcbsd-nat.o.
4263 * config/sparc/fbsd.mt: Remove copyright notice.
4264 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4265 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4266 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4267 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4268 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4269 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4270 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4271 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4272 "sparc/tm-sp64.h".
4273 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4274 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4275
a7f19c79
MC
42762003-08-21 Michael Chastain <mec@shout.net>
4277
4278 * symtab.h: Add doco on the space critical structures and
4279 some measurements of space usage.
4280
da08ea5b
MS
42812003-08-21 Michael Snyder <msnyder@redhat.com>
4282
4283 * tracepoint.c (trace_dump_command): Trace break address
4284 is subject to DECR_PC_AFTER_BREAK.
4285 (set_traceframe_context): Make "trace_line" an int.
4286 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4287
6df2bf50
MS
42882003-08-20 Michael Snyder <msnyder@redhat.com>
4289
4290 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4291 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4292 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4293 argument passing.
a8f4cde1 4294 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4295 functions, replace sh_push_dummy_call.
4296 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4297
0955bbf0
MC
42982003-08-20 Michael Chastain <mec@shout.net>
4299
4300 * gdbtypes.h (struct main_type): Rearrange to save space.
4301
260a4188
MS
43022003-08-20 Michael Snyder <msnyder@redhat.com>
4303
4304 * trad-frame.c: Comment typo fix.
4305
8baa6f92
KB
43062003-08-20 Michael Snyder <msnyder@redhat.com>
4307 Kevin Buettner <kevinb@redhat.com>
4308
4309 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4310 (frv_frame_init_saved_regs): Add declaration.
4311 (frame_extra_info): Add new field ``saved_regs''.
4312 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4313 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4314 Update frame related code.
4315 (frv_extract_struct_value_address): Adjust formatting.
4316 * Makefile.in (frv-tdep.o): Update dependencies.
4317 * config/frv/tm-frv.h (target_insert_watchpoint)
4318 (target_remove_watchpoint, target_insert_hw_breakpoint)
4319 (target_remove_hw_breakpoint): Delete these macros.
4320 (remote_insert_watchpoint, remote_remove_watchpoint)
4321 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4322 these declarations.
4323
87193939
MC
43242003-08-20 Michael Chastain <mec@shout.net>
4325
4326 * defs.h (ENUM_BITFIELD): New macro.
4327 * symtab.h (ENUM_BITFIELD): Use it.
4328 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4329
062103ba
SA
43302003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4331
4332 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4333
8b148df9
AC
43342003-08-18 Andrew Cagney <cagney@redhat.com>
4335
4336 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4337 * gdbarch.h, gdbarch.c: Re-generate.
4338 * infcall.c (call_function_by_hand): Adjust the SP by
4339 frame_red_zone_size before allocating any stack space.
4340 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4341 * x86-64-tdep.c (x86_64_frame_align): New function.
4342 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4343
4344 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4345 Remove code adjusting SP so that it skips over the Red Zone.
4346
954a4db8
MK
43472003-08-18 Mark Kettenis <kettenis@gnu.org>
4348
4349 * NEWS (New native configurations): Mention FreeBSD/amd64.
4350
1a241548
AC
43512003-08-18 Andrew Cagney <cagney@redhat.com>
4352
4353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4354 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4355 "m68k_frame_p".
4356 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4357
f82b2acd
MK
43582003-08-18 Mark Kettenis <kettenis@gnu.org>
4359
4360 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4361
4056d258
ML
43622003-08-18 Michal Ludvig <mludvig@suse.cz>
4363
4364 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4365 Define.
4366 * i386-linux-nat.c: Include "linux-nat.h".
4367 (child_post_startup_inferior): New function.
a8f4cde1 4368
99ab4326
MK
43692003-08-18 Mark Kettenis <kettenis@gnu.org>
4370
4371 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4372 at the start of a frameless function. This probably fixes PR
4373 backtrace/1338.
4374
c8d5f0d6
MC
43752003-08-17 Michael Chastain <mec@shout.net>
4376
4377 * symfile.c (find_sym_fns): Remove special case for apollo target.
4378
9016a515
DJ
43792003-08-17 Daniel Jacobowitz <drow@mvista.com>
4380
4381 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4382 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4383 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4384 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4385 (linux_supports_tracevforkdone): New function.
4386 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4387 TRACEVFORKDONE.
4388 (child_follow_fork): Handle vfork.
4389 (linux_handle_extended_wait): Likewise. Also handle exec.
4390 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4391 * NEWS: Mention fork tracing.
4392
c538c11c
DJ
43932003-08-17 Daniel Jacobowitz <drow@mvista.com>
4394
4395 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4396
4de4c07c
DJ
43972003-08-17 Daniel Jacobowitz <drow@mvista.com>
4398
4399 * Makefile.in (i386-linux-nat.o): Update dependencies.
4400 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4401 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4402 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4403 * i386-linux-nat.c: Include "linux-nat.h".
4404 (child_post_startup_inferior): New function.
4405 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4406 * infptrace.c (kill_inferior): Wrap in #ifdef.
4407 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4408 attaching to each LWP.
4409 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4410 (init_lin_lwp_ops): Fill in some more operations.
4411 * linux-nat.h (linux_enable_event_reporting)
4412 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4413 prototypes.
4414 * linux-nat.c (linux_enable_event_reporting): New function.
4415 (child_post_attach, linux_child_post_startup_inferior)
4416 (child_post_startup_inferior, child_follow_fork)
4417 (linux_handle_extended_wait, kill_inferior): New functions.
4418
7996bcec
AC
44192003-08-16 Andrew Cagney <cagney@redhat.com>
4420
4421 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4422 * gdbarch.h, gdbarch.c: Re-generate.
4423
3d48a7a0
MK
44242003-08-16 Mark Kettenis <kettenis@gnu.org>
4425
4426 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4427
7989c619
AC
44282003-08-16 Andrew Cagney <cagney@redhat.com>
4429
4430 * NEWS: Mention that "set prompt-escape-char" was deleted.
4431 * top.c (get_prompt_1): Delete function.
4432 (gdb_prompt_escape):
4433 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4434 prompt-escape-char" command.
4435 (MAX_PROMPT_SIZE): Delete macro.
4436 (get_prompt): Simplify, do not call get_prompt_1.
4437
07978cd8
AC
44382003-08-16 Andrew Cagney <cagney@redhat.com>
4439
4440 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4441 -Werror. -Wformat-nonliteral problems.
4442
3ff7cf9e
JB
44432003-08-15 J. Brobecker <brobecker@gnat.com>
4444
4445 Further multiarching work mostly for hppa64-*-hpux11:
4446 * hppa-tdep.h: New file.
4447 * hppa-tdep.c: #include hppa-tdep.c.
4448 (hppa32_num_regs): Renamed from hppa_num_regs.
4449 (hppa64_num_regs): New constant.
4450 (hppa64_call_dummy_breakpoint_offset): New constant.
4451 (hppa32_call_dummy_length): New constant.
4452 (hppa64_call_dummy_length): New constant.
4453 (hppa32_stack_align): Make name 32bit explicit.
4454 (hppa32_register_virtual_type): Likewise.
4455 (hppa32_extract_return_value): Likewise.
4456 (hppa32_use_struct_convention): Likewise.
4457 (hppa32_store_return_value): Likewise.
4458 (hppa64_register_virtual_type): New function.
4459 (hppa64_extract_return_value): New function.
4460 (hppa64_use_struct_convention): New function.
4461 (hppa64_store_return_value): New function.
4462 (hppa_frame_locals_address): Remove declaration, function does
4463 not exist anymore.
4464 (hppa_register_byte): Add support for PA64 ABI.
4465 (hppa_gdbarch_init): Add support for PA64 ABI.
4466 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4467 Make name 32bit explicit.
4468 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4469 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4470 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4471 (hppa64_hpux_frame_base_before_sigtramp): New function.
4472 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4473 * config/pa/tm-hppa64.h: Remove macros that are no longer
4474 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4475 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4476 * config/pa/tm-hppah.h: Update function calls in macros
4477 following the function renaming in hppa-hpux-tdep.c.
4478 * Makefile.in (hppa_tdep_h): New variable.
4479 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4480
5d05ca6d
MS
44812003-08-14 Michael Snyder <msnyder@redhat.com>
4482
4483 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4484
37ba2569
JB
44852003-08-13 J. Brobecker <brobecker@gnat.com>
4486
4487 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4488 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4489 routine.
4490
aed7f26a
MS
44912003-08-13 Michael Snyder <msnyder@redhat.com>
4492
4493 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4494 (frv_saved_pc_after_call): Use deprecated ftype.
4495 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4496 (frv_remote_translate_xfer_address): Remove.
4497 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4498
752d4ac1
JB
44992003-08-13 J. Brobecker <brobecker@gnat.com>
4500
4501 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4502 initialization after the common gdbarch initialization, not before.
4503
1426ac1d
JB
45042003-08-13 J. Brobecker <brobecker@gnat.com>
4505
4506 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4507 (ADDR_BITS_REMOVE): Remove, redundant.
4508
b6fbdd1d
JB
45092003-08-13 J. Brobecker <brobecker@gnat.com>
4510
4511 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4512 gdbarch method to clear the 2 low bits of text addresses.
4513
44160db3
AC
45142003-08-12 Andrew Cagney <cagney@redhat.com>
4515
4516 * Makefile.in (dsrec.o): Update dependencies.
4517 * dsrec.c: Include "gdb_assert.h".
4518 (make_srec): Use snprintf instead of sprintf, use a literal format
4519 string.
4520
bcf7d3ca
AC
45212003-08-12 Andrew Cagney <cagney@redhat.com>
4522
4523 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4524 FRAME_OBSTACK_ZALLOC.
4525
49ed40de
KB
45262003-08-12 Kevin Buettner <kevinb@redhat.com>
4527
4528 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4529 SSE registers.
4530
b246147c
MK
45312003-08-10 Mark Kettenis <kettenis@gnu.org>
4532
4533 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4534 amd64fbsd_sc_reg_offset): Add extern declarations.
4535 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4536 declarations.
4537
d95fdc0d
BE
45382003-08-11 Ben Elliston <bje@wasabisystems.com>
4539
4540 * MAINTAINERS (write after approval): Update my mail address.
4541
cf6a0e73
AC
45422003-08-10 Andrew Cagney <cagney@redhat.com>
4543
4544 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4545
f837910f
MK
45462003-08-10 Mark Kettenis <kettenis@gnu.org>
4547
e2dbbd2d
MK
4548 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4549 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4550 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4551 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4552 i386bsd_sc_reg_offset): Add extern declarations.
4553 * i386obsd-nat.c: Include "i386-tdep.h"
4554 (_initialize_i386obsd_nat): Remove extern declarations.
4555 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4556 declarations.
4557 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4558 declarations.
4559
f837910f
MK
4560 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4561 instead of frame_read_register.
4562 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4563 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4564 SP_REGNUM.
4565 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4566 instead of frame_unwind_unsigned_register. Use
4567 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4568 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4569 instead of read_register. Use builtin_type_void_data_ptr instead
4570 of builtin_type_void_func_ptr when extracting the address of the
4571 jmp_buf.
4572 (i386_extract_return_value, i386_store_return_value,
4573 i386_pseudo_register_read, i386_pseudo_register_write): Use
4574 register_size instead REGISTER_RAW_SIZE.
4575
edcf254d
AC
45762003-08-10 Andrew Cagney <cagney@redhat.com>
4577
4578 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4579 sprintf. Make "name" constant.
4580
26604a34
MK
45812003-08-10 Mark Kettenis <kettenis@gnu.org>
4582
192285c6
MK
4583 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4584 instead of frame_read_register.
f837910f
MK
4585 (i387_print_float_info): Use get_frame_register and
4586 get_frame_register_unsigned instead of frame_register_read.
192285c6 4587
f0925262
MK
4588 * i386fbsd-nat.c: Include "i386-tdep.h".
4589 (child_resume): Make `eflags' an ULONGEST. Use
4590 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4591 instead of register_read and register_write.
4592
a144416f
MK
4593 * i386bsd-nat.c (fetch_inferior_registers,
4594 store_inferior_registers): Don't use && at the end of a line.
4595 (_initialize_i386bsd_nat): Fix typo.
4596
fec74868
MK
4597 * frame.c (_initialize_frame): Add missing backslash.
4598
87232496
MK
4599 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4600 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4601 and supply_register instead of manipulating the register buffer
4602 directly.
4603
c9b9de0b
MK
4604 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4605 * config/i386/nm-i386sol2.h
4606 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4607
26604a34
MK
4608 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4609 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4610 instructions that GCC likes to mingle into the prologue. Fixes
4611 gdb/1253 and gdb/1255.
4612
25d29d70
AC
46132003-08-09 Andrew Cagney <cagney@redhat.com>
4614
4615 Fix GDB PR cli/926.
4616 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4617 * command.h (add_setshow_uinteger_cmd): Declare.
4618 * frame.c (set_backtrace_cmd): New function.
4619 (show_backtrace_cmd): New function.
4620 * frame.c (_initialize_frame): Replace "set/show
4621 backtrace-below-main" with "set/show backtrace past-main". Add
4622 command "set/show backtrace limit".
4623 (backtrace_past_main): Rename "backtrace_below_main".
4624 (backtrace_limit): New variable.
4625 (get_prev_frame): Update. Check the backtrace_limit.
4626
9ebf4acf
AC
46272003-08-09 Andrew Cagney <cagney@redhat.com>
4628
4629 * defs.h (xstrprintf): Declare.
4630 * utils.c (xstrprintf): New function.
4631 * breakpoint.c (insert_breakpoints): Replace sprintf and
4632 non-literal format strings, with xstrprintf and cleanups.
4633 (delete_breakpoint,breakpoint_re_set): Ditto.
4634 (commands_command, insert_breakpoints): Ditto.
4635 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4636 (break_at_finish_command_1): Ditto.
4637
3771659b
AC
46382003-08-09 Andrew Cagney <cagney@redhat.com>
4639
4640 * MAINTAINERS (language support): List Adam Fedor as Objective C
4641 maintainer.
4642
b4263afa
JB
46432003-08-08 J. Brobecker <brobecker@gnat.com>
4644
4645 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4646 are now multiarched.
4647
d84defb1
JB
46482003-08-08 J. Brobecker <brobecker@gnat.com>
4649
4650 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4651 longer necessary now that hppa64 is partially multiarch'ed.
4652
f786f615
AC
46532003-08-08 Andrew Cagney <cagney@redhat.com>
4654
4655 * interps.c (interp_set): Check for a NULL "old_interp".
4656
c938e9b0
L
46572003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4658
4659 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4660 (install-only): Support DESTDIR.
4661 (uninstall): Likewise.
4662 (install-gdbtk): Likewise.
4663
9a146a11
EZ
46642003-08-08 Elena Zannoni <ezannoni@redhat.com>
4665
4666 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4667 contains something meaningful at all times.
4668
4669Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4670
62599e99 4671 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4672
56296155
BC
4673Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4674
62599e99 4675 * MAINTAINERS (write after approval): Added self.
56296155 4676
9710e734
AC
46772003-08-07 Andrew Cagney <cagney@redhat.com>
4678
4679 * inferior.h (AT_SYMBOL): Define.
4680 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4681 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4682 * mips-tdep.c (mips_call_dummy_address): Delete function.
4683 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4684 set call_dummy_address.
4685
98b3ab73
AC
46862003-08-07 Andrew Cagney <cagney@redhat.com>
4687
4688 * language.c (op_error): Delete function.
4689 (binop_type_check): Delete function.
4690 * language.h (type_op_error, range_op_error): Delete macros.
4691 (op_error): Delete declaration.
4692
2fcf52f0
AC
46932003-08-07 Andrew Cagney <cagney@redhat.com>
4694
4695 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4696
abd4220e 46972003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4698
abd4220e 4699 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4700 (x86_64_push_arguments): Skip the red zone.
abd4220e 4701
9dd5f34f
AC
47022003-08-05 Andrew Cagney <cagney@redhat.com>
4703
4704 * reggroups.c (reggroup_next): Check for the final entry.
4705
e5e78edc
AC
47062003-08-04 Andrew Cagney <cagney@redhat.com>
4707
ab4e3d93
AC
4708 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4709 * cli/cli-script.c (define_command): Call query directly, instead
4710 of passing it a buffer.
4711 * ocd.c (ocd_error): Pass error a constant format string.
4712 * remote-mips.c (mips_error): Use fputs_filtered.
4713
1062ca82
AC
4714 * solib-svr4.c (_initialize_svr4_solib): Update
4715 register_gdbarch_data call.
4716 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4717
fcc1c85c
AC
4718 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4719 (register_gdbarch_data): Delete "free" parameter. Update
4720 comments.
4721 * gdbarch.h, gdbarch.c: Re-generate.
4722 * reggroups.c (_initialize_reggroup): Update.
4723 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4724 * frame-base.c (_initialize_frame_base): Update.
4725 * frame-unwind.c (_initialize_frame_unwind): Update.
4726 * user-regs.c (_initialize_user_regs): Update.
4727 * remote.c (_initialize_remote): Update.
4728 * regcache.c (_initialize_regcache): Update.
4729
116f06ea
AC
4730 * regcache.c (xfree_regcache_descr): Delete function.
4731 (_initialize_regcache): Update call to register_gdbarch_data.
4732 (init_regcache_descr, init_legacy_regcache_descr): Use
4733 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4734
e5e78edc
AC
4735 * remote.c (free_remote_state): Delete function.
4736 (_initialize_remote): Update register_gdbarch_data.
4737 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4738 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4739
6c7d17ba
AC
47402003-08-04 Andrew Cagney <cagney@redhat.com>
4741
4742 * reggroups.c (struct reggroup_el): Define.
4743 (struct reggroups): Delete field "nr_group". Replace array
4744 "group" with a "first" to "last" linked list.
4745 (reggroups_init): Update. Allocate using gdbarch's obstack.
4746 (reggroups_free): Delete function.
4747 (add_group): Update. Add "el" parameter.
4748 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4749 (default_groups): Update.
4750 (reggroup_next): Replace reggroups.
4751 (reggroups_dump): Update.
4752 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4753 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4754 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4755
89b7795b
DJ
47562003-08-04 Daniel Jacobowitz <drow@mvista.com>
4757
4758 * Makefile.in (tui-interp.o): Update dependencies.
4759
306d9ac5
DC
47602003-08-04 David Carlton <carlton@kealia.com>
4761
4762 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4763 to internal_error call.
4764 * source.c (forward_search_command): Add "%s" format argument.
4765 (reverse_search_command): Ditto.
4766 * top.c (quit_confirm): Ditto.
4767 * cli/cli-setshow.c (do_setshow_command): Ditto.
4768 * cp-valprint.c (cp_print_class_method): Replace
4769 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4770 (cp_print_class_member): Ditto.
4771 * event-top.c (command_line_handler): Ditto.
4772 * linux-proc.c (linux_info_proc_cmd): Ditto.
4773 * p-typeprint.c (pascal_type_print_base): Ditto.
4774 * p-valprint.c (pascal_object_print_class_method): Ditto.
4775 (pascal_object_print_class_member): Ditto.
4776 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4777 * remote.c (remote_cisco_section_offsets): Ditto.
4778 * top.c (command_line_input): Ditto.
4779 * utils.c (vwarning,error_stream,quit): Ditto.
4780 * valprint.c (print_floating,print_binary_chars)
4781 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4782
57bfe177
AC
47832003-08-04 Andrew Cagney <cagney@redhat.com>
4784
4785 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4786
e546b999
AC
47872003-08-02 Andrew Cagney <cagney@redhat.com>
4788
4789 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4790 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4791 amd64fbsd-nat.c.
4792
91092ee5
AC
47932003-08-02 Andrew Cagney <cagney@redhat.com>
4794
4795 * Makefile.in: Update all dependencies and definitions.
4796
889f28e2
AF
47972003-08-02 Adam Fedor <fedor@gnu.org>
4798
4799 * linespec.c (is_objc_method_format): New function
4800 (decode_line_1, locate_first_half): Use it.
4801 Fixes PR objc/1298
4802
880bc914
AC
48032003-08-01 Andrew Cagney <cagney@redhat.com>
4804
4805 * NEWS: Mention that m32r is multi-arch.
4806 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4807 * configure.tgt: Recognize m32r-*-*.
4808 * config/m32r/tm-m32r.h: Delete file.
4809 * config/m32r/m32r.mt: New file.
a8f4cde1 4810 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4811 gethostname succeeds, in order to avoid a compilation
4812 warning.
4813 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4814 compiler warning.
4815
19f59343
MS
48162003-08-01 Michael Snyder <msnyder@redhat.com>
4817
4818 * sh-tdep.c (sh_frame_align): New gdbarch method.
4819 (sh_gdbarch_init): Set up frame_align method.
4820
4e7d7511
MS
48212003-07-31 Michael Snyder <msnyder@redhat.com>
4822
4823 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4824 which is already covered by the new frames infrastructure.
4825
63022984
AC
48262003-07-31 Andrew Cagney <cagney@redhat.com>
4827
4828 * user-regs.c (struct user_reg): Add "next" link.
4829 (struct user_regs): Replace "user" with "first" and "last" links.
4830 (append_user_reg): Add pre-allocated "reg" parameter.
4831 (builtin_user_regs): Provide initial value for "last".
4832 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4833 (user_regs_init): Allocate memory from the gdbarch obstack.
4834 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4835 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4836 linked list.
4837 (usernum_to_user_reg): New function.
4838 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4839 (value_of_user_reg): Use usernum_to_user_reg.
4840 (user_regs_free): Delete function.
4841 (_initialize_user_regs): Update register_gdbarch_data call.
4842
7cf6e574
DJ
48432003-07-31 Daniel Jacobowitz <drow@mvista.com>
4844
4845 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4846
c48a845b
MS
48472003-07-30 Michael Snyder <msnyder@redhat.com>
4848
4e7d7511 4849 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4850 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4851 value_being_returned.
4852 * infcmd.c (print_return_value): Pass zero as struct_addr.
4853 * values.c (value_being_returned): If struct_addr is passed,
4854 use it instead of trying to recover it from the inferior.
4855
f0d8db19
KB
48562003-07-30 Kevin Buettner <kevinb@redhat.com>
4857
4858 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4859 the prologue analyzer won't need to attempt to extract the pc
4860 value from the woefully incomplete dummy frame.
4861 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4862 possible. Disable code which modifies the frame.
4863
e5c113a1
AC
48642003-07-28 Andrew Cagney <cagney@redhat.com>
4865
4866 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4867 to level 2.
4868 (annotate_breakpoints_table, annotate_record): Ditto.
4869 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4870 (annotate_field_name_end, annotate_field_value): Ditto.
4871 (annotate_field_end, annotate_frame_source_begin): Ditto.
4872 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4873 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4874 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4875 (annotate_frame_address_end, annotate_frame_address): Ditto.
4876 (annotate_frame_args, annotate_frame_end): Ditto.
4877 (annotate_frame_where, annotate_arg_begin): Ditto.
4878 (annotate_arg_name_end, annotate_arg_value): Ditto.
4879 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4880 (annotate_function_call, annotate_signal_name): Ditto.
4881 (annotate_signal_string, annotate_signal_name_end): Ditto.
4882 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4883 (annotate_value_begin, annotate_value_history_value): Ditto.
4884 (annotate_value_history_end, annotate_value_end): Ditto.
4885 (annotate_display_begin, annotate_display_number_end): Ditto.
4886 (annotate_display_format, annotate_display_expression): Ditto.
4887 (annotate_display_expression_end, annotate_display_value): Ditto.
4888 (annotate_display_end, annotate_array_section_begin): Ditto.
4889 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4890 (annotate_elt, annotate_array_section_end): Ditto.
4891
bb1db049
AC
48922003-07-28 Andrew Cagney <cagney@redhat.com>
4893
4894 * regcache.c (struct regcache_descr): Update comments on
4895 nr_raw_registers.
4896 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4897 sizeof_raw_register_valid_p.
4898 (init_regcache_descr): Set nr_raw_registers and
4899 sizeof_raw_register_valid_p before calling
4900 init_legacy_regcache_descr.
4901
20e6603c
AC
49022003-07-28 Andrew Cagney <cagney@redhat.com>
4903
4904 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4905 MOD NUM_REGS.
4906
db742940
DJ
49072003-07-28 Daniel Jacobowitz <drow@mvista.com>
4908
4909 * thread.c (info_threads_command): Use get_selected_frame ().
4910 Check that there is at least one non-sentinel frame.
4911
ce7f4371
SC
49122003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4913
4914 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4915 (m68hc11_pop_frame): Remove.
4916 (m68hc11_frame_saved_pc): Remove.
4917 (m68hc11_frame_chain): Remove.
4918 (m68hc11_frame_init_saved_regs): Remove.
4919 (m68hc11_init_extra_frame_info): Remove.
4920 (m68hc11_store_struct_return): Remove.
4921 (m68hc11_saved_pc_after_call): Remove.
4922
1ea653ae
SC
49232003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4924
4925 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4926 frame unwind information.
4927 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4928 and adapted for frame unwinding.
4929 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4930 (m68hc11_unwind_pc): New function.
4931 (m68hc11_frame_unwind_cache): New function to analyze frames.
4932 (m68hc11_frame_this_id): New function to create new frame struct.
4933 (m68hc11_frame_prev_register): New function to unwind a register from
4934 the frame.
4935 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4936 (m68hc11_frame_p): New function for the above.
4937 (m68hc11_frame_base_address): New function to return fp of frame.
4938 (m68hc11_frame_args_address): Update for frame.
4939 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4940 (m68hc11_unwind_sp): New function.
4941 (m68hc11_unwind_dummy_id): New function.
4942 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4943 calls.
4944
c8a7f6ac
SC
49452003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4946
4947 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4948 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4949 when we are beyond the current pc.
4950
3dc990bf
SC
49512003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4952
4953 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4954 from m68hc11_push_arguments.
4955 (m68hc11_push_arguments): Remove.
4956 (m68hc11_push_return_address): Remove.
4957 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4958 handlers; remove deprecated_extra_stack_alignment_needed.
4959
222e5d1d
AC
49602003-07-27 Andrew Cagney <cagney@redhat.com>
4961
4962 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4963 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4964 REAL_PC and not the pointer.
4965 * hppa-hpux-tdep.c: Include frame.h
4966
a7e9a47e
AC
49672003-07-27 Andrew Cagney <cagney@redhat.com>
4968
4969 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4970 GDB_MULTI_ACH_PARTIAL.
4971
7e3dd49e
AC
49722003-07-27 Andrew Cagney <cagney@redhat.com>
4973
4974 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4975 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4976 operator at start and not end of line.
4977 (decode_prologue): Ditto.
4978 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4979 frame_unwind_register_unsigned instead of
4980 frame_unwind_unsigned_register.
4981 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4982 read_register.
4983 (m32r_push_dummy_call): Use register_size instead of
4984 REGISTER_RAW_SIZE.
4985 (m32r_frame_sniffer): Replace m32r_frame_p.
4986 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4987 * m32r-rom.c (report_transfer_performance): Delete extern
4988 declaration.
4989 (m32r_load, m32r_upload_command): Use print_transfer_performance
4990 instead of report_transfer_performance.
4991 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4992 / add_show_from_set.
4993
0880807f
AC
49942003-07-26 Andrew Cagney <cagney@redhat.com>
4995
4996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4997 store_return_value and extract_struct_value_address.
4998
64ae9269
DJ
49992003-07-26 Daniel Jacobowitz <drow@mvista.com>
5000
5001 PR c++/1267
5002 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5003 NULL, default to the section containing PC.
5004
e286caf2
SC
50052003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5006
5007 * NEWS: Mention "regs" deprecated for m68hc11 too.
5008
5009 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5010 (m68hc11_print_register): New function to print out one register.
5011 (m68hc11_print_registers_info): New function to print registers.
5012 (show_regs): Deprecate and use the above.
5013 (m68hc11_gdbarch_init): Install the print_registers_info.
5014
705b278b
JJ
50152003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5016
5017 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5018 that we have a SIGTRAP before returning non-zero.
5019
63cd4198
EZ
50202003-07-23 Michal Ludvig <mludvig@suse.cz>
5021 Elena Zannoni <ezannoni@redhat.com>
5022
a8f4cde1 5023 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5024 find_function_start_sal() returns empty record.
5025
6926787d
AS
50262003-07-23 Andreas Schwab <schwab@suse.de>
5027
5028 * ia64-tdep.c (ia64_print_insn): New function.
5029 (ia64_gdbarch_init): Set print_insn to it.
5030 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5031 deprecated_tm_print_insn_info.
5032
708cc1b6
MS
50332003-07-22 Michael Snyder <msnyder@redhat.com>
5034
5035 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5036 handle 8-bit returns (long long).
5037 (h8300h_extract_return_value): Ditto.
5038 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5039
aebd7893
AC
50402003-07-22 Andrew Cagney <cagney@redhat.com>
5041
5042 * gdbarch.c Include "gdb_obstack.h".
5043 (struct gdbarch): Add an "obstack".
5044 (alloc_gdbarch_data): Allocate the gdbarch data using
5045 GDBARCH_OBSTACK_CALLOC.
5046 (free_gdbarch_data): Delete function.
5047 (gdbarch_obstack_zalloc): New function.
5048 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5049 Assert that the architecture is not initialized.
5050 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5051 vector from the obstack.
5052 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5053 architecture obstack.
5054 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5055 (set_gdbarch_data): Assert that the data is not initialized.
5056 (struct gdbarch_data): Delete member "free".
5057 (register_gdbarch_data): Do not initialize "free".
5058 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5059
153721e6
AC
50602003-07-22 Andrew Cagney <cagney@redhat.com>
5061
5062 * configure.in (build_warnings): Add -Wformat-nonliteral.
5063 * configure: Re-generate.
5064
c193f044 50652003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5066
5067 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5068
c3228f12
EZ
50692003-07-22 Elena Zannoni <ezannoni@redhat.com>
5070
5071 * findvar.c (read_var_value): Remove case for thread local storage
5072 variables. It is now entirely handled by the dwarf2 location
5073 expression code.
5074 * printcmd.c (address_info): Ditto.
5075 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5076 enumeration value.
5077 (struct symbol): Remove objfile field, which was used by
5078 LOC_THREAD_LOCAL_STATIC only.
5079 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5080 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5081 usage of objfile pointer.
5082 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5083 thread local variables.
5084 Add include of objfiles.h.
5085 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5086 storage variables.
5087 * Makefile.in (dwarf2loc.o): Update dependencies.
5088
aef9bcd2
AC
50892003-07-22 Andrew Cagney <cagney@redhat.com>
5090
5091 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5092 get_frame_base.
5093 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5094 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5095 (struct value): Add opaque declaration.
5096 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5097
d95a8903
AC
50982003-07-21 Andrew Cagney <cagney@redhat.com>
5099
5100 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5101 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5102
4db73d49
SC
51032003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5104
a8f4cde1 5105 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5106 regcache_cooked_read_unsigned instead of read_register.
5107 (m68hc11_saved_pc_after_call): Likewise.
5108 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5109 instead of write_register.
5110 (m68hc11_register_type): New function.
5111 (m68hc11_register_virtual_type): Remove.
5112 (m68hc11_store_return_value): Convert to use the regcache.
5113 (m68hc11_extract_struct_value_address): Likewise.
5114 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5115 m68hc11_register_type; undeprecate store_return_value and
5116 extract_struct_value_address.
5117
ef2b8fcd
SC
51182003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5119
5120 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5121 and translate to use regcache.
5122 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5123
625b0b97
AC
51242003-07-18 Andrew Cagney <cagney@redhat.com>
5125
5126 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5127 * gdbarch.h, gdbarch.c: Re-generate.
5128 * i386-tdep.c (i386_gdbarch_init): Do not set
5129 DWARF2_BUILD_FRAME_INFO.
5130 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5131 unconditionally.
5132 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5133 DWARF2_BUILD_FRAME_INFO.
5134
22b0d388
AC
51352003-07-18 Andrew Cagney <cagney@redhat.com>
5136
5137 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5138 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5139
1ce5d6dd
AC
51402003-07-18 Andrew Cagney <cagney@redhat.com>
5141
5142 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5143 frame_unwind_address_in_block, instead of frame_pc_unwind.
5144 (dwarf2_frame_cache): Ditto.
5145
e6e5e94c
AC
51462003-07-18 Andrew Cagney <cagney@redhat.com>
5147
5148 * user-regs.h (struct gdbarch): Declare opaque.
5149 * ui-out.h (struct ui_file): Declare opaque.
5150 * dwarf2-frame.h (struct frame_info): Declare opaque.
5151
5483d879
KW
51522003-07-18 Kris Warkentin <kewarken@qnx.com>
5153
5154 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5155 #include "...".
5156 (procfs_meminfo): Change strerror to safe_strerror.
5157 (procfs_can_run): Remove K&R badness.
5158
278a7cf7
MS
51592003-07-17 Michael Snyder <msnyder@redhat.com>
5160
5161 * remote-sim.c: Comment typo fix.
5162
606e3b82
AC
51632003-07-17 Andrew Cagney <cagney@redhat.com>
5164
5165 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5166 configure.
5167 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5168 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5169 GDB_MULTI_ARCH_PARTIAL.
5170
c43af07c
EZ
51712003-07-17 Elena Zannoni <ezannoni@redhat.com>
5172
5173 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5174 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5175 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5176
3b85b0f1
TR
51772003-07-16 Theodore A. Roth <troth@openavr.org>
5178
5179 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5180 found.
5181 (avr_frame_unwind_cache): Don't unwind FP for main.
5182 Update a comment.
5183 Save the computed prev_sp.
5184 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5185 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5186 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5187
336d1bba
AC
51882003-07-16 Andrew Cagney <cagney@redhat.com>
5189
5190 * frame-base.h (frame_base_p_ftype): Delete definition.
5191 (frame_base_append_predicate): Delete declaration.
5192 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5193 (frame_unwind_append_predicate): Delete declaration.
5194 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5195 (append_predicate): Delete parameter "p".
5196 (frame_unwind_append_predicate): Delete function.
5197 (frame_unwind_append_sniffer): Update call to append_predicate.
5198 (frame_unwind_free): Delete function.
5199 (_initialize_frame_unwind): Pass NULL as "free" to
5200 register_gdbarch_data.
5201 (frame_unwind_init): Append the dummy_frame_sniffer.
5202 (frame_unwind_find_by_frame): Simplify.
5203 * frame-base.c (struct frame_base_table): Delete field "p".
5204 (append_predicate): Delete parameter "p".
5205 (frame_base_append_predicate): Delete function.
5206 (frame_base_append_sniffer): Update call to append_predicate.
5207 (frame_base_free): Delete function.
5208 (frame_base_find_by_frame): Simplify.
5209 (_initialize_frame_base): Pass NULL as "free" to
5210 register_gdbarch_data.
5211 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5212 (x86_64_sigtramp_frame_sniffer): Replace
5213 "x86_64_sigtramp_frame_p".
5214 (x86_64_init_abi): Set the frame unwind sniffers.
5215 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5216 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5217 (m68k_gdbarch_init): Set the frame unwind sniffers.
5218 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5219 "i386_sigtramp_frame_p".
5220 (i386_frame_sniffer): Replace "i386_frame_p".
5221 (i386_gdbarch_init): Set the frame unwind sniffers.
5222 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5223 (avr_gdbarch_init): Set the frame unwind sniffers.
5224 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5225 "alpha_sigtramp_frame_p"
5226 (alpha_heuristic_frame_sniffer): Replace
5227 "alpha_heuristic_frame_p".
5228 (alpha_gdbarch_init): Set the frame unwind sniffers.
5229 (alpha_dwarf2_init_abi): Ditto.
5230 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5231 "alpha_debug_frame_p".
5232 (alpha_mdebug_frame_base_sniffer): Replace
5233 "alpha_mdebug_frame_base_p".
5234 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5235 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5236 (d10v_gdbarch_init): Set the frame unwind sniffer.
5237 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5238 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5239 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5240 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5241 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5242 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5243
48db5a3c
CV
52442003-07-16 Michael Snyder <msnyder@redhat.com>
5245
5246 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5247 should go thru sh_dsp_register_sim_regno, else the dsp regs
5248 will not get the right values.
5249
52502003-07-16 Corinna Vinschen <vinschen@redhat.com>
5251
5252 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5253 deprecated_store_floating by call to store_typed_floating.
5254 (sh_sh4_register_convert_to_raw): Substitute call to
5255 deprecated_extract_floating by call to extract_typed_floating.
5256
52572003-07-16 Corinna Vinschen <vinschen@redhat.com>
5258
5259 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5260
52612003-07-16 Corinna Vinschen <vinschen@redhat.com>
5262
5263 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5264 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5265 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5266 as possible.
5267 (do_pseudo_register): Remove.
5268 (sh_push_dummy_code): New function.
5269 (sh64_store_struct_return): Rename from sh_store_struct_return.
5270 Only called for sh64 now.
5271 (sh_extract_struct_value_address): Regcache'ify.
5272 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5273 and accomodate new tasks.
5274 (sh64_push_return_address): Rename from sh_push_return_address.
5275 Only called for sh64 now.
5276 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5277 Regcache'ify.
5278 (sh3e_sh4_extract_return_value): Regcache'ify.
5279 (sh_default_store_return_value): Ditto.
5280 (sh3e_sh4_store_return_value): Ditto.
5281 (sh_default_register_byte): Remove.
5282 (sh_sh4_register_byte): Remove.
5283 (sh_default_register_raw_size): Remove.
5284 (sh_sh4_register_raw_size): Remove.
5285 (sh_register_virtual_size): Remove.
5286 (sh_sh3e_register_virtual_type): Remove.
5287 (sh_sh3e_register_type): New function.
5288 (sh_sh4_register_virtual_type): Remove.
5289 (sh_sh4_register_type): New function.
5290 (sh_default_register_virtual_type): Remove.
5291 (sh_default_register_type): New function.
5292 (do_fv_register_info): Add parameters to accomodate call from
5293 sh_print_registers_info.
5294 (do_dr_register_info): Ditto.
5295 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5296 Add parameters to accomodate call from sh_print_registers_info.
5297 (sh_do_fp_register): Ditto.
5298 (sh64_do_pseudo_register): Call do_dr_register_info,
5299 do_fv_register_info and sh_do_fp_register with default parameters.
5300 (sh_do_register): Add parameters to accomodate call from
5301 sh_print_registers_info.
5302 (sh_print_register): Ditto.
5303 (sh_print_registers_info): Rename from sh_do_registers_info.
5304 Add parameters to be used as gdbarch_print_registers_info
5305 implementation. Accomodate removed do_pseudo_register function
5306 pointer.
5307 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5308 function pointer. Call sh_print_register with default parameters.
5309 (sh64_do_registers_info): Call sh_print_registers_info instead of
5310 sh_do_registers_info.
5311 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5312 detection of deprecated vs. non-deprecated functionality.
5313 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5314 function pointer assignments by direct function calls.
5315
e8a89fe2
AC
53162003-07-15 Andrew Cagney <cagney@redhat.com>
5317
5318 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5319 (frame_register_unwind, create_new_frame): Ditto.
5320 (legacy_get_prev_frame, get_frame_type): Ditto.
5321 (get_frame_base_address): Use frame_base_find_by_frame.
5322 (get_frame_locals_address): Use frame_base_find_by_frame.
5323 (get_frame_args_address): Use frame_base_find_by_frame.
5324 * frame-base.h (frame_base_sniffer_ftype): Declare.
5325 (frame_base_append_sniffer): Declare.
5326 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5327 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5328 (frame_base_append_sniffer): New function.
5329 (frame_base_append_predicate): Add a NULL sniffer.
5330 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5331 (struct frame_base_table): Add "sniffer".
5332 (frame_base_free): Free the "sniffer" table.
5333 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5334 (frame_unwind_append_sniffer): Declare.
5335 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5336 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5337 (struct frame_unwind_table): Add "sniffer", delete "middle".
5338 (append_predicate): Add "sniffer" parameter, append the sniffer.
5339 (frame_unwind_init): Update append_predicate call.
5340 (frame_unwind_append_sniffer): New function.
5341 (frame_unwind_append_predicate): Update append_predicate call.
5342 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5343
0714963c
AC
53442003-07-15 Andrew Cagney <cagney@redhat.com>
5345
5346 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5347 before code inhibiting repeated unwind attempts. Add to
5348 commentary on that test's problems.
5349 * blockframe.c (inside_main_func): Look for "main" in the minimal
5350 symbol table.
5351 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5352 identical.
5353
d9170e22
AC
53542003-07-15 Andrew Cagney <cagney@redhat.com>
5355
5356 * complaints.c (struct explanation): Define.
5357 (struct complaints): Change type of "explanation" to "struct
5358 explanation".
5359 (symfile_explanations): Convert to a "struct explanation" table.
5360 (vcomplaint): Update.
5361
eba29c8c
ML
53622003-07-15 Michal Ludvig <mludvig@suse.cz>
5363
5364 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5365 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5366 x86_64_linux_(fill,supply)_gregset functions.
5367 * x86-64-linux-tdep.c (USER_*): New defines.
5368 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5369 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5370 New functions.
5371 (fetch_core_registers): Ditto.
5372 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5373 * x86-64-linux-tdep.h: New file.
5374 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5375 and core-regset.o.
5376 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5377
68cc0bfb
MK
53782003-07-13 Mark Kettenis <kettenis@gnu.org>
5379
88a115f7
MK
5380 * x86-64-tdep.c (x86_64_store_return_value): Use
5381 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5382
68cc0bfb
MK
5383 * configure.host: Add x86_64-*-freebsd*.
5384 * configure.tgt: Add x86_64-*-freebsd*.
5385 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5386 * amd64fbsd-nat.c: New file.
5387 * amd64fbsd-tdep.c: New file.
5388 * config/i386/nm-fbsd64.h: New file.
5389 * config/i386/fbsd64.mh: New file.
5390 * config/i386/fbsd64.mt: New file.
5391
138e7be5
MK
53922003-07-11 Mark Kettenis <kettenis@gnu.org>
5393
5394 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5395 `sc_regs_offset' and `sc_fpregs_offset'.
5396 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5397 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5398 (alpha_sigtramp_register_address): Rewrite to use new members of
5399 `struct gdbarch_tdep'.
5400 (alpha_gdbarch_init): Initialize new members of struct
5401 gdbarch_tdep'.
5402 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5403 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5404 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5405 (alphafbsd_pc_in_sigtramp): Implement.
5406 (alphafbsd_sigtramp_offset): New function.
5407 (alphafbsd_sigcontext_addr): New function.
5408 (alphafbsd_init_abi): Initialize signal trampoline related members
5409 of `struct gdbarch_tdep'.
5410 (_initialize_alphafbsd_tdep): Add prototype.
5411
95303a68
TR
54122003-07-11 Theodore A. Roth <troth@openavr.org>
5413
ba292e4c
TR
5414 * Makefile.in (install-only): Quote sed expression when generating
5415 transformed_name.
95303a68 5416
6896c0c7
RH
54172003-07-11 Richard Henderson <rth@redhat.com>
5418
5419 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5420 * dwarf2-frame.c: Include complaints.h.
5421 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5422 variable initialization; return NULL on error.
5423 (decode_frame_entry): New.
5424
8edd5d01
AC
54252003-07-11 Andrew Cagney <cagney@redhat.com>
5426
c4a09524
AC
5427 * frame.h (frame_address_in_block): Delete declaration.
5428 * blockframe.c (frame_address_in_block): Delete function.
5429 (get_frame_block): Use get_frame_address_in_block.
5430 (block_innermost_frame): Ditto.
5431 * stack.c (print_frame, backtrace_command_1): Ditto.
5432
8edd5d01
AC
5433 * frame.h (get_frame_address_in_block): Declare.
5434 (frame_unwind_address_in_block): Declare.
5435 * frame.c (frame_unwind_address_in_block): New function.
5436 (get_frame_address_in_block): New function.
5437
f7968451
AC
54382003-07-10 Andrew Cagney <cagney@redhat.com>
5439
5440 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5441 pre-default. Note: re-generate has no effect.
a8f4cde1 5442
ae99b398
AC
54432003-07-10 Andrew Cagney <cagney@redhat.com>
5444
5445 * gdbarch.sh: When a variable, but not a function, compare against
5446 0. Fix problem in previous patch.
5447 * gdbarch.c: Re-generate.
a8f4cde1 5448
956ac328
AC
54492003-07-10 Andrew Cagney <cagney@redhat.com>
5450
5451 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5452 functions against NULL, not 0.
5453 * gdbarch.c: Re-generate.
a8f4cde1 5454
287c3240
FF
54552003-07-10 Fred Fish <fnf@ninemoons.com>
5456
5457 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5458 null string instead of a null pointer.
5459 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5460
32f63c4b
MS
54612003-07-09 Michael Snyder <msnyder@redhat.com>
5462
5463 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5464
402ecd56
MK
54652003-07-09 Mark Kettenis <kettenis@gnu.org>
5466
5467 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5468 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5469 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5470 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5471 * x86-64-tdep.c: ... from here.
5472
c481dac7
AS
54732003-07-09 Andreas Schwab <schwab@suse.de>
5474
5475 * m68k-tdep.h (enum struct_return): Define.
5476 (struct gdbarch_tdep): Add struct_return.
5477 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5478 bytes are padded to the right, not to the left. Pass struct value
5479 address in register %a1, not on stack.
5480 (m68k_use_struct_convention): New function.
5481 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5482 struct_return in tdep to pcc_struct_return.
5483 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5484 reg_struct_return.
5485
a8f4cde1 54862003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5487
a8f4cde1 5488 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5489
96a4ee76
AC
54902003-07-09 Andrew Cagney <cagney@redhat.com>
5491
5492 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5493 Add comments about the checks.
5494
1517c6d1
AC
54952003-07-08 Andrew Cagney <cagney@redhat.com>
5496
5497 * Makefile.in: Make dependency section headers consistent.
5498 (config_h): Move to $BUILD headers section.
5499 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5500 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5501 (ada-exp.tab.c): Move to YACC/LEX section.
5502 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5503 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5504
dc5dd1eb
KW
55052003-07-08 Kris Warkentin <kewarken@qnx.com>
5506
5507 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5508 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5509 of strerror with safe_strerror, use ISO C function definitions,
5510 and replace instances of sprintf with snprintf.
dc5dd1eb 5511
612dde91
AC
55122003-07-07 Andrew Cagney <cagney@redhat.com>
5513
5514 * frame.c (get_prev_frame): Enable check for identical frames.
5515 Update comments. Update error messages.
5516
492c11d3
JB
55172003-07-07 Joel Brobecker <brobecker@gnat.com>
5518
5519 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5520
376a5a49
JB
55212003-07-07 Joel Brobecker <brobecker@gnat.com>
5522
5523 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5524 sort_symtab_syms, no longer necessary.
5525
22b4a9ad
JB
55262003-07-07 Joel Brobecker <brobecker@gnat.com>
5527
5528 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5529
5bbcb741
JB
55302003-07-07 Joel Brobecker <brobecker@gnat.com>
5531
5532 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5533 (mips_register_byte): Likewise.
5534
c139e7d9
DJ
55352003-07-07 Daniel Jacobowitz <drow@mvista.com>
5536
5537 * Makefile.in (sparc_tdep_h): New.
5538 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5539 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5540 * sparc-linux-nat.c: Include "sparc-tdep.h".
5541 * sparc-nat.c: Likewise.
5542 * sparc-tdep.c: Likewise.
5543 * sparc64nbsd-nat.c: Likewise.
5544 * sparcnbsd-nat.c: Likewise.
5545 * sparcnbsd-tdep.c: Likewise.
5546 * sparc-tdep.h: New file.
5547 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5548 and sparc_npc_regnum.
5549
fd8f87c5
DJ
55502003-07-07 Daniel Jacobowitz <drow@mvista.com>
5551
5552 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5553 (mips_linux_cannot_store_register): List supported instead of
5554 unsupported registers.
5555
13adf674
DJ
55562003-07-07 Daniel Jacobowitz <drow@mvista.com>
5557
5558 * disasm.c (dump_insns): Separate instructions from addresses.
5559
8de307e0
AS
55602003-07-07 Andreas Schwab <schwab@suse.de>
5561
5562 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5563 dependencies.
5564 * m68k-tdep.c (NUM_FREGS): Delete.
5565 (SIG_PC_FP_OFFSET): Delete.
5566 (TARGET_M68K): Delete.
5567 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5568 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5569 P_MOVEL_SP, P_MOVEML_SP): Define.
5570 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5571 P_TRAP): Delete.
5572 (m68k_register_raw_size): Delete.
5573 (m68k_register_virtual_size): Delete.
5574 (m68k_register_type): Renamed from m68k_register_virtual_type and
5575 add gdbarch argument.
5576 (m68k_store_struct_return): Delete.
5577 (m68k_deprecated_extract_return_value): Delete.
5578 (m68k_deprecated_extract_struct_value_address): Delete.
5579 (m68k_frame_chain): Delete.
5580 (m68k_frame_saved_pc): Delete.
5581 (m68k_fix_call_dummy): Delete.
5582 (m68k_push_dummy_frame): Delete.
5583 (m68k_pop_frame): Delete.
5584 (m68k_extract_return_value): New function.
5585 (m68k_store_return_value): Rewrite using regcache.
5586 (m68k_extract_struct_value_address): Rewrite using regcache.
5587 (m68k_push_dummy_call): New function.
5588 (struct m68k_frame_cache): Define.
5589 (m68k_alloc_frame_cache): New function.
5590 (m68k_analyze_frame_setup): New function.
5591 (m68k_analyze_register_saves): New function.
5592 (m68k_analyze_prologue): New function.
5593 (m68k_skip_prologue): Rewrite using above functions.
5594 (m68k_unwind_pc): New function.
5595 (m68k_frame_cache): New function.
5596 (m68k_frame_this_id): New function.
5597 (m68k_frame_prev_register): New function.
5598 (m68k_frame_unwind): New variable.
5599 (m68k_frame_p): New function.
5600 (m68k_sigtramp_frame_cache): New function.
5601 (m68k_sigtramp_frame_this_id): New function.
5602 (m68k_sigtramp_frame_prev_register): New function.
5603 (m68k_sigtramp_frame_unwind): New variable.
5604 (m68k_sigtramp_frame_p): New function.
5605 (m68k_frame_base_address): New function.
5606 (m68k_frame_base): New function.
5607 (m68k_unwind_dummy_id): New function.
5608 (fill_gregset): Use regcache_collect.
5609 (fill_fpregset): Likewise.
5610 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5611 defined.
5612 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5613 deprecated_init_frame_pc, deprecated_store_struct_return,
5614 deprecated_extract_return_value, deprecated_store_return_value,
5615 deprecated_frame_chain, deprecated_frame_saved_pc,
5616 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5617 deprecated_register_virtual_size,
5618 deprecated_max_register_raw_size,
5619 deprecated_max_register_virtual_size,
5620 deprecated_register_virtual_type, deprecated_register_size,
5621 deprecated_register_byte, deprecated_register_bytes,
5622 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5623 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5624 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5625 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5626 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5627 deprecated_push_dummy_frame, deprecated_pop_frame,
5628 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5629 only if SYSCALL_TRAP is defined. Set extract_return_value,
5630 store_return_value, extract_struct_value_address, register_type,
5631 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5632 predicates.
5633 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5634 M68K_MAX_REGISTER_SIZE): Define.
5635 (struct m68k_sigtramp_info): Define.
5636 (struct gdbarch_tdep): Add get_sigtramp_info.
5637 * m68klinux-nat.c (fetch_register): Use register_size instead of
5638 REGISTER_RAW_SIZE. Don't put assignment in if.
5639 (store_register): Likewise.
5640 (fetch_inferior_registers): Likewise.
5641 (store_inferior_registers): Likewise.
5642 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5643 (m68k_linux_frame_saved_pc): Delete.
5644 (m68k_linux_sigcontext_reg_offset,
5645 m68k_linux_ucontext_reg_offset): Define.
5646 (m68k_linux_get_sigtramp_info): New function.
5647 (m68k_linux_extract_return_value): Rewrite using regcache.
5648 (m68k_linux_store_return_value): Likewise.
5649 (m68k_linux_extract_struct_value_address): Likewise.
5650 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5651 Don't set deprecated_frame_saved_pc,
5652 deprecated_extract_return_value, deprecated_store_return_value,
5653 deprecated_extract_struct_value_address. Set
5654 extract_return_value, store_return_value,
5655 extract_struct_value_address.
5656
eb8bc282
AC
56572003-07-07 Andrew Cagney <cagney@redhat.com>
5658
5659 * expprint.c: Include "user-regs.h" instead of "frame.h".
5660 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5661 frame_map_regnum_to_name.
5662 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5663 (frame_map_name_to_regnum): Simplify, call
5664 user_reg_map_name_to_regnum.
5665 (frame_map_regnum_to_name): Simplify, call
5666 user_reg_map_regnum_to_name.
5667 (frame_register_unwind): Update.
5668 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5669 (_initialize_frame_reg): Call user_reg_add_builtin.
5670 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5671 (value_of_register): Use value_of_user_reg.
5672 * eval.c (evaluate_subexp_standard): Update.
5673 * parse.c (write_dollar_variable): Update.
5674 * d10v-tdep.c (d10v_print_registers_info): Update.
5675 * infcmd.c (registers_info): Update.
5676 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5677 (builtin_regs_h): Delete macro.
5678 (user_regs_h): Define.
5679 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5680 (builtin-regs.o): Delete target.
5681 (user-regs.o): Specify dependencies.
5682 (expprint.o): Update dependencies.
5683 (findvar.o): Update dependencies.
5684 (frame.o): Update dependencies.
5685 (std-regs.o): Update dependencies.
5686
9f476a01
CF
56872003-07-06 Christopher Faylor <cgf@redhat.com>
5688
5689 * win32-nat.c (solib_symbols_add): Use one variable for all section
5690 address stuff. Pass variable rather than address of variable to
5691 safe_symbol_file_add.
5692
a731b831
AS
56932003-07-06 Andreas Schwab <schwab@suse.de>
5694
5695 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5696
9f83329d
JB
56972003-07-04 Joel Brobecker <brobecker@gnat.com>
5698
5699 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5700
27e28cc5
KW
57012003-07-04 Kris Warkentin <kewarken@qnx.com>
5702
5703 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5704
57052003-07-04 Kris Warkentin <kewarken@qnx.com>
5706
5707 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5708 * config/i386/nto.mh: New file.
5709 * config/i386/nm-nto.h: New file.
5710 * configure.host: Add i[3456]86-*-nto*.
5711
100f2e98
JB
57122003-07-03 Joel Brobecker <brobecker@gnat.com>
5713
5714 * remote-vx.c (vx_add_symbols): Fix compilation error.
5715
e23457df
AC
57162003-07-03 Andrew Cagney <cagney@redhat.com>
5717
5718 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5719 * gdbarch.h, gdbarch.c: Re-generate.
5720 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5721 (legacy_register_name): Declare.
5722 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5723 (REGISTER_NAME): Define.
5724 * sparc-tdep.c (legacy_register_name): New function.
5725 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5726 (REGISTER_NAME): Define.
5727 (hppa64_register_name): Declare.
5728 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5729 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5730 (hppa64_register_name): New function.
5731 (hppa_register_name): New function.
5732 * arch-utils.c (legacy_register_name): Delete.
5733 * arch-utils.h (legacy_register_name): Delete.
5734
38caaeec
DJ
57352003-07-03 Daniel Jacobowitz <drow@mvista.com>
5736
5737 * cli/cli-interp.c (cli_interpreter_resume): Update the
5738 cli_uiout's stream to gdb_stdout.
5739
dadd712e
AC
57402003-07-03 Andrew Cagney <cagney@redhat.com>
5741
5742 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5743 predicate.
5744 * gdbarch.h, gdbarch.c: Re-generate.
5745 * regcache.c (init_regcache_descr): Use legacy code when either
5746 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5747
c7f1390e
DJ
57482003-07-02 Daniel Jacobowitz <drow@mvista.com>
5749
5750 * NEWS: Move "set logging" entry into GDB 6.0 section.
5751
4bc8c588
JB
57522003-07-02 Jim Blandy <jimb@redhat.com>
5753
a9dd42f1
JB
5754 * s390-tdep.c (struct frame_extra_info): new member:
5755 'stack_bought_valid'.
5756 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5757 initialize fextra_info->stack_bought.
5758 (s390_frameless_function_invocation): Don't trust the value of
5759 fextra_info_ptr->stack_bought unless
5760 fextra_info->stack_bought_valid is set.
5761
4bc8c588
JB
5762 New S390 prologue analyzer.
5763 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5764 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5765 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5766 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5767 compute_x_addr, s390_on_stack, s390_store,
5768 s390_get_signal_frame_info): New functions.
5769 (S390_NUM_SPILL_SLOTS): New macro.
5770 (s390_get_frame_info): Rewritten.
5771 (is_arg_reg): Deleted.
5772
5773 Break out the decoding of S/390 instructions into separate
5774 functions, to make it more legible, and easier to check
5775 against the spec.
5776 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5777 is_rx, is_rxe): New functions.
5778 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5779 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5780 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5781 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5782 enums for opcode values. (Is this an improvement?)
5783
fd13a04a
AC
57842003-07-02 Andrew Cagney <cagney@redhat.com>
5785
5786 * i386-tdep.c: Revert change committed as part of trad-frame code
5787 below.
5788
3f8091c1
DJ
57892003-07-02 Daniel Jacobowitz <drow@mvista.com>
5790
5791 * breakpoint.c (insert_catchpoint): Make static.
5792
8dd5115e
AS
57932003-07-02 Andreas Schwab <schwab@suse.de>
5794
5795 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5796 former ia64_push_arguments and ia64_push_return_address, and use
5797 regcache functions instead of read/write_register.
5798 (ia64_gdbarch_init): Set push_dummy_call instead of
5799 deprecated_push_arguments and deprecated_push_return_address.
5800
a2229c23
AJ
58012003-07-01 Andreas Jaeger <aj@suse.de>
5802
5803 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5804 before the call.
5805 Set %rax only to number of SSE registers used.
5806
3b3850e8
AC
58072003-07-01 Andrew Cagney <cagney@redhat.com>
5808
5809 * trad-frame.h: Update comments, a -1 .addr is reserved.
5810 (trad_frame_value_p, trad_frame_addr_p): Declare.
5811 (trad_frame_reg_p): Declare.
5812 (trad_frame_set_value): Rename trad_frame_register_value.
5813 (trad_frame_set_unknown): Declare.
5814 * trad-frame.c (trad_frame_realreg_p): New function.
5815 (trad_frame_addr_p, trad_frame_value_p): New function.
5816 (trad_frame_set_unknown): New function.
5817 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5818 (trad_frame_prev_register): Use trad_frame_realreg_p,
5819 trad_frame_addr_p and trad_frame_value_p.
5820 (trad_frame_set_value): Rename trad_frame_register_value.
5821 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5822 and trad_frame_set_value.
a2229c23 5823
4d819d0e
JB
58242003-06-30 Jim Blandy <jimb@redhat.com>
5825
5826 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5827 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5828 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5829 for 16 registers, and then 32 more bytes.
5830 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5831 New macros.
5832 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5833 Move up in the file, since it's now used by is_simple_arg.
5834 (is_simple_arg): Don't assume registers are four bytes long.
5835 Exclude all double arguments. Extended floats are not simple
5836 args.
5837 (is_power_of_two): New function.
5838 (pass_by_copy_ref): Call is_power_of_two, and check that the
5839 length fits in a register, rather than listing all the acceptable
5840 sizes. Extended floats are not passed by reference.
5841 (s390_push_arguments): Don't assume registers are four bytes long.
5842 Reserve an argument register to point to the buffer for structures
5843 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5844 S390_STACK_FRAME_OVERHEAD.
5845
1ad828f1
AS
58462003-06-30 Andreas Schwab <schwab@suse.de>
5847
5848 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5849 format error message.
5850
39b00981
JB
58512003-06-30 Joel Brobecker <brobecker@gnat.com>
5852
5853 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5854
b2a7f303
DC
58552003-06-30 David Carlton <carlton@kealia.com>
5856
5857 Band-aid for PR c++/1245.
5858 * Makefile.in (cp-support.o): Depend on complaints_h.
5859 * cp-support.c: Include complaints.h. Add declaration for
5860 find_last_component.
5861 (cp_find_first_component): Separate code into
5862 cp_find_first_component_aux.
5863 (cp_find_first_component_aux): Call demangled_name_complaint.
5864 (demangled_name_complaint): New.
5865
a257b5bb
AC
58662003-06-30 Andrew Cagney <cagney@redhat.com>
5867
5868 * remote.c (remote_write_bytes): Explicitly compute and then use
5869 the payload size. Update comments to reflect. Fixes problem of
5870 GDB not sending small packets as found by Fred Fish.
5871
0a2cfde4
AC
58722003-06-30 Andrew Cagney <cagney@redhat.com>
5873
5874 * remote.c (remote_async_wait): Fix -Wformat problem.
5875
3fcb8548
AC
58762003-06-29 Andrew Cagney <cagney@redhat.com>
5877
5878 * remote.c (remote_wait): Call error, and not warning, when the
5879 packet is corrupt.
5880 (remote_async_wait): Ditto.
5881
9f9970a3
DJ
58822003-06-29 Daniel Jacobowitz <drow@mvista.com>
5883
5884 * sparc-tdep.c (sparc_y_regnum): Make external again.
5885
83a8ccca
DJ
58862003-06-29 Daniel Jacobowitz <drow@mvista.com>
5887
5888 * cli/cli-logging.c (pop_output_files): Add void to function
5889 definition.
5890
d2cf594a
AC
58912003-06-29 Andrew Cagney <cagney@redhat.com>
5892
5893 * frame.c (frame_register_unwind): Use unsigned char when dumping
5894 the buffer contents.
5895
0fac0b41
DJ
58962003-06-28 Daniel Jacobowitz <drow@mvista.com>
5897
5898 * cli/cli-logging.c: New file.
5899 * cli-out.c (struct ui_out_data): Add original_stream.
5900 (cli_redirect): New function.
5901 (cli_ui_out_impl): Add cli_redirect.
5902 (cli_out_new): Initialize original_stream.
5903 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5904 (uo_redirect, ui_out_redirect): New.
5905 * ui-out.h (struct ui_out_impl): Add redirect member.
5906 (redirect_ftype): New.
5907 (ui_out_redirect): Add prototype.
5908 * Makefile.in: Add rules for cli-logging.c.
5909 * NEWS: Mention "set logging".
5910
88a07d7c
EZ
59112003-06-27 Elena Zannoni <ezannoni@redhat.com>
5912
5913 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5914
4eb58876
AC
59152003-06-27 Andrew Cagney <cagney@redhat.com>
5916
5917 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5918 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5919 * avr-tdep.c (avr_call_dummy_address): Delete function.
5920 (avr_gdbarch_init): Do not set call_dummy_address.
5921
1549f619
EZ
59222003-06-27 Elena Zannoni <ezannoni@redhat.com>
5923
5924 * symfile.c (syms_from_objfile): Move variables to inner block.
5925 Move the checks for the non-mainline case a bit earlier to avoid
5926 doing some useless computations.
5927
3cb3398d
EZ
59282003-06-27 Elena Zannoni <ezannoni@redhat.com>
5929
5930 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5931
3799ccc6
EZ
59322003-06-26 Elena Zannoni <ezannoni@redhat.com>
5933
5934 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5935 sections.
5936
ce1f6491
MC
59372003-06-26 Michael Chastain <mec@shout.net>
5938
5939 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5940 gdb/testsuite/gdb.c++/pr-1210.exp.
5941
d958dfd0
AC
59422003-06-26 Andrew Cagney <cagney@redhat.com>
5943
5944 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5945 altivec_expression.h and altivec_registers.h.
5946
d31431ed
AC
59472003-06-26 Andrew Cagney <cagney@redhat.com>
5948
5949 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5950 info->mach when MIPS16. Patch suggested by Fred Fish.
5951
714b1282
AC
59522003-06-26 Andrew Cagney <cagney@redhat.com>
5953
5954 * utils.c (internal_vproblem): Print the problem to a reason
5955 buffer and then pass to query. Make the msg variable more local.
5956
42efa47a
AC
59572003-06-26 Andrew Cagney <cagney@redhat.com>
5958
5959 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5960 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5961 * gdbarch.h, gdbarch.c: Re-generate.
5962 * frame-base.c (default_frame_args_address): Update. Use
5963 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5964 not available.
5965 (default_frame_locals_address): Ditto for
5966 DEPRECATED_FRAME_LOCALS_ADDRESS.
5967 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5968 (vax_frame_num_args): Update.
5969 (vax_gdbarch_init): Update.
5970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5971 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5972 * mcore-tdep.c (mcore_gdbarch_init): Update.
5973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5974 * ia64-tdep.c (ia64_gdbarch_init): Update.
5975 * symtab.h (address_class): Update comments.
5976 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5977 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5978 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5979 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5980 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5981 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5982 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5983 * alpha-mdebug-tdep.c: Update.
5984 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5985
8ffd9b1b
AJ
59862003-06-26 Andreas Jaeger <aj@suse.de>
5987
5988 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5989 of SSE registers so that varargs functions work. Rework handling
5990 of passing arguments on the stack.
5991 (x86_64_store_return_value): Return double and float values in SSE
5992 register.
5993
e8ac10a6
MC
59942003-06-24 Michael Chastain <mec@shout.net>
5995
5996 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5997 the "constructor breakpoints ignored" bug.
5998
986af8e6
DC
59992003-06-25 David Carlton <carlton@kealia.com>
6000
6001 * MAINTAINERS: Update e-mail address.
6002
d64558a5
JB
60032003-06-24 Jim Blandy <jimb@redhat.com>
6004
e538d2d7
JB
6005 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6006
02631ec0
JB
6007 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6008 function.
6009 (ppc_linux_init_abi): Register it as the
6010 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6011
e716d87a
JB
6012 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6013 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6014 method.
6015
d64558a5
JB
6016 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6017 (ppc64_standard_linkage_target): Use it.
6018
449a5da4
AC
60192003-06-23 Andrew Cagney <cagney@redhat.com>
6020
6021 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6022 for 0 "int0" and 4 "int32" sized registers.
6023 * gdbtypes.c (builtin_type_int0): Define.
6024 (build_gdbtypes): Initialize builtin_type_int0.
6025 * gdbtypes.h (builtin_type_int0): Declare.
6026
b2a02dda
SC
60272003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6028
6029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6030 as characters are unsigned.
6031
fba3138e
DJ
60322003-06-22 Daniel Jacobowitz <drow@mvista.com>
6033
6034 PR gdb/1179
6035 * dwarfread.c (struct_type): Skip static fields without crashing.
6036
f6c8180b
AC
60372003-06-22 Andrew Cagney <cagney@redhat.com>
6038
6039 GDB 6.0 branch created.
f2c06f52
AC
6040 * README: Update.
6041 * PROBLEMS: Update. Empty.
6042 * NEWS: Update.
f6c8180b 6043
ae822768
DJ
60442003-06-22 Daniel Jacobowitz <drow@mvista.com>
6045
6046 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6047 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6048
261de166
AC
60492003-06-22 Andrew Cagney <cagney@redhat.com>
6050
6051 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6052 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6053 Velikov.
6054
30e94205
DJ
60552003-06-22 Daniel Jacobowitz <drow@mvista.com>
6056
6057 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6058 compilers.
6059
9e14d721
DJ
60602003-06-21 Daniel Jacobowitz <drow@mvista.com>
6061
6062 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6063 argument of val_print.
6064 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6065 to the address argument of baseclass_offset or target_read_memory.
6066 Do add it to the argument of cp_print_value_fields.
6067
a4b8ebc8
AC
60682003-06-21 Andrew Cagney <cagney@redhat.com>
6069
6070 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6071 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6072 instead of 0..NUM_REGS.
6073 (mips_register_reggroup_p): New function.
6074 (mips_pseudo_register_write): New function.
6075 (mips_pseudo_register_read): New function.
6076 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6077 based on the register's type.
6078 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6079 cooked.
6080 (mips_get_saved_register): Simplify. Assert that REGNO is a
6081 pseudo / cooked.
6082 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6083 (mips_register_type): Replace mips_register_virtual_type. Map
6084 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6085 when available.
6086 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6087 that the register is cooked / virtual.
6088 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6089 Only get the extra info when needed.
6090 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6091 (mips32_heuristic_proc_desc): Fetch the cooked register.
6092 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6093 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6094 (mips_print_register): Use gdbarch_register_type, instead of
6095 REGISTER_VIRTUAL_TYPE.
6096 (print_gp_register_row): Use gdbarch_register_type, instead of
6097 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6098 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6099 Print the pseudo / cooked registers.
6100 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6101 Print the pseudo / cooked registers.
6102 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6103 REG_NUM is pseudo / cooked.
6104 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6105 (mips_n32n64_xfer_return_value): Ditto.
6106 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6107 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6108 (mips_register_sim_regno): New function.
6109 (mips_gdbarch_init): Set deprecated_register_byte,
6110 register_group_p, pseudo_register_write, pseudo_register_read,
6111 register_sim_regno, and num_pseudo_regs. Set register_type,
6112 instead of register_virtual_type.
6113 * Makefile.in (mips-tdep.o): Update dependencies.
6114 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6115 REGISTER_VIRTUAL_TYPE.
6116 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6117 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6118 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6119 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6120 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6121
325ed089
DJ
61222003-06-21 Daniel Jacobowitz <drow@mvista.com>
6123
6124 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6125 * cli/cli-cmds.c: Include "gdb_vfork.h".
6126 (shell_escape): Use vfork.
6127
f0e7d0e8
AC
61282003-06-21 Andrew Cagney <cagney@redhat.com>
6129
c57bb9fa
AC
6130 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6131 32 bit floating-point register saves.
6132
6e51443a
AC
6133 * frame.h (deprecated_unwind_get_saved_register): Delete.
6134 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6135 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6136 and deprecated_get_next_frame_hack instead of
6137 deprecated_unwind_get_saved_register.
6138
ed183c7c
AC
6139 * mips-tdep.c (mips_dump_tdep): Do not print
6140 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6141
f0e7d0e8
AC
6142 * frame.c (get_frame_register): New function.
6143 (frame_unwind_register_signed): New function.
6144 (get_frame_register_signed): New function.
6145 (frame_unwind_register_unsigned): New function.
6146 (get_frame_register_unsigned): New function.
6147 * frame.h: Add comments on naming schema.
6148 (get_frame_register, frame_unwind_register_signed): Declare.
6149 (get_frame_register_signed, get_frame_register_signed): Declare.
6150 (frame_unwind_register_unsigned): Declare.
6151 (get_frame_register_unsigned): Declare.
6152
2224d941
TR
61532003-06-20 Theodore A. Roth <troth@openavr.org>
6154
6155 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6156
8619218d
TR
61572003-06-20 Theodore A. Roth <troth@openavr.org>
6158
6159 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6160 (avr_read_sp): Ditto.
6161
0b1b50c0
DJ
61622003-06-20 Daniel Jacobowitz <drow@mvista.com>
6163
6164 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6165 * config/arm/nm-linux.h: Likewise.
6166 * config/arm/tm-linux.h: Likewise.
6167 * config/ia64/nm-linux.h: Likewise.
6168 * config/ia64/tm-ia64.h: Likewise.
6169 * config/s390/tm-linux.h: Likewise.
6170 * config/s390/tm-s390.h: Likewise.
6171 * s390-nat.c: Likewise.
6172 * s390-tdep.c: Likewise.
6173
6174 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6175 * config/ia64/linux.mt: Likewise.
6176 * config/m68k/linux.mh: Likewise.
6177 * config/mips/linux.mt: Likewise.
6178 * config/powerpc/linux.mh: Likewise.
6179 * config/sh/linux.mt: Likewise.
6180
c8c18e65
KW
61812003-06-19 Kris Warkentin <kewarken@qnx.com>
6182
6183 * solib.c (solib_open): Change tests for whether to search
6184 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6185 comments.
6186
dcccef2e
TR
61872003-06-19 Theodore A. Roth <troth@openavr.org>
6188
6189 * avr-tdep.c (avr_frame_address): Delete function.
6190 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6191 set_gdbarch_frame_args_address.
6192
5861a190
AC
61932003-06-19 Andrew Cagney <cagney@redhat.com>
6194
6195 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6196 (REGISTER_CONVERT_FROM_TYPE): Delete.
6197 (mips_register_convert_to_type): Delete declaration.
6198 (mips_register_convert_from_type): Delete declaration.
6199 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6200 kernel/.
6201
0274a8ce
MS
62022003-06-19 Michael Snyder <msnyder@redhat.com>
6203
6204 * linux-nat.h: New file.
6205 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6206 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6207 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6208 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6209 (linux_make_note_section): Iterate over lwps instead of threads.
6210 (linux_do_thread_registers): Use lwp instead of merged pid.
6211 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6212 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6213 Add dependency on linux_nat_h.
6214
adf5f719
TR
62152003-06-19 Theodore A. Roth <troth@openavr.org>
6216
6217 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6218
6766a268
DJ
62192003-06-19 Daniel Jacobowitz <drow@mvista.com>
6220
6221 * varobj.c (get_type, get_target_type): Use check_typedef.
6222
1171114a
DJ
62232003-06-19 Daniel Jacobowitz <drow@mvista.com>
6224
6225 * breakpoint.c (insert_catchpoint): Call internal_error.
6226
adcf68a2
TR
62272003-06-19 Theodore A. Roth <troth@openavr.org>
6228
6229 * avr-tdep.c (avr_push_dummy_code): Delete function.
6230 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6231
ea67f13b
DJ
62322003-06-19 Daniel Jacobowitz <drow@mvista.com>
6233
6234 * arch-utils.c (default_prepare_to_proceed): Remove.
6235 (generic_prepare_to_proceed): Remove.
6236 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6237 (generic_prepare_to_proceed): Remove prototype.
6238 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6239 * gdbarch.c: Regenerate.
6240 * gdbarch.h: Regenerate.
6241 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6242 * hppah-nat.c (hppa_switched_threads): Remove.
6243 * infrun.c (prepare_to_proceed): New static function, copied from
6244 generic_prepare_to_proceed. Remove select_it argument.
6245 (proceed): Call prepare_to_proceed.
6246 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6247 variables.
6248 (ptrace_wait): Don't set the removed variables.
6249 (hppa_switched_threads): Remove.
6250 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6251 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6252 (lin_lwp_prepare_to_proceed): Remove prototype.
6253 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6254 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6255
4add8633
TR
62562003-06-18 Theodore A. Roth <troth@openavr.org>
6257
6258 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6259 trad-frame.h.
6260 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6261 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6262 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6263 (AVR_PROLOGUE_*): Enumerate prologue types.
6264 (struct frame_extra_info): Remove.
6265 (struct avr_unwind_cache): Define.
6266 (avr_write_sp): Delete function.
6267 (avr_read_fp): Ditto.
6268 (avr_init_extra_frame_info): Ditto.
6269 (avr_pop_frame): Ditto.
6270 (avr_frame_saved_pc): Ditto.
6271 (avr_saved_pc_after_call): Ditto.
6272 (avr_push_return_address): Ditto.
6273 (avr_frame_chain): Ditto.
6274 (avr_store_struct_return): Ditto.
6275 (avr_push_arguments): Ditto.
6276 (avr_scan_prologue): Update comments. Changed to set up the info for
6277 cache unwinding. Now returns end of prologue PC.
6278 (avr_skip_prologue): Better handling of functions lacking a prologue
6279 by using avr_scan_prologue.
6280 (avr_scan_arg_moves): New function.
6281 (avr_saved_regs_unwinder): Ditto.
6282 (avr_frame_unwind_cache): Ditto.
6283 (avr_unwind_pc): Ditto.
6284 (avr_frame_this_id): Ditto.
6285 (avr_frame_prev_register): Ditto.
6286 (avr_frame_p): Ditto.
6287 (avr_frame_base_address ): Ditto.
6288 (avr_unwind_dummy_id): Ditto.
6289 (avr_push_dummy_code): Ditto.
6290 (push_stack_item): Ditto.
6291 (pop_stack_item): Ditto.
6292 (avr_push_dummy_call): Ditto.
6293 (struct stack_item): Define.
6294 (avr_frame_unwind): Declare structure.
6295 (avr_frame_base): Ditto.
6296 (avr_gdbarch_init): Remove calls to
6297 set_gdbarch_deprecated_init_frame_pc,
6298 set_gdbarch_deprecated_target_read_fp,
6299 set_gdbarch_deprecated_dummy_write_sp,
6300 set_gdbarch_deprecated_fp_regnum,
6301 set_gdbarch_deprecated_push_arguments,
6302 set_gdbarch_deprecated_push_return_address,
6303 set_gdbarch_deprecated_pop_frame,
6304 set_gdbarch_deprecated_store_struct_return,
6305 set_gdbarch_deprecated_frame_init_saved_regs,
6306 set_gdbarch_deprecated_init_extra_frame_info,
6307 set_gdbarch_deprecated_frame_chain,
6308 set_gdbarch_deprecated_frame_saved_pc,
6309 set_gdbarch_deprecated_saved_pc_after_call.
6310 Add calls to set_gdbarch_push_dummy_call,
6311 set_gdbarch_push_dummy_code,
6312 frame_unwind_append_predicate,
6313 frame_base_set_default,
6314 set_gdbarch_unwind_dummy_id,
6315 set_gdbarch_unwind_pc.
6316 Wrap a long line.
6317
7be04a68
MS
63182003-06-18 Corinna Vinschen <vinschen@redhat.com>
6319
6320 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6321 registers for H8/300S.
6322 (h8300_print_registers_info): Ditto.
8ffd9b1b 6323 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6324
ae087d01
DJ
63252003-06-18 Daniel Jacobowitz <drow@mvista.com>
6326
6327 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6328 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6329 (lin_lwp_wait): Likewise. Update comments.
6330 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6331 (pull_pid_from_list, linux_record_stopped_pid): New.
6332
07d8f827
SC
63332003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6334
6335 * ada-lang.c (scan_discrim_bound): Name first argument.
6336 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6337 declared by ALL_BLOCK_SYMBOLS.
6338
7cb47b14
SC
63392003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6340
6341 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6342 ("regcache.h"): Include it.
6343 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6344
6ad8ae5c
DJ
63452003-06-17 Daniel Jacobowitz <drow@mvista.com>
6346
6347 * NEWS: Mention gdbserver detach change and "disconnect" command.
6348 * infcmd.c (disconnect_command): New function.
6349 (_initialize_infcmd): Add ``disconnect'' command.
6350 * remote.c (remote_async_detach): Delete.
6351 (remote_detach): Merge remote_async_detach.
6352 (remote_disconnect): New.
6353 (init_remote_ops): Set to_disconnect.
6354 (init_remote_cisco_ops): Likewise.
6355 (init_remote_async_ops): Likewise. Use remote_detach.
6356 * target.c (cleanup_target): Default to_disconnect.
6357 (update_current_target): Inherit to_disconnect.
6358 (target_disconnect, debug_to_disconnect): New functions.
6359 (setup_target_debug): Set to_disconnect.
6360 * target.h (struct target_ops): Add to_disconnect.
6361 (target_disconnect): Add prototype.
6362
687595f9
DJ
63632003-06-17 Daniel Jacobowitz <drow@mvista.com>
6364
6365 * breakpoint.c (insert_catchpoint): New function.
6366 (insert_breakpoints): Use catch_exceptions to call
6367 insert_catchpoint. Disable catchpoints if they fail to insert.
6368
29239a8f
DJ
63692003-06-17 Daniel Jacobowitz <drow@mvista.com>
6370
6371 * symfile.c (reread_symbols): Clear sym_private.
6372
2cdf3c63
AC
63732003-06-17 Andrew Cagney <cagney@redhat.com>
6374
6375 * trad-frame.h (struct frame_info): Add opaque declaration.
6376 * remote-fileio.h (struct cmd_list_element): Add opaque
6377 declaration.
6378 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6379 comments.
6380
cf0e1e0d
DJ
63812003-06-17 Daniel Jacobowitz <drow@mvista.com>
6382
6383 * remote.c (remote_prepare_to_store): Replace call to
6384 deprecated_read_register_bytes with multiple regcache_raw_read
6385 calls.
6386
192cdb19
KW
63872003-06-17 Kris Warkentin <kewarken@qnx.com>
6388
6389 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6390 (nto_find_and_open_solib): Likewise.
6391 (nto_init_solib_absolute_prefix): Likewise.
6392 (_initialize_nto_tdep): Fix indentation.
6393
89929b45
KW
63942003-06-17 Kris Warkentin <kewarken@qnx.com>
6395
6396 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6397
46019f27
KW
63982003-06-17 Kris Warkentin <kewarken@qnx.com>
6399
6400 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6401
1a38736e
JB
64022003-06-17 Jim Blandy <jimb@redhat.com>
6403
6404 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6405
3605c34a
TR
64062003-06-16 Theodore A. Roth <troth@openavr.org>
6407
6408 * avr-tdep.c (avr_extract_return_value): New function.
6409 (avr_gdbarch_init): Set extract_return_value method.
6410
870b3035
AC
64112003-06-16 Andrew Cagney <cagney@redhat.com>
6412
6413 * frame.h (deprecated_get_next_frame_hack): Declare.
6414 * frame.c (legacy_saved_regs_prev_register): Only require
6415 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6416 there are always saved regs.
6417 (deprecated_generic_get_saved_register): Do not require
6418 DEPRECATED_FRAME_INIT_SAVED_REGS.
6419 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6420 use frame ID unwind instead.
6421 (deprecated_get_next_frame_hack): New function.
6422
63d47a7d
CV
64232003-06-16 Corinna Vinschen <vinschen@redhat.com>
6424
6425 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6426 (h8300_push_dummy_call): ...this function. Some minor optimization.
6427 (h8300_push_return_address): Remove.
6428 (h8300_gdbarch_init): Remove calls to
6429 set_gdbarch_deprecated_dummy_write_sp,
6430 set_gdbarch_deprecated_push_arguments and
6431 set_gdbarch_deprecated_push_return_address.
6432 Add call to set_gdbarch_push_dummy_call.
6433
4bb1dc5e
CV
64342003-06-16 Corinna Vinschen <vinschen@redhat.com>
6435
6436 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6437 (E_PSEUDO_EXR_REGNUM): Ditto.
6438 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6439 registers into safe registers.
4bb1dc5e
CV
6440 (h8300_skip_prologue): Check for stm instruction to push registers
6441 used for register variables onto stack.
6442 (gdb_print_insn_h8300): Remove.
6443 (h8300_examine_prologue): Add a comment.
6444 (h8300_register_name): Take pseudo registers into account.
6445 (h8300s_register_name): Ditto.
6446 (h8300sx_register_name): Ditto.
6447 (h8300_print_register): Ditto.
6448 (h8300_print_registers_info): Define "nice" printing order.
6449 (h8300_saved_pc_after_call): Take pseudo registers into account.
6450 (h8300_register_type): Ditto. Return type used for remote connection
6451 when requesting real CCR or EXR register, return actual type when
6452 requesting pseudo CCR or EXR.
6453 (h8300_pseudo_register_read): New function.
6454 (h8300_pseudo_register_write): Ditto.
6455 (h8300_dbg_reg_to_regnum): Ditto.
6456 (h8300s_dbg_reg_to_regnum): Ditto.
6457 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6458 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6459 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6460 set_gdbarch_print_insn architecture dependent.
6461 Call set_gdbarch_pseudo_register_read and
6462 set_gdbarch_pseudo_register_write.
6463 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6464
a59fe496
AC
64652003-06-16 Andrew Cagney <cagney@redhat.com>
6466
6467 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6468 * gdbarch.h, gdbarch.c: Re-generate.
6469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6470 * s390-tdep.c (s390_gdbarch_init): Update.
6471 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6472 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6473 * mips-tdep.c (mips_gdbarch_init): Update.
6474 * mcore-tdep.c (mcore_gdbarch_init): Update.
6475 * cris-tdep.c (cris_gdbarch_init): Update.
6476 * infcall.c (call_function_by_hand): Update.
6477 * ia64-tdep.c (ia64_push_arguments): Update comment.
6478 * frame.c (legacy_get_prev_frame): Do not assume
6479 SAVE_DUMMY_FRAME_TOS_P.
6480 * dummy-frame.c (find_dummy_frame): Update comment.
6481
6f4e5a41
AC
64822003-06-16 Andrew Cagney <cagney@redhat.com>
6483
6484 * regcache.c (do_cooked_read): Do not use register_valid_p.
6485
72fab697
TR
64862003-06-15 Theodore A. Roth <troth@openavr.org>
6487
6488 * avr-tdep.c (avr_register_type): Remove a blank line.
6489 (avr_scan_prologue): Correct some comments.
6490
e3d8b004
TR
64912003-06-15 Theodore A. Roth <troth@openavr.org>
6492
6493 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6494 prologue types.
8ffd9b1b 6495 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6496 option.
6497 Add code to scan -mcall-prologues for mega devices.
6498
866b76ea
TR
64992003-06-15 Theodore A. Roth <troth@openavr.org>
6500
6501 * avr-tdep.c (avr_register_byte): Delete function.
6502 (avr_register_raw_size): Delete function.
6503 (avr_register_virtual_size): Delete function.
6504 (avr_register_virtual_type): Delete function.
6505 (avr_register_type): New function.
6506 (avr_address_to_pointer): Remove unused code.
6507 (avr_read_fp): Need to read FP as two separate bytes due to change to
6508 avr_register_type() usage.
6509 (avr_gdbarch_init): Don't set deprecated_register_size.
6510 Don't set deprecated_register_bytes.
6511 Don't set deprecated_register_byte.
6512 Don't set deprecated_register_raw_size.
6513 Don't set deprecated_max_register_raw_size.
6514 Don't set deprecated_register_virtual_size.
6515 Don't set deprecated_max_register_virtual_size.
6516 Don't set deprecated_register_virtual_type.
6517 Set register_type method.
6518
3993f6b1
DJ
65192003-06-15 Daniel Jacobowitz <drow@mvista.com>
6520
6521 * Makefile.in (linux-nat.o): Add rule.
6522 * linux-nat.c: New file.
6523 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6524 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6525 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6526 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6527 * config/arm/linux.mh (NATDEPFILES): Likewise.
6528 * config/i386/linux.mh (NATDEPFILES): Likewise.
6529 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6530 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6531 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6532 * config/mips/linux.mh (NATDEPFILES): Likewise.
6533 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6534 * config/s390/s390.mh (NATDEPFILES): Likewise.
6535 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6536
786a90bb
MK
65372003-06-15 Mark Kettenis <kettenis@gnu.org>
6538
6539 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6540 replace out-of-date comment.
6541
3bd3f01e
AC
65422003-06-15 Andrew Cagney <cagney@redhat.com>
6543
6544 * rdi-share/host.h (Fail): Change to a varargs function.
6545 * remote-rdi.c (Fail): Update.
8ffd9b1b 6546
de5b9bb9
MK
65472003-06-15 Mark Kettenis <kettenis@gnu.org>
6548
6549 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6550 (i386_convert_register_p, i386_register_to_value,
6551 i386_register_from_value): Handle types longer than 8 bytes.
6552
d532c08f
MK
65532003-06-15 Mark Kettenis <kettenis@gnu.org>
6554
6555 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6556 Move floating-point code to new function in i387-tdep.c.
6557 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6558 New functions containing code moved here from i386-tdep.c.
6559 * i387-tdep.h: Add opaque declaration for `struct type'.
6560 (i387_register_to_value, i387_value_to_register): New prototypes.
6561 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6562 (x86_64_init_abi): Set convert_register_p, register_to_value and
6563 value_to_register here.
8ffd9b1b 6564
42c466d7
AC
65652003-06-14 Andrew Cagney <cagney@redhat.com>
6566
6567 * mips-tdep.c (mips_register_to_value): Make static.
6568 (mips_value_to_register): Make static.
6569 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6570 * ia64-tdep.c (ia64_register_raw_size): Make static.
6571 (ia64_register_virtual_size): Make static.
6572 (ia64_register_byte): Make static.
6573 * i387-tdep.c: Include "i387-tdep.h".
6574 (print_387_control_word): Delete function.
6575 (print_387_status_word): Delete function.
6576 (print_387_status_bits): Delete function.
6577 (print_387_control_bits): Delete function.
6578 * Makefile.in (i387-tdep.o): Update dependencies.
6579 * rdi-share/host.h (Fail): Declare.
6580 * remote-rdi.c (Fail): Update to match declaration.
6581
2a9cda49
AC
65822003-06-14 Andrew Cagney <cagney@redhat.com>
6583
6584 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6585 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6586 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6587 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6588 * README: Delete reference to remote-array.
6589 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6590 (remote-array.o): Delete target.
6591 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6592 * remote-array.c: Delete file.
6593
ff2e87ac
AC
65942003-06-14 Andrew Cagney <cagney@redhat.com>
6595 Mark Kettenis <kettenis@gnu.org>
6596
6597 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6598 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6599 parameter with "frame".
6600 * gdbarch.h, gdbarch.c: Re-generate.
6601 * frame.h (put_frame_register): Declare.
6602 * frame.c (put_frame_register): New function.
6603 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6604 (legacy_register_to_value): Rewrite, use "frame" to get the
6605 register value.
6606 (legacy_value_to_register): Rewrite, use "frame" to find the
6607 register's location before storing.
6608 * arch-utils.h (legacy_convert_register_p): Update.
6609 (legacy_register_to_value, legacy_value_to_register): Update.
6610 * findvar.c (value_from_register): Rewrite, eliminate use of
6611 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6612 "frame" to REGISTER_TO_VALUE.
6613 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6614 lval_reg_frame_relative + lval_register branch of the switch. Do
6615 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6616 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6617 I386_EDI_REGNUM): New defines.
6618 (i386_next_regnum, i386_convert_register_p,
6619 i386_register_to_value, i386_value_to_register): New functions.
6620 (i386_register_convertible, i386_register_convert_to_virtual,
6621 i386_convert_to_raw): Remove functions.
6622 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6623 value_to_register instead of register_convertible,
6624 register_convert_to_virtual and register_convert_to_raw.
6625 * mips-tdep.c (mips_convert_register_p): New function.
6626 (mips_value_to_register): Replace mips_register_convert_from_type.
6627 (mips_register_to_value): Replace mips_register_convert_to_type.
6628 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6629 register_to_value.
6630 * alpha-tdep.c (alpha_convert_register_p): Update.
6631 (alpha_value_to_register): Update, store the register.
6632 (alpha_register_to_value): Update, fetch the register.
6633
98be1e77
TR
66342003-06-14 Theodore A. Roth <troth@openavr.org>
6635
6636 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6637 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6638 Don't set deprecated_call_dummy_words.
6639 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6640 Don't set remote_translate_xfer_address.
6641 (avr_io_reg_read_command): Remove commented out debug printf.
6642 Wrap a long line.
6643
57bc6122
TR
66442003-06-14 Theodore A. Roth <troth@openavr.org>
6645
6646 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6647 causes gdb to seg fault.
6648
eb01fc62
DJ
66492003-06-14 Daniel Jacobowitz <drow@mvista.com>
6650
6651 * sparc-nat.c (fetch_inferior_registers): Correct
6652 a reference to "registers".
6653
3b3e6bee
DJ
66542003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6655
6656 * Makefile.in (exc_request_U_h): Define
6657 (exc_request_S_h): Likewise.
6658 (msg_reply_S_h): Likewise.
6659 (msg_U_h): Likewise.
6660 (notify_S_h): Likewise.
6661 (process_reply_S_h): Likewise.
6662 (gnu-nat.o): Depend on gdb_obstack_h
6663 * gnu-nat.c: Include "gdb_obstack.h".
6664
b8de8283
AC
66652003-06-13 Andrew Cagney <cagney@redhat.com>
6666
6667 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6668 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6669
f3be58bc
AC
66702003-06-13 Andrew Cagney <cagney@redhat.com>
6671
6672 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6673 when deprecated REGISTER macros can be deleted.
6674 * gdbarch.h, gdbarch.c: Re-generate.
6675
4c0122c8
JB
66762003-06-13 Jim Blandy <jimb@redhat.com>
6677
6678 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6679 Linux entry point symbols for _dl_debug_state, too.
6680
3e210248
AC
66812003-06-13 Andrew Cagney <cagney@redhat.com>
6682
6683 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6684 available, do not use the FP register, and always save the TOS.
6685 * dummy-frame.c (dummy_frame_this_id): Do not assert
6686 SAVE_DUMMY_FRAME_TOS.
6687 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6688 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6689 (i386_push_dummy_call): Add 8 to the returned SP.
6690 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6691 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6692 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6693 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6694 (x86_64_push_dummy_call): Return "sp + 16".
6695 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6696 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6697 save_dummy_frame_tos.
6698
0b65af49
JB
66992003-06-13 Jim Blandy <jimb@redhat.com>
6700
6701 * frv-tdep.c (frv_use_struct_convention): Delete static
6702 declaration for function deleted in my change of 2003-06-12.
6703
4ea2465e
TR
67042003-06-13 Theodore A. Roth <troth@openavr.org>
6705
6706 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6707 (avr_pointer_to_address): Shift code addrs left 1 bit.
6708 (avr_convert_from_func_ptr_addr): Delete function since operation is
6709 better handled by avr_address_to_pointer and avr_pointer_to_address.
6710 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6711
1581182a
MK
67122003-06-13 Mark Kettenis <kettenis@gnu.org>
6713
6714 From Kelley Cook <kelleycook@wideopenwest.com>:
6715 * configure.host: Accept i[34567]86 variants.
6716 * configure.tgt: Likewise.
6717 * nlm/configure.in: Likewise.
6718 * nlm/configure: Regenerated.
6719
7aa1783e
RE
67202003-06-13 Richard Earnshaw <rearnsha@arm.com>
6721
6722 * arm-tdep.c (solib-svr4.h): Dont' include it.
6723 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6724 * arm-linux-tdep.c: ... here. Make static.
6725 (arm_linux_init_abi): Register it.
6726 (solib-svr4.h): Include it.
6727 * Makefile.in: Update dependencies.
6728 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6729 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6730
0261a0d0
CV
67312003-06-13 Corinna Vinschen <vinschen@redhat.com>
6732
6733 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6734 indicate registers used for return values.
6735 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6736 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6737 members.
6738 (h8300_init_extra_frame_info): Ditto.
6739 (h8300_frame_locals_address): Removed.
6740 (h8300_frame_args_address): Removed.
6741 (h8300_extract_return_value): Use new regcache structure. Only care
6742 for 16 bit CPUs.
6743 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6744 (h8300_store_return_value): Use new regcache structure. Only care
6745 for 16 bit CPUs.
6746 (h8300h_store_return_value): Same function for 32 bit CPUs.
6747 (h8300_store_struct_return): Removed.
6748 (h8300_extract_struct_value_address): Use new regcache structure.
6749 (h8300h_extract_struct_value_address): Removed.
6750 (h8300_push_dummy_code): New function.
6751 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6752 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6753 set_gdbarch_store_return_value architecture dependent.
6754 Call set_gdbarch_push_dummy_code and
6755 set_gdbarch_extract_struct_value_address.
6756 Remove calls to set_gdbarch_frame_args_address,
6757 set_gdbarch_frame_locals_address,
6758 set_gdbarch_deprecated_store_struct_return,
6759 set_gdbarch_deprecated_extract_return_value,
6760 set_gdbarch_deprecated_extract_struct_value_address,
6761 set_gdbarch_deprecated_call_dummy_words and
6762 set_gdbarch_deprecated_sizeof_call_dummy_words.
6763
055c394a
CV
67642003-06-13 Corinna Vinschen <vinschen@redhat.com>
6765
6766 * h8300-tdep.c (h8300_register_byte): Remove.
6767 (h8300h_register_byte): Remove.
6768 (h8300_register_virtual_type): Remove. Substitute by...
6769 (h8300_register_type): New function.
6770 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6771 (h8300h_extract_struct_value_address): Ditto.
6772 (h8300_gdbarch_init): Drop calls to
6773 set_gdbarch_deprecated_register_byte and
6774 set_gdbarch_deprecated_register_virtual_type.
6775 Add call to set_gdbarch_register_type.
6776
9c04cab7
AC
67772003-06-13 Andrew Cagney <cagney@redhat.com>
6778
6779 * gdbarch.sh: Update comments on registers.
6780 (deprecated_register_byte): Rename register_byte.
6781 (deprecated_register_raw_size): Rename register_raw_size.
6782 (deprecated_register_virtual_size): Rename register_virtual_size.
6783 (deprecated_register_virtual_type): Rename register_virtual_type.
6784 * gdbarch.h, gdbarch.c: Re-generate.
6785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6786 * vax-tdep.c (vax_gdbarch_init): Update.
6787 * v850-tdep.c (v850_gdbarch_init): Update.
6788 * sparc-tdep.c (sparc_gdbarch_init): Update.
6789 * sh-tdep.c (sh_gdbarch_init): Update.
6790 * s390-tdep.c (s390_gdbarch_init): Update.
6791 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6792 * ns32k-tdep.c: Update.
6793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6794 * mips-tdep.c (mips_gdbarch_init): Update.
6795 * mcore-tdep.c (mcore_gdbarch_init): Update.
6796 * m68k-tdep.c (m68k_gdbarch_init): Update.
6797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6798 * ia64-tdep.c (ia64_gdbarch_init): Update.
6799 * hppa-tdep.c (hppa_gdbarch_init): Update.
6800 * h8300-tdep.c (h8300_gdbarch_init): Update.
6801 * frv-tdep.c (frv_gdbarch_init): Update.
6802 * cris-tdep.c (cris_gdbarch_init): Update.
6803 * avr-tdep.c (avr_gdbarch_init): Update.
6804 * alpha-tdep.c (alpha_gdbarch_init): Update.
6805 * arm-tdep.c (arm_gdbarch_init): Update.
6806
b060cbea
AC
68072003-06-13 Andrew Cagney <cagney@redhat.com>
6808
6809 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6810 mips_o32_use_struct_convention with always_use_struct_convention.
6811
0fc9922a
DC
68122003-06-12 David Carlton <carlton@kealia.com>
6813
6814 * cp-namespace.c (cp_set_block_scope): Comment out
6815 processing_has_namespace_info branch.
6816
1fd35568
JB
68172003-06-12 Jim Blandy <jimb@redhat.com>
6818
f470a70a
JB
6819 Recognize and skip 64-bit PowerPC Linux linkage functions.
6820 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6821 insn_pattern, insns_match_pattern, d_field, ds_field): New
6822 functions, macros, and types for working with PPC instructions.
6823 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6824 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6825 ppc64_skip_trampoline_code): New functions, variables, and macros
6826 for recognizing and skipping linkage functions.
6827 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6828 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6829
49ff75ad
JB
6830 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6831 register offsets for both the 32- and 64-bit interfaces.
6832
bd918c83
JB
6833 Actually finish the job started by my change of 2003-05-29.
6834 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6835 other #definition of this.
6836 (ppc_linux_skip_trampoline_code): Remove declaration.
6837 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6838 static.
6839 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6840 method for GDBARCH.
6841
6842 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6843 'long' on ppc64-*-linux*.
6844
f8c59253
JB
6845 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6846 isn't #defined, assume the register doesn't exist: act as if
6847 tdep->ppc_mq_regnum were -1.
6848
8fbb30b1
JB
6849 * configure.host, configure.tgt: Add entries for
6850 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6851 powerpc/linux.mt.
6852 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6853 New files.
6854
1fd35568
JB
6855 * arch-utils.c (always_use_struct_convention): New function.
6856 * arch-utils.h (always_use_struct_convention): New prototype.
6857 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6858 (alpha_gdbarch_init): Register always_use_struct_convention,
6859 instead of alpha_use_struct_convention.
6860 * cris-tdep.c (cris_use_struct_convention): Delete.
6861 (cris_gdbarch_init): Register always_use_struct_convention,
6862 instead of cris_use_struct_convention.
6863 * frv-tdep.c (frv_use_struct_convention): Delete.
6864 (frv_gdbarch_init): Register always_use_struct_convention,
6865 instead of frv_use_struct_convention.
6866 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6867 (h8300_gdbarch_init): Register always_use_struct_convention,
6868 instead of h8300_use_struct_convention.
e3305dd9 6869 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6870 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6871 instead of mips_o32_use_struct_convention.
6872
e14e6e9c
AC
68732003-06-12 Andrew Cagney <cagney@redhat.com>
6874
6875 * wince.c: Include "mips-tdep.h".
6876 * mips-tdep.h (mips_next_pc): Declare.
6877 * mcore-tdep.c: Make more local functions static.
6878 * Makefile.in (wince.o): Update dependencies.
6879
2335f48e
DC
68802003-06-12 David Carlton <carlton@kealia.com>
6881
6882 * symtab.c (lookup_symbol_aux_minsyms): Replace
6883 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6884 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6885 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6886 SYMBOL_NATURAL_NAME.
6887
f70a7d61
AS
68882003-06-12 Andreas Schwab <schwab@suse.de>
6889
6890 * Makefile.in (tuiDisassem.o): Update dependencies.
6891
b6429628
DC
68922003-06-12 David Carlton <carlton@bactrian.org>
6893
6894 * symtab.h: Delete declaration of make_symbol_overload_list.
6895 Add declaration of lookup_partial_symbol.
6896 * symtab.c (remove_params): Move to cp-support.c.
6897 (overload_list_add_symbol, make_symbol_overload_list)
6898 (sym_return_val_size, sym_return_val_index): Ditto.
6899 (lookup_partial_symbol): Make extern.
6900 * cp-support.h: Add declaration of make_symbol_overload_list.
6901 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6902 symtab.h, and block.h.
6903 (remove_params): Move here from symtab.c.
6904 (overload_list_add_symbol, make_symbol_overload_list)
6905 (sym_return_val_size, sym_return_val_index): Ditto.
6906 * valops.c: Include cp-support.h.
6907 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6908 frame_h, and block_h.
6909 (valops.o): Depend on cp_support_h.
6910
084edea5
CV
69112003-06-12 Corinna Vinschen <vinschen@redhat.com>
6912
6913 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6914 substitute by NUM_REGS throughout.
6915 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6916 (h8300s_register_name): New function for H8S registers.
6917 (h8300sx_register_name): Ditto for H8SX registers.
6918 (h8300_print_register): Revise register printing, avoid depending
6919 on 32 bit long.
0261a0d0 6920 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6921 (h8300h_register_byte): New function for any other architecture.
6922 (h8300_register_raw_size): Remove.
6923 (h8300_register_virtual_type): Revise to return actually useful
6924 type.
6925 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6926 (h8300h_extract_struct_value_address): New function for any other
6927 architecture.
6928 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6929 set_gdbarch_register_name, set_gdbarch_register_byte,
6930 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6931 Remove calls to set_gdbarch_deprecated_register_size,
6932 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6933 set_gdbarch_deprecated_max_register_raw_size,
6934 set_gdbarch_register_virtual_size and
6935 set_gdbarch_deprecated_max_register_virtual_size entirely.
6936 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6937 set_gdbarch_long_double_bit.
6938
06194148
JJ
69392003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6940
8ffd9b1b
AJ
6941 * doublest.c (convert_doublest_to_floatformat): When dealing
6942 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6943 processing a full 32 bits of mantissa.
6944
de4f826b
DC
69452003-06-11 David Carlton <carlton@bactrian.org>
6946
6947 * dictionary.h: New.
6948 * dictionary.c: New.
6949 * block.h: Add opaque declaration for struct dictionary.
6950 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6951 'sym' members.
6952 (BLOCK_DICT): New macro.
6953 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6954 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6955 BLOCK_SHOULD_SORT.
6956 (ALL_BLOCK_SYMBOLS): Update definition.
6957 * Makefile.in (SFILES): Add dictionary.c.
6958 (dictionary_h): New.
6959 (COMMON_OBS): Add dictionary.o.
6960 (dictionary.o): New.
6961 (ada-lang.o): Depend on dictionary_h.
6962 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6963 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6964 (mi-cmd-stack.o): Ditto.
6965 (gdbtk-cmds.o): Update dependencies.
6966 (gdbtk-stack.o): Ditto.
6967 * ada-lang.c: Include dictionary.h.
6968 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6969 (fill_in_ada_prototype, debug_print_block): Ditto.
6970 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6971 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6972 'is_sorted'.
6973 * mdebugread.c: Include dictionary.h.
6974 (struct parse_stack): Delete 'maxsyms' member.
6975 (parse_symbol): Update calls to new_block. Delete calls to
6976 shrink_block. Use dictionary methods.
6977 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6978 Update calls to new_symtab. Don't maintain maxsyms data.
6979 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6980 (add_symbol): Just call dict_add_symbol.
6981 (new_symtab): Delete 'maxsyms' argument.
6982 (new_symtab): Update calls to new_block.
6983 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6984 (shrink_block): Delete function.
6985 (fixup_sigtramp): Update call to new_block. Add symbol via
6986 dict_add_symbol.
6987 * jv-lang.c: Include dictionary.h.
6988 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6989 appropriately. Set class_symtab->free_func. Make sure the
6990 blockvector is big enough to hold two blocks.
6991 (add_class_symtab_symbol): Use dictionary methods.
6992 (free_class_block): New function.
6993 (type_from_class): Replace explicit iteration by
6994 ALL_BLOCK_SYMBOLS.
6995 * symtab.h (struct symtab): Replace 'free_ptr' method by
6996 'free_func'.
6997 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6998 sort_symtab_syms.
6999 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7000 sort_symtab_syms.
7001 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7002 Include dictionary.h.
7003 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7004 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7005 sort_symtab_syms.
7006 * objfiles.c: Include dictionary.h.
7007 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7008 * buildsym.c: Include dictionary.h.
7009 (finish_block): Use dictionary methods.
7010 (end_symtab): Set free_func to NULL, not free_ptr.
7011 * tracepoint.c: Include dictionary.h.
7012 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7013 (scope_info): Ditto.
7014 * stack.c: Include dictionary.h.
7015 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7016 (print_block_frame_labels, print_frame_arg_vars)
7017 (print_frame_args): Ditto.
7018 * symmisc.c (free_symtab_block): Use dictionary methods.
7019 (dump_symtab): Ditto.
7020 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7021 Include dictionary.h.
7022 * symfile.h: Delete declarations of sort_block_syms,
7023 sort_symtab_syms.
7024 * symfile.c (sort_block_syms): Delete.
7025 (sort_symtab_syms): Delete.
7026 * symtab.c: Include dictionary.h.
7027 (lookup_block_symbol): Use dictionary iterators.
7028 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7029 (search_symbols, make_symbol_completion_list): Ditto.
7030 (make_symbol_overload_list): Ditto.
7031 * valops.c (value_of_local): Use dict_empty.
7032 Include dictionary.h.
7033
a31f978c
JB
70342003-06-11 J. Brobecker <brobecker@gnat.com>
7035
7036 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7037
526e70c0
DC
70382003-06-11 David Carlton <carlton@bactrian.org>
7039
7040 * block.h (BLOCK_SHOULD_SORT): Delete.
7041 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7042 blocks.
7043 * ada-lang.c (ada_add_block_symbols): Ditto.
7044 * symfile.c (sort_block_syms): Delete.
7045 (sort_symtab_syms): Ditto.
7046 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7047 declarations.
7048 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7049 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7050 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7051 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7052 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7053 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7054 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7055
33c08150
JJ
70562003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7057
8ffd9b1b 7058 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7059 bits to 128.
7060
781a750d
AC
70612003-06-11 Andrew Cagney <cagney@redhat.com>
7062
7063 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7064 REGISTER_CONVERTIBLE.
7065 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7066 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7067 * gdbarch.h, gdbarch.c: Re-generate.
7068 * arch-utils.h (deprecated_register_convertible_not): Rename
7069 generic_register_convertible_not.
7070 * arch-utils.c (deprecated_register_convertible_not): Rename
7071 generic_register_convertible.
7072 (legacy_convert_register_p, legacy_register_to_value): Update.
7073 * sh-tdep.c (sh64_push_arguments): Update.
7074 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7075 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7076 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7077 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7078 * arch-utils.c (legacy_value_to_register): Update.
7079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7080 (rs6000_register_convert_to_raw): Make parameter "from" const.
7081 * mips-tdep.c (mips_gdbarch_init): Update.
7082 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7083 * infcmd.c (default_print_registers_info): Update.
7084 * ia64-tdep.c (ia64_gdbarch_init): Update.
7085 (ia64_register_convert_to_raw): Make parameter "from" const.
7086 * i386-tdep.c (i386_gdbarch_init): Update.
7087 (i386_register_convert_to_raw): Update.
7088
cd90e54f
AC
70892003-06-11 Andrew Cagney <cagney@redhat.com>
7090
7091 * remote-fileio.c: Include "remote-fileio.h".
7092 * Makefile.in (remote-fileio.o): Update dependencies.
7093 (remote_fileio_h): Fix typo.
7094
a78f21af
AC
70952003-06-11 Andrew Cagney <cagney@redhat.com>
7096
7097 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7098 (xstormy16_save_dummy_frame_tos): Make static.
7099 (_initialize_xstormy16_tdep): Add declaration.
7100 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7101 * v850-tdep.c: Make local functions static.
7102 (_initialize_v850_tdep): Add declaration.
7103 * sparc-tdep.c: Make local functions static.
7104 (_initialize_sparc_tdep): Add declaration.
7105 * sh-tdep.c: Make local functions static.
7106 (_initialize_sh_tdep): Add declaration.
7107 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7108 * s390-tdep.c: Make local functions static.
7109 (_initialize_s390_tdep): Add declaration.
7110 * dbxread.c (find_stab_function_addr): Make static.
7111 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7112 * ocd.c (_initialize_remote_ocd): Add declaration.
7113 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7114 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7115 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7116 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7117 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7118 * remote-array.c (_initialize_array): Add declaration.
7119 (_initialize_remote_monitors): Add declaration.
7120 * remote-mips.c: Make local functions static.
7121 (_initialize_remote_mips): Add declaration.
7122 * mcore-tdep.c: Make all local functions static.
7123 (_initialize_mcore_tdep): Add declaration.
7124 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7125 * abug-rom.c (_initialize_abug_rom): Add declaration.
7126 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7127 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7128 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7129 * remote-est.c (_initialize_est): Add declaration.
7130 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7131 (m68hc11_call_dummy_address): Make static.
7132 * ia64-tdep.c: Make local functions static.
7133 (_initialize_ia64_tdep): Add declaration.
7134 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7135 * monitor.c (monitor_wait_filter): Make static.
7136 (_initialize_remote_monitors): Add declaration.
7137 * remote-hms.c (_initialize_remote_hms): Add declaration.
7138 * remote-e7000.c (fetch_regs_from_dump): Make static.
7139 (expect_n): Make static.
7140 (_initialize_remote_e7000): Add declaration.
7141 * ser-e7kpc.c: Always include "defs.h".
7142 (_initialize_ser_e7000pc): Add declaration.
7143 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7144 * cris-tdep.c: Make all but one function static.
7145 (_initialize_cris_tdep): Add declaration.
7146 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7147 * solib.c (update_solib_list): Make static.
7148 (_initialize_solib): Add declaration.
7149 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7150 (_initialize_avr_tdep): Add declaration.
7151 * remote-rdi.c (voiddummy): Make static.
7152 (_initialize_remote_rdi): Add declaration.
7153 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7154 * remote-rdp.c (send_rdp): Make static.
7155 (_initialize_remote_rdp): Add declaration.
7156 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7157
cbcdb1f5
CV
71582003-06-11 Corinna Vinschen <vinschen@redhat.com>
7159
7160 * remote-fileio.c: Make ari happy.
7161
a191ea8d
JB
71622003-06-10 J. Brobecker <brobecker@gnat.com>
7163
7164 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7165 fetching the trailing bytes of the buffer we are about to write.
7166
0ef75e11
AC
71672003-06-10 Andrew Cagney <cagney@redhat.com>
7168
7169 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7170 * Makefile.in (remote-fileio.o): Update dependencies.
7171 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7172 include <setjmp.h>, or <sys/types.h> conditional on USG.
7173 (remote_fio_jmp_buf): Delete global variable.
7174
449092f6 71752003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7176 Martin M. Hunt <hunt@redhat.com>
449092f6 7177
559fa028
AC
7178 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7179 (SFILES): Add remote-fileio.c.
7180 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7181 dependencies for building remote.o.
449092f6
CV
7182 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7183 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7184 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7185 static storage class.
7186 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7187 'F' packet.
7188 (_initialize_remote): Call initialize_remote_fileio().
7189 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7190 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7191 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7192 (captured_main): Initialize new ui_files.
7193 * ui-file.c: Add read and fgets input functions.
7194 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7195 (null_file_read): New function.
7196 (ui_file_read): New function.
7197 (set_ui_file_read): New function.
7198 (stdio_file_read): New function.
7199 * ui-file.h: New type ui_file_read_ftype.
7200 (set_ui_file_read): Declare.
7201 (ui_file_read): Declare.
7202
248de703
AC
72032003-06-09 Andrew Cagney <cagney@redhat.com>
7204
7205 * frame.h (deprecated_unwind_get_saved_register): Rename
7206 generic_unwind_get_saved_register, update comments.
7207 * mips-tdep.c (mips_get_saved_register): Update.
7208 * frame.c (deprecated_unwind_get_saved_register): Update.
7209
0ed8aa57
AC
72102003-06-09 Andrew Cagney <cagney@redhat.com>
7211
7212 * vax-tdep.c (vax_frame_locals_address): Delete function.
7213 (vax_gdbarch_init): Do not set frame_locals_address.
7214 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7215 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7216 * s390-tdep.c (s390_frame_args_address): Delete function.
7217 (s390_gdbarch_init): Do not set frame_args_address or
7218 frame_locals_address.
7219 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7220 (ns32k_gdbarch_init): Do not set frame_locals_address.
7221 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7222 (hppa_frame_locals_address): Delete function.
7223 (hppa_gdbarch_init): Do not set frame_args_address, or
7224 frame_locals_address.
7225 * arm-tdep.c (arm_frame_args_address): Delete.
7226 (arm_frame_locals_address): Delete.
7227 (arm_gdbarch_init): Do not set frame_args_address, or
7228 frame_locals_address.
7229
983a287a
AC
72302003-06-09 Andrew Cagney <cagney@redhat.com>
7231
7232 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7233 * gdbarch.h, gdbarch.c: Re-generate.
7234 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7235 * arch-utils.c (frame_num_args_unknown): Delete function.
7236 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7237 (frame_info): Use FRAME_NUM_ARGS_P.
7238 * arm-tdep.c (arm_frame_num_args): Delete function.
7239 (arm_gdbarch_init): Do not set frame_num_args.
7240 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7241 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7242 (hppa_gdbarch_init): Do not set frame_num_args.
7243 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7244 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7245 frame_num_args to default frame_num_args_unknown.
7246 * v850-tdep.c (v850_gdbarch_init): Ditto.
7247 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7248 * sh-tdep.c (sh_gdbarch_init): Ditto.
7249 * s390-tdep.c (s390_gdbarch_init): Ditto.
7250 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7251 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7252 * mips-tdep.c (mips_gdbarch_init): Ditto.
7253 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7254 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7256 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7257 * i386-tdep.c (i386_gdbarch_init): Ditto.
7258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7259 * frv-tdep.c (frv_gdbarch_init): Ditto.
7260 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7261 * cris-tdep.c (cris_gdbarch_init): Ditto.
7262 * avr-tdep.c (avr_gdbarch_init): Ditto.
7263 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7264
8d3b0994
AC
72652003-06-09 Andrew Cagney <cagney@redhat.com>
7266
7267 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7268 (print_frame_args): Moved to "stack.c".
7269 * stack.c: Include "gdb_assert.h".
7270 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7271 (print_frame_args): Moved from "printcmd.c".
7272 * frame.h (print_frame_args): Delete declaration.
7273 * Makefile.in (stack.o): Update dependencies.
7274
25e3a86b
AC
72752003-06-08 Andrew Cagney <cagney@redhat.com>
7276
7277 * frame.c (get_prev_frame): Remove reference to
7278 frame_args_address_correct in comments.
7279 * frame-base.c (default_frame_args_address): Delete code
7280 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7281 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7282 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7283 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7284 (vax_frame_args_address_correct): Delete declaration.
7285
a9e5fdc2
AC
72862003-06-08 Andrew Cagney <cagney@redhat.com>
7287
7288 * gdbarch.sh (UNWIND_SP): Add.
7289 * gdbarch.h, gdbarch.c: Re-generate.
7290 * frame.c (frame_sp_unwind): New function.
7291 (get_frame_sp): New function.
7292 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7293 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7294 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7295 value.
7296 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7297 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7298
8983bd83
AC
72992003-06-08 Andrew Cagney <cagney@redhat.com>
7300
7fec2c59
AC
7301 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7302 REMOTE_BREAKPOINT.
7303 * remote.c: Update.
7304 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7305 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7306 * config/m68k/tm-sun3.h: Update.
7307 * config/m68k/tm-m68klynx.h: Update.
7308 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7309
8983bd83
AC
7310 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7311 trad_frame". Update comments.
7312 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7313 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7314 (trad_frame_register_value, trad_frame_prev_register): Update.
7315
b9362cc7
AC
73162003-06-08 Andrew Cagney <cagney@redhat.com>
7317
7318 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7319 from GCC's acinclude.m4.
7320 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7321 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7322 * main.c (error_init): Delete declaration.
7323 * defs.h (error_init): Declare.
7324 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7325 (rs6000_convert_from_func_ptr_addr): Make static.
7326 (_initialize_rs6000_tdep): Add declaration.
7327 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7328 (show_commands, set_verbose, show_history): Delete declaration.
7329 * top.h (set_verbose): Add declaration.
7330 (show_history, set_history, show_commands): Add declaration.
7331 (do_restore_instream_cleanup): Add declaration.
7332 * objc-lang.c (specialcmp): Make static.
7333 (print_object_command): Make static.
7334 (find_objc_msgsend): Make static.
7335 (find_objc_msgcall_submethod_helper): Make static.
7336 (find_objc_msgcall_submethod): Make static.
7337 (_initialize_objc_language): Add declaration.
7338 (find_implementation_from_class): Make static.
7339 (find_implementation): Make static.
7340 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7341 * objc-lang.h (lookup_struct_typedef): Add declaration.
7342 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7343 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7344 (do_restore_user_call_depth): Make static.
7345 (do_restore_instream_cleanup): Delete declaration.
7346 (dont_repeat): Delete declaration.
7347 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7348 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7349 * reggroups.c (_initialize_reggroup): Add declaration.
7350 * cp-support.c (_initialize_cp_support): Add declaration.
7351 * cp-abi.c (_initialize_cp_abi): Add declaration.
7352 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7353 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7354 (_initialize_gnu_v3_abi): Add declaration.
7355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7356 (_initialize_gnu_v2_abi): Add declaration.
7357 * frame-base.c (_initialize_frame_base): Add declaration.
7358 * doublest.c (floatformat_from_length): Make static.
7359 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7360 * frame.c (create_sentinel_frame): Make static.
7361 (_initialize_frame): Add declaration.
7362 * top.c (do_catch_errors): Make static.
7363 (gdb_rl_operate_and_get_next_completion): Make static.
7364 * typeprint.c: Include "typeprint.h".
7365 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7366 (sentinel_frame_this_id): Make static.
7367 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7368 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7369 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7370 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7371 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7372 * maint.c (maintenance_print_architecture): Make static.
7373 * signals/signals.c (_initialize_signals): Add declaration.
7374 * std-regs.c (_initialize_frame_reg): Add declaration.
7375 * jv-exp.y (push_variable): ISO C definition.
7376 (push_qualified_expression_name): Ditto.
7377 * memattr.c (_initialize_mem): Add declaration.
7378 * remote.c (remote_check_watch_resources): Make static.
7379 (remote_stopped_by_watchpoint): Make static.
7380 (remote_stopped_data_address): Make static.
7381 * d10v-tdep.c (nr_dmap_regs): Make static.
7382 (a0_regnum): Make static.
7383 (d10v_frame_unwind_cache): Make static.
7384 (d10v_frame_p): Make static.
7385 * osabi.c (show_osabi): Make static.
7386 (_initialize_gdb_osabi): Add extern declaration.
7387 * gdbtypes.c (make_qualified_type): Make static.
7388 (safe_parse_type): Make static.
7389 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7390 * macrotab.c (macro_bcache_free): Make static.
7391 * interps.c (interp_set_quiet): Make static.
7392 (interpreter_exec_cmd): Make static.
7393 * stack.h (select_frame_command): New file.
7394 * stack.c: Include "stack.h".
7395 (select_frame_command_wrapper): Delete function.
7396 (select_frame_command): Make global.
7397 * infcall.c: Include "infcall.h".
7398 * linespec.c: Include "linespec.h".
7399 * symfile.c (sections_overlap): Make static.
7400 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7401 * charset.c (_initialize_charset): Add missing prototype.
7402 * regcache.c (init_legacy_regcache_descr): Make static.
7403 (do_regcache_xfree): Make static.
7404 (regcache_xfer_part): Make static.
7405 (_initialize_regcache): Add missing prototype.
7406 * breakpoint.c (parse_breakpoint_sals): Make static.
7407 (breakpoint_sals_to_pc): Make static.
7408 * interps.h (clear_interpreter_hooks): ISO C declaration.
7409 * Makefile.in (stack_h): Define.
7410 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7411 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7412
a0f267c7
AC
74132003-06-08 Andrew Cagney <cagney@redhat.com>
7414
7415 * Makefile.in (d10v-tdep.o): Update dependencies.
7416 (SFILES): Add trad-frame.c.
7417 (trad_frame_h): Define.
7418 (COMMON_OBS): Add trad-frame.o.
7419 (trad-frame.o): Specify dependencies.
7420 * d10v-tdep.c: Include "trad-frame.h".
7421 (saved_regs_unwinder): Delete function.
7422 (d10v_frame_prev_register): Use trad_frame_prev_register.
7423 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7424 trad_frame", delete "regs" and "prev_sp".
7425 (prologue_find_regs): Use trad-frame.
7426 * trad-frame.h, trad-frame.c: New files.
7427
4538b4f4
MK
74282003-06-08 Mark Kettenis <kettenis@gnu.org>
7429
7430 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7431
a0273b2f
AF
74322003-06-07 Adam Fedor <fedor@gnu.org>
7433
7434 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7435 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7436 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7437 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7438 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7439 Use it.
7440
3a6c3343
AC
74412003-06-07 Andrew Cagney <cagney@redhat.com>
7442
7443 * symfile.h: Re-indent, clean up comments.
7444
b46e02f6
AC
74452003-06-07 Andrew Cagney <cagney@redhat.com>
7446
7447 * inferior.h (deprecated_write_sp): Replace
7448 generic_target_write_sp.
7449 * regcache.c (deprecated_write_sp): Replace
7450 generic_target_write_sp.
7451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7452 * vax-tdep.c (vax_gdbarch_init): Update.
7453 * v850-tdep.c (v850_gdbarch_init): Update.
7454 * sparc-tdep.c (sparc_gdbarch_init): Update.
7455 * sh-tdep.c (sh_gdbarch_init): Update.
7456 * s390-tdep.c (s390_gdbarch_init): Update.
7457 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7458 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7459 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7460 * mcore-tdep.c (mcore_gdbarch_init): Update.
7461 * m68k-tdep.c (m68k_gdbarch_init): Update.
7462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7463 * ia64-tdep.c (ia64_gdbarch_init): Update.
7464 * h8300-tdep.c (h8300_gdbarch_init): Update.
7465 * frv-tdep.c (frv_gdbarch_init): Update.
7466 * cris-tdep.c (cris_gdbarch_init): Update.
7467 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7468
a42e117c
AC
74692003-06-07 Andrew Cagney <cagney@redhat.com>
7470
7471 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7472 Assert that PC_REGNUM is valid.
7473 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7474
bd1ce8ba
AC
74752003-06-07 Andrew Cagney <cagney@redhat.com>
7476
7477 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7478 * gdbarch.h, gdbarch.c: Regenerate.
7479 * mn10300-tdep.c: Include "gdb_assert.h".
7480 (mn10300_read_fp): New function.
7481 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7482 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7483 * ia64-tdep.c: Include "gdb_assert.h".
7484 (ia64_read_fp): New function.
7485 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7486 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7487 * regcache.c (generic_target_read_sp): Delete function.
7488 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7489 * inferior.h (generic_target_read_sp): Delete declaration.
7490 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7491 generic_target_read_sp.
7492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7493 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7494 * sh-tdep.c (sh_gdbarch_init): Ditto.
7495 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7496 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7497
ec5cbaec
AC
74982003-06-07 Andrew Cagney <cagney@redhat.com>
7499
7500 * gdbarch.sh: Comment each field of startup_gdbarch.
7501 * gdbarch.h, gdbarch.c: Re-generate.
7502
cde9ea48
AC
75032003-06-07 Andrew Cagney <cagney@redhat.com>
7504
7505 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7506 * gdbarch.h, gdbarch.c: Re-generate.
7507 * regcache.c: Update comments on read_pc et.al.
7508 (generic_target_read_pc): Delete function.
7509 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7510 * inferior.h (generic_target_read_pc): Delete declaration.
7511 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7512 generic_target_read_pc.
7513 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7514 * sh-tdep.c (sh_gdbarch_init): Ditto.
7515 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7517
9a90a780
AC
75182003-06-07 Andrew Cagney <cagney@redhat.com>
7519
7520 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7521 "index" with "special_local_sect". Use strcmp instead of STREQ.
7522 Append period to coments.
7523
a39a16c4
MM
75242003-06-06 Mark Mitchell <mark@codesourcery.com>
7525
7526 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7527 (elfstab_offset_sections): Likewise.
7528 * gdb-stabs.h (stab_section_info): Likewise.
7529 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7530 * objfiles.c (objfile_relocate): Likewise.
7531 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7532 * remote.c (get_offsets): Likewise.
7533 (remote_cisco_objfile_relocate): Likewise.
7534 * somread.c (som_symfile_offsets): Likewise.
7535 * symfile.c (alloc_section_addr_info): New function.
7536 (build_section_addr_info_from_section_tab): Use it.
7537 (free_section_addr_info): Adjust.
7538 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7539 (syms_from_objfile): Allocate local_addr dynamically.
7540 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7541 dynamically.
7542 (add_symbol_file_command): Allocate sect_opts dynamically.
7543 (reread_symbols): Avoid use of SECT_OFF_MAX.
7544 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7545 (alloc_section_addr_info): Declare it.
7546 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7547 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7548 dynamically.
7549 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7550
20c6c2f8
AC
75512003-06-06 Andrew Cagney <cagney@redhat.com>
7552
7553 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7554 (d10v_frame_unwind_cache): Do not set "return_pc".
7555
884a26c8
MS
75562003-06-06 Michael Snyder <msnyder@redhat.com>
7557
7558 * h8300-tdep.c: Make tidy (long lines).
7559
088ce440
ML
75602003-06-06 Michal Ludvig <mludvig@suse.cz>
7561
8ffd9b1b 7562 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7563 to regcache_collect().
7564
7d773d96
JB
75652003-06-05 J. Brobecker <brobecker@gnat.com>
7566
7567 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7568 pc_in_sigtramp multiarch method.
7569 (hppa_hpux_som_init_abi): Use it.
7570 (hppa_hpux_elf_init_abi): Likewise.
7571 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7572 macro has been multiarched.
7573 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7574 macro here, as hppa64 isn't multiarched yet.
7575
1df6926e
AC
75762003-06-05 Andrew Cagney <cagney@redhat.com>
7577
7578 * Makefile.in (value_h): Add $(frame_h).
7579 * value.h: Include "frame.h".
7580 (struct value): Replace "frame_addr" with "frame_id".
7581 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7582 * values.c (allocate_value): Use VALUE_FRAME_ID.
7583 (value_copy): Use VALUE_FRAME_ID.
7584 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7585 * valops.c (value_assign): Update. Use frame_find_by_id.
7586
6b53acc6
ML
75872003-06-05 Michal Ludvig <mludvig@suse.cz>
7588
7589 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7590 in each pass.
7591
4d9850d3
JJ
75922003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7593
7594 * thread-db.c (check_event): For create/death event breakpoints,
7595 loop through all messages to ensure that we read the message
7596 corresponding to the breakpoint we are at.
7597
8efca6ba
MS
75982003-06-04 Michael Snyder <msnyder@redhat.com>
7599
7600 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7601
0912c7f2
MK
76022003-06-04 Mark Kettenis <kettenis@gnu.org>
7603
7604 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7605 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7606 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7607 when handling .eh_frame sections.
7608
4e370325
JB
76092003-06-04 J. Brobecker <brobecker@gnat.com>
7610
7611 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7612 prepare_to_proceed procedure instead of the hppa-specific one.
7613 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7614
b757528f 76152003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7616
b757528f
JJ
7617 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7618 * config.in: Regenerated.
7619 * configure.in: Add test for syscall function and check for
7620 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7621 * configure: Regenerated.
7622 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7623 <sys/syscall.h>.
7624 (kill_lwp): New function that uses tkill syscall or
7625 uses kill, depending on whether threading model is nptl or not.
7626 All callers of kill() changed to use kill_lwp().
7627 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7628 see if all threads have already exited in the nptl model.
7629 (stop_and_resume_callback): New callback function used by the
7630 lin_lwp_wait thread exit handling code.
7631 (stop_wait_callback): Check for threads already having exited and
7632 delete such threads fromt the lwp list when discovered.
7633 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7634
b757528f
JJ
7635 Roland McGrath <roland@redhat.com>
7636 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7637 nptl libthread_db.
7638
087779b1
RH
76392003-06-03 Richard Henderson <rth@redhat.com>
7640
b21fd293
RH
7641 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7642 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7643 (alpha_sigtramp_frame_prev_register): Likewise.
7644 (alpha_heuristic_frame_prev_register): Likewise.
7645 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7646
8ffd9b1b 7647 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7648 alpha-specific register id names.
7649 (alpha_mdebug_frame_unwind_cache): Likewise.
7650 (alpha_mdebug_frame_prev_register): Likewise.
7651
baa490c4
RH
76522003-06-03 Richard Henderson <rth@redhat.com>
7653
7654 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7655 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7656 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7657 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7658 unwind routines.
7659 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7660 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7661 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7662
7663 * alpha-linux-tdep.c: Remove unnecessary includes.
7664 * Makefile.in (alpha-linux-tdep.o): Update.
7665
76662003-06-03 Richard Henderson <rth@redhat.com>
7667
7668 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7669 (alphabsd_fill_fpreg): Likewise.
7670
f534e522
JB
76712003-06-03 J. Brobecker <brobecker@gnat.com>
7672
7673 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7674 references to struct frame_info fields by calls to the equivalent
7675 accessors. Necessary now that frame_info is opaque.
7676
4035536b
JB
76772003-06-03 J. Brobecker <brobecker@gnat.com>
7678
7679 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7680 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7681 structure, field no longer exists.
7682
0bd79c5c
JB
76832003-06-03 J. Brobecker <brobecker@gnat.com>
7684
7685 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7686 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7687
37bb6d9f
JB
76882003-06-03 J. Brobecker <brobecker@gnat.com>
7689
7690 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7691 references to struct frame_info fields by calls to the equivalent
7692 accessors. Necessary now that frame_info is opaque.
7693
852ee05c
JB
76942003-06-03 J. Brobecker <brobecker@gnat.com>
7695
7696 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7697 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7698 structure, field no longer exists.
7699
7d58c67d
TR
77002003-06-03 Theodore A. Roth <troth@openavr.org>
7701
8ffd9b1b 7702 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7703 accumulation of the size of all registers instead of blindly using
7704 DEPRECATED_REGISTER_BYTES.
7705
0a48e7e8
MS
77062003-06-03 Michael Snyder <msnyder@redhat.com>
7707
7708 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7709 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7710 for h8300sx.
7711
9798ab0d
JB
77122003-06-03 J. Brobecker <brobecker@gnat.com>
7713
7714 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7715 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7716
00b037e2
AC
77172003-06-03 Andrew Cagney <cagney@redhat.com>
7718
7719 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7720 (sparc_convert_to_raw): Delete function.
7721 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7722 register_convert_to_virtual.
7723
043b2f77
JJ
77242003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7725
7726 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7727 layer if not dealing with a statically-linked threaded program.
7728
f43caff8
KW
77292003-06-03 Kris Warkentin <kewarken@qnx.com>
7730
7731 * solib.c (solib_open): Update comment to reflect actual search order.
7732
ae1e7417
AC
77332003-06-03 Andrew Cagney <cagney@redhat.com>
7734
7735 * frame.c (get_frame_memory_signed): New function.
7736 (get_frame_memory, get_frame_memory_unsigned): New function.
7737 (get_frame_arch): New function.
7738 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7739 (get_frame_memory, get_frame_unsigned_memory): Declare.
7740 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7741 get_frame_memory_unsigned and get_frame_arch.
7742 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7743
cb123844
RG
77442003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7745
7746 * MAINTAINERS (write after approval): Add myself.
7747
1bb792e9
JB
77482003-06-03 Jim Blandy <jimb@redhat.com>
7749
7750 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7751 elements of gregset_t are 64 bits each, but access registers
7752 are still 32 bits, so they're packed two per gregset_t
7753 element. Unpack/pack them properly.
7754
aee8d8ba
DC
77552003-06-02 David Carlton <carlton@bactrian.org>
7756
7757 * linespec.c (find_methods): Break out code into
7758 add_matching_methods and add_constructors.
7759 (add_matching_methods): New.
7760 (add_constructors): Ditto.
7761
bf7488d2
AC
77622003-06-02 Andrew Cagney <cagney@redhat.com>
7763
bf7488d2
AC
7764 * sparc-tdep.c (sparc_print_registers): Delete call to
7765 REGISTER_CONVERTIBLE.
7766 (sparc_gdbarch_init): Do not set register_convertible.
7767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7768 * frv-tdep.c (frv_gdbarch_init): Ditto.
7769 * cris-tdep.c (cris_gdbarch_init): Ditto.
7770
adedef68
EZ
77712003-06-02 Elena Zannoni <ezannoni@redhat.com>
7772
8ffd9b1b 7773 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7774 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7775 (syms_from_objfile): Ditto.
7776
650fcc91
AS
77772003-06-03 Andreas Schwab <schwab@suse.de>
7778
7779 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7780 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7781
df4a182b
RH
77822003-06-02 Richard Henderson <rth@redhat.com>
7783
7784 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7785 a member of all_reggroup.
7786
c483c494
RH
77872003-06-02 Richard Henderson <rth@redhat.com>
7788
7789 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7790 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7791 (alpha_lds, alpha_sts): New.
7792 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7793 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7794 restructure and fail for type sizes other than 4 or 8.
7795 (alpha_value_to_register): Similarly.
7796 (alpha_extract_return_value): Use alpha_sts.
7797 (alpha_store_return_value): Use alpha_lds.
7798 (alpha_gdbarch_init): Update hooks.
7799
b38b6be2
RH
78002003-06-02 Richard Henderson <rth@redhat.com>
7801
7802 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7803 regnum identifiers.
7804 (alpha_sigtramp_register_address): Likewise.
7805
98a8e1e5
RH
78062003-06-02 Richard Henderson <rth@redhat.com>
7807
7808 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7809 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7810 * alpha-tdep.h: Declare them.
7811
7812 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7813 Remove zerobuf. Don't error on UNIQUE.
7814 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7815 (ALPHA_REGSET_UNIQUE): Provide default.
7816 (supply_gregset): Use alpha_supply_int_regs.
7817 (fill_gregset): Use alpha_fill_int_regs.
7818 (supply_fpregset): Use alpha_supply_fp_regs.
7819 (fill_fpregset): Use alpha_fill_fp_regs.
7820 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7821 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7822 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7823 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7824 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7825 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7826
67dfac52
RH
78272003-06-02 Richard Henderson <rth@redhat.com>
7828
f75d70cc
RH
7829 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7830
67dfac52
RH
7831 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7832 (alpha_store_return_value): Likewise.
7833
0cf566ec
DC
78342003-06-02 David Carlton <carlton@math.stanford.edu>
7835
7836 * block.c (contained_in): Add 'const' to arguments.
7837 (block_function): Ditto.
7838 * block.h: Update declarations for block_function and
7839 contained_in.
7840
cdef89d0
DC
78412003-06-02 David Carlton <carlton@math.stanford.edu>
7842
7843 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7844 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7845 * p-valprint.c (pascal_val_print): Ditto.
7846 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7847
72667056
RH
78482003-06-02 Richard Henderson <rth@redhat.com>
7849
98a8e1e5
RH
7850 * alpha-tdep.c (alpha_push_dummy_call): Use
7851 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7852
8ffd9b1b 7853 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7854 sign-extension of 32-bit values.
7855 (alpha_store_return_value): Similarly.
0ede8eca 7856
98a8e1e5
RH
7857 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7858 (alpha_extract_return_value): Likewise.
7859 (alpha_store_return_value): Likewise.
7b5e1cb3 7860
98a8e1e5
RH
7861 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7862 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7863
98a8e1e5
RH
7864 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7865 (alpha_extract_struct_value_address): Likewise.
7866 (alpha_store_return_value): Likewise.
7867 (alpha_store_struct_return): Remove.
7868 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7869
98a8e1e5
RH
7870 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7871 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7872 macros where appropriate.
7873 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7874 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7875
98a8e1e5
RH
7876 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7877 for SP, GP; void_func_ptr for PC; non-language-specific types
7878 for all others.
7879 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7880
6dd77b81
RH
78812003-06-02 Richard Henderson <rth@redhat.com>
7882
7883 * top.h (lim_at_start): Declare.
7884 * main.c (captured_main): Set it.
7885 * top.c (lim_at_start): Define.
7886 (command_loop): Use it instead of &environ.
7887 * event-top.c (command_handler): Likewise.
7888
f4dbdb54
JT
78892003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7890
7891 * mipsnbsd-tdep.c: Update copyright years.
7892 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7893
8f285956
RH
78942003-06-01 Richard Henderson <rth@redhat.com>
7895
98a8e1e5
RH
7896 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7897 (alpha-linux-tdep.o): Update dependencies.
7898 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7899 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7900
615967cb
RH
79012003-06-01 Richard Henderson <rth@redhat.com>
7902
98a8e1e5
RH
7903 * alpha-tdep.c (alpha_register_reggroup_p): New.
7904 (alpha_gdbarch_init): Register it.
615967cb 7905
b59661bd
AC
79062003-06-02 Andrew Cagney <cagney@redhat.com>
7907
7908 * dwarfread.c: Eliminate "register"
7909 (decode_die_type): Eliminate assignment within "if".
7910 (struct_type, decode_array_element_type): Ditto.
7911 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7912 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7913 (decode_modified_type, completedieinfo): Ditto.
7914 * block.c: Eliminate "register".
7915 (blockvector_for_pc_sect): Eliminate assignment within "if".
7916 * cp-support.h (struct symbol): Opaque declaration.
7917 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7918
5ef165c2
RH
79192003-06-01 Richard Henderson <rth@redhat.com>
7920
98a8e1e5
RH
7921 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7922 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7923
143985b7
AF
79242003-06-01 Adam Fedor <fedor@gnu.org>
7925
7926 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7927 * gdbarch.[ch]: Regenerate.
7928 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7929 (hppa_gdbarch_init): Set it in the gdbarch vector.
7930 * i386-tdep.c (i386_fetch_pointer_argument): New
7931 (i386_gdbarch_init): Set it into gdbarch.
7932 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7933 (rs6000_gdbarch_init): Set it in gdbarch.
7934 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7935 (sparc_gdbarch_init): Set it in gdbarch.
7936
ae0167b9
AC
79372003-06-01 Andrew Cagney <cagney@redhat.com>
7938
7c0b4a20
AC
7939 * defs.h (extract_address): Delete declaration.
7940 * findvar.c (extract_address): Delete function.
7941 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7942 extract_address with the inline equivalent,
7943 extract_unsigned_integer.
7944 (xstormy16_extract_struct_value_address): Ditto.
7945 (xstormy16_pointer_to_address): Ditto.
7946 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7947 * v850-tdep.c (v850_push_arguments): Ditto.
7948 (v850_extract_return_value): Ditto.
7949 (v850_extract_struct_value_address): Ditto.
7950 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7951 (sparcnbsd_get_longjmp_target_64): Ditto.
7952 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7953 (get_longjmp_target): Ditto.
7954 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7955 (sh64_extract_struct_value_address): Ditto.
7956 (sh_push_arguments): Ditto.
7957 (sh64_push_arguments): Ditto.
7958 * remote-vxsparc.c (vx_read_register): Ditto.
7959 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7960 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7961 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7962 * mipsv4-nat.c (get_longjmp_target): Ditto.
7963 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7964 * mips-nat.c (get_longjmp_target): Ditto.
7965 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7966 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7967 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7968 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7969 * irix5-nat.c (get_longjmp_target): Ditto.
7970 * irix4-nat.c (get_longjmp_target): Ditto.
7971 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7972 (ia64_push_arguments): Ditto.
7973 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7974 * h8300-tdep.c (h8300_push_arguments): Ditto.
7975 (h8300_store_return_value): Ditto.
7976 (h8300_extract_struct_value_address): Ditto.
7977 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7978 (frv_push_arguments): Ditto.
7979 * avr-tdep.c (avr_pointer_to_address): Ditto.
7980 (avr_push_arguments): Ditto.
7981 * arm-tdep.c (arm_push_dummy_call): Ditto.
7982 (arm_get_longjmp_target): Ditto.
7983 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7984 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7985 (alpha_get_longjmp_target): Ditto.
7986
ae0167b9
AC
7987 * solib-irix.c (extract_mips_address): Inline extract_address,
7988 replacing it with extract_signed_integer.
7989 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7990 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7991 (first_link_map_member, open_symbol_file_object): Ditto.
7992 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7993 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7994 (LM_NEXT, LM_NAME): Ditto.
7995
44d88583
RH
79962003-06-01 Richard Henderson <rth@redhat.com>
7997
98a8e1e5
RH
7998 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7999 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8000 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8001 (alpha_cannot_store_register): Likewise.
8002 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8003 * alpha-nat.c (supply_gregset): Likewise.
8004 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8005
310e9b6a
AC
80062003-06-01 Andrew Cagney <cagney@redhat.com>
8007
8008 * infcall.c (call_function_by_hand): Update comment on
8009 DEPRECATED_DUMMY_WRITE_SP.
8010
8011 * mips-tdep.c (mips_gdbarch_init): Do not set
8012 deprecated_dummy_write_sp.
8013 (mips_eabi_push_dummy_call): Set the SP register.
8014 (mips_o64_push_dummy_call): Set the SP register.
8015 (mips_o32_push_dummy_call): Set the SP register.
8016 (mips_n32n64_push_dummy_call): Set the SP register.
8017
5ab84872
RH
80182003-06-01 Richard Henderson <rth@redhat.com>
8019
98a8e1e5
RH
8020 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8021 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8022 (supply_gregset): Likewise.
8023 * alpha-tdep.c (alpha_store_return_value): Likewise.
8024 (alpha_get_longjmp_target): Likewise.
8025 (alpha_register_name): Constify array.
8026 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8027 deprecated_register_size, deprecated_register_bytes,
8028 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8029 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8030 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8031
09cc52fd
RH
80322003-06-01 Richard Henderson <rth@redhat.com>
8033
8034 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8035 from arg_reg_buffer to regcache to avoid double conversion.
8036
c7f16359
MK
80372003-06-01 Mark Kettenis <kettenis@gnu.org>
8038
8039 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8040 SP_REGNUM.
8041 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8042 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8043
7131cb6e
RH
80442003-06-01 Richard Henderson <rth@redhat.com>
8045
98a8e1e5
RH
8046 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8047 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8048
f3e0f90b
RH
80492003-06-01 Richard Henderson <rth@redhat.com>
8050
98a8e1e5
RH
8051 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8052 not overlapping PC_REGNUM.
f3e0f90b 8053
c88e30c0
RH
80542003-06-01 Richard Henderson <rth@redhat.com>
8055
98a8e1e5
RH
8056 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8057 alpha_push_arguments. Don't dump argument register data to
8058 the target stack. Fix float and 128-bit long double semantics.
8059 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8060 (alpha_fix_call_dummy): Remove.
8061 (alpha_call_dummy_words): Remove.
8062 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8063
f1a559ae
RH
80642003-06-01 Richard Henderson <rth@redhat.com>
8065
8066 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8067
5e045346
AC
80682003-06-01 Andrew Cagney <cagney@redhat.com>
8069
95404a3e
AC
8070 * mips-tdep.c (is_mips16_addr): New function.
8071 (make_mips16_addr, unmake_mips16_addr): New functions.
8072 (pc_is_mips16, mips_fetch_instruction): Use.
8073 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8074 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8075 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8076 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8077 TARGET_MIPS.
8078 * config/mips/tm-mips.h: Update copyright.
8079 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8080 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8081 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8082 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8083 (TM_PRINT_INSN_MACH): Delete.
8084 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8085
5e045346
AC
8086 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8087 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8088 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8089 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8090 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8091 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8092 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8093 mips*-*-riscos* and mips*-*-sysv* onto mips.
8094 * config/mips/mips64.mt: New file.
8095 * config/mips/mips.mt: New file.
8096 * config/mips/littlemips.mt: Delete file.
8097 * config/mips/decstation.mt: Delete file.
8098 * config/mips/vr4300el.mt: Delete file.
8099 * config/mips/vr5000el.mt: Delete file.
8100 * config/mips/vr5000.mt: Delete file.
8101 * config/mips/vr4100.mt: Delete file.
8102 * config/mips/vr4xxxel.mt: Delete file.
8103 * config/mips/vr4300.mt: Delete file.
8104 * config/mips/vr4xxx.mt: Delete file.
8105 * config/mips/bigmips.mt: Delete file.
8106 * config/mips/bigmips64.mt: Delete file.
8107 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8108 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8109 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8110 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8111 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8112 "tm-bigmips.h".
8113 * config/mips/tm-irix3.h: Ditto.
8114 * config/mips/tm-mipsv4.h: Ditto.
8115 * config/mips/tm-embed.h: Ditto.
8116 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8117 "tm-bigmips64.h".
8118 * config/mips/tm-vr5000el.h: Delete file.
8119 * config/mips/tm-tx39l.h: Delete file.
8120 * config/mips/tm-vr4300el.h: Delete file.
8121 * config/mips/tm-vr4xxxel.h: Delete file.
8122 * config/mips/tm-vr4300.h: Delete file.
8123 * config/mips/tm-vr4100.h: Delete file.
8124 * config/mips/tm-vr4xxx.h: Delete file.
8125 * config/mips/tm-vr5000.h: Delete file.
8126 * config/mips/tm-embedl64.h: Delete file.
8127 * config/mips/tm-embedl.h: Delete file.
8128 * config/mips/tm-embed64.h: Delete file.
8129 * config/mips/tm-bigmips64.h: Delete file.
8130 * config/mips/tm-bigmips.h: Delete file.
8131
2473a4a9
MK
81322003-06-01 Mark Kettenis <kettenis@gnu.org>
8133
97a5b208
MK
8134 Fix gdb/1216.
8135 * shnbsd-nat.c: Include "sh-tdep.h".
8136
2473a4a9
MK
8137 From Richard Henderson <rth@redhat.com>:
8138 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8139
e0f7ec59
AC
81402003-05-31 Andrew Cagney <cagney@redhat.com>
8141
8142 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8143 forward declaration.
8144 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8145 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8146 (mips_find_saved_regs): Use set_reg_offset.
8147 (mips_frame_init_saved_regs): Delete function.
8148 (mips_pop_frame): Call mips_find_saved_regs instead of
8149 DEPRECATED_FRAME_INIT_SAVED_REGS.
8150
68dcc709
AC
81512003-05-31 Andrew Cagney <cagney@redhat.com>
8152
8153 * mips-tdep.c (mips_gdbarch_init): Do not set
8154 deprecated_max_register_raw_size, register_virtual_size, and
8155 deprecated_max_register_virtual_size.
8156
cfc14b3a
MK
81572003-05-31 Mark Kettenis <kettenis@gnu.org>
8158
6405b0a6
MK
8159 * i386-tdep.c: Include "dwarf2-frame.h".
8160 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8161 * Makefile.in (i386-tdep.o): Update dependencies.
8162
cfc14b3a
MK
8163 * dwarf2-frame.c, dwarf2-frame.h: New files.
8164 * Makefile.in (SFILES): Add dwarf2-frame.c.
8165 (dwarf2_frame_h): Define.
8166 (COMMON_OBS): Add dwarf2-frame.o.
8167 (dwarf2-frame.o): Add dependencies.
8168
6a2751d2
AJ
81692003-05-31 Andreas Jaeger <aj@suse.de>
8170
8171 * x86-64-linux-nat.c: Fix comment.
8172
1c3545ae
MK
81732003-05-31 Mark Kettenis <kettenis@gnu.org>
8174
10f93086
MK
8175 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8176 function signature.
8177
1c3545ae
MK
8178 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8179 have a sigcontext_addr handler.
8180 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8181 sigcontext_addr handler.
8182
e11c53d2
AC
81832003-05-31 Andrew Cagney <cagney@redhat.com>
8184
8185 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8186 (print_fp_register_row): Replace do_fp_register_row.
8187 (mips_print_fp_register): Add "file" and "frame" parameters.
8188 (mips_print_register): Add "file" and "frame" parameters.
8189 (mips_print_registers_info): Replace mips_do_registers_info.
8190 (mips_gdbarch_init): Set print_registers_info instead of
8191 deprecated_do_registers_info.
8192 (mips_read_fp_register_single): Add "frame" parameter.
8193 (mips_read_fp_register_double): Add "frame" parameter.
8194
a3386186
MK
81952003-05-31 Mark Kettenis <kettenis@gnu.org>
8196
70913449
MK
8197 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8198 Fixes a bug where GDB would print the wrong register names for
8199 targets without SSE.
8200
2b5e0749
MK
8201 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8202 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8203 registers.
8204
8205 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8206 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8207 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8208 TDEP->sc_sp_offset.
8209
a3386186
MK
8210 From Michal Ludvig <mludvig@suse.cz>:
8211 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8212 and `sc_num_regs'.
8213 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8214 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8215 I386_ST0_REGNUM): Move here from...
8216 * i386-tdep.c: ... here.
8217 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8218 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8219 registers if possible.
8220 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8221 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8222 Remove variables.
8223 (i386bsd_sc_reg_offset): New variable.
8224 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8225 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8226 TDEP->sc_sp_offset.
8227 (i386fbsd_sc_reg_offset): New variable.
8228 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8229 TDEP->sc_num_regs.
8230 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8231 variables.
8232 (i386fbsd4_sc_reg_offset): New variable.
8233 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8234 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8235 TDEP->sc_sp_offset.
8236 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8237 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8238 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8239 Remove variables.
8240 (i386nbsd_sc_reg_offset): New variable.
8241 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8242 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8243 TDEP->sc_sp_offset.
8244 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8245 Remove variables.
8246 (i386obsd_sc_reg_offset): New variable.
8247 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8248 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8249 TDEP->sc_sp_offset.
8250 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8251 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8252 for frame pointer offset in `struct sigcontext'.
8253
25ab4790
AC
82542003-05-31 Andrew Cagney <cagney@redhat.com>
8255
8256 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8257 architecture methods call_dummy_words, sizeof_call_dummy_words,
8258 push_return_address, store_struct_return, and fix_call_dummy. Set
8259 push_dummy_call instead of deprecated_push_arguments.
8260 (mips_store_struct_return): Delete function.
8261 (mips_fix_call_dummy): Delete function.
8262 (mips_push_return_address): Delete function.
8263 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8264 RA_REGNUM and T9_REGNUM.
8265 (mips_n32n64_push_dummy_call): Ditto for
8266 mips_n32n64_push_arguments.
8267 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8268 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8269
6a65450a
AC
82702003-05-31 Andrew Cagney <cagney@redhat.com>
8271
8272 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8273 "dummy_addr" to "bp_addr".
8274 * infcall.c (call_function_by_hand): Pass "funaddr" to
8275 gdbarch_push_dummy_call.
8276 * gdbarch.h, gdbarch.c: Re-generate.
8277 * i386-tdep.c (i386_push_dummy_call): Update.
8278 * arm-tdep.c (arm_push_dummy_call): Update.
8279 * d10v-tdep.c (d10v_push_dummy_call): Update.
8280
c4f35dd8
MK
82812003-05-31 Mark Kettenis <kettenis@gnu.org>
8282
8283 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8284 variable declarations.
8285 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8286 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8287 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8288 x86_64_init_frame_pc, x86_64_init_frame_pc,
8289 x86_64_function_has_prologue): Remove prototypes.
8290 (X86_64_NUM_GREGS): New define.
8291 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8292 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8293 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8294 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8295 XMM1_REGNUM): Remove defines.
8296 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8297 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8298 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8299 X86_64_XMM1_REGNUM): New defines.
8300 (struct x86_64_register_info): Renamed from `struct
8301 register_info'. Remove `size' member.
8302 (x86_64_register_info_table): Remove variable.
8303 (x86_64_register_info): New variable.
8304 (X86_64_NUM_REGS): New define.
8305 (X86_64_NUM_GREGS): Remove define.
8306 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8307 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8308 Remove variables.
8309 (x86_54_dwarf2_reg_to_regnum): Remove function.
8310 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8311 (x86_64_dwarf_reg_to_regnum): New function.
8312 (x86_64_register_name): Rewrite.
8313 (x86_64_register_raw_size): Remove function.
8314 (x86_64_register_byte_table): Remove variable.
8315 (x86_64_register_byte): Remove function.
8316 (x86_64_register_virtual_type): Remove function.
8317 (x86_64_register_type): New function.
8318 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8319 x86_64_register_convert_to_raw): Remove functions.
8320 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8321 (x86_64_use_struct_convention): Make static. Adjust for renamed
8322 defines.
8323 (x86_64_frame_init_saved_regs): Remove function.
8324 (x86_64_push_arguments): Make static. Change to accept a regcache
8325 as argument.
8326 (x86_64_store_return_value, x86_64_extract_return_value): Make
8327 static. Rewrite based on i386 counterparts.
8328 (x86_64_push_dummy_call): New function.
8329 (X86_64_NUM_SAVED_REGS): New define.
8330 (x86_64_register_number): Remove function.
8331 (x86_64_store_struct_return): Remove function.
8332 (x86_64_frameless_function_invocation,
8333 x86_64_function_has_prologue): Remove functions.
8334 (PROLOG_BUFSIZE): Remove define.
8335 (struct x86_64_frame_cache): New structure.
8336 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8337 x86_64_frame_cache, x86_64_frame_this_id,
8338 x86_64_frame_prev_register, x86_64_frame_p,
8339 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8340 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8341 functions.
8342 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8343 variables.
8344 (x86_64_skip_prologue): Rewrite in terms of
8345 x86_64_analyze_prologue.
8346 (x86_64_frame_base_address): New function.
8347 (x86_64_frame_base): New variable.
8348 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8349 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8350 set deprecated_fp_regnum, deprecated_register_size,
8351 deprecated_register_bytes, register_raw_size, register_byte,
8352 register_virtual_type, register_convertiable,
8353 register_convert_to_virtual, convert_to_raw,
8354 deprecated_get_saved_register, deprecated_target_read_fp,
8355 deprecated_push_arguments, deprecated_push_return_address,
8356 deprecated_pop_frame, deprecated_store_struct_return,
8357 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8358 frameless_function_invocation, deprecated_frame_saved_pc,
8359 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8360 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8361 deprecated_init_frame_pc and virtual_frame_pointer. Call
8362 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8363 and x86_64_frame_p. Call frame_base_set_default to register
8364 x86_64_frame_base.
8365 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8366 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8367 (_initialize_x86_64_tdep): Remove function.
8368 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8369 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8370 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8371 define.
8372 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8373 (x86_64_linux_sigcontext_addr): Rewrite.
8374 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8375 x86_64_linux_frame_saved_pc): Remove functions.
8376 (x86_64_linux_pc_in_sigtramp): Renamed from
8377 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8378 trampoline.
8379 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8380 Remove_functions.
8381 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8382 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8383 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8384 (x86_64_regmap): Rename to regmap.
8385 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8386 x86_64_num_gregs.
8387 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8388 x86_64_regmap.
8389 (x86_64_fxsave_offset): Remove function.
8390 (supply_fpregset): Simply call x86_64_supply_fxsave.
8391 (fill_fpregset): Simply call x86_64_fill_fxsave.
8392 (fetch_inferior_registers, store_inferior_registers): Avoid
8393 asignment in if-statement.
8394 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8395 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8396 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8397 (fetch_core_registers): Remove function.
8398 (linux_elf_core_fns): Remove.
8399 (offsetoff): Don't define.
8400 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8401 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8402 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8403 add core-regset.o.
8404 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8405 protection against multiple includes instead of NM_X86_64_h. Add
8406 various comments. Include "config/nm-linux.h". Don't include
8407 <signal.h>.
8408 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8409 GET_THREAD_SIGNALS): Remove defines.
8410 (x86_64_register_u_addr, kernel_u_size,
8411 lin_thread_get_thread_signals): Remove prototypes.
8412 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8413 [HAVE_LINK_H]: Don't include "solib.h".
8414 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8415 * config/i386/tm-x86-64linux.h: Fix comments.
8416 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8417 x86-64-tdep.o): Update dependencies.
8418
c25083af
AC
84192003-05-30 Andrew Cagney <cagney@redhat.com>
8420
c8f55a7b
AC
8421 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8422 Change parameter type to a "struct regcache *".
8423
c25083af
AC
8424 * gdbarch.sh: Regardless of the multi-arch level, always define
8425 the macro when not already defined.
8426 * gdbarch.h, gdbarch.c: Re-generate.
8427
fbe586ae
RH
84282003-05-30 Richard Henderson <rth@redhat.com>
8429
8430 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8431 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8432 (alpha_mdebug_frame_this_id): Likewise.
8433 (alpha_mdebug_frame_prev_register): Likewise.
8434 (alpha_mdebug_frame_base_address): Likewise.
8435 (alpha_mdebug_frame_locals_address): Likewise.
8436 (alpha_mdebug_frame_args_address): Likewise.
8437 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8438 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8439 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8440 loop increment.
8441 (alpha_heuristic_frame_this_id): Make static.
8442 (alpha_heuristic_frame_prev_register): Likewise.
8443 (alpha_heuristic_frame_base_address): Likewise.
8444 * alpha-tdep.h: Update.
8445
acd5c798
MK
84462003-05-30 Mark Kettenis <kettenis@gnu.org>
8447
8448 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8449 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8450 defenitions.
8451 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8452 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8453 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8454 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8455 I386_ST0_REGNUM): New defines.
8456 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8457 codestream_get): Remove define.
8458 (codestream_next_addr, condestream_addr, condestream_buf,
8459 codestream_off, codestream_cnt): Remove variables.
8460 (codestream_fill, codestream_seek, codestream_read): Remove
8461 functions.
8462 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8463 functionality.
8464 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8465 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8466 i386_frame_saved_pc, i386_saved_pc_after_call,
8467 i386_frame_num_args, i386_frame_init_saved_regs,
8468 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8469 i386_push_arguments): Remove functions.
8470 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8471 functionality. Use i386_analyze_prologue instead of
8472 i386_get_frame_setup.
8473 (I386_NUM_SAVED_REGS): New define.
8474 (struct i386_frame_cache): New structure.
8475 (i386_alloc_frame_cache, i386_analyze_struct_return,
8476 i386_skip_probe, i386_analyze_frame_setup,
8477 i386_analyze_register_saves, i386_analyze_prologue,
8478 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8479 i386_frame_prev_register, i386_sigtramp_frame_cache,
8480 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8481 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8482 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8483 New functions.
8484 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8485 New variables.
8486 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8487 I386_EAX_REGNUM and I386_EDX_REGNUM.
8488 (i386_extract_return_value, i386_store_return_value): Use
8489 I386_ST0_REGNUM where appropriate.
8490 (i386_extract_struct_value_address): Rewrite to use extract_address.
8491 (i386_svr4_pc_in_sigtramp): Add comment.
8492 (i386_svr4_sigcontext_addr): Rewrite.
8493 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8494 TDEP->sc_sp_offset.
8495 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8496 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8497 of new defines. Set push_dummy_call, don't set
8498 deprecated_push_arguments, deprecated_push_return_address,
8499 deprecated_pop_frame. Don't set parm_boundary. Don't set
8500 deprecated_frame_chain, deprecated_frame_saved_pc,
8501 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8502 save_dummy_frame_tos, unwind_pc. Call
8503 frame_unwind_append_predicate and frame_base_set_default. Don't
8504 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8505 Don't set frameless_function_invocation. Don't set
8506 deprecated_register_bytes, deprecated_register_size,
8507 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8508 * i386-linux-tdep.c: Fix formatting in some comments.
8509 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8510 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8511 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8512 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8513 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8514 redundant parentheses.
8515 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8516 (i386_linux_sigcontext_addr): Use it. Rewrite.
8517 (find_minsym_and_objfile): Change name of second argument.
8518 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8519 changed. Use frame_pc_unwind instead of
8520 DEPRECATED_SAVED_PC_AFTER_CALL.
8521 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8522 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8523 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8524 unwinder.
8525 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8526 "dummy-frame.h".
8527 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8528 (_initialize_i386_cygwin_tdep): New prototype.
8529 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8530 deprecated_frame_chain_valid.
8531 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8532 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8533 Rely on the SVR4 defaults.
8534 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8535 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8536
c89b70f1
AC
85372003-05-30 Andrew Cagney <cagney@redhat.com>
8538
8539 * infcall.c (call_function_by_hand): Always call
8540 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8541
85b32d22
RH
85422003-05-30 Richard Henderson <rth@redhat.com>
8543
c89b70f1
AC
8544 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8545 increment.
85b32d22 8546
bfe51b1e
JB
85472003-05-29 Jim Blandy <jimb@redhat.com>
8548
8549 Use gdbarch methods for solib stuff on PowerPC Linux.
8550 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8551 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8552 show through.
8553 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8554 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8555 giving the same effect as the #definitions above.
8556
1abf022c
AF
85572003-05-29 Adam Fedor <fedor@gnu.org>
8558
8559 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8560 (find_implementation_from_class): Replace it with the standard
8561 case i.e. do nothing.
8562
d2427a71
RH
85632003-05-29 Richard Henderson <rth@redhat.com>
8564
8565 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8566 (alpha_linux_sigtramp_offset): Use it. Make static.
8567 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8568 update for new frame model.
8569 * alpha-mdebug-tdep.c: New file.
8570 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8571 (alpha_osf1_init_abi): Install it.
8572 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8573 (linked_proc_desc_table): Remove.
8574 (alpha_frame_past_sigtramp_frame): Remove.
8575 (alpha_dynamic_sigtramp_offset): Remove.
8576 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8577 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8578 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8579 (push_sigtramp_desc): Remove.
8580 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8581 (alpha_cannot_store_register): Likewise.
8582 (alpha_sigcontext_addr): Remove.
8583 (alpha_find_saved_regs): Remove.
8584 (alpha_frame_init_saved_regs): Remove.
8585 (alpha_init_frame_pc_first): Remove.
8586 (read_next_frame_reg): Remove.
8587 (alpha_frame_saved_pc): Remove.
8588 (alpha_saved_pc_after_call): Remove.
8589 (temp_proc_desc, temp_saved_regs): Remove.
8590 (alpha_about_to_return): Remove.
8591 (cached_proc_desc): Remove.
8592 (alpha_frame_chain): Remove.
8593 (alpha_print_extra_frame_info): Remove.
8594 (alpha_init_extra_frame_info): Remove.
8595 (alpha_frame_locals_address): Remove.
8596 (alpha_frame_args_address): Remove.
8597 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8598 (alpha_push_dummy_frame): Remove.
8599 (alpha_pop_frame): Remove.
8600 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8601 (alpha_read_insn): New.
8602 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8603 for different insn encodings.
8604 (alpha_in_lenient_prologue): Remove.
8605 (struct alpha_sigtramp_unwind_cache): New.
8606 (alpha_sigtramp_frame_unwind_cache): New.
8607 (alpha_sigtramp_register_address): New.
8608 (alpha_sigtramp_frame_this_id): New.
8609 (alpha_sigtramp_frame_prev_register): New.
8610 (alpha_sigtramp_frame_unwind): New.
8611 (alpha_sigtramp_frame_p): New.
8612 (struct alpha_heuristic_unwind_cache): New.
8613 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8614 don't count nop insns that occur between functions.
8615 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8616 heuristic_proc_desc, but without the mdebug wrapping.
8617 (alpha_heuristic_frame_this_id): New.
8618 (alpha_heuristic_frame_prev_register): New.
8619 (alpha_heuristic_frame_unwind): New.
8620 (alpha_heuristic_frame_p): New.
8621 (alpha_heuristic_frame_base_address): New.
8622 (alpha_heuristic_frame_base): New.
8623 (alpha_unwind_dummy_id): New.
8624 (alpha_unwind_pc): New.
8625 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8626 frame related deprecated initializations; install replacements.
8627 (alpha_dump_tdep): Remove.
8628 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8629 (alpha_read_insn, alpha_after_prologue,
8630 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8631 alpha_heuristic_frame_prev_register,
8632 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8633 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8634 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8635 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8636
93ec1121
AC
86372003-05-29 Andrew Cagney <cagney@redhat.com>
8638
8639 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8640 dependant on the availability of ASSERT_FUNCTION.
8641 (ASSERT_FUNCTION): Do not define when there is no function name.
8642
98f08d3d
KB
86432003-05-29 Kevin Buettner <kevinb@redhat.com>
8644
8645 From Jimi X <jimix@watson.ibm.com>:
8646 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8647
0897f59b
JB
86482003-05-28 Jim Blandy <jimb@redhat.com>
8649
8650 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8651 argument to ptrace to int; the system headers should give it the
8652 right type, and pointers don't fit in ints on powerpc64-*-*.
8653
14898363
L
86542003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8655
8656 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8657 DW_TAG_catch_block.
8658
a7a48797
EZ
86592003-05-26 Elena Zannoni <ezannoni@redhat.com>
8660
8661 * stabsread.c (dbx_lookup_type): Make static.
8662 (read_type): Ditto.
8663 (add_undefined_type): Ditto.
8664 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8665 not export.
8666
f5479e9c
EZ
86672003-05-26 Elena Zannoni <ezannoni@redhat.com>
8668
8669 * hpread.c (hpread_has_name): Make static.
8670 (hpread_psymtab_to_symtab): Ditto.
8671 (file_exists): Ditto.
8672 (hpread_call_pxdb): Ditto.
8673 (hpread_pxdb_needed): Ditto.
8674 (hpread_quick_traverse): Ditto.
8675 (hpread_get_header): Ditto.
8676 (hpread_get_lntt): Ditto.
8677 (hpread_get_slt): Ditto.
8678 (class_of): Ditto.
8679
eb2e12d7
AS
86802003-05-25 Andreas Schwab <schwab@suse.de>
8681
78bf922a
AS
8682 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8683 stack_align and deprecated_extra_stack_alignment_needed.
8684 (m68k_stack_align): Delete.
8685
eb2e12d7
AS
8686 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8687 (m68k_register_virtual_size): Likewise.
8688 (altos_skip_prologue): Remove obsolete function.
8689 (isi_frame_num_args): Likewise.
8690 (news_frame_num_args): Likewise.
8691 (m68k_fix_call_dummy): Make static.
8692 (m68k_push_dummy_frame): Likewise.
8693 (m68k_pop_frame): Likewise.
8694 (m68k_skip_prologue): Likewise.
8695 (m68k_frame_init_saved_regs): Likewise.
8696 (m68k_saved_pc_after_call): Likewise.
8697 (m68k_get_longjmp_target): Make multi-arch.
8698 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8699 structure. Register m68k_get_longjmp_target if enabled.
8700 * m68k-tdep.h (struct gdbarch_tdep): Define.
8701 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8702
8703 * Makefile.in (config.status): Also depend on configure.tgt
8704 and configure.host.
8705 (m68klinux-tdep.o): Update dependencies.
8706 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8707 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8708 (M68K_LINUX_JB_PC): Define.
8709 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8710 and take additional parameter.
8711 (m68k_linux_sigtramp_saved_pc): Update.
8712 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8713 m68k_linux_pc_in_sigtramp, in_plt_section,
8714 find_solib_trampoline_target.
8715 * config/m68k/tm-linux.h: Don't include any tm headers.
8716 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8717 (JB_ELEMENT_SIZE): Likewise.
8718 (JB_PC): Likewise.
8719 (GET_LONGJMP_TARGET): Likewise.
8720 (IN_SIGTRAMP): Likewise.
8721 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8722
eb2c22dc
MK
87232003-05-25 Mark Kettenis <kettenis@gnu.org>
8724
8725 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8726 (sparc32_push_arguments): Re-implement by calling
8727 sparc32_do_push_arguments.
8728
44b7b84e
MK
87292003-05-25 Mark Kettenis <kettenis@gnu.org>
8730
8731 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8732 SPARC_O1_REGNUM): New defines.
8733 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8734 (sparc32_store_return_value): New function.
8735 (sparc_extract_struct_value_address): Rewrite to operate on a
8736 regcache.
8737 (sparc_gdbarch_init): Don't set
8738 deprecated_extract_struct_value_address. Set
8739 extract_struct_value_address instead. Don't set
8740 deprecated_extract_return_value and deprecated_store_return_value
8741 for 32-bit targets. Set extract_return_value and
8742 store_return_value instead.
8743 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8744 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8745 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8746 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8747 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8748 (sparc_store_return_value): Remove prototype.
8749 (sparc32_store_return_value): New prototype.
8750 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8751 Adjust prototypes.
8752
f6ad61e3
MK
87532003-05-24 Mark Kettenis <kettenis@gnu.org>
8754
8755 * sparcnbsd-tdep.c: Include "gdb_string.h".
8756
b276f1bb
AC
87572003-05-23 Andrew Cagney <cagney@redhat.com>
8758
8759 * p-valprint.c (pascal_val_print): Replace extract_address with
8760 the inline equivalent extract_unsigned_integer.
8761 * jv-valprint.c (java_value_print): Ditto.
8762 * ada-valprint.c (ada_val_print_1): Ditto.
8763 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8764
e76c5fcc
TR
87652003-05-23 Theodore A. Roth <troth@openavr.org>
8766
8767 * blockframe.c (frameless_look_for_prologue): Remove unused
8768 after_prologue variable.
8769
2cdd89cb
MK
87702003-05-23 Mark Kettenis <kettenis@gnu.org>
8771
8772 * blockframe.c (get_pc_function_start): Rewrite to avoid
8773 asignments in if-statements.
8774
182d43bc
EZ
87752003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8776
8777 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8778 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8779 files, don't relocate absolute symbols (and do use mst_abs).
8780
e8f3fcdd
AC
87812003-05-23 Andrew Cagney <cagney@redhat.com>
8782
8783 * objc-lang.c: Include "gdb_assert.h".
8784 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8785 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8786 (gdb_check, gdb_check_fatal): Delete functions.
8787 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8788 gdb_assert.
8789 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8790 * Makefile.in (objc-lang.o): Update dependencies.
8791
3c23e6fb
ILT
87922003-05-22 Ian Lance Taylor <ian@airs.com>
8793
8794 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8795 with fprintf_filtered, not fprintf_unfiltered.
8796
af1342ab
AC
87972003-05-22 Andrew Cagney <cagney@redhat.com>
8798
8799 * stack.c (frame_info): Inline extract_address, replacing it with
8800 extract_unsigned_integer.
8801 * findvar.c (unsigned_pointer_to_address): Ditto.
8802 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8803 * dwarf2expr.c (dwarf2_read_address): Ditto.
8804 * frame.c (frame_pc_unwind): Update comment.
8805 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8806
47e242ec
JJ
88072003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8808
8809 * infptrace.c (detach): Call print_sys_errmsg rather than
8810 perror_with_name to issue warning message when errno is non-zero
8811 after calling ptrace detach.
8812
e2ac8128
JB
88132003-05-21 J. Brobecker <brobecker@gnat.com>
8814
8815 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8816 macro definitions from here...
8817 * hppa-tdep.c: ...to there.
8818
92b3541e
KB
88192003-05-20 Kevin Buettner <kevinb@redhat.com>
8820
8821 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8822 register_ptrace_addr(). Fix all callers.
8823
55809acb
AS
88242003-05-21 Andreas Schwab <schwab@suse.de>
8825
8826 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8827 dependencies.
8828 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8829 end.
8830 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8831 (_initialize_m68k_linux_tdep): New function.
8832 (m68k_linux_frame_saved_pc): Make static.
8833 (m68k_linux_extract_return_value): Likewise.
8834 (m68k_linux_store_return_value): Likewise.
8835 (m68k_linux_extract_struct_value_address): Likewise.
8836 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8837 Remove.
8838 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8839 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8840 (DEPRECATED_FRAME_SAVED_PC): Remove.
8841
0fbc10f7
KW
88422003-05-20 Kris Warkentin <kewarken@qnx.com>
8843
8844 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8845 regset numbering rather than our own.
8846
58da2eb2
DC
88472003-05-19 David Carlton <carlton@bactrian.org>
8848
8849 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8850
1fcb5155
DC
88512003-05-19 David Carlton <carlton@bactrian.org>
8852
8853 Partial fix for PR c++/827.
8854 * cp-support.h: Include symtab.h.
8855 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8856 * cp-namespace.c: Update contributors.
8857 (cp_lookup_symbol_nonlocal): New.
8858 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8859 (lookup_symbol_file): Ditto.
8860 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8861 * block.h: Declare block_scope, block_using, block_global_block.
8862 * block.c (block_scope): New.
8863 (block_using, block_global_block): Ditto.
8864 * Makefile.in (cp_support_h): Depend on symtab_h.
8865 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8866
5f9a71c3
DC
88672003-05-19 David Carlton <carlton@bactrian.org>
8868
8869 * language.h (struct language_defn): Add 'la_value_of_this'
8870 and 'la_lookup_symbol_nonlocal' members.
8871 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8872 lookup_symbol_static, lookup_symbol_global,
8873 lookup_symbol_aux_block.
8874 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8875 if we should search fields of this and how to do static/global
8876 lookup.
8877 (lookup_symbol_aux_block): Make extern.
8878 (basic_lookup_symbol_nonlocal): New.
8879 (lookup_symbol_static, lookup_symbol_global): Ditto.
8880 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8881 'la_lookup_symbol_nonlocal' members.
8882 * c-lang.c (c_language_defn, cplus_language_defn)
8883 (asm_language_defn, minimal_language_defn): Ditto.
8884 * jv-lang.c (java_language_defn): Ditto.
8885 * language.c (unknown_language_defn, auto_language_defn)
8886 (local_language_defn): Ditto.
8887 * m2-lang.c (m2_language_defn): Ditto.
8888 * objc-lang.c (objc_language_defn): Ditto.
8889 * scm-lang.c (scm_language_defn): Ditto.
8890 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8891 * p-lang.c (pascal_language_defn): Ditto for both.
8892 * Makefile.in (f-lang.o): Depend on value_h.
8893 (p-lang.o): Ditto.
8894
89a9d1b1
DC
88952003-05-19 David Carlton <carlton@bactrian.org>
8896
8897 * block.h: Declare block_static_block.
8898 * block.c (block_static_block): New.
8899 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8900 lookup_symbol_aux_local, calling block_static_block instead.
8901 (lookup_symbol_aux_local): Delete 'static_block' argument.
8902
eed3f8ab
DC
89032003-05-19 David Carlton <carlton@bactrian.org>
8904
8905 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8906
a09d8bda
ML
89072003-05-19 Michal Ludvig <mludvig@suse.cz>
8908
8909 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8910 register numbers mapping.
8911
69636828
AF
89122003-05-18 Adam Fedor <fedor@gnu.org>
8913
8914 * symtab.c (completion_list_objc_symbol): New function.
8915 (make_symbol_completion_list): Use it to add ObjC symbols
8916 when looking though the list.
8917 (language_search_unquoted_string): New function.
8918 (make_file_symbol_completion_list): Use it.
8919
55baeb84
AS
89202003-05-18 Andreas Schwab <schwab@suse.de>
8921
d0b45d99
AS
8922 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8923 dependencies.
8924 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8925 as m68k_linux_extract_return_value.
8926 (DEPRECATED_STORE_RETURN_VALUE): Define as
8927 m68k_linux_store_return_value.
8928 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8929 m68k_linux_extract_struct_value_address.
8930 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8931 get_next_frame, get_frame_base, get_frame_pc.
8932 (m68k_linux_frame_saved_pc): Use get_frame_base.
8933 (m68k_linux_extract_return_value): New function.
8934 (m68k_linux_store_return_value): New function.
8935 (m68k_linux_extract_struct_value_address): New function.
8936 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8937
55baeb84
AS
8938 * c-exp.y (typebase): Remove duplicate occurence of
8939 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8940 of lookup_signed_typename.
55baeb84 8941
b6b08ebf
MK
89422003-05-18 Mark Kettenis <kettenis@gnu.org>
8943
8944 * dwarf2loc.c (find_location_expression): Change type of second
8945 argument to `size_t *'.
8946 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8947 for size variable.
8948
5ad1c190
DC
89492003-05-18 David Carlton <carlton@bactrian.org>
8950
8951 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8952 'linkage_name'. Add comment.
8953 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8954 'linkage_name'.
8955 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8956 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8957 (lookup_block_symbol): Ditto.
8958
b8b527c5
AC
89592003-05-16 Andrew Cagney <cagney@redhat.com>
8960
8961 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8962 * gdbarch.h, gdbarch.c: Re-generate.
8963 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8964 * TODO (REGISTER_BYTES): Delete reference.
8965 * alpha-tdep.c (alpha_gdbarch_init): Update.
8966 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8967 * x86-64-tdep.c (x86_64_init_abi): Update.
8968 * vax-tdep.c (vax_gdbarch_init): Update.
8969 * v850-tdep.c (v850_gdbarch_init): Update.
8970 * sparc-tdep.c (sparc_gdbarch_init): Update.
8971 * sh-tdep.c (sh_gdbarch_init): Update.
8972 * s390-tdep.c (s390_gdbarch_init): Update.
8973 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8974 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8975 (ns32k_gdbarch_init_32382): Update.
8976 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8977 * mcore-tdep.c (mcore_gdbarch_init): Update.
8978 * m68k-tdep.c (m68k_gdbarch_init): Update.
8979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8980 * ia64-tdep.c (ia64_gdbarch_init): Update.
8981 * i386-tdep.c (i386_gdbarch_init): Update.
8982 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8983 * hppa-tdep.c (hppa_gdbarch_init): Update.
8984 * h8300-tdep.c (h8300_gdbarch_init): Update.
8985 * frv-tdep.c (frv_gdbarch_init): Update.
8986 * cris-tdep.c (cris_gdbarch_init): Update.
8987 * avr-tdep.c (avr_gdbarch_init): Update.
8988 * arm-tdep.c (arm_gdbarch_init): Update.
8989 * sparc-tdep.c (sparc_pop_frame): Update.
8990 * rs6000-tdep.c (rs6000_pop_frame): Update.
8991 * remote.c (init_remote_state): Update.
8992 (remote_prepare_to_store): Update.
8993 * remote-vx.c (vx_prepare_to_store): Update.
8994 * remote-sds.c (sds_fetch_registers): Update.
8995 (sds_prepare_to_store): Update.
8996 * remote-array.c: Update.
8997 * regcache.c (init_legacy_regcache_descr): Update.
8998 (init_regcache_descr): Update.
8999 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9000 (mips_o64_extract_return_value): Update.
9001 * irix5-nat.c (fetch_core_registers): Update.
9002 * irix4-nat.c (fetch_core_registers): Update.
9003 * i386-tdep.h: Update.
9004 * hppa-tdep.c (pa_do_registers_info): Update.
9005 (pa_do_strcat_registers_info): Update.
9006 * cris-tdep.c (cris_register_bytes_ok): Update.
9007 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9008 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9009 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9010 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9011 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9012 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9013 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9014 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9015 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9016 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9017 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9018 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9019 (REGISTER_BYTES_OK): Update.
9020 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9021 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9022
ee2842e2
ILT
90232003-05-16 Ian Lance Taylor <ian@airs.com>
9024
9025 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9026 (vax_print_insn, print_insn_arg): Remove static functions.
9027 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9028 print_insn_vax from opcodes library.
9029 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9030
973177d3
AC
90312003-05-15 Andrew Cagney <cagney@redhat.com>
9032
aaab4dba
AC
9033 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9034 * target.h (memory_breakpoint_from_pc): Delete declaration.
9035 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9036 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9037 * monitor.c (monitor_insert_breakpoint): Use
9038 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9039 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9040 * gdbarch.h, gdbarch.c: Re-generate.
9041 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9042 (sparc_gdbarch_init): Set breakpoint_from_pc to
9043 sparc_breakpoint_from_pc.
9044 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9045 (BREAKPOINT_FROM_PC): Define.
9046 (sparc_breakpoint_from_pc): Declare.
9047 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9048 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9049 (BREAKPOINT_FROM_PC): Define.
9050 (BREAKPOINT): Delete macro.
9051 * target.h: Update comment.
9052 * s390-tdep.c (s390_gdbarch_init): Update comments.
9053 * remote.c: Update comments.
9054 * remote-mips.c: Update comments.
9055 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9056 * mem-break.c: Update comment.
9057 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9058 (ia64_memory_insert_breakpoint): Update.
9059 * config/sparc/tm-sparc.h: Update comment.
9060 * config/pa/tm-hppa64.h: Update comment.
9061 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9062 (rs6000_breakpoint_from_pc): Update.
9063 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9064 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9065 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9066 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9067 (mips_breakpoint_from_pc): Update.
9068 (mips_dump_tdep): Update.
9069
e06963ff
AC
9070 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9071 * minsyms.c (lookup_minimal_symbol): Inline
9072 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9073
973177d3
AC
9074 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9075 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9076 * p-lang.c (pascal_printstr): Ditto.
9077 * objc-lang.c (objc_printstr): Ditto.
9078 * m2-lang.c (m2_printstr): Ditto.
9079 * jv-valprint.c (java_print_value_fields): Ditto.
9080 * f-lang.c (f_printstr): Ditto.
9081 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9082 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9083 for repeat_count_threshold.
9084 * Makefile.in (cp-valprint.o): Update dependencies.
9085
5ea2bd7f 90862003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9087
5ea2bd7f
JJ
9088 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9089 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9090 they start with mov r2,r12. Support skipping over indirect stores
9091 of the input registers. Upon hitting a non-nop branch instruction
9092 or predicated instruction, bail out by setting lim_pc to the current
9093 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9094 beyond our calculated value and we have trust_limit set,
9095 use the lim_pc value.
9096
cc8c88f3
AC
90972003-05-15 Andrew Cagney <cagney@redhat.com>
9098
9099 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9100 generic_find_dummy_frame.
9101 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9102 (deprecated_generic_find_dummy_frame): Update.
9103 (deprecated_read_register_dummy): Update.
9104 * frame.c (deprecated_generic_get_saved_register): Update.
9105
909cd28e
TR
91062003-05-15 Theodore A. Roth <troth@openavr.org>
9107
9108 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9109 (avr_gdbarch_init): Set breakpoint_from_pc method.
9110
b923b08d
AC
91112003-05-15 Andrew Cagney <cagney@redhat.com>
9112
9113 * regcache.c (build_regcache): Set deprecated_register_valid
9114 directly.
9115 (deprecated_grub_regcache_for_register_valid): Delete function.
9116 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9117 declaration.
9118
ae2f03ac 91192003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9120
9121 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9122 * symtab.c (lookup_symbol_aux): Delete calls to
9123 lookup_symbol_aux_minsyms.
9124 (lookup_symbol_aux_minsyms): Comment out function and
9125 prototype. Delete lookup by mangled name.
ae2f03ac 9126
18ec9831
KB
91272003-05-14 Kevin Buettner <kevinb@redhat.com>
9128
9129 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9130 correctly indicate an empty stack and ``stack_allocated'' to the
9131 indicate the number of elements initially allocated.
9132 (dwarf_expr_grow_stack): Simplify method for computing new
9133 stack size. Don't loop infinitely if ``stack_len'' is zero.
9134 (execute_stack_op): Move ``ctx->in_reg'' initialization
9135 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9136 be used in conjuction with DW_OP_piece. Revise error message
9137 accordingly.
9138
de18ac1f
TR
91392003-05-14 Theodore A. Roth <troth@openavr.org>
9140
9141 * MAINTAINERS: Update my email address.
9142 * avr-tdep.c: Ditto.
9143
176620f1
EZ
91442003-05-14 Elena Zannoni <ezannoni@redhat.com>
9145
9146 * symtab.h (enum domain_enum): Rename from namespace_enum.
9147 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9148 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9149 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9150 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9151 TYPES_NAMESPACE, METHODS_NAMESPACE.
9152 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9153 (struct symbol, struct partial_symbol): Rename field
9154 'namespace_enum namespace' to 'domain_enum domain'.
9155 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9156 Delete old define kludge for namespace.
9157
9158 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9159 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9160 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9161 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9162 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9163 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9164 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9165 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9166 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9167 occurrences of the above.
9168
b7f31508
ILT
91692003-05-14 Ian Lance Taylor <ian@airs.com>
9170
9171 * Makefile.in (install-only): Use $(SHELL) when running
9172 mkinstalldirs.
9173
2fdbdd39
ILT
91742003-05-13 Ian Lance Taylor <ian@airs.com>
9175
a208d82c
ILT
9176 * MAINTAINERS (write after approval): Add myself.
9177
2fdbdd39
ILT
9178 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9179 second and third arguments.
9180 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9181 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9182
fbd9dcd3
AC
91832003-05-13 Andrew Cagney <cagney@redhat.com>
9184
9185 * defs.h (store_address): Delete declaration.
9186 findvar.c (store_address): Delete function.
9187 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9188 store_unsigned_integer.
9189 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9190 * v850-tdep.c (v850_push_arguments): Ditto.
9191 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9192 * sh-tdep.c (sh64_get_saved_register): Ditto.
9193 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9194 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9195 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9196 (mips_get_saved_register): Ditto.
9197 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9198 (find_func_descr, ia64_push_arguments): Ditto.
9199 * i386-tdep.c (i386_push_arguments): Ditto.
9200 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9201 * frv-tdep.c (frv_push_arguments): Ditto.
9202 * frame.c (legacy_saved_regs_prev_register): Ditto.
9203 (deprecated_generic_get_saved_register): Ditto.
9204 * findvar.c (unsigned_address_to_pointer): Ditto.
9205 * dwarf2read.c (dwarf2_const_value): Ditto.
9206 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9207 * alpha-tdep.c (alpha_push_arguments): Ditto.
9208
6760f9e6
JB
92092003-05-12 J. Brobecker <brobecker@gnat.com>
9210
9211 * NEWS: Mention that the hppa-hpux port has been partially
9212 multiarched (32bit ABIT only, so far).
9213
30e221b4
AC
92142003-05-11 Andrew Cagney <cagney@redhat.com>
9215
9216 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9217 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9218 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9219 sim/testsuite/sim/arm/misaligned2.ms, and
9220 sim/testsuite/sim/arm/misaligned3.ms.
9221 * disasm.h (struct ui_file): Add opaque struct declaration.
9222 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9223 * frame.h (struct ui_file): Ditto.
9224
dea7f9ba
MK
92252003-05-11 Mark Kettenis <kettenis@gnu.org>
9226
9227 * value.h: Pretty print.
9228
01986c48
MK
92292003-05-10 Mark Kettenis <kettenis@gnu.org>
9230
9231 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9232
123a958e
AC
92332003-05-08 Andrew Cagney <cagney@redhat.com>
9234
9235 * regcache.h (max_register_size): Delete declaration.
9236 * regcache.c (max_register_size): Delete function.
9237 (struct regcache_descr): Delete field "max_register_size".
9238 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9239 registers fit in MAX_REGISTER_SIZE.
9240 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9241 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9242 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9243 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9244 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9245 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9246 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9247 * dve3900-rom.c, hppa-tdep.c: Ditto.
9248
eb294659
DC
92492003-05-08 David Carlton <carlton@math.stanford.edu>
9250
9251 * valops.c (push_word): Fix typo.
9252
d9d9c31f
AC
92532003-05-08 Andrew Cagney <cagney@redhat.com>
9254
9255 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9256 * gdbarch.h: Re-generate.
9257 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9258 (legacy_max_register_raw_size): Delete declaration.
9259 * regcache.c (legacy_max_register_raw_size): Delete function.
9260 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9261 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9262 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9263 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9264 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9265 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9266 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9267 * findvar.c, dwarf2cfi.c: Ditto.
9268
22540ece
AC
92692003-05-08 Andrew Cagney <cagney@redhat.com>
9270
9271 * mips-tdep.c (read_signed_register): New function, moved to here
9272 from "regcache.c".
9273 (read_signed_register_pid): Ditto.
9274 * regcache.c (read_signed_register_pid): Delete function, moved to
9275 "mips-tdep.c".
9276 (read_signed_register): Ditto.
9277 * regcache.h (read_signed_register): Delete declaration.
9278 (read_signed_register_pid): Delete declaration.
9279
0c92afe8
AC
92802003-05-08 Andrew Cagney <cagney@redhat.com>
9281
9282 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9283 * gdbarch.h: Re-generate.
9284 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9285 (legacy_max_register_virtual_size): Delete declaration.
9286 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9287 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9288 * tracepoint.c (memrange_sortmerge): Ditto.
9289 * sparc-tdep.c (sparc_print_registers): Ditto.
9290 * regcache.c (legacy_max_register_virtual_size): Delete function.
9291
6037b830
JB
92922002-05-08 J. Brobecker <brobecker@gnat.com>
9293
9294 * fork-child.c (escape_bang_in_quoted_argument): New function.
9295 (fork_inferior): Escape '!' characters in quoted arguments
9296 only when needed.
9297
5d62c8b1
JB
92982003-05-08 J. Brobecker <brobecker@gnat.com>
9299
9300 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9301 the language of the CU is not currently supported by GDB.
9302
20a0e81d
JB
93032003-05-08 J. Brobecker <brobecker@gnat.com>
9304
9305 * defs.h (language): Add language_minimal enum value.
9306 * c-lang.c (minimal_language_defn): New language definition.
9307 (_initialize_c_language): Add the new minimal language to the list
9308 of languages known to GDB.
9309
710ee10a
KB
93102003-05-08 Kevin Buettner <kevinb@redhat.com>
9311
9312 * frame.c (get_frame_type): Don't attempt to lazily initialize
9313 frame's unwinder for legacy frames.
9314
1750fa04
AC
93152003-05-07 Andrew Cagney <cagney@redhat.com>
9316
9317 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9318 and "regcache" parameters.
9319 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9320
ddf9f258 93212003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9322
9323 * dwarf2read.c (dwarf_decode_lines): Only use output of
9324 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9325 the current address.
9326
87767c29
AC
93272003-05-07 Andrew Cagney <cagney@redhat.com>
9328
9329 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9330 code.
9331
5e7b2f39
JB
93322003-05-07 Jim Blandy <jimb@redhat.com>
9333
9334 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9335 'maint info symtabs' and 'maint info psymtabs'.
9336 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9337 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9338 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9339 Declarations updated.
9340 * maint.c (maintenance_list_command): Delete.
9341 (_initialize_maint_cmds): Update calls to add_cmd.
9342 * gdbcmd.h (maintenancelistlist): Delete declaration.
9343 * cli/cli-cmds.c (maintenancelistlist): Delete.
9344 (init_cmd_lists): Don't initialize it.
9345 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9346
f6684c31
AC
93472003-05-07 Andrew Cagney <cagney@redhat.com>
9348
9349 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9350 "regcache".
9351 (d10v_print_registers_info): Update.
9352 (d10v_dmap_register, d10v_imap_register): Delete functions.
9353 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9354 and "imap_register".
9355 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9356 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9357 * arch-utils.c (generic_remote_translate_xfer_address): Add
9358 "regcache" and "gdbarch" parameters.
9359 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9360 parameter. Change class to multi-arch.
9361 * gdbarch.h, gdbarch.c: Re-generate.
9362 * remote.c (remote_xfer_memory): Use
9363 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9364
e4846b08
JJ
93652003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9366
9367 * infrun.c (prev_pc): Move declaration ahead of proceed().
9368 (proceed): Refresh prev_pc value before resuming.
9369 (stop_stepping): Remove code to refresh prev_pc.
9370
6b71b8ac
KW
93712003-05-06 Kris Warkentin <kewarken@qnx.com>
9372
9373 * nto-tdep.c: Removed stray comment.
9374
47979a4b
KW
93752003-05-06 Kris Warkentin <kewarken@qnx.com>
9376
9377 * i386-nto-tdep.c: Fix old K&R function definitions.
9378 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9379 Also change add_show_from_set() call to add_setshow_cmd().
9380 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9381
00905d52
AC
93822003-05-05 Andrew Cagney <cagney@redhat.com>
9383
9384 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9385 (fprint_dummy_frames): New function.
9386 (maintenance_print_dummy_frames): New function.
9387 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9388 * frame.c (fprint_frame_id): Make global.
9389 * frame.h (fprint_frame_id): Declare.
9390 * Makefile.in (dummy-frame.o): Update dependencies.
9391
b1e29e33
AC
93922003-05-05 Andrew Cagney <cagney@redhat.com>
9393
9394 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9395 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9396 SIZEOF_CALL_DUMMY_WORDS.
9397 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9398 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9399 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9400 CALL_DUMMY_BREAKPOINT_OFFSET.
9401 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9402 CALL_DUMMY_START_OFFSET.
9403 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9404 * gdbarch.h, gdbarch.c: Re-generate.
9405 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9406 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9407 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9408 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9409 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9410 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9411 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9412 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9413 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9414 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9415 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9416 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9417 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9418 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9419 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9420
94212003-05-05 Kris Warkentin <kewarken@qnx.com>
9422
9423 * configure.tgt: Add i[3456]86-*-nto*.
9424 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9425 * nto-tdep.c: New file. Neutrino target support routines.
9426 * nto-tdep.h: New file. Neutrino target header.
9427 * config/tm-qnxnto.h: New file.
9428 * config/i386/i386nto.mt: New file.
9429 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9430
0ce3d317
AC
94312003-05-04 Andrew Cagney <cagney@redhat.com>
9432
9433 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9434 (load_infrun_state): Ditto.
9435 (struct thread_info): Drop "prev_func_name" field.
9436 * thread.c (load_infrun_state): Update.
9437 (save_infrun_state): Update.
9438 * infrun.c (prev_func_name): Delete variable.
9439 (init_wait_for_inferior): Do not clear prev_func_name.
9440 (stop_stepping, keep_going, context_switch): Do not swap
9441 prev_func_name.
9442 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9443 instead of PC_IN_SIGTRAMP.
9444
46654a5b
AC
94452003-05-04 Andrew Cagney <cagney@redhat.com>
9446
9447 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9448 REGISTER_BYTE with register_offset_hack.
9449 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9450 that REGISTER_BYTE is consistent with the regcache.
9451 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9452 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9453
14b08c1b
MK
94542003-05-04 Mark Kettenis <kettenis@gnu.org>
9455
04c8243f
MK
9456 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9457 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9458
14b08c1b
MK
9459 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9460
c7a11e01
JB
94612003-05-03 J. Brobecker <brobecker@gnat.com>
9462
9463 From Thierry Schneider <tpschneider1@yahoo.com>
9464 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9465 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9466 (mi-cmd-symbol.o): Add rule.
9467
7043d8dc
AC
94682003-05-03 Andrew Cagney <cagney@redhat.com>
9469
9470 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9471 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9472 * gdbarch.h, gdbarch.c: Re-generate.
9473 * d10v-tdep.c (d10v_push_dummy_code): New function.
9474 (d10v_gdbarch_init): Set push_dummy_code.
9475 * infcall.c (legacy_push_dummy_code): New function.
9476 (generic_push_dummy_code): New function.
9477 (push_dummy_code): New function.
9478 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9479 instead of dummy_addr, to push_dummy_call. Move call to
9480 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9481 switch.
9482 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9483
92bf2b80
AC
94842003-05-03 Andrew Cagney <cagney@redhat.com>
9485
9486 * disasm.h (print_insn): Declare.
9487 * disasm.c (init_gdb_disassemble_info): New function.
9488 (gdb_disassembly): Call init_gdb_disassemble_info.
9489 (gdb_print_insn): New function.
9490 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9491 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9492 * mcore-tdep.c: Include "disasm.h"
9493 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9494 * d10v-tdep.c: Include "disasm.h".
9495 (display_trace): Call gdb_print_insn, instead of print_insn.
9496 (print_insn): Delete function.
9497 * printcmd.c: Include "disasm.h".
9498 (print_insn): Delete function.
9499 (print_formatted): Call gdb_print_insn, instead of print_insn.
9500 * Makefile.in (printcmd.o): Update dependencies.
9501 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9502
27d94c49
AC
95032003-05-02 Andrew Cagney <cagney@redhat.com>
9504
82de1e5b
AC
9505 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9506 PC_REGNUM, re-indent.
9507 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9508 PC_REGNUM isn't set.
9509
27d94c49
AC
9510 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9511 * gdbarch.h, gdbarch.c: Re-generate.
9512 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9513 register_virtual_size, pc_regnum, or register_bytes.
9514 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9515 (d10v_register_type): Use D10V_PC_REGNUM.
9516 (d10v_print_registers_info, d10v_read_pc): Ditto.
9517 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9518 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9519
a9c0dc7f
DC
95202003-05-02 David Carlton <carlton@bactrian.org>
9521
9522 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9523 the name with mstrsave.
9524
e33d66ec
EZ
95252003-05-02 Elena Zannoni <ezannoni@redhat.com>
9526
9527 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9528 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9529 (host_charset_name, target_charset_name): New vars for use by
9530 set/show commands.
9531 (host_charset_enum, target_charset_enum): New enums for set/show
9532 commands.
9533 (set_charset_sfunc, set_host_charset_sfunc,
9534 set_target_charset_sfunc): New functions.
9535 (set_host_charset, set_target_charset): Make static.
9536 (list_charsets, set_host_charset_command,
9537 set_target_charset_command): Delete functions.
9538 (show_charset_command): Rewrite as....
9539 (show_charset): Hook this up with the set/show command mechanism.
9540 (_initialize_charset): Change names of charsets to match the
9541 set/show enums. Use host_charset_name and target_charset_name.
9542 Use set/show mechanism for charset, host-charset, target-charset
9543 commands. Do not make 'show host-charset' and 'show
9544 target-charset' be aliases of 'show charset'.
9545
9546 * charset.h (set_host_charset, set_target_charset): Don't export,
9547 they are not used outside the file.
9548
2b6fd0d8
AC
95492003-05-01 Andrew Cagney <cagney@redhat.com>
9550
9551 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9552 (gdb_disassembly): Make "di" non static, always initialize and
9553 cleanup. Always use dis_asm_read_memory.
9554 (gdb_dis_asm_read_memory): Delete function.
9555
6ae2f580
AC
95562003-05-01 Andrew Cagney <cagney@redhat.com>
9557
9558 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9559 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9560
810ecf9f
AC
95612003-04-30 Andrew Cagney <cagney@redhat.com>
9562
9563 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9564 "tm_print_insn_info".
9565 (TARGET_PRINT_INSN_INFO): Delete macro.
9566 (dis_asm_read_memory): Delete function declaration.
9567 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9568 (tm_print_insn_info): Delete variable definition.
9569 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9570 * gdbarch.h, gdbarch.c: Re-generate.
9571 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9572 "deprecated_tm_print_insn_info".
9573 * mcore-tdep.c (mcore_dump_insn): Ditto.
9574 * mips-tdep.c (mips_gdbarch_init): Ditto.
9575 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9576 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9577 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9578 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9579 instead of TARGET_PRINT_INSN_INFO, add comment.
9580 * s390-tdep.c (s390_get_frame_info): Instead of
9581 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9582 (s390_check_function_end, s390_is_sigreturn): Ditto.
9583 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9584 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9585 * disasm.c: Include "gdbcore.h".
9586 (_initialize_disasm): New function, initialize
9587 "deprecated_tm_print_insn_info".
9588 (deprecated_tm_print_insn_info): New variable.
9589 (dis_asm_read_memory): Moved from "corefile.c", made static.
9590 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9591 * Makefile.in (disasm.o): Update dependencies.
9592
07020390
AC
95932003-04-30 Andrew Cagney <cagney@redhat.com>
9594
9595 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9596
a9fa03de
AF
95972003-04-29 Adam Fedor <fedor@gnu.org>
9598
9599 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9600 * infcall.c (find_function_addr): Make non-static.
9601 * infcall.h (find_function_addr): Declare.
9602 * Makefile.in (eval.o): Update dependencies.
9603
1bae87b9
AF
96042003-04-28 Adam Fedor <fedor@gnu.org>
9605
9606 * symtab.c (symbol_find_demangled_name): Check for and demangle
9607 ObjC symbols.
9608 (symbol_init_demangled_name): Init for language_objc as well.
9609
0ba6dca9
AC
96102003-04-28 Andrew Cagney <cagney@redhat.com>
9611
9612 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9613 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9614 * gdbarch.h, gdbarch.c: Re-generate.
9615 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9616 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9617 * inferior.h (deprecated_read_fp): Rename read_fp.
9618 (generic_target_read_fp): Delete declaration.
9619 * regcache.c (generic_target_read_fp): Delete function.
9620 (deprecated_read_fp): Replace read_fp, use
9621 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9622 * d10v-tdep.c (d10v_read_fp): Delete function.
9623 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9624
9625 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9626 deprecated_target_read_fp to generic_target_read_fp.
9627 * sh-tdep.c (sh_gdbarch_init): Ditto.
9628 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9630 * frv-tdep.c (frv_gdbarch_init): Ditto.
9631
9632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9633 deprecated_fp_regnum.
9634 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9635 * vax-tdep.c (vax_gdbarch_init): Ditto.
9636 * v850-tdep.c (v850_gdbarch_init): Ditto.
9637 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9638 * sh-tdep.c (sh_gdbarch_init): Ditto.
9639 * s390-tdep.c (s390_gdbarch_init): Ditto.
9640 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9641 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9642 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9643 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9645 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9646 * i386-tdep.c (i386_gdbarch_init): Ditto.
9647 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9649 * frv-tdep.c (frv_gdbarch_init): Ditto.
9650 * cris-tdep.c (cris_gdbarch_init): Ditto.
9651 * avr-tdep.c (avr_gdbarch_init): Ditto.
9652 * arm-tdep.c (arm_gdbarch_init): Ditto.
9653 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9654
9655 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9656 * v850-tdep.c (v850_gdbarch_init): Ditto.
9657 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9658 * sh-tdep.c (sh_gdbarch_init): Ditto.
9659 * s390-tdep.c (s390_gdbarch_init): Ditto.
9660 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9661 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9662 * mips-tdep.c (mips_gdbarch_init): Ditto.
9663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9664 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9665 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9666 * frv-tdep.c (frv_gdbarch_init): Ditto.
9667 * avr-tdep.c (avr_gdbarch_init): Ditto.
9668 * arm-tdep.c (arm_gdbarch_init): Ditto.
9669
9670 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9671 DEPRECATED_FP_REGNUM.
9672 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9673 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9674 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9675 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9676 (sparc32_register_virtual_type): Ditto.
9677 * sh-tdep.c (sh64_frame_chain): Ditto.
9678 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9679 (sh_nofp_frame_init_saved_regs): Ditto.
9680 (sh64_nofp_frame_init_saved_regs): Ditto.
9681 (sh_fp_frame_init_saved_regs): Ditto.
9682 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9683 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9684 * procfs.c (procfs_fetch_registers): Ditto.
9685 (procfs_store_registers): Ditto.
9686 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9687 (store_inferior_registers, fetch_core_registers): Ditto.
9688 (fetch_kcore_registers, clear_regs): Ditto.
9689 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9690 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9691 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9692 * nlm/i386.c (do_status): Ditto.
9693 * mipsv4-nat.c (supply_gregset): Ditto.
9694 * mips-tdep.c: Ditto for comments.
9695 * mips-nat.c (fetch_inferior_registers): Ditto.
9696 (store_inferior_registers, fetch_core_registers): Ditto.
9697 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9698 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9699 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9700 (i386_do_pop_frame, i386_register_type): Ditto.
9701 * hppa-tdep.c (hppa_frame_chain): Ditto.
9702 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9703 (hppa_pop_frame, hppa_read_fp): Ditto.
9704 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9705 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9706 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9707 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9708 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9709 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9710 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9711 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9712 * blockframe.c: Ditto for comments.
9713 * arch-utils.h: Ditto for comments.
9714 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9715 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9716 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9717 * alpha-tdep.h: Ditto for comments.
9718 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9719 (alpha_cannot_store_register): Ditto.
9720 (alpha_push_dummy_frame): Ditto.
9721 * alpha-nat.c (supply_gregset): Ditto.
9722
9723 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9724 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9725 * config/sparc/tm-sparc.h: Update comment.
9726
9727 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9728 deprecated_read_fp instead of TARGET_READ_FP.
9729 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9730 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9731 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9732 deprecated_read_fp instead of read_fp.
9733 * s390-tdep.c (s390_push_arguments): Ditto.
9734 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9735 * frame.h: Ditto in comments.
9736 * frame.c (legacy_get_prev_frame): Ditto.
9737 * dummy-frame.c (dummy_frame_this_id): Ditto.
9738 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9739
d7a27068
AC
97402003-04-28 Andrew Cagney <cagney@redhat.com>
9741
9742 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9743 * gdbarch.h, gdbarch.c: Re-generate.
9744 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9745 * vax-tdep.c (_initialize_vax_tdep): Update.
9746 * v850-tdep.c (_initialize_v850_tdep): Update.
9747 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9748 * s390-tdep.c (_initialize_s390_tdep): Update.
9749 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9750 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9751 * mips-tdep.c (_initialize_mips_tdep): Update.
9752 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9753 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9754 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9755 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9756 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9757 * frv-tdep.c (_initialize_frv_tdep): Update.
9758 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9759 (_initialize_cris_tdep): Update.
9760 * arch-utils.c (legacy_print_insn): Update.
9761 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9762
d2630e69
AF
97632003-04-26 Adam Fedor <fedor@gnu.org>
9764
9765 * linespec.c (decode_objc): New function to decode ObjC calls
9766 (decode_line_1): Check for ObjC calls (using decode_objc)
9767 * Makefile (linespec.o): Update dependencies.
9768
3086aeae
DJ
97692003-04-26 Daniel Jacobowitz <drow@mvista.com>
9770
9771 * breakpoint.h (struct breakpoint_ops): New.
9772 (struct breakpoint): Add ops member.
9773
9774 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9775 (mention): Use new breakpoint ops member.
9776 (set_raw_breakpoint): Initialize ops field to NULL.
9777 (print_exception_catchpoint, print_one_exception_catchpoint)
9778 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9779 (gnu_v3_exception_catchpoint_ops): New.
9780 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9781
1fbec6c3
AF
97822003-04-25 Adam Fedor <fedor@gnu.org>
9783
9784 * Makefile.in (COMMON_OBS): Add objc-lang.o
9785
0ef21242
AC
97862003-04-25 Andrew Cagney <cagney@redhat.com>
9787
9788 * d10v-tdep.c (print_insn): Delete function.
9789 (display_trace): Use TARGET_PRINT_INSN.
9790 (_initialize_d10v_tdep): Do not set tm_print_insn.
9791 (d10v_gdbarch_init): Set print_insn.
9792
f75493ed
AC
97932003-04-25 Andrew Cagney <cagney@redhat.com>
9794
9795 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9796 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9797 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9798 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9799 (nr_dmap_regs, a0_regnum): ... new functions.
9800 (d10v_print_registers_info): Use a0_regnum, use register_size.
9801 (d10v_register_byte): Delete function.
9802 (d10v_register_raw_size): Delete function.
9803 (d10v_register_type): Use a0_regnum.
9804 (d10v_print_registers_info): Use a0_regnum.
9805 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9806 (d10v_gdbarch_init): Do not set register_byte or
9807 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9808 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9809 extract_address.
9810 (trace_command): Use XCALLOC.
9811 (print_insn): Delete reference to tm_print_insn.
9812 (saved_regs_unwinder): Use store_unsigned_integer instead of
9813 store_address.
9814 * frame.h (FRAME_OBSTACK_CALLOC): Define
9815
2202b100
DC
98162003-04-25 David Carlton <carlton@bactrian.org>
9817
9818 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9819
4e45ca2e
AF
98202003-04-24 Adam Fedor <fedor@gnu.org>
9821
9822 * objc-lang.c: Include "valprint.h"
9823 * Makefile.in (objc-lang.o): Update dependencies.
9824
93de3e7f
AF
98252003-04-24 Adam Fedor <fedor@gnu.org>
9826
8ffd9b1b 9827 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9828 architecture dependant compilation and mark as unimplemented
9829 (until they get put in the gdbarch vector).
9830
0f20eeea
DC
98312003-04-23 David Carlton <carlton@bactrian.org>
9832
9833 * cp-support.c (cp_find_first_component): Accept 'operator' in
9834 more locations.
9835
74cfe982
AC
98362003-04-23 Andrew Cagney <cagney@redhat.com>
9837
9838 * infcall.c (call_function_by_hand): Eliminate redundant
9839 indentation. Move "saved_async" and "old_cleanups" to where they
9840 are needed.
8ffd9b1b 9841
52557533
AC
98422003-04-23 Andrew Cagney <cagney@redhat.com>
9843
9844 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9845 and "buffer". Move the "name" code to where it is needed.
9846
158775de
AC
98472003-04-23 Andrew Cagney <cagney@redhat.com>
9848
9849 * infcall.c (call_function_by_hand): Move variables "start_sp",
9850 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9851 code to ON_STACK switch branch.
8ffd9b1b 9852
ebc7896c
AC
98532003-04-23 Andrew Cagney <cagney@redhat.com>
9854
9855 * infcall.c (call_function_by_hand): Make declaration of "i",
9856 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9857 lint.
9858
d727590f
AC
98592003-04-23 Andrew Cagney <cagney@redhat.com>
9860
9861 * infcall.c (call_function_by_hand): Delete variable
9862 "n_method_args". Localize "param_type"'s declaration to the loop
9863 that it is used. Reinstate code assigning to said variable -
9864 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9865 Rationalize code using "param_type".
9866
d585e13a
AC
98672003-04-22 Andrew Cagney <cagney@redhat.com>
9868
9869 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9870 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9871 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9872 to DEPRECATED_PUSH_RETURN_ADDRESS.
9873
051caad9
KB
98742003-04-22 Kevin Buettner <kevinb@redhat.com>
9875
9876 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9877 on the DWARF2 register number prior to fetching a register.
9878
77296879
JB
98792003-04-22 J. Brobecker <brobecker@gnat.com>
9880
9881 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9882 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9883 this macro was always set to 0.
77296879
JB
9884 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9885 considering the fact that this macro was always set to 0.
9886 * hppa-tdep.h (hppa_store_return_value): Likewise.
9887 (hppa_extract_return_value): Likewise.
9888
4252f1df
JB
98892003-04-22 J. Brobecker <brobecker@gnat.com>
9890
9891 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9892 the hppa-pro target only.
9893
14604c6b
JB
98942003-04-21 J. Brobecker <brobecker@gnat.com>
9895
9896 Ongoing multi-arch conversion effort for HP/UX:
9897 * config/pa/tm-hppa.h: Move all macro that are no longer
9898 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9899 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9900
77eb01d1
JB
99012003-04-21 J. Brobecker <brobecker@gnat.com>
9902
9903 * config/pa/tm-hppa.h: Obsolete a section that was only used
9904 for hppa-pro.
9905
61995b3b
JB
99062003-04-21 J. Brobecker <brobecker@gnat.com>
9907
9908 Ongoing multi-arch conversion for HP/UX.
9909 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9910 if already defined (allows hppa64 to stay non-multiarched for now).
9911 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9912
4aa79dcc
AC
99132003-04-21 Andrew Cagney <cagney@redhat.com>
9914
9915 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9916
0f751ff2
AC
99172003-04-21 Andrew Cagney <cagney@redhat.com>
9918
9919 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9920 "i386_num_mmx_regs".
9921
04714b91
AC
99222003-04-21 Andrew Cagney <cagney@redhat.com>
9923
9924 * infcall.c: New file.
9925 * infcall.h: New file.
9926 * valarith.c: Include "infcall.h".
9927 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9928 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9929 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9930 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9931 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9932 (SFILES): Add "infcall.c"
9933 (COMMON_OBS): Add "infcall.o".
9934 (infcall.o): Specify dependencies.
9935 * value.h (call_function_by_hand): Delete declaration.
9936 * inferior.h (run_stack_dummy): Delete declaration.
9937 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9938 (run_stack_dummy): Move to "infcall.c", merged into
9939 call_function_by_hand.
9940 * valops.c (call_function_by_hand): Moved to "infcall.c".
9941 (find_function_addr, value_arg_coerce): Ditto.
9942 (unwindonsignal_p, coerce_float_to_double): Ditto.
9943 (_initialize_valops): Move "set/show coerce-float-to-double", and
9944 "set/show unwindonsignal" commands to "infcall.c".
9945 * v850-tdep.c, target.h: Update comments.
9946 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9947 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9948 (sh64_init_extra_frame_info): Update comments.
9949 * mn10300-tdep.c: Update comments.
9950 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9951 * config/sparc/tm-sparc.h: Update comments.
9952 * breakpoint.h: Update comments.
9953 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9954 * arm-tdep.c: Update comment.
9955
f9d3c2a8
MK
99562003-04-19 Mark Kettenis <kettenis@gnu.org>
9957
c40e1eab
MK
9958 * i386-tdep.c (i386_num_register_names): New variable.
9959 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9960 (MM0_REGNUM): Remove redundant parentheses in define.
9961 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9962 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9963 i386_mxcsr_regnum_p): Remove redundant parentheses.
9964 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9965
94ea66b3
MK
9966 * i386-tdep.c (i386_extract_return_value,
9967 i386_store_return_value): Correct check for availability of
9968 floating-point registers.
9969
54299a1d
MK
9970 * i386-tdep.c (i386_frame_num_args): Remove function.
9971 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9972
c86c27af
MK
9973 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9974 mmx_regnum_to_fp_regnum. Adjust all callers.
9975
f9d3c2a8
MK
9976 * i386-tdep.c (i386_get_longjmp_target): Use
9977 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9978 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9979 extract_address.
9980
94ba74a9
MK
99812003-04-19 Mark Kettenis <kettenis@gnu.org>
9982
9983 * core-regset.c: Update comments to reflect reality. Re-order
9984 includes.
9985 (fetch_core_registers): Use switch instead of if. Remove
9986 redundant prototype.
9987
4074e13c
JB
99882003-04-18 Jim Blandy <jimb@redhat.com>
9989
9990 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9991 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9992
e3ab4aba
RH
99932003-04-17 Richard Henderson <rth@redhat.com>
9994
9995 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9996
627bf7c1
EZ
99972003-04-17 Michael Snyder <msnyder@redhat.com>
9998 Karen Bennet <bennet@redhat.com>
9999
10000 Committed by Elena Zannoni <ezannoni@redhat.com>
10001 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10002
514621a9
EZ
100032003-04-17 Elena Zannoni <ezannoni@redhat.com>
10004
10005 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10006 value if the return type is void.
514621a9 10007
b4acd559
JJ
100082003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10009
10010 * thread-db.c: Reindented.
8ffd9b1b 10011
530b167e 100122003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10013
10014 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10015 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10016 as types.
10017
0a48e7e8
MS
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
8ffd9b1b 10041
ab9fe00e
KB
100422003-04-16 Kevin Buettner <kevinb@redhat.com>
10043
610a3745 10044 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10045 the size of ``long double'' to 16, instead of 8.
10046
e64a344c
MK
100472003-04-16 Mark Kettenis <kettenis@gnu.org>
10048
10049 * i386-linux-nat.c: Add some whitespace to make things more
10050 readable.
10051 (fetch_register, store_register, fetch_inferior_registers,
10052 store_inferior_registers): Get rid of assignment in if-statement.
10053 (store_register): Fix typo in error message.
10054
25d41031
AC
100552003-04-16 Andrew Cagney <cagney@redhat.com>
10056
10057 * utils.c (xmmalloc): Always allocate something, matches
10058 libiberty/xmalloc's semantics.
10059 (xmrealloc, xmcalloc): Ditto.
10060
c50901fd
AC
100612003-04-16 Andrew Cagney <cagney@redhat.com>
10062
10063 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10064 update comments.
10065 (get_frame_type): Initialize unwind and type when needed.
10066 (get_frame_id, frame_register_unwind): Ditto.
10067
f81824a9
AC
100682003-04-16 Andrew Cagney <cagney@redhat.com>
10069
10070 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10071 obsolete.
10072 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10073 * sparcl-stub.c: Obsolete file.
10074 * config/sparc/tm-sparclet.h: Obsolete file.
10075 * sparclet-stub.c: Obsolete file.
10076 * sparclet-rom.c: Obsolete file.
10077 * sparcl-tdep.c: Obsolete file.
10078 * config/sparc/tm-sparclite.h: Obsolete file.
10079 * config/sparc/sparclite.mt: Obsolete file.
10080 * config/sparc/sparclet.mt: Obsolete file.
10081 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10082 sparc86x-*-* obsolete.
10083
9219021c
DC
100842003-04-15 David Carlton <carlton@math.stanford.edu>
10085
10086 * Makefile.in (SFILES): Add cp-namespace.c.
10087 (COMMON_OBS): Add cp-namespace.o.
10088 (block.o): Depend on gdb_obstack_h and cp_support_h.
10089 (buildsym.o): Depend on cp_support_h.
10090 (cp-namespace.o): New.
10091 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10092 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10093 (dwarf2read.o): Depend on cp_support_h.
10094 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10095 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10096 processing_current_namespace.
10097 (read_namespace): Update processing_current_namespace; check for
10098 anonymous namespaces.
10099 (dwarf2_name): New function.
10100 (dwarf2_extension): Ditto.
10101 * cp-support.h: Update copyright, contributors.
10102 Add inclusion guards.
10103 Add opaque declaration for structs obstack, block, symbol.
10104 (struct using_direct): New struct.
10105 Add declarations for cp_find_first_component,
10106 cp_entire_prefix_len, processing_has_namespace_info,
10107 processing_current_namespace, cp_is_anonymous,
10108 cp_add_using_directive, cp_initialize_namespace,
10109 cp_finalize_namespace, cp_set_block_scope,
10110 cp_scan_for_anonymous_namespaces.
10111 * cp-namespace.c: New file.
10112 * cp-support.c: Update copyright.
10113 Include ctype.h, gdb_assert.h, gdbcmd.h.
10114 New variable maint_cplus_cmd_list.
10115 (cp_find_first_component): New function.
10116 (cp_entire_prefix_len, maint_cplus_command)
10117 (first_component_command, _initialize_cp_support): Ditto.
10118 * buildsym.c: Include cp-support.h.
10119 New variable using_list.
10120 (add_symbol_to_list): Check for anonymous namespaces.
10121 (finish_block): Set block's scope.
10122 (start_symtab): Initialize C++ namespace support.
10123 (end_symtab): Finalize C++ namespace support.
10124 * block.h: Add opaque declarations for structs
10125 block_namespace_info, using_direct, and obstack.
10126 Add declarations for block_set_scope and block_set_using.
10127 (struct block): Add 'language_specific' member.
10128 (BLOCK_NAMESPACE): New macro.
10129 * block.c: Include gdb_obstack.h and cp-support.h.
10130 (struct block_namespace_info): New struct.
10131 (block_set_scope): New function.
10132 (block_set_using, block_initialize_namespace): Ditto.
10133
d5a921c9
KB
101342003-04-14 Kevin Buettner <kevinb@redhat.com>
10135
10136 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10137 (locate_base): Return early if there aren't any link map offsets.
10138 (svr4_solib_create_inferior_hook): Warn if shared library support
10139 is unavailable.
10140
d2a52b27
DC
101412003-04-14 David Carlton <carlton@math.stanford.edu>
10142
10143 * symtab.c (symbol_set_names): Add prefix when storing Java names
10144 in hash table. Fix for PR java/1039.
10145
980cae7a
DC
101462003-04-14 David Carlton <carlton@math.stanford.edu>
10147
10148 * symtab.c (symbol_set_names): Rename 'name' arg to
10149 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10150 * symtab.h: Change 'name' argument in declaration of
10151 symbol_set_names to 'linkage_name'.
10152 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10153
e227b13c
AC
101542003-04-14 Andrew Cagney <cagney@redhat.com>
10155
10156 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10157 return the fully sign-extended register value.
10158 (get_frame_pointer): Ditto.
10159 (mips_pop_frame): Initialize "proc_desc" after checking for a
10160 dummy frame.
10161
36712a20
AC
101622003-04-14 Andrew Cagney <cagney@redhat.com>
10163
10164 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10165 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10166 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10167 (mips_push_register): Delete function.
10168 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10169 PUSH_FP_REGNUM.
10170
44ea7b70
JB
101712003-04-14 Jim Blandy <jimb@redhat.com>
10172
10173 * symmisc.c: #include "gdb_regex.h".
10174 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10175 functions.
10176 * maint.c (maintenance_list_command): New function.
10177 (_initialize_maint_cmds): Register the above as commands.
10178 * symtab.h (maintenance_list_symtabs,
10179 maintenance_list_psymtabs): New declarations.
10180 * cli/cli-cmds.c (maintenancelistlist): New variable.
10181 (init_cmd_lists): Initialize it.
10182 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10183 * gdbcmd.h (maintenancelistlist): New declaration.
10184 * Makefile.in (symmisc.o): Update dependencies.
10185
2d0c7962
EZ
101862003-04-14 Elena Zannoni <ezannoni@redhat.com>
10187
10188 * s390-nat.c: Include asm/types.h for addr_t.
10189
1947a811
CV
101902003-04-14 Corinna Vinschen <vinschen@redhat.com>
10191
10192 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10193 actually incoming type.
10194
adb616d7
AC
101952003-04-13 Andrew Cagney <cagney@redhat.com>
10196
10197 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10198 get_next_frame and get_frame_saved_regs.
10199
9b5e151c
AC
102002003-04-13 Andrew Cagney <cagney@redhat.com>
10201
10202 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10203 of gdbarch_num_regs.
10204
ef6e7e13
AC
102052003-04-13 Andrew Cagney <cagney@redhat.com>
10206
10207 * frame.h: Mention what replaced what in "struct frame_info".
10208 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10209 deprecated_update_frame_base_hack and
10210 deprecated_update_frame_pc_hack.
10211 * hppa-tdep.c: Ditto.
10212
61fbb938
DJ
102132003-04-13 Daniel Jacobowitz <drow@mvista.com>
10214
10215 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10216 to read_reg and update its comment. Remove regnum member.
10217 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10218 Don't call read_reg when setting in_reg. Call read_reg to get
10219 the frame base if it's in a register. Return the register number
10220 on the stack instead of in the context. Remove extra arguments
10221 to read_reg.
10222 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10223 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10224 the register number on the expression stack.
10225 (needs_frame_read_reg): Remove extra arguments.
10226
0d53c4c4
DJ
102272003-04-13 Daniel Jacobowitz <drow@mvista.com>
10228
10229 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10230 made non-static.
10231 (execute_stack_op): All callers updated.
10232 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10233 * dwarf2loc.c (find_location_expression): New function.
10234 (dwarf_expr_frame_base): Call it.
10235 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10236 (dwarf2_tracepoint_var_ref): New function, broken out from
10237 locexpr_tracepoint_var_ref.
10238 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10239 Make static.
10240 (loclist_read_variable, loclist_read_needs_frame): New functions.
10241 (loclist_describe_location, loclist_tracepoint_var_ref): New
10242 functions.
10243 (dwarf2_loclist_funcs): New struct location_funcs.
10244 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10245 (struct dwarf2_locexpr_baton): Add comments.
10246 (dwarf2_loclist_funcs): New extern.
10247 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10248 base_address and base_known.
10249 (dwarf_loc_buffer): New variable.
10250 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10251 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10252 (dwarf2_has_info): Initialize dwarf_loc_offset.
10253 (dwarf2_build_psymtabs): Read in .debug_loc.
10254 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10255 DWARF_LOC_SIZE.
10256 (psymtab_to_symtab_1): Likewise. Move base address calculation
10257 here, from...
10258 (dwarf2_get_pc_bounds): ... here. Use the base address from
10259 cu_header.
10260 (dwarf2_symbol_mark_computed): Handle location lists.
10261
6aca59a3
DJ
102622003-04-13 Daniel Jacobowitz <drow@mvista.com>
10263
10264 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10265 if the linkage name demangled successfully.
10266
aca1fcd0
MK
102672003-04-13 Mark Kettenis <kettenis@gnu.org>
10268
97095916
MK
10269 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10270 disassmbly_flavour): Removed.
10271
aca1fcd0
MK
10272 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10273
562a961f
MK
102742003-04-13 Mark Kettenis <kettenis@gnu.org>
10275
10276 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10277
bd013d54
AC
102782003-04-12 Andrew Cagney <cagney@redhat.com>
10279
10280 * frame.h (struct frame_info): Move definition from here ...
10281 * frame.c (struct frame_info): ... to here.
10282
167ef8b1
AC
102832003-04-12 Andrew Cagney <cagney@redhat.com>
10284
10285 * gdbthread.h (save_infrun_state): Delete parameter
10286 "prev_func_start".
10287 (struct thread_info): Delete field "prev_func_start".
10288 (load_infrun_state): Ditto.
10289 * thread.c (load_infrun_state, save_infrun_state): Update.
10290 * infrun.c (prev_func_start): Delete variable.
10291 (context_switch, init_wait_for_inferior): Update.
10292 (stop_stepping, keep_going): Update.
10293
da3331ec
AC
102942003-04-12 Andrew Cagney <cagney@redhat.com>
10295
10296 * gdbarch.sh: Add missing opaque declarations.
10297 * gdbarch.h: Regnerate.
10298 * symtab.h: Add missing opaque declarations.
10299 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10300 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10301 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10302 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10303 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10304 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10305 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10306 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10307 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10308 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10309 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10310 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10311 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10312
18adea3f
AC
103132003-04-11 Andrew Cagney <cagney@redhat.com>
10314
10315 * frame.c (get_frame_id): Return this frame's "id".
10316 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10317 function start.
10318 (legacy_saved_regs_this_id): Replace function body with
10319 internal-error.
10320 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10321 FRAME_OBSTACK_ZALLOC.
10322 (create_new_frame): Mark the frame ID as valid.
10323
2252e863
AO
103242003-04-11 Alexandre Oliva <aoliva@redhat.com>
10325
10326 * Makefile.in (libbfd_h): Added missing setting.
10327 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10328 according to the selected ABI.
10329
a8245ab8
JJ
103302003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10331
10332 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10333
6913c89a
AC
103342003-04-11 Andrew Cagney <cagney@redhat.com>
10335
10336 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10337 SAVED_PC_AFTER_CALL.
10338 * gdbarch.h, gdbarch.c: Regenerate.
10339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10340 * x86-64-tdep.c (x86_64_init_abi): Update.
10341 * vax-tdep.c (vax_gdbarch_init): Update.
10342 * v850-tdep.c (v850_gdbarch_init): Update.
10343 * sparc-tdep.c (sparc_gdbarch_init): Update.
10344 * sh-tdep.c (sh_gdbarch_init): Update.
10345 * s390-tdep.c (s390_gdbarch_init): Update.
10346 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10347 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10349 * mips-tdep.c (mips_gdbarch_init): Update.
10350 * mcore-tdep.c (mcore_gdbarch_init): Update.
10351 * m68k-tdep.c (m68k_gdbarch_init): Update.
10352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10353 * ia64-tdep.c (ia64_gdbarch_init): Update.
10354 (ia64_saved_pc_after_call): Update declaration.
10355 * i386ly-tdep.c (i386lynx_init_abi): Update.
10356 * i386-tdep.c (i386_gdbarch_init): Update.
10357 * hppa-tdep.c (hppa_gdbarch_init): Update.
10358 * h8300-tdep.c (h8300_gdbarch_init): Update.
10359 * frv-tdep.c (frv_gdbarch_init): Update.
10360 * cris-tdep.c (cris_gdbarch_init): Update.
10361 * avr-tdep.c (avr_gdbarch_init): Update.
10362 * arm-tdep.c (arm_gdbarch_init): Update.
10363 * alpha-tdep.c (alpha_gdbarch_init): Update.
10364 * ns32knbsd-nat.c (frame_num_args): Update.
10365 * ns32k-tdep.c (umax_frame_num_args): Update.
10366 * mips-tdep.c (mips_init_frame_pc_first): Update.
10367 * infrun.c (step_over_function): Update.
10368 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10369 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10370 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10371 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10372 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10373 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10374 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10375 * arch-utils.c (init_frame_pc_default): Update.
10376 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10377 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10378 declaration.
8ffd9b1b 10379
38edeab8
AC
103802003-04-11 Andrew Cagney <cagney@redhat.com>
10381
10382 * i387-tdep.c: Update copyright.
10383 (i387_to_double): Delete function.
10384 (double_to_i387): Delete function.
10385
81f8a206
AC
103862003-04-10 Andrew Cagney <cagney@redhat.com>
10387
10388 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10389 frame's function's address. Simplify.
10390 (d10v_frame_unwind_cache): Check that the frame's function is
10391 non-zero.
10392
6e691f7a
JB
103932003-04-10 Jim Blandy <jimb@redhat.com>
10394
10395 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10396 call to set_gdbarch_deprecated_push_arguments.
10397
7f78e237
AC
103982003-04-10 Andrew Cagney <cagney@redhat.com>
10399
10400 * frame.c (fprint_frame_id): New function.
10401 (fprint_frame_type, fprint_frame): New function.
10402 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10403 (create_sentinel_frame, get_frame_id): Ditto.
10404 (frame_id_p, frame_id_eq): Ditto.
10405 (frame_id_inner, create_new_frame): Ditto.
10406 (legacy_get_prev_frame, get_prev_frame): Ditto.
10407 (deprecated_update_frame_pc_hack): Ditto.
10408 (frame_register_unwind): Ditto.
10409 (deprecated_update_frame_base_hack): Ditto.
10410
f870b49b
CV
104112003-04-10 Corinna Vinschen <vinschen@redhat.com>
10412
10413 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10414 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10415 frame_chain function.
10416 * Makefile.in: Add dependencies due to above change.
10417
7c86889b
CV
104182003-04-10 Corinna Vinschen <vinschen@redhat.com>
10419
10420 * blockframe.c (legacy_frame_chain_valid): Move call to
10421 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10422 inside_entry_file.
10423
d0a55772
AC
104242003-04-09 Andrew Cagney <cagney@redhat.com>
10425
10426 * frame.h (struct frame_id): Replace "pc" and "base" with
10427 "stack_addr" and "code_addr". Update comments.
10428 (frame_id_build): Update parameter names and comment.
10429 (struct frame_info): Replace "id_p" and "id" with "this_id".
10430 * dummy-frame.c (dummy_frame_this_id): Update.
10431 * breakpoint.c (print_one_breakpoint): Update.
10432 * frame.c (get_frame_id): Update.
10433 (get_frame_base, frame_id_build): Update.
10434 (create_sentinel_frame, legacy_get_prev_frame): Update.
10435 (deprecated_update_frame_base_hack): Update.
10436 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10437 (frame_id_inner): Ditto.
10438
ac16bf07
AC
104392003-04-09 Andrew Cagney <cagney@redhat.com>
10440
10441 * defs.h (gdb_print_host_address): Make "addr" parameter a
10442 pointer constant.
10443 * utils.c (gdb_print_host_address): Update.
10444
366cfc9e
KB
104452003-04-09 Kevin Buettner <kevinb@redhat.com>
10446
10447 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10448 register number for R0 is 0.
10449
cd983b5c
JB
104502003-04-09 J. Brobecker <brobecker@gnat.com>
10451
10452 * frame.h (struct gdbarch): Add opaque structure definition
10453 to avoid a compilation warning on LynxOS 4.0.
10454
d1340264
AC
104552003-04-09 Andrew Cagney <cagney@redhat.com>
10456
10457 * frame.h (struct frame_info): Delete field "pc". Replace
10458 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10459 structure.
10460 * frame.c (frame_pc_unwind): Update.
10461 (create_sentinel_frame): Do not set "pc".
10462 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10463 (get_frame_pc): Call frame_pc_unwind.
10464 (deprecated_update_frame_pc_hack): Update.
10465 (create_new_frame): Use "pc" not "->pc".
10466
90a6fffb
AC
104672003-04-09 Andrew Cagney <cagney@redhat.com>
10468
10469 * frame.c (get_frame_id): Eliminate code updating "frame".
10470 (legacy_get_prev_frame): Ditto.
10471 (get_frame_base): Return id.base directly.
10472 (deprecated_update_frame_base_hack): Update "id.base".
10473 * frame.h (struct frame_info): Delete field "frame".
10474
2fbce691
AC
104752003-04-09 Andrew Cagney <cagney@redhat.com>
10476
10477 * NEWS: Mention that the "Sequent family" is obsolete.
10478 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10479 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10480 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10481 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10482 * config/i386/tm-ptx4.h: Obsolete file.
10483 * config/i386/tm-ptx.h: Obsolete file.
10484 * symm-tdep.c: Obsolete file.
10485 * config/i386/symmetry.mt: Obsolete file.
10486 * config/i386/tm-symmetry.h: Obsolete file.
10487 * symm-nat.c: Obsolete file.
10488 * config/i386/nm-symmetry.h: Obsolete file.
10489 * config/i386/xm-symmetry.h: Obsolete file.
10490 * config/i386/symmetry.mh: Obsolete file.
10491 * config/i386/nm-ptx4.h: Obsolete file.
10492 * config/i386/ptx4.mh: Obsolete file.
10493 * config/i386/ptx.mt: Obsolete file.
10494 * config/i386/ptx.mh: Obsolete file.
10495 * config/i386/xm-ptx4.h: Obsolete file.
10496 * config/i386/xm-ptx.h: Obsolete file.
10497
78c43945
AC
104982003-04-09 Andrew Cagney <cagney@redhat.com>
10499
10500 Obsolete mips*-*-mach3*.
10501 * NEWS: Mention that mips*-*-mach3* is obsolete.
10502 * m3-nat.c: Obsolete file.
10503 * config/nm-m3.h: Obsolete file.
10504 * config/mips/tm-mipsm3.h: Obsolete file.
10505 * config/mips/mipsm3.mt: Obsolete file.
10506 * config/mips/mipsm3.mh: Obsolete file.
10507 * config/mips/xm-mipsm3.h: Obsolete file.
10508 * mipsm3-nat.c: Obsolete file.
10509 * configure.host: Obsolete mips-dec-mach3*.
10510 * configure.tgt: Obsolete mips*-*-mach3*.
10511
f1908289
AC
105122003-04-09 Andrew Cagney <cagney@redhat.com>
10513
10514 * doublest.h: Update copyright.
10515 (deprecated_store_floating, deprecated_extract_floating): Rename
10516 store_floating and extract_floating. Update comments.
10517 * doublest.c: Update copyright.
10518 (extract_floating_by_length): Replace extract_floating.
10519 (store_floating_by_length): Replace store_floating.
10520 (deprecated_extract_floating): New function.
10521 (deprecated_store_floating): New function.
10522 (extract_typed_floating): Call extract_floating_by_length.
10523 (store_typed_floating): Call store_floating_by_length.
10524 * x86-64-tdep.c (x86_64_store_return_value): Update.
10525 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10526 (sh64_extract_return_value): Update.
10527 (sh_sh4_register_convert_to_virtual): Update.
10528 (sh_sh64_register_convert_to_virtual): Update.
10529 (sh_sh4_register_convert_to_raw): Update.
10530 (sh_sh64_register_convert_to_raw): Update.
10531 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10532 (rs6000_register_convert_to_raw): Update.
10533 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10534 (ia64_register_convert_to_raw): Update.
10535 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10536 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10537 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10538 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10539 (alpha_register_convert_to_raw): Update.
10540
4443bd83
AC
105412003-04-08 Andrew Cagney <cagney@redhat.com>
10542
10543 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10544 * gdbarch.h, gdbarch.c: Re-generate.
10545 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10546 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10547 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10548 conditionally, use frame_pc_unwind as an alternative. Add
10549 comments.
10550 * arch-utils.c (init_frame_pc_default): Only call
10551 SAVED_PC_AFTER_CALL when available.
10552
c0236d92
EZ
105532003-04-08 Elena Zannoni <ezannoni@redhat.com>
10554
fbe586ae 10555 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10556 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10557 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10558 (start_remote): Ditto.
10559 (handle_inferior_event): Ditto.
10560 (save_inferior_status): Ditto.
10561 (restore_inferior_status): Ditto.
10562 * infcmd.c (attach_command): Ditto.
10563 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10564 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10565 * alpha-tdep.c (heuristic_proc_start): Ditto.
10566 * mips-tdep.c (heuristic_proc_start): Ditto.
10567 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10568 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10569 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10570 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10571 * remote-vx.c (vx_create_inferior): Ditto.
10572
105732003-04-08 Elena Zannoni <ezannoni@redhat.com>
10574
10575 * infrun.c (stop_soon_quietly): Make it an enum, to better
10576 override the default behavior of handle_inferior_event.
10577 (clear_proceed_status): Update uses of stop_soon_quietly to
10578 reflect that it is now an enum.
10579 (start_remote): Ditto.
10580 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10581 is set to handle the new GNU/Linux kernel behavior for
10582 attach/sigstop. Update uses of stop_soon_quietly.
10583 * inferior.h (enum stop_kind): New enum.
10584 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10585 Reset normal handle_inferior_event behavior, afterwards.
10586 * fork-child.c (startup_inferior): Update.
10587 * alpha-tdep.c (heuristic_proc_start): Update.
10588 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10589 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10590 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10591 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10592 * remote-vx.c (vx_create_inferior): Update.
10593 * mips-tdep.c (heuristic_proc_start): Update.
10594
1211bce3
EZ
105952003-04-07 Elena Zannoni <ezannoni@redhat.com>
10596
10597 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10598 be freed more than once, causing wild memory corruptions.
1211bce3 10599 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10600 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10601 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10602 with the "core" target.
1211bce3 10603
f0ef6b29
KB
106042003-04-07 Kevin Buettner <kevinb@redhat.com>
10605
10606 * mips-tdep.c (mips_print_fp_register): New function, created from
10607 do_fp_register_row(). Registers are now (also) printed as hex.
10608 Only one register is printed per row.
10609 (mips_print_register, do_fp_register_row): Print floating point
10610 registers with mips_print_fp_register().
10611
8cf71652
AC
106122003-04-06 Andrew Cagney <cagney@redhat.com>
10613
5e488a7b
AC
10614 * valprint.h (inspect_it): Add extern declaration.
10615 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10616 (selectors_info, classes_info): Ditto.
10617 (find_objc_msgcall): Fix indentation.
10618 (objc_printstr): Delete extern declarations.
10619
8cf71652
AC
10620 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10621
e6ba3bc9
AC
106222003-04-06 Andrew Cagney <cagney@redhat.com>
10623
10624 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10625 Update comment.
10626 * frame.c (legacy_saved_regs_this_id): Update.
10627 (legacy_get_prev_frame): Update.
10628 * xstormy16-tdep.c: Update comment.
10629 * sparc-tdep.c (sparc_frame_chain): Update comment.
10630 * blockframe.c (legacy_frame_chain_valid): Update.
10631
55e1d7e7
AC
106322003-04-06 Andrew Cagney <cagney@redhat.com>
10633
996179ee
AC
10634 * valprint.c (val_print_type_code_int): Delete #ifdef
10635 PRINT_TYPELESS_INTEGER code.
10636
55e1d7e7
AC
10637 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10638 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10639 multi-arch definition.
10640 * gdbarch.h: Re-generate.
10641
43bd9a9e
AC
106422003-04-05 Andrew Cagney <cagney@redhat.com>
10643
10644 Eliminate FRAME_FIND_SAVED_REGS.
10645 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10646 Change FSR parameter to a pointer.
10647 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10648 Assume FSR parameter is a pointer.
10649 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10650 Make fsr a pointer.
10651 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10652 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10653 saved_regs a pointer.
10654 (hppa_frame_saved_pc): Ditto.
10655 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10656 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10657 pointer.
10658 (restore_pc_queue): Make fsr a pointer.
10659 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10660 (hppa_frame_chain): Make saved_regs a pointer, call
10661 hppa_frame_init_saved_regs.
10662 * sparc-tdep.c: Include "gdb_assert.h".
10663 (sparc_frame_find_saved_regs): Replace internal_error with
10664 gdb_assert.
10665 * remote-vxsparc.c (vx_read_register): Delete reference to
10666 FRAME_FIND_SAVED_REGS.
10667 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10668 * gdbarch.h: Regenerate.
10669 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10670 (deprecated_get_frame_saved_regs): Delete declaration.
10671 (struct frame_saved_regs): Delete definition.
10672 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10673 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10674 (hppa_frame_find_saved_regs): Delete declaration.
10675 (FRAME_FIND_SAVED_REGS): Delete macro.
10676 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10677 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10678 FRAME_FIND_SAVED_REGS in comment.
10679
be41e9f4
AC
106802003-04-05 Andrew Cagney <cagney@redhat.com>
10681
10682 * frame.c (frame_func_unwind, get_frame_func): New functions.
10683 * frame.h (get_frame_func, frame_func_unwind): Declare.
10684 (struct frame_info): Add field "prev_func" for caching the
10685 previous frame's function address.
10686 * arm-tdep.c (arm_frameless_function_invocation): Combine
10687 get_pc_function_start and get_frame_pc into get_frame_func.
10688 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10689 (sh64_nofp_frame_init_saved_regs): Ditto.
10690 * s390-tdep.c (s390_function_start): Ditto.
10691 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10692 (rs6000_frameless_function_invocation): Ditto.
10693 (rs6000_frame_saved_pc): Ditto.
10694 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10695 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10696 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10697 (i386_frame_init_saved_regs): Ditto.
10698 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10699 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10700 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10701 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10702 * blockframe.c (frameless_look_for_prologue): Ditto.
10703
a01dd7cc
AC
107042003-04-05 Andrew Cagney <cagney@redhat.com>
10705
10706 * frame.c (legacy_get_prev_frame): Link prev to next at the
10707 function start. Update comments.
10708
5e5592e6
AC
107092003-04-05 Andrew Cagney <cagney@redhat.com>
10710
10711 * frame.c (get_frame_id): Update comment.
10712 (legacy_get_prev_frame): Update comment.
10713 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10714 * gdbarch.h: Regenerate.
10715 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10716 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10717
6fba5002
AC
107182003-04-05 Andrew Cagney <cagney@redhat.com>
10719
10720 * stack.c (print_frame_info): Use get_frame_pc.
10721
7df05f2b
AC
107222003-04-04 Andrew Cagney <cagney@redhat.com>
10723
10724 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10725 the frame's type from the unwinder.
10726 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10727 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10728 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10729 (get_frame_base_address): Use get_frame_type.
10730 (get_frame_locals_address, get_frame_args_address): Ditto.
10731 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10732 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10733 (struct frame_info): Add comment explaining why the frame contains
10734 a "type" field.
10735 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10736 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10737 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10738 NORMAL_FRAME.
10739 * frame-unwind.h: Include "frame.h".
10740 (struct frame_unwind): Add "type" field.
10741 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10742
11889732
AC
107432003-04-04 Andrew Cagney <cagney@redhat.com>
10744
10745 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10746 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10747 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10748 get_frame_base.
10749 (d10v_unwind_dummy_id): Use frame_id_build.
10750 * frame.c (find_frame_sal): Use get_frame_pc.
10751 (create_new_frame): Use deprecated_update_frame_pc_hack and
10752 deprecated_update_frame_base_hack.
10753 (create_sentinel_frame): Add comment about ->pc going away.
10754 (get_prev_frame): Add comment about ->pc going away.
10755 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10756 frame_id_build, deprecated_update_frame_pc_hack and
10757 deprecated_update_frame_base_hack.
10758 (select_frame): Use get_frame_pc.
10759 (legacy_saved_regs_this_id): Use frame_id_build.
10760
50c46a0d
EZ
107612003-04-04 Elena Zannoni <ezannoni@redhat.com>
10762
fbe586ae
RH
10763 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10764 signed integer case.
10765 (classify_argument): Handle enumerations and references.
50c46a0d 10766
50bbdbd9
AC
107672003-04-04 Andrew Cagney <cagney@redhat.com>
10768
10769 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10770 ID to NULL.
10771
36018d2e
AF
107722003-04-01 Adam Fedor <fedor@gnu.org>
10773
10774 * gdb/objc-lang.c (selectors_info): Replace calls to
10775 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10776 SYMBOL_NATURAL_NAME.
10777 (classes_info, find_methods): Likewise.
10778
35cec841
KB
107792003-04-03 Kevin Buettner <kevinb@redhat.com>
10780
10781 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10782 ``mach'' to the value determined by bfd_default_set_arch_mach().
10783
43136899
BR
107842003-04-02 Bob Rossi <bob_rossi@cox.net>
10785
10786 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10787 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10788 (mi-cmd-file.o): Update dependencies.
10789
040b99fd
KB
107902003-04-01 Kevin Buettner <kevinb@redhat.com>
10791
10792 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10793 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10794
9a3d7dfd
AF
107952003-04-01 Adam Fedor <fedor@gnu.org>
10796
10797 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10798 * language.h (struct language_defn): Add la_demangle.
10799 (language_demangle): Declare.
10800 * language.c (language_demangle): New function.
10801 (unk_lang_demangle): Likewise.
10802 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10803 Add ukn_lang_demangle.
9a3d7dfd 10804 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10805 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10806 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10807 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10808 * jv-lang.c (java_demangle): New function
10809 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10810 * objc-lang.c (objc_demangle): Add options argument
10811 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10812 * maint.c (maintenance_demangle): Replace switch with
10813 call to language_demangle.
10814 * utils.c (fprintf_symbol_filtered): Likewise.
10815
5e074003
AC
108162003-04-01 Andrew Cagney <cagney@redhat.com>
10817
10818 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10819 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10820 PRINT_TYPELESS_INTEGER.
10821 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10822 PUSH_RETURN_ADDRESS.
10823
270cb5d6
AC
108242003-04-01 Andrew Cagney <cagney@redhat.com>
10825
10826 * Makefile.in (d10v-tdep.o): Update dependencies.
10827 * d10v-tdep.c: Include "frame-base.h".
10828 (d10v_frame_unwind): Make constant.
10829 (d10v_frame_base_address): New function.
10830 (d10v_frame_base): New variable.
10831 (d10v_gdbarch_init): Set frame_base default.
10832 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10833 comment for base.
10834 (d10v_frame_unwind_cache): Set and use "prev_sp".
10835 (d10v_frame_this_id): Use the previous frame's inner most stack
10836 address and this frame's func address for the frame ID. Use
10837 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10838
6bfb3e36
AC
108392003-04-01 Andrew Cagney <cagney@redhat.com>
10840
10841 * frame.h (get_frame_locals_address, get_frame_args_address):
10842 Refer to the base address, instead of the address of the first
10843 local or parameter.
8ffd9b1b 10844
da62e633
AC
108452003-04-01 Andrew Cagney <cagney@redhat.com>
10846
10847 Add frame debug info addresses:
10848 * frame-base.c: New file.
10849 * frame-base.h: New file.
10850 * frame.h (struct frame_base): Add opaque declaration.
10851 (get_frame_base): Update comment.
10852 (get_frame_base_address): Declare.
10853 (get_frame_locals_address): Declare.
10854 (get_frame_args_address): Declare.
10855 (struct frame_info): Add "base" and "base_cache". Update
10856 comments on the unwinder.
10857 * frame.c: Include "frame-base.h".
10858 (get_frame_locals_address): New function.
10859 (get_frame_base_address): New function.
10860 (get_frame_args_address): New function.
10861 * findvar.c (read_var_value): Use get_frame_locals_address and
10862 get_frame_args_address.
10863 * stack.c (frame_info): Use get_frame_locals_address and
10864 get_frame_args_address.
10865 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10866 moved to "frame-base.c".
10867 * printcmd.c (print_frame_nameless_args): Ditto.
10868 * symtab.h (address_class): Update comments.
10869 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10870 get_frame_base_address.
10871 * dwarf2expr.c (execute_stack_op): Ditto.
10872 * Makefile.in (frame_base_h): Define.
10873 (frame.o): Update dependencies.
10874 (frame-base.o): Add dependencies.
10875 (SFILES): Add frame-base.c.
10876 (COMMON_OBS): Add frame-base.o.
10877
3d30e9c2
AC
108782003-04-01 Andrew Cagney <cagney@redhat.com>
10879
10880 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10881 CALL_DUMMY_LENGTH): Ditto.
10882 * gdbarch.c: Re-generate.
10883 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10884 (CALL_DUMMY_LENGTH): Delete macro.
10885 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10886 * arm-tdep.c (arm_gdbarch_init): Ditto.
10887 * avr-tdep.c (avr_gdbarch_init): Ditto.
10888 * cris-tdep.c (cris_gdbarch_init): Ditto.
10889 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10890 * frv-tdep.c (frv_gdbarch_init): Ditto.
10891 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10892 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10893 * i386-tdep.c (i386_gdbarch_init): Ditto.
10894 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10896 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10897 * mips-tdep.c (mips_gdbarch_init): Ditto.
10898 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10900 * s390-tdep.c (s390_gdbarch_init): Ditto.
10901 * sh-tdep.c (sh_gdbarch_init): Ditto.
10902 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10903 * v850-tdep.c (v850_gdbarch_init): Ditto.
10904 * vax-tdep.c (vax_gdbarch_init): Ditto.
10905 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10906
ce0c7262
CV
109072003-04-01 Corinna Vinschen <vinschen@redhat.com>
10908
10909 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10910
73dd234f
AC
109112003-04-01 Andrew Cagney <cagney@redhat.com>
10912
10913 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10914 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10915 * gdbarch.h, gdbarch.c: Re-generate.
10916 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10917 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10918 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10919 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10920 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10921 * infcmd.c (run_stack_dummy): Simplify assuming
10922 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10923 * infrun.c (handle_inferior_event): Ditto.
10924 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10925 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10926 * arm-tdep.c (arm_gdbarch_init): Ditto.
10927 * avr-tdep.c (avr_gdbarch_init): Ditto.
10928 * cris-tdep.c (cris_gdbarch_init): Ditto.
10929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10930 * frv-tdep.c (frv_gdbarch_init): Ditto.
10931 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10932 * i386-tdep.c (i386_gdbarch_init): Ditto.
10933 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10935 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10936 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10937 * mips-tdep.c (mips_gdbarch_init): Ditto.
10938 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10939 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10940 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10941 * s390-tdep.c (s390_gdbarch_init): Ditto.
10942 * sh-tdep.c (sh_gdbarch_init): Ditto.
10943 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10944 * v850-tdep.c (v850_gdbarch_init): Ditto.
10945 * vax-tdep.c (vax_gdbarch_init): Ditto.
10946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10947
97606a13
DJ
109482003-04-01 Daniel Jacobowitz <drow@mvista.com>
10949
10950 * symfile.c (symfile_relocate_debug_section): Update call to
10951 bfd_simple_get_relocated_section_contents.
10952
e8ab51f7
AC
109532003-03-31 Andrew Cagney <cagney@redhat.com>
10954
10955 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10956 * gdbarch.h, gdbarch.c: Regenerate.
10957 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10958 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10959 available.
10960 * frame.h (generic_fix_call_dummy): Delete declaration.
10961 * dummy-frame.h: Update comment.
10962 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10964 fix_call_dummy.
10965 * sh-tdep.c (sh_gdbarch_init): Ditto.
10966 * s390-tdep.c (s390_gdbarch_init): Ditto.
10967 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10968 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10970 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10971 * i386-tdep.c (i386_gdbarch_init): Ditto.
10972 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10973 * frv-tdep.c (frv_gdbarch_init): Ditto.
10974 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10975 * cris-tdep.c (cris_gdbarch_init): Ditto.
10976 * avr-tdep.c (avr_gdbarch_init): Ditto.
10977 * arm-tdep.c (arm_gdbarch_init): Ditto.
10978
018d1b48
JB
109792003-03-31 J. Brobecker <brobecker@gnat.com>
10980
10981 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10982 (INIT_FRAME_AP): Likewise.
10983 (EXTRA_FRAME_INFO): Likewise.
10984
e9a2674e
AC
109852003-03-31 Andrew Cagney <cagney@redhat.com>
10986
10987 * gdbarch.sh: Include "symfile.h".
10988 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10989 * gdbarch.h, gdbarch.c: Re-generate.
10990 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10992 call_dummy_address, the default is at entry_point_address.
10993 * v850-tdep.c (v850_gdbarch_init): Ditto.
10994 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10995 * sh-tdep.c (sh_gdbarch_init): Ditto.
10996 * s390-tdep.c (s390_gdbarch_init): Ditto.
10997 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10999 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11000 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11001 * i386-tdep.c (i386_gdbarch_init): Ditto.
11002 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11003 * frv-tdep.c (frv_gdbarch_init): Ditto.
11004 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11005 * cris-tdep.c (cris_gdbarch_init): Ditto.
11006 * arm-tdep.c (arm_gdbarch_init): Ditto.
11007
e8a8712a
AC
110082003-03-31 Andrew Cagney <cagney@redhat.com>
11009
11010 * gdbarch.sh (CALL_DUMMY_P): Delete.
11011 * gdbarch.h, gdbarch.c: Re-generate.
11012 * inferior.h (CALL_DUMMY_P): Delete macro.
11013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11014 * vax-tdep.c (vax_gdbarch_init): Update.
11015 * v850-tdep.c (v850_gdbarch_init): Update.
11016 * sparc-tdep.c (sparc_gdbarch_init): Update.
11017 * sh-tdep.c (sh_gdbarch_init): Update.
11018 * s390-tdep.c (s390_gdbarch_init): Update.
11019 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11020 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11021 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11022 * mips-tdep.c (mips_gdbarch_init): Update.
11023 * mcore-tdep.c (mcore_gdbarch_init): Update.
11024 * m68k-tdep.c (m68k_gdbarch_init): Update.
11025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11026 * ia64-tdep.c (ia64_gdbarch_init): Update.
11027 * i386-tdep.c (i386_gdbarch_init): Update.
11028 * h8300-tdep.c (h8300_gdbarch_init): Update.
11029 * frv-tdep.c (frv_gdbarch_init): Update.
11030 * d10v-tdep.c (d10v_gdbarch_init): Update.
11031 * cris-tdep.c (cris_gdbarch_init): Update.
11032 * breakpoint.c (deprecated_frame_in_dummy): Update.
11033 * avr-tdep.c (avr_gdbarch_init): Update.
11034 * alpha-tdep.c (alpha_gdbarch_init): Update.
11035 * arm-tdep.c (arm_gdbarch_init): Update.
11036 * dummy-frame.c (dummy_frame_this_id): Update comments.
11037 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11038 * frame.c (legacy_get_prev_frame): Ditto.
11039 * valops.c (call_function_by_hand): Delete function.
11040 (hand_function_call): Rename to call_function_by_hand
11041
ed234cf8
AC
110422003-03-30 Andrew Cagney <cagney@redhat.com>
11043
11044 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11045 * value.h (struct value): Update comment.
ed234cf8 11046
06c77151
AC
110472003-03-30 Andrew Cagney <cagney@redhat.com>
11048
6c2b5168
AC
11049 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11050 D10V_FP_REGNUM.
11051 (d10v_gdbarch_init): Do not set fp_regnum.
11052
06c77151
AC
11053 * frame.c (get_frame_base): Force ID initialization.
11054 (get_prev_frame): Move computation of the frame ID from here ...
11055 (get_frame_id): ... to here.
11056 (legacy_get_prev_frame): Mark the frame ID as valid.
11057 * frame.h (struct frame_info): Add field "id_p".
11058
97a1a11c
MK
110592003-03-30 Mark Kettenis <kettenis@gnu.org>
11060
11061 * i386-tdep.c (i386_store_struct_return): Removed.
11062 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11063
6c0e89ed
AC
110642003-03-30 Andrew Cagney <cagney@redhat.com>
11065
11066 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11067 * gdbarch.h, gdbarch.c: Regenerate.
11068 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11070 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11071 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11072 * i386-tdep.c (i386_gdbarch_init): Ditto.
11073 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11074 * cris-tdep.c (cris_gdbarch_init): Ditto.
11075 * vax-tdep.c (vax_gdbarch_init): Ditto.
11076 * s390-tdep.c (s390_gdbarch_init): Ditto.
11077 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11078 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11079 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11080 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11081 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11082 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11083 * sparc-tdep.c (sparc_gdbarch_init): Update.
11084 * sh-tdep.c (sh_gdbarch_init): Update.
11085 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11086 * mips-tdep.c (mips_gdbarch_init): Update.
11087 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11088 * ia64-tdep.c (ia64_gdbarch_init): Update.
11089 * frv-tdep.c (frv_gdbarch_init): Update.
11090 * avr-tdep.c (avr_gdbarch_init): Update.
11091 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11092 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11093 instead of when push_dummy_call is not available.
8ffd9b1b 11094
f7dd6af2
AC
110952003-03-30 Andrew Cagney <cagney@redhat.com>
11096
11097 * infttrace.c: Include "gdbthread.h".
11098 (parent_attach_all): Fix function signature.
11099 (call_ptrace): Update call.
11100 * Makefile.in (infttrace.o): Update dependencies.
11101
28f617b3
AC
111022003-03-30 Andrew Cagney <cagney@redhat.com>
11103
11104 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11105 PUSH_RETURN_ADDRESS.
11106 * gdbarch.h, gdbarch.c: Regenerate.
11107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11108 * x86-64-tdep.c (x86_64_init_abi): Update.
11109 * v850-tdep.c (v850_gdbarch_init): Update.
11110 * sparc-tdep.c (sparc_gdbarch_init): Update.
11111 * sh-tdep.c (sh_gdbarch_init): Update.
11112 * s390-tdep.c (s390_gdbarch_init): Update.
11113 * rs6000-tdep.c (rs6000_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 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11118 * ia64-tdep.c (ia64_gdbarch_init): Update.
11119 * i386-tdep.c (i386_gdbarch_init): Update.
11120 * h8300-tdep.c (h8300_gdbarch_init): Update.
11121 * frv-tdep.c (frv_gdbarch_init): Update.
11122 * cris-tdep.c (cris_gdbarch_init): Update.
11123 * avr-tdep.c (avr_gdbarch_init): Update.
11124 * arm-tdep.c (arm_gdbarch_init): Update.
11125 * valops.c (hand_function_call): Update.
11126
4d628cd7
AC
111272003-03-29 Andrew Cagney <cagney@redhat.com>
11128
11129 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11130 sizeof_call_dummy_words.
11131 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11132 define.
11133 * gdbarch.h: Regenerate.
8ffd9b1b 11134
65e82032
AC
111352003-03-29 Andrew Cagney <cagney@redhat.com>
11136
11137 * infttrace.h: New file.
11138 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11139 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11140 (hpread_read_doc_function_type): Detect an initialized type1.
11141 (hpread_quick_traverse): Initialize mod_name_string.
11142 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11143 (som_solib_get_solib_by_pc): Declare.
11144 (so_lib_thread_start_addr): Declare.
11145 (no_shared_libraries): Declare.
11146 * somread.c (init_import_symbols): Make static. Add forward
11147 declaration.
11148 * config/pa/nm-hppah.h: Include "infttrace.h" for
11149 parent_attach_all.
11150 (hppa_insert_hw_watchpoint): Declare.
11151 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11152 * hppah-nat.c: Include "gdb_string.h".
11153 (parent_attach_all): Delete extern declaration, moved to
11154 "infttrace.h".
11155 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11156 int.
11157 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11158 * Makefile.in (infttrace_h): Define.
11159 (hpread.o): Update dependencies.
11160 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11161 * hppa-hpux-tdep.c: Include "gdb_string.h".
11162 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11163 * infrun.c (handle_inferior_event): Always initialize
11164 stepped_after_stopped_by_watchpoint. Add default and remove
11165 fallthrough in switch statement.
11166 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11167 parameter to int.
11168 (hppa_remove_hw_watchpoint): Ditto.
11169
2c3bbe77
AC
111702003-03-29 Andrew Cagney <cagney@redhat.com>
11171
11172 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11173 offset.
11174
2dd604e7
RE
111752003-03-29 Richard Earnshaw <rearnsha@arm.com>
11176
11177 * arm-tdep.c (arm_push_arguments): Delete.
11178 (struct stack_item): New type.
11179 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11180 (arm_store_struct_return): Delte.
11181 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11182 arm_push_arguments or arm_store_struct_return.
11183
e8933a55
AC
111842003-03-28 Andrew Cagney <cagney@redhat.com>
11185
11186 * Makefile.in (d10v-tdep.o): Update dependencies.
11187 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11188 * d10v-tdep.c: Include "remote.h".
11189 (target_resume_hook): Delete extern declaration.
11190 (target_wait_loop_hook): Ditto.
11191 (tdisassemble_command): Eliminate assignment in "if" conditional.
11192 (d10v_ts2_register_sim_regno): Eliminate call to
11193 legacy_register_sim_regno.
11194 (d10v_ts3_register_sim_regno): Ditto.
11195
6949171e
JJ
111962003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11197
11198 * thread.c: Reindented.
11199 * lin-lwp.c: Ditto.
11200 * linux-proc.c: Ditto.
11201
98c7071f
BR
112022003-03-28 Bob Rossi <bob_rossi@cox.net>
11203
fbe586ae 11204 * MAINTAINERS (write after approval): Add myself.
98c7071f 11205
5edc9ca6
TR
112062003-03-27 Theodore A. Roth <troth@openavr.org>
11207
11208 * objc-exp.y: Add missing semi-colons.
11209
378bfd1b
AC
112102003-03-27 Andrew Cagney <cagney@redhat.com>
11211
11212 * regcache.c (write_sp): Delete function and references.
11213 * inferior.h (write_sp): Delete declaration.
11214 * valops.c (hand_function_call): Replace write_sp with
11215 TARGET_WRITE_SP.
11216 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11217 (sparc_pop_frame): Ditto.
8ffd9b1b 11218
56056df7
AC
112192003-03-27 Andrew Cagney <cagney@redhat.com>
11220
11221 * NEWS: Mention removal of support for hppa*-*-bsd* and
11222 hppa*-*-osf* natives, and hppa*-*-pro* target.
11223 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11224 * config/pa/xm-pa.h: Obsolete file.
11225 * config/pa/xm-hppab.h: Obsolete file.
11226 * config/pa/nm-hppab.h: Obsolete file.
11227 * config/pa/tm-hppab.h: Obsolete file.
11228 * config/pa/tm-hppao.h: Obsolete file.
11229 * config/pa/nm-hppao.h: Obsolete file.
11230 * config/pa/tm-pro.h: Obsolete file.
11231 * config/pa/hppaosf.mt: Obsolete file.
11232 * config/pa/hppaosf.mh: Obsolete file.
11233 * config/pa/hppapro.mt: Obsolete file.
11234 * config/pa/hppabsd.mt: Obsolete file.
11235 * config/pa/hppabsd.mh: Obsolete file.
11236 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11237 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11238 hppa*-*-osf*.
11239
5873a88d
AC
112402003-03-27 Andrew Cagney <cagney@redhat.com>
11241
11242 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11243 push_arguments. Don't set push_return_address or write_sp.
11244 (d10v_push_dummy_call): Replace d10v_push_arguments.
11245 (d10v_push_return_address, d10v_write_sp): Delete function,
11246 handled by push_dummy_call.
11247
b81774d8
AC
112482003-03-26 Andrew Cagney <cagney@redhat.com>
11249
11250 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11251 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11252 regcache and dummy_addr parameters.
11253 * gdbarch.h, gdbarch.c: Re-generate.
11254 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11255 available; assume it will handle stack alignment and return
11256 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11257 legacy_push_arguments.
11258 (legacy_push_arguments): Rename default_push_arguments.
11259 * value.h (legacy_push_arguments): Rename default_push_arguments.
11260 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11261 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11262 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11263 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11264 * config/i386/tm-symmetry.h: Update.
11265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11266 * x86-64-tdep.c (x86_64_init_abi): Update.
11267 * v850-tdep.c (v850_gdbarch_init): Update.
11268 * sparc-tdep.c (sparc_gdbarch_init): Update.
11269 * sh-tdep.c (sh_gdbarch_init): Update.
11270 * s390-tdep.c (s390_gdbarch_init): Update.
11271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11272 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11273 * mips-tdep.c (mips_gdbarch_init): Update.
11274 * mcore-tdep.c (mcore_gdbarch_init): Update.
11275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11276 * ia64-tdep.c (ia64_gdbarch_init): Update.
11277 * i386-tdep.c (i386_gdbarch_init): Update.
11278 * hppa-tdep.c (hppa_gdbarch_init): Update.
11279 * h8300-tdep.c (h8300_gdbarch_init): Update.
11280 * frv-tdep.c (frv_gdbarch_init): Update.
11281 * d10v-tdep.c (d10v_gdbarch_init): Update.
11282 * cris-tdep.c (cris_gdbarch_init): Update.
11283 * avr-tdep.c (avr_gdbarch_init): Update.
11284 * arm-tdep.c (arm_gdbarch_init): Update.
11285 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11286 * alpha-tdep.c (alpha_gdbarch_init): Update.
11287
f541410f
DJ
112882003-03-26 Daniel Jacobowitz <drow@mvista.com>
11289
11290 * signals/signals.c (do_target_signal_to_host): Correct realtime
11291 signal range test.
11292
69f567ae
DJ
112932003-03-26 Daniel Jacobowitz <drow@mvista.com>
11294
11295 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11296 (struct sal_chain, map_catch_names): Remove.
11297 (catch_exception_command_1): Don't call
11298 handle_gnu_4_16_catch_command.
11299
d5d14a5a
DJ
113002003-03-26 Daniel Jacobowitz <drow@mvista.com>
11301
11302 From Mark Dettinger <dettinge@de.ibm.com>:
11303 * dwarf2cfi.c (read_2u): Increment pointer by two.
11304
bdd73e22
DJ
113052003-03-26 Daniel Jacobowitz <drow@mvista.com>
11306
11307 * signals/signals.c: Fix typos in last change.
11308
960cb555
DJ
113092003-03-26 Daniel Jacobowitz <drow@mvista.com>
11310
11311 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11312 not already defined. Use __SIGRTMIN if available.
11313 (target_signal_from_host): Remove SIGRTMIN block.
11314 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11315 the signal is within the realtime range.
11316
f636b87d
AF
113172003-03-25 Adam Fedor <fedor@gnu.org>
11318
11319 * Makefile.in (infrun.o): Add $(language_h)
11320 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11321 for language specific trampolines.
11322 * language.h (struct language_defn): Add skip_trampoline.
11323 (skip_language_trampoline): Declare.
11324 * language.c (unk_lang_trampoline, skip_language_trampoline):
11325 New functions.
11326 (unknown_language_defn, auto_language_defn, local_language_defn):
11327 Add ukn_lang_trampoline.
11328 * ada-lang.c (ada_language_defn): Add NULL for language
11329 specific skip_trampoline.
11330 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11331 scm-lang.c: Likewise.
11332 * objc-lang.c (objc_skip_trampoline): New function.
11333 (objc_language_defn): Add objc_skip_trampoline.
11334
28f617b3 113352003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11336
11337 * frame.c (get_prev_frame): Delay validating a frame's ID -
11338 non-NULL, didn't go backwards - until an attempt to unwind it to
11339 the previous frame.
11340
f933a9c5
AC
113412003-03-25 Andrew Cagney <cagney@redhat.com>
11342
11343 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11344 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11345 * gdbarch.h, gdbarch.c: Re-generate.
11346 * config/sparc/tm-sparc.h
11347 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11348 * sparc-tdep.c (sparc_gdbarch_init): Set
11349 deprecated_extra_stack_alignment_needed.
11350 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11352 extra_stack_alignment_needed.
11353 * v850-tdep.c (v850_gdbarch_init): Ditto.
11354 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11355 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11356 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11357 * cris-tdep.c (cris_gdbarch_init): Ditto.
11358 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11360
4183d812
AC
113612003-03-25 Andrew Cagney <cagney@redhat.com>
11362
11363 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11364 STORE_STRUCT_RETURN.
11365 * gdbarch.h, gdbarch.c: Regenerate.
11366 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11367 (d10v_push_arguments): Set the struct return register.
11368 (d10v_gdbarch_init): Update.
11369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11370 * x86-64-tdep.c (x86_64_init_abi): Update.
11371 * vax-tdep.c (vax_gdbarch_init): Update.
11372 * v850-tdep.c (v850_gdbarch_init): Update.
11373 * sparc-tdep.c (sparc_gdbarch_init): Update.
11374 * sh-tdep.c (sh_gdbarch_init): Update.
11375 * s390-tdep.c (s390_gdbarch_init): Update.
11376 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11379 * mips-tdep.c (mips_gdbarch_init): Update.
11380 * mcore-tdep.c (mcore_gdbarch_init): Update.
11381 * m68k-tdep.c (m68k_gdbarch_init): Update.
11382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11383 * ia64-tdep.c (ia64_gdbarch_init): Update.
11384 * i386-tdep.c (i386_gdbarch_init): Update.
11385 * hppa-tdep.c (hppa_gdbarch_init): Update.
11386 * h8300-tdep.c (h8300_gdbarch_init): Update.
11387 * frv-tdep.c (frv_gdbarch_init): Update.
11388 * cris-tdep.c (cris_gdbarch_init): Update.
11389 * avr-tdep.c (avr_gdbarch_init): Update.
11390 * arm-tdep.c (arm_gdbarch_init): Update.
11391 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11392
1bf6d5cc
AC
113932003-03-25 Andrew Cagney <cagney@redhat.com>
11394
11395 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11396 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11397 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11398 * gdbarch.h, gdbarch.c: Regenerate.
11399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11400 call_dummy_stack_adjust_p.
11401 * vax-tdep.c (vax_gdbarch_init): Ditto.
11402 * v850-tdep.c (v850_gdbarch_init): Ditto.
11403 * sh-tdep.c (sh_gdbarch_init): Ditto.
11404 * s390-tdep.c (s390_gdbarch_init): Ditto.
11405 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11406 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11407 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11408 * mips-tdep.c (mips_gdbarch_init): Ditto.
11409 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11410 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11412 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11413 * i386-tdep.c (i386_gdbarch_init): Ditto.
11414 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11415 * frv-tdep.c (frv_gdbarch_init): Ditto.
11416 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11417 * cris-tdep.c (cris_gdbarch_init): Ditto.
11418 * avr-tdep.c (avr_gdbarch_init): Ditto.
11419 * arm-tdep.c (arm_gdbarch_init): Ditto.
11420 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11421 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11422 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11423 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11424 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11425 call_dummy_stack_adjust_p.
11426 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11427 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11428 * sparc-tdep.c (sparc32_push_arguments): Update.
11429 * valops.c (hand_function_call): Update.
11430
71c08af0
CV
114312003-03-25 Corinna Vinschen <vinschen@redhat.com>
11432
11433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11434 set_gdbarch_char_signed.
11435
30757f90
RE
114362003-03-25 Richard Earnshaw <rearnsha@arm.com>
11437
11438 PR cli/548
11439 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11440
03d48a7d
RE
114412003-03-25 Richard Earnshaw <rearnsha@arm.com>
11442
11443 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11444 (_initialize_arm_tdep): Don't set tm_print_insn.
11445
2cf6873c
AF
114462003-03-24 Adam Fedor <fedor@gnu.org>
11447
11448 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11449 * objc-lang.h: Add multiple inclusion protection.
11450 (start_msglist, add_msglist, end_msglist): Additional declarations.
11451
17c0759e
RE
114522003-03-24 Richard Earnshaw <rearnsha@arm.com>
11453
11454 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11455 value was renamed to ARM_FLOAT_SOFT_FPA.
11456
618ce49f
AC
114572003-03-23 Andrew Cagney <cagney@redhat.com>
11458
11459 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11460 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11461 * gdbarch.h, gdbarch.c: Regenerate.
11462 * valops.c (hand_function_call): Update.
11463 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11464 * frame.c (legacy_saved_regs_this_id): Update.
11465 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11466 * dummy-frame.h: Update.
11467 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11468 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11469 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11470 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11471 * config/m68k/tm-sun3.h: Update.
11472 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11474 * x86-64-tdep.c (x86_64_init_abi): Update.
11475 * vax-tdep.c (vax_gdbarch_init): Update.
11476 * v850-tdep.c (v850_gdbarch_init): Update.
11477 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11478 * sh-tdep.c (sh_gdbarch_init): Update.
11479 * s390-tdep.c (s390_gdbarch_init): Update.
11480 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11481 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11482 (frame_get_saved_regs): Update.
11483 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11484 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11485 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11486 * mips-tdep.c (mips_gdbarch_init): Update.
11487 * mcore-tdep.c (mcore_gdbarch_init): Update.
11488 * m68k-tdep.c (m68k_gdbarch_init): Update.
11489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11490 * ia64-tdep.c (ia64_gdbarch_init): Update.
11491 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11492 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11493 (i386_interix_back_one_frame): Update.
11494 * hppa-tdep.c (hppa_gdbarch_init): Update.
11495 (hppa_init_extra_frame_info): Update.
11496 * h8300-tdep.c (h8300_gdbarch_init): Update.
11497 * frv-tdep.c (frv_gdbarch_init): Update.
11498 * cris-tdep.c (cris_gdbarch_init): Update.
11499 * avr-tdep.c (avr_gdbarch_init): Update.
11500 * arm-tdep.c (arm_gdbarch_init): Update.
11501 * alpha-tdep.c (alpha_gdbarch_init): Update.
11502
fd50bc42
RE
115032003-03-22 Richard Earnshaw <rearnsha@arm.com>
11504
11505 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11506 (arm_get_fp_model): Declare.
11507 * arm-tdep.c (fp_model_strings): New string array.
11508 (arm_fp_model, current_fp_model): New variables.
11509 (arm_get_fp_model): New function.
11510 (arm_set_fp): New function.
11511 (set_fp_model_sfunc): New function.
11512 (show_fp_model): New function.
11513 (_initialize_arm_tdep): Add new command to set/show the FPU.
11514 (arm_extract_return_value): Use arm_get_fp_model.
11515 (arm_store_return_value): Likewise.
11516 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11517 to initialize the floating-point data types.
11518 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11519 model is FPA.
11520
26304000
RE
115212003-03-22 Richard Earnshaw <rearnsha@arm.com>
11522
11523 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11524 the current setting of each value.
11525 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11526 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11527 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11528 commands and add new version as subcommands of "set/show arm".
11529
afd7eef0
RE
115302003-03-22 Richard Earnshaw <rearnsha@arm.com>
11531
11532 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11533 (set_arm_command, show_arm_command): New functions.
11534 (_initialize_arm_tdep): Add them.
11535 (num_disassembly_options): Renamed from num_flavor_options.
11536 (valid_disassembly_styles): Renamed from valid_flavors.
11537 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11538 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11539 set_disassembly_flavor_sfunc.
11540 (set_disassembly_style): Renamed from set_disassembly_flavor.
11541 (arm_othernames): Updated.
11542 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11543 command. Add "set/show arm disassembly" commands. Deprecate
11544 "othernames" command.
11545
299a7944
RE
115462003-03-22 Richard Earnshaw <rearnsha@arm.com>
11547
11548 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11549 (arm-tdep.o): Depend on elf_arm_h.
11550
c1dac9e6
RE
115512003-03-22 Richard Earnshaw <rearnsha@arm.com>
11552
11553 * Makefile.in (coff_internal_h): Define.
11554 (arm-tdep.o): Update dependencies.
11555
2702d96c
RE
115562003-03-22 Richard Earnshaw <rearnsha@arm.com>
11557
11558 * arm-tdep.c (prologue_cache): Delete.
11559 (check_prologue_cache, save_prologue_cache): Delete.
11560 (arm_scan_prologue): Don't check or update the prologue_cache.
11561 (arm_gdb_arch_init): Don't initialize it.
11562 (_initialize_arm_tdep): Likewise.
11563
27d5d74b
SC
115642003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11565
11566 * MAINTAINERS (tui): Maintainer of tui code.
11567
1762d96d
CV
115682003-03-21 Corinna Vinschen <vinschen@redhat.com>
11569
11570 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11571 (i386-cygwin-tdep.o): Add dependencies.
11572 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11573 * i386-cygwin-tdep.c: New file.
11574 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11575 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11576
4c2e2391
AC
115772003-03-20 Andrew Cagney <cagney@redhat.com>
11578
f20d38b7
AC
11579 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11580 (handle_inferior_event): Remove code calling
11581 DYNAMIC_TRAMPOLINE_NEXTPC.
11582
0022b738
AC
11583 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11584 already has a full path.
11585
864dbc90
AC
11586 * main.c (gdb_main): Return 1.
11587 (captured_main): Call error to report an invalid interpreter.
11588
4c2e2391
AC
11589 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11590 * alpha-osf1-tdep.c: Include "gdb_string.h".
11591
5ef7553b
JB
115922003-03-19 J. Brobecker <brobecker@gnat.com>
11593
11594 Continuing work to convert the hppa targets to multiarch partial.
11595
11596 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11597 method, now that hppa_push_dummy_frame has a conformant prototype.
11598 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11599 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11600 for the switch to multiarch partial.
11601
7bde8967
KB
116022003-03-19 Kevin Buettner <kevinb@redhat.com>
11603
11604 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11605 when iss is issNull.
11606
b006a9e9
KB
116072003-03-18 Kevin Buettner <kevinb@redhat.com>
11608
11609 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11610 NUM_REGS bounds check.
11611
5e2e9765
KB
116122003-03-18 Kevin Buettner <kevinb@redhat.com>
11613
11614 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11615 * mips-tdep.c (gdb_assert.h): Include.
11616 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11617 (mips_register_name): Handle integer registers explicitly. Add
11618 bounds checking.
11619 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11620 (mips_lsi33k_reg_names): Don't list integer registers; they're
11621 handled by mips_register_name() now.
11622 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11623 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11624 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11625 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11626 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11627
a2867626
AC
116282003-03-18 Andrew Cagney <cagney@redhat.com>
11629
11630 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11631 a void pointer.
11632 * gdbtypes.h (print_scalar_formatted): Update declaration.
11633 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11634
06600e06
JB
116352003-03-18 J. Brobecker <brobecker@gnat.com>
11636
11637 * infrun.c (observer.h): Add #include.
11638 (normal_stop): Add call to observer_notify_normal_stop.
11639 * Makefile.in (infrun.o): Add dependency on observer.h.
11640
7daf4f5b
JB
116412003-03-18 J. Brobecker <brobecker@gnat.com>
11642
11643 Continuing work to convert the hppa targets to multiarch partial.
11644 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11645 parameter. Reformat comment.
11646 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11647 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11648 to match new profile.
11649
3371ccc0
JB
116502003-03-18 J. Brobecker <brobecker@gnat.com>
11651
11652 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11653 appear to be working in any case.
11654
4fbe891e
JB
116552003-03-18 J. Brobecker <brobecker@gnat.com>
11656
11657 * observer.c (observer_test_first_observer): New static variable.
11658 (observer_test_second_observer): Likewise.
11659 (observer_test_third_observer): Likewise.
11660 (observer_test_first_notification_function): New static function.
11661 (observer_test_second_notification_function): Likewise.
11662 (observer_test_third_notification_function): Likewise.
11663
a7ff40e7
JB
116642003-03-17 J. Brobecker <brobecker@gnat.com>
11665
11666 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11667 * somsolib.c (gdb_assert.h): Likewise.
11668 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11669 (somsolib.o): Likewise.
11670
26ca4152
AC
116712003-03-17 Andrew Cagney <cagney@redhat.com>
11672
11673 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11674 BFD. Simplify setting of di.endian.
11675
0a613259
AC
116762003-03-17 Andrew Cagney <cagney@redhat.com>
11677
11678 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11679 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11680
11681 From Elena Zannoni <ezannoni@redhat.com>
11682 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11683 vector and floating-point parameters.
11684 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11685 convention.
11686 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11687
1132738f
FN
116882003-03-17 Fernando Nasser <fnasser@redhat.com>
11689
11690 * MAINTAINERS: Remove my name from several maintainership roles.
11691
6dc42492
AC
116922003-03-17 Andrew Cagney <cagney@redhat.com>
11693
11694 Fix frame off-by-one bug.
11695 * frame-unwind.h (frame_this_id_ftype): Replace
11696 frame_unwind_id_ftype.
11697 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11698 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11699 with "prev_register".
11700 * frame-unwind.c (frame_unwind_find_by_pc): Return
11701 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11702 comment.
11703 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11704 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11705 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11706 (dummy_frame_unwind): Update.
11707 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11708 sentinel_frame_register_unwind.
11709 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11710 (sentinel_frame_unwinder): Update.
11711 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11712 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11713 * frame.c (create_sentinel_frame): Update. Initialize
11714 "prologue_cache" instead of "unwind_cache".
11715 (frame_register_unwind): Call this frame's prev_register with the
11716 next frame and this frame's prologue cache.
11717 (get_prev_frame): Simplify. Always call prev frame's this_id with
11718 this frame and prev frame's prologue cache. Document that this
11719 call is shifted one to the left when compared to the
11720 frame_register_unwind call.
11721 (legacy_saved_regs_prev_register): Replace
11722 frame_saved_regs_register_unwind.
11723 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11724 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11725 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11726 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11727 (d10v_frame_unwind): Update.
11728 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11729 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11730 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11731 "saved_regs" with "this_saved_regs".
11732
efd710d6
AC
117332003-03-16 Andrew Cagney <cagney@redhat.com>
11734
11735 * frame.c (frame_pop): Don't call target_store_registers. Fix
11736 problem reported by Mark Kettenis.
11737
4e259f09
MK
117382003-03-16 Mark Kettenis <kettenis@gnu.org>
11739
11740 * i386-tdep.c (i386_register_type): Renamed from
11741 i386_register_virtual_type. Adjust function signature.
11742 (i386_gdbarch_init): Set register_type instead of
11743 deprecated_max_register_raw_size,
11744 deprecated_max_register_virtual_size and register_virtual_type.
11745
055bb976
AC
117462003-03-14 Andrew Cagney <cagney@redhat.com>
11747
11748 * frame.c (get_prev_frame): When a legacy frame, always call
11749 legacy_get_prev_frame. Simplify unwind code using assumption that
11750 the unwinder is new.
11751 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11752 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11753 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11754
ac2adee5
AC
117552003-03-14 Andrew Cagney <cagney@redhat.com>
11756
11757 * frame.c (get_saved_register): Delete function.
11758 * frame.h (get_saved_register): Delete declaration.
11759 * xstormy16-tdep.c: Update comment.
11760 * regcache.h: Update comments.
11761 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11762 get_saved_register and extract_address, use
11763 frame_read_unsigned_register.
11764 (sparc_frame_saved_pc): Ditto.
11765 (sparc_get_saved_register): Instead of get_saved_register, use
11766 frame_register.
11767 (sparc_pop_frame): Ditto.
11768 * findvar.c: Update comments.
11769 (value_of_register): Call frame_register instead of
11770 get_saved_register.
11771 (value_from_register): Ditto.
11772 * config/sparc/tm-sparc.h: Update comment.
11773 * breakpoint.c: Update comment.
11774
129c1cd6
AC
117752003-03-14 Andrew Cagney <cagney@redhat.com>
11776
11777 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11778 GET_SAVED_REGISTER.
11779 * gdbarch.h, gdbarch.c: Re-generate.
11780 * frame.h: Update comments.
11781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11782 * x86-64-tdep.c (x86_64_init_abi): Update.
11783 * sparc-tdep.c (sparc_gdbarch_init): Update.
11784 * sh-tdep.c (sh_gdbarch_init): Update.
11785 * mips-tdep.c (mips_gdbarch_init): Update.
11786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11787 * cris-tdep.c (cris_gdbarch_init): Update.
11788 * ia64-tdep.c (ia64_gdbarch_init): Update.
11789 * frame.c (frame_register): Update.
11790 (get_saved_register): Update.
11791 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11792
749b82f6
AC
117932003-03-13 Andrew Cagney <cagney@redhat.com>
11794
11795 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11796 * gdbarch.h, gdbarch.c: Regenerate.
11797 * valops.c (hand_function_call): Update comment.
11798 * stack.c (return_command): Update comment.
11799 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11800 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11802 * x86-64-tdep.c (x86_64_init_abi): Update.
11803 * vax-tdep.c (vax_gdbarch_init): Update.
11804 * v850-tdep.c (v850_gdbarch_init): Update.
11805 * sparc-tdep.c (sparc_gdbarch_init): Update.
11806 * sh-tdep.c (sh_gdbarch_init): Update.
11807 * s390-tdep.c (s390_gdbarch_init): Update.
11808 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11809 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11810 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11811 * mips-tdep.c (mips_gdbarch_init): Update.
11812 * mcore-tdep.c (mcore_gdbarch_init): Update.
11813 * m68k-tdep.c (m68k_gdbarch_init): Update.
11814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11815 * ia64-tdep.c (ia64_gdbarch_init): Update.
11816 * i386-tdep.c (i386_gdbarch_init): Update.
11817 * hppa-tdep.c (hppa_gdbarch_init): Update.
11818 * h8300-tdep.c (h8300_gdbarch_init): Update.
11819 * frv-tdep.c (frv_gdbarch_init): Update.
11820 * cris-tdep.c (cris_gdbarch_init): Update.
11821 * avr-tdep.c (avr_gdbarch_init): Update.
11822 * arm-tdep.c (arm_gdbarch_init): Update.
11823 * alpha-tdep.c (alpha_gdbarch_init): Update.
11824
1594fa56
AC
118252003-03-13 Andrew Cagney <cagney@redhat.com>
11826
11827 * frame.c (legacy_frame_p): New function.
11828 (get_prev_frame): Use legacy_frame_p.
11829 * frame.h (legacy_frame_p): Declare.
11830
7717fda3
V
118312003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11832
fbe586ae 11833 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11834 listing corrected.
11835
0c67cbe9
V
118362003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11837
fbe586ae 11838 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11839
03febf99
AC
118402003-03-12 Andrew Cagney <cagney@redhat.com>
11841
11842 * frame.c (get_prev_frame): Rename the frame parameter to
11843 "this_frame".
11844 (get_next_frame, legacy_get_prev_frame): Ditto.
11845
0a1e1ca1
AC
118462003-03-12 Andrew Cagney <cagney@redhat.com>
11847
11848 * frame.c (get_current_frame): Check target_has_registers before
11849 checking target_has_stack.
11850 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11851 instead of deprecated_selected_frame.
11852 * findvar.c (value_of_register): Pass "frame", not
11853 deprecated_selected_frame, to value_of_builtin_reg.
11854
a66a9c23
AC
118552003-03-12 Andrew Cagney <cagney@redhat.com>
11856
11857 * regcache.c (regcache_cooked_write_signed): New function.
11858 (regcache_cooked_write_unsigned): New function.
11859 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11860 (regcache_cooked_read_signed): Fix regnum in range assertion.
11861 * regcache.h (regcache_cooked_write_signed): Declare.
11862 (regcache_cooked_write_unsigned): Declare.
11863
8bedc050
AC
118642003-03-12 Andrew Cagney <cagney@redhat.com>
11865
11866 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11867 * gdbarch.h, gdbarch.c: Re-generate.
11868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11869 * x86-64-tdep.h: Update.
11870 * x86-64-tdep.c (x86_64_init_abi): Update.
11871 * v850-tdep.c (v850_gdbarch_init): Update.
11872 * sparc-tdep.c (sparc_gdbarch_init): Update.
11873 * sh-tdep.c (sh_gdbarch_init): Update.
11874 * s390-tdep.c (s390_gdbarch_init): Update.
11875 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11876 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11879 * mips-tdep.c (mips_gdbarch_init): Update.
11880 * mcore-tdep.c (mcore_gdbarch_init): Update.
11881 * m68k-tdep.c (m68k_gdbarch_init): Update.
11882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11883 * ia64-tdep.c (ia64_gdbarch_init): Update.
11884 * i386-tdep.c (i386_gdbarch_init): Update.
11885 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11886 * hppa-tdep.c (hppa_gdbarch_init): Update.
11887 * h8300-tdep.c (h8300_gdbarch_init): Update.
11888 * frv-tdep.c (frv_gdbarch_init): Update.
11889 * cris-tdep.c (cris_gdbarch_init): Update.
11890 * avr-tdep.c (avr_gdbarch_init): Update.
11891 * arm-tdep.c (arm_gdbarch_init): Update.
11892 * alpha-tdep.c (alpha_gdbarch_init): Update.
11893 * sh-tdep.c (sh_init_extra_frame_info): Update.
11894 (sh64_init_extra_frame_info): Update.
11895 * ns32knbsd-nat.c (frame_num_args): Update.
11896 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11897 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11898 (xstormy16_frame_chain_valid): Update.
11899 * vax-tdep.c (vax_saved_pc_after_call): Update.
11900 * v850-tdep.c (v850_frame_chain): Update.
11901 (v850_pop_frame): Update.
11902 (v850_init_extra_frame_info): Update.
11903 * sparc-tdep.c (setup_arbitrary_frame): Update.
11904 * ns32k-tdep.c (umax_frame_num_args): Update.
11905 * s390-tdep.c (s390_pop_frame_regular): Update.
11906 * mn10300-tdep.c (mn10300_frame_chain): Update.
11907 (mn10300_pop_frame_regular): Update.
11908 (mn10300_init_extra_frame_info): Update.
11909 * mips-tdep.c (mips_init_frame_pc_first): Update.
11910 (mips_frame_chain): Update.
11911 (mips_pop_frame): Update.
11912 * mcore-tdep.c (mcore_frame_chain): Update.
11913 (mcore_pop_frame): Update.
11914 (mcore_init_extra_frame_info): Update.
11915 * arch-utils.c (init_frame_pc_default): Update.
11916 * m68k-tdep.c (isi_frame_num_args): Update.
11917 (delta68_frame_num_args): Update.
11918 (news_frame_num_args): Update.
11919 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11920 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11921 (alpha_frame_chain): Update.
11922 (alpha_pop_frame): Update.
11923 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11924 (hppa_init_extra_frame_info): Update.
11925 (hppa_frame_chain): Update.
11926 (hppa_frame_chain_valid): Update.
11927 * cris-tdep.c (cris_init_extra_frame_info): Update.
11928 * avr-tdep.c (avr_init_extra_frame_info): Update.
11929 * arm-tdep.c (arm_frame_chain_valid): Update.
11930 (arm_init_extra_frame_info): Update.
11931 (arm_pop_frame): Update.
11932 * frame.c (frame_pc_unwind): Update.
11933 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11934 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11935 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11936 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11937 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11938 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11939
7a25a7c1
AC
119402003-03-12 Andrew Cagney <cagney@redhat.com>
11941
11942 Eliminate the need for POP_FRAME.
11943 * frame.c (do_frame_unwind_register): New function.
11944 (frame_pop): When no POP_FRAME, pop the frame using register
11945 unwind and a scratch regcache.
11946 (frame_saved_regs_pop): Delete function.
11947 (trad_frame_unwinder): Update.
11948 * d10v-tdep.c (d10v_frame_pop): Delete function.
11949 (d10v_frame_unwind): Update.
11950 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11951 (sentinel_frame_unwinder): Update.
11952 * dummy-frame.c (dummy_frame_pop): Delete function.
11953 (dummy_frame_unwind): Update.
11954 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11955 (struct frame_unwind): Update.
11956
2f38ef89
KB
119572003-03-11 Kevin Buettner <kevinb@redhat.com>
11958
11959 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11960 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11961 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11962 Do range checks on register number obtained from debugging info.
11963 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11964 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11965 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11966 mapping function.
11967 (do_fp_register_row): Fix typo which caused double type to be
11968 used when attempting to unpack a float.
11969
552f4abf
JB
119702003-03-11 J. Brobecker <brobecker@gnat.com>
11971
11972 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11973
e0d2ae16
AC
119742003-03-11 Andrew Cagney <cagney@redhat.com>
11975
11976 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11977 frame. Problem found by Corinna Vinschen.
11978
ddbfdd06
PM
119792003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11980
11981 * doublest.c (floatformat_from_length): Accept also
11982 the real size of 'long double' type.
11983
088b2ddc 119842003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11985
088b2ddc 11986 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11987 * breakpoint.c (bpstat_copy): Copy the command lines as well
11988 as the old value, to match what is freed in bpstat_clear.
11989
f56f77c1
DC
119902003-03-10 David Carlton <carlton@math.stanford.edu>
11991
11992 * minsyms.c (add_minsym_to_hash_table): Replace
11993 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11994 (compare_minimal_symbols, compact_minimal_symbols)
11995 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11996 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11997 of DEPRECATED_SYMBOL_MATCHES_NAME.
11998 (lookup_minimal_symbol_solib_trampoline): Ditto.
11999
5602984a
AC
120002003-03-10 Andrew Cagney <cagney@redhat.com>
12001
12002 * regcache.h (regcache_cooked_read_ftype): Define.
12003 (regcache_save, regcache_restore): Add a cooked_read parameter.
12004 * regcache.c (regcache_save, regcache_restore): Update.
12005 (do_cooked_read): New function.
12006 (regcache_cpy): Pass do_cooked_read to regcache_save and
12007 regcache_restore.
12008
8bedc050
AC
120092003-03-10 Andrew Cagney <cagney@redhat.com>
12010
12011 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12012 * gdbarch.h, gdbarch.c: Re-generate.
12013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12014 * x86-64-tdep.h: Update.
12015 * x86-64-tdep.c (x86_64_init_abi): Update.
12016 * v850-tdep.c (v850_gdbarch_init): Update.
12017 * sparc-tdep.c (sparc_gdbarch_init): Update.
12018 * sh-tdep.c (sh_gdbarch_init): Update.
12019 * s390-tdep.c (s390_gdbarch_init): Update.
12020 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12021 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12022 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12024 * mips-tdep.c (mips_gdbarch_init): Update.
12025 * mcore-tdep.c (mcore_gdbarch_init): Update.
12026 * m68k-tdep.c (m68k_gdbarch_init): Update.
12027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12028 * ia64-tdep.c (ia64_gdbarch_init): Update.
12029 * i386-tdep.c (i386_gdbarch_init): Update.
12030 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12031 * hppa-tdep.c (hppa_gdbarch_init): Update.
12032 * h8300-tdep.c (h8300_gdbarch_init): Update.
12033 * frv-tdep.c (frv_gdbarch_init): Update.
12034 * cris-tdep.c (cris_gdbarch_init): Update.
12035 * avr-tdep.c (avr_gdbarch_init): Update.
12036 * arm-tdep.c (arm_gdbarch_init): Update.
12037 * alpha-tdep.c (alpha_gdbarch_init): Update.
12038 * sh-tdep.c (sh_init_extra_frame_info): Update.
12039 (sh64_init_extra_frame_info): Update.
12040 * ns32knbsd-nat.c (frame_num_args): Update.
12041 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12042 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12043 (xstormy16_frame_chain_valid): Update.
12044 * vax-tdep.c (vax_saved_pc_after_call): Update.
12045 * v850-tdep.c (v850_frame_chain): Update.
12046 (v850_pop_frame): Update.
12047 (v850_init_extra_frame_info): Update.
12048 * sparc-tdep.c (setup_arbitrary_frame): Update.
12049 * ns32k-tdep.c (umax_frame_num_args): Update.
12050 * s390-tdep.c (s390_pop_frame_regular): Update.
12051 * mn10300-tdep.c (mn10300_frame_chain): Update.
12052 (mn10300_pop_frame_regular): Update.
12053 (mn10300_init_extra_frame_info): Update.
12054 * mips-tdep.c (mips_init_frame_pc_first): Update.
12055 (mips_frame_chain): Update.
12056 (mips_pop_frame): Update.
12057 * mcore-tdep.c (mcore_frame_chain): Update.
12058 (mcore_pop_frame): Update.
12059 (mcore_init_extra_frame_info): Update.
12060 * arch-utils.c (init_frame_pc_default): Update.
12061 * m68k-tdep.c (isi_frame_num_args): Update.
12062 (delta68_frame_num_args): Update.
12063 (news_frame_num_args): Update.
12064 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12065 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12066 (alpha_frame_chain): Update.
12067 (alpha_pop_frame): Update.
12068 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12069 (hppa_init_extra_frame_info): Update.
12070 (hppa_frame_chain): Update.
12071 (hppa_frame_chain_valid): Update.
12072 * cris-tdep.c (cris_init_extra_frame_info): Update.
12073 * avr-tdep.c (avr_init_extra_frame_info): Update.
12074 * arm-tdep.c (arm_frame_chain_valid): Update.
12075 (arm_init_extra_frame_info): Update.
12076 (arm_pop_frame): Update.
12077 * frame.c (frame_pc_unwind): Update.
12078 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12079 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12080 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12081 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12082 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12083 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12084
12cc2063
AC
120852003-03-10 Andrew Cagney <cagney@redhat.com>
12086
12087 * gdbarch.sh (gdbarch_unwind_pc): New method.
12088 * gdbarch.h, gdbarch.c: Regenerate.
12089 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12090 but use read_pc and FRAME_SAVED_PC as fall backs.
12091 (frame_saved_regs_pc_unwind): Delete function.
12092 (trad_frame_unwinder): Update.
12093 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12094 (struct frame_unwind): Update.
12095 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12096 (dummy_frame_unwind): Update.
12097 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12098 (sentinel_frame_unwinder): Update.
12099 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12100 (d10v_frame_unwind): Update.
12101 (d10v_unwind_pc): New function.
12102 (d10v_gdbarch_init): Set unwind_pc.
12103
ef840a37
AC
121042003-03-10 Andrew Cagney <cagney@redhat.com>
12105
a2ce2e56
AC
12106 * gdbarch.h: Re-generate.
12107
ef840a37
AC
12108 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12109 PC.
12110 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12111 the PC register.
12112
08f3424b
MK
121132003-03-08 Mark Kettenis <kettenis@gnu.org>
12114
12115 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12116
1248ede2
AC
121172003-03-08 Andrew Cagney <cagney@redhat.com>
12118
12119 * cli-out.c: Update copyright.
12120 (cli_out_data): Define typedef. Use instead of ui_out_data.
12121
f49bacc8
AC
121222003-03-08 Andrew Cagney <cagney@redhat.com>
12123
12124 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12125 the result.
12126
9b05f993
AC
121272003-03-07 Andrew Cagney <cagney@redhat.com>
12128
12129 * gdbarch.sh: Don't generate two macro definitions when an
12130 undefined macro taking no arguments.
12131 * gdbarch.h: Regenerate.
8ffd9b1b 12132
166f4c7b
ML
121332002-03-07 Michal Ludvig <mludvig@suse.cz>
12134
12135 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12136 (x86_64_unwind_dummy_id): New functions.
12137 (x86_64_init_abi): Register these two new functions.
12138
6d686a84
ML
121392003-03-07 Michal Ludvig <mludvig@suse.cz>
12140
12141 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12142 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12143 separate function.
12144 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12145
6314f104
AC
121462003-03-05 Andrew Cagney <cagney@redhat.com>
12147
12148 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12149 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12150 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12151 to use unwind_dummy_id when a dummy frame.
12152 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12153 predicate.
12154 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12155
ceea5145
AC
121562003-03-05 Andrew Cagney <cagney@redhat.com>
12157
12158 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12159 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12160 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12161 values.
12162
0d843116
AC
121632003-03-05 Andrew Cagney <cagney@redhat.com>
12164
12165 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12166 (struct d10v_unwind_cache): Delete field "frameless". Replace
12167 "next_addr" with "sp_offset". Add "r11_offset".
12168 (d10v_frame_unwind_cache): Update.
12169 (prologue_find_regs): Update. When "mv r11, sp", save the
12170 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12171 RN was saved in r11_offset.
12172
b2579786
AC
121732003-03-05 Andrew Cagney <cagney@redhat.com>
12174
12175 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12176 cached PC value in the next frame.
12177
218e5956
AC
121782003-03-05 Andrew Cagney <cagney@redhat.com>
12179
12180 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12181 "id_unwind_cache" with "id".
12182 (frame_id_unwind): Delete declaration.
12183 * frame.c (frame_id_unwind): Delete function.
12184 (get_prev_frame): Call the frame id unwind method directly. Store
12185 the returned next frame's ID value in NEXT_FRAME. Note that there
12186 is a problem with the wrong unwind ID being called with the wrong
12187 unwind cache.
12188
ed363b1b
DJ
121892003-03-05 Daniel Jacobowitz <drow@mvista.com>
12190
12191 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12192
fe1f4a5e
DJ
121932003-03-05 James Ingham <jingham@apple.com>
12194 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12197 (auto_cp_abi): New variable.
12198 (current_cp_abi, num_cp_abis): Make static.
12199 (CP_ABI_MAX): Define.
12200 (cp_abis): Turn into an array.
12201 (value_virtual_fn_field): Fix formatting.
12202 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12203 takes a pointer.
12204 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12205 (list_cp_abis, _initialize_cp_abi): New functions.
12206 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12207 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12208 switch_to_cp_abi. Update prototype for register_cp_abi.
12209 * Makefile.in (cp-abi.o): Update dependencies.
12210 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12211 instead of switch_to_cp_abi.
12212 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12213 register_cp_abi.
12214 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12215 register_cp_abi.
12216 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12217
e4adbba9
DJ
122182003-03-05 Daniel Jacobowitz <drow@mvista.com>
12219
12220 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12221 * dwarf2loc.c: Include "regcache.h".
12222 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12223 register_size.
12224 * Makefile.in (dwarf2loc.o): Update dependencies.
12225
91ccbfc1
TR
122262003-03-04 Theodore A. Roth <troth@openavr.org>
12227
12228 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12229 number of io registers reported by remote target is not a multiple of
12230 step.
12231
3d4e8fd2
DC
122322003-03-04 David Carlton <carlton@math.stanford.edu>
12233
12234 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12235 (lookup_symbol_aux_psymtabs): Update call to
12236 lookup_partial_symbol.
12237 (lookup_transparent_type, find_main_psymtab)
12238 (make_symbol_overload_list): Ditto.
12239
ed42d87b
KH
122402003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12241
12242 * MAINTAINERS (Write after approval): Update my email address.
12243
a0ed5532
AC
122442003-03-03 Andrew Cagney <cagney@redhat.com>
12245
12246 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12247 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12248 predicate. Replace MAX_REGISTER_RAW_SIZE.
12249 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12250 MAX_REGISTER_VIRTUAL_SIZE.
12251 * regcache.c (legacy_max_register_raw_size): New function.
12252 (legacy_max_register_virtual_size): New function.
12253 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12254 (MAX_REGISTER_RAW_SIZE): Define.
12255 (legacy_max_register_raw_size): Declare.
12256 (legacy_max_register_virtual_size): Declare.
12257 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12258 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12259 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12260 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12261 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12262 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12263 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12264 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12265 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12266 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12267 * vax-tdep.c (vax_gdbarch_init): Update.
12268 * v850-tdep.c (v850_gdbarch_init): Update.
12269 * sparc-tdep.c (sparc_gdbarch_init): Update.
12270 * sh-tdep.c (sh_gdbarch_init): Update.
12271 * s390-tdep.c (s390_gdbarch_init): Update.
12272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12275 * mips-tdep.c (mips_gdbarch_init): Update.
12276 * mcore-tdep.c (mcore_gdbarch_init): Update.
12277 * m68k-tdep.c (m68k_gdbarch_init): Update.
12278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12279 * ia64-tdep.c (ia64_gdbarch_init): Update.
12280 * i386-tdep.c (i386_gdbarch_init): Update.
12281 * hppa-tdep.c (hppa_gdbarch_init): Update.
12282 * h8300-tdep.c (h8300_gdbarch_init): Update.
12283 * frv-tdep.c (frv_gdbarch_init): Update.
12284 * cris-tdep.c (cris_gdbarch_init): Update.
12285 * avr-tdep.c (avr_gdbarch_init): Update.
12286 * arm-tdep.c (arm_gdbarch_init): Update.
12287 * alpha-tdep.c (alpha_gdbarch_init): Update.
12288 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12289 max_register_raw_size or max_register_virtual_size.
12290
8e437497
DC
122912003-03-03 David Carlton <carlton@math.stanford.edu>
12292
12293 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12294 SYMBOL_MATCHES_NAME, add comment.
12295 (SYMBOL_MATCHES_NATURAL_NAME): New.
12296 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12297 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12298 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12299 * symtab.c (lookup_partial_symbol): Use
12300 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12301 unhelpful comment.
12302 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12303 SYMBOL_MATCHES_NAME.
12304 Fix for PR c++/33.
12305
25120b0d
DC
123062003-03-03 David Carlton <carlton@math.stanford.edu>
12307
12308 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12309 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12310 by regexp matching against SYMBOL_NATURAL_NAME.
12311
78a11fb4
DC
123122003-03-03 David Carlton <carlton@math.stanford.edu>
12313
12314 * linespec.c (find_method): Extract code into collect_methods.
12315 (collect_methods): New.
12316
645dd519
MK
123172003-03-02 Mark Kettenis <kettenis@gnu.org>
12318
b4700d91
MK
12319 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12320 get_frame_base.
12321
645dd519
MK
12322 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12323 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12324
0aa7e1aa
SC
123252003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12326
8ffd9b1b 12327 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12328 and not regnum when summing the size of all registers up to regnum.
12329
f30ee0bc
AC
123302003-03-01 Andrew Cagney <cagney@redhat.com>
12331
12332 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12333 FRAME_INIT_SAVED_REGS.
12334 * gdbarch.h, gdbarch.c: Regenerate.
12335 * stack.c (frame_info): Update.
12336 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12337 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12338 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12339 * ns32k-tdep.c (ns32k_pop_frame): Update.
12340 * mips-tdep.c (mips_pop_frame): Update.
12341 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12342 * ia64-tdep.c (ia64_frame_chain): Update.
12343 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12344 (ia64_frameless_function_invocation): Update.
12345 (ia64_init_extra_frame_info): Update.
12346 (ia64_pop_frame_regular): Update.
12347 * frame.h (struct frame_info): Update comment.
12348 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12349 * frame.c (frame_saved_regs_register_unwind): Update.
12350 (frame_saved_regs_register_unwind): Update.
12351 (deprecated_generic_get_saved_register): Update.
12352 * cris-tdep.c: Update comment.
12353 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12354 Rename macro.
12355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12356 * x86-64-tdep.c (x86_64_init_abi): Update.
12357 * vax-tdep.c (vax_gdbarch_init): Update.
12358 * v850-tdep.c (v850_gdbarch_init): Update.
12359 * sparc-tdep.c (sparc_gdbarch_init): Update.
12360 * sh-tdep.c (sh_gdbarch_init): Update.
12361 * s390-tdep.c (s390_gdbarch_init): Update.
12362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12363 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12364 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12365 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12366 * mips-tdep.c (mips_gdbarch_init): Update.
12367 * mcore-tdep.c (mcore_gdbarch_init): Update.
12368 * m68k-tdep.c (m68k_gdbarch_init): Update.
12369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12370 * ia64-tdep.c (ia64_gdbarch_init): Update.
12371 * i386-tdep.c (i386_gdbarch_init): Update.
12372 * frv-tdep.c (frv_gdbarch_init): Update.
12373 * avr-tdep.c (avr_gdbarch_init): Update.
12374 * arm-tdep.c (arm_gdbarch_init): Update.
12375 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12376
42fa7c0f
AC
123772003-03-01 Andrew Cagney <cagney@redhat.com>
12378
12379 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12380 option enum and switch. When no windows, set the interpreter to
12381 INTERP_CONSOLE.
8ffd9b1b 12382
49c7e338
AC
123832003-03-01 Andrew Cagney <cagney@redhat.com>
12384
12385 * main.c (captured_main): Replace magic option characters with an
12386 enum.
12387
e9582e71
AC
123882003-03-01 Andrew Cagney <cagney@redhat.com>
12389
12390 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12391 INIT_EXTRA_FRAME_INFO.
12392 * gdbarch.h, gdbarch.c: Regenerate.
12393 * arm-tdep.c: Update comments.
12394 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12395 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12396 * frame.h, avr-tdep.c: Ditto.
12397 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12398 (create_new_frame, legacy_get_prev_frame): Ditto.
12399 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12400 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12402 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12403 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12404 * v850-tdep.c (v850_gdbarch_init): Ditto.
12405 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12406 * sh-tdep.c (sh_gdbarch_init): Ditto.
12407 * s390-tdep.c (s390_gdbarch_init): Ditto.
12408 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12410 * mips-tdep.c (mips_gdbarch_init): Ditto.
12411 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12413 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12414 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12415 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12416 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12417 * frv-tdep.c (frv_gdbarch_init): Ditto.
12418 * cris-tdep.c (cris_gdbarch_init): Ditto.
12419 * avr-tdep.c (avr_gdbarch_init): Ditto.
12420 * arm-tdep.c (arm_gdbarch_init): Ditto.
12421 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12422 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12423
35cac7cf
AC
124242003-03-01 Andrew Cagney <cagney@redhat.com>
12425
12426 * gdbarch.sh (register_type): New function with predicate.
12427 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12428 * gdbarch.h, gdbarch.c: Re-generate.
12429 * arch-utils.c (generic_register_byte): Use generic_register_size.
12430 (generic_register_size): When available, use
12431 gdbarch_register_type.
12432 * regcache.c (init_regcache_descr): When available, initialize the
12433 register type array using gdbarch_register_type. If the
12434 architecture supplies gdbarch_register_type, do not use the legacy
12435 regcache layout.
12436 * d10v-tdep.c (d10v_register_type): Replace
12437 d10v_register_virtual_type.
12438 (d10v_gdbarch_init): Set register_type instead of
12439 register_virtual_type.
12440
7b83296f
AC
124412003-03-01 Andrew Cagney <cagney@redhat.com>
12442
12443 * Makefile.in (ax-gdb.o): Update dependencies.
12444 * ax-gdb.c: Include "regcache.h".
12445 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12446 * findvar.c (value_of_register): Ditto.
12447 * infcmd.c (default_print_registers_info): Ditto.
12448
eadc1c87
MK
124492003-03-01 Mark Kettenis <kettenis@gnu.org>
12450
12451 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12452 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12453
14143612
MK
124542003-03-01 Mark Kettenis <kettenis@gnu.org>
12455
12456 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12457 of STREQ.
12458
a55cc764
DJ
124592003-02-28 Daniel Jacobowitz <drow@mvista.com>
12460
12461 * Makefile.in (dwarf2loc.o): Update dependencies.
12462 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12463 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12464 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12465 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12466 (locexpr_tracepoint_var_ref): New function.
12467 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12468
08a617da
AC
124692003-02-28 Andrew Cagney <cagney@redhat.com>
12470
12471 * regcache.c (register_size): New function.
12472 * regcache.h (register_size): Declare
12473 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12474 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12475
4224873a
DC
124762003-02-28 David Carlton <carlton@math.stanford.edu>
12477
12478 * linespec.c (decode_compound): Extract code into find_method.
12479 (find_method): New.
12480
ccdc5d7f
JB
124812003-02-28 J. Brobecker <brobecker@gnat.com>
12482
12483 * Makefile.in: Add rules to build and link in observer.o.
12484
974e8ced
JB
124852003-02-27 J. Brobecker <brobecker@gnat.com>
12486
12487 * observer.c: Minor comments edits.
12488
7a28f973
JB
124892003-02-27 J. Brobecker <brobecker@gnat.com>
12490
12491 * observer.h, observer.c: New file.
12492
27cddce2
AC
124932003-02-27 Andrew Cagney <cagney@redhat.com>
12494
12495 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12496
b94a41a1
SC
124972003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12498
12499 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12500 (M6812_OP_STS_EXT): Likewise.
12501 (m6811_prologue): Use the above to recognize prologue.
12502 (m6812_prologue): Likewise.
12503
c8be8951
DC
125042003-02-27 David Carlton <carlton@math.stanford.edu>
12505
12506 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12507 SYMBOL_PRINT_NAME.
12508 (compare_psymbols): Ditto.
12509 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12510
d05bb1fc
MS
125112003-02-27 Michael Snyder <msnyder@redhat.com>
12512
4e845cd3
MS
12513 * f-lang.c (build_fortran_types): New function.
12514 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12515 * doublest.c (extract_floating): Fix warning text.
12516
f3824013
AC
125172003-02-27 Andrew Cagney <cagney@redhat.com>
12518
12519 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12520 predicate. Replaces PUSH_DUMMY_FRAME.
12521 * gdbarch.h, gdbarch.c: Regnerate.
12522 * valops.c (hand_function_call): Update. Call
12523 generic_push_dummy_frame directly.
12524 * vax-tdep.c (vax_gdbarch_init): Update.
12525 * sparc-tdep.c (sparc_gdbarch_init): Update.
12526 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12527 * m68k-tdep.c (m68k_gdbarch_init): Update.
12528 * hppa-tdep.c (hppa_gdbarch_init): Update.
12529 * alpha-tdep.c (alpha_gdbarch_init): Update.
12530 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12531 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12532 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12534 push_dummy_frame to generic_push_dummy_frame.
12535 * v850-tdep.c (v850_gdbarch_init): Ditto.
12536 * sh-tdep.c (sh_gdbarch_init): Ditto.
12537 * s390-tdep.c (s390_gdbarch_init): Ditto.
12538 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12540 * mips-tdep.c (mips_gdbarch_init): Ditto.
12541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12543 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12544 * i386-tdep.c (i386_gdbarch_init): Ditto.
12545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12546 * frv-tdep.c (frv_gdbarch_init): Ditto.
12547 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12548 * cris-tdep.c (cris_gdbarch_init): Ditto.
12549 * avr-tdep.c (avr_gdbarch_init): Ditto.
12550 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12551
ad188201
KB
125522003-02-26 Kevin Buettner <kevinb@redhat.com>
12553
12554 * mips-tdep.c (show_mips_abi): New function.
12555 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12556 command ``show mips abi''.
12557
6b37567a 125582003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12559
6b37567a 12560 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12561 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12562 more sline entries have been seen for the function.
12563
d3e0a5bf
MC
125642003-02-26 Michael Chastain <mec@shout.net>
12565
12566 * configure: Regenerate with autoconf 000227.
12567
18972eea
MC
125682003-02-26 Michael Chastain <mec@shout.net>
12569
12570 Close PR build/660.
12571 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12572 for old libc5/glibc.
12573 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12574
0bbde931
KW
125752003-02-26 Kris Warkentin <kewarken@qnx.com>
12576
12577 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12578 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12579
27ca5dad
MC
125802003-02-26 Michael Chastain <mec@shout.net>
12581
12582 * configure.in: New variable HAVE_UINTPTR_T.
12583 * configure, config.in: Regenerated.
12584
6f88d630
DJ
125852003-02-26 Daniel Jacobowitz <drow@mvista.com>
12586
12587 Fix PR build/1097.
12588 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12589
b14185ce
AC
125902003-02-25 Andrew Cagney <cagney@redhat.com>
12591
12592 * frame.c (get_prev_frame): Add comment on check for
12593 inside_entry_func. Only check for inside_entry_file when not a
12594 dummy and not a sentinel. Check that the new frame is not inner
12595 to the old frame.
12596
ac2bd0a9
AC
125972003-02-25 Andrew Cagney <cagney@redhat.com>
12598
12599 * frame.c (frame_debug): New variable.
12600 (_initialize_frame): Add "set/show debug frame" command.
12601 (get_prev_frame): When frame_debug, print reason why unwind
12602 failed.
12603
b18a0fd2
MC
126042003-02-25 Michael Chastain <mec@shout.net>
12605
12606 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12607 to avoid uintptr_t definition problems.
12608
22abf04a
DC
126092003-02-25 David Carlton <carlton@math.stanford.edu>
12610
12611 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12612 (SYMBOL_LINKAGE_NAME): Ditto.
12613 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12614 SYMBOL_LINKAGE_NAME.
12615 (struct general_symbol_info): Expand comment.
12616 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12617 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12618 (SYMBOL_MATCHES_REGEXP): Ditto.
12619 * symtab.c (symbol_natural_name): New function.
12620 * objfiles.h: Replace all uses of SYMBOL_NAME by
12621 DEPRECATED_SYMBOL_NAME.
12622 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12623 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12624 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12625 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12626 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12627 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12628 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12629 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12630 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12631 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12632 * ada-exp.y: Ditto.
12633 * ada-exp.y: Update copyright.
12634 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12635 * cp-valprint.c: Ditto.
12636
1a5848f6
JJ
126372003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12638
12639 * infptrace.c (detach): Do not flag error if ptrace detach fails
12640 and errno is set to ESRCH.
12641
7343d46a
AC
126422003-02-24 Andrew Cagney <cagney@redhat.com>
12643
12644 * infptrace.c (udot_info): Change type of udot_off to long. Use
12645 paddr when printing udot_off's value.
12646
49fa1dc2
DC
126472003-02-24 David Carlton <carlton@math.stanford.edu>
12648
12649 * symtab.c (make_symbol_overload_list): Only read in partial
12650 symtabs containing a matching partial symbol.
12651
0fe19209
DC
126522003-02-24 David Carlton <carlton@math.stanford.edu>
12653
12654 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12655 do the comparison, not strcmp.
12656 * symfile.c (compare_psymbols): Ditto.
12657 * defs.h: Declare strcmp_iw_ordered.
12658 * utils.c (strcmp_iw_ordered): New function.
12659
8e3ee7b5
JB
126602003-02-24 Jim Blandy <jimb@redhat.com>
12661
12662 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12663 support, shared libs): Remove my name from here, to better reflect
12664 reality.
12665
7df1a324
KW
126662003-02-24 Kris Warkentin <kewarken@qnx.com>
12667
12668 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12669 (target_ops): Add to_have_continuable_watchpoint.
12670 * target.c (update_current_target): Add INHERIT line for
12671 to_have_continuable_watchpoint.
12672 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12673 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12674 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12675 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12676
d1c76907
EZ
126772003-02-24 Elena Zannoni <ezannoni@redhat.com>
12678
12679 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12680 maintainership.
12681
2610b0bf
KW
126822003-02-24 Kris Warkentin <kewarken@qnx.com>
12683
f46169db
KW
12684 * solib.c (solib_open): Call target defined search function after
12685 failing with solib-search-path.
12686 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12687 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12688
9a3c34fe
KW
126892003-02-24 Kris Warkentin <kewarken@qnx.com>
12690
f46169db 12691 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12692
2417dd25
SC
126932003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12694
12695 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12696
b631436b
SC
126972003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12698
12699 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12700 (m68hc11_add_reggroups): New function.
12701 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12702 (m68hc11_gdbarch_init): Install the reggroups.
12703 (_initialize_m68hc11_tdep): Initialize them.
12704
0aa8c1e4
JW
127052003-02-21 James E Wilson <wilson@tuliptree.org>
12706
12707 * MAINTAINERS: Update my email address.
12708
50ceaba5
DC
127092003-02-21 David Carlton <carlton@math.stanford.edu>
12710
12711 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12712
4c2df51b
DJ
127132003-02-21 Daniel Jacobowitz <drow@mvista.com>
12714
12715 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12716 * symtab.h: Add opaque declarations of struct axs_value and
12717 struct agent_expr.
12718 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12719 (struct location_funcs): New type.
12720 (struct symbol): Add "loc" to aux_value.
12721 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12722 * dwarf2read.c: Include "dwarf2expr.h".
12723 (dwarf2_symbol_mark_computed): New function.
12724 (read_func_scope): Use it.
12725 (var_decode_location): New function.
12726 (new_symbol): Use it.
12727 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12728
12729 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12730 (dwarf2expr_h, dwarf2loc_h): New variables.
12731 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12732 (dwarf2expr.o, dwarf2loc.o): New rules.
12733 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12734 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12735 LOC_COMPUTED_ARG.
12736 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12737 * m2-exp.y (yylex): Likewise.
12738 * printcmd.c (address_info, print_frame_args): Likewise.
12739 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12740 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12741 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12742 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12743 * symtab.c (lookup_block_symbol): Likewise.
12744
5784d15e
AF
127452003-02-20 Adam Fedor <fedor@gnu.org>
12746
12747 * symtab.h: Remove objc_specific struct
12748 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12749 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12750 Have language_objc use cplus_specific struct.
12751
d4cad8db
TT
127522003-02-20 Tom Tromey <tromey@redhat.com>
12753
12754 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12755 TYPE_NAME, when printing a String value. PR java/1075.
12756
2f9a90b4
AF
127572003-02-20 Adam Fedor <fedor@gnu.org>
12758
d38074a8 12759 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12760 * objc-lang.c (find_methods): Make static.
2f9a90b4 12761
6f17862b
CF
127622003-02-20 Christopher Faylor <cgf@redhat.com>
12763
12764 * win32-nat.c (get_image_name): Check return value from
12765 ReadProcessMemory.
12766 (child_xfer_memory): Ditto.
12767
715d1656
AO
127682003-02-20 Alexandre Oliva <aoliva@redhat.com>
12769
12770 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12771 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12772 '${exec_prefix}' (in addition to the expansion thereof) as
12773 relocatable.
12774 * configure: Rebuilt.
12775
b1262a02
DC
127762003-02-20 David Carlton <carlton@math.stanford.edu>
12777
12778 * symtab.c (search_symbols): Revert the search_symbols part of my
12779 2002-12-23 patch. Add comment.
12780
7134143f
DJ
127812002-02-20 Daniel Jacobowitz <drow@mvista.com>
12782
12783 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12784 * dbxread.c (elfstab_build_psymtabs): Don't call
12785 install_minimal_symbols.
12786 (stabsect_build_psymtabs): Likewise.
12787 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12788 earlier.
12789 * somread.c (som_symfile_read): Call install_minimal_symbols
12790 and do_cleanups earlier.
12791 * nlmread.c (nlm_symfile_read): Likewise.
12792 * mdebugread.c (elfmdebug_build_psymtabs): Call
12793 install_minimal_symbols and make appropriate cleanups.
12794
cf466558
KB
127952003-02-20 Kevin Buettner <kevinb@redhat.com>
12796
12797 * solib.c (reload_shared_libraries): New function.
12798 (_initialize_solib): Add callbacks for ``set solib-search-path''
12799 and ``set solib-absolute-prefix''.
12800
de5ad195
DC
128012003-02-20 David Carlton <carlton@math.stanford.edu>
12802
12803 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12804 expand comment.
12805 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12806 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12807 * ada-typeprint.c (ada_typedef_print): Ditto.
12808 * ax-gdb.c (gen_var_ref): Ditto.
12809 * breakpoint.c (print_one_breakpoint): Ditto.
12810 * buildsym.c (finish_block): Ditto.
12811 * c-valprint.c (c_val_print): Ditto.
12812 * expprint.c (print_subexp): Ditto.
12813 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12814 * infcmd.c (jump_command): Ditto.
12815 * linespec.c (decode_line_2, decode_compound): Ditto.
12816 * maint.c (maintenance_translate_address): Ditto.
12817 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12818 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12819 Ditto.
8ffd9b1b
AJ
12820 * p-valprint.c (pascal_val_print): Ditto.
12821 * stabsread.c (define_symbol): Ditto.
de5ad195 12822 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12823 (print_frame_arg_vars, return_command): Ditto.
12824 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12825 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12826 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12827 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12828 (rbreak_command): Ditto.
12829 * tracepoint.c (tracepoints_info): Ditto.
12830 * typeprint.c (typedef_print): Ditto.
12831 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12832 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12833 * ada-typeprint.c: Update Copyright.
12834 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12835 * tracepoint.c, cli/cli-cmds.c: Ditto.
12836
f796e4be
KB
128372003-02-20 Kevin Buettner <kevinb@redhat.com>
12838
12839 * frame.c (generic_unwind_get_saved_register): Make non-static.
12840 * frame.h (generic_unwind_get_saved_register): Declare.
12841 * mips-tdep.c (read_next_frame_reg): Fetch register from
12842 current regcache when frame is NULL.
12843 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12844 that must be NULL.
12845 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12846 instead of frame_register_unwind().
12847
836cc9f4
AC
128482003-02-20 Andrew Cagney <ac131313@redhat.com>
12849
12850 * remote-sim.c (gdbsim_insert_breakpoint)
12851 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12852 code.
12853
501eef12
AC
128542003-02-20 Andrew Cagney <ac131313@redhat.com>
12855
12856 * remote.c (_initialize_remote): Add commands "set/show remote
12857 hardware-watchpoint-limit" and "set/show remote
12858 hardware-breakpoint-limit".
12859 (remote_hw_watchpoint_limit): Initialize to -1.
12860 (remote_hw_breakpoint_limit): Ditto.
12861 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12862
1b6bc7e0
CF
128632003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12864
12865 * coff-pe-read.c: New file - support reading of minimal symbols from a
12866 portable executable using the export table.
12867 * coff-pe-read.h: New file.
12868 * coffread.c: Include coff-pe-read.h.
12869 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12870 debugging symbols found.
12871 * Makefile.in (SFILES): Add coff-pe-read.o.
12872 (coff_pe_read_h): Define.
12873 (COMMON_OBS): Add coff-pe-read.o.
12874 (coffread.o): Add coff_pe_read_h dependency.
12875 (coff-pe-read.o): New target.
12876
fe898f56
DC
128772003-02-19 David Carlton <carlton@math.stanford.edu>
12878
12879 * Makefile.in (SFILES): Add block.c.
12880 (block_h): New.
12881 (COMMON_OBS): Add block.o.
12882 (block.o): New.
12883 (x86-64-tdep.o): Add $(block_h).
12884 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12885 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12886 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12887 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12888 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12889 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12890 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12891 * value.h: Add opaque declaration for struct block.
12892 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12893 * ada-lang.h: Ditto.
12894 * x86-64-tdep.c: #include "block.h"
12895 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12896 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12897 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12898 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12899 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12900 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12901 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12902 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12903 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12904 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12905 * symtab.c (block_function): Ditto.
12906 (contained_in): Ditto.
12907 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12908 block.h. Add opaque declaration for struct block.
12909 * symtab.h: Move block_function and contained_in declarations to
12910 block.h. Add opaque declarations for struct block, struct
12911 blockvector.
12912 (struct block): Move to block.h.
12913 (struct blockvector): Ditto.
12914 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12915 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12916 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12917 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12918 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12919 Ditto.
12920 * block.c: New file.
12921 * block.h: New file.
12922
173345b5
TR
129232003-02-19 Theodore A. Roth <troth@openavr.org>
12924
12925 * avr-tdep.c (avr_extract_return_value): Remove function.
12926 (avr_store_return_value): Remove function.
12927 (avr_extract_struct_value_address): Remove function.
12928 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12929
338ef23d
AC
129302003-02-19 Andrew Cagney <ac131313@redhat.com>
12931
12932 * rs6000-tdep.c: Include "gdb_assert.h".
12933 (registers_e500): Add "acc" and "spefscr".
12934 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12935 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12936 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12937 really is "r0".
12938 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12939
5412f5f3
KS
129402003-02-18 Keith Seitz <keiths@redhat.com>
12941
12942 * Makefile.in: Add gdbtk-interps.c.
12943
881324eb
KB
129442003-02-18 Kevin Buettner <kevinb@redhat.com>
12945
12946 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12947 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12948
6a2f5abf
AC
129492003-02-18 Andrew Cagney <cagney@redhat.com>
12950
12951 * symtab.h (struct objfile): Add opaque declaration.
12952
54c7009d
EZ
129532003-02-18 Elena Zannoni <ezannoni@redhat.com>
12954
12955 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12956 * dbxread.c (process_one_symbol): Use last_function_start rather
12957 than function_start_offset to find the real beginning of the
12958 current function. The latter is just the text section offset on
12959 some systems, the former is always the real function start.
54c7009d 12960
7ee6d7eb
AC
129612003-02-17 Andrew Cagney <cagney@redhat.com>
12962
12963 * configure.in: Revert ${target} != ${host}.
12964
2846da9b
AC
129652003-02-17 Andrew Cagney <ac131313@redhat.com>
12966
12967 * configure.in (Makefile): Use the test ${target} != ${host},
12968 instead of the absence of the "nm.h" file, to determine of the
12969 configuration non-native.
12970 * configure: Regenerate.
8ffd9b1b 12971
3b27aeea
EZ
129722003-02-14 Elena Zannoni <ezannoni@redhat.com>
12973
fbe586ae 12974 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12975
12976 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12977 conditionalize tui_active test.
12978 (lookup_cmd_1): Ditto.
12979
b0b1c2c0
MK
129802003-02-14 Mark Kettenis <kettenis@gnu.org>
12981
12982 * configure.in: Add check for _etext.
12983 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12984 available.
12985 * config.in, configure: regenerated.
12986
8f05cde5
DJ
129872003-02-14 Daniel Jacobowitz <drow@mvista.com>
12988
12989 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12990
021e7609
AC
129912003-02-14 Andrew Cagney <ac131313@redhat.com>
12992
12993 * main.c (tui_version): Delete variable.
12994 (captured_main): When --tui, set interpreter_p to "tui" instead of
12995 enabling tui_version.
12996 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12997 tui_version.
12998 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12999 * cli/cli-cmds.c (disassemble_command): Ditto.
13000 * defs.h (tui_version): Delete declaration.
13001 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13002 (tui-interp.o): Add rules.
13003 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13004
e325dcec
CF
130052003-02-14 Christopher Faylor <cgf@redhat.com>
13006
36ffb041 13007 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13008 just-loaded dll.
13009
c4f90d87
JM
130102003-02-12 Jason Molenda (jmolenda@apple.com)
13011
fbe586ae
RH
13012 * symmisc.c (print_objfile_statistics): Include information about
13013 the number of psymtabs and symtabs in each object file.
c4f90d87 13014
e46e5ccd
KS
130152003-02-13 Keith R Seitz <keiths@redhat.com>
13016
13017 * main.h (struct captured_main_args): Add interpreter_p.
13018 * main.c (captured_main): Initialize interpreter_p from context.
13019 * gdb.c (main): Set interpreter_p argument.
13020 * Makefile.in (gdb.o): Add dependency for interps.h.
13021
fe97fe9c
AC
130222003-02-12 Andrew Cagney <ac131313@redhat.com>
13023
13024 * event-top.c (cli_command_loop): Delete declaration.
13025 (_initialize_event_loop): Delete function setting event_loop_hook.
13026 * event-top.h (cli_command_loop): Declare. Update copyright.
13027 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13028 * interps.c (current_interp_command_loop): When event_loop_p, call
13029 cli_command_loop.
13030
1cdac4ef
AC
130312003-02-12 Andrew Cagney <ac131313@redhat.com>
13032
13033 * interps.h (interp_command_loop_ftype): Change return type to
13034 void.
13035
48037ead
ML
130362003-02-12 Michal Ludvig <mludvig@suse.cz>
13037
13038 * x86-64-tdep.c (x86_64_extract_return_value)
13039 (x86_64_store_return_value): Use regcache instead of regbuf.
13040 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13041 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13042
033afc63
AC
130432003-02-11 Andrew Cagney <ac131313@redhat.com>
13044
13045 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13046 * aclocal.m4: Regenerate.
13047 * configure: Regenerate.
13048
13049 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13050 TCL_LD_SEARCH_FLAGS.
13051
40d02bca
ML
130522003-02-10 Michal Ludvig <mludvig@suse.cz>
13053
13054 * dwarf2cfi.c: Reindented.
13055
11308a41
AC
130562003-02-09 Andrew Cagney <ac131313@redhat.com>
13057
13058 * interps.c (clear_interpreter_hooks): Convert function definition
13059 to ISO C.
13060
e1c1c0f6
DC
130612003-02-07 David Carlton <carlton@math.stanford.edu>
13062
13063 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13064
ab5d3da6
KB
130652003-02-07 Kevin Buettner <kevinb@redhat.com>
13066
13067 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13068 (struct type): ...to here.
13069 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13070 field.
13071 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13072 (replace_type): Set length on all type variants for a given type.
13073
b8a92b82
AC
130742003-02-07 Andrew Cagney <ac131313@redhat.com>
13075
13076 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13077 <sys/stat.h>.
13078 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13079
5cb316ef
AC
130802003-02-06 Andrew Cagney <ac131313@redhat.com>
13081
2555fe1a
AC
13082 * Makefile.in (symm-nat.o): Update dependencies.
13083 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13084 (lynx-nat.o, ia64-linux-nat.): Ditto.
13085 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13086 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13087 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13088
44270758
AC
13089 * Makefile.in (inflow_h): Define.
13090 (procfs.o, inflow.o, procfs.o): Update dependencies.
13091 * inftarg.c (child_stop): Delete extern declaration of
13092 inferior_process_group. Include "inflow.h".
13093 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13094 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13095 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13096 (our_process_group, inferior_process_group): Extern declarations.
13097
df8f7274
AC
13098 * procfs.c: Include "gdb_assert.h".
13099
5cb316ef
AC
13100 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13101 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13102 * jv-typeprint.c (java_type_print_base): Ditto.
13103 * typeprint.c (typedef_print): Eliminate STREQ.
13104 * cli/cli-script.c (define_command, define_command): Ditto.
13105 * main.c (captured_main): Ditto.
13106 * values.c (lookup_internalvar): Ditto.
13107 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13108 within `if' conditional.
13109 * linespec.c (decode_line_2): Ditto.
13110 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13111 (bfd_openw_with_cleanup): Ditto.
13112
2a28ccea
MK
131132003-02-07 Mark Kettenis <kettenis@gnu.org>
13114
13115 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13116 legacy_extract_return_value and store_return_value to
13117 legacy_return_value.
13118
786b8124
CF
131192003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13120
13121 * win32-nat.c (get_relocated_section_addrs): New function. Find
13122 section load addresses for symbol handling in relocated DLLs.
13123 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13124
b871e4ec
FF
131252003-02-05 Fred Fish <fnf@intrinsity.com>
13126
13127 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13128 '=' and '!='.
13129 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13130 with '&' and '=='.
13131 (angel_RDI_info): Ditto.
13132 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13133 with '&' and '!='.
13134 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13135
4389a95a 131362003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13137 Keith Seitz <keiths@redhat.com>
13138 Elena Zannoni <ezannoni@redhat.com>
13139 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13140
13141 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13142 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13143 (SUBDIR_MI_OBS): Add "mi-interp.o".
13144 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13145 (SFILES): Add "interps.c".
13146 (COMMON_OBS): Add "interps.o".
13147 (interps_h, mi_main_h): Define.
13148 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13149 (mi-main.o, main.o, event-top.o): Update dependencies.
13150 * cli/cli-interp.c: New file.
13151 * interps.h, interps.c: New files.
13152 * top.c: (gdb_init): Don't install the default interpreter, handed
13153 by captured_main.
13154 * main.c: Include "interps.h".
13155 (interpreter_p): Note that it should malloc'ed.
13156 (captured_command_loop): Call current_interp_command_loop.
13157 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13158 xfree and xstrdup when updating interpreter_p. Install the
13159 default interpreter. Add hack to stop mi1's copyright notice
13160 being encoded.
13161 * event-top.h (gdb_setup_readline): Declare.
13162 (gdb_disable_readline): Declare.
13163 * event-top.c: Include "interps.h".
13164 (display_gdb_prompt): Call current_interp_display_prompt_p.
13165 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13166 gdb_stdlog, and gdb_stdtarg.
13167 (_initialize_event_loop): Don't call gdb_setup_readline.
13168 * cli-out.c (cli_out_set_stream): New function.
13169 * cli-out.h (cli_out_set_stream): Declare.
13170
ff3b5810
MK
131712003-02-06 Mark Kettenis <kettenis@gnu.org>
13172
13173 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13174 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13175 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13176 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13177 config/i386/i386v42mp.mt: Removed.
13178
5b729aa5
MK
131792003-02-05 Mark Kettenis <kettenis@gnu.org>
13180
13181 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13182 GDB_OSABI_SOLARIS.
13183
8cc15142
MC
131842003-02-05 Michael Chastain <mec@shout.net>
13185
13186 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13187 2.12.1 and earlier versions.
13188
5aa5d4b9
AC
131892003-02-05 Andrew Cagney <ac131313@redhat.com>
13190
13191 Remove orphaned hosts, targets and files.
13192 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13193 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13194 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13195 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13196 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13197 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13198 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13199 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13200 * config/sparc/tm-sp64sim.h: Delete.
13201 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13202 hosts.
13203 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13204 mips*-dec-mach3* targets.
13205
b68767c1
MC
132062003-02-04 Michael Chastain <mec@shout.net>
13207
13208 * NEWS: Fix typo: sepcifying -> specifying.
13209
5ae7ca1d
MC
132102003-02-04 Michael Chastain <mec@shout.net>
13211
13212 * dwarfread.c: Add documentation on the state of dwarf-1,
13213 looking towards obsoletion.
13214
d08a4280
MC
132152003-02-03 Michael Chastain <mec@shout.net>
13216
13217 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13218 gdb/testsuite/gdb.c++/pr-1023.exp.
13219
e9be73e4
AC
132202003-02-04 Andrew Cagney <ac131313@redhat.com>
13221
13222 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13223 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13224
13225 * utils.c (init_page_info): Delete reference to MPW in comments.
13226 * main.c (captured_main): Delete #ifdef MPW.
13227
05d57f6f
AC
132282003-02-04 Andrew Cagney <ac131313@redhat.com>
13229
8ffd9b1b 13230 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13231 * monitor.c (monitor_expect): Obsolete reference to m32r.
13232 * configure.tgt: Mark m32r-*-elf* as obsolete.
13233 * MAINTAINERS: Mark m32k as obsolete.
13234 * m32r-rom.c: Obsolete file.
13235 * config/m32r/m32r.mt: Obsolete file.
13236 * config/m32r/tm-m32r.h: Obsolete file.
13237 * m32r-stub.c: Obsolete file.
13238 * m32r-tdep.c: Obsolete file.
13239
8b0e5691
AC
132402003-02-04 Andrew Cagney <ac131313@redhat.com>
13241
13242 * NEWS: Mention that the z8k-zilog-none is obsolete.
13243 * MAINTAINERS: Mark z8k as obsolete.
13244 * configure.tgt: Obsolete the z8k-*-coff* target.
13245 * config/z8k/z8k.mt: Obsolete file.
13246 * config/z8k/tm-z8k.h: Obsolete file.
13247 * z8k-tdep.c: Obsolete file.
13248
67f16606
AC
132492003-02-04 Andrew Cagney <ac131313@redhat.com>
13250
13251 * NEWS: Mention that the mn10200-elf is obsolete.
13252 * configure.tgt: Obsolete mn10200-*-* target.
13253 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13254 mention that the mn10200 is obsolete.
13255 * breakpoint.h: Ditto.
13256 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13257 * config/mn10200/mn10200.mt: Obsolete file.
13258 * config/mn10200/tm-mn10200.h: Obsolete file.
13259 * mn10200-tdep.c: Obsolete file.
13260
fd2299bd
AC
132612003-02-04 Andrew Cagney <ac131313@redhat.com>
13262
13263 * MAINTAINERS: Mark h8500 as obsolete.
13264 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13265 * findvar.c (value_from_register): Ditto.
13266 * h8500-tdep.c: Mark file as obsolete.
13267 * config/h8500/h8500.mt: Ditto.
13268 * config/h8500/tm-h8500.h: Ditto.
13269 * NEWS: Mention that h8500 is obsolete.
13270
eb9a305d
DC
132712003-02-04 David Carlton <carlton@math.stanford.edu>
13272
13273 * objfiles.c (allocate_objfile): Always set name. Add comment at
13274 start of function.
13275 * jv-lang.c (get_dynamics_objfile): Add comment.
13276
406fc7fb
DC
132772003-02-04 David Carlton <carlton@math.stanford.edu>
13278
13279 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13280 * printcmd.c (build_address_symbolic): Replace uses of
13281 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13282 SYMBOL_NAME, and asm_demangle.
13283 Update copyright.
13284
93d91629
DC
132852003-02-04 David Carlton <carlton@math.stanford.edu>
13286
13287 * linespec.c (decode_compound): Extract code into
13288 lookup_prefix_sym.
13289 (lookup_prefix_sym): New function.
13290
1c5cb38e
DC
132912003-02-04 David Carlton <carlton@math.stanford.edu>
13292
13293 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13294 FLOAT_COERCION_BADNESS.
13295 * gdbtypes.c (rank_one_type): Replace all uses of
13296 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13297
0cf824c9
JB
132982003-02-04 Jim Blandy <jimb@redhat.com>
13299
13300 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13301 section, let dwarf_macinfo_section point to it, not
13302 dwarf_loc_section.
13303
a2d356b0
DJ
133042003-02-04 Daniel Jacobowitz <drow@mvista.com>
13305
13306 Pointed out by Anton Blanchard <anton@samba.org>.
13307 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13308 (ppc_linux_at_sigtramp_return_path): Use it.
13309
2de7ced7
DJ
133102003-02-04 Daniel Jacobowitz <drow@mvista.com>
13311
13312 * defs.h (streq): Add prototype.
13313 * utils.c (streq): New function.
13314
13315 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13316 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13317 * mdebugread.c (new_symbol): Likewise.
13318 * stabsread.c (define_symbol): Likewise.
13319 * coffread.c (process_coff_symbol): Likewise.
13320 * dwarfread.c (new_symbol): Likewise.
13321
13322 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13323 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13324 here.
13325 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13326 SYMBOL_INIT_DEMANGLED_NAME.
13327 * objfiles.c: Include "hashtab.h".
13328 (allocate_objfile): Call htab_set_functions_ex for the
13329 demangled_names_hash.
13330 (free_objfile): Call htab_delete for the demangled_names_hash.
13331 * objfiles.h (struct htab): Add declaration.
13332 (struct objfile): Add demangled_names_hash.
13333 * symfile.c: Include "hashtab.h".
13334 (reread_symbols): Call htab_delete for the demangled_names_hash.
13335 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13336 SYMBOL_NAME in the bcache.
13337 * symtab.c: Include "hashtab.h". Update comments.
13338 (create_demangled_names_hash, symbol_set_names): New functions.
13339 (symbol_find_demangled_name): New function, broken out from
13340 symbol_init_demangled_names.
13341 (symbol_init_demangled_names): Use it.
13342 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13343 (SYMBOL_SET_NAMES): New macro.
13344 (symbol_set_names): Add prototype.
13345
15831452
JB
133462003-02-03 Jim Blandy <jimb@redhat.com>
13347
13348 Use a single, consistent representation for an empty minimal
13349 symbol table in an objfile.
13350 * objfiles.c (terminate_minimal_symbol_table): New function.
13351 (allocate_objfile): Call it.
13352 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13353 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13354 non-NULL.
15831452
JB
13355 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13356 objfile has minimal symbols, compare minimal_symbol_count to zero,
13357 instead of comparing msymbols with NULL.
13358 * objfiles.c (have_minimal_symbols): Same.
13359 * solib-sunos.c (solib_add_common_symbols): Call
13360 terminate_minimal_symbol_table.
13361 * symfile.c (reread_symbols): Same.
8ffd9b1b 13362
ffc65945
KB
133632003-02-03 Kevin Buettner <kevinb@redhat.com>
13364
13365 * s390-tdep.c (s390_address_class_type_flags)
13366 (s390_address_class_type_flags_to_name)
13367 (s390_address_class_name_to_type_flags): New functions.
13368 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13369 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13370
f211c6d4
MS
133712003-02-03 Michael Snyder <msnyder@redhat.com>
13372
13373 * arm-tdep.c: Fix spell-o in comment.
13374
659b0389
ML
133752003-02-03 Michal Ludvig <mludvig@suse.cz>
13376
13377 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13378 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13379 error messages to contain BFD filename.
659b0389 13380
3b31d625
EZ
133812003-02-02 Elena Zannoni <ezannoni@redhat.com>
13382
997b089a 13383 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13384 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13385 (do_mixed_source_and_assembly): Use
13386 make_cleanup_ui_out_tuple_begin_end and
13387 make_cleanup_ui_out_tuple_begin_end.
13388 (do_mixed_source_and_assembly): Ditto.
13389 * thread.c (do_captured_list_thread_ids): Ditto.
13390 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13391 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13392 ui_out_tuple_end): Delete prototypes.
13393 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13394 ui_out_list_end, ui_out_tuple_end): Delete.
13395
13396 From Kevin Buettner <kevinb@redhat.com>:
13397 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13398 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13399 (do_cleanup_table_end): New functions.
13400 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13401 Use cleanups to invoke_ui_out_tuple_end().
13402 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13403 * cli/cli-setshow.c (cmd_show_list): Use
13404 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13405
5b181d62
AC
134062003-02-02 Andrew Cagney <ac131313@redhat.com>
13407
13408 * frame.c (frame_unwind_register): New function.
13409 (frame_unwind_unsigned_register): Use.
13410 (frame_unwind_signed_register): Use.
13411 (frame_read_register): New function.
13412 * frame.h (frame_unwind_register): Declare.
13413 (frame_read_register): Declare.
13414
13415 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13416 and frame_unwind_register instead of read_memory, write_register
13417 and deprecated_write_register_bytes.
13418
5f601589
AC
134192003-02-02 Andrew Cagney <ac131313@redhat.com>
13420
13421 * frame.h: Note that namelen can be negative.
13422 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13423 NAME's length.
13424
13425 * NEWS: Mention that the d10v's `regs' command is deprecated.
13426 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13427 (d10v_print_registers_info): New function.
13428 (show_regs): Call d10v_print_registers_info.
13429 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13430
6a3fe0a4
MK
134312003-02-02 Mark Kettenis <kettenis@gnu.org>
13432
13433 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13434 lost in the previous patch.
13435
075559bc
AC
134362003-02-01 Andrew Cagney <ac131313@redhat.com>
13437
13438 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13439 * stack.c (print_frame_info_base): Output complete FRAME tuple
13440 for synthesized frames.
075559bc 13441
6789195b
AC
134422003-02-02 Andrew Cagney <ac131313@redhat.com>
13443
13444 * mips-nat.c (zerobuf): Delete.
13445 (fetch_inferior_registers): Alloc local zerobuf.
13446 (fetch_core_registers): Alloc local zerobuf.
13447 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13448 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13449 * thread-db.c (thread_db_store_registers): Ditto.
13450 * sh-tdep.c (sh_do_register): Ditto.
13451 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13452 * remote-sim.c (gdbsim_store_register): Ditto.
13453 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13454 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13455 * monitor.c (monitor_supply_register): Ditto.
13456 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13457 * mips-nat.c (fetch_inferior_registers): Ditto.
13458 * m68klinux-nat.c (fetch_register): Ditto.
13459 * lynx-nat.c (fetch_inferior_registers): Ditto.
13460 (fetch_inferior_registers): Ditto.
13461 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13462 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13463 (hpux_thread_store_registers): Ditto.
13464 * hppah-nat.c (fetch_register): Ditto.
13465 * hppab-nat.c (fetch_register): Ditto.
13466 * hppa-tdep.c (pa_register_look_aside): Ditto.
13467 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13468 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13469
e669114a
AC
134702003-02-01 Andrew Cagney <ac131313@redhat.com>
13471
13472 * gdbarch.sh: Explictly specify all method levels. When a
13473 variable with an empty level, provide a non-multi-arch default.
13474 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13475 * gdbarch.h: Re-generate.
13476 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13477 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13478
9a043c1d
AC
134792003-02-01 Andrew Cagney <ac131313@redhat.com>
13480
13481 * defs.h (host_pointer_to_address): Delete declaration.
13482 (address_to_host_pointer): Delete declaration.
13483 * utils.c (host_pointer_to_address): Delete function.
13484 (address_to_host_pointer): Delete function.
13485 * procfs.c (procfs_address_to_host_pointer): New function.
13486 * procfs.c (proc_set_watchpoint): Use.
13487 (procfs_can_use_hw_breakpoint): Update comments.
13488 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13489 (som_solib_add): Use.
13490 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13491 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13492
7ca9f392
AC
134932003-02-01 Andrew Cagney <ac131313@redhat.com>
13494
94bbfd30
AC
13495 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13496 strlen d_name.
13497
7ca9f392
AC
13498 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13499 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13500 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13501 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13502 (define_symbol): Update.
13503 * symfile.c (generic_load): Remove references to nindy.
13504 * symtab.c: Remove references to nindy.
13505
31a85ea2
AC
135062003-02-01 Andrew Cagney <ac131313@redhat.com>
13507
13508 * infcmd.c (print_float_info): Delete code conditional on
13509 FLOAT_INFO.
13510 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13511 * config/m68k/nm-apollo68b.h: Ditto.
13512 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13513 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13514 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13515
f6e85fc8
MK
135162003-02-01 Mark Kettenis <kettenis@gnu.org>
13517
6015b6a0
MK
13518 * config/i386/tm-i386os9k.h: Removed.
13519
f7a30bdf
MK
13520 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13521 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13522 they're identical to i[3456]86-*-sysv* now.
13523 * config/i386/i386v32.mh: Removed.
13524 * config/i386/xm-i386v32.h: Removed.
13525 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13526
28d52111
MK
13527 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13528
4d3f6bce
MK
13529 * config/i386/i386dgux.mh: Removed.
13530 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13531
f6e85fc8
MK
13532 * configure.in: Fix typo.
13533 * configure: Regenerated.
13534
53955967
DC
135352003-01-31 David Carlton <carlton@math.stanford.edu>
13536
13537 * dwarf2read.c (dwarf2_locate_sections): Set
13538 dwarf_ranges_section.
13539
b1364885
AC
135402003-01-31 Andrew Cagney <ac131313@redhat.com>
13541
8dbb1c65
AC
13542 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13543 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13544
8731e58e
AC
13545 * utils.c: Re-indent.
13546
b1364885
AC
13547 * config/djgpp/fnchange.lst: Delete nindy files.
13548 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13549 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13550 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13551 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13552 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13553 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13554 * Makefile.in (init.c): Remove nindy references.
13555 (saber_gdb): Delete rule.
13556 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13557 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13558 and a68v-nat.c.
13559 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13560 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13561 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13562 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13563 nindy-share/stop.h.
13564 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13565 * saber.suppress: Delete file.
13566
086df311
DJ
135672003-01-31 Daniel Jacobowitz <drow@mvista.com>
13568
13569 * dbxread.c (stabs_data): New static variable.
13570 (fill_symbuf): Support an in-memory buffer for stabs data.
13571 (stabs_seek): New function.
13572 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13573 (read_ofile_symtab): Use stabs_seek.
13574 (elfstab_build_psymtabs): Take an asection* instead of
13575 an offset and size. Relocate the stabs data if necessary.
13576 Save the section* for dbx_psymtab_to_symtab.
13577 * dwarf2read.c: Add section variables for each debug section.
13578 (dwarf2_locate_sections): Fill them in.
13579 (dwarf2_read_section): Take an asection* argument.
13580 Relocate the section contents if necessary.
13581 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13582 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13583 it to dwarf2_read_section.
13584 (dwarf2_build_frame_info): Update callers.
13585 * elfread.c (elf_symfile_read): Update call to
13586 elfstab_build_psymtabs.
13587 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13588 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13589 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13590 * symfile.c (symfile_dummy_outputs): New function.
13591 (symfile_relocate_debug_section): New function.
13592 * symfile.h (symfile_relocate_debug_section): Add prototype.
13593
87d1b352
RH
135942003-01-31 Richard Henderson <rth@redhat.com>
13595
13596 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13597 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13598 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13599 * alpha-tdep.c (alpha_register_name): Add "unique".
13600 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13601 (ALPHA_UNIQUE_REGNUM): New.
13602 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13603
c48861fb
AC
136042003-01-31 Andrew Cagney <ac131313@redhat.com>
13605
13606 * README: Remove reference to Ericsson 1800 monitor.
13607 * Makefile.in (remote-es.o): Delete rule.
13608 (ALLDEPFILES): Delete remote-es.c.
13609 * remote-es.c: Delete file.
13610 * config/m68k/es1800.mt: Delete file.
13611 * config/djgpp/fnchange.lst: Update.
13612 * configure.tgt: Delete m68*-ericsson-* target.
13613
d764a824
AF
136142003-01-31 Adam Fedor <fedor@gnu.org>
13615
13616 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13617 Remove duplicate/shadowing variable of same name.
13618
fe36c4f4
JB
136192003-01-30 Jim Blandy <jimb@redhat.com>
13620
13621 * symfile.c (find_separate_debug_file): Assert that the objfile's
13622 directory name we compute ends with a slash, and then assume that
13623 that's so everywhere we use it.
13624
cb741690
DJ
136252003-01-30 Daniel Jacobowitz <drow@mvista.com>
13626
13627 * valops.c (value_assign): Flush frame cache after stores to memory
13628 also.
13629
96ee5227
AC
136302003-01-30 Andrew Cagney <ac131313@redhat.com>
13631
13632 * Makefile.in (mon960-rom.o): Delete rule.
13633 * mon960-rom.c: Delete file.
13634
7f6104a9
AC
136352003-01-30 Andrew Cagney <ac131313@redhat.com>
13636
13637 * d10v-tdep.c: Include "frame-unwind.h".
13638 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13639 list.
13640 (next_addr, uses_frame): Delete.
13641 (struct d10v_unwind_cache): Define.
13642 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13643 Use info instead of next_addr and uses_frame globals.
13644 (d10v_frame_init_saved_regs): Delete function.
13645 (d10v_init_extra_frame_info): Delete function.
13646 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13647 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13648 init_frame_pc or frame_saved_pc.
13649 (d10v_pop_frame): Delete function.
13650 (do_d10v_pop_frame): Delete function.
13651 (d10v_frame_chain): Delete function.
13652 (d10v_frame_chain_valid): Delete function.
13653 (d10v_frame_pc_unwind): New function.
13654 (d10v_frame_id_unwind): New function.
13655 (saved_regs_unwinder): New function.
13656 (d10v_frame_register_unwind): New function.
13657 (d10v_frame_pop): New function.
13658 (d10v_frame_unwind): New variable.
13659 (d10v_frame_p): New function.
13660 (d10v_frame_saved_pc): Delete function.
13661 * Makefile.in (d10v-tdep.o): Update dependencies.
13662
cad2e848
JB
136632003-01-30 J. Brobecker <brobecker@gnat.com>
13664
13665 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13666 causing some regressions due to a change in the default value
13667 for this macro.
13668
af34e669
DJ
136692003-01-29 Richard Henderson <rth@redhat.com>
13670 Elena Zannoni <ezannoni@redhat.com>
13671 Daniel Jacobowitz <drow@mvista.com>
13672
13673 Fix PR gdb/961.
8ffd9b1b 13674 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13675 variables.
13676 (RANGES_SECTION): New.
13677 (dwarf_ranges_buffer): New variable.
13678 (struct comp_unit_head): Add member "die".
13679 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13680 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13681 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13682 (dwarf2_locate_sections): Likewise.
13683 (dwarf2_build_psymtabs): Read .debug_ranges.
13684 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13685 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13686 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13687 Look for DW_AT_ranges and return the bounding box.
13688
baa93fa6
CF
136892003-01-29 Brian Ford <ford@vss.fsi.com>
13690
13691 * win32-nat.c (cygwin_pid): Removed as unused.
13692 (child_attach): Try fall back to Cygwin pid.
13693
c63f977f
JB
136942003-01-29 Jim Blandy <jimb@redhat.com>
13695
13696 * objfiles.h (struct objfile): Doc fix.
13697
d62d1979
AC
136982003-01-29 Andrew Cagney <ac131313@redhat.com>
13699
13700 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13701 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13702 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13703 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13704 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13705 (FRAME_SAVED_PC): Change to a function with predicate.
13706 * gdbarch.h, gdbarch.c: Re-generate.
13707
1ae18a04
AC
137082003-01-28 Andrew Cagney <ac131313@redhat.com>
13709
52287340
AC
13710 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13711
1ae18a04
AC
13712 * complaints.c (complain): Delete function.
13713 * complaints.h (struct deprecated_complaint): Delete definition.
13714 (complain): Delete declaration.
13715
f2c16bd6
KB
137162003-01-28 Kevin Buettner <kevinb@redhat.com>
13717
13718 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13719 dummy frames.
13720
a94dd1fd
AC
137212003-01-27 Andrew Cagney <ac131313@redhat.com>
13722
13723 * sentinel-frame.h, sentinel-frame.c: New files.
13724 * Makefile.in (frame.o): Update dependencies.
13725 (SFILES): Add sentinel-frame.c.
13726 (sentinel_frame_h): Define.
13727 (COMMON_OBS): Add sentinel-frame.o.
13728 (sentinel-frame.o): Specify dependencies.
13729 * frame.c: Include "sentinel-frame.h".
13730 (frame_register_unwind): Rewrite assuming that there is always a a
13731 ->next frame.
13732 (frame_register, generic_unwind_get_saved_register): Ditto.
13733 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13734 (create_sentinel_frame, unwind_to_current_frame): New functions.
13735 (get_current_frame): Rewrite using create_sentinel_frame and
13736 unwind_to_current_frame. When possible, always create a frame.
13737 (create_new_frame): Set next to the sentinel frame.
13738 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13739 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13740 ID cache when necessary.
13741 (frame_saved_regs_id_unwind): Use frame_relative_level.
13742 (deprecated_generic_get_saved_register): Use frame_relative_level,
13743 get_frame_saved_regs, get_frame_pc, get_frame_base and
13744 get_next_frame.
13745 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13746 frame_register.
13747
5378adc4
DJ
137482003-01-27 Daniel Jacobowitz <drow@mvista.com>
13749
13750 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13751
51ee2ddc
DJ
137522003-01-27 Daniel Jacobowitz <drow@mvista.com>
13753
13754 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13755 (maintenance_set_profile_cmd): Use error () instead of warning ().
13756
d9feb4e7
DJ
137572003-01-27 Daniel Jacobowitz <drow@mvista.com>
13758
13759 * configure.in: Check that -pg works if using --enable-profiling.
13760 Check for monstartup and _mcleanup regardless of --enable-profiling.
13761 * maint.c: Check for monstartup and _mcleanup before using them.
13762 * config.in: Regenerated.
13763 * configure: Regenerated.
13764
2d188dd3
NC
137652003-01-24 Nick Clifton <nickc@redhat.com>
13766
13767 * Add sh2e support:
13768
13769 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13770
13771 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13772 (sh2e_show_regs): New.
13773 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13774 * config/sh/tm-sh.h: Added sh2e to comments.
13775
cb3c37b2
JB
137762003-01-23 Jim Blandy <jimb@redhat.com>
13777
13778 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13779 symbols found)" message here; we haven't checked for a separate
13780 debug info file yet, so we don't know yet.
13781 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13782 we've looked everywhere. Also, there's no need to print a special
13783 message when we're loading the separate debug info file: the one
13784 symbol_file_add prints is fine.
13785
5b5d99cf
JB
137862003-01-23 Alexander Larsson <alexl@redhat.com>
13787 Jim Blandy <jimb@redhat.com>
13788
13789 Add support for executables whose debug info has been separated
13790 out into a separate file, leaving only a link behind.
13791 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13792 and separate_debug_objfile_backlink.
13793 (put_objfile_before): New declaration.
13794 * symfile.c: #include "filenames.h".
13795 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13796 debug info in a separate file, read that, too. Save the addrs
13797 argument, so we can use it again to read the separated debug info;
13798 syms_from_objfile modifies the table we pass it.
13799 (reread_symbols): After re-reading an objfile, call
13800 reread_separate_symbols to refresh its separate debug info
13801 objfile, if it has one.
13802 (reread_separate_symbols, find_separate_debug_file,
13803 get_debug_link_info, separate_debug_file_exists): New functions.
13804 (debug_file_directory): New global var.
13805 (_initialize_symfile): Initialize debug_file_directory, and
13806 provide the new `set debug-file-directory' command to let the user
13807 change it.
13808 * objfiles.c (free_objfile): If this objfile has its debug info in
13809 a separate objfile, free that one too. If this is itself a
13810 separate debug info objfile, clear our parent's backlink.
13811 (put_objfile_before): New function.
13812 * utils.c (gnu_debuglink_crc32): New function.
13813 * defs.h (gnu_debuglink_crc32): New declaration.
13814 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13815 * configure.in: Handle --with-separate-debug-dir config option.
13816 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13817 * acconfig.h (DEBUGDIR): New macro.
13818 * configure, aclocal.m4, config.in: Regenerated.
13819
7e8580c1
JB
138202003-01-22 Jim Blandy <jimb@redhat.com>
13821
7904e09f
JB
13822 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13823 like the old symbol_file_add, but taking new arguments: you can
13824 now pass in either a `struct section_addr_info' list to say where
13825 each section is loaded, or a `struct section_offsets' table. Pass
13826 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13827 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13828 with the appropriate quiescent values for the new arguments.
13829
7e8580c1
JB
13830 * symfile.c: #include "gdb_assert.h".
13831 (syms_from_objfile): Add the ability to pass in a section offset
13832 table directly, as an alternative to the section_addr_info table.
13833 Document arguments better.
13834 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13835 * symfile.h (syms_from_objfile): Update declaration.
13836 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13837 syms_from_objfile.
13838 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13839
d28f9cdf
DJ
138402003-01-22 Daniel Jacobowitz <drow@mvista.com>
13841
13842 Original patch by Tom Tromey <tromey@cygnus.com> and
13843 Jason Molenda <jmolenda@apple.com>.
13844 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13845 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13846 * NEWS: Mention profiling.
13847 * configure.in (--enable-gdbtk): Fix typo.
13848 (--enable-profiling): New. Set PROFILE_CFLAGS.
13849 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13850 Fill in function.
13851 (profiling_state): New variable.
13852 (mcleanup_wrapper): New function.
13853 (_initialize_maint): Remove NOTYET, fix call to
13854 add_setshow_boolean_cmd for "maint set profile".
13855 * configure: Regenerated.
13856
df21e465
MH
138572003-01-21 Martin M. Hunt <hunt@redhat.com>
13858
13859 * Makefile.in (install-gdbtk): Install PNG images too.
13860
73c1f219
AC
138612003-01-21 Andrew Cagney <ac131313@redhat.com>
13862
13863 * exec.c (text_start): Delete global variable.
13864 (exec_file_attach): Make text_start local to the function.
13865 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13866 * valops.c (hand_function_call): Delete code that handles
13867 BEFORE_TEXT_END and AFTER_TEXT_END.
13868 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13869 of CALL_DUMMY_LOCATION.
13870 * gdbarch.c: Regenerate.
13871 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13872 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13873 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13874 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13875 (text_end): Delete extern declaration.
13876
eb4f72c5
AC
138772003-01-21 Andrew Cagney <ac131313@redhat.com>
13878
13879 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13880 * blockframe.c (backtrace_below_main): Move to "frame.c".
13881 (frame_chain_valid): Delete check for backtrace_below_main.
13882 (_initialize_blockframe): Delete initialization, move ``set
13883 backtrace-below-main'' command to "frame.c".
13884 (do_flush_frames_sfunc): Delete function.
13885 * frame.c: Include "command.h" and "gdbcmd.h".
13886 (frame_type_from_pc): New function.
13887 (create_new_frame): Use frame_type_from_pc.
13888 (legacy_get_prev_frame): New function.
13889 (get_prev_frame): Rewrite. When an old style frame, call
13890 legacy_get_prev_frame. Otherwize, unwind the PC first.
13891 (_initialize_frame): Add ``set backtrace-below-main'' command.
13892 * Makefile.in (frame.o): Update dependencies.
13893
778ce8cc
AC
138942003-01-19 Andrew Cagney <ac131313@redhat.com>
13895
13896 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13897 DEPRECATED_REGISTERS_INFO.
13898
01c193c8
AC
138992003-01-19 Andrew Cagney <ac131313@redhat.com>
13900
13901 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13902 Maintainers'. Update `Various Maintainers'.
13903
dedc2a2b
AC
139042003-01-19 Andrew Cagney <ac131313@redhat.com>
13905
13906 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13907 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13908 Suppress actual parameters when `-'.
13909 * gdbarch.h, gdbarch.c: Regenerate.
13910
b7261c70
AC
139112003-01-19 Andrew Cagney <ac131313@redhat.com>
13912
13913 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13914 code handling dummy frames.
13915
dbe9fe58
AC
139162003-01-19 Andrew Cagney <ac131313@redhat.com>
13917
13918 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13919 (struct frame_unwind): Add field pop.
13920 * frame.h (frame_pop): Declare.
13921 * frame.c (frame_saved_regs_pop): New function.
13922 (trad_frame_unwinder): Add frame_saved_regs_pop.
13923 (frame_pop): New function.
13924 * dummy-frame.c (dummy_frame_pop): New function.
13925 (discard_innermost_dummy): New function.
13926 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13927 (dummy_frame_unwind): Add dummy_frame_pop.
13928 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13929 * valops.c (hand_function_call): Ditto.
13930 * stack.c (return_command): Ditto.
13931
570b8f7c
AC
139322003-01-18 Andrew Cagney <ac131313@redhat.com>
13933
13934 * cris-tdep.c: Fix function declaration indentation.
13935 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13936 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13937 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13938 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13939 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13940 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13941
139422003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13943
13944 * README (Unpacking and Installation -- quick overview):
13945 Warn against ".../gdb-5.3/gdb/configure".
13946
494cca16
AC
139472003-01-18 Andrew Cagney <ac131313@redhat.com>
13948
13949 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13950 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13951 (struct frame_unwind): Declare opaque.
13952 (dummy_frame_p): Declare function.
13953 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13954 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13955 * dummy-frame.c: Include "frame-unwind.h".
13956 (dummy_frame_p): New function.
13957 (dummy_frame_unwind): New variable.
13958 * frame.c: Include "frame-unwind.h".
13959 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13960 to use the new unwind field.
13961 (set_unwind_by_pc): Delete function.
13962 (create_new_frame, get_prev_frame): Set unwind field using
13963 frame_unwind_find_by_pc.
13964 (trad_frame_unwind, trad_frame_unwinder): New variables.
13965 * frame.h (trad_frame_unwind): Declare variable.
13966 (frame_id_unwind_ftype): Delete declaration.
13967 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13968 (struct frame_unwind): Declare opaque.
13969 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13970 register_unwind with a single unwind pointer.
13971 * frame-unwind.h, frame-unwind.c: New files.
13972 * Makefile.in (SFILES): Add frame-unwind.c.
13973 (frame_unwind_h): Define.
13974 (COMMON_OBS): Add frame-unwind.o.
13975 (frame-unwind.o): Specify dependencies.
13976 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13977
4efb68b1
AC
139782003-01-18 Andrew Cagney <ac131313@redhat.com>
13979
13980 * ada-valprint.c: Eliminate PTR.
13981 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13982 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13983 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13984 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13985 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13986 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13987 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13988
a84d24ee
AC
139892003-01-17 Andrew Cagney <ac131313@redhat.com>
13990
762f08a3
AC
13991 * main.c (captured_main): Don't use PTR.
13992 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13993 * gdbtypes.c (lookup_primitive_typename): Ditto.
13994 (lookup_struct_elt_type): Ditto.
13995 * f-valprint.c (info_common_command): Ditto.
13996 (list_all_visible_commons): Ditto.
13997 * jv-typeprint.c (java_type_print_base): Ditto.
13998
a84d24ee
AC
13999 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14000 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14001 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14002 i386-interix-nat.c and i386-interix-tdep.c. Rename
14003 m68klinux-nat.c and m68klinux-tdep.c. Rename
14004 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14005 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14006 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14007 * main.c (captured_main): Use xfree, not free.
14008
c170fb60
AC
140092003-01-16 Andrew Cagney <ac131313@redhat.com>
14010
14011 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14012 ID back using a parameter.
14013 * frame.c (frame_id_unwind): Update call.
14014 (frame_saved_regs_id_unwind): Update.
14015 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14016 * dummy-frame.h (struct frame_id): Add opaque declaration.
14017 (dummy_frame_id_unwind): Update declaration.
14018
867f3898
AC
140192003-01-15 Andrew Cagney <ac131313@redhat.com>
14020
14021 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14022
40622be8 140232003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14024
40622be8 14025 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14026
ae66c1fc
EZ
140272003-01-14 Elena Zannoni <ezannoni@redhat.com>
14028
997b089a 14029 Fix PR gdb/898
ae66c1fc
EZ
14030 * breakpoint.c (until_break_command): Add new argument. Use it to
14031 decide whether to stop only at the current frame or not.
14032 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14033 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14034 call.
14035 (advance_command): New function.
14036 (_initialize_infcmd): Update help string for 'until' command.
14037 Add new 'advance' command.
14038
a04257e6
DC
140392003-01-14 David Carlton <carlton@math.stanford.edu>
14040
14041 * linespec.c (decode_line_1): Normalize comments.
14042 (set_flags): Ditto.
14043 (locate_first_half): Ditto.
14044 (decode_compound): Ditto.
14045 (symtab_from_filename): Ditto.
14046 (decode_all_digits): Ditto.
14047 (decode_dollar): Ditto.
14048 (find_methods): Ditto.
14049 (find_toplevel_char): Ditto.
14050
1bac305b
AC
140512003-01-13 Andrew Cagney <ac131313@redhat.com>
14052
14053 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14054 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14055 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14056 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14057 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14058 * language.c, language.h, m32r-tdep.c: Update copyright.
14059 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14060 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14061 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14062 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14063 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14064 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14065
25caa7a8
EZ
140662003-01-13 Elena Zannoni <ezannoni@redhat.com>
14067
14068 * stabsread.h (process_later, resolve_cfront_continuation):
14069 Obsolete.
14070 Update copyright years.
14071 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14072 Update copyright year.
14073 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14074 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14075 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14076 Update copyright year.
14077 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14078 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14079 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14080 (parse_partial_symbols): Obsolete cfront support.
14081 * stabsread.c
14082 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14083 macros.
14084 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14085 read_cfront_baseclasses, read_cfront_member_functions,
14086 resolve_cfront_continuation,read_cfront_static_fields,
14087 copy_cfront_struct_fields): Obsolete functions.
14088 (define_symbol, read_one_struct_field): Obsolete cfront support.
14089 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14090 Update Copyright year.
14091
7789c6f5
EZ
140922003-01-13 Elena Zannoni <ezannoni@redhat.com>
14093
14094 * stack.c (print_frame_info, print_stack_frame_base_stub,
14095 print_stack_frame_base, show_and_print_stack_frame_stub,
14096 show_and_print_stack_frame, print_only_stack_frame_stub,
14097 print_only_stack_frame): Delete functions.
14098 (print_stack_frame_stub): Call print_frame_info instead of
14099 print_frame_info_base.
14100 (print_frame_info_base): Rename to print_frame_info.
14101 (backtrace_command_1): Call print_frame_info, instead of
14102 print_frame_info_base.
14103 (current_frame_command): Call print_stack_frame, instead of
14104 print_only_stack_frame.
14105 (frame_command): Call print_stack_frame, instead of
14106 show_and_print_stack_frame.
14107 (up_command): Ditto.
14108 (down_command): Ditto.
14109 * frame.h (print_only_stack_frame): Delete prototype.
14110 * infrun.c (normal_stop): Call print_stack_frame, instead of
14111 show_and_print_stack_frame.
14112 * thread.c (info_threads_command): Call print_stack_frame, instead
14113 of print_only_stack_frame.
14114
3f5a3016
AC
141152003-01-13 Andrew Cagney <ac131313@redhat.com>
14116
d99ba314
AC
14117 * README (Graphical interface to GDB): Update URL. Point at
14118 gdb/links/.
14119
3f5a3016
AC
14120 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14121 version match.
14122
083ae935
DJ
141232003-01-13 Daniel Jacobowitz <drow@mvista.com>
14124
14125 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14126 lines.
14127
5365276c
DJ
141282003-01-13 Daniel Jacobowitz <drow@mvista.com>
14129
14130 * thread-db.c (attach_thread): Prototype.
14131 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14132 thread information (ti), and valid flags (th_valid, ti_valid).
14133 (attach_thread): Move target_pid_to_str call to after the thread
14134 is added to GDB's list. Initialize the cache.
14135 (thread_get_info_callback, thread_db_map_id2thr)
14136 (thread_db_get_info): New functions.
14137 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14138 (thread_db_store_registers, thread_db_thread_alive)
14139 (thread_db_get_thread_local_address): Use them.
14140 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14141 of calling error() for threads in unknown state.
14142
14143 (clear_lwpid_callback): New function.
14144 (thread_db_resume): Use it to clear the cache.
14145
9fc30b6b
DJ
141462003-01-13 Daniel Jacobowitz <drow@mvista.com>
14147
14148 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14149 (resume_callback): Remove dead code.
14150
8f871025
AC
141512003-01-13 Andrew Cagney <ac131313@redhat.com>
14152
14153 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14154 predicate.
14155 * gdbarch.h, gdbarch.c: Regenerate.
14156 * stack.c (frame_info): Only initialize the saved registers when
14157 FRAME_INIT_SAVED_REGS_P.
14158 * frame.c (frame_saved_regs_register_unwind): Assert
14159 FRAME_INIT_SAVED_REGS_P.
14160 (deprecated_generic_get_saved_register): Ditto.
14161
3f565f1e
DJ
141622003-01-13 Daniel Jacobowitz <drow@mvista.com>
14163
14164 * source.c (openp): Squelch warning about "filename".
14165
072b1022
DJ
141662003-01-13 Daniel Jacobowitz <drow@mvista.com>
14167
14168 * source.c (openp): If the file does not exist don't necessarily
14169 search the path.
14170
973ccf8b
DJ
141712003-01-13 Daniel Jacobowitz <drow@mvista.com>
14172
14173 Fix PR gdb/872.
14174 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14175 (integer_types_same_name_p): New function.
14176 (rank_one_type): Use it.
14177 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14178
030292b7
DJ
141792003-01-13 Daniel Jacobowitz <drow@mvista.com>
14180
14181 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14182 variables.
14183 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14184 * configure.in: Add --with-sysroot.
14185 * configure: Regenerated.
14186 * main.c (gdb_sysroot): New variable.
14187 (captured_main): Initialize gdb_sysroot.
14188 * defs.h (gdb_sysroot): New extern declaration.
14189 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14190
afb5d334
MC
141912003-01-12 Michael Chastain <mec@shout.net>
14192
14193 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14194
751ceeb4
MC
141952003-01-12 Michael Chastain <mec@shout.net>
14196
14197 * top.c (print_gdb_version): Bump copyright year to 2003.
14198
94cd26f8
DC
141992003-01-12 David Carlton <carlton@bactrian.org>
14200
14201 * linespec.c (symtab_from_filename): Rename variable 's' to
14202 'file_symtab'.
14203
1ce79225
AC
142042003-01-12 Andrew Cagney <ac131313@redhat.com>
14205
14206 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14207 dummy frame.
14208 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14209
fa1fd571
AC
142102003-01-12 Andrew Cagney <ac131313@redhat.com>
14211
14212 * d10v-tdep.c: Include "gdb_assert.h".
14213 (d10v_store_return_value): Rewrite to match current interface.
14214 (d10v_extract_struct_value_address): Ditto.
14215 (d10v_extract_return_value): Ditto.
14216 (d10v_gdbarch_init): Set store_restore_value,
14217 extract_struct_value_address and extract_return_value.
14218
68b8d23e
JB
142192003-01-12 J. Brobecker <brobecker@gnat.com>
14220
14221 * hpread.c (set_namestring): New procedure replacing the
14222 SET_NAMESTRING macro.
14223 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14224 by calls to set_namestring.
14225
142262003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14227
14228 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14229 a compilation warning.
14230 (hpread_process_one_debug_symbol): Likewise.
14231
88d262ca
DC
142322003-01-10 David Carlton <carlton@math.stanford.edu>
14233
14234 * linespec.c (decode_line_1): Rename variable 's' to
14235 'file_symtab'.
14236 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14237 (decode_dollar): Ditto.
14238 (decode_variable): Ditto.
14239 (symbol_found): Ditto.
14240
86669319
MC
142412003-01-09 Michael Chastain <mec@shout.net>
14242
14243 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14244
616a9dc4
CV
142452003-01-07 Corinna Vinschen <vinschen@redhat.com>
14246
14247 * win32-nat.c (set_process_privilege): New function.
14248 (child_attach): Call set_process_privilege() to enable the
14249 SE_DEBUG_NAME user privilege if available in process token.
14250
3269bcfa
JB
142512003-01-10 J. Brobecker <brobecker@gnat.com>
14252
14253 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14254 compilation error in the previous revision.
14255
2b0ee454
DC
142562003-01-09 David Carlton <carlton@math.stanford.edu>
14257
14258 * linespec.c: Update copyright.
14259
b3ba1b44
DJ
142602003-01-09 Daniel Jacobowitz <drow@mvista.com>
14261
14262 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14263 than inferior_ptid.
14264 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14265
4ef3f3be
AC
142662003-01-09 Andrew Cagney <ac131313@redhat.com>
14267
479ab5a0
AC
14268 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14269 Update comments.
14270 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14271 (frame_saved_regs_zalloc): Update.
14272 (frame_saved_regs_register_unwind): Update.
14273 (create_new_frame): Update.
14274 (get_prev_frame): Update.
14275 (frame_extra_info_zalloc): Update.
14276 (deprecated_get_frame_saved_regs): Update.
14277 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14278 * cris-tdep.c: Update comment.
14279
bde58177
AC
14280 * somsolib.h: Fix function indentation.
14281 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14282 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14283 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14284 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14285 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14286
4ef3f3be
AC
14287 * infrun.c (follow_fork): Use ISO C definition.
14288 * expprint.c (print_subexp): Use xfree instead of free.
14289 * charset.c: Include "gdb_string.h" instead of <string.h>.
14290 (register_iconv_charsets): Use ISO C definition.
14291 (host_charset, target_charset): Ditto.
14292 * Makefile.in (charset.o): Update dependencies.
14293 (mi-cmd-env.o): Update dependencies.
14294
1c615f7a
AC
142952003-01-08 Andrew Cagney <cagney@redhat.com>
14296
14297 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14298 get_frame_base.
14299
c9a1dc08
AC
143002003-01-08 Andrew Cagney <ac131313@redhat.com>
14301
14302 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14303 build directories. Save edited gdb output in Mbuild.log. If a
14304 build fails, remove any final GDB executable.
14305
dbad9d94
AC
143062003-01-08 Andrew Cagney <ac131313@redhat.com>
14307
14308 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14309 replacing hex constants with function names and stripping leading
14310 file name directory prefixes.
14311
8d357cca
AC
143122003-01-08 Andrew Cagney <cagney@redhat.com>
14313
14314 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14315 get_frame_base.
14316
bca02a8a
DC
143172003-01-08 David Carlton <carlton@math.stanford.edu>
14318
14319 * linespec.c (decode_line_1): Move code into decode_variable.
14320 (decode_variable): New function.
14321
7f8ab3a0
AC
143222003-01-08 Andrew Cagney <ac131313@redhat.com>
14323
14324 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14325
7b5849cc
AC
143262003-01-08 Andrew Cagney <cagney@redhat.com>
14327
14328 * cris-tdep.c (cris_frame_init_saved_regs): Use
14329 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14330 saved_regs buffer.
14331 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14332 (sh64_nofp_frame_init_saved_regs): Ditto.
14333 (sh_fp_frame_init_saved_regs): Ditto.
14334 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14335 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14336 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14337 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14338
72a5efb3
DJ
143392003-01-08 Daniel Jacobowitz <drow@mvista.com>
14340
14341 * minsyms.c (lookup_minimal_symbol): Update comment.
14342 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14343 (lookup_minimal_symbol_solib_trampoline): Likewise.
14344
11c02a10
AC
143452003-01-08 Andrew Cagney <cagney@redhat.com>
14346
aab3ea25
AC
14347 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14348 frame_relative_level.
14349
da50a4b7
AC
14350 * alpha-tdep.c: Use get_frame_extra_info.
14351 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14352 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14353 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14354 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14355
11c02a10
AC
14356 * alpha-tdep.c: Use get_next_frame.
14357 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14358 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14359 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14360 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14361 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14362 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14363 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14364
1e2330ba
AC
143652003-01-07 Andrew Cagney <cagney@redhat.com>
14366
14367 * alpha-tdep.c: Use get_frame_base.
14368 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14369 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14370 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14371 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14372 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14373 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14374 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14375 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14376
2d75187b
AC
143772003-01-07 Andrew Cagney <cagney@redhat.com>
14378
14379 * frame.c (deprecated_get_frame_context): New function.
14380 (deprecated_set_frame_context): New function.
14381 * frame.h (deprecated_get_frame_context): Declare.
14382 (deprecated_set_frame_context): Declare.
14383 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14384 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14385
483d36b2
AC
143862003-01-07 Andrew Cagney <cagney@redhat.com>
14387
14388 * frame.c (deprecated_set_frame_next_hack): New function.
14389 (deprecated_set_frame_prev_hack): New function.
14390 * frame.h (deprecated_set_frame_next_hack): Declare.
14391 (deprecated_set_frame_prev_hack): Declare.
14392 * mcore-tdep.c (analyze_dummy_frame): Use
14393 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14394 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14395
14e91ac5
DC
143962003-01-07 David Carlton <carlton@math.stanford.edu>
14397
14398 * linespec.c (decode_line_1): Move code into decode_dollar.
14399 (decode_dollar): New function.
14400
b0c6b05c
AC
144012003-01-07 Andrew Cagney <cagney@redhat.com>
14402
14403 * arm-tdep.c (arm_init_extra_frame_info): Use
14404 deprecated_update_frame_base_hack.
14405 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14406 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14407 (fix_frame_pointer): Ditto.
14408 (mn10300_analyze_prologue): Ditto.
14409
a00a19e9
AC
144102003-01-07 Andrew Cagney <cagney@redhat.com>
14411
14412 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14413 extra_info using frame_extra_info_zalloc.
14414 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14415 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14416 (sh64_init_extra_frame_info): Ditto.
14417 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14418 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14419 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14420 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14421 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14422 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14423 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14424 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14425 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14426 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14427 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14428 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14429
14430 * mn10300-tdep.c (analyze_dummy_frame): Use
14431 deprecated_set_frame_extra_info_hack.
14432 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14433
1fb4c65b
JB
144342003-01-07 J. Brobecker <brobecker@gnat.com>
14435
14436 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14437 class is not scText. These do not define "real" procedures.
14438 (parse_partial_symbols): Likewise.
14439
9fe7d6bf
MS
144402003-01-06 Michael Snyder <msnyder@redhat.com>
14441
14442 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14443
f6c609c4
AC
144442003-01-06 Andrew Cagney <ac131313@redhat.com>
14445
14446 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14447 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14448 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14449 deprecated_frame_xmalloc_with_cleanup.
14450 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14451 deprecated_frame_xmalloc.
14452 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14453 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14454
d995ff4b
AC
144552003-01-06 Andrew Cagney <cagney@redhat.com>
14456
84dc46cb
AC
14457 * x86-64-linux-tdep.c: Include "osabi.h".
14458 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14459
d995ff4b
AC
14460 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14461
66140c26
AC
144622003-01-06 Andrew Cagney <cagney@redhat.com>
14463
14464 * MAINTAINERS (Target Instruction Set Architectures): Update
14465 arm-elf. Can be built with -Werror, has been multiarched.
14466
14467 * value.h (unpack_long): Make buffer parameter constant.
14468 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14469 * scm-lang.h (scm_parse): Ditto.
14470 * defs.h (extract_typed_address, extract_address): Ditto.
14471 (extract_long_unsigned_integer): Ditto.
14472 * inferior.h (unsigned_pointer_to_address): Ditto.
14473 (signed_pointer_to_address): Ditto.
14474 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14475 * gdbarch.h, gdbarch.c: Regenerate.
14476 * findvar.c (extract_long_unsigned_integer): Update.
14477 (extract_address): Update.
14478 (extract_typed_address): Update.
14479 (unsigned_pointer_to_address): Update.
14480 * values.c (unpack_long): Update.
14481 (unpack_double): Update.
14482 (unpack_pointer): Update.
14483 (unpack_field_as_long): Update.
14484 * d10v-tdep.c (d10v_pointer_to_address): Update.
14485 * avr-tdep.c (avr_pointer_to_address): Update.
14486 * scm-lang.c (scm_unpack): Update.
14487 * findvar.c (signed_pointer_to_address): Update.
14488
b089b3da
ML
144892003-01-06 Michal Ludvig <mludvig@suse.cz>
14490
8ffd9b1b 14491 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14492 since it is in i386-tdep.c.
14493
aff87235
JB
144942003-01-06 J. Brobecker <brobecker@gnat.com>
14495
14496 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14497 failure introduced in the previous change.
14498
34f5e845
MC
144992003-01-05 Michael Chastain <mec@shout.net>
14500
14501 * README: Remove references to deleted remote-*.c files:
14502 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14503 remote-nrom.c, remote-os9k.c, remote-udi.c.
14504
28bcfd30
MK
145052003-01-05 Mark Kettenis <kettenis@gnu.org>
14506
14507 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14508 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14509 i386_get_longjmp_target.
14510
15a5b3ee
AC
145112003-01-05 Andrew Cagney <ac131313@redhat.com>
14512
14513 * arm-tdep.c (prologue_cache): Change to a pointer.
14514 (_initialize_arm_tdep): Allocate prologue_cache.
14515 (check_prologue_cache): Update.
14516 (save_prologue_cache): Update.
14517 (arm_gdbarch_init): Update.
14518
c263362b
DJ
145192003-01-04 Daniel Jacobowitz <drow@mvista.com>
14520
14521 * stabsread.c (update_method_name_from_physname): Call complaint()
14522 instead of error.
14523
51603483
DJ
145242003-01-04 Daniel Jacobowitz <drow@mvista.com>
14525
14526 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14527 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14528 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14529
14530 * blockframe.c: Include "gdbcmd.h" and "command.h".
14531 (backtrace_below_main): New variable.
14532 (file_frame_chain_valid, func_frame_chain_valid)
14533 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14534 (generic_func_frame_chain_valid): Remove functions.
14535 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14536 (_initialize_blockframe): New function.
14537 * Makefile.in (blockframe.o): Update dependencies.
14538 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14539 comment. Call frame_chain_valid ().
14540 * frame.h: Remove old prototypes. Add prototype for
14541 frame_chain_valid and update comments to match.
14542 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14543 Remove old comment.
14544 * gdbarch.h: Regenerated.
14545 * gdbarch.c: Regenerated.
14546
14547 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14548 set_gdbarch_frame_chain_valid.
14549 * avr-tdep.c (avr_gdbarch_init): Likewise.
14550 * cris-tdep.c (cris_gdbarch_init): Likewise.
14551 * frv-tdep.c (frv_gdbarch_init): Likewise.
14552 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14553 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14554 (i386_nw_init_abi): Likewise.
14555 (i386_gdbarch_init): Likewise.
14556 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14558 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14559 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14560 * mips-tdep.c (mips_gdbarch_init): Likewise.
14561 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14562 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14563 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14564 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14565 * s390-tdep.c (s390_gdbarch_init): Likewise.
14566 * sh-tdep.c (sh_gdbarch_init): Likewise.
14567 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14568 * v850-tdep.c (v850_gdbarch_init): Likewise.
14569 * vax-tdep.c (vax_gdbarch_init): Likewise.
14570 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14571
14572 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14573 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14574 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14575 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14576 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14577 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14578 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14579 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14580
b00a8037
DJ
145812002-01-04 Daniel Jacobowitz <drow@mvista.com>
14582
14583 * Makefile.in (acconfig_h): Remove incorrect macro.
14584 (config_h): Define.
14585 (osabi.o): Update dependencies.
14586 * configure.tgt: Set gdb_osabi based on target triplet.
14587 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14588 * configure: Regenerated.
14589 * config.in: Regenerated.
14590 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14591 (GDB_OSABI_DEFAULT): Define if not already defined.
14592 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14593 (set_osabi_string): New variables.
14594 (gdbarch_register_osabi): Add new OS ABI to
14595 gdb_osabi_available_names.
14596 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14597 (set_osabi, show_osabi): New functions.
14598 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14599
4be87837
DJ
146002003-01-04 Daniel Jacobowitz <drow@mvista.com>
14601
14602 * arch-utils.c (gdbarch_info_init): Set osabi to
14603 GDB_OSABI_UNINITIALIZED.
14604 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14605 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14606 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14607 * gdbarch.c: Regenerated.
14608 * gdbarch.h: Regenerated.
14609 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14610 there's no BFD.
14611 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14612 * osabi.h (enum gdb_osabi): Move to defs.h.
14613 (gdbarch_init_osabi): Update prototype.
14614 * defs.h (enum gdb_osabi): Moved here.
14615 * Makefile.in: Update dependencies.
14616
14617 * alpha-tdep.h: Don't include "osabi.h".
14618 (struct gdbarch_tdep): Remove osabi member.
14619 * alpha-tdep.c: Include "osabi.h".
14620 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14621 iterate over arches. Update call to gdbarch_init_osabi.
14622 (alpha_dump_tdep): Don't dump osabi.
14623 * alpha-linux-tdep.c: Include "osabi.h".
14624 * alpha-osf1-tdep.c: Include "osabi.h".
14625 * alphafbsd-tdep.c: Include "osabi.h".
14626 * alphanbsd-tdep.c: Include "osabi.h".
14627
14628 * arm-tdep.h: Don't include "osabi.h".
14629 (struct gdbarch_tdep): Remove osabi member.
14630 * arm-tdep.c: Include "osabi.h".
14631 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14632 iterate over arches. Update call to gdbarch_init_osabi.
14633 (arm_dump_tdep): Don't dump osabi.
14634 * arm-linux-tdep.c: Include "osabi.h".
14635 * armnbsd-tdep.c: Include "osabi.h".
14636
14637 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14638 Update call to gdbarch_init_osabi.
14639
14640 * i386-tdep.h: Don't include "osabi.h".
14641 (struct gdbarch_tdep): Remove osabi member.
14642 * i386-tdep.c: Include "osabi.h".
14643 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14644 iterate over arches. Update call to gdbarch_init_osabi.
14645 (i386_dump_tdep): Don't dump osabi.
14646 * i386-linux-tdep.c: Include "osabi.h".
14647 * i386-sol2-tdep.c: Include "osabi.h".
14648 * i386bsd-tdep.c: Include "osabi.h".
14649 * i386gnu-tdep.c: Include "osabi.h".
14650 * i386ly-tdep.c: Include "osabi.h".
14651 * i386nbsd-tdep.c: Include "osabi.h".
14652 * i386obsd-tdep.c: Include "osabi.h".
14653
14654 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14655 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14656 check osabi when iterating over arches. Update call to
14657 gdbarch_init_osabi.
14658 (mips_dump_tdep): Don't dump osabi.
14659
14660 * ns32k-tdep.h: Don't include "osabi.h".
14661 (struct gdbarch_tdep): Remove.
14662 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14663 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14664 allocate tdep. Update call to gdbarch_init_osabi.
14665 (ns32k_dump_tdep): Remove.
14666 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14667 * ns32knbsd-tdep.c: Include "osabi.h".
14668
14669 * ppc-tdep.h: Don't include "osabi.h".
14670 (struct gdbarch_tdep): Remove osabi member.
14671 * rs6000-tdep.c: Include "osabi.h".
14672 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14673 osabi when iterating over arches. Update call to
14674 gdbarch_init_osabi.
14675 (rs6000_dump_tdep): Don't dump osabi.
14676 * ppc-linux-tdep.c: Include "osabi.h".
14677 * ppcnbsd-tdep.c: Include "osabi.h".
14678
14679 * sh-tdep.h: Don't include "osabi.h".
14680 (struct gdbarch_tdep): Remove osabi member.
14681 * sh-tdep.c: Include "osabi.h".
14682 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14683 iterate over arches. Update call to gdbarch_init_osabi.
14684 (sh_dump_tdep): Don't dump osabi.
14685 * shnbsd-tdep.c: Include "osabi.h".
14686
14687 * sparc-tdep.c: Include "osabi.h".
14688 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14689 iterate over arches. Update call to gdbarch_init_osabi.
14690 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14691 tdep structure.
14692
14693 * vax-tdep.h: Don't include "osabi.h".
14694 (struct gdbarch_tdep): Remove.
14695 * vax-tdep.c: Include "osabi.h".
14696 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14697 iterate over arches. Don't allocate tdep. Update call
14698 to gdbarch_init_osabi.
14699 (vax_dump_tdep): Remove.
14700 (_initialize_vax_tdep): Update call to gdbarch_register.
14701
a881cf8e
DJ
147022003-01-04 Daniel Jacobowitz <drow@mvista.com>
14703
14704 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14705 entirely.
14706 (breakpoint_re_set_one): Don't fetch the value for a disabled
14707 watchpoint.
14708
1e698235
DJ
147092003-01-04 Daniel Jacobowitz <drow@mvista.com>
14710
14711 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14712 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14713 (COERCE_FLOAT_TO_DOUBLE): Remove.
14714 * gdbarch.c: Regenerate.
14715 * gdbarch.h: Regenerate.
14716 * Makefile.in: Remove value_h from gdbarch_h.
14717 * valops.c (coerce_float_to_double): New variable.
14718 (default_coerce_float_to_double): Remove.
14719 (standard_coerce_float_to_double): Remove.
14720 (value_arg_coerce): Use coerce_float_to_double.
14721 (_initialize_valops): Add "set coerce-float-to-double".
14722 * value.h (default_coerce_float_to_double): Remove prototype.
14723 (standard_coerce_float_to_double): Remove prototype.
14724
14725 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14726 prototyped.
14727 * mdebugread.c (parse_symbol): Likewise.
14728 * stabsread.c (define_symbol): Mark all functions as prototyped.
14729
14730 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14731 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14732 set_gdbarch_coerce_float_to_double.
14733 * arm-tdep.c (arm_gdbarch_init): Likewise.
14734 * frv-tdep.c (frv_gdbarch_init): Likewise.
14735 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14736 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14737 * mips-tdep.c (mips_gdbarch_init): Likewise.
14738 (mips_coerce_float_to_double): Remove.
14739 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14740 (rs6000_coerce_float_to_double): Remove.
14741 * s390-tdep.c (s390_gdbarch_init): Likewise.
14742 * sh-tdep.c (sh_gdbarch_init): Likewise.
14743 (sh_coerce_float_to_double): Remove.
14744 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14745 (sparc_coerce_float_to_double): Remove.
14746 * v850-tdep.c (v850_gdbarch_init): Likewise.
14747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14748 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14749 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14750 (hppa_coerce_float_to_double): Remove prototype.
14751 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14752
f436a26a
DJ
147532003-01-04 Daniel Jacobowitz <drow@mvista.com>
14754
14755 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14756
248f8055
DJ
147572003-01-04 Daniel Jacobowitz <drow@mvista.com>
14758
14759 Suggested by Stewart Brown <sb24@avaya.com>:
14760 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14761 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14762 (c_type_print_varspec_suffix): Likewise.
14763
72cfdc76
MK
147642003-01-04 Mark Kettenis <kettenis@gnu.org>
14765
bfd260bb
MK
14766 * configure.in: Don't set and AC_SUBST SUBDIRS.
14767 * configure: Regenerated.
14768
72cfdc76
MK
14769 * configure.in: Remove code dealing with shared libraries.
14770 * Makefile.in: Remove HLDFLAGS and HLDENV.
14771 * configure: Regenerated.
14772
c8b8a898
AC
147732003-01-04 Andrew Cagney <ac131313@redhat.com>
14774
14775 * frame.c (deprecated_frame_xmalloc): New function.
14776 (deprecated_set_frame_saved_regs_hack): New function.
14777 (deprecated_set_frame_extra_info_hack): New function.
14778 * frame.h (deprecated_frame_xmalloc): Declare.
14779 (deprecated_set_frame_saved_regs_hack): Declare.
14780 (deprecated_set_frame_extra_info_hack): Declare.
14781
14abd0fb
MK
147822003-01-04 Mark Kettenis <kettenis@gnu.org>
14783
8ee53726
MK
14784 * configure.in: Move code that provides the --enable-gdbtk option
14785 right after the code that handles the --enable-tui option, and
14786 polish it somewhat.
14787 * configure: Regenerated.
14788
14abd0fb
MK
14789 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14790 AC_CHECK_FUNCS and remove the old check for pread64.
14791 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14792 * acconfig.h (_GNU_SOURCE): Add.
14793 (HAVE_PREAD64): Remove.
14794 * configure, aclocal.m4, config.in: Regenerated.
14795
b2fb4676
AC
147962003-01-03 Andrew Cagney <ac131313@redhat.com>
14797
14798 * alpha-tdep.c: Use get_frame_saved_regs.
14799 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14800 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14801 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14802 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14803 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14804
8dcde887
MK
148052003-01-03 Mark Kettenis <kettenis@gnu.org>
14806
14807 * configure.in: Remove all use of the SUBDIRS variable; add
14808 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14809 code providing the --enable-multi-ice option, and move it right in
14810 front of the code that checks whether gdbserver is supported.
14811 Polish that too.
14812 * configure: Regenerated.
14813 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14814 @SUBDIRS@.
14815
8ccd593b
AC
148162003-01-03 Andrew Cagney <cagney@redhat.com>
14817
14818 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14819 * avr-tdep.c, cris-tdep.c: Ditto.
14820 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14821 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14822
91151a06
MK
148232003-01-03 Mark Kettenis <kettenis@gnu.org>
14824
14825 * configure.in: Remove --enable-netrom option.
14826 * configure: Regenerated.
14827
8fe84d01
MK
148282003-01-03 Mark Kettenis <kettenis@gnu.org>
14829
14830 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14831 declaration for `struct re_pattern_buffer' instead.
14832 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14833
f0394be6
JB
148342003-01-03 J. Brobecker <brobecker@gnat.com>
14835
14836 * mdebugread.c (parse_symbol): Count until the stEnd matching
14837 the structure name.
14838
27e9bf90
MK
148392003-01-02 Mark Kettenis <kettenis@gnu.org>
14840
93d331ba
MK
14841 * configure.in: Remove --with-cpu option.
14842 subscripts. Remove evil changequotes here.
14843 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14844 * config.in, configure: Regenerated.
8ffd9b1b 14845
27e9bf90
MK
14846 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14847 * configure.in: Cleanup section that sources GDB and BFD configure
14848 subscripts. Remove evil changequotes here.
14849 * config.in, configure: Regenerated.
14850
50abf9e5
AC
148512003-01-02 Andrew Cagney <ac131313@redhat.com>
14852
14853 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14854 frame accessor methods.
14855 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14856 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14857 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14858 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14859 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14860 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14861 * z8k-tdep.c: Ditto.
8ffd9b1b 14862
287c1a40
MK
148632003-01-02 Mark Kettenis <kettenis@gnu.org>
14864
f5dbc56d
MK
14865 * configure.in: Remove UI_OUT configuration code.
14866 * ada-lang.c: Update assuming UI_OUT is always true.
14867 * Makefile.in (UIOUT_CFLAGS): Remove.
14868 * configure: Regenerated.
14869 * TODO: Remove blurb about elimination of -DUI_OUT.
14870
627af7ea
MK
14871 * configure.in: Move code that provides the --enable-gdbcli,
14872 --enable-gdbmi options right before the code that handles the
14873 --enable-tui option. Polish a bit.
14874 * configure: Regenerated.
14875
06825bd1
MK
14876 * configure.in: Rewrite check for GNU regex and the
14877 --without-included regex option, and move it into the "Checks for
14878 library functions" section. This makes us use the system regex
14879 again by default on systems with version 2 of the GNU C library.
14880 This was apparently broken.
14881 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14882 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14883 * config.in, configure: Regenerated.
14884
287c1a40
MK
14885 * configure.in: Move code that provides the --enable-tui option
14886 before the "Checks for libraries" section. Polish the code
14887 somewhat and set need_curses to yes if we build the TUI. Rewrite
14888 code that looks for a library providing termcap functionality to
14889 match more closely what's done in the Readline library, and move
14890 it into to the "Checks for libraries" section.
14891 * configure: Regenerated.
14892 * Makefile.in (TERMCAP): Remove variable.
14893 * config/i386/go32.mh (TERMCAP): Remove variable.
14894
684e56bf
AC
148952003-01-02 Andrew Cagney <ac131313@redhat.com>
14896
14897 * MAINTAINERS: Mention gdb_mbuild.sh.
14898 * gdb_mbuild.sh: Rewrite.
14899
e1ea1d75
MK
149002003-01-02 Mark Kettenis <kettenis@gnu.org>
14901
14902 * configure.in: Fix typo in last change.
14903 * config.in, configure: Regenerated.
14904
1b831c93
AC
149052003-01-02 Andrew Cagney <ac131313@redhat.com>
14906
14907 * valarith.c (value_binop): Delete obsolete code and comments.
14908 * configure.host: Ditto.
14909 * buildsym.h (make_blockvector): Ditto.
14910 * buildsym.c (make_blockvector): Ditto.
14911 * defs.h (enum language): Ditto.
14912 (chill_demangle): Ditto.
14913 * elfread.c (elf_symtab_read): Ditto.
14914 * dwarfread.c (CHILL_PRODUCER): Ditto.
14915 (set_cu_language): Ditto.
14916 (handle_producer): Ditto.
14917 * expprint.c (print_subexp): Ditto.
14918 * gdbtypes.c (chill_varying_type): Ditto.
14919 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14920 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14921 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14922 (chill_varying_type): Ditto.
14923 * language.h (_LANG_chill): Ditto.
14924 * language.c (binop_result_type, integral_type): Ditto.
14925 (character_type, string_type, structured_type): Ditto.
14926 (lang_bool_type, binop_type_check): Ditto.
14927 * stabsread.h (os9k_stabs): Ditto.
14928 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14929 (define_symbol, read_type, read_struct_fields): Ditto.
14930 (read_array_type, read_enum_type, read_huge_number): Ditto.
14931 (read_range_type, start_stabs): Ditto.
14932 * symfile.c (init_filename_language_table): Ditto.
14933 (add_psymbol_with_dem_name_to_list): Ditto.
14934 * symtab.c (symbol_init_language_specific): Ditto.
14935 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14936 * symtab.h (struct general_symbol_info): Ditto.
14937 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14938 * typeprint.c (typedef_print): Ditto.
14939 * utils.c (fprintf_symbol_filtered): Ditto.
14940 * valops.c (value_cast, search_struct_field, value_slice): Delete
14941 obsolete code.
14942 (varying_to_slice): Delete function.
14943 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14944 (varying_to_slice): Delete declaration.
14945 * MAINTAINERS: Update.
14946
8bb2c122
MK
149472003-01-02 Mark Kettenis <kettenis@gnu.org>
14948
97bf5e38
MK
14949 * configure.in: Reorganize "Checks for library functions section"
14950 a bit. Remove check for `btowc' and `isascii' functions.
14951 * configure: Regenerated.
14952
5ee754fc
MK
14953 * acconfig.h (_MSE_INT_H): Remove.
14954 * configure.in: Create "Checks for header files" section, and move
14955 appropriate tests there. Don't check for objlist.h, wchar.h,
14956 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14957 misdetection fix. Also add "Checks for types", "Checks for
14958 compiler characteristics" and "Checks for library functions"
14959 sections.
14960 * config.in, configure: Regenerated.
14961
8bb2c122
MK
14962 * configure.in: Create "Checks for programs" section, and move
14963 appropriate tests there.
14964
9a156167
MK
149652003-01-01 Mark Kettenis <kettenis@gnu.org>
14966
14967 * configure.in: Create "Checks for libraries" section, and move
14968 appropriate tests there. Cleanup check for wctype in libw. Use
14969 AC_SEARCH_LIBS to see whether we need libsocket.
14970 * configure: Regenerated.
14971
a80e2bcb 14972For older changes see ChangeLog-2002
c906108c
SS
14973\f
14974Local Variables:
14975mode: change-log
14976left-margin: 8
14977fill-column: 74
14978version-control: never
14979End:
This page took 1.239757 seconds and 4 git commands to generate.