*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
35883a3f
MK
12003-11-28 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
4 zero. Reorganize code a bit.
5
597684c5
MK
62003-11-27 Mark Kettenis <kettenis@gnu.org>
7
3e74aeed
MK
8 * dwarf2-frame.c: Fix another comment.
9
efb1c01c
MK
10 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
11 (x86_64_use_struct_convention, x86_64_extract_return_value,
12 x86_64_store_return_value): Remove.
13 (amd64_reg_class): New enum.
14 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
15 amd64_return_value): New functions.
16 (x86_64_init_abi): Don't set extract_return_value,
17 store_return_value and use_struct_convention. Set return_value to
18 amd64_return_value.
19 * i387-tdep.h (i387_return_value): New prototype.
20 * i387-tdep.c (i387_return_value): New function.
21
e4e9607c
MK
22 * dwarf2-frame.c: Fix some comments and whitespace problems.
23
13739f4d
MK
24 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
25 "gdb_assert.h" and "gdb_string.h".
26 (i386nbsd_r_reg_offset): Rename from regmap.
27 (SIZEOF_STRUCT_REG): Remove.
28 (i386nbsd_supply_reg, fetch_core_registers,
29 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
30 Remove.
31 (i386nbsd_aout_supply_regset,
32 i386nbsd_aout_regset_from_core_section): New functions.
33 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
34 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
35 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
36 initialize TDEP->sc_num_regs.
37 (i386nbsdaout_init_abi): New function.
38 (i386nbsdelf_init_abi): Remove initialization of
39 TDEP->num_xmm_regs. Don't set num_regs here.
40 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
41 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
42
597684c5
MK
43 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
44 .note.netbsdcore.procinfo section to recognize NetBSD core files.
45
37e79b6b
MC
462003-11-26 Michael Chastain <mec.gnu@mindspring.com>
47
48 * cp-abi.c: Update copyright years.
49
24557e30
AC
502003-11-25 Andrew Cagney <cagney@redhat.com>
51
52 * thread-db.c (enable_thread_event): New function. Ensure that BP
53 is a code address.
54 (enable_thread_event_reporting): Use enable_thread_event.
55
78c63a3b
MS
562003-11-25 Michael Snyder <msnyder@redhat.com>
57
58 * mips-tdep.c (mips_o64_extract_return_value): Correct for
59 NUM_REGS (see changes 2003-06-21).
60 (mips_eabi_extract_return_value): Ditto.
61
aff6338a
AC
622003-11-25 Andrew Cagney <cagney@redhat.com>
63
64 * infrun.c: Don't include "exec.h".
65 (handle_inferior_event): Pass current_target, instead of exec_ops,
66 to SOLIB_ADD. Add comments.
67 * Makefile.in (infrun.o): Update dependencies.
68
9e08b29b
DJ
692003-11-24 Daniel Jacobowitz <drow@mvista.com>
70
71 * NEWS: Mention improved location expression support.
72
603942cc
AC
732003-11-23 Andrew Cagney <cagney@redhat.com>
74
75 * Makefile.in (infrun.o): Update dependencies.
76 * infrun.c: Include "exec.h".
77 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
78
66c57289
AC
792003-11-23 Andrew Cagney <cagney@redhat.com>
80
dd3ecc14
AC
81 * frame.c (frame_unwind_signed_register): Delete function.
82 * frame.h (frame_unwind_register_signed): Delete declaration.
83 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
84
eec1a560
AC
85 * arch-utils.h (generic_cannot_extract_struct_value_address):
86 Delete declaration.
87
cb137aa5
AC
88 * defs.h (DEPRECATED_STREQN): Rename STREQN.
89 (DEPRECATED_STREQ): Rename STREQ.
90 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
91 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
92 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
93 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
94 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
95 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
96 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
97 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
98 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 99
cb137aa5 100 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
101 * elfread.c (elf_symtab_read): Delete STREQ from comment.
102
29dfb2ac
AC
1032003-11-22 Andrew Cagney <cagney@redhat.com>
104
213cc0ad
AC
105 * frame.c (deprecated_frame_xmalloc): Delete function.
106 (deprecated_set_frame_extra_info_hack): Delete function.
107 (deprecated_set_frame_saved_regs_hack): Delete function.
108 * frame.h (deprecated_frame_xmalloc): Delete declaration.
109 (deprecated_set_frame_extra_info_hack): Delete declaration.
110 (deprecated_set_frame_saved_regs_hack): Delete declaration.
111 * mcore-tdep.c (analyze_dummy_frame): Instead of
112 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
113 and deprecated_set_frame_extra_info_hack use
114 deprecated_frame_xmalloc_with_cleanup.
115 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
116 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
117 deprecated_set_frame_saved_regs_hack.
118
35bb18ac
AC
119 * mips-tdep.c (mips_frame_chain): Delete call to
120 deprecated_inside_entry_file.
121
38a7ce4b
AC
122 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
123 (deprecated_set_frame_prev_hack): Delete declaration.
124 * frame.c (deprecated_set_frame_next_hack): Delete function.
125 (deprecated_set_frame_prev_hack): Delete function.
126 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
127 "deprecated_set_frame_next_hack" and
128 "deprecated_set_frame_prev_hack".
129 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
130
47ebcfbe
AC
131 * mips-tdep.c (mips_register_convertible): Delete function.
132 (mips_register_convert_to_virtual): Delete function.
133 (mips_register_convert_to_raw): Delete function.
134 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
135 "deprecated_register_convert_to_virtual", or
136 "deprecated_register_convert_to_raw".
137 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
138 32/64 cooked to raw register conversions.
139
2a9264f1 140 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 141 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
142 (struct frame_info): Delete member "context".
143 * frame.h (deprecated_get_frame_context): Delete declaration.
144 (deprecated_set_frame_context): Delete declaration.
145
7af6341f
AC
146 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
147 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
148 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
149 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
150
10a08821
AC
151 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
152 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
153 mips_regsize.
154 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
155 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
156 * config/mips/tm-irix5.h: Update copyright.
157 (SIGFRAME_REG_SIZE): Delete macro.
158
00d33403
AC
159 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
160 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
161 declaration.
162 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
163 * infcall.c (call_function_by_hand): Delete #ifdef
164 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
165 * infcmd.c (print_return_value): Ditto.
166
74da7425
AC
167 * mips-tdep.c (skip_prologue_using_sal): New function.
168 (mips32_skip_prologue, mips16_skip_prologue): Use
169 skip_prologue_using_sal to get an upper bound on the search.
170
369864a4
AC
171 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
172 #if 0'ed macro.
173 * infrun.c (step_into_function): Delete #ifdef
174 PROLOGUE_FIRSTLINE_OVERLAP code.
175 * symtab.c (find_function_start_sal): Ditto.
176
a5a12285
AC
177 * remote-rdp.c: Update copyright.
178 (rdp_init): #if 0 references to "target_byte_order".
179
29dfb2ac
AC
180 * mips-tdep.c (mips_o32_store_return_value): Delete function.
181 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
182 (mips_o32_extract_return_value): Delete function.
183 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
184 (mips_n32n64_extract_return_value): Delete function.
185 (mips_n32n64_store_return_value): Delete function.
186 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
187 instead of "store_return_value", "extract_return_value", and
188 "use_struct_convention".
189 (mips_n32n64_use_struct_convention): Delete function.
190
3a3da38c
KB
1912003-11-21 Kevin Buettner <kevinb@redhat.com>
192
193 * frv-tdep.c (frv_frame_this_id): Eliminate call to
194 inside_entry_func().
195
c5e656c1
MK
1962003-11-20 Mark Kettenis <kettenis@gnu.org>
197
198 * i386-tdep.c (i386_extract_return_value,
199 i386_store_return_value): Add gdbarch argument. Use it instead of
200 determining it from REGCACHE. Remove recursive call for
201 structures with a single member.
202 (i386_use_struct_convention): Remove.
203 (i386_reg_struct_return_p): New function.
204 (i386_return_value): New function.
205 (i386_gdbarch_init): Set return_value, don't set
206 extract_return_value, store_return_value and
207 use_struct_convention.
208 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
209
515cc92e
JB
2102003-11-20 Jim Blandy <jimb@redhat.com>
211
212 * osabi.c (_initialize_gdb_osabi): Don't return before registering
213 the 'set osabi' and 'show osabi' commands.
214
3f1d7f16
MK
2152003-11-19 Mark Kettenis <kettenis@gnu.org>
216
217 * frame.c (get_prev_frame): Use result from
218 get_frame_address_in_block instead of get_frame_pc as argument to
219 inside_main_func. Fixes PR backtrace/1435.
220
667e784f
AC
2212003-11-19 Andrew Cagney <cagney@redhat.com>
222
223 * stack.c (return_command): Handle "void", "legacy" and "unknown
224 location" return values separatly.
225 * values.c (using_struct_return): Return 0 for a "void" return
226 type. Mention "register_value_being_returned".
227 (register_value_being_returned): Mention "using_struct_return".
228
4cecd739
DJ
2292003-11-19 Daniel Jacobowitz <drow@mvista.com>
230
231 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
232 (frame_base_offset): Delete.
233 (read_func_scope): Delete call to decode_locdesc.
234 (decode_locdesc): Update comments. Don't set the removed variables.
235 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
236 DW_OP_fbreg support.
237
6b992462
DJ
2382003-11-18 Daniel Jacobowitz <drow@mvista.com>
239
240 * dwarf2read.c (optimized_out, islocal): Remove.
241 (decode_locdesc): Update comments. Don't set optimized_out
242 or islocal.
243
968d1cb4
JJ
2442003-11-17 Jeff Johnston <jjohnstn@redhat.com>
245 David Mosberger <davidm@hpl.hp.com>
246
247 * ia64-tdep.c: Include elf.h.
248 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
249 libunwind-ia64.h.
250 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
251 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
252 (ia64_is_fpreg, ia64_access_reg): Ditto.
253 (ia64_access_fpreg, ia64_access_mem): Ditto.
254 (get_kernel_table): Ditto.
255 (ia64_find_unwind_table): Ditto.
256 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
257 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
258 (ia64_libunwind_frame_prev_register): Ditto.
259 (ia64_libunwind_frame_sniffer): Ditto.
260 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
261 sniffer. Register libunwind functions needed by generic
262 libunwind frame code using libunwind_frame_set_descr().
263
d29caefc
DJ
2642003-11-16 Daniel Jacobowitz <drow@mvista.com>
265
266 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
267 bp_shlib_disabled breakpoint if there is a shared library mapped
268 at its expected address.
269
691c0433
AC
2702003-11-16 Andrew Cagney <cagney@redhat.com>
271
96cb1c2f
AC
272 * configure.tgt: Delete mips*tx39*-elf*.
273 * config/mips/tm-tx39.h: Delete file.
274 * config/mips/tx39.mt: Delete file.
275 * config/mips/tx39.mt: Delete file.
276
691c0433
AC
277 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
278 * remote-mips.c (common_open): Instead of
279 "mips_read_register_type" and "mips_set_processor_type_command"
280 call "deprecated_mips_set_processor_regs_hack".
281 * config/mips/tm-mips.h (mips_read_processor_type): Delete
282 declaration.
283 (mips_set_processor_type_command): Delete declaration.
284 * mips-tdep.c (mips_gdbarch_init): Update comment.
285 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
286 (mips_set_processor_type): Delete function.
287 (NUM_MIPS_PROCESSOR_REGS): Define.
288 (mips_show_processor_type_command): Delete function.
289 (mips_set_processor_type_command): Delete function.
290 (tmp_mips_processor_type): Delete.
291 (mips_processor_type): Delete.
292 (mips_processor_type_table): Delete.
293 (mips_r3051_reg_names): Delete.
294 (mips_r3081_reg_names): Delete.
295 (mips_lsi33k_reg_names): Delete.
296 (mips_processor_reg_names): Delete.
297 (mips_read_processor_type): Delete function.
298 (deprecated_mips_set_processor_regs_hack): New function.
299 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
300 (mips_register_name): Get the processor names from the tdep.
301 (mips_tx39_reg_names): New array.
302 (mips_generic_reg_names): Wire to a standard set of names.
303 (mips_gdbarch_init): Set "mips_processor_reg_names".
304 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
305 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
306 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
307
56cea623
AC
3082003-11-16 Andrew Cagney <cagney@redhat.com>
309
310 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
311 (mips_fpa0_regnum, mips_regnum): New function.
312 (mips_gdbarch_init): Fill in the "regnum" fields.
313 * mips-tdep.h (struct mips_regnum): Define.
314 (mips_regnum): Declare.
315 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
316 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
317 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
318 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
319 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
320 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
321 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
322 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
323 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
324 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
325 * remote-mips.c: Include "mips-tdep.h". Update.
326 * mipsnbsd-tdep.c: Update.
327 * mipsv4-nat.c: Update.
328 * mips-tdep.c: Update.
329 * mips-nat.c: Update.
330 * mips-linux-tdep.c: Update.
331 * mips-linux-nat.c: Update.
332 * irix5-nat.c: Update.
333 * dve3900-rom.c: Include "mips-tdep.h". Update.
334 (ignore_packet): Supress GCC warning.
335 * config/mips/nm-riscos.h: Update.
336
719ec221
AC
3372003-11-16 Andrew Cagney <cagney@redhat.com>
338
339 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
340 register_size.
341 (mips_register_raw_size): Delete function.
342 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
343 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
344 Check and set "mips64_transfers_32bit_regs_p".
345 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
346 (mips_register_convertible): Check the architecture's
347 "mips64_transfers_32bit_regs_p".
348 (set_mips64_transfers_32bit_regs): New function.
349 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
350 "set remote-mips64-transfers-32bit-regs" command. Specify
351 set_mips64_transfers_32bit_regs as the set function.
56cea623 352 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 353
20187ed5
MK
3542003-11-16 Mark Kettenis <kettenis@gnu.org>
355
356 * i386-tdep.h (i386_supply_gregset): Provide prototype.
357 * i386-tdep.c (i386_supply_gregset): Make public.
358
6771c427
AC
3592003-11-16 Andrew Cagney <cagney@redhat.com>
360
361 * mips-tdep.c (mips_register_byte): Delete function.
362 (mips_gdbarch_init): Do not set "deprecated_register_byte".
363 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
364 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
365 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
366
c8048956
MK
3672003-11-16 Mark Kettenis <kettenis@gnu.org>
368
369 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
370
cc8a868a
AC
3712003-11-16 Andrew Cagney <cagney@redhat.com>
372
373 * config/mips/linux64.mt: Delete file.
374 * config/mips/tm-linux64.h: Delete file.
375 * config/mips/tm-mips64.h: Delete file.
376 * config/mips/embed64.mt: Delete file.
377 * config/djgpp/fnchange.lst: Update.
378 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
379 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
380 * config/mips/tm-irix6.h: Update copyright. Include
381 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
382 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
383 "OP_LDGPR".
384
5ef80fb0
AC
3852003-11-15 Andrew Cagney <cagney@redhat.com>
386
387 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
388 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
389 n32 registers 64 bit.
390 (mips_register_raw_size, mips_register_byte): For pseudo
391 registers, use the register's pseudo size and not the
392 corresponding raw register's size.
393 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
394 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
395 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
396 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
397
4246e332
AC
3982003-11-15 Andrew Cagney <cagney@redhat.com>
399
8fa9cfa1
AC
400 * mips-tdep.c (struct gdbarch_tdep): Delete member
401 gdb_target_is_mips64.
402 (GDB_TARGET_IS_MIPS64): Delete macro.
403 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
404 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
405 (mips_addr_bits_remove): Simplify.
406
c73e8f27
AC
407 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
408 register_size.
409
4246e332
AC
410 Replace MIPS_REGSIZE with mips_regsize.
411 * mips-tdep.c (mips_regsize): New function.
412 * mips-tdep.h (mips_regsize): Declare.
413 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
414 (SIZEOF_STRUCT_REG): Update.
415 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
416 (mipsnbsd_fill_reg): Update.
417 (mipsnbsd_supply_fpreg): Update.
418 (mipsnbsd_fill_fpreg): Update.
419 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
420 * mips-tdep.c (mips_register_raw_size): Update.
421 (mips_register_type): Update.
422 (SIGFRAME_BASE): Update.
423 (SIGFRAME_PC_OFF): Update.
424 (SIGFRAME_REGSAVE_OFF): Update.
425 (SIGFRAME_FPREGSAVE_OFF): Update.
426 (SIGFRAME_REG_SIZE): Update.
427 (mips32_heuristic_proc_desc): Update.
428 (print_gp_register_row): Update.
429 (mips_dump_tdep): Do not print MIPS_REGSIZE.
430 * irix5-nat.c (supply_gregset): Update.
431 (fetch_core_registers): Update.
432 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
433 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
434 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
435 (MIPS_REGISTER_BYTE): Update.
436 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
437
5e044b1e
AC
4382003-11-15 Andrew Cagney <cagney@redhat.com>
439
440 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
441 USE_REGISTER_NOT_ARG.
442 * stabsread.c (define_symbol): Update.
443
3a16a68c
AC
4442003-11-15 Andrew Cagney <cagney@redhat.com>
445
446 * bcache.h (deprecated_bcache): Declare.
447 (bcache): Make returned buffer constant.
448 * bcache.c (deprecated_bcache): New function.
449 (bcache_data): New function.
450 (bcache): Call bcache data.
451 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
452 (add_psymbol_with_dem_name_to_list): Ditto.
453
bb41a796
MK
4542003-11-15 Mark Kettenis <kettenis@gnu.org>
455
456 * glibc-tdep.h (struct gdbarch): Declare opaque.
457 (glibc_skip_solib_resolver): Adjust prototype.
458 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
459 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
460 (arm_linux_init_abi): Set skip_solib_resolver.
461 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
462 (i386_linux_init_abi): Set skip_solib_resolver.
463 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
464 (arm_linux_skip_solib_resolver): Remove prototype.
465 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
466 (i386_linux_skip_solib_resolver): Remove prototype.
467
4c8c40e6
MK
4682003-11-14 Mark Kettenis <kettenis@gnu.org>
469
470 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
471 function.
472 * gdbarch.c, gdbarch.h: Regenerate.
473 * infrun.c (handle_inferior_event): Call
474 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
475 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
476 definition.
477 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
478 prototype.
479
0e5d83e3
JJ
4802003-11-14 Jeff Johnston <jjohnstn@redhat.com>
481
482 * libunwind-frame.c: New file.
483 * libunwind-frame.h: New file.
484 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
485 * configure.in: Add --with-libunwind option support. Define
486 HAVE_LIBUNWIND if libunwind support selected / defaulted.
487 Also check for libunwind.h and libunwind-ia64.h headers.
488 * configure: Regenerated.
489 * Makefile.in: Add support for libunwind-frame.o.
490 * config.in: Regenerated.
491
287a334e
JJ
4922003-11-14 Jeff Johnston <jjohnstn@redhat.com>
493
494 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
495 set up the ia64 linux native target method for getting the kernel
496 unwind table.
497 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
498 * inftarg.c (child_xfer_partial): Enable section of code to
499 handle TARGET_OBJECT_UNWIND_TABLE.
500 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
501
140be7b8
ILT
5022003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
503
504 * config/arm/nbsd.mt (TM_FILE): Define.
505 * config/arm/tm-nbsd.h: New file.
506
0a90bcdd
AC
5072003-11-14 Andrew Cagney <cagney@redhat.com>
508
509 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
510 * ppc-sysv-tdep.c: Include "objfiles.h".
511 (ppc64_sysv_abi_push_dummy_call): Provide the
512 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
513
514 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
515 "name_of_malloc" to ".malloc".
516
087f1027
MK
5172003-11-13 Mark Kettenis <kettenis@gnu.org>
518
519 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
520
3882f37a
DC
5212003-11-13 David Carlton <carlton@kealia.com>
522
523 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
524
a8cf2722
AC
5252003-11-13 Andrew Cagney <cagney@redhat.com>
526
527 * arch-utils.h (selected_architecture_name): Declare.
528 (selected_byte_order): Declare.
529 * arch-utils.c (selected_byte_order): New function.
530 (selected_architecture_name): New function.
531 (target_architecture_auto): Make static.
532 (set_architecture_string): Make static.
533 (target_byte_order): Make static.
534 (target_byte_order_auto): Make static.
535 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
536 non-multi-arch definition.
537 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
538 (target_byte_order, target_architecture): Delete declaration.
539 (target_byte_order_auto, target_architecture_auto): Ditto.
540 * gdbarch.h: Re-generate.
541 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
542 "selected_byte_order".
543
475b6ddd
AC
5442003-11-13 Andrew Cagney <cagney@redhat.com>
545
546 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
547
a22286a9
JB
5482003-11-13 Jim Blandy <jimb@redhat.com>
549
550 * cp-namespace.c: Doc fix.
551
7bb11558
MS
5522003-11-12 Michael Snyder <msnyder@redhat.com>
553
39add00a
MS
554 * sh64_tdep.c: Regularize some names.
555 (sh_sh64_register_name): Rename to sh64_register_name.
556 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
557 (sh_sh64_register_byte): Rename to sh64_register_byte.
558 (sh_sh64_build_float_register_type):
559 Rename to sh64_build_float_register_type.
560 (sh_sh64_register_convert_to_virtual):
561 Rename to sh64_register_convert_to_virtual.
562 (sh_sh64_register_convert_to_raw):
563 Rename to sh64_register_convert_to_raw.
564
2a314ed5
MS
565 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
566 sh64_media_reg_base_num, sh64_compact_reg_base_num,
567 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
568 sh64_extract_return_value, sh64_show_media_regs,
569 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
570 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
571 sh64_pseudo_register_read, sh64_pseudo_register_write,
572 sh64_do_pseudo_register, sh_compact_print_registers_info):
573 Delete unused variable 'tdep'.
574
7bb11558
MS
575 * sh64-tdep.c: Coding standard and spelling comment fixes.
576 (sh64_extract_return_value): Replace deprecated_store_floating
577 with store_typed_floating.
578 (sh_sh64_register_convert_to_raw): Replace
579 deprecated_store_floating with store_typed_floating.
580 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
581 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
582 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
583 sh64_extract_struct_value_address, sh64_pop_frame,
584 sh64_extract_return_value, sh64_store_return_value,
585 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
586 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
587 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
588 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
589 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
590 deprecated_register_virtual_type, deprecated_register_raw_size,
591 deprecated_max_register_raw_size, or
592 deprecated_max_register_virtual_size. Instead, just set
593 gdbarch_register_type.
39add00a
MS
594 (sh_sh64_register_raw_size): Delete.
595 (sh_sh64_register_virtual_size): Delete.
7bb11558 596
e7c27a73
DJ
5972003-11-12 Daniel Jacobowitz <drow@mvista.com>
598
599 * dwarf2read.c (struct dwarf2_cu): New type.
600
601 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
602 dwarf2_cu structure to pass down.
603
604 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
605 (add_partial_enumeration, locate_pdi_sibling, process_die)
606 (read_file_scope, read_func_scope)
607 (read_lexical_block_scope, dwarf2_get_pc_bounds)
608 (dwarf2_add_field, dwarf2_attach_fields_to_type)
609 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
610 (read_structure_scope, read_enumeration, read_array_type)
611 (read_common_block, read_namespace, read_tag_pointer_type)
612 (read_tag_ptr_to_member_type, read_tag_reference_type)
613 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
614 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
615 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
616 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
617 (read_full_die. read_attribute_value, read_attribute)
618 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
619 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
620 (die_containing_type, type_at_offset, tag_type_to_type)
621 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
622 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
623
1640b821
DJ
6242003-11-12 Daniel Jacobowitz <drow@mvista.com>
625
626 PR breakpoints/1450
627 * breakpoint.c (insert_bp_location): Fix a logic error by returning
628 0 after a catchpoint fails.
629
d7891507
MC
6302003-11-11 Michael Chastain <mec.gnu@mindspring.com>
631
632 * mips-tdep.c (msymbol_size): Delete.
633
f594e5e9
MC
6342003-11-07 Michael Chastain <mec@shout.net>
635
636 * symtab.h (struct minimal_symbol): Add size.
637 * dbxread.c: Use it.
638 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
639 Rename to record_minimal_symbol.
640 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
641 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
642 (install_minimal_symbols): Ditto.
643 * objfiles.c (terminate_minimal_symbol_table): Ditto.
644 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
645 * m68hc11-tdep.c: Ditto.
646 * mips-tdep.c: Ditto.
647 * sh64-tdep.c: Ditto.
648
68e39e73
MC
6492003-11-10 Michael Chastain <mec.gnu@mindspring.com>
650
651 * MAINTAINERS: Change my e-mail address.
652
b60eb90d
AC
6532003-11-10 Andrew Cagney <cagney@redhat.com>
654
963e2bb7
AC
655 * gdbarch.sh (return_value): Replace "inval" and "outval" with
656 "readbuf" and "writebuf".
657 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
658 * d10v-tdep.c (d10v_return_value): Ditto.
659 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
660 (ppc_sysv_abi_broken_return_value): Ditto.
661 (ppc64_sysv_abi_return_value): Ditto.
662 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
663 (ppc_sysv_abi_return_value): Ditto.
664 (ppc_sysv_abi_broken_return_value): Ditto.
665 (ppc64_sysv_abi_return_value): Ditto.
666 * values.c (register_value_being_returned): Update call.
667 * stack.c (return_command): Update call.
668 * gdbarch.h, gdbarch.c: Re-generate.
669
8aa91c1e
AC
670 * target.h (struct target_ops): Order xfer buffer parameters "read
671 write" not "write read".
672 * bfd-target.c (target_bfd_xfer_partial): Update.
673 * remote.c (remote_xfer_partial): Update.
674 * inftarg.c (child_xfer_partial): Update.
675 * target.c (default_xfer_partial): Update.
676 (target_read_partial, target_write_partial): Update.
677 (debug_to_xfer_partial): Update.
678
100bcc3f
AC
679 * arch-utils.h, arch-utils.c: Fix typo in comment.
680
b60eb90d
AC
681 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
682 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
683 (set_gdbarch_from_file): Call
684 "deprecated_current_gdbarch_select_hack".
b60eb90d 685
bf922ad9
AC
6862003-11-09 Andrew Cagney <cagney@redhat.com>
687
ebdba546
AC
688 * arch-utils.c (gdbarch_update_p): New function.
689 * gdbarch.sh (gdbarch_update_p): Delete function.
690 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 691 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
692 * gdbarch.c: Re-generate.
693
7de2341d
AC
694 * gdbarch.sh (clear_gdbarch_swap): Delete function.
695 (swapout_gdbarch_swap): Delete function.
696 (swapin_gdbarch_swap): Delete function.
697 (init_gdbarch_swap): Delete function.
698 (initialize_non_multiarch): Delete function.
699 (current_gdbarch_swap_in_hack): New function.
700 (current_gdbarch_swap_out_hack): New function.
701 (current_gdbarch_swap_init_hack): New function.
702 * gdbarch.c: Re-generate.
703
db446970
AC
704 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
705 parameter to "current_gdbarch". Add comment explaining why.
706 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
707 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
708 * gdbarch.c: Re-generate.
709
341e3d11
AC
710 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
711 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
712 * config/s390/xm-linux.h: Delete file.
713 * config/m88k/xm-delta88v4.h: Delete stray.
714
bf922ad9
AC
715 * Makefile.in (arch-utils.o): Update dependencies.
716 * arch-utils.c: Include "osabi.h".
717 (gdbarch_info_fill): New function.
718 * arch-utils.h (gdbarch_info_fill): Declare.
719 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
720 * gdbarch.c: Re-generate.
721
a3640c75
MK
7222003-11-09 Mark Kettenis <kettenis@gnu.org>
723 David S. Miller <davem@redhat.com>
724
725 * glibc-tdep.c, glibc-tdep.h: New files.
726 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
727 * config/i386/linux.mt (TDEPFILES): Likewise.
728 * i386-linux-tdep.c (glibc-tdep.h): Include.
729 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
730 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
731 * arm-linux-tdep.c (glibc-tdep.h): Include.
732 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
733 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
734 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
735 (glibc_tdep_h): Define.
736 (glibc-tdep.o): Add dependencies.
737 (arm-linux-tdep.o): Update dependencies.
738 (i386-linux-tdep.o): Likewise.
739
e60e0ab2
AC
7402003-11-09 Andrew Cagney <cagney@redhat.com>
741
742 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
743 * config/mips/nm-irix6.h: Delete file.
744 * config/mips/nm-linux.h: Update copyright.
745 (MIPS_GNULINUX_TARGET): Delete macro.
746 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
747 * config/mips/xm-irix6.h: Delete file.
748 * config/mips/linux.mh (XM_FILE): Delete definition.
749 * config/mips/xm-linux.h: Delete file.
750
181555e9
AC
7512003-11-09 Andrew Cagney <cagney@redhat.com>
752
753 * d10v-tdep.c (d10v_return_value): New function.
754 (d10v_use_struct_convention): Delete function.
755 (d10v_store_return_value): Delete function.
756 (d10v_extract_struct_value_address): Delete function.
757 (d10v_gdbarch_init): Set "return_value" instead of
758 "extract_return_value", "store_return_value",
759 "extract_struct_value_address", and "use_struct_convention".
760 (RET1_REGNUM): Delete const.
761
dea0c52f
MK
7622003-11-09 Mark Kettenis <kettenis@gnu.org>
763
764 From David S. Miller <davem@redhat.com>:
765 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
766 * gdbarch.c, gdbarch.h: Regenerated.
767 * arch-utils.c (generic_skip_solib_resolver): New function.
768 * arch-utils.h (generic_skip_solib_resolver): New prototype.
769 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
770
6314a349
AC
7712003-11-07 Andrew Cagney <cagney@redhat.com>
772
773 * top.c (print_gdb_version): Replace STREQ with strcmp.
774 * valops.c (value_struct_elt_for_reference): Ditto.
775 (value_struct_elt_for_reference): Ditto.
776 * symtab.c (gdb_mangle_name): Ditto.
777 (find_line_symtab): Ditto.
778 * symmisc.c (maintenance_print_symbols): Ditto.
779 * symfile.c (symbol_file_command): Ditto.
780 * stabsread.c (define_symbol, read_type): Ditto.
781 (cleanup_undefined_types, scan_file_globals): Ditto.
782 * solib.c (solib_map_sections): Ditto.
783 * solib-svr4.c (bfd_lookup_symbol): Ditto.
784 * rs6000-tdep.c (skip_prologue): Ditto.
785 * p-valprint.c (pascal_value_print): Ditto.
786 (pascal_object_is_vtbl_ptr_type): Ditto.
787 * objfiles.c (in_plt_section): Ditto.
788 * minsyms.c (lookup_minimal_symbol): Ditto.
789 (compact_minimal_symbols): Ditto.
790 (find_solib_trampoline_target): Ditto.
791 * mdebugread.c (parse_type): Ditto.
792 * language.c (set_language_command): Ditto.
793 (set_type_command, set_range_command): Ditto.
794 * f-lang.c (add_common_block): Ditto.
795 (add_common_block): Ditto.
796 (find_first_common_named): Ditto.
797 (patch_all_commons_by_name): Ditto.
798 * elfread.c (elf_locate_sections): Ditto.
799 (elf_locate_sections): Ditto.
800 (elfstab_offset_sections): Ditto.
801 * dwarf2read.c (dwarf2_locate_sections): Ditto.
802 * dbxread.c (add_old_header_file): Ditto.
803 (find_corresponding_bincl_psymtab): Ditto.
804 (read_dbx_symtab, process_one_symbol): Ditto.
805 * coffread.c (patch_opaque_types): Ditto.
806 * cli/cli-decode.c (delete_cmd): Ditto.
807 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
808 * c-typeprint.c (c_type_print_base): Ditto.
809 * breakpoint.c (bpstat_stop_status): Ditto.
810 (clear_command, breakpoint_re_set_one): Ditto.
811
49df298f
AC
8122003-11-07 Andrew Cagney <cagney@redhat.com>
813
814 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
815 * bcache.c (struct bstring): Make "length" an unsigned short, add
816 "half_hash".
817 (struct bcache): Add "half_hash_error_count".
818 (bcache): Compute and save the "half_hash". Compare the
819 "half_hash" before comparing the length. Update
820 half_hash_error_count.
821
f168dd80
AC
8222003-11-07 Andrew Cagney <cagney@redhat.com>
823
824 * inftarg.c (child_xfer_partial): New function
825 (init_child_ops): Set "to_xfer_partial".
826
05580c65
AC
8272003-11-07 Andrew Cagney <cagney@redhat.com>
828
829 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
830 set "return_value" instead of "use_struct_convention".
831 (ppc_linux_use_struct_convention): Delete function.
832 (ppc_linux_return_value): New function.
833 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
834 (ppc_sysv_abi_broken_return_value): New function.
835 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
836 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
837 static.
838 (ppc_sysv_abi_extract_return_value): Delete function.
839 (ppc_sysv_abi_broken_extract_return_value): Delete function.
840 (ppc_sysv_abi_store_return_value): Delete function.
841 (ppc_sysv_abi_broken_store_return_value): Delete function.
842 (ppc_sysv_abi_use_struct_convention): Delete function.
843 (ppc64_sysv_abi_use_struct_convention): Delete function.
844 (ppc64_sysv_abi_extract_return_value): Delete function.
845 (ppc64_sysv_abi_store_return_value): Delete function.
846 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
847 (ppcnbsd_init_abi): Set "return_value", instead of
848 "use_struct_convention", "extract_return_value", and
849 "store_return_value".
850 (ppcnbsd_use_struct_convention): Delete function.
851 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
852 (ppc_sysv_abi_return_value): Declare.
853 (ppc_sysv_abi_broken_return_value): Declare.
854 (ppc_sysv_abi_use_struct_convention): Delete.
855 (ppc_sysv_abi_store_return_value): Delete.
856 (ppc_sysv_abi_extract_return_value): Delete.
857 (ppc_sysv_abi_broken_store_return_value): Delete.
858 (ppc_sysv_abi_broken_extract_return_value): Delete.
859 (ppc64_sysv_abi_use_struct_convention): Delete.
860 (ppc64_sysv_abi_extract_return_value): Delete.
861 (ppc64_sysv_abi_store_return_value): Delete.
862 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
863 set "return_value" instead of "extract_return_value",
864 "store_return_value", and "use_struct_convention".
865
1763fba4
MK
8662003-11-07 Mark Kettenis <kettenis@gnu.org>
867
22c7ba1a
MK
868 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
869
1763fba4
MK
870 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
871 fscanf.
872
fc07cc2d
MK
8732003-11-07 Mark Kettenis <kettenis@gnu.org>
874
875 * fbsd-proc.c: Fix formatting.
876
6a748db6
KB
8772003-11-06 Kevin Buettner <kevinb@redhat.com>
878
879 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
880 Define.
881 (new_variant): Set name for iacc0_regnum.
882 (frv_register_name): Accommodate pseudo-registers.
883 (frv_register_type): Add case for iacc0_regnum.
884 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
885 (frv_gdbarch_init): Set number of pseudo registers. Establish
886 pseudo-register read/write methods.
887
bf896cb0
AC
8882003-11-06 Andrew Cagney <cagney@redhat.com>
889
890 * valops.c (destructor_name_p): Replace STREQN with strncmp.
891 * top.c (command_line_input): Ditto.
892 * objc-exp.y (yylex): Ditto.
893 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
894 * jv-exp.y (yylex): Ditto.
895 * f-exp.y (yylex): Ditto.
896 * event-top.c (command_line_handler): Ditto.
897 * environ.c (get_in_environ): Ditto.
898 (set_in_environ): Ditto.
899 * dwarfread.c (handle_producer): Ditto.
900 * dbxread.c (process_one_symbol): Ditto.
901 * c-typeprint.c (c_type_print_base): Ditto.
902 * c-exp.y (yylex): Ditto.
903
0b603eba
AC
9042003-11-06 Andrew Cagney <cagney@redhat.com>
905 Jeff Johnston <jjohnstn@redhat.com>
906
907 * target.c (add_target): Only set "to_xfer_partial" when NULL.
908 (init_dummy_target): Set "to_xfer_partial".
909
9cedbfec
AC
9102003-11-06 Andrew Cagney <cagney@redhat.com>
911
912 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
913 REGISTER_CONVENTION.
914
26bb91f3
DJ
9152003-11-06 Daniel Jacobowitz <drow@mvista.com>
916
917 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
918 static.
919
0bde7532
DJ
9202003-11-06 Daniel Jacobowitz <drow@mvista.com>
921
922 * breakpoint.c (remove_breakpoint): Take an bp_location
923 instead of a breakpoint argument. Check the bp_location's type.
924 Fix a reversed condition for hardware breakpoints.
925
926 (insert_bp_location): Update call to remove_breakpoint.
927 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
928 (remove_hw_watchpoints): Likewise.
929 (reattach_breakpoints): Likewise.
930 (detach_breakpoints): Likewise.
931 (delete_breakpoint): Likewise.
932
075f6582
DJ
9332003-11-06 Daniel Jacobowitz <drow@mvista.com>
934
935 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
936 (beakpoint_init_inferior): Likewise.
937 (breakpoint_here_p): Likewise. Only check addresses for software
938 or hardware breakpoints.
939 (breakpoint_inserted_here_p): Likewise.
940 (breakpoint_thread_match): Likewise. Correct comment.
941 (bpstat_have_active_hw_watchpoints): Likewise.
942 (check_duplicates): Likewise.
943
879bfdc2
DJ
9442003-11-06 Daniel Jacobowitz <drow@mvista.com>
945
946 * breakpoints.c (insert_bp_location): New function, broken out
947 from insert_breakpoints. Work on an bp_location instead of a
948 breakpoint.
949 (insert_breakpoints): Use it.
950
cf3a9e5b
DJ
9512003-11-06 Daniel Jacobowitz <drow@mvista.com>
952
953 * breakpoint.h (struct bp_location): Add section.
954 (struct breakpoint): Remove section.
955 * breakpoint.c (insert_breakpoints, remove_breakpoint)
956 (breakpoint_here_p, breakpoint_inserted_here_p)
957 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
958 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
959 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
960 section through loc.
961
ffce0d52
DJ
9622003-11-06 Daniel Jacobowitz <drow@mvista.com>
963
964 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
965 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
966
e049a4b5
DJ
9672003-11-06 Daniel Jacobowitz <drow@mvista.com>
968
969 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
970 arguments. Initialize owner and type for the new breakpoint
971 location item.
972 (set_raw_breakpoint): Update call to allocate_bp_location.
973
7cc221ef
DJ
9742003-11-06 Daniel Jacobowitz <drow@mvista.com>
975
976 * breakpoint.h (struct bp_location): Add a chain pointer.
977 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
978 macros.
979 (bp_location_chain): New variable.
980 (allocate_bp_location): New function.
981 (set_raw_breakpoint): Use it.
982 (delete_breakpoint): Remove ->loc from the bp_location_chain.
983
5cab636d
DJ
9842003-11-06 Daniel Jacobowitz <drow@mvista.com>
985
986 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
987 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 988 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
989 * breakpoint.c (condition_command, read_memory_nobpt)
990 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
991 (reattach_breakpoints, update_breakpoints_after_exec)
992 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
993 (breakpoint_init_inferior, breakpoint_here_p)
994 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
995 (breakpoint_thread_match, bpstat_stop_status)
996 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
997 (describe_other_breakpoints, check_duplicates)
998 (make_breakpoint_permanent, create_thread_event_breakpoint)
999 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1000 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1001 (watch_command_1, print_one_exception_catchpoint)
1002 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1003 use the breakpoint's ->loc.
1004 (set_raw_breakpoint): Likewise. Initialize ->loc.
1005 (delete_breakpoint): Likewise. Free ->loc.
1006
7be0c536
AC
10072003-11-05 Andrew Cagney <cagney@redhat.com>
1008
4c7d882e
AC
1009 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1010 macro.
1011 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1012 * config/i386/tm-cygwin.h
1013 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1014 * config/powerpc/tm-linux.h
1015 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1016 (at_subroutine_call_instruction_target): Delete declaration.
1017 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1018 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1019 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1020
7be0c536
AC
1021 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1022 "struct bfd_section" and "struct bfd".
1023 * target.h (struct section_table): Ditto.
1024 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1025 * solib-svr4.c (elf_locate_base): Ditto.
1026 * pa64solib.c (dld_cache_t): Ditto.
1027 * objfiles.h (struct obj_section): Ditto.
1028 * objfiles.c (add_to_objfile_sections): Ditto.
1029 * exec.c (bfdsec_to_vmap): Ditto.
1030 (add_to_section_table): Ditto.
1031 (build_section_table): Ditto.
1032 * corelow.c (get_core_register_section): Ditto.
1033 * coffread.c (find_linenos): Ditto.
1034 * elfread.c (elf_interpreter): Delete #if0'd function.
1035
1036 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1037 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1038 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1039 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1040
1041 * arch-utils.h (generic_cannot_extract_struct_value_address):
1042 Delete declaration.
1043 * wince.c (_initialize_wince): Fix multi-line string.
1044 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1045
d8fe84e3
EZ
10462003-11-05 Elena Zannoni <ezannoni@redhat.com>
1047
1048 * top.c (execute_command): Fix broken logic for command execution
1049 while inferior is running in async mode.
1050
cbdfc7c0
MK
10512003-11-06 Mark Kettenis <kettenis@gnu.org>
1052
1053 * dwarf2-frame.c (execute_cfa_program): Mark register as
1054 REG_SAVED_REG for DW_CFA_register opcode.
1055
dac94105
MK
10562003-11-05 Mark Kettenis <kettenis@gnu.org>
1057
1058 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1059 %rsp, %rip and %eflags to match ABI-change.
1060
85bf2b91
JJ
10612003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1062
1063 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1064 (ia64_gdbarch_init): Don't bother calculating the os.
1065 Instead use the gdbarch_info struct and look at the osabi field.
1066 Also use gdbarch_list_lookup_by_info() to look for a
1067 candidate gdbarch.
1068
cd31fb03
KB
10692003-11-05 Kevin Buettner <kevinb@redhat.com>
1070
1071 * frv-tdep.c (frv_register_byte): Delete.
1072 (frv_extract_return_value, frv_store_return_value)
1073 (frv_extract_struct_value_address): Don't call frv_register_byte().
1074 Convert to non-deprecated form.
1075 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1076 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1077 set_gdbarch_deprecated_store_return_value(), and
1078 set_gdbarch_deprecated_extract_struct_value_address() into
1079 non-deprecated forms.
1080
0a056982
AC
10812003-11-05 Andrew Cagney <cagney@redhat.com>
1082
1083 * mips-tdep.c (mips_dump_tdep): Do not print
1084 PRINT_EXTRA_FRAME_INFO.
1085 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1086 Rename PRINT_EXTRA_FRAME_INFO.
1087 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1088 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1089 (mips_print_extra_frame_info): Delete declaration.
1090 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1091
29e0a062
EZ
10922003-11-05 Elena Zannoni <ezannoni@redhat.com>
1093
1094 * coffread.c (coff_symtab_read): Remove passing of info parameter
1095 to prim_record_minimal_symbol_and_info.
1096
8af580fc
EZ
10972003-11-05 Elena Zannoni <ezannoni@redhat.com>
1098
1099 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1100 (decode_base_type): Delete ifdeffed out code.
1101
507836c0
AC
11022003-11-04 Andrew Cagney <cagney@redhat.com>
1103
1104 * symtab.c (find_active_alias): Delete function.
1105 (lookup_block_symbol): Delete alias code.
1106 * stabsread.c (resolve_live_range): Delete function.
1107 (add_live_range): Delete function.
1108 (resolve_symbol_reference): Delete function.
1109 (define_symbol): Delete live range and alias code.
1110 (scan_file_globals): Delete alias code.
1111 * symtab.h (SYMBOL_RANGES): Delete macro.
1112 (struct range_list): Delete structure.
1113 (struct symbol): Delete field "ranges".
1114 (SYMBOL_ALIASES): Delete macro.
1115 (struct alias_list): Delete structure.
1116 (struct symbol): Delete field "aliases".
1117
1083b3bc
MS
11182003-11-04 Michael Snyder <msnyder@redhat.com>
1119
1120 * MAINTAINERS: Remove myself as owner of breakpoints and
1121 of sparc/solaris.
1122
474e5826
CV
11232003-11-03 Corinna Vinschen <vinschen@redhat.com>
1124
1125 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1126 (sh_sh4al_dsp_register_name): Ditto.
1127 (sh4_nofpu_show_regs): Ditto.
1128 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1129 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1130
2160782c
AC
11312003-11-03 Andrew Cagney <cagney@redhat.com>
1132
1133 * bcache.c: Include "gdb_assert.h".
1134 (struct bcache): Add fields "expand_count" and
1135 "expand_hash_count".
1136 (expand_hash_table): Update the expand counts.
1137 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1138 on object sizes and hashes.
1139 * Makefile.in (bcache.o): Update dependencies.
1140
85302095
AC
11412003-11-03 Andrew Cagney <cagney@redhat.com>
1142
1143 * exec.c (xfer_memory): Eliminate xfer_fn.
1144
526eef89
KB
11452003-10-31 Kevin Buettner <kevinb@redhat.com>
1146
1147 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1148 (opcodes/frv-desc.h): Include.
1149 (iacc0h_regnum, iacc0l_regnum): Define.
1150 (last_spr_regnum, frv_num_regs): Update.
1151 (new_variant): Don't supply default names for holes in the SPRs.
1152 Supply names for iacc0h_regnum and iacc0l_regnum.
1153 (frv_register_type): Use symbolic constants first_fpr_regnum and
1154 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1155 builtin_type_int instead of builtin_type_int32.
1156 (frv_register_sim_regno): New function.
1157 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1158 * Makefile.in (gdb_sim_frv_h): Define.
1159 (frv-tdep.o): Update dependencies.
1160
9e815ec2
AC
11612003-10-31 Andrew Cagney <cagney@redhat.com>
1162
1163 * avr-tdep.c (avr_frame_this_id): Do not call
1164 deprecated_inside_entry_file.
1165 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1166 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1167 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1168 * arm-tdep.c (arm_prologue_this_id): Ditto.
1169 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1170
e372db49
JB
11712003-10-31 Jim Blandy <jimb@redhat.com>
1172
1173 * elfread.c (elf_symtab_read): Allocate correct number of tail
1174 elements to sectinfo structure. (Fix from Woody LaRue.)
1175
e8bcf01f
AC
11762003-10-31 Andrew Cagney <cagney@redhat.com>
1177
1178 * stack.c (return_command): Use get_frame_type, instead of
1179 CALL_DUMMY_HAS_COMPLETED.
1180 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1181 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1182
4c05fe53
MK
11832003-10-31 Mark Kettenis <kettenis@gnu.org>
1184
1185 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1186 explicitly specify size of array.
1187 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1188 TDEP->sc_num_regs.
1189
c8b91b89
AC
11902003-10-31 Andrew Cagney <cagney@redhat.com>
1191
1192 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1193 function.
1194 (s390_gdbarch_init): Set extract_struct_value_address.
1195 * arch-utils.c (generic_cannot_extract_struct_value_address):
1196 Delete function.
1197 * arch-utils.h (generic_cannot_extract_struct_value_address):
1198 Delete definition.
1199
fdfb6fc8
MK
12002003-10-31 Mark Kettenis <kettenis@gnu.org>
1201
1202 * i386-linux-nat.c (fetch_core_registers): Remove.
1203 (linux_elf_core_fns): Remove.
1204 (_initialize_i386_linux_nat): Remove.
1205
2f4950cd
AC
12062003-10-31 Andrew Cagney <cagney@redhat.com>
1207
1208 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1209 "exec.h".
1210 (exec_entry_point): New function.
1211 (enable_break): Create a "tmp_bfd_target", use that and
1212 entry_point_address when computing the relocation offset.
1213 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1214 * Makefile.in (solib-svr4.o): Update dependencies.
1215
bba2d28d
AC
12162003-10-31 Andrew Cagney <cagney@redhat.com>
1217
1218 * defs.h (XZALLOC): Define.
1219 * target.h (struct target_ops): Add "to_data";
1220 * bfd-target.h, bfd-target.c: New files.
1221 * Makefile.in (SFILES): Add "bfd-target.c".
1222 (COMMON_OBS): Add "bfd-target.o".
1223 (bfd-target.o): Specify dependencies.
1224 (bfd_target_h): Define.
1225 * defs.h (XZALLOC): Define.
1226
6066c3de
AC
12272003-10-31 Andrew Cagney <cagney@redhat.com>
1228
1229 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1230 adjust_breakpoint_address.
1231 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1232 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1233 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1234 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1235
4b8a223f
AC
12362003-10-31 Andrew Cagney <cagney@redhat.com>
1237
1238 * target.h (struct target_ops): Replace "to_read_partial" and
1239 "to_write_partial" with "to_xfer_partial". Update comments.
1240 * target.c (debug_to_write_partial): Delete function.
1241 (debug_to_xfer_partial): Replace debug_to_read_partial.
1242 (add_target, update_current_target, setup_target_debug): Set
1243 "to_xfer_partial" instead of "to_read_partial" and
1244 "to_write_partial".
1245 (default_xfer_partial): Replace "default_write_partial".
1246 (default_read_partial): Delete.
1247 (target_read_partial, target_write_partial): Call
1248 "to_xfer_partial".
1249 * remote.c (init_remote_ops): Set "to_xfer_partial".
1250 (init_remote_async_ops): Ditto.
1251 (remote_xfer_partial): Replace "remote_read_partial".
1252
66a72d25
MK
12532003-10-31 Mark Kettenis <kettenis@gnu.org>
1254
1255 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1256 registers in `fxsave' format.
1257 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1258
9a12a2a0
MK
12592003-10-30 Mark Kettenis <kettenis@gnu.org>
1260
e9f1aad5
MK
1261 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1262 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1263 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1264
bb489b3c
MK
1265 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1266 specify size of array.
1267 (i386_linux_init_abi): Remove initialization of
1268 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1269 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1270
da285bc4
MK
1271 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1272 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1273 core-regset.o.
1274
9a12a2a0
MK
1275 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1276 the ELF header.
1277
0e24ac5d
MK
12782003-10-29 Mark Kettenis <kettenis@gnu.org>
1279
6d6d8e9c
MK
1280 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1281 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1282 core-regset.o.
1283
25e60c9b
MK
1284 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1285
0e24ac5d
MK
1286 * corelow.c: Include "arch-utils.h", "regset.h" and
1287 "gdb_assert.h".
1288 (core_gdbarch): New variable.
1289 (sniff_core_bfd): Don't sniff if we have support for register sets
1290 in CORE_GDBARCH.
1291 (core_close): Reset CORE_GDBARCH.
1292 (core_open): Initialize CORE_GDBARCH.
1293 (get_core_register_section): Use register sets if they are
1294 supported by CORE_GDBARCH.
1295 (get_core_registers): Don't print error message if we have support
1296 for register sets in CORE_GDBARCH.
1297
0a0a4ac3
AC
12982003-10-29 Andrew Cagney <cagney@redhat.com>
1299
1300 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1301 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1302
7b097ae3
MK
13032003-10-29 Mark Kettenis <kettenis@gnu.org>
1304
1305 * objfiles.h (clear_objfile_data): New prototype.
1306 * objfiles.c (clear_objfile_data): New function.
1307 * symfile.c (reread_symbols): Clear per-objfile data.
1308
46f45a4a
JJ
13092003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1310
1311 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1312 printf_unfiltered instead of printf_filtered for output messages.
1313 (add_symbol_file_command): Ditto.
1314 (reread_symbols): Ditto.
1315 (overlay_auto_command): Ditto.
1316 (overlay_manual_command): Ditto.
1317 (overlay_off_command): Ditto.
1318
2b026650
MK
13192003-10-27 Mark Kettenis <kettenis@gnu.org>
1320
1321 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1322 (gdbarch_from_bfd): New function.
1323 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1324 deprecated_select_gdbarch_hack.
1325 * arch-utils.h (gdbarch_from_bfd): New prototype.
1326
0bcad584 13272003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1328
1329 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1330 arch_info. Use warning instead of fprintf_filtered. Do not use
1331 deprecated bfd_printable_arch_mach.
1332
7f398216
KB
13332003-10-26 Kevin Buettner <kevinb@redhat.com>
1334
1335 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1336 Delete.
1337 (frv_register_type): Rename from frv_register_virtual_type. Add
1338 ``struct gdbarch *'' parameter.
1339 (frv_gdbarch_init): Delete calls to the following functions:
1340 set_gdbarch_deprecated_size(),
1341 set_gdbarch_deprecated_register_bytes(),
1342 set_gdbarch_deprecated_register_raw_size(),
1343 set_gdbarch_deprecated_max_register_raw_size(),
1344 set_gdbarch_deprecated_register_virtual_size(),
1345 set_gdbarch_deprecated_max_register_virtual_size(),
1346 set_gdbarch_deprecated_register_virtual_size(),
1347 set_gdbarch_deprecated_register_virtual_type().
1348 Add call to function set_gdbarch_register_type().
1349
bcf48cc7
MK
13502003-10-26 Mark Kettenis <kettenis@gnu.org>
1351
6c7de422
MK
1352 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1353 FDOFF_REGNUM): Remove defines.
1354 * win32-nat.c (do_child_fetch_inferior_registers): Include
1355 "i387-tdep.h".
3e685d41 1356 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1357 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1358 undefine I387_ST0_REGNUM.
1359
f783586b
MK
1360 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1361 * x86-64-tdep.c (x86_64_store_return_value): Use
1362 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1363
bcf48cc7
MK
1364 Change register numbers to enumartion values.
1365 * i386-tdep.h (enum i386_regnum): New.
1366 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1367 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1368 I386_ST0_REGNUM): Remove defines.
1369 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1370 I386_EDI_REGNUM): Remove defines.
1371
b6591e8b
AC
13722003-10-24 Andrew Cagney <cagney@redhat.com>
1373
1374 * target.c: Include "gdbcore.h".
1375 (get_target_memory, get_target_memory_unsigned): New functions.
1376 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1377 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1378 Use get_target_memory_unsigned.
1379 * Makefile.in (target.o): Update dependencies.
1380
5f724446
AC
13812003-10-24 Andrew Cagney <cagney@redhat.com>
1382
ce2826aa
AC
1383 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1384 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1385 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1386 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1387 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1388
5f724446
AC
1389 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1390 (can_run_code_for): Use the OO term "singleton".
1391
fc70c2a0
AC
13922003-10-23 Andrew Cagney <cagney@redhat.com>
1393
1394 * Makefile.in (stack.o): Add $(regcache_h).
1395 * stack.c: Include "regcache.h"
1396 (return_command): Rewrite. Use get_frame_id and
1397 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1398 about unhandled return-values.
1399 * value.h (set_return_value): Delete declaration.
1400 * values.c (set_return_value): Delete function.
1401
4afcc598
JJ
14022003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1403
1404 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1405 (pseudo_regs): Add comment regarding register stack registers.
1406 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1407 (floatformat_valid): New static routine.
1408 (floatformat_ia64_ext): Add name field and set up is_valid routine
1409 to floatformat_valid().
1410 (examine_prologue): For the previous cfm, use
1411 frame_unwind_register()
1412 if the cfm is not stored in a register-stack register. Save the
1413 previous cfm value in the prev_cfm field. Add debug output.
1414 (ia64_frame_this_id): Use frame_id_build_special() to also register
1415 the bsp. Add debug output.
1416 (ia64_sigtramp_frame_this_id): Ditto.
1417 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1418 registers and also add some checks for framelessness before accepting
1419 current register values for fields such as return address. For cfm,
1420 use the cached prev_cfm field if available. Add comment to explain
1421 PSR logic. Add debug output.
1422 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1423 as part of initialization.
1424 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1425 calculated. Cache the bsp and cfm values.
1426 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1427 instead of using ia64_frame_prev_register() which doesn't expect most
1428 registers to be saved. The saved values for bsp and sp
1429 can be taken from the cache. Add debug output.
1430 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1431 the bsp.
1432
6cfae0bc
JB
14332003-10-23 Jim Blandy <jimb@redhat.com>
1434
1435 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1436 architecture the current arch can run code for --- but not if it's
1437 a superset.
1438 (can_run_code_for): New function.
1439
fcd182f9
JW
14402003-10-22 James E Wilson <wilson@specifixinc.com>
1441
1442 * MAINTAINERS: Move myself from paper trail section back to write
1443 after approval section.
1444
4646aa9d
AC
14452003-10-22 Andrew Cagney <cagney@redhat.com>
1446
1447 * exec.h: New file.
1448 * win32-nat.c: Include "exec.h".
1449 * solib.c: Include "exec.h".
1450 * target.h (build_section_table): Delete declaration.
1451 * somsolib.c: Include "exec.h".
1452 (exec_ops): Delete extern declaration.
1453 * rs6000-nat.c: Update copyright. Include "exec.h".
1454 (exec_ops): Delete extern declaration.
1455 * pa64solib.c: Update copyright. Include "exec.h".
1456 (exec_ops): Delete extern declaration.
1457 * exec.c: Update copyright. Include "exec.h".
1458 * corelow.c: Update dependencies. Include "exec.h".
1459 * Makefile.in (exec_h): Define.
1460 (exec.o, somsolib.o): Update dependencies.
1461 (pa64solib.o, corelow.o): Update dependencies.
1462
0088c768
AC
14632003-10-22 Andrew Cagney <cagney@redhat.com>
1464
1465 * target.c: Include "gdb_assert.h" (target_read): Call
1466 "target_read_partial", not "target_write_partial".
1467 (default_read_partial, default_write_partial): New function.
1468 (target_read_partial, target_write_partial): Simplify, assume that
1469 there is always a read/write method.
1470 (update_current_target, add_target): Always set "to_read_partial"
1471 and "to_write_partial".
1472 (target_write, target_read): Fail on a zero byte transfer.
1473 * Makefile.in (target.o): Update dependencies.
1474 * target.h: Update copyright date.
1475 (target_object): Fix typo.
1476
e2d0e7eb
AC
14772003-10-22 Andrew Cagney <cagney@redhat.com>
1478
1479 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1480 multi-arch method, add "targ" parameter.
1481 (struct target_ops): Declare.
1482 * gdbarch.h, gdbarch.c: Re-generate.
1483 * Makefile.in (c-valprint.o): Update dependencies.
1484 * arch-utils.h: Update copyright.
1485 (convert_from_func_ptr_addr_identity): Declare.
1486 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1487 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1488 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1489 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1490 * infcall.c (find_function_addr, call_function_by_hand): Update.
1491 * c-valprint.c: Include "target.h".
1492 (print_function_pointer_address): Update.
1493
f1c07ab0
AC
14942003-10-22 Andrew Cagney <cagney@redhat.com>
1495
1496 * target.c (target_close): New function.
1497 (debug_to_close): Use "target_close".
1498 (push_target): Use "target_close".
1499 (unpush_target): Use "target_close".
1500 (pop_target): Use "target_close".
1501 * target.h (struct target_ops): Add "to_xclose".
1502 (target_open): Delete macro. Move comment to "to_open".
1503 (target_close): Replace macro with function that takes a target.
1504 * top.c (quit_target): Pass "current_target" to "target_close".
1505
5520a790
EZ
15062003-10-21 Elena Zannoni <ezannoni@redhat.com>
1507
1508 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1509 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1510 * symtab.h (lookup_minimal_symbol_text): Update.
1511 * breakpoint.c (create_overlay_event_breakpoint,
1512 create_longjmp_breakpoint): Update callers.
1513 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1514 * symtab.c (find_pc_sect_line): Ditto.
1515
caa92b73
AC
15162003-10-21 Andrew Cagney <cagney@redhat.com>
1517
1518 * target.c (errno): Delete extern declaration.
1519
aa2a9a3c
JJ
15202003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1521
1522 * ia64-tdep.c: Change all occurrences of
1523 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1524 (ia64_frame_prev_register): Minor whitespace change.
1525
4beec2b7
MC
15262003-10-20 Michael Chastain <mec@shout.net>
1527
1528 * config/djgpp/fnchange.lst: Add lines for:
1529 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1530 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1531 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1532 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1533 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1534 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1535 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1536
92ad9cd9
AC
15372003-10-20 Andrew Cagney <cagney@redhat.com>
1538
1539 * values.c (register_value_being_returned): Update comments. Use
1540 "gdbarch_return_value" when available.
1541 (using_struct_return): Ditto.
1542 (set_return_value): Ditto. Use "gdbarch_return_value" when
1543 available.. Print a warning, and not an error, when an unhandled
1544 return type is encountered.
1545 * infcmd.c: Include "gdb_assert.h".
1546 (print_return_value): When gdbarch_return_value_p, and using
1547 struct return, assume that the value is not available.
1548 * defs.h (return_value_convention): Define.
1549 * gdbarch.sh (gdbarch_return_value): New predicate method.
1550 * gdbarch.h, gdbarch.c: Re-generate
1551 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1552
198beae2
AC
15532003-10-20 Andrew Cagney <cagney@redhat.com>
1554
1555 * symtab.c: Replace "struct sec" with "struct bfd_section".
1556 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1557
24d693a6 15582003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1559
1560 * config/djgpp/fnchange.lst: Add lines for:
1561 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1562 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1563 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1564
21ad8dc3
MK
15652003-10-19 Mark Kettenis <kettenis@gnu.org>
1566
1567 * amd64fbsd-nat.c (fetch_inferior_registers,
1568 store_inferior_registers): Remove functions.
1569 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1570
cced5e27
MK
15712003-10-18 Mark Kettenis <kettenis@gnu.org>
1572
1573 Add NetBSD/amd64 native configuration:
1574 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1575 * amd64nbsd-tdep.c: New file.
1576 * amd64nbsd-nat.c: New file.
1577 * amd64bsd-nat.c: New file.
1578 * config/i386/nbsd64.mh: New file.
1579 * config/i386/nbsd64.mt: New file.
1580 * configure.host: Add x86_64-*-netbsd*.
1581 * configure.tgt: Add x86_64-*-netbsd*.
1582 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1583 New targets.
1584 * NEWS (New native configurations): Mention NetBSD/amd64.
1585
666de3fd
MC
15862003-10-17 Michael Chastain <mec@shout.net>
1587
1588 * config/djgpp/fnchange.lst: Remove dead lines for:
1589 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1590 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1591 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1592 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1593 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1594 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1595 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1596 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1597 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1598 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1599 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1600 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1601 gdb/config/sparc/tm-sparclite.h,
1602 gdb/gdbtk/generic/ChangeLog-2001,
1603 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1604 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1605 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1606 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1607 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1608 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1609 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1610 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1611 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1612 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1613 itcl/iwidgets3.0.0/demos/fileselectionbox,
1614 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1615 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1616 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1617 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1618 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1619 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1620 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1621 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1622 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1623 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1624 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1625 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1626 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1627 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1628 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1629 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1630 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1631 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1632 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1633 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1634 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1635 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1636 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1637 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1638 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1639 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1640 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1641 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1642 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1643 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1644 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1645 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1646 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1647 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1648 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1649 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1650 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1651 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1652 itcl/iwidgets3.0.0/demos/scrolledframe,
1653 itcl/iwidgets3.0.0/demos/scrolledhtml,
1654 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1655 itcl/iwidgets3.0.0/demos/scrolledtext,
1656 itcl/iwidgets3.0.0/demos/selectionbox,
1657 itcl/iwidgets3.0.0/demos/selectiondialog,
1658 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1659 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1660 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1661 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1662 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1663 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1664 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1665 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1666 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1667 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1668 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1669 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1670 itcl/iwidgets3.0.0/doc/selectionbox.n,
1671 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1672 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1673 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1674 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1675 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1676 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1677 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1678 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1679 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1680 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1681 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1682 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1683 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1684 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1685 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1686 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1687 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1688 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1689 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1690 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1691 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1692 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1693 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1694 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1695 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1696 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1697 itcl/iwidgets3.0.0/tests/selectionbox.test,
1698 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1699 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1700 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1701 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1702 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1703 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1704 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1705 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1706 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1707 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1708 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1709 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1710 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1711 tk/mac/tkMacProjects.sit.hqx.
1712
1e3ff5ad
AC
17132003-10-17 Andrew Cagney <cagney@redhat.com>
1714
8db32d44
AC
1715 * target.c (target_section_by_addr): New function.
1716 (do_xfer_memory): Use "target_section_by_addr".
1717 * target.h (target_section_by_addr): Declare.
1718
1e3ff5ad
AC
1719 * target.h (struct target_ops): Add "to_read_partial" and
1720 "to_write_partial", delete "to_query".
1721 (target_read_partial, target_write_partial): Declare.
1722 (target_read, target_write): Declare.
1723 (target_query): Delete macro.
1724 * target.c (target_read_partial): New function.
1725 (target_write_partial, target_read, target_write): New function.
1726 (update_current_target): Delete inheritance of "to_query". Add
1727 comments about "to_read_partial" and "to_write_partial".
1728 (debug_to_partial_read, debug_to_partial_write): New functions.
1729 (debug_to_query): Delete function.
1730 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1731 instead of "to_query".
1732 * remote.c (remote_read_partial): Replace "remote_query".
1733 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1734 (init_remote_async_ops): Ditto.
1735 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1736 "target_read_partial" instead of "target_query".
1737 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1738 Use "target_read_partial" instead of "target_query".
1739
48c66725
JJ
17402003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1741
1742 * frame.h (struct frame_id): Add new field: special_addr.
1743 (frame_id_build_special): New prototype.
1744 * frame.c (frame_id_build_special): New function.
1745 (frame_id_build): Change to call frame_id_build_special().
1746 (frame_id_eq): Change to also test special_addr field.
1747 (frame_id_inner): Update comment.
1748
7998dfc3
AC
17492003-10-17 Andrew Cagney <cagney@redhat.com>
1750
1751 * target.c (update_current_target): Perform the target cleanup.
1752 Put the target stack beneath the squashed "current_target".
1753 (add_target): Delete disabled call to "cleanup_target".
1754 (cleanup_target): Delete function.
1755 (push_target, unpush_target): Do not call "cleanup_target".
1756
9c04404e 17572003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1758
1759 * target.c (target_stack): Change to a static target_ops.
1760 (update_current_target): Walk the "struct target_ops" stack.
1761 (pop_target, do_xfer_memory, target_info): Ditto.
1762 (find_target_beneath): Ditto.
1763 (push_target): Rewrite to use the "struct target_ops" stack.
1764 (unpush_target): Ditto.
1765 * target.h (struct target_stack_item): Delete definition.
1766 (target_stack): Delete declaration.
1767 (struct target_ops): Add field "beneath".
1768
c98a2b49 17692003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1770
1771 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1772 declaration.
1773 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1774 (h8300_examine_prologue): Use h8300_normal_mode flag
1775 (h8300_gdbarch_init): Set architecture info for normal mode
1776
506fb367
DJ
17772003-10-16 Daniel Jacobowitz <drow@mvista.com>
1778
1779 * remote.c (remote_protocol_vcont): New variable.
1780 (set_remote_protocol_vcont_packet_cmd): New function.
1781 (show_remote_protocol_vcont_packet_cmd): New function.
1782 (init_all_packet_configs): Handle remote_protocol_vcont.
1783 (remote_vcont_probe): New function.
1784 (remote_vcont_resume): New function.
1785 (remote_resume): Use it.
1786 (remote_async_resume): Call remote_resume.
1787 (_initialize_remote): Add verbose-resume packet commands.
1788
65815ea1
AC
17892003-10-16 Andrew Cagney <cagney@redhat.com>
1790
1791 * infrun.c (handle_inferior_event): Add comment about
1792 "frame_id_inner" being too weak.
1793
40324f1b
EZ
17942003-10-16 Elena Zannoni <ezannoni@redhat.com>
1795
1796 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1797 second parameter, which is always null. Remove
1798 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1799 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1800 accordingly.
1801 * somsolib.c (som_solib_create_inferior_hook,
1802 som_solib_desire_dynamic_linker_symbols): Update callers.
1803 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1804
18052003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1806
1807 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1808 debug interface, SDI (Scalable Debug Interface).
1809 * NEWS: Mention m32r SDI protocol was supported.
1810 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1811 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1812
51931cbb
JJ
18132003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1814
1815 * ia64-linux-tdep.c: Include gdbcore.h.
1816 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1817 (ia64_linux_sigcontext_register_addr): Find the address of the
1818 sigcontext area stored in the sigframe instead of using
1819 a magic offset constant.
1820
84e7fd53
AC
18212003-10-15 Andrew Cagney <cagney@redhat.com>
1822
1823 * remote.c (remote_search): Delete function.
1824 * target.h (target_search): Delete disabled macro.
1825 (struct target_ops): Delete disabled field "to_search".
1826
0f4d7c52
KB
18272003-10-14 Kevin Buettner <kevinb@redhat.com>
1828
1829 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1830 instead of deprecated_inside_entry_file().
1831
2e952408
CV
18322003-10-14 Corinna Vinschen <vinschen@redhat.com>
1833
1834 * sh-tdep.c: Fix copy/paste hangover in comment.
1835 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1836 mode.
1837 (sh3e_sh4_extract_return_value): Ditto.
1838
7e86466e
RH
18392003-10-13 Richard Henderson <rth@redhat.com>
1840
1841 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1842 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1843 match c_val_print a bit closer.
1844
46a16dba
KB
18452003-10-13 Kevin Buettner <kevinb@redhat.com>
1846
1847 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1848 (frv_gdbarch_adjust_breakpoint_address): New function.
1849 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1850 method.
1851
76897487
KB
18522003-10-13 Kevin Buettner <kevinb@redhat.com>
1853
1854 * breakpoint.h (struct breakpoint): Add new member
1855 ``requested_address''.
1856 * breakpoint.c (breakpoint_adjustment_warning)
1857 (adjust_breakpoint_address): New static functions.
1858 (print_it_typical): Issue warning if breakpoint's address is different
1859 from its requested address.
1860 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1861 (breakpoint_re_set_one): Set breakpoint's
1862 ``requested_address'' field. Set ``address'' field to the
1863 result of calling adjust_breakpoint_address() on the requested
1864 address.
1865
a1131521
KB
18662003-10-13 Kevin Buettner <kevinb@redhat.com>
1867
1868 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1869 * gdbarch.h, gdbarch.c: Regenerate.
1870
6ce6d90f
MK
18712003-10-11 Mark Kettenis <kettenis@gnu.org>
1872
155c1d33
MK
1873 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1874 TDEP->sc_num_regs.
1875
8a96bc77
MK
1876 * i386fbsd-tdep.c: New file.
1877 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1878 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1879 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1880 i386bsd-tdep.c.
1881 (_initialize_i386fbsd_tdep): New function.
1882 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1883 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1884 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1885 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1886 TDEP->sc_num_regs.
1887 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1888 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1889 to initialize TDEP->sc_num_regs.
1890 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1891 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1892 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1893 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1894 FreeBSD ELF OS/ABI's here.
1895 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1896 (i386fbsd-tdep.o): New target.
1897 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1898 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1899
477f40d1
MK
1900 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1901 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1902 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1903 in initialization of TDEP->sc_num_regs.
1904
c6b33596
MK
1905 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1906 (x86_64_init_abi): Initialize regset_from_core_section if
1907 appropriate.
1908
8446b36a
MK
1909 * i386-tdep.c (i386_regset_from_core_section): New function.
1910 (i386_gdbarch_init): Initialize regset_from_core_section if
1911 appropriate.
1912 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1913
c783cbd6
MK
1914 * i386-tdep.h (struct regset): Declare opaque.
1915
6ce6d90f
MK
1916 * gdbarch.sh (regset_from_core_section): New method.
1917 (struct regset): Declare opaque.
1918 * gdbarch.c, gdbarch.h: Regenerated.
1919
b98ed7be
AM
19202003-10-11 Alan Modra <amodra@bigpond.net.au>
1921
1922 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1923 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1924 Correct test for pc within section.
1925
f6214256
MK
19262003-10-11 Mark Kettenis <kettenis@gnu.org>
1927
1928 * gdbarch.sh: Remove trailing whitepsace from comments.
1929
a8f4cde1
RM
19302003-10-08 Roland McGrath <roland@redhat.com>
1931
1932 * gcore.c (make_mem_sec): Function removed, folded into ...
1933 (gcore_create_callback): ... here. To omit a section, clear its
1934 SEC_LOAD bit rather than zeroing its size.
1935 Omit read-only sections only if they correspond to a known disk file.
1936 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1937
74276724
MS
19382003-10-10 Michael Snyder <msnyder@redhat.com>
1939
1940 * d10v-tdep.c: Fix typo in comment.
1941
e754ae69
AC
19422003-10-10 Andrew Cagney <cagney@redhat.com>
1943
1944 * rs6000-tdep.c (e500_store_return_value): Delete function.
1945 (e500_extract_return_value): Delete function.
1946 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1947 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1948 "ppc_sysv_abi_restore_return_value" where applicable.
1949 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1950 (ppc_sysv_abi_extract_return_value): Declare.
1951 (ppc_sysv_abi_broken_store_return_value): Declare.
1952 (ppc_sysv_abi_broken_extract_return_value): Declare.
1953 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1954 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1955 start of file.
1956 (do_ppc_sysv_return_value): New function.
1957 (ppc_sysv_abi_extract_return_value): New function.
1958 (ppc_sysv_abi_store_return_value): New function.
1959 (ppc_sysv_abi_broken_extract_return_value): New function.
1960 (ppc_sysv_abi_broken_store_return_value): New function.
1961 (ppc_sysv_abi_use_struct_convention): Call
1962 do_ppc_sysv_return_value.
1963
8d4ce20a
JB
19642003-10-10 J. Brobecker <brobecker@gnat.com>
1965
1966 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1967 to lookup the main function symbol.
1968
afce3d2a
CV
19692003-10-10 Corinna Vinschen <vinschen@redhat.com>
1970
1971 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1972 types correctly.
1973 (sh_push_dummy_call_fpu): Fix argument passing rules.
1974 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1975 float types.
1976 (sh3e_sh4_store_return_value): Ditto.
1977
7fe958be
EZ
19782003-10-10 Elena Zannoni <ezannoni@redhat.com>
1979
1980 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1981 comment.
1982
3f997a97
CV
19832003-10-10 Corinna Vinschen <vinschen@redhat.com>
1984
1985 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1986 more readable code. Accomodate passing of bitfields.
1987
8be9034a
AC
19882003-10-10 Andrew Cagney <cagney@redhat.com>
1989
1990 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1991 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1992 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1993 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1994 (ppc64_sysv_abi_push_dummy_call): New function.
1995 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1996 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1997 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1998
85a453d5
KI
19992003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2000
2001 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2002 * README: Ditto.
2003 * d10v-tdep.c: Ditto.
2004 * h8300-tdep.c: Ditto.
2005 * remote-e7000.c: Ditto.
2006 * remote-hms.c: Ditto.
2007 * ser-e7kpc.c: Ditto.
2008 * sh-stub.c: Ditto.
2009 * sh-tdep.c: Ditto.
2010 * sh-tdep.h: Ditto.
2011 * sh3-rom.c: Ditto.
2012 * sh64-tdep.c: Ditto.
2013 * top.c: Ditto.
2014 * wince.c: Ditto.
2015 * config/d10v/d10v.mt: Ditto.
2016 * config/sh/embed.mt: Ditto.
2017 * config/sh/linux.mt: Ditto.
2018 * config/sh/tm-linux.h: Ditto.
2019 * config/sh/tm-sh.h: Ditto.
2020 * config/sh/wince.mt: Ditto.
2021
221c12ff
AC
20222003-10-09 Andrew Cagney <cagney@redhat.com>
2023
2024 * ppc-tdep.h (struct type): Declare opaque.
2025 * x86-64-tdep.h (struct regcache): Declare opaque.
2026 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2027 coding style.
2028
ef5200c1
AC
20292003-10-09 Andrew Cagney <cagney@redhat.com>
2030
2031 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2032 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2033 (SOFTWARE_SINGLE_STEP_P): Ditto.
2034 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2035 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2036 (SOFTWARE_SINGLE_STEP_P): Ditto.
2037 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2038 software_single_step to rs6000_software_single_step.
a8f4cde1 2039
9644bbdd
AC
20402003-10-09 Andrew Cagney <cagney@redhat.com>
2041
2042 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2043
db72fa6b
MS
20442003-10-09 Michael Snyder <msnyder@redhat.com>
2045
f3efb16c
MS
2046 * frame.h: Fix typo in comment.
2047 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2048 * d10v-tdep.c: Random whitespace/comment tweaks.
2049
9a5cef92
EZ
20502003-10-09 Elena Zannoni <ezannoni@redhat.com>
2051
2052 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2053 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2054 on stack.
a8f4cde1 2055
9a5cef92
EZ
2056 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2057 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2058 in detail.
a8f4cde1 2059
0f317a0c
DJ
20602003-10-09 Daniel Jacobowitz <drow@mvista.com>
2061
2062 * remote-mips.c (mips_initialize): Remove unneeded call to
2063 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2064
bbab2f46
DJ
20652003-10-09 Daniel Jacobowitz <drow@mvista.com>
2066
2067 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2068 a memory pointer.
2069
550950b8
JJ
20702003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2071
2072 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2073 for any lwp we resume.
2074 (running_callback): Add lwps that have pending status events
2075 against them to be considered running.
2076
15c69bc7
KI
20772003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2078
2079 * m32r-tdep.c : Include "dis-asm.h".
2080 * Makefile.in (m32r-tdep.o): Update dependencies.
2081
51065942
JB
20822003-10-06 J. Brobecker <brobecker@gnat.com>
2083
2084 * completer.h (get_gdb_completer_word_break_characters): Delete.
2085 * completer.c: include language.h.
2086 (gdb_completer_word_break_characters): Delete.
2087 (get_gdb_completer_word_break_characters): Delete.
2088 (location_completer): Use the word break characters of the current
2089 language.
2090 (complete_line): Likewise.
2091 (line_completion_function): Likewise.
2092 (skip_quoted_chars): Likewise.
2093 * Makefile.in (completer.o): Add dependency on language.h.
2094 * top.c (init_main): Set the readline word break characters
2095 to GDB's default word break characters.
2096
6084f43a
JB
20972003-10-06 J. Brobecker <brobecker@gnat.com>
2098
2099 * language.h (language_defn): new field, la_word_break_characters.
2100 * language.c (unknown_language_defn): Set new field to
2101 default_word_break_characters.
2102 (auto_language_defn): Likewise.
2103 (local_language_defn): Likewise.
2104 * ada-lang.c (ada_language_defn): Likewise.
2105 * c-lang.c (c_language_defn): Likewise.
2106 (cplus_language_defn): Likewise.
2107 (asm_language_defn): Likewise.
2108 (minimal_language_defn): Likewise.
2109 * f-lang.c (f_language_defn): Likewise.
2110 * jv-lang.c (java_language_defn): Likewise.
2111 * m2-lang.c (m2_language_defn): Likewise.
2112 * objc-lang.c (objc_language_defn): Likewise.
2113 * p-lang.c (pascal_language_defn): Likewise.
2114 * scm-lang.c (scm_language_defn): Likewise.
2115
944fcfab
AC
21162003-10-06 Andrew Cagney <cagney@redhat.com>
2117
2118 * ppc-sysv-tdep.c: Re-indent.
2119
9f0a5303
JB
21202003-10-06 J. Brobecker <brobecker@gnat.com>
2121
2122 * language.h (default_word_break_characters): Add prototype.
2123 * language.c (default_word_break_characters): New function.
2124
7270b6ed
AS
21252003-10-06 Andreas Schwab <schwab@suse.de>
2126
2127 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2128 with %eax.
2129
a5d61f66
AC
21302003-10-06 Andrew Cagney <cagney@redhat.com>
2131
2132 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2133 "h8500-tdep.c".
2134 (z8k-tdep.o): Delete custom build rule.
2135
28a86f5c
AC
21362003-10-06 Andrew Cagney <cagney@redhat.com>
2137
1bfd8a83
AC
2138 * Makefile.in: Update all dependencies.
2139
17144ef8
AC
2140 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2141 No longer list PA as as obsolete candidate. List m32r as
2142 broken instead of obsolete.
a8f4cde1 2143
a5679ae5
AC
2144 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2145 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2146 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2147 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2148 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2149 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2150 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2151 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2152 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2153 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2154 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2155 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2156 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2157 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2158 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2159 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2160 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2161 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2162 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2163 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2164 * config/z8k/z8k.mt: Ditto.
2165
4a8269c0
AC
2166 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2167 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2168 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2169 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2170 sparclite were removed.
2171 * configure.host, configure.tgt: Remove corresponding tuples.
2172
41989fcd
AC
2173 * breakpoint.c, breakpoint.h: Remove obsolete code.
2174 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2175 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2176 * stabsread.h, xcoffread.c: Ditto.
2177
28a86f5c
AC
2178 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2179 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2180 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2181 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2182
4efdaa0d
DL
21832003-10-06 David Lecomber <dsl@sources.redhat.com>
2184
2185 * f-valprint.c: Reformatting
2186
ae53de43
MK
21872003-10-06 Mark Kettenis <kettenis@gnu.org>
2188
a8bb57e7
MK
2189 * x86-64-tdep.c: Remove duplicate comment.
2190
ae53de43
MK
2191 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2192 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2193 names for return values. This fixes a bug since we looked at %rbx
2194 instead of %rdx.
2195
473f17b0
MK
21962003-10-05 Mark Kettenis <kettenis@gnu.org>
2197
2c261fae
MK
2198 * x86-64-tdep.c: Include "regset.h".
2199
473f17b0
MK
2200 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2201 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2202 sizeof_fpregset.
2203 * i386-tdep.c: Include "regset.h".
2204 (i386_supply_gregset): New function.
2205 (i386_supply_fpregset): New function.
2206 (i386_gdbarch_init): Initialze register set-related members of
2207 TDEP.
2208 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2209 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2210
afd48b75
AC
22112003-10-03 Andrew Cagney <cagney@redhat.com>
2212
2213 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2214 set extract_return_value, store_return_value and
2215 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2216 ppc64_sysv_abi_store_return_value and
2217 ppc64_sysv_abi_use_struct_convention.
2218 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2219 (ppc64_sysv_abi_store_return_value): Declare.
2220 (ppc64_sysv_abi_use_struct_convention): Declare.
2221 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2222 (ppc64_sysv_abi_extract_return_value): New function.
2223 (ppc64_sysv_abi_store_return_value): New function.
2224 (ppc64_sysv_abi_use_struct_convention): New function.
2225 (ppc64_sysv_abi_return_value): New function.
2226
9b540880
AC
22272003-10-03 Andrew Cagney <cagney@redhat.com>
2228
2229 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2230 convert a descriptor to a function when it's in the ".opd"
2231 section.
2232
8748518b
CV
22332003-10-03 Corinna Vinschen <vinschen@redhat.com>
2234
2235 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2236 reg_size to keep GCC silent.
2237
0fd85043
CV
22382003-10-03 Corinna Vinschen <vinschen@redhat.com>
2239
2240 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2241 base for DW_EH_PE_textrel encodings.
2242 (read_encoded_value): Add a DW_EH_PE_textrel case.
2243 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2244 section.
2245
37b517aa
MK
22462003-10-03 Mark Kettenis <kettenis@gnu.org>
2247
2248 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2249
12c266ea
AC
22502003-10-02 Andrew Cagney <cagney@redhat.com>
2251
2252 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2253 REGISTER_RAW_SIZE.
2254 * gdbarch.h, gdbarch.c: Re-generate.
2255 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2256 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2257 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2258 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2259 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2260 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2261 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2262 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2263 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2264 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2265 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2266 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2267 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2268 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2269 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2270 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2271
78ba4af6
JB
22722003-10-02 Jim Blandy <jimb@redhat.com>
2273
2274 * dwarf2read.c (struct die_info): Doc fix.
2275
617daa0e
CV
22762003-10-02 Corinna Vinschen <vinschen@redhat.com>
2277
2278 * sh-tdep.c: Running thru gdb_indent.sh.
2279
e5e33cd9
CV
22802003-10-02 Corinna Vinschen <vinschen@redhat.com>
2281
2282 * sh-tdep.c (sh_justify_value_in_reg): New function.
2283 (sh_stack_allocsize): Ditto.
2284 (flt_argreg_array): New array used for floating point argument
2285 passing.
2286 (sh_init_flt_argreg): New function.
a8f4cde1 2287 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2288 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2289 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2290 Fix argument passing strategy.
2291 (sh_push_dummy_call_nofpu): Ditto.
2292
5fe830e4
AC
22932003-10-01 Andrew Cagney <cagney@redhat.com>
2294
2295 * value.h (register_value_being_returned): Declare. Replace
2296 "value_being_returned".
2297 * infcall.c (call_function_by_hand): Use
2298 register_value_being_returned.
2299 * infcmd.c (print_return_value): Call
2300 "register_value_being_returned", handle struct return locally.
2301 * values.c (register_value_being_returned): New function. Replace
2302 "value_being_returned".
a8f4cde1 2303
5fe830e4 23042003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2305
2306 * linux-proc.c (linux_do_registers): New function.
2307 (linux_make_note_section): Use linux_do_registers in case of
2308 single threaded inferior programs.
2309
64f395bf
AC
23102003-10-01 Andrew Cagney <cagney@redhat.com>
2311
2312 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2313 use STRUCT_ADDR. When not using "struct return convention", pass
2314 "0" to "value_being_returned". Add FIXMEs.
2315 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2316 value_being_returned. Add comments.
2317 * values.c (value_being_returned): Add fixme.
2318 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2319 (hppa_value_returned_from_stack): Add FIXME.
2320
639d11d3
DC
23212003-09-30 David Carlton <carlton@kealia.com>
2322
2323 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2324 'has_children' and 'next' by 'child' and 'sibling'.
2325 (read_comp_unit): Rework algorithm, breaking body into
2326 read_die_and_children and read_die_and_siblings.
2327 (read_die_and_children, read_die_and_siblings): New.
2328 (read_full_die): Add 'has_children' argument; set it instead of
2329 the die's 'has_children' field. Minor formatting cleanup.
2330 (free_die_list): Use die->child and die->sibling instead of
2331 die->next.
2332 (dump_die_list): Ditto.
2333 (sibling_die): Use die->sibling.
2334 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2335 'has_children' and 'next' fields.
a8f4cde1
RM
2336 (process_die, read_file_scope, read_func_scope)
2337 (read_lexical_block_scope, read_structure_scope)
2338 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2339 (read_namespace, read_subroutine_type, dump_die): Ditto.
2340
5bffac25
AC
23412003-09-30 Andrew Cagney <cagney@redhat.com>
2342
2343 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2344 to 224, not 220.
2345
f30992d4
AC
23462003-09-30 Andrew Cagney <cagney@redhat.com>
2347
2348 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2349 REGISTER_VIRTUAL_SIZE.
2350 * gdbarch.h, gdbarch.c: Regenerate.
2351 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2352 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2353 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2354
2e092625
AC
23552003-09-29 Andrew Cagney <cagney@redhat.com>
2356
2357 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2358 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2359 * gdbarch.h, gdbarch.c: Regenerate.
2360 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2361 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2362
2363 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2364 * remote-vxmips.c (vx_read_register): Ditto.
2365 * remote-vx68.c (vx_read_register): Ditto.
2366 * gnu-nat.c (inf_validate_procs): Ditto.
2367
7a5dd6ee
JB
23682003-09-29 J. Brobecker <brobecker@gnat.com>
2369
2370 * infcall.c (call_function_by_hand): Fix build failure
2371 introduced in the previous change to this file.
2372
1fe43d45
AC
23732003-09-29 Andrew Cagney <cagney@redhat.com>
2374
2375 * NEWS: Mention Objective-C.
2376
e28a332c
JG
23772003-09-29 Jerome Guitton <guitton@act-europe.fr>
2378
2379 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2380 test if the register has been saved on the stack.
2381 (arm_scan_prologue_cache): When analysing the instruction
2382 "str lr, [sp, #-4]", save the address where lr has been stored.
2383
9ff63c35
AC
23842003-09-28 Andrew Cagney <cagney@redhat.com>
2385
7f5f525d
AC
2386 * frame.c (frame_read_unsigned_register): Delete function.
2387 * frame.h (frame_read_unsigned_register): Delete declaration.
2388 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2389 get_frame_register_unsigned.
2390 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2391 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2392 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2393
7f5f525d
AC
2394 * frame.h (frame_read_register): Delete declaration.
2395 * frame.c (frame_read_register): Delete function.
2396 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2397 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2398 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2399 * mips-tdep.c (mips_register_to_value): Ditto.
2400 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2401 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2402
2403 * frame.c (frame_read_signed_register): Delete function.
2404 (frame_read_unsigned_register): Update comments.
2405 * frame.h (frame_read_signed_register): Delete declaration.
2406 * h8300-tdep.c (h8300_print_register): Use
2407 get_frame_register_signed.
2408 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2409
9ff63c35
AC
2410 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2411 Rename VALUE_RETURNED_FROM_STACK.
2412 * infcmd.c (print_return_value): Update.
2413 * infcall.c (call_function_by_hand): Update.
2414
41d041d6
MK
24152003-09-28 Mark Kettenis <kettenis@gnu.org>
2416
2417 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2418 regcache argument and reverse the order of the other two
2419 arguments. Remove local regcache variable. Determine
2420 architecture from REGCACHE. Update comments.
2421 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2422 reverse the order of the other two arguments. Remove local
2423 regcache variable. Determine architecture from REGCACHE. Update
2424 comments.
2425 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2426 prototypes. Update comments.
2427 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2428 comment.
2429 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2430 Update.
2431 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2432 * i386-interix-nat.c (supply_fpregset): Update.
2433 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2434 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2435 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2436 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2437 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2438 Update.
2439 * i386obsd-tdep.c (fetch_core_registers): Update.
2440 * i386v4-nat.c (supply_fpregset): Update.
2441 * x86-64-linux-nat.c (supply_fpregset): Update.
2442 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2443
1cb97e17
MK
24442003-09-27 Mark Kettenis <kettenis@gnu.org>
2445
5716833c
MK
2446 * i386-tdep.h: Put opaque declarations in alphabetical
2447 order. Remove spurious whitespace.
2448 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2449 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2450 * i386-tdep.c (MM0_REGNUM): Remove define.
2451 (i386_mmx_regnum_p): Add gdbarch argument.
2452 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2453 Rewrite using new macro definitions for FPU/SSE registers.
2454 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2455 definitions from i387-tdep.h.
2456 (i386_register_name): Update.
2457 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2458 new macro definitions for FPU/SSE registers.
2459 (i386_extract_return_value): Determine whether floating-point
2460 registers are present by examining REGCACHE's architecture.
2461 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2462 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2463 FPU/SSE registers.
2464 (i386_register_type): Update.
2465 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2466 definitions for FPU registers. Use REGCACHE's architecture to
2467 determine the appropriate register numbers.
2468 (i386_pseudo_register_read, i386_pseudo_register_write,
2469 i386_register_reggroup_p): Update.
2470 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2471 TDEP->mm0_regnum.
2472 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2473 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2474 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2475 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2476 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2477 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2478 *' to `void *'.
2479 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2480 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2481 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2482 definitions for FPU/SSE registers.
2483 (FXSAVE_MXCSR_ADDR): New define.
2484 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2485 TDEP->mm0_regnum.
2486 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2487 (I387_ST0_REGNUM): Define.
2488
41d35cb0
MK
2489 * regcache.h (get_regcache_arch): New prototype.
2490 * regcache.c (get_regcache_arch): New function.
2491
54e74f72
MK
2492 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2493 whitespace.
2494
1cb97e17
MK
2495 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2496 Initialize using ARRAY_SIZE.
2497
0968aa8c
AC
24982003-09-27 Andrew Cagney <cagney@redhat.com>
2499
2500 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2501 "init_frame_pc_default".
2502 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2504 * vax-tdep.c (vax_gdbarch_init): Update.
2505 * v850-tdep.c (v850_gdbarch_init): Update.
2506 * sh64-tdep.c (sh64_gdbarch_init): Update.
2507 * s390-tdep.c (s390_gdbarch_init): Update.
2508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2509 * mcore-tdep.c (mcore_gdbarch_init): Update.
2510 * h8300-tdep.c (h8300_gdbarch_init): Update.
2511 * cris-tdep.c (cris_gdbarch_init): Update.
2512 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2513
54c84734
MK
25142003-09-26 Mark Kettenis <kettenis@gnu.org>
2515
2516 * regset.h: New file.
2517 * Makefile.in (regset_h): Add.
2518
1b1d3794
AC
25192003-09-25 Andrew Cagney <cagney@redhat.com>
2520
2521 * frame.h (deprecated_frame_saved_regs): Rename
2522 get_frame_saved_regs.
2523 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2524 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2525 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2526 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2527 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2528
e6beb428
AC
25292003-09-25 Andrew Cagney <cagney@redhat.com>
2530
2531 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2532 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2533 and Java.
2534 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2535 arm*-*-* do not use the new frame code.
2536
710122da
DC
25372003-09-25 David Carlton <carlton@kealia.com>
2538
2539 * c-exp.y: Remove 'register' declarations.
2540 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2541
79c2c32d
DC
25422003-09-25 David Carlton <carlton@kealia.com>
2543
2544 * c-exp.y: Include cp-support.h. Add qualified_type.
2545 (yylex): Delete nested type hack; add comments.
2546 * cp-namespace.c (cp_lookup_nested_type): New function.
2547 * cp-support.h: Declare cp_lookup_nested_type.
2548 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2549 instead of value_struct_elt_for_reference.
2550 * valops.c: Include cp-support.h.
2551 (value_aggregate_elt): New function.
2552 (value_namespace_elt): Ditto.
2553 (value_struct_elt_for_reference): Make static.
2554 * value.h: Delete declaration of value_struct_elt_for_reference;
2555 add declaration for value_aggregate_elt.
2556 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2557 (valops.o): Ditto.
2558
898c62f5
DJ
25592003-09-25 Daniel Jacobowitz <drow@mvista.com>
2560
2561 * stack.c: Include "reggroups.h".
2562 (frame_info): Only display registers in all_reggroup.
2563 * Makefile.in (stack.o): Update dependencies.
2564
28cd8767
JG
25652003-09-25 Jerome Guitton <guitton@act-europe.fr>
2566
2567 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2568 "add ip, sp #n" in the prologue.
2569 (arm_scan_prologue): Ditto.
2570
a4ab2b5d
JG
25712003-09-25 Jerome Guitton <guitton@act-europe.fr>
2572
2573 * MAINTAINERS (write after approval): Add myself.
2574
3f244638
AS
25752003-09-25 Andreas Schwab <schwab@suse.de>
2576
2577 * m68k-tdep.c: Include "dwarf2-frame.h".
2578 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2579 * Makefile.in (m68k-tdep.o): Update dependencies.
2580
1c0159e0
CV
25812003-09-25 Corinna Vinschen <vinschen@redhat.com>
2582
2583 * sh-tdep.c (struct frame_extra_info): Remove.
2584 (struct sh_frame_cache): New structure.
2585 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2586 (GET_TARGET_REG): Ditto but target register.
2587 (GET_PUSHED_REG): Remove.
2588 (IS_MOV_ARG_TO_REG): New macro.
2589 (IS_MOV_ARG_TO_IND_R14): New macro.
2590 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2591 (IS_MOVW_PCREL_TO_REG): New macro.
2592 (IS_MOVL_PCREL_TO_REG): New macro.
2593 (IS_SUB_REG_FROM_SP): New macro.
2594 (IS_ARG_MOV): Remove.
2595 (IS_MOV_TO_R14): Remove.
2596 (IS_RESTORE_FP): New macro.
2597 (IS_RTS): New macro.
2598 (IS_LDS): New macro.
2599 (IS_MOV_FP_SP): New macro.
2600 (IS_ADD_REG_TO_FP): New macro.
2601 (IS_ADD_IMM_FP): New macro.
2602 (sh_skip_prologue_hard_way): Remove.
2603 (sh_saved_pc_after_call): Remove.
2604 (sh_frame_chain): Remove.
2605 (sh_find_callers_reg): Remove.
a8f4cde1 2606 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2607 (sh_fp_frame_init_saved_regs): Remove.
2608 (sh_init_extra_frame_info): Remove.
2609 (sh_analyze_prologue): New function.
2610 (sh_skip_prologue): Remove deprecated code. Rely on new function
2611 sh_analyze_prologue when after_prologue fails.
2612 (sh_frame_saved_pc): Remove.
2613 (sh_alloc_frame_cache): New function.
2614 (sh_frame_cache): Ditto.
2615 (sh_frame_prev_register): Ditto.
2616 (sh_frame_this_id): Ditto.
2617 (sh_frame_unwind): New structure defining the heuristic frame
2618 sniffer interface.
2619 (sh_frame_sniffer): New function.
2620 (sh_unwind_sp): Ditto.
2621 (sh_unwind_pc): Ditto.
2622 (sh_unwind_dummy_id): Ditto.
2623 (sh_frame_base_address): Ditto.
2624 (sh_frame_base): New structure defining new frame base code.
2625 (sh_in_function_epilogue_p): New function.
2626 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2627 code and to call all new code instead. Initialize dwarf2 and
2628 heuristic frame sniffer.
2629
5f9769d1
PH
26302003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2631
a8f4cde1
RM
2632 * parser-defs.h (struct exp_descriptor): New definition, containing
2633 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2634 evaluating expressions.
2635 (exp_descriptor_standard): Declare new variable.
2636 (print_subexp): Make global and declare here (from expprint.c).
2637 (dump_subexp): Ditto.
2638 (dump_subexp_body_standard): Declare.
2639 (operator_length_standard): Declare.
2640 (op_name_standard): Declare.
2641 (print_subexp): Declare.
2642 (print_subexp_standard): Declare.
2643
2644 * language.h (struct language_defn): Add la_exp_desc field to hold
2645 pointer to table for language-specific operators.
2646 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2647
2648 * parse.c (operator_length): Move most code to new
5f9769d1 2649 operator_length_standard function. Use language-specific information.
a8f4cde1 2650 (operator_length_standard): New function taking most code from
5f9769d1
PH
2651 operator_length.
2652 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2653
2654 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2655 and OP_EXTENDED_LAST.
a8f4cde1
RM
2656
2657 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2658 Make global; remove static declaration.
2659 Move most code to print_subexp_standard.
a8f4cde1 2660 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2661 print_subexp.
2662 (op_name): Add expression to argument signature.
a8f4cde1 2663 Use langauge-specific op_name.
5f9769d1
PH
2664 Move most code to op_name_standard.
2665 (op_name_standard): New function, containing code formerly in op_name.
2666 (dump_subexp): Use new version of op_name function.
2667 Use language-specific dump_subexp_body, and move most existing code to
2668 dump_subexp_body_standard.
2669 (dump_raw_expression): Use new op_name interface.
2670 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2671 (dump_subexp_body_standard): New function, containing code formerly
2672 in dump_subexp_body.
a8f4cde1 2673
5f9769d1
PH
2674 * language.c (unknown_language): Add default la_exp_desc field and
2675 remove evaluate_exp field.
2676 (auto_language): Ditto.
2677 (local_language): Ditto.
2678 * f-lang.c (f_language_defn): Ditto.
2679 * c-lang.c (c_language_defn): Ditto.
2680 (cplus_language_defn): Ditto.
2681 (asm_language_defn): Ditto.
2682 (minimal_language_defn): Ditto.
2683 * p-lang.c (pascal_language_defn): Ditto.
2684 * m2-lang.c (m2_language_defn): Ditto.
2685 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2686
2687 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2688 Java-specific expression evaluator.
2689 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2690 field.
a8f4cde1 2691 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2692 Scheme-specific expression evaluator.
2693 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2694 field.
2695 * objc-lang.c (print_object_command): Take evaluate_exp from the
2696 la_exp_desc field.
a8f4cde1 2697
5f9769d1 2698 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2699
2700 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2701 la_exp_desc's type.
2702 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2703
24daaebc
PH
27042003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2705
2706 * parser-defs.h (operator_length): Declare.
a8f4cde1 2707
24daaebc
PH
2708 * parse.c (length_of_subexp): Use operator_length to get operator
2709 lengths and arities for operators.
2710 Move most code to new operator_length function.
a8f4cde1 2711 (operator_length): New function absorbing most code from
24daaebc
PH
2712 length_of_subexp.
2713 (prefixify_subexp): Remove large case and use operator_length instead.
2714 (parse_exp_1): Use renamings:
a8f4cde1 2715 dump_prefix_expression => dump_raw_expression and
24daaebc 2716 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2717
24daaebc
PH
2718 * expression.h (dump_prefix_expression): Rename to ...
2719 (dump_raw_expression): New name.
2720 (dump_postfix_expression): Rename to ...
2721 (dump_prefix_expression): New name.
a8f4cde1 2722
24daaebc
PH
2723 * expprint.c (dump_subexp): Make global. Add comment.
2724 Move most existing code to dump_subexp_body.
2725 (dump_subexp_body): New function.
2726 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2727 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2728 work before the expression is prefixified.
2729 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2730 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2731 that's what it does.
a8f4cde1 2732 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2733 prefixified expression.
2734 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2735
8c2957c4
JB
27362003-09-22 Jim Blandy <jimb@redhat.com>
2737
2738 * dwarf2read.c (read_array_type): When building the type for an
2739 array of unspecified length, make sure to choose the upper bound
2740 so that the array's total length comes out to be zero --- that's
2741 how we represent such arrays.
2742
592e3010
MC
27432003-09-22 Michael Chastain <mec@shout.net>
2744
2745 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2746
365c70b1
JJ
27472003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2748
2749 * top.c (quit_force): Fix indirect call to quit_target so
2750 a struct qt_args pointer is passed.
2751
5d6eb653
AC
27522003-09-22 Andrew Cagney <cagney@redhat.com>
2753
2754 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2755 * arch-utils.c (init_frame_pc_noop): Delete function.
2756 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2757 "init_frame_pc".
2758 * mips-tdep.c (mips_gdbarch_init): Ditto.
2759 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2760 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2761 declaration.
2762 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2763 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2764 declaration.
2765 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2766
b222a67f
AG
27672003-09-22 Anthony Green <green@redhat.com>
2768
2769 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2770 declaration.
2771
d5b5ac79
AC
27722003-09-20 Andrew Cagney <cagney@redhat.com>
2773
deafb061
AC
2774 * breakpoint.c: Eliminate ARGSUSED.
2775 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2776 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2777 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2778 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2779 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2780 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2781 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2782 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2783 * wince.c, remote-vx.c: Ditto.
2784
d5b5ac79
AC
2785 * cli/cli-script.c: Remove "register" attributes.
2786 * config/pa/tm-hppa.h: Ditto.
2787 * cli/cli-decode.c: Ditto.
2788 * cli/cli-cmds.c: Ditto.
2789
c6316faa
AC
27902003-09-19 Andrew Cagney <cagney@redhat.com>
2791
2792 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2793 DEPRECATED_NPC_REGNUM.
2794 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2795
f4f99b11
CF
27962003-09-19 Christopher Faylor <cgf@redhat.com>
2797
2798 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2799
1708f284
JB
28002003-09-19 Jim Blandy <jimb@redhat.com>
2801
2802 * macrotab.c (macro_include): Use the correct comparison to find
2803 the appropriate place for this inclusion in the list.
2804
b9fbf434
AC
28052003-09-19 Andrew Cagney <cagney@redhat.com>
2806
2807 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2808 (DEPRECATED_HPUX_TEXT_END): Define.
2809 (deprecated_hpux_text_end): Declare.
2810 (struct target_ops): Declare opaque.
2811 * hppah-nat.c (text_end): Make static.
2812 (deprecated_hpux_text_end): New function.
2813 * exec.c (text_end): Delete global variable.
2814 (NEED_TEXT_START_END): Do not define.
2815 (exec_file_attach): Replace code computing "text_end" code with
2816 call to DEPRECATED_HPUX_TEXT_END.
2817
5b03f266
AC
28182003-09-19 Andrew Cagney <cagney@redhat.com>
2819
2820 * utils.c (align_up, align_down): New functions.
2821 * defs.h (align_up, align_down): Declare.
2822 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2823 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2824 and "align_down".
2825 (round_up, round_down): Delete functions.
2826 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2827 "align_down".
2828 (ROUND_DOWN, ROUND_UP): Delete macros.
2829 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2830 * h8300-tdep.c: Replace "round_up" and "round_down" with
2831 "align_up" and "align_down".
2832 (round_up, round_down): Delete macros.
2833 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2834 "align_down".
2835 (ROUND_UP, ROUND_DOWN): Delete macros.
2836
51db5742
JB
28372003-09-18 J. Brobecker <brobecker@gnat.com>
2838
2839 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2840 hard-coded constant. Use the proper machine name instead.
2841
77949794
AC
28422003-09-17 Andrew Cagney <cagney@redhat.com>
2843
2844 * sparc-tdep.c (legacy_register_name): Delete function.
2845 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2846 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2847 * infcmd.c (gdb_register_name): Delete variable.
2848 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2849 REGISTER_NAME and "tm.h".
2850 * gdbarch.h, gdbarch.c: Regenerate.
2851 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2852 REGISTER_NAMES in comments.
2853 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2854 * m68klinux-nat.c (regmap): Ditto.
2855
b55c33cc
JB
28562003-09-17 Jim Blandy <jimb@redhat.com>
2857
2858 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2859
957e27ac
AC
28602003-09-17 Andrew Cagney <cagney@redhat.com>
2861
2862 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2863 (ppcnbsd_init_abi): Set "use_struct_convention" to
2864 "ppcnbsd_use_struct_convention".
2865
192cb3d4
MK
28662003-09-17 Mark Kettenis <kettenis@gnu.org>
2867
2868 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2869 * gdbarch.h, gdbarch.c: Regenerate.
2870 (stabs_argument_has_addr): New architecture method.
2871 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2872 * arch-utils.c: Include "buildsym.h".
2873 (default_stabs_argument_has_addr): New function.
2874 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2875 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2876
efe59759
AC
28772003-09-17 Andrew Cagney <cagney@redhat.com>
2878
2879 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2880 * gdbarch.h, gdbarch.c: Regenerate.
2881 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2882 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2883 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2884 * sparcnbsd-tdep.c: Update.
a8f4cde1 2885
62700349
AC
28862003-09-17 Andrew Cagney <cagney@redhat.com>
2887
2888 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2889 * gdbarch.h, gdbarch.c: Regenerate.
2890 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2891 * d10v-tdep.c, frame.c: Update.
2892 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2893 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2894 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2895 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2896 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2897 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2898 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2899 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2900 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2901 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2902 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2903 * config/pa/nm-hppah.h: Update.
2904
b9ff3018
AC
29052003-09-16 Andrew Cagney <cagney@redhat.com>
2906
2907 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2908 "use_struct_convention" to "ppc_linux_use_struct_convention".
2909 (ppc_linux_use_struct_convention): New function.
2910 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2911 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2912 "rs6000_use_struct_convention".
2913 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2914 declaration.
2915 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2916 Delete function.
2917
aa1ee363
AC
29182003-09-16 Andrew Cagney <cagney@redhat.com>
2919
2920 * buildsym.c: Remove more occurances of "register".
2921 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2922 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2923 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2924 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2925 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2926 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2927 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2928 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2929
f2ea0907
CV
29302003-09-16 Corinna Vinschen <vinschen@redhat.com>
2931
2932 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2933 numbers to enumeration values.
2934 * sh-tdep.c: Accomodate above change.
2935 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2936 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2937 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2938 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2939 (IS_FPUSH): Rename from IS_FMOV.
2940 (sh_extract_struct_value_address): Remove useless comment.
2941 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2942 instead of own local values.
2943 (sh_dump_tdep): Remove.
2944 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2945 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2946
1c704f11
AC
29472003-09-15 Andrew Cagney <cagney@redhat.com>
2948
2949 * doublest.c (convert_floatformat_to_doublest): No longer need to
2950 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2951
ac79b88b
DJ
29522003-09-15 Daniel Jacobowitz <drow@mvista.com>
2953
2954 * values.c (unpack_double): Call floatformat_is_valid.
2955
1c671366
MK
29562003-09-15 Mark Kettenis <kettenis@gnu.org>
2957
de5227fb
MK
2958 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2959 ps_strings into a long.
2960
1c671366
MK
2961 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2962 _initialize_am64fbsd_nat.
2963
a604369a
KB
29642003-09-15 Kevin Buettner <kevinb@redhat.com>
2965
2966 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2967 associated with DW_AT_ranges attribute is out of bounds.
2968
b3cacbee
DL
29692003-09-15 David Lecomber <dsl@sources.redhat.com>
2970
2971 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2972
d0f37bb2
MC
29732003-09-14 Michael Chastain <mec@shout.net>
2974
2975 * config/m68k/nm-apollo68v.h: Delete.
2976 * config/m68k/xm-apollo68v.h: Delete.
2977
69517000
AC
29782003-09-14 Andrew Cagney <cagney@redhat.com>
2979
2980 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2981 * dcache.c: Update copyrights and descriptions.
2982 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2983
ef8b349d
AC
29842003-09-14 Andrew Cagney <cagney@redhat.com>
2985
2986 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2987 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2988
52f0bd74
AC
29892003-09-14 Andrew Cagney <cagney@redhat.com>
2990
2991 * alpha-nat.c: Remove some occurances of "register".
2992 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2993 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2994 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2995 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2996 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2997 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2998 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2999 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3000 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3001 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3002 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3003 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3004 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3005 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3006 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3007 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3008 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3009 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3010 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3011 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3012 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3013 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3014
4a4b3fed
AC
30152003-09-13 Andrew Cagney <cagney@redhat.com>
3016
3017 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3018 * ppc-tdep.h (struct regcache): Declare opaque.
3019 * objfiles.h (struct objfile_data): Declare opaque.
3020 * cp-support.h (struct objfile): Declare opaque.
3021 * linux-nat.h (target_waitstatus): Declare opaque.
3022
2110b94f
MK
30232003-09-14 Mark Kettenis <kettenis@gnu.org>
3024
1c671366
MK
3025 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3026 (stabs_argument_has_addr): New architecture method.
3027 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3028 * arch-utils.c: Include "buildsym.h".
3029 (default_stabs_argument_has_addr): New function.
3030 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3031 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3032
2110b94f
MK
3033 * cris-tdep.c (cris_gdbarch_init): Set
3034 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3035 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3036 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3037 * mips-tdep.c (mips_gdbarch_init): Likewise.
3038 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3039 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3040
48436ce6
AC
30412003-09-13 Andrew Cagney <cagney@redhat.com>
3042
3043 * values.c (using_struct_return): Delete "function" and "funcaddr"
3044 parameters.
3045 * value.h (using_struct_return): Update declaration.
3046 * infcmd.c (finish_command_continuation): Update.
3047 (finish_command): Update.
3048 * infcall.c (call_function_by_hand): Update.
3049 * eval.c (evaluate_subexp_standard): Update.
3050
403d9909
CF
30512003-09-13 Christopher Faylor <cgf@redhat.com>
3052
3053 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3054 SSE registers since gdb will not operate correctly without this.
3055 Restore include file ordering munged in previous change.
3056 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3057
ebf7d56b
MK
30582003-09-13 Mark Kettenis <kettenis@gnu.org>
3059
8e823e25
MK
3060 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3061 REG_STRUCT_HAS_ADDR.
3062 * gdbarch.c, gdbarch.h: Updated.
3063 * infcall.c (call_function_by_hand): Update.
3064 * stabsread.c (define_symbol): Updated.
a8f4cde1 3065
ebf7d56b
MK
3066 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3067
d3f13f72
CF
30682003-09-12 Christopher Faylor <cgf@redhat.com>
3069
3070 * win32-nat.c: Reorganize so that defines used by target headers are
3071 actually defined by the system headers.
3072 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3073 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3074
14f75137
JB
30752003-09-12 Jim Blandy <jimb@redhat.com>
3076
d646061f
JB
3077 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3078 the file has no .data, .bss, or .rodata sections. Instead wait
3079 until we see a variable alleged to live in one of those sections.
3080
2a13f9bc
JB
3081 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3082 .bss section, presume that any variables we find live in the
3083 .rodata section.
3084
4f49b26b
JB
3085 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3086 offsets for global and static variables.
3087
14f75137
JB
3088 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3089 symbol types are, by definition, in the .data section, so it is
3090 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3091 If there is no .data section, there should be no N_DATA or N_DATA
3092 | N_EXT symbols.
3093
212c460c
MK
30942003-09-12 Mark Kettenis <kettenis@gnu.org>
3095
3096 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3097 (amd64fbsd_sigcontext_addr): Rewrite.
3098 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3099 with correct values.
3100 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3101 (amd64fbsd_init_abi): Fix typo.
3102
68856ea3
AC
31032003-09-12 Andrew Cagney <cagney@redhat.com>
3104
3105 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3106 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3107
627b3ba2
AC
31082003-09-12 Andrew Cagney <cagney@redhat.com>
3109
3110 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3111 "entry_file_highpc". Update comments.
3112 * defs.h (deprecated_inside_entry_file): Rename
3113 "inside_entry_file".
3114 * blockframe.c (deprecated_inside_entry_file): Rename
3115 "inside_entry_file".
3116 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3117 * vax-tdep.c (vax_frame_chain): Update.
3118 * sh64-tdep.c (sh64_frame_chain): Update.
3119 * sh-tdep.c (sh_frame_chain): Update.
3120 * rs6000-tdep.c (rs6000_frame_chain): Update.
3121 * ns32k-tdep.c (ns32k_frame_chain): Update.
3122 * mips-tdep.c (mips_frame_chain): Update.
3123 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3124 * m32r-tdep.c (m32r_frame_this_id): Update.
3125 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3126 * frv-tdep.c (frv_frame_this_id): Update.
3127 * d10v-tdep.c (d10v_frame_this_id): Update.
3128 * cris-tdep.c (cris_frame_chain): Update.
3129 * blockframe.c (legacy_frame_chain_valid): Update.
3130 * avr-tdep.c (avr_frame_this_id): Update.
3131 * arm-tdep.c (arm_prologue_this_id): Update.
3132 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3133 * objfiles.c (objfile_relocate): Update.
3134 * mipsread.c (mipscoff_symfile_read): Update.
3135 (mipscoff_symfile_read): Update.
3136 * mdebugread.c (parse_partial_symbols): Update.
3137 * dwarfread.c (read_file_scope): Update.
3138 * dwarf2read.c (read_file_scope): Update.
3139 * dbxread.c (read_dbx_symtab): Update.
3140 (read_dbx_symtab): Update.
3141 * coffread.c (complete_symtab): Update.
3142
b0abbc58
JJ
31432003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3144
3145 * top.c (quit_target): New static helper function.
3146 (quit_force): Moved code to quit_target(). Call quit_target()
3147 via catch_errors() to catch errors during quit.
3148
a1632d59
DC
31492003-09-11 David Carlton <carlton@kealia.com>
3150
3151 * buildsym.c (finish_block): Use allocate_block to allocate the
3152 block.
3153 * mdebugread.c (new_block): Add FIXME.
3154
5c4e30ca
DC
31552003-09-11 David Carlton <carlton@kealia.com>
3156
3157 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3158 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3159 (recursive_dump_type): Ditto.
3160 * printcmd.c (print_formatted): Ditto.
3161 * typeprint.c (print_type_scalar): Ditto.
3162 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3163 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3164 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3165 maint_cplus_cmd_list.
3166 * cp-support.c: Make maint_cplus_cmd_list extern.
3167 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3168 command.h.
3169 (lookup_symbol_file): Look in possible namespace blocks when
3170 appropriate.
3171 (initialize_namespace_symtab): New.
3172 (get_possible_namespace_block, free_namespace_block)
3173 (check_possible_namespace_symbols)
3174 (check_possible_namespace_symbols_loop)
3175 (check_one_possible_namespace_symbol)
3176 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3177 (_initialize_cp_namespace): Ditto.
3178 * block.h: Declare allocate_block.
3179 * block.c (allocate_block): New.
3180 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3181 allocate_block.
3182 * symfile.h: Update declaration of add_psymbol_to_list.
3183 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3184 question.
3185 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3186 scan_partial_symbols_call.
3187 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3188 helper functions.
3189 (add_partial_symbol): If necessary, scan mangled names for names
3190 of namespaces.
3191 (add_partial_namespace): Add NAMESPACE argument; generate partial
3192 symbols associated to namespaces.
3193 (add_partial_enumeration): Add NAMESPACE argument.
3194 (new_symbol): Allow namespace syms.
3195 (read_namespace): Generate namespace syms.
3196 * objfiles.h: Add opaque declaration of struct symtab.
3197 (struct objfile): Add cp_namespace_symtab member.
3198 * objfiles.c (allocate_objfile): Set
3199 objfile->cp_namespace_symtab.
3200 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3201 dictionary_h, command_h.
3202
33a7c2fc
AC
32032003-09-11 Andrew Cagney <cagney@redhat.com>
3204
3205 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3206 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3207 near the function's end.
3208 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3209 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3210 regcache_raw_write_signed to set SP_REGNUM.
3211
63cd24fe
EZ
32122003-09-11 Elena Zannoni <ezannoni@redhat.com>
3213
3214 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3215 orig_addrs is set up properly.
3216
f27dd7fd
AC
32172003-09-11 Andrew Cagney <cagney@redhat.com>
3218
3219 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3220 * gdbarch.h, gdbarch.c: Re-generate.
3221 * infcall.c (call_function_by_hand): Update.
3222 * hppa-tdep.c (hppa_push_arguments): Update.
3223 * ada-lang.c (place_on_stack): Update.
3224 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3225 * sparc-tdep.c (sparc_gdbarch_init): Update.
3226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3227 * hppa-tdep.c (hppa_gdbarch_init): Update.
3228 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3229 stack_align.
3230
f630a401
DJ
32312003-09-11 Daniel Jacobowitz <drow@mvista.com>
3232
3233 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3234 register do need a frame.
3235
0ddabb4c
AC
32362003-09-11 Andrew Cagney <cagney@redhat.com>
3237
3238 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3239 buildable since GDB 5.0.
3240 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3241 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3242 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3243 * irix4-nat.c: Delete file.
3244 * config/mips/irix4.mh: Delete file.
3245 * config/mips/irix3.mh: Delete file.
3246 * config/mips/irix3.mt: Delete file.
3247 * config/mips/tm-irix3.h: Delete file.
3248 * config/mips/nm-irix3.h: Delete file.
3249 * config/mips/xm-irix3.h: Delete file.
3250 * config/mips/nm-irix4.h: Delete file.
3251 * config/mips/xm-irix4.h: Delete file.
3252 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3253
fde2cceb
JB
32542003-09-10 J. Brobecker <brobecker@gnat.com>
3255
3256 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3257 * Makefile.in (hppa-tdep.o): Update dependencies.
3258
66f667f5
JW
32592003-09-10 James E Wilson <wilson@specifixinc.com>
3260
ef5fd69f
JW
3261 * MAINTAINERS: Change my e-mail address. Move to paper trail
3262 section.
66f667f5 3263
53e8aaea
KB
32642003-09-10 Kevin Buettner <kevinb@redhat.com>
3265
3266 * MAINTAINERS (frv): New ISA entry.
3267
dcc6aaff
KB
32682003-09-10 Kevin Buettner <kevinb@redhat.com>
3269
3270 * frv-tdep.c (dis-asm.h): Include.
3271 * Makefile.in (frv-tdep.o): Update dependencies.
3272
932644f0
JJ
32732003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3274
3275 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3276 Fix typo for high range of floating registers.
3277
91c24f0a
DC
32782003-09-09 David Carlton <carlton@kealia.com>
3279
3280 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3281 highpc initialization here out of scan_partial_symbols.
3282 (scan_partial_symbols): Restructure into a recursive version,
3283 calling add_partial_namespace and add_partial_enumeration when
3284 appropriate.
3285 (add_partial_namespace): New.
3286 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3287
c9263853
AC
32882003-09-09 Andrew Cagney <cagney@redhat.com>
3289
e56a0ecc
AC
3290 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3291 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3292 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3293 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3294
794a477a
AC
3295 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3296 (rs6000_push_dummy_call): Set the "TOC" register.
3297
c9263853
AC
3298 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3299 methods "max_register_raw_size", "max_register_virtual_size" or
3300 "register_virtual_size".
3301
afa7d0b2
ILT
33022003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3303
3304 * MAINTAINERS: Update my e-mail address.
3305
7a41266b
AC
33062003-09-09 Andrew Cagney <cagney@redhat.com>
3307
3308 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3309 (rs6000_push_dummy_call): Store the struct return address.
3310 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3311
77b2b6d4
AC
33122003-09-09 Andrew Cagney <cagney@redhat.com>
3313
3314 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3315 "ppc_sysv_abi_push_arguments".
3316 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3317 "ppc_sysv_abi_push_arguments".
3318 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3319 instead of "push_arguments".
3320 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3321
e8a7b686
AC
33222003-09-09 Andrew Cagney <cagney@redhat.com>
3323
3324 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3325 instead of CALL_DUMMY_ADDRESS.
3326
f86f5ca3
PH
33272003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3328
3329 * p-lang.c: Eliminate "register".
3330 * c-lang.c: Ditto.
3331 * expprint.c: Ditto.
3332 * f-lang.c: Ditto.
3333 * jv-lang.c: Ditto.
3334 * language.c: Ditto.
3335 * m2-lang.c: Ditto.
3336 * parse.c: Ditto.
3337 * scm-lang.c: Ditto.
3338 * objc-lang.c: Ditto.
3339
83ee270e
NC
33402003-09-09 Nick Clifton <nickc@redhat.com>
3341
3342 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3343
a89aa300
AC
33442003-09-04 Andrew Cagney <cagney@redhat.com>
3345
3346 * avr-tdep.c: Include "dis-asm.h".
3347 * cris-tdep.c: Include "dis-asm.h".
3348 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3349 instead of corresponding typedef.
3350 * h8300-tdep.c: Include "dis-asm.h".
3351 * ia64-tdep.c: Include "dis-asm.h".
3352 * i386-tdep.c: Include "dis-asm.h".
3353 (i386_print_insn): Use "struct disassemble_info" instead of
3354 corresponding typedef.
3355 * m68k-tdep.c: Include "dis-asm.h".
3356 * mcore-tdep.c: Include "dis-asm.h".
3357 * mips-tdep.c: Include "dis-asm.h".
3358 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3359 instead of corresponding typedef.
3360 * ns32k-tdep.c: Include "dis-asm.h".
3361 * s390-tdep.c: Include "dis-asm.h".
3362 * sparc-tdep.c: Include "dis-asm.h".
3363 * vax-tdep.c: Include "dis-asm.h".
3364 * v850-tdep.c: Include "dis-asm.h".
3365 * mn10300-tdep.c: Include "dis-asm.h".
3366 * rs6000-tdep.c: Include "dis-asm.h".
3367 * xstormy16-tdep.c: Include "dis-asm.h".
3368 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3369 print_insn_xstormy16.
3370 * Makefile.in (v850-tdep.o): Update dependencies.
3371 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3372 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3373 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3374 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3375 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3376 (gdbarch_h): Remove $(dis_asm_h).
3377 * disasm.c: Include "dis-asm.h".
3378 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3379 corresponding typedef.
3380 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3381 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3382 * gdbarch.sh: Do not include "dis-asm.h".
3383 (struct disassemble_info): Declare opaque.
3384 (TARGET_PRINT_INSN): Update declaration.
3385 * gdbarch.h, gdbarch.c: Re-generate.
3386
88a82a65
AC
33872003-09-08 Andrew Cagney <cagney@redhat.com>
3388
3389 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3390 CALL_DUMMY_ADDRESS, change to a predicate.
3391 * gdbarch.h, gdbarch.c: Re-generate.
3392 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3393 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3394 * infcall.c (call_function_by_hand): Ditto.
3395 * sparc-tdep.c (sparc_push_return_address): Ditto.
3396 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3397 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3398 CALL_DUMMY_ADDRESS with entry_point_address.
3399 * v850-tdep.c (v850_push_return_address): Ditto.
3400 * s390-tdep.c (s390_push_return_address): Ditto.
3401 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3402 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3403 * mcore-tdep.c (mcore_push_return_address): Ditto.
3404 * cris-tdep.c (cris_push_return_address): Ditto.
3405 * arm-tdep.c (arm_push_return_address): Ditto.
3406
3e2c4033
AC
34072003-09-08 Andrew Cagney <cagney@redhat.com>
3408
3409 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3410 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3411 and REG_UNMODIFIED to REG_SAME_VALUE.
3412 (execute_cfa_program): Update.
3413 (dwarf2_frame_cache): Update. Initialize table to
3414 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3415 location.
3416 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3417
39efb398
AC
34182003-09-08 Andrew Cagney <cagney@redhat.com>
3419
3420 * gnu-nat.c: Remove "inline" function attribute.
3421 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3422
f5cb5aca
KB
34232003-09-08 Kevin Buettner <kevinb@redhat.com>
3424
3425 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3426 target.
3427
1cb761c7
KB
34282003-09-08 Kevin Buettner <kevinb@redhat.com>
3429
3430 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3431 (frame_extra_info): Rename this struct to frv_unwind_cache.
3432 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3433 Add fields ``prev_sp'' and ``base''.
3434 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3435 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3436 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3437 Delete.
3438 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3439 Revise all callers. Fill in the unwind cache argument and make
3440 other adjustments to account for new frame mechanisms.
3441 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3442 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3443 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3444 (frv_frame_unwind, frv_frame_base): New structs.
3445 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3446 additional arguments expected by this method and adjust function
3447 body accordingly.
3448 (frv_gdbarch_init): Remove calls to the following functions:
3449 set_gdbarch_deprecated_init_frame_pc(),
3450 set_gdbarch_deprecated_saved_pc_after_call(),
3451 set_gdbarch_deprecated_frame_chain(),
3452 set_gdbarch_deprecated_frame_saved_pc(),
3453 set_gdbarch_deprecated_frame_init_saved_regs(),
3454 set_gdbarch_deprecated_push_arguments(),
3455 set_gdbarch_deprecated_push_return_address(),
3456 set_gdbarch_deprecated_pop_frame(),
3457 set_gdbarch_deprecated_call_dummy_words(),
3458 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3459 set_gdbarch_deprecated_init_extra_frame_info(),
3460 set_gdbarch_deprecated_dummy_write_sp(), and
3461 set_gdbarch_deprecated_pc_in_call_dummy().
3462 Add calls to the following functions:
3463 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3464 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3465 frame_base_set_default().
3466 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3467
68f6cf99
MK
34682003-09-09 Mark Kettenis <kettenis@gnu.org>
3469
3470 * dwarf2-frame.c (read_encoded_value): Add support for
3471 DW_EH_PE_aligned encoding.
3472
73b65bb0
DJ
34732003-09-08 Daniel Jacobowitz <drow@mvista.com>
3474
3475 * infrun.c (normal_stop): Don't print a message if the inferior
3476 has exited.
3477
7c8a5605
JB
34782003-09-08 Jim Blandy <jimb@redhat.com>
3479
3480 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3481 * dbxread.c: #include "gdb_assert.h".
3482 (read_dbx_symtab): If the objfile has no .data section, use the
3483 section index for the .bss section instead.
3484
7dd88986
DJ
34852003-09-08 Daniel Jacobowitz <drow@mvista.com>
3486
3487 * frame.c (deprecated_safe_get_selected_frame): New function.
3488 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3489 * findvar.c (read_var_value): Call it.
3490
55ff77ac
CV
34912003-09-08 Corinna Vinschen <vinschen@redhat.com>
3492
3493 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3494 (sh64-tdep.o): Add dependencies.
3495 * configure.tgt: Add FIXME to sh-*-linux*.
3496 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3497 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3498 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3499 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3500 * sh64-tdep.c: New file, containing all sh64 related code from
3501 sh-tdep.c.
3502 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3503 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3504 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3505 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3506 * config/sh/wince.mt (TDEPFILES): Ditto.
3507
bfb39158
DJ
35082003-09-07 Daniel Jacobowitz <drow@mvista.com>
3509
3510 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3511 (stop_wait_callback): Handle !lp->signalled also.
3512 (lin_lwp_has_pending, flush_callback): New functions.
3513 (lin_lwp_wait): Call flush_callback.
3514 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3515 (linux_proc_pending_signals): New function.
3516 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3517
9407de8e
DJ
35182003-09-07 Daniel Jacobowitz <drow@mvista.com>
3519
3520 From Nick Kelsey <nickk@ubicom.com>:
3521 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3522 when the stop PC is at the beginning of a function also.
3523
2ef47cd0
DJ
35242003-09-06 Daniel Jacobowitz <drow@mvista.com>
3525
3526 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3527 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3528
6f4492c8
MK
35292003-09-06 Mark Kettenis <kettenis@gnu.org>
3530
3531 * sol-thread.c: Include "gdb_string.h".
3532
d3420b2f
MK
35332003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3534
3535 * gcore.c: Reorder include files in alphabetical order. Include
3536 "gdb_assert.h". Various coding style fixes.
3537 (derive_stack_segment, derive_heap_segment): Replace check for
3538 non-null BOTTOM and TOP with gdb_assert.
3539 (derive_heap_segment): Replace check for successful creation of
3540 ZERO with gdb_assert.
3541 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3542
5220ea4c
AC
35432003-09-04 Andrew Cagney <cagney@redhat.com>
3544
3545 * thread-db.c (verbose_dlsym): New function.
3546 (thread_db_load): Use verbose_dlsym
3547 (thread_db_new_objfile): Print that libthread_db was loaded, and
3548 that thread debugging was enabled.
3549
6e8c2c06
AC
35502003-09-04 Andrew Cagney <cagney@redhat.com>
3551
3552 * configure.tgt: Add "mips64*-*-*" target. Delete
3553 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3554 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3555 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3556 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3557 mips*-sony-*, and mips64*-*-elf* targets.
3558 * config/mips/embedl.mt: Delete file.
3559 * config/mips/embedl64.mt: Delete file.
3560 * config/mips/mips.mt: Delete file.
3561 * config/mips/mips64.mt: Delete file.
3562 * config/mips/tm-embed.h: Delete file.
3563 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3564 * config/mips/embed64.mt: Delete out-of-date comment.
3565
3a3bc038
AC
35662003-09-04 Andrew Cagney <cagney@redhat.com>
3567
3568 * hppa-tdep.c (hppa_gdbarch_init): Set
3569 "have_nonsteppable_watchpoint".
3570 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3571 * mips-tdep.c (mips_dump_tdep): Do not print
3572 HAVE_NONSTEPPABLE_WATCHPOINT.
3573 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3574 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3575 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3576 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3577
a957e642
CV
35782003-09-04 Corinna Vinschen <vinschen@redhat.com>
3579
3580 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3581 unused code. Add comment.
3582
a6fbcf2f
CV
35832003-09-04 Corinna Vinschen <vinschen@redhat.com>
3584
3585 * breakpoint.c (watchpoint_check): Check for pc being in an
3586 epilogue if watchpoint frame couldn't be found.
3587
c14a44d5
AC
35882003-09-04 Andrew Cagney <cagney@redhat.com>
3589
3590 * Makefile.in: Re-generate all dependencies.
3591
f6c40618
AC
35922003-09-03 Andrew Cagney <cagney@redhat.com>
3593
3594 * arch-utils.h (legacy_print_insn): Delete declaration.
3595 * arch-utils.c (legacy_print_insn): Delete function.
3596 * disasm.c (deprecated_tm_print_insn_info): Delete.
3597 (_initialize_disasm): Delete function, contained code initializing
3598 deprecated_tm_print_insn_info.
3599 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3600 (deprecated_tm_print_insn_info): Delete.
3601 (TARGET_PRINT_INSN): Do not provide a default.
3602 * gdbarch.h, gdbarch.c: Re-generate.
3603
242e8be5
AC
36042003-09-03 Andrew Cagney <cagney@redhat.com>
3605
3606 * disasm.c (fprintf_disasm): New function.
3607 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3608 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3609 reverts 2003-08-14 change.
3610 (_initialize_disasm): Call "init_disassemble_info", instead of
3611 INIT_DISASSEMBLE_INFO_NO_ARCH.
3612
3ffc3dda
MS
36132003-09-03 Michael Snyder <msnyder@redhat.com>
3614
3615 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3616
52d16ba8
AC
36172003-09-03 Andrew Cagney <cagney@redhat.com>
3618
3619 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3620 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3621 * symfile.c (syms_from_objfile): Update.
3622 (reread_symbols): `Update
3623 * exec.c (exec_file_attach): Update.
3624 (exec_file_attach): Update.
3625 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3626 2003-08-29 change.
3627 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3628
eb5492fa
DJ
36292003-09-03 Daniel Jacobowitz <drow@mvista.com>
3630
3631 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3632 trad-frame.h.
3633 (arm_get_cache): Delete macro.
3634 (struct arm_prologue_cache): Update comments. Make saved_regs into
3635 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3636 to prev_sp.
3637 (thumb_scan_prologue): Update for cache changes. Don't call
3638 DEPRECATED_PC_IN_CALL_DUMMY.
3639 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3640 argument and use it in desperation search for our prologue. Do not
3641 search past the specified PC.
3642 (arm_make_prologue_cache): Simplify.
3643
3644 (arm_prologue_this_id, arm_prologue_prev_register)
3645 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3646 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3647 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3648 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3649 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3650
3651 (arm_frame_chain_valid, arm_find_callers_reg)
3652 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3653 (arm_pop_frame): Delete obsolete methods.
3654 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3655
3656 (arm_gdbarch_init): Update for new frame methods. Register prologue
3657 and sigtramp unwinders. Set the default frame base method.
3658
3659 * Makefile.in (arm-tdep.o): Update dependencies.
3660 * varobj.c (find_frame_addr_in_frame_chain): Call
3661 get_frame_base_address.
3662 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3663
24de872b
DJ
36642003-09-03 Daniel Jacobowitz <drow@mvista.com>
3665
3666 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3667 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3668 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3669 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3670 Take NEXT_FRAME and CACHE arguments. Call
3671 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3672 Set unwound_pc in CACHE instead of modifying the frame argument.
3673 Don't bother checking the frame type when looking for sigtramp
3674 frames.
3675 (arm_make_prologue_cache, arm_frame_chain)
3676 (arm_init_extra_frame_info): New functions.
3677
9b8d791a
DJ
36782003-09-03 Daniel Jacobowitz <drow@mvista.com>
3679
3680 * arm-tdep.c (arm_get_cache): Define.
3681 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3682 unwound_sp, unwound_pc, and saved_regs.
3683 (thumb_scan_prologue): Take a cache instead of the frame.
3684 (arm_scan_prologue): Likewise.
3685 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3686 instead of a temporary frame.
3687 (arm_init_extra_frame_info): Allocate and use a cache.
3688 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3689
7ee3275f
AC
36902003-09-03 Andrew Cagney <cagney@redhat.com>
3691
3692 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3693 * config/mips/wince.mt (TM_CLIBS): Ditto.
3694 * config/sh/wince.mt (TM_CLIBS): Ditto.
3695 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3696 * config/sparc/sp64.mt (CC): Delete.
3697
57b29be7
AC
36982003-09-03 Andrew Cagney <cagney@redhat.com>
3699
3700 * defs.h: Do not include "arch-utils.h".
3701 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3702 GDB_MULTI_ARCH_PURE.
3703 * configure.in (GDB_MULTI_ARCH): Do not define.
3704 * configure, config.in: Regenerate.
3705 * configure.tgt: Do not set variable "gdb_multi_arch".
3706 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3707 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3708 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3709 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3710 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3711 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3712 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3713 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3714 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3715 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3716 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3717 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3718 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3719 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3720 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3721 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3722 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3723 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3724
12e035e2
MC
37252003-08-30 Michael Chastain <mec@shout.net>
3726
3727 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3728 * config/m68k/nm-hp300hpux.h: Delete.
3729 * config/m68k/tm-hp300hpux.h: Delete.
3730 * config/m68k/xm-hp300hpux.h: Delete.
3731 * config/m68k/xm-hp300bsd.h: Delete.
3732 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3733 tm-hp300hpux.h, xm-hp300hpux.h.
3734 * somsolib.c: Remove comment about hp300 shared libraries.
3735
bda34dc2
MK
37362003-08-31 Mark Kettenis <kettenis@gnu.org>
3737
5bca7895
MK
3738 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3739 Only define PTRACE_GET_THREAD_AREA is not already defined.
3740 Various style fixes in code and comments and some additional
3741 spelling fixes in comments. Move after functions dealing with
3742 debug registers.
3743 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3744 Fix coding-style.
3745
bda34dc2
MK
3746 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3747 frame_unwind_register_unsigned instead of
3748 frame_unwind_unsigned_register.
3749
c890192f
MK
37502003-08-30 Mark Kettenis <kettenis@gnu.org>
3751
3752 * configure.in: Search for gethostbyname in libnsl.
3753 * configure: Regenerated.
3754
60fac5b8
MK
37552003-08-29 Mark Kettenis <kettenis@gnu.org>
3756
e294916c
MK
3757 * configure.in: Remove redundant AC_MSG_RESULT in check for
3758 uintptr_t in stdint.h.
3759 * configure: Regenerated.
3760
c40d267a
MK
3761 * amd64-nat.h (struct regcache): Add opaque declaration.
3762
60fac5b8
MK
3763 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3764 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3765 Change "register array" to "register cache" in comments.
3766 (x86_64_linux_gregset64_reg_offset): New variable.
3767 (GETREGS_SUPPLIES): Remove macro.
3768 (supply_gregset): Call amd64_supply_native_gregset instead of
3769 x86_64_linux_supply_gregset.
3770 (fill_gregset): Rename `regno' to `regnum'. Call
3771 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3772 (store_regs): Rename `regno' to `regnum'.
3773 (store_fpregs): Rename `regno' to `regnum'.
3774 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3775 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3776 Reorganize function a bit.
3777 (store_inferior_registers): Rename `regno' to `regnum'. Use
3778 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3779 Reorganize function a bit.
3780 (_initialize_x86_64_linux_nat): New function.
3781 * config/i386/x86-64linux.mh.
3782
546143b6
AC
37832003-08-29 Andrew Cagney <cagney@redhat.com>
3784
3785 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3786 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3787 (target_remove_watchpoint): Delete macro.
3788 (target_insert_watchpoint): Delete macro.
3789 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3790 (remote_mips_stopped_by_watchpoint): Delete declaration.
3791 (remote_mips_remove_watchpoint): Delete declaration.
3792 (remote_mips_set_watchpoint): Delete declaration.
3793 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3794 * remote-mips.c (_initialize_remote_mips): Set
3795 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3796 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3797 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3798 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3799 (mips_stopped_by_watchpoint): Rename
3800 remote_mips_stopped_by_watchpoint.
3801 (mips_can_hardware_watchpoint): Rename
3802 remote_mips_can_use_hardware_watchpoint, update function
3803 signature.
3804
7bace51b
MK
38052003-08-29 Mark Kettenis <kettenis@gnu.org>
3806
b0f5c6f2
MK
3807 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3808 USER_DS. We haven't given them a register number yet.
3809
2a6d284d
MK
3810 * amd64-nat.h: New file.
3811 * amd64-nat.c: New file.
3812 * amd64fbsd-nat.c: Include "amd64-nat.h".
3813 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3814 (amd64fbsd32_r_reg_offset): New variable.
3815 (supply_gregset): Simply call amd64_supply_native_gregset.
3816 (fill_gregset): Rename `regno' to `regnum'. Simply call
3817 amd64_collect_native_gregset.
3818 (fill_fpregset): Rename `regno' to `regnum'.
3819 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3820 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3821 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3822 `fpregset_t'. Call amd64_supply_native_gregset instead of
3823 supply_gregset. Call x86_64_supply_fxsave instead of
3824 supply_fpregset.
3825 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3826 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3827 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3828 `fpregset_t'. Call amd64_collect_native_gregset instead of
3829 fill_gregset. Call x86_64_collect_fxsave instead of
3830 fill_fpregset.
3831 (_initialize_am64fbsd_nat): Initialize
3832 amd64_native_gregset32_reg_offset and
3833 amd64_native_gregset64_reg_offset.
3834 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3835
a16d75cc
MK
3836 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3837 null pointer. Fix typo in comment.
3838
7bace51b
MK
3839 * regcache.c (supply_register): Reimplement to call
3840 regcache_raw_supply.
3841 (regcache_collect): Reimplement by calling regcache_raw_collect.
3842
9a661b68
MK
38432003-08-28 Mark Kettenis <kettenis@gnu.org>
3844
3845 * regcache.c (register_buffer): Consitify first argument.
3846 (regcache_raw_supply, regcache_raw_collect): New
3847 functions.
3848
e94cc8fa
DJ
38492003-08-28 Daniel Jacobowitz <drow@mvista.com>
3850
3851 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3852 by Nathan J. Williams.
3853
c64bd0ce
DJ
38542003-08-28 Daniel Jacobowitz <drow@mvista.com>
3855
3856 * lin-lwp.c (wait_lwp): New function, copied from
3857 stop_wait_callback. Clean up.
3858 (stop_wait_callback): Use wait_lwp.
3859
e5ab0dce
AC
38602003-08-28 Andrew Cagney <cagney@redhat.com>
3861
3862 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3863 flavour and disassembler options.
3864 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3865 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3866 deprecated_tm_print_insn_info.
a8f4cde1 3867
a788de9b
AC
38682003-08-27 Andrew Cagney <cagney@redhat.com>
3869
3870 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3871 Use target_read_memory.
3872 (s390_get_frame_info): Update. Do not reference
3873 deprecated_tm_print_insn_info.
3874 (s390_check_function_end, s390_is_sigreturn): Ditto.
3875
36482093
AC
38762003-08-27 Andrew Cagney <cagney@redhat.com>
3877
3878 * Makefile.in (cris-tdep.o): Update dependencies.
3879 * cris-tdep.c: Include "gdb_assert.h".
3880 (cris_gdbarch_init): Set print_insn.
3881 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3882 (cris_delayed_get_disassembler): Simplify, directly call the
3883 disassembler returned by cris_get_disassembler.
3884 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3885 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3886 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3887 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3888 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3889 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3890 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3891 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3892 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3893 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3894 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3895 (gdb_print_insn_sparc): Delete function.
3896 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3897 deprecated_tm_print_insn_info.
3898 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3899 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3900 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3902 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3903 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3904 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3905 (s390_gdbarch_init): Set print_insn.
3906
0285512f
AC
39072003-08-27 Andrew Cagney <cagney@redhat.com>
3908
3909 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3910 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3911 * infcall.c (call_function_by_hand): Convert the entry point
3912 address into a code address.
3913
cdcd5552
AC
39142003-08-27 Andrew Cagney <cagney@redhat.com>
3915
3916 * dsrec.c: Include "gdb_string.h".
3917 * Makefile.in (dsrec.o): Update dependencies.
3918
e85cddad
MC
39192003-08-27 Michael Chastain <mec@shout.net>
3920
3921 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3922
8bbfbb23
AC
39232003-08-27 Andrew Cagney <cagney@redhat.com>
3924
3925 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3926 (alpha_osf1_init_abi): Do not set call_dummy_address.
3927
ba058b66
DC
39282003-08-27 David Carlton <carlton@kealia.com>
3929
3930 From Randolph Chung <tausq@debian.org>:
3931 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3932 compiles with -Wformat-nonliteral -Werror.
3933
87f84c9d
JB
39342003-08-26 Jim Blandy <jimb@redhat.com>
3935
3936 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3937 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3938 bfd_lookup_symbol, since we only want symbols in code sections.
3939 (look_for_base): Pass zero as the SECT_FLAGS argument to
3940 bfd_lookup_symbol, since we're not concerned about which section
3941 the symbol is in.
3942
102d615a
JJ
39432003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3944
3945 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3946 we are frameless or the return address register is already known.
102d615a 3947
cc7ad3ea
AC
39482003-08-26 Andrew Cagney <cagney@redhat.com>
3949
3950 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3951 in size. Add comments.
3952
af8b88dd
JJ
39532003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3954
3955 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3956 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3957
e0a4f5a1
JM
39582003-08-26 Jason Merrill <jason@redhat.com>
3959
3960 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3961 case out of #ifdef MIPS block.
3962
4ae9ee8e
DJ
39632003-08-25 Daniel Jacobowitz <drow@mvista.com>
3964
3965 PR java/1322
3966 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3967 available before calling SECT_OFF_TEXT.
3c164570 3968 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3969
004d836a
JJ
39702003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3971
a8f4cde1 3972 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3973 bof, and nat0-nat127 as pseudo-registers.
3974 (ia64_frame_cache): New struct used to cache frame info.
3975 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3976 register grouping so registers without names are still saved and
004d836a 3977 restored.
a8f4cde1 3978 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3979 pseudo values.
3980 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3981 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3982 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3983 ia64_frame_cache.
3984 (examine_prologue): Change prototype to add next_frame pointer.
3985 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3986 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3987 alloc insn and if equal, mark as not frameless. At end of routine,
3988 if not frameless, calculate registers for the previous frame and store
3989 in the cache, if a cache is provided.
3990 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3991 and pass 0 for next_frame.
3992 (ia64_store_return_value): Change to use convert_typed_floating()
3993 instead of calling ia64_convert_to_raw().
3994 (ia64_extract_return_value): Change to use convert_typed_floating()
3995 instead of calling ia64_convert_to_virtual().
3996 (ia64_frame_cache): New routine to support new frame model.
3997 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3998 (ia64_frame_sniffer): Ditto.
3999 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4000 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4001 (ia64_sigtramp_frame_prev_register): Ditto.
4002 (ia64_sigtramp_frame_sniffer): Ditto.
4003 (ia64_frame_base_address): Ditto.
4004 (ia64_extract_struct_value_address): Change to issue error message.
4005 (ia64_frame_align): New routine to align sp.
4006 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4007 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4008 ia64_push_dummy_call().
4009 (ia64_push_return_address): Ditto.
4010 (ia64_unwind_dummy_id): New function.
4011 (ia64_unwind_pc): Ditto.
4012 (ia64_convert_register_p): Ditto.
4013 (ia64_register_to_value): Ditto.
4014 (ia64_value_to_register): Ditto.
4015 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4016 (ia64_register_byte, ia64_register_raw_size): Ditto.
4017 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4018 (ia64_saved_pc_after_call): Ditto.
4019 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4020 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4021 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4022 (ia64_register_convert_to_raw): Ditto.
4023 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4024 (ia64_init_extra_frame_info): Ditto.
4025 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4026 (ia64_gdbarch_init): Remove registering of deprecated functions that
4027 are no longer used. Add registration of new gdbarch functions.
4028 Remove registering deprecated_write_sp. Replace
4029 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4030 Delete set_gdbarch_deprecated_register_convertible(),
4031 set_gdbarch_deprecated_register_convert_to_virtual(), and
4032 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4033 set_gdbarch_deprecated_register_size(),
4034 set_gdbarch_deprecated_register_bytes(),
4035 set_gdbarch_pcregnum(),
4036 set_gdbarch_deprecated_register_byte(),
4037 set_gdbarch_deprecated_register_raw_size(),
4038 set_gdbarch_deprecated_max_register_raw_size(),
4039 set_gdbarch_deprecated_register_virtual_size(),
4040 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4041 Replace set_gdbarch_deprecated_extract_return_value() with
4042 set_gdbarch_extract_return_value(). Remove calls to:
4043 set_gdbarch_deprecated_saved_pc_after_call();
4044 set_gdbarch_deprecated_frame_chain(),
4045 set_gdbarch_deprecated_frame_saved_pc(),
4046 set_gdbarch_deprecated_frame_init_saved_regs(),
4047 set_gdbarch_deprecated_get_saved_register(),
4048 set_gdbarch_deprecated_call_dummy_words(),
4049 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4050 set_gdbarch_deprecated_init_extra_frame_info(),
4051 set_gdbarch_deprecated_frame_args_address(),
4052 set_gdbarch_deprecated_frame_locals_address(),
4053 and set_gdbarch_deprecated_dummy_write_sp().
4054 Add set_gdbarch_convert_register_p(),
4055 set_gdbarch_register_to_value(),
4056 set_gdbarch_value_to_register(),
4057 set_gdbarch_push_dummy_call(),
4058 set_gdbarch_frame_align(),
4059 set_gdbarch_unwind_dummy_id(),
4060 set_gdbarch_unwind_pc(),
4061 frame_unwind_append_sniffer(),
4062 frame_unwind_append_sniffer(),
4063 and frame_base_set_default().
4064
aede7613
CD
40652003-08-25 Chris Demetriou <cgd@broadcom.com>
4066
4067 * configure.tgt: Document need for special "mipsisa64" handling.
4068 (mipsisa64*-*-linux64): Handle as target linux64.
4069 (mipsisa64*-*-*): Handle as target embed64.
4070
43c3a82e
MC
40712003-08-18 Michael Chastain <mec@shout.net>
4072
4073 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4074 objfile bug.
4075
6564f77d
MK
40762003-08-24 Mark Kettenis <kettenis@gnu.org>
4077
2de139ba
MK
4078 * i387-tdep.h: Update copyright date.
4079 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4080
6564f77d
MK
4081 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4082 CFLAGS games to reflect reality.
4083
42cf1509
AC
40842003-08-24 Andrew Cagney <cagney@redhat.com>
4085
4086 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4087 GDB_MULTI_ARCH is always non-zero.
4088 * osabi.c (_initialize_gdb_osabi): Ditto.
4089 (gdbarch_init_osabi): Ditto.
4090 * sparc-tdep.c: Ditto for #if code.
4091
0485f6ad
MK
40922003-08-23 Mark Kettenis <kettenis@gnu.org>
4093
4094 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4095 Update comments.
4096 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4097 comments.
4098 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4099 x86_64_supply_fxsave.
4100 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4101 x86_64_supply_fxsave.
4102 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4103 x86_64_supply_fxsave.
4104
c7716133
AJ
41052003-08-23 Andreas Jaeger <aj@suse.de>
4106
4107 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4108 i387_supply_fxsave.
4109
ed504bdf
MK
41102003-08-23 Mark Kettenis <kettenis@gnu.org>
4111
4112 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4113 i387_supply_register.
4114 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4115 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4116 i387_supply_fsave.
4117 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4118 i387_supply_fxsave.
4119 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4120 i387_supply_fsave.
4121 * i386bsd-nat.c (supply_fpregset): Adjust call to
4122 i387_supply_fsave.
4123 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4124 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4125 supply_fpregset.
4126 (store_inferior_registers): Remove extraneous whitespace. Call
4127 i387_fill_fsave instead of fill_fpregset.
4128 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4129 (supply_fpregset): Likewise.
4130 * i386v4-nat.c (supply_fpregset): Adjust call to
4131 i387_supply_fsave.
4132 * i386-interix-nat.c (supply_fpregset): Adjust call to
4133 i387_supply_fsave.
4134 * i386-linux-nat.c (supply_fpregset): Adjust call to
4135 i387_supply_fsave.
4136 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4137 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4138 i387supply_fsave and i387_supply_fxsave.
4139 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4140 Incorporate code from `i387_supply_register.
4141 (i387_supply_register): Remove.
4142 (i387_supply_fxsave): Add `regnum' argument.
4143 Update comments.
4144 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4145 prototype.
4146 (i387_supply_register): remove prototype.
4147 Update comments.
a8f4cde1 4148
4be5d520
MC
41492003-08-22 Michael Chastain <mec@shout.net>
4150
4151 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4152 Add lines for files in gdb/testsuite/gdb.cp/* that are
4153 still not 8.3 unique.
4154
7ed85d26
DJ
41552003-08-22 Daniel Jacobowitz <drow@mvista.com>
4156
4157 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4158 TYPE_VPTR_FIELDNO is valid.
4159
eb0d3137
MK
41602003-08-19 Mark Kettenis <kettenis@gnu.org>
4161
4162 * utils.c (set_width_command): Remove prototypes.
4163 (set_screen_size): New prototype.
4164 (init_page_info): Simplify by fetching the screen size from
4165 Readline. Call set_screen_size.
4166 (set_screen_size): New function.
4167 (set_width): Add missing whitespace in comment.
4168 (set_width_command): Call set_screen_size.
4169 (set_height_command): New function.
4170 (initialize_utils): Fix formatting. Make "set height" command
4171 call set_height_command. Remove redundant code that turns off
4172 pagination if output isn't a terminal. Remove redundant call to
4173 set_width_command.
a8f4cde1 4174
7e6d0ac8
MK
41752003-08-22 Mark Kettenis <kettenis@gnu.org>
4176
3567a8ea
MK
4177 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4178 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4179 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4180 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4181 `case' keyword.
4182 (sparc64_register_info): Give the reister with number
4183 SPARC64_STATE_REGNUM a name.
4184 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4185 %asi and %ccr.
4186 (sparc64_push_dummy_call): Take BIAS into account when checking
4187 stcak alignment.
4188 (sparc_software_single_step): Remove assertions that check whether
4189 NPC and NNPC were zero.
4190 (sparc_supply_rwindow): Make public. Merge functionality with
4191 sparc64_supply_rwindow.
4192 (sparc_fill_rwindow): Make public. Merge functionality with
4193 sparc64_fill_rwindow.
4194 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4195 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4196 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4197 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4198 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4199
7e6d0ac8
MK
4200 * reggroups.c: Add whitespace after declarations of local
4201 variables in functions.
4202
72e5f484
MC
42032003-08-21 Michael Chastain <mec@shout.net>
4204
4205 * gdbtypes.h: Change array bound type from an int to enum.
4206
435ac228
AC
42072003-08-21 Andrew Cagney <cagney@redhat.com>
4208
4209 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4210 * config/sparc/tm-sparc.h: Ditto.
4211 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4212 unconditionally.
4213 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4214
0d0e1a63
MK
42152003-07-13 Mark Kettenis <kettenis@gnu.org>
4216
4217 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4218 (register_objfile_data, set_objfile_data, objfile_data): New
4219 prototypes.
4220 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4221 prototypes.
4222 (allocate_objfile): Call objfile_alloc_data.
4223 (free_objfile): Call objfile_free_data.
4224 (struct objfile_data): New.
4225 (struct objfile_data_registration): New.
4226 (struct objfile_data_registry): New.
4227 (objfile_data_registry): New variable.
4228 (register_objfile_data): New function.
4229 (objfile_alloc_data, objfile_free_data): New functions.
4230 (set_objfile_data, objfile_data): New functions.
4231 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4232 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4233 (_initialize_dwarf2_frame): New function and prototype.
4234
d90cf509
AC
42352003-08-21 Andrew Cagney <cagney@redhat.com>
4236
4237 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4238 a specific architecture.
4239 * arch-utils.h (set_architecture_from_arch_mach): Delete
4240 declaration.
4241 (target_architecture_hook): Delete declaration.
4242 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4243 (default_float_format): Assume GDB_MULTI_ARCH.
4244 (default_double_format): Assume GDB_MULTI_ARCH.
4245 (set_endian_from_file): Delete function.
4246 (arch_ok): Delete function.
4247 (set_arch): Delete function.
4248 (set_architecture_from_arch_mach): Delete function.
4249 (set_architecture_from_file): Delete function.
4250 (set_architecture): Assume GDB_MULTI_ARCH.
4251 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4252
8b39fe56
MK
42532003-08-21 Mark Kettenis <kettenis@gnu.org>
4254
4255 Rewrite FreeBSD/sparc64 native configuration.
4256 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4257 * sparc64fbsd-nat.c: New file.
4258 * sparc64fbsd-tdep.c: New file.
4259 * sparc64-tdep.c sparc64-tdep.h: New files.
4260 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4261 sparc64fbsd-tdep.o): New dependencies.
4262 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4263 and sparc64fbsd-tdep.c.
4264 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4265 * config/sparc/fbsd.mh: Remove copyright notice.
4266 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4267 sparcbsd-nat.o.
4268 * config/sparc/fbsd.mt: Remove copyright notice.
4269 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4270 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4271 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4272 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4273 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4274 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4275 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4276 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4277 "sparc/tm-sp64.h".
4278 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4279 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4280
a7f19c79
MC
42812003-08-21 Michael Chastain <mec@shout.net>
4282
4283 * symtab.h: Add doco on the space critical structures and
4284 some measurements of space usage.
4285
da08ea5b
MS
42862003-08-21 Michael Snyder <msnyder@redhat.com>
4287
4288 * tracepoint.c (trace_dump_command): Trace break address
4289 is subject to DECR_PC_AFTER_BREAK.
4290 (set_traceframe_context): Make "trace_line" an int.
4291 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4292
6df2bf50
MS
42932003-08-20 Michael Snyder <msnyder@redhat.com>
4294
4295 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4296 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4297 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4298 argument passing.
a8f4cde1 4299 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4300 functions, replace sh_push_dummy_call.
4301 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4302
0955bbf0
MC
43032003-08-20 Michael Chastain <mec@shout.net>
4304
4305 * gdbtypes.h (struct main_type): Rearrange to save space.
4306
260a4188
MS
43072003-08-20 Michael Snyder <msnyder@redhat.com>
4308
4309 * trad-frame.c: Comment typo fix.
4310
8baa6f92
KB
43112003-08-20 Michael Snyder <msnyder@redhat.com>
4312 Kevin Buettner <kevinb@redhat.com>
4313
4314 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4315 (frv_frame_init_saved_regs): Add declaration.
4316 (frame_extra_info): Add new field ``saved_regs''.
4317 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4318 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4319 Update frame related code.
4320 (frv_extract_struct_value_address): Adjust formatting.
4321 * Makefile.in (frv-tdep.o): Update dependencies.
4322 * config/frv/tm-frv.h (target_insert_watchpoint)
4323 (target_remove_watchpoint, target_insert_hw_breakpoint)
4324 (target_remove_hw_breakpoint): Delete these macros.
4325 (remote_insert_watchpoint, remote_remove_watchpoint)
4326 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4327 these declarations.
4328
87193939
MC
43292003-08-20 Michael Chastain <mec@shout.net>
4330
4331 * defs.h (ENUM_BITFIELD): New macro.
4332 * symtab.h (ENUM_BITFIELD): Use it.
4333 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4334
062103ba
SA
43352003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4336
4337 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4338
8b148df9
AC
43392003-08-18 Andrew Cagney <cagney@redhat.com>
4340
4341 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4342 * gdbarch.h, gdbarch.c: Re-generate.
4343 * infcall.c (call_function_by_hand): Adjust the SP by
4344 frame_red_zone_size before allocating any stack space.
4345 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4346 * x86-64-tdep.c (x86_64_frame_align): New function.
4347 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4348
4349 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4350 Remove code adjusting SP so that it skips over the Red Zone.
4351
954a4db8
MK
43522003-08-18 Mark Kettenis <kettenis@gnu.org>
4353
4354 * NEWS (New native configurations): Mention FreeBSD/amd64.
4355
1a241548
AC
43562003-08-18 Andrew Cagney <cagney@redhat.com>
4357
4358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4359 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4360 "m68k_frame_p".
4361 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4362
f82b2acd
MK
43632003-08-18 Mark Kettenis <kettenis@gnu.org>
4364
4365 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4366
4056d258
ML
43672003-08-18 Michal Ludvig <mludvig@suse.cz>
4368
4369 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4370 Define.
4371 * i386-linux-nat.c: Include "linux-nat.h".
4372 (child_post_startup_inferior): New function.
a8f4cde1 4373
99ab4326
MK
43742003-08-18 Mark Kettenis <kettenis@gnu.org>
4375
4376 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4377 at the start of a frameless function. This probably fixes PR
4378 backtrace/1338.
4379
c8d5f0d6
MC
43802003-08-17 Michael Chastain <mec@shout.net>
4381
4382 * symfile.c (find_sym_fns): Remove special case for apollo target.
4383
9016a515
DJ
43842003-08-17 Daniel Jacobowitz <drow@mvista.com>
4385
4386 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4387 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4388 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4389 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4390 (linux_supports_tracevforkdone): New function.
4391 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4392 TRACEVFORKDONE.
4393 (child_follow_fork): Handle vfork.
4394 (linux_handle_extended_wait): Likewise. Also handle exec.
4395 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4396 * NEWS: Mention fork tracing.
4397
c538c11c
DJ
43982003-08-17 Daniel Jacobowitz <drow@mvista.com>
4399
4400 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4401
4de4c07c
DJ
44022003-08-17 Daniel Jacobowitz <drow@mvista.com>
4403
4404 * Makefile.in (i386-linux-nat.o): Update dependencies.
4405 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4406 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4407 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4408 * i386-linux-nat.c: Include "linux-nat.h".
4409 (child_post_startup_inferior): New function.
4410 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4411 * infptrace.c (kill_inferior): Wrap in #ifdef.
4412 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4413 attaching to each LWP.
4414 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4415 (init_lin_lwp_ops): Fill in some more operations.
4416 * linux-nat.h (linux_enable_event_reporting)
4417 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4418 prototypes.
4419 * linux-nat.c (linux_enable_event_reporting): New function.
4420 (child_post_attach, linux_child_post_startup_inferior)
4421 (child_post_startup_inferior, child_follow_fork)
4422 (linux_handle_extended_wait, kill_inferior): New functions.
4423
7996bcec
AC
44242003-08-16 Andrew Cagney <cagney@redhat.com>
4425
4426 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4427 * gdbarch.h, gdbarch.c: Re-generate.
4428
3d48a7a0
MK
44292003-08-16 Mark Kettenis <kettenis@gnu.org>
4430
4431 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4432
7989c619
AC
44332003-08-16 Andrew Cagney <cagney@redhat.com>
4434
4435 * NEWS: Mention that "set prompt-escape-char" was deleted.
4436 * top.c (get_prompt_1): Delete function.
4437 (gdb_prompt_escape):
4438 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4439 prompt-escape-char" command.
4440 (MAX_PROMPT_SIZE): Delete macro.
4441 (get_prompt): Simplify, do not call get_prompt_1.
4442
07978cd8
AC
44432003-08-16 Andrew Cagney <cagney@redhat.com>
4444
4445 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4446 -Werror. -Wformat-nonliteral problems.
4447
3ff7cf9e
JB
44482003-08-15 J. Brobecker <brobecker@gnat.com>
4449
4450 Further multiarching work mostly for hppa64-*-hpux11:
4451 * hppa-tdep.h: New file.
4452 * hppa-tdep.c: #include hppa-tdep.c.
4453 (hppa32_num_regs): Renamed from hppa_num_regs.
4454 (hppa64_num_regs): New constant.
4455 (hppa64_call_dummy_breakpoint_offset): New constant.
4456 (hppa32_call_dummy_length): New constant.
4457 (hppa64_call_dummy_length): New constant.
4458 (hppa32_stack_align): Make name 32bit explicit.
4459 (hppa32_register_virtual_type): Likewise.
4460 (hppa32_extract_return_value): Likewise.
4461 (hppa32_use_struct_convention): Likewise.
4462 (hppa32_store_return_value): Likewise.
4463 (hppa64_register_virtual_type): New function.
4464 (hppa64_extract_return_value): New function.
4465 (hppa64_use_struct_convention): New function.
4466 (hppa64_store_return_value): New function.
4467 (hppa_frame_locals_address): Remove declaration, function does
4468 not exist anymore.
4469 (hppa_register_byte): Add support for PA64 ABI.
4470 (hppa_gdbarch_init): Add support for PA64 ABI.
4471 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4472 Make name 32bit explicit.
4473 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4474 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4475 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4476 (hppa64_hpux_frame_base_before_sigtramp): New function.
4477 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4478 * config/pa/tm-hppa64.h: Remove macros that are no longer
4479 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4480 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4481 * config/pa/tm-hppah.h: Update function calls in macros
4482 following the function renaming in hppa-hpux-tdep.c.
4483 * Makefile.in (hppa_tdep_h): New variable.
4484 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4485
5d05ca6d
MS
44862003-08-14 Michael Snyder <msnyder@redhat.com>
4487
4488 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4489
37ba2569
JB
44902003-08-13 J. Brobecker <brobecker@gnat.com>
4491
4492 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4493 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4494 routine.
4495
aed7f26a
MS
44962003-08-13 Michael Snyder <msnyder@redhat.com>
4497
4498 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4499 (frv_saved_pc_after_call): Use deprecated ftype.
4500 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4501 (frv_remote_translate_xfer_address): Remove.
4502 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4503
752d4ac1
JB
45042003-08-13 J. Brobecker <brobecker@gnat.com>
4505
4506 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4507 initialization after the common gdbarch initialization, not before.
4508
1426ac1d
JB
45092003-08-13 J. Brobecker <brobecker@gnat.com>
4510
4511 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4512 (ADDR_BITS_REMOVE): Remove, redundant.
4513
b6fbdd1d
JB
45142003-08-13 J. Brobecker <brobecker@gnat.com>
4515
4516 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4517 gdbarch method to clear the 2 low bits of text addresses.
4518
44160db3
AC
45192003-08-12 Andrew Cagney <cagney@redhat.com>
4520
4521 * Makefile.in (dsrec.o): Update dependencies.
4522 * dsrec.c: Include "gdb_assert.h".
4523 (make_srec): Use snprintf instead of sprintf, use a literal format
4524 string.
4525
bcf7d3ca
AC
45262003-08-12 Andrew Cagney <cagney@redhat.com>
4527
4528 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4529 FRAME_OBSTACK_ZALLOC.
4530
49ed40de
KB
45312003-08-12 Kevin Buettner <kevinb@redhat.com>
4532
4533 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4534 SSE registers.
4535
b246147c
MK
45362003-08-10 Mark Kettenis <kettenis@gnu.org>
4537
4538 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4539 amd64fbsd_sc_reg_offset): Add extern declarations.
4540 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4541 declarations.
4542
d95fdc0d
BE
45432003-08-11 Ben Elliston <bje@wasabisystems.com>
4544
4545 * MAINTAINERS (write after approval): Update my mail address.
4546
cf6a0e73
AC
45472003-08-10 Andrew Cagney <cagney@redhat.com>
4548
4549 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4550
f837910f
MK
45512003-08-10 Mark Kettenis <kettenis@gnu.org>
4552
e2dbbd2d
MK
4553 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4554 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4555 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4556 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4557 i386bsd_sc_reg_offset): Add extern declarations.
4558 * i386obsd-nat.c: Include "i386-tdep.h"
4559 (_initialize_i386obsd_nat): Remove extern declarations.
4560 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4561 declarations.
4562 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4563 declarations.
4564
f837910f
MK
4565 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4566 instead of frame_read_register.
4567 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4568 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4569 SP_REGNUM.
4570 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4571 instead of frame_unwind_unsigned_register. Use
4572 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4573 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4574 instead of read_register. Use builtin_type_void_data_ptr instead
4575 of builtin_type_void_func_ptr when extracting the address of the
4576 jmp_buf.
4577 (i386_extract_return_value, i386_store_return_value,
4578 i386_pseudo_register_read, i386_pseudo_register_write): Use
4579 register_size instead REGISTER_RAW_SIZE.
4580
edcf254d
AC
45812003-08-10 Andrew Cagney <cagney@redhat.com>
4582
4583 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4584 sprintf. Make "name" constant.
4585
26604a34
MK
45862003-08-10 Mark Kettenis <kettenis@gnu.org>
4587
192285c6
MK
4588 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4589 instead of frame_read_register.
f837910f
MK
4590 (i387_print_float_info): Use get_frame_register and
4591 get_frame_register_unsigned instead of frame_register_read.
192285c6 4592
f0925262
MK
4593 * i386fbsd-nat.c: Include "i386-tdep.h".
4594 (child_resume): Make `eflags' an ULONGEST. Use
4595 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4596 instead of register_read and register_write.
4597
a144416f
MK
4598 * i386bsd-nat.c (fetch_inferior_registers,
4599 store_inferior_registers): Don't use && at the end of a line.
4600 (_initialize_i386bsd_nat): Fix typo.
4601
fec74868
MK
4602 * frame.c (_initialize_frame): Add missing backslash.
4603
87232496
MK
4604 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4605 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4606 and supply_register instead of manipulating the register buffer
4607 directly.
4608
c9b9de0b
MK
4609 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4610 * config/i386/nm-i386sol2.h
4611 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4612
26604a34
MK
4613 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4614 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4615 instructions that GCC likes to mingle into the prologue. Fixes
4616 gdb/1253 and gdb/1255.
4617
25d29d70
AC
46182003-08-09 Andrew Cagney <cagney@redhat.com>
4619
4620 Fix GDB PR cli/926.
4621 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4622 * command.h (add_setshow_uinteger_cmd): Declare.
4623 * frame.c (set_backtrace_cmd): New function.
4624 (show_backtrace_cmd): New function.
4625 * frame.c (_initialize_frame): Replace "set/show
4626 backtrace-below-main" with "set/show backtrace past-main". Add
4627 command "set/show backtrace limit".
4628 (backtrace_past_main): Rename "backtrace_below_main".
4629 (backtrace_limit): New variable.
4630 (get_prev_frame): Update. Check the backtrace_limit.
4631
9ebf4acf
AC
46322003-08-09 Andrew Cagney <cagney@redhat.com>
4633
4634 * defs.h (xstrprintf): Declare.
4635 * utils.c (xstrprintf): New function.
4636 * breakpoint.c (insert_breakpoints): Replace sprintf and
4637 non-literal format strings, with xstrprintf and cleanups.
4638 (delete_breakpoint,breakpoint_re_set): Ditto.
4639 (commands_command, insert_breakpoints): Ditto.
4640 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4641 (break_at_finish_command_1): Ditto.
4642
3771659b
AC
46432003-08-09 Andrew Cagney <cagney@redhat.com>
4644
4645 * MAINTAINERS (language support): List Adam Fedor as Objective C
4646 maintainer.
4647
b4263afa
JB
46482003-08-08 J. Brobecker <brobecker@gnat.com>
4649
4650 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4651 are now multiarched.
4652
d84defb1
JB
46532003-08-08 J. Brobecker <brobecker@gnat.com>
4654
4655 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4656 longer necessary now that hppa64 is partially multiarch'ed.
4657
f786f615
AC
46582003-08-08 Andrew Cagney <cagney@redhat.com>
4659
4660 * interps.c (interp_set): Check for a NULL "old_interp".
4661
c938e9b0
L
46622003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4663
4664 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4665 (install-only): Support DESTDIR.
4666 (uninstall): Likewise.
4667 (install-gdbtk): Likewise.
4668
9a146a11
EZ
46692003-08-08 Elena Zannoni <ezannoni@redhat.com>
4670
4671 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4672 contains something meaningful at all times.
4673
4674Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4675
62599e99 4676 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4677
56296155
BC
4678Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4679
62599e99 4680 * MAINTAINERS (write after approval): Added self.
56296155 4681
9710e734
AC
46822003-08-07 Andrew Cagney <cagney@redhat.com>
4683
4684 * inferior.h (AT_SYMBOL): Define.
4685 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4686 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4687 * mips-tdep.c (mips_call_dummy_address): Delete function.
4688 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4689 set call_dummy_address.
4690
98b3ab73
AC
46912003-08-07 Andrew Cagney <cagney@redhat.com>
4692
4693 * language.c (op_error): Delete function.
4694 (binop_type_check): Delete function.
4695 * language.h (type_op_error, range_op_error): Delete macros.
4696 (op_error): Delete declaration.
4697
2fcf52f0
AC
46982003-08-07 Andrew Cagney <cagney@redhat.com>
4699
4700 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4701
abd4220e 47022003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4703
abd4220e 4704 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4705 (x86_64_push_arguments): Skip the red zone.
abd4220e 4706
9dd5f34f
AC
47072003-08-05 Andrew Cagney <cagney@redhat.com>
4708
4709 * reggroups.c (reggroup_next): Check for the final entry.
4710
e5e78edc
AC
47112003-08-04 Andrew Cagney <cagney@redhat.com>
4712
ab4e3d93
AC
4713 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4714 * cli/cli-script.c (define_command): Call query directly, instead
4715 of passing it a buffer.
4716 * ocd.c (ocd_error): Pass error a constant format string.
4717 * remote-mips.c (mips_error): Use fputs_filtered.
4718
1062ca82
AC
4719 * solib-svr4.c (_initialize_svr4_solib): Update
4720 register_gdbarch_data call.
4721 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4722
fcc1c85c
AC
4723 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4724 (register_gdbarch_data): Delete "free" parameter. Update
4725 comments.
4726 * gdbarch.h, gdbarch.c: Re-generate.
4727 * reggroups.c (_initialize_reggroup): Update.
4728 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4729 * frame-base.c (_initialize_frame_base): Update.
4730 * frame-unwind.c (_initialize_frame_unwind): Update.
4731 * user-regs.c (_initialize_user_regs): Update.
4732 * remote.c (_initialize_remote): Update.
4733 * regcache.c (_initialize_regcache): Update.
4734
116f06ea
AC
4735 * regcache.c (xfree_regcache_descr): Delete function.
4736 (_initialize_regcache): Update call to register_gdbarch_data.
4737 (init_regcache_descr, init_legacy_regcache_descr): Use
4738 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4739
e5e78edc
AC
4740 * remote.c (free_remote_state): Delete function.
4741 (_initialize_remote): Update register_gdbarch_data.
4742 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4743 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4744
6c7d17ba
AC
47452003-08-04 Andrew Cagney <cagney@redhat.com>
4746
4747 * reggroups.c (struct reggroup_el): Define.
4748 (struct reggroups): Delete field "nr_group". Replace array
4749 "group" with a "first" to "last" linked list.
4750 (reggroups_init): Update. Allocate using gdbarch's obstack.
4751 (reggroups_free): Delete function.
4752 (add_group): Update. Add "el" parameter.
4753 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4754 (default_groups): Update.
4755 (reggroup_next): Replace reggroups.
4756 (reggroups_dump): Update.
4757 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4758 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4759 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4760
89b7795b
DJ
47612003-08-04 Daniel Jacobowitz <drow@mvista.com>
4762
4763 * Makefile.in (tui-interp.o): Update dependencies.
4764
306d9ac5
DC
47652003-08-04 David Carlton <carlton@kealia.com>
4766
4767 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4768 to internal_error call.
4769 * source.c (forward_search_command): Add "%s" format argument.
4770 (reverse_search_command): Ditto.
4771 * top.c (quit_confirm): Ditto.
4772 * cli/cli-setshow.c (do_setshow_command): Ditto.
4773 * cp-valprint.c (cp_print_class_method): Replace
4774 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4775 (cp_print_class_member): Ditto.
4776 * event-top.c (command_line_handler): Ditto.
4777 * linux-proc.c (linux_info_proc_cmd): Ditto.
4778 * p-typeprint.c (pascal_type_print_base): Ditto.
4779 * p-valprint.c (pascal_object_print_class_method): Ditto.
4780 (pascal_object_print_class_member): Ditto.
4781 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4782 * remote.c (remote_cisco_section_offsets): Ditto.
4783 * top.c (command_line_input): Ditto.
4784 * utils.c (vwarning,error_stream,quit): Ditto.
4785 * valprint.c (print_floating,print_binary_chars)
4786 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4787
57bfe177
AC
47882003-08-04 Andrew Cagney <cagney@redhat.com>
4789
4790 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4791
e546b999
AC
47922003-08-02 Andrew Cagney <cagney@redhat.com>
4793
4794 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4795 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4796 amd64fbsd-nat.c.
4797
91092ee5
AC
47982003-08-02 Andrew Cagney <cagney@redhat.com>
4799
4800 * Makefile.in: Update all dependencies and definitions.
4801
889f28e2
AF
48022003-08-02 Adam Fedor <fedor@gnu.org>
4803
4804 * linespec.c (is_objc_method_format): New function
4805 (decode_line_1, locate_first_half): Use it.
4806 Fixes PR objc/1298
4807
880bc914
AC
48082003-08-01 Andrew Cagney <cagney@redhat.com>
4809
4810 * NEWS: Mention that m32r is multi-arch.
4811 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4812 * configure.tgt: Recognize m32r-*-*.
4813 * config/m32r/tm-m32r.h: Delete file.
4814 * config/m32r/m32r.mt: New file.
a8f4cde1 4815 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4816 gethostname succeeds, in order to avoid a compilation
4817 warning.
4818 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4819 compiler warning.
4820
19f59343
MS
48212003-08-01 Michael Snyder <msnyder@redhat.com>
4822
4823 * sh-tdep.c (sh_frame_align): New gdbarch method.
4824 (sh_gdbarch_init): Set up frame_align method.
4825
4e7d7511
MS
48262003-07-31 Michael Snyder <msnyder@redhat.com>
4827
4828 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4829 which is already covered by the new frames infrastructure.
4830
63022984
AC
48312003-07-31 Andrew Cagney <cagney@redhat.com>
4832
4833 * user-regs.c (struct user_reg): Add "next" link.
4834 (struct user_regs): Replace "user" with "first" and "last" links.
4835 (append_user_reg): Add pre-allocated "reg" parameter.
4836 (builtin_user_regs): Provide initial value for "last".
4837 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4838 (user_regs_init): Allocate memory from the gdbarch obstack.
4839 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4840 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4841 linked list.
4842 (usernum_to_user_reg): New function.
4843 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4844 (value_of_user_reg): Use usernum_to_user_reg.
4845 (user_regs_free): Delete function.
4846 (_initialize_user_regs): Update register_gdbarch_data call.
4847
7cf6e574
DJ
48482003-07-31 Daniel Jacobowitz <drow@mvista.com>
4849
4850 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4851
c48a845b
MS
48522003-07-30 Michael Snyder <msnyder@redhat.com>
4853
4e7d7511 4854 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4855 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4856 value_being_returned.
4857 * infcmd.c (print_return_value): Pass zero as struct_addr.
4858 * values.c (value_being_returned): If struct_addr is passed,
4859 use it instead of trying to recover it from the inferior.
4860
f0d8db19
KB
48612003-07-30 Kevin Buettner <kevinb@redhat.com>
4862
4863 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4864 the prologue analyzer won't need to attempt to extract the pc
4865 value from the woefully incomplete dummy frame.
4866 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4867 possible. Disable code which modifies the frame.
4868
e5c113a1
AC
48692003-07-28 Andrew Cagney <cagney@redhat.com>
4870
4871 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4872 to level 2.
4873 (annotate_breakpoints_table, annotate_record): Ditto.
4874 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4875 (annotate_field_name_end, annotate_field_value): Ditto.
4876 (annotate_field_end, annotate_frame_source_begin): Ditto.
4877 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4878 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4879 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4880 (annotate_frame_address_end, annotate_frame_address): Ditto.
4881 (annotate_frame_args, annotate_frame_end): Ditto.
4882 (annotate_frame_where, annotate_arg_begin): Ditto.
4883 (annotate_arg_name_end, annotate_arg_value): Ditto.
4884 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4885 (annotate_function_call, annotate_signal_name): Ditto.
4886 (annotate_signal_string, annotate_signal_name_end): Ditto.
4887 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4888 (annotate_value_begin, annotate_value_history_value): Ditto.
4889 (annotate_value_history_end, annotate_value_end): Ditto.
4890 (annotate_display_begin, annotate_display_number_end): Ditto.
4891 (annotate_display_format, annotate_display_expression): Ditto.
4892 (annotate_display_expression_end, annotate_display_value): Ditto.
4893 (annotate_display_end, annotate_array_section_begin): Ditto.
4894 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4895 (annotate_elt, annotate_array_section_end): Ditto.
4896
bb1db049
AC
48972003-07-28 Andrew Cagney <cagney@redhat.com>
4898
4899 * regcache.c (struct regcache_descr): Update comments on
4900 nr_raw_registers.
4901 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4902 sizeof_raw_register_valid_p.
4903 (init_regcache_descr): Set nr_raw_registers and
4904 sizeof_raw_register_valid_p before calling
4905 init_legacy_regcache_descr.
4906
20e6603c
AC
49072003-07-28 Andrew Cagney <cagney@redhat.com>
4908
4909 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4910 MOD NUM_REGS.
4911
db742940
DJ
49122003-07-28 Daniel Jacobowitz <drow@mvista.com>
4913
4914 * thread.c (info_threads_command): Use get_selected_frame ().
4915 Check that there is at least one non-sentinel frame.
4916
ce7f4371
SC
49172003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4918
4919 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4920 (m68hc11_pop_frame): Remove.
4921 (m68hc11_frame_saved_pc): Remove.
4922 (m68hc11_frame_chain): Remove.
4923 (m68hc11_frame_init_saved_regs): Remove.
4924 (m68hc11_init_extra_frame_info): Remove.
4925 (m68hc11_store_struct_return): Remove.
4926 (m68hc11_saved_pc_after_call): Remove.
4927
1ea653ae
SC
49282003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4929
4930 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4931 frame unwind information.
4932 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4933 and adapted for frame unwinding.
4934 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4935 (m68hc11_unwind_pc): New function.
4936 (m68hc11_frame_unwind_cache): New function to analyze frames.
4937 (m68hc11_frame_this_id): New function to create new frame struct.
4938 (m68hc11_frame_prev_register): New function to unwind a register from
4939 the frame.
4940 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4941 (m68hc11_frame_p): New function for the above.
4942 (m68hc11_frame_base_address): New function to return fp of frame.
4943 (m68hc11_frame_args_address): Update for frame.
4944 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4945 (m68hc11_unwind_sp): New function.
4946 (m68hc11_unwind_dummy_id): New function.
4947 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4948 calls.
4949
c8a7f6ac
SC
49502003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4951
4952 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4953 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4954 when we are beyond the current pc.
4955
3dc990bf
SC
49562003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4957
4958 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4959 from m68hc11_push_arguments.
4960 (m68hc11_push_arguments): Remove.
4961 (m68hc11_push_return_address): Remove.
4962 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4963 handlers; remove deprecated_extra_stack_alignment_needed.
4964
222e5d1d
AC
49652003-07-27 Andrew Cagney <cagney@redhat.com>
4966
4967 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4968 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4969 REAL_PC and not the pointer.
4970 * hppa-hpux-tdep.c: Include frame.h
4971
a7e9a47e
AC
49722003-07-27 Andrew Cagney <cagney@redhat.com>
4973
4974 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4975 GDB_MULTI_ACH_PARTIAL.
4976
7e3dd49e
AC
49772003-07-27 Andrew Cagney <cagney@redhat.com>
4978
4979 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4980 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4981 operator at start and not end of line.
4982 (decode_prologue): Ditto.
4983 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4984 frame_unwind_register_unsigned instead of
4985 frame_unwind_unsigned_register.
4986 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4987 read_register.
4988 (m32r_push_dummy_call): Use register_size instead of
4989 REGISTER_RAW_SIZE.
4990 (m32r_frame_sniffer): Replace m32r_frame_p.
4991 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4992 * m32r-rom.c (report_transfer_performance): Delete extern
4993 declaration.
4994 (m32r_load, m32r_upload_command): Use print_transfer_performance
4995 instead of report_transfer_performance.
4996 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4997 / add_show_from_set.
4998
0880807f
AC
49992003-07-26 Andrew Cagney <cagney@redhat.com>
5000
5001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5002 store_return_value and extract_struct_value_address.
5003
64ae9269
DJ
50042003-07-26 Daniel Jacobowitz <drow@mvista.com>
5005
5006 PR c++/1267
5007 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5008 NULL, default to the section containing PC.
5009
e286caf2
SC
50102003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5011
5012 * NEWS: Mention "regs" deprecated for m68hc11 too.
5013
5014 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5015 (m68hc11_print_register): New function to print out one register.
5016 (m68hc11_print_registers_info): New function to print registers.
5017 (show_regs): Deprecate and use the above.
5018 (m68hc11_gdbarch_init): Install the print_registers_info.
5019
705b278b
JJ
50202003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5021
5022 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5023 that we have a SIGTRAP before returning non-zero.
5024
63cd4198
EZ
50252003-07-23 Michal Ludvig <mludvig@suse.cz>
5026 Elena Zannoni <ezannoni@redhat.com>
5027
a8f4cde1 5028 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5029 find_function_start_sal() returns empty record.
5030
6926787d
AS
50312003-07-23 Andreas Schwab <schwab@suse.de>
5032
5033 * ia64-tdep.c (ia64_print_insn): New function.
5034 (ia64_gdbarch_init): Set print_insn to it.
5035 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5036 deprecated_tm_print_insn_info.
5037
708cc1b6
MS
50382003-07-22 Michael Snyder <msnyder@redhat.com>
5039
5040 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5041 handle 8-bit returns (long long).
5042 (h8300h_extract_return_value): Ditto.
5043 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5044
aebd7893
AC
50452003-07-22 Andrew Cagney <cagney@redhat.com>
5046
5047 * gdbarch.c Include "gdb_obstack.h".
5048 (struct gdbarch): Add an "obstack".
5049 (alloc_gdbarch_data): Allocate the gdbarch data using
5050 GDBARCH_OBSTACK_CALLOC.
5051 (free_gdbarch_data): Delete function.
5052 (gdbarch_obstack_zalloc): New function.
5053 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5054 Assert that the architecture is not initialized.
5055 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5056 vector from the obstack.
5057 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5058 architecture obstack.
5059 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5060 (set_gdbarch_data): Assert that the data is not initialized.
5061 (struct gdbarch_data): Delete member "free".
5062 (register_gdbarch_data): Do not initialize "free".
5063 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5064
153721e6
AC
50652003-07-22 Andrew Cagney <cagney@redhat.com>
5066
5067 * configure.in (build_warnings): Add -Wformat-nonliteral.
5068 * configure: Re-generate.
5069
c193f044 50702003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5071
5072 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5073
c3228f12
EZ
50742003-07-22 Elena Zannoni <ezannoni@redhat.com>
5075
5076 * findvar.c (read_var_value): Remove case for thread local storage
5077 variables. It is now entirely handled by the dwarf2 location
5078 expression code.
5079 * printcmd.c (address_info): Ditto.
5080 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5081 enumeration value.
5082 (struct symbol): Remove objfile field, which was used by
5083 LOC_THREAD_LOCAL_STATIC only.
5084 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5085 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5086 usage of objfile pointer.
5087 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5088 thread local variables.
5089 Add include of objfiles.h.
5090 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5091 storage variables.
5092 * Makefile.in (dwarf2loc.o): Update dependencies.
5093
aef9bcd2
AC
50942003-07-22 Andrew Cagney <cagney@redhat.com>
5095
5096 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5097 get_frame_base.
5098 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5099 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5100 (struct value): Add opaque declaration.
5101 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5102
d95a8903
AC
51032003-07-21 Andrew Cagney <cagney@redhat.com>
5104
5105 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5106 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5107
4db73d49
SC
51082003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5109
a8f4cde1 5110 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5111 regcache_cooked_read_unsigned instead of read_register.
5112 (m68hc11_saved_pc_after_call): Likewise.
5113 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5114 instead of write_register.
5115 (m68hc11_register_type): New function.
5116 (m68hc11_register_virtual_type): Remove.
5117 (m68hc11_store_return_value): Convert to use the regcache.
5118 (m68hc11_extract_struct_value_address): Likewise.
5119 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5120 m68hc11_register_type; undeprecate store_return_value and
5121 extract_struct_value_address.
5122
ef2b8fcd
SC
51232003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5124
5125 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5126 and translate to use regcache.
5127 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5128
625b0b97
AC
51292003-07-18 Andrew Cagney <cagney@redhat.com>
5130
5131 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5132 * gdbarch.h, gdbarch.c: Re-generate.
5133 * i386-tdep.c (i386_gdbarch_init): Do not set
5134 DWARF2_BUILD_FRAME_INFO.
5135 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5136 unconditionally.
5137 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5138 DWARF2_BUILD_FRAME_INFO.
5139
22b0d388
AC
51402003-07-18 Andrew Cagney <cagney@redhat.com>
5141
5142 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5143 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5144
1ce5d6dd
AC
51452003-07-18 Andrew Cagney <cagney@redhat.com>
5146
5147 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5148 frame_unwind_address_in_block, instead of frame_pc_unwind.
5149 (dwarf2_frame_cache): Ditto.
5150
e6e5e94c
AC
51512003-07-18 Andrew Cagney <cagney@redhat.com>
5152
5153 * user-regs.h (struct gdbarch): Declare opaque.
5154 * ui-out.h (struct ui_file): Declare opaque.
5155 * dwarf2-frame.h (struct frame_info): Declare opaque.
5156
5483d879
KW
51572003-07-18 Kris Warkentin <kewarken@qnx.com>
5158
5159 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5160 #include "...".
5161 (procfs_meminfo): Change strerror to safe_strerror.
5162 (procfs_can_run): Remove K&R badness.
5163
278a7cf7
MS
51642003-07-17 Michael Snyder <msnyder@redhat.com>
5165
5166 * remote-sim.c: Comment typo fix.
5167
606e3b82
AC
51682003-07-17 Andrew Cagney <cagney@redhat.com>
5169
5170 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5171 configure.
5172 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5173 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5174 GDB_MULTI_ARCH_PARTIAL.
5175
c43af07c
EZ
51762003-07-17 Elena Zannoni <ezannoni@redhat.com>
5177
5178 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5179 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5180 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5181
3b85b0f1
TR
51822003-07-16 Theodore A. Roth <troth@openavr.org>
5183
5184 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5185 found.
5186 (avr_frame_unwind_cache): Don't unwind FP for main.
5187 Update a comment.
5188 Save the computed prev_sp.
5189 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5190 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5191 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5192
336d1bba
AC
51932003-07-16 Andrew Cagney <cagney@redhat.com>
5194
5195 * frame-base.h (frame_base_p_ftype): Delete definition.
5196 (frame_base_append_predicate): Delete declaration.
5197 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5198 (frame_unwind_append_predicate): Delete declaration.
5199 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5200 (append_predicate): Delete parameter "p".
5201 (frame_unwind_append_predicate): Delete function.
5202 (frame_unwind_append_sniffer): Update call to append_predicate.
5203 (frame_unwind_free): Delete function.
5204 (_initialize_frame_unwind): Pass NULL as "free" to
5205 register_gdbarch_data.
5206 (frame_unwind_init): Append the dummy_frame_sniffer.
5207 (frame_unwind_find_by_frame): Simplify.
5208 * frame-base.c (struct frame_base_table): Delete field "p".
5209 (append_predicate): Delete parameter "p".
5210 (frame_base_append_predicate): Delete function.
5211 (frame_base_append_sniffer): Update call to append_predicate.
5212 (frame_base_free): Delete function.
5213 (frame_base_find_by_frame): Simplify.
5214 (_initialize_frame_base): Pass NULL as "free" to
5215 register_gdbarch_data.
5216 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5217 (x86_64_sigtramp_frame_sniffer): Replace
5218 "x86_64_sigtramp_frame_p".
5219 (x86_64_init_abi): Set the frame unwind sniffers.
5220 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5221 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5222 (m68k_gdbarch_init): Set the frame unwind sniffers.
5223 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5224 "i386_sigtramp_frame_p".
5225 (i386_frame_sniffer): Replace "i386_frame_p".
5226 (i386_gdbarch_init): Set the frame unwind sniffers.
5227 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5228 (avr_gdbarch_init): Set the frame unwind sniffers.
5229 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5230 "alpha_sigtramp_frame_p"
5231 (alpha_heuristic_frame_sniffer): Replace
5232 "alpha_heuristic_frame_p".
5233 (alpha_gdbarch_init): Set the frame unwind sniffers.
5234 (alpha_dwarf2_init_abi): Ditto.
5235 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5236 "alpha_debug_frame_p".
5237 (alpha_mdebug_frame_base_sniffer): Replace
5238 "alpha_mdebug_frame_base_p".
5239 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5240 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5241 (d10v_gdbarch_init): Set the frame unwind sniffer.
5242 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5243 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5244 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5245 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5246 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5247 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5248
48db5a3c
CV
52492003-07-16 Michael Snyder <msnyder@redhat.com>
5250
5251 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5252 should go thru sh_dsp_register_sim_regno, else the dsp regs
5253 will not get the right values.
5254
52552003-07-16 Corinna Vinschen <vinschen@redhat.com>
5256
5257 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5258 deprecated_store_floating by call to store_typed_floating.
5259 (sh_sh4_register_convert_to_raw): Substitute call to
5260 deprecated_extract_floating by call to extract_typed_floating.
5261
52622003-07-16 Corinna Vinschen <vinschen@redhat.com>
5263
5264 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5265
52662003-07-16 Corinna Vinschen <vinschen@redhat.com>
5267
5268 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5269 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5270 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5271 as possible.
5272 (do_pseudo_register): Remove.
5273 (sh_push_dummy_code): New function.
5274 (sh64_store_struct_return): Rename from sh_store_struct_return.
5275 Only called for sh64 now.
5276 (sh_extract_struct_value_address): Regcache'ify.
5277 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5278 and accomodate new tasks.
5279 (sh64_push_return_address): Rename from sh_push_return_address.
5280 Only called for sh64 now.
5281 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5282 Regcache'ify.
5283 (sh3e_sh4_extract_return_value): Regcache'ify.
5284 (sh_default_store_return_value): Ditto.
5285 (sh3e_sh4_store_return_value): Ditto.
5286 (sh_default_register_byte): Remove.
5287 (sh_sh4_register_byte): Remove.
5288 (sh_default_register_raw_size): Remove.
5289 (sh_sh4_register_raw_size): Remove.
5290 (sh_register_virtual_size): Remove.
5291 (sh_sh3e_register_virtual_type): Remove.
5292 (sh_sh3e_register_type): New function.
5293 (sh_sh4_register_virtual_type): Remove.
5294 (sh_sh4_register_type): New function.
5295 (sh_default_register_virtual_type): Remove.
5296 (sh_default_register_type): New function.
5297 (do_fv_register_info): Add parameters to accomodate call from
5298 sh_print_registers_info.
5299 (do_dr_register_info): Ditto.
5300 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5301 Add parameters to accomodate call from sh_print_registers_info.
5302 (sh_do_fp_register): Ditto.
5303 (sh64_do_pseudo_register): Call do_dr_register_info,
5304 do_fv_register_info and sh_do_fp_register with default parameters.
5305 (sh_do_register): Add parameters to accomodate call from
5306 sh_print_registers_info.
5307 (sh_print_register): Ditto.
5308 (sh_print_registers_info): Rename from sh_do_registers_info.
5309 Add parameters to be used as gdbarch_print_registers_info
5310 implementation. Accomodate removed do_pseudo_register function
5311 pointer.
5312 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5313 function pointer. Call sh_print_register with default parameters.
5314 (sh64_do_registers_info): Call sh_print_registers_info instead of
5315 sh_do_registers_info.
5316 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5317 detection of deprecated vs. non-deprecated functionality.
5318 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5319 function pointer assignments by direct function calls.
5320
e8a89fe2
AC
53212003-07-15 Andrew Cagney <cagney@redhat.com>
5322
5323 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5324 (frame_register_unwind, create_new_frame): Ditto.
5325 (legacy_get_prev_frame, get_frame_type): Ditto.
5326 (get_frame_base_address): Use frame_base_find_by_frame.
5327 (get_frame_locals_address): Use frame_base_find_by_frame.
5328 (get_frame_args_address): Use frame_base_find_by_frame.
5329 * frame-base.h (frame_base_sniffer_ftype): Declare.
5330 (frame_base_append_sniffer): Declare.
5331 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5332 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5333 (frame_base_append_sniffer): New function.
5334 (frame_base_append_predicate): Add a NULL sniffer.
5335 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5336 (struct frame_base_table): Add "sniffer".
5337 (frame_base_free): Free the "sniffer" table.
5338 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5339 (frame_unwind_append_sniffer): Declare.
5340 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5341 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5342 (struct frame_unwind_table): Add "sniffer", delete "middle".
5343 (append_predicate): Add "sniffer" parameter, append the sniffer.
5344 (frame_unwind_init): Update append_predicate call.
5345 (frame_unwind_append_sniffer): New function.
5346 (frame_unwind_append_predicate): Update append_predicate call.
5347 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5348
0714963c
AC
53492003-07-15 Andrew Cagney <cagney@redhat.com>
5350
5351 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5352 before code inhibiting repeated unwind attempts. Add to
5353 commentary on that test's problems.
5354 * blockframe.c (inside_main_func): Look for "main" in the minimal
5355 symbol table.
5356 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5357 identical.
5358
d9170e22
AC
53592003-07-15 Andrew Cagney <cagney@redhat.com>
5360
5361 * complaints.c (struct explanation): Define.
5362 (struct complaints): Change type of "explanation" to "struct
5363 explanation".
5364 (symfile_explanations): Convert to a "struct explanation" table.
5365 (vcomplaint): Update.
5366
eba29c8c
ML
53672003-07-15 Michal Ludvig <mludvig@suse.cz>
5368
5369 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5370 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5371 x86_64_linux_(fill,supply)_gregset functions.
5372 * x86-64-linux-tdep.c (USER_*): New defines.
5373 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5374 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5375 New functions.
5376 (fetch_core_registers): Ditto.
5377 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5378 * x86-64-linux-tdep.h: New file.
5379 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5380 and core-regset.o.
5381 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5382
68cc0bfb
MK
53832003-07-13 Mark Kettenis <kettenis@gnu.org>
5384
88a115f7
MK
5385 * x86-64-tdep.c (x86_64_store_return_value): Use
5386 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5387
68cc0bfb
MK
5388 * configure.host: Add x86_64-*-freebsd*.
5389 * configure.tgt: Add x86_64-*-freebsd*.
5390 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5391 * amd64fbsd-nat.c: New file.
5392 * amd64fbsd-tdep.c: New file.
5393 * config/i386/nm-fbsd64.h: New file.
5394 * config/i386/fbsd64.mh: New file.
5395 * config/i386/fbsd64.mt: New file.
5396
138e7be5
MK
53972003-07-11 Mark Kettenis <kettenis@gnu.org>
5398
5399 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5400 `sc_regs_offset' and `sc_fpregs_offset'.
5401 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5402 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5403 (alpha_sigtramp_register_address): Rewrite to use new members of
5404 `struct gdbarch_tdep'.
5405 (alpha_gdbarch_init): Initialize new members of struct
5406 gdbarch_tdep'.
5407 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5408 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5409 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5410 (alphafbsd_pc_in_sigtramp): Implement.
5411 (alphafbsd_sigtramp_offset): New function.
5412 (alphafbsd_sigcontext_addr): New function.
5413 (alphafbsd_init_abi): Initialize signal trampoline related members
5414 of `struct gdbarch_tdep'.
5415 (_initialize_alphafbsd_tdep): Add prototype.
5416
95303a68
TR
54172003-07-11 Theodore A. Roth <troth@openavr.org>
5418
ba292e4c
TR
5419 * Makefile.in (install-only): Quote sed expression when generating
5420 transformed_name.
95303a68 5421
6896c0c7
RH
54222003-07-11 Richard Henderson <rth@redhat.com>
5423
5424 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5425 * dwarf2-frame.c: Include complaints.h.
5426 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5427 variable initialization; return NULL on error.
5428 (decode_frame_entry): New.
5429
8edd5d01
AC
54302003-07-11 Andrew Cagney <cagney@redhat.com>
5431
c4a09524
AC
5432 * frame.h (frame_address_in_block): Delete declaration.
5433 * blockframe.c (frame_address_in_block): Delete function.
5434 (get_frame_block): Use get_frame_address_in_block.
5435 (block_innermost_frame): Ditto.
5436 * stack.c (print_frame, backtrace_command_1): Ditto.
5437
8edd5d01
AC
5438 * frame.h (get_frame_address_in_block): Declare.
5439 (frame_unwind_address_in_block): Declare.
5440 * frame.c (frame_unwind_address_in_block): New function.
5441 (get_frame_address_in_block): New function.
5442
f7968451
AC
54432003-07-10 Andrew Cagney <cagney@redhat.com>
5444
5445 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5446 pre-default. Note: re-generate has no effect.
a8f4cde1 5447
ae99b398
AC
54482003-07-10 Andrew Cagney <cagney@redhat.com>
5449
5450 * gdbarch.sh: When a variable, but not a function, compare against
5451 0. Fix problem in previous patch.
5452 * gdbarch.c: Re-generate.
a8f4cde1 5453
956ac328
AC
54542003-07-10 Andrew Cagney <cagney@redhat.com>
5455
5456 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5457 functions against NULL, not 0.
5458 * gdbarch.c: Re-generate.
a8f4cde1 5459
287c3240
FF
54602003-07-10 Fred Fish <fnf@ninemoons.com>
5461
5462 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5463 null string instead of a null pointer.
5464 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5465
32f63c4b
MS
54662003-07-09 Michael Snyder <msnyder@redhat.com>
5467
5468 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5469
402ecd56
MK
54702003-07-09 Mark Kettenis <kettenis@gnu.org>
5471
5472 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5473 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5474 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5475 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5476 * x86-64-tdep.c: ... from here.
5477
c481dac7
AS
54782003-07-09 Andreas Schwab <schwab@suse.de>
5479
5480 * m68k-tdep.h (enum struct_return): Define.
5481 (struct gdbarch_tdep): Add struct_return.
5482 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5483 bytes are padded to the right, not to the left. Pass struct value
5484 address in register %a1, not on stack.
5485 (m68k_use_struct_convention): New function.
5486 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5487 struct_return in tdep to pcc_struct_return.
5488 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5489 reg_struct_return.
5490
a8f4cde1 54912003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5492
a8f4cde1 5493 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5494
96a4ee76
AC
54952003-07-09 Andrew Cagney <cagney@redhat.com>
5496
5497 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5498 Add comments about the checks.
5499
1517c6d1
AC
55002003-07-08 Andrew Cagney <cagney@redhat.com>
5501
5502 * Makefile.in: Make dependency section headers consistent.
5503 (config_h): Move to $BUILD headers section.
5504 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5505 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5506 (ada-exp.tab.c): Move to YACC/LEX section.
5507 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5508 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5509
dc5dd1eb
KW
55102003-07-08 Kris Warkentin <kewarken@qnx.com>
5511
5512 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5513 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5514 of strerror with safe_strerror, use ISO C function definitions,
5515 and replace instances of sprintf with snprintf.
dc5dd1eb 5516
612dde91
AC
55172003-07-07 Andrew Cagney <cagney@redhat.com>
5518
5519 * frame.c (get_prev_frame): Enable check for identical frames.
5520 Update comments. Update error messages.
5521
492c11d3
JB
55222003-07-07 Joel Brobecker <brobecker@gnat.com>
5523
5524 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5525
376a5a49
JB
55262003-07-07 Joel Brobecker <brobecker@gnat.com>
5527
5528 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5529 sort_symtab_syms, no longer necessary.
5530
22b4a9ad
JB
55312003-07-07 Joel Brobecker <brobecker@gnat.com>
5532
5533 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5534
5bbcb741
JB
55352003-07-07 Joel Brobecker <brobecker@gnat.com>
5536
5537 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5538 (mips_register_byte): Likewise.
5539
c139e7d9
DJ
55402003-07-07 Daniel Jacobowitz <drow@mvista.com>
5541
5542 * Makefile.in (sparc_tdep_h): New.
5543 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5544 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5545 * sparc-linux-nat.c: Include "sparc-tdep.h".
5546 * sparc-nat.c: Likewise.
5547 * sparc-tdep.c: Likewise.
5548 * sparc64nbsd-nat.c: Likewise.
5549 * sparcnbsd-nat.c: Likewise.
5550 * sparcnbsd-tdep.c: Likewise.
5551 * sparc-tdep.h: New file.
5552 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5553 and sparc_npc_regnum.
5554
fd8f87c5
DJ
55552003-07-07 Daniel Jacobowitz <drow@mvista.com>
5556
5557 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5558 (mips_linux_cannot_store_register): List supported instead of
5559 unsupported registers.
5560
13adf674
DJ
55612003-07-07 Daniel Jacobowitz <drow@mvista.com>
5562
5563 * disasm.c (dump_insns): Separate instructions from addresses.
5564
8de307e0
AS
55652003-07-07 Andreas Schwab <schwab@suse.de>
5566
5567 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5568 dependencies.
5569 * m68k-tdep.c (NUM_FREGS): Delete.
5570 (SIG_PC_FP_OFFSET): Delete.
5571 (TARGET_M68K): Delete.
5572 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5573 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5574 P_MOVEL_SP, P_MOVEML_SP): Define.
5575 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5576 P_TRAP): Delete.
5577 (m68k_register_raw_size): Delete.
5578 (m68k_register_virtual_size): Delete.
5579 (m68k_register_type): Renamed from m68k_register_virtual_type and
5580 add gdbarch argument.
5581 (m68k_store_struct_return): Delete.
5582 (m68k_deprecated_extract_return_value): Delete.
5583 (m68k_deprecated_extract_struct_value_address): Delete.
5584 (m68k_frame_chain): Delete.
5585 (m68k_frame_saved_pc): Delete.
5586 (m68k_fix_call_dummy): Delete.
5587 (m68k_push_dummy_frame): Delete.
5588 (m68k_pop_frame): Delete.
5589 (m68k_extract_return_value): New function.
5590 (m68k_store_return_value): Rewrite using regcache.
5591 (m68k_extract_struct_value_address): Rewrite using regcache.
5592 (m68k_push_dummy_call): New function.
5593 (struct m68k_frame_cache): Define.
5594 (m68k_alloc_frame_cache): New function.
5595 (m68k_analyze_frame_setup): New function.
5596 (m68k_analyze_register_saves): New function.
5597 (m68k_analyze_prologue): New function.
5598 (m68k_skip_prologue): Rewrite using above functions.
5599 (m68k_unwind_pc): New function.
5600 (m68k_frame_cache): New function.
5601 (m68k_frame_this_id): New function.
5602 (m68k_frame_prev_register): New function.
5603 (m68k_frame_unwind): New variable.
5604 (m68k_frame_p): New function.
5605 (m68k_sigtramp_frame_cache): New function.
5606 (m68k_sigtramp_frame_this_id): New function.
5607 (m68k_sigtramp_frame_prev_register): New function.
5608 (m68k_sigtramp_frame_unwind): New variable.
5609 (m68k_sigtramp_frame_p): New function.
5610 (m68k_frame_base_address): New function.
5611 (m68k_frame_base): New function.
5612 (m68k_unwind_dummy_id): New function.
5613 (fill_gregset): Use regcache_collect.
5614 (fill_fpregset): Likewise.
5615 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5616 defined.
5617 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5618 deprecated_init_frame_pc, deprecated_store_struct_return,
5619 deprecated_extract_return_value, deprecated_store_return_value,
5620 deprecated_frame_chain, deprecated_frame_saved_pc,
5621 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5622 deprecated_register_virtual_size,
5623 deprecated_max_register_raw_size,
5624 deprecated_max_register_virtual_size,
5625 deprecated_register_virtual_type, deprecated_register_size,
5626 deprecated_register_byte, deprecated_register_bytes,
5627 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5628 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5629 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5630 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5631 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5632 deprecated_push_dummy_frame, deprecated_pop_frame,
5633 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5634 only if SYSCALL_TRAP is defined. Set extract_return_value,
5635 store_return_value, extract_struct_value_address, register_type,
5636 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5637 predicates.
5638 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5639 M68K_MAX_REGISTER_SIZE): Define.
5640 (struct m68k_sigtramp_info): Define.
5641 (struct gdbarch_tdep): Add get_sigtramp_info.
5642 * m68klinux-nat.c (fetch_register): Use register_size instead of
5643 REGISTER_RAW_SIZE. Don't put assignment in if.
5644 (store_register): Likewise.
5645 (fetch_inferior_registers): Likewise.
5646 (store_inferior_registers): Likewise.
5647 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5648 (m68k_linux_frame_saved_pc): Delete.
5649 (m68k_linux_sigcontext_reg_offset,
5650 m68k_linux_ucontext_reg_offset): Define.
5651 (m68k_linux_get_sigtramp_info): New function.
5652 (m68k_linux_extract_return_value): Rewrite using regcache.
5653 (m68k_linux_store_return_value): Likewise.
5654 (m68k_linux_extract_struct_value_address): Likewise.
5655 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5656 Don't set deprecated_frame_saved_pc,
5657 deprecated_extract_return_value, deprecated_store_return_value,
5658 deprecated_extract_struct_value_address. Set
5659 extract_return_value, store_return_value,
5660 extract_struct_value_address.
5661
eb8bc282
AC
56622003-07-07 Andrew Cagney <cagney@redhat.com>
5663
5664 * expprint.c: Include "user-regs.h" instead of "frame.h".
5665 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5666 frame_map_regnum_to_name.
5667 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5668 (frame_map_name_to_regnum): Simplify, call
5669 user_reg_map_name_to_regnum.
5670 (frame_map_regnum_to_name): Simplify, call
5671 user_reg_map_regnum_to_name.
5672 (frame_register_unwind): Update.
5673 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5674 (_initialize_frame_reg): Call user_reg_add_builtin.
5675 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5676 (value_of_register): Use value_of_user_reg.
5677 * eval.c (evaluate_subexp_standard): Update.
5678 * parse.c (write_dollar_variable): Update.
5679 * d10v-tdep.c (d10v_print_registers_info): Update.
5680 * infcmd.c (registers_info): Update.
5681 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5682 (builtin_regs_h): Delete macro.
5683 (user_regs_h): Define.
5684 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5685 (builtin-regs.o): Delete target.
5686 (user-regs.o): Specify dependencies.
5687 (expprint.o): Update dependencies.
5688 (findvar.o): Update dependencies.
5689 (frame.o): Update dependencies.
5690 (std-regs.o): Update dependencies.
5691
9f476a01
CF
56922003-07-06 Christopher Faylor <cgf@redhat.com>
5693
5694 * win32-nat.c (solib_symbols_add): Use one variable for all section
5695 address stuff. Pass variable rather than address of variable to
5696 safe_symbol_file_add.
5697
a731b831
AS
56982003-07-06 Andreas Schwab <schwab@suse.de>
5699
5700 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5701
9f83329d
JB
57022003-07-04 Joel Brobecker <brobecker@gnat.com>
5703
5704 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5705
27e28cc5
KW
57062003-07-04 Kris Warkentin <kewarken@qnx.com>
5707
5708 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5709
57102003-07-04 Kris Warkentin <kewarken@qnx.com>
5711
5712 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5713 * config/i386/nto.mh: New file.
5714 * config/i386/nm-nto.h: New file.
5715 * configure.host: Add i[3456]86-*-nto*.
5716
100f2e98
JB
57172003-07-03 Joel Brobecker <brobecker@gnat.com>
5718
5719 * remote-vx.c (vx_add_symbols): Fix compilation error.
5720
e23457df
AC
57212003-07-03 Andrew Cagney <cagney@redhat.com>
5722
5723 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5724 * gdbarch.h, gdbarch.c: Re-generate.
5725 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5726 (legacy_register_name): Declare.
5727 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5728 (REGISTER_NAME): Define.
5729 * sparc-tdep.c (legacy_register_name): New function.
5730 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5731 (REGISTER_NAME): Define.
5732 (hppa64_register_name): Declare.
5733 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5734 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5735 (hppa64_register_name): New function.
5736 (hppa_register_name): New function.
5737 * arch-utils.c (legacy_register_name): Delete.
5738 * arch-utils.h (legacy_register_name): Delete.
5739
38caaeec
DJ
57402003-07-03 Daniel Jacobowitz <drow@mvista.com>
5741
5742 * cli/cli-interp.c (cli_interpreter_resume): Update the
5743 cli_uiout's stream to gdb_stdout.
5744
dadd712e
AC
57452003-07-03 Andrew Cagney <cagney@redhat.com>
5746
5747 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5748 predicate.
5749 * gdbarch.h, gdbarch.c: Re-generate.
5750 * regcache.c (init_regcache_descr): Use legacy code when either
5751 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5752
c7f1390e
DJ
57532003-07-02 Daniel Jacobowitz <drow@mvista.com>
5754
5755 * NEWS: Move "set logging" entry into GDB 6.0 section.
5756
4bc8c588
JB
57572003-07-02 Jim Blandy <jimb@redhat.com>
5758
a9dd42f1
JB
5759 * s390-tdep.c (struct frame_extra_info): new member:
5760 'stack_bought_valid'.
5761 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5762 initialize fextra_info->stack_bought.
5763 (s390_frameless_function_invocation): Don't trust the value of
5764 fextra_info_ptr->stack_bought unless
5765 fextra_info->stack_bought_valid is set.
5766
4bc8c588
JB
5767 New S390 prologue analyzer.
5768 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5769 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5770 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5771 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5772 compute_x_addr, s390_on_stack, s390_store,
5773 s390_get_signal_frame_info): New functions.
5774 (S390_NUM_SPILL_SLOTS): New macro.
5775 (s390_get_frame_info): Rewritten.
5776 (is_arg_reg): Deleted.
5777
5778 Break out the decoding of S/390 instructions into separate
5779 functions, to make it more legible, and easier to check
5780 against the spec.
5781 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5782 is_rx, is_rxe): New functions.
5783 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5784 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5785 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5786 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5787 enums for opcode values. (Is this an improvement?)
5788
fd13a04a
AC
57892003-07-02 Andrew Cagney <cagney@redhat.com>
5790
5791 * i386-tdep.c: Revert change committed as part of trad-frame code
5792 below.
5793
3f8091c1
DJ
57942003-07-02 Daniel Jacobowitz <drow@mvista.com>
5795
5796 * breakpoint.c (insert_catchpoint): Make static.
5797
8dd5115e
AS
57982003-07-02 Andreas Schwab <schwab@suse.de>
5799
5800 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5801 former ia64_push_arguments and ia64_push_return_address, and use
5802 regcache functions instead of read/write_register.
5803 (ia64_gdbarch_init): Set push_dummy_call instead of
5804 deprecated_push_arguments and deprecated_push_return_address.
5805
a2229c23
AJ
58062003-07-01 Andreas Jaeger <aj@suse.de>
5807
5808 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5809 before the call.
5810 Set %rax only to number of SSE registers used.
5811
3b3850e8
AC
58122003-07-01 Andrew Cagney <cagney@redhat.com>
5813
5814 * trad-frame.h: Update comments, a -1 .addr is reserved.
5815 (trad_frame_value_p, trad_frame_addr_p): Declare.
5816 (trad_frame_reg_p): Declare.
5817 (trad_frame_set_value): Rename trad_frame_register_value.
5818 (trad_frame_set_unknown): Declare.
5819 * trad-frame.c (trad_frame_realreg_p): New function.
5820 (trad_frame_addr_p, trad_frame_value_p): New function.
5821 (trad_frame_set_unknown): New function.
5822 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5823 (trad_frame_prev_register): Use trad_frame_realreg_p,
5824 trad_frame_addr_p and trad_frame_value_p.
5825 (trad_frame_set_value): Rename trad_frame_register_value.
5826 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5827 and trad_frame_set_value.
a2229c23 5828
4d819d0e
JB
58292003-06-30 Jim Blandy <jimb@redhat.com>
5830
5831 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5832 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5833 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5834 for 16 registers, and then 32 more bytes.
5835 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5836 New macros.
5837 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5838 Move up in the file, since it's now used by is_simple_arg.
5839 (is_simple_arg): Don't assume registers are four bytes long.
5840 Exclude all double arguments. Extended floats are not simple
5841 args.
5842 (is_power_of_two): New function.
5843 (pass_by_copy_ref): Call is_power_of_two, and check that the
5844 length fits in a register, rather than listing all the acceptable
5845 sizes. Extended floats are not passed by reference.
5846 (s390_push_arguments): Don't assume registers are four bytes long.
5847 Reserve an argument register to point to the buffer for structures
5848 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5849 S390_STACK_FRAME_OVERHEAD.
5850
1ad828f1
AS
58512003-06-30 Andreas Schwab <schwab@suse.de>
5852
5853 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5854 format error message.
5855
39b00981
JB
58562003-06-30 Joel Brobecker <brobecker@gnat.com>
5857
5858 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5859
b2a7f303
DC
58602003-06-30 David Carlton <carlton@kealia.com>
5861
5862 Band-aid for PR c++/1245.
5863 * Makefile.in (cp-support.o): Depend on complaints_h.
5864 * cp-support.c: Include complaints.h. Add declaration for
5865 find_last_component.
5866 (cp_find_first_component): Separate code into
5867 cp_find_first_component_aux.
5868 (cp_find_first_component_aux): Call demangled_name_complaint.
5869 (demangled_name_complaint): New.
5870
a257b5bb
AC
58712003-06-30 Andrew Cagney <cagney@redhat.com>
5872
5873 * remote.c (remote_write_bytes): Explicitly compute and then use
5874 the payload size. Update comments to reflect. Fixes problem of
5875 GDB not sending small packets as found by Fred Fish.
5876
0a2cfde4
AC
58772003-06-30 Andrew Cagney <cagney@redhat.com>
5878
5879 * remote.c (remote_async_wait): Fix -Wformat problem.
5880
3fcb8548
AC
58812003-06-29 Andrew Cagney <cagney@redhat.com>
5882
5883 * remote.c (remote_wait): Call error, and not warning, when the
5884 packet is corrupt.
5885 (remote_async_wait): Ditto.
5886
9f9970a3
DJ
58872003-06-29 Daniel Jacobowitz <drow@mvista.com>
5888
5889 * sparc-tdep.c (sparc_y_regnum): Make external again.
5890
83a8ccca
DJ
58912003-06-29 Daniel Jacobowitz <drow@mvista.com>
5892
5893 * cli/cli-logging.c (pop_output_files): Add void to function
5894 definition.
5895
d2cf594a
AC
58962003-06-29 Andrew Cagney <cagney@redhat.com>
5897
5898 * frame.c (frame_register_unwind): Use unsigned char when dumping
5899 the buffer contents.
5900
0fac0b41
DJ
59012003-06-28 Daniel Jacobowitz <drow@mvista.com>
5902
5903 * cli/cli-logging.c: New file.
5904 * cli-out.c (struct ui_out_data): Add original_stream.
5905 (cli_redirect): New function.
5906 (cli_ui_out_impl): Add cli_redirect.
5907 (cli_out_new): Initialize original_stream.
5908 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5909 (uo_redirect, ui_out_redirect): New.
5910 * ui-out.h (struct ui_out_impl): Add redirect member.
5911 (redirect_ftype): New.
5912 (ui_out_redirect): Add prototype.
5913 * Makefile.in: Add rules for cli-logging.c.
5914 * NEWS: Mention "set logging".
5915
88a07d7c
EZ
59162003-06-27 Elena Zannoni <ezannoni@redhat.com>
5917
5918 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5919
4eb58876
AC
59202003-06-27 Andrew Cagney <cagney@redhat.com>
5921
5922 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5923 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5924 * avr-tdep.c (avr_call_dummy_address): Delete function.
5925 (avr_gdbarch_init): Do not set call_dummy_address.
5926
1549f619
EZ
59272003-06-27 Elena Zannoni <ezannoni@redhat.com>
5928
5929 * symfile.c (syms_from_objfile): Move variables to inner block.
5930 Move the checks for the non-mainline case a bit earlier to avoid
5931 doing some useless computations.
5932
3cb3398d
EZ
59332003-06-27 Elena Zannoni <ezannoni@redhat.com>
5934
5935 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5936
3799ccc6
EZ
59372003-06-26 Elena Zannoni <ezannoni@redhat.com>
5938
5939 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5940 sections.
5941
ce1f6491
MC
59422003-06-26 Michael Chastain <mec@shout.net>
5943
5944 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5945 gdb/testsuite/gdb.c++/pr-1210.exp.
5946
d958dfd0
AC
59472003-06-26 Andrew Cagney <cagney@redhat.com>
5948
5949 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5950 altivec_expression.h and altivec_registers.h.
5951
d31431ed
AC
59522003-06-26 Andrew Cagney <cagney@redhat.com>
5953
5954 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5955 info->mach when MIPS16. Patch suggested by Fred Fish.
5956
714b1282
AC
59572003-06-26 Andrew Cagney <cagney@redhat.com>
5958
5959 * utils.c (internal_vproblem): Print the problem to a reason
5960 buffer and then pass to query. Make the msg variable more local.
5961
42efa47a
AC
59622003-06-26 Andrew Cagney <cagney@redhat.com>
5963
5964 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5965 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5966 * gdbarch.h, gdbarch.c: Re-generate.
5967 * frame-base.c (default_frame_args_address): Update. Use
5968 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5969 not available.
5970 (default_frame_locals_address): Ditto for
5971 DEPRECATED_FRAME_LOCALS_ADDRESS.
5972 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5973 (vax_frame_num_args): Update.
5974 (vax_gdbarch_init): Update.
5975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5976 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5977 * mcore-tdep.c (mcore_gdbarch_init): Update.
5978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5979 * ia64-tdep.c (ia64_gdbarch_init): Update.
5980 * symtab.h (address_class): Update comments.
5981 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5982 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5983 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5984 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5985 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5986 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5987 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5988 * alpha-mdebug-tdep.c: Update.
5989 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5990
8ffd9b1b
AJ
59912003-06-26 Andreas Jaeger <aj@suse.de>
5992
5993 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5994 of SSE registers so that varargs functions work. Rework handling
5995 of passing arguments on the stack.
5996 (x86_64_store_return_value): Return double and float values in SSE
5997 register.
5998
e8ac10a6
MC
59992003-06-24 Michael Chastain <mec@shout.net>
6000
6001 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6002 the "constructor breakpoints ignored" bug.
6003
986af8e6
DC
60042003-06-25 David Carlton <carlton@kealia.com>
6005
6006 * MAINTAINERS: Update e-mail address.
6007
d64558a5
JB
60082003-06-24 Jim Blandy <jimb@redhat.com>
6009
e538d2d7
JB
6010 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6011
02631ec0
JB
6012 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6013 function.
6014 (ppc_linux_init_abi): Register it as the
6015 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6016
e716d87a
JB
6017 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6018 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6019 method.
6020
d64558a5
JB
6021 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6022 (ppc64_standard_linkage_target): Use it.
6023
449a5da4
AC
60242003-06-23 Andrew Cagney <cagney@redhat.com>
6025
6026 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6027 for 0 "int0" and 4 "int32" sized registers.
6028 * gdbtypes.c (builtin_type_int0): Define.
6029 (build_gdbtypes): Initialize builtin_type_int0.
6030 * gdbtypes.h (builtin_type_int0): Declare.
6031
b2a02dda
SC
60322003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6033
6034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6035 as characters are unsigned.
6036
fba3138e
DJ
60372003-06-22 Daniel Jacobowitz <drow@mvista.com>
6038
6039 PR gdb/1179
6040 * dwarfread.c (struct_type): Skip static fields without crashing.
6041
f6c8180b
AC
60422003-06-22 Andrew Cagney <cagney@redhat.com>
6043
6044 GDB 6.0 branch created.
f2c06f52
AC
6045 * README: Update.
6046 * PROBLEMS: Update. Empty.
6047 * NEWS: Update.
f6c8180b 6048
ae822768
DJ
60492003-06-22 Daniel Jacobowitz <drow@mvista.com>
6050
6051 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6052 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6053
261de166
AC
60542003-06-22 Andrew Cagney <cagney@redhat.com>
6055
6056 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6057 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6058 Velikov.
6059
30e94205
DJ
60602003-06-22 Daniel Jacobowitz <drow@mvista.com>
6061
6062 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6063 compilers.
6064
9e14d721
DJ
60652003-06-21 Daniel Jacobowitz <drow@mvista.com>
6066
6067 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6068 argument of val_print.
6069 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6070 to the address argument of baseclass_offset or target_read_memory.
6071 Do add it to the argument of cp_print_value_fields.
6072
a4b8ebc8
AC
60732003-06-21 Andrew Cagney <cagney@redhat.com>
6074
6075 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6076 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6077 instead of 0..NUM_REGS.
6078 (mips_register_reggroup_p): New function.
6079 (mips_pseudo_register_write): New function.
6080 (mips_pseudo_register_read): New function.
6081 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6082 based on the register's type.
6083 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6084 cooked.
6085 (mips_get_saved_register): Simplify. Assert that REGNO is a
6086 pseudo / cooked.
6087 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6088 (mips_register_type): Replace mips_register_virtual_type. Map
6089 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6090 when available.
6091 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6092 that the register is cooked / virtual.
6093 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6094 Only get the extra info when needed.
6095 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6096 (mips32_heuristic_proc_desc): Fetch the cooked register.
6097 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6098 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6099 (mips_print_register): Use gdbarch_register_type, instead of
6100 REGISTER_VIRTUAL_TYPE.
6101 (print_gp_register_row): Use gdbarch_register_type, instead of
6102 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6103 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6104 Print the pseudo / cooked registers.
6105 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6106 Print the pseudo / cooked registers.
6107 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6108 REG_NUM is pseudo / cooked.
6109 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6110 (mips_n32n64_xfer_return_value): Ditto.
6111 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6112 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6113 (mips_register_sim_regno): New function.
6114 (mips_gdbarch_init): Set deprecated_register_byte,
6115 register_group_p, pseudo_register_write, pseudo_register_read,
6116 register_sim_regno, and num_pseudo_regs. Set register_type,
6117 instead of register_virtual_type.
6118 * Makefile.in (mips-tdep.o): Update dependencies.
6119 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6120 REGISTER_VIRTUAL_TYPE.
6121 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6122 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6123 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6124 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6125 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6126
325ed089
DJ
61272003-06-21 Daniel Jacobowitz <drow@mvista.com>
6128
6129 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6130 * cli/cli-cmds.c: Include "gdb_vfork.h".
6131 (shell_escape): Use vfork.
6132
f0e7d0e8
AC
61332003-06-21 Andrew Cagney <cagney@redhat.com>
6134
c57bb9fa
AC
6135 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6136 32 bit floating-point register saves.
6137
6e51443a
AC
6138 * frame.h (deprecated_unwind_get_saved_register): Delete.
6139 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6140 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6141 and deprecated_get_next_frame_hack instead of
6142 deprecated_unwind_get_saved_register.
6143
ed183c7c
AC
6144 * mips-tdep.c (mips_dump_tdep): Do not print
6145 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6146
f0e7d0e8
AC
6147 * frame.c (get_frame_register): New function.
6148 (frame_unwind_register_signed): New function.
6149 (get_frame_register_signed): New function.
6150 (frame_unwind_register_unsigned): New function.
6151 (get_frame_register_unsigned): New function.
6152 * frame.h: Add comments on naming schema.
6153 (get_frame_register, frame_unwind_register_signed): Declare.
6154 (get_frame_register_signed, get_frame_register_signed): Declare.
6155 (frame_unwind_register_unsigned): Declare.
6156 (get_frame_register_unsigned): Declare.
6157
2224d941
TR
61582003-06-20 Theodore A. Roth <troth@openavr.org>
6159
6160 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6161
8619218d
TR
61622003-06-20 Theodore A. Roth <troth@openavr.org>
6163
6164 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6165 (avr_read_sp): Ditto.
6166
0b1b50c0
DJ
61672003-06-20 Daniel Jacobowitz <drow@mvista.com>
6168
6169 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6170 * config/arm/nm-linux.h: Likewise.
6171 * config/arm/tm-linux.h: Likewise.
6172 * config/ia64/nm-linux.h: Likewise.
6173 * config/ia64/tm-ia64.h: Likewise.
6174 * config/s390/tm-linux.h: Likewise.
6175 * config/s390/tm-s390.h: Likewise.
6176 * s390-nat.c: Likewise.
6177 * s390-tdep.c: Likewise.
6178
6179 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6180 * config/ia64/linux.mt: Likewise.
6181 * config/m68k/linux.mh: Likewise.
6182 * config/mips/linux.mt: Likewise.
6183 * config/powerpc/linux.mh: Likewise.
6184 * config/sh/linux.mt: Likewise.
6185
c8c18e65
KW
61862003-06-19 Kris Warkentin <kewarken@qnx.com>
6187
6188 * solib.c (solib_open): Change tests for whether to search
6189 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6190 comments.
6191
dcccef2e
TR
61922003-06-19 Theodore A. Roth <troth@openavr.org>
6193
6194 * avr-tdep.c (avr_frame_address): Delete function.
6195 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6196 set_gdbarch_frame_args_address.
6197
5861a190
AC
61982003-06-19 Andrew Cagney <cagney@redhat.com>
6199
6200 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6201 (REGISTER_CONVERT_FROM_TYPE): Delete.
6202 (mips_register_convert_to_type): Delete declaration.
6203 (mips_register_convert_from_type): Delete declaration.
6204 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6205 kernel/.
6206
0274a8ce
MS
62072003-06-19 Michael Snyder <msnyder@redhat.com>
6208
6209 * linux-nat.h: New file.
6210 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6211 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6212 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6213 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6214 (linux_make_note_section): Iterate over lwps instead of threads.
6215 (linux_do_thread_registers): Use lwp instead of merged pid.
6216 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6217 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6218 Add dependency on linux_nat_h.
6219
adf5f719
TR
62202003-06-19 Theodore A. Roth <troth@openavr.org>
6221
6222 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6223
6766a268
DJ
62242003-06-19 Daniel Jacobowitz <drow@mvista.com>
6225
6226 * varobj.c (get_type, get_target_type): Use check_typedef.
6227
1171114a
DJ
62282003-06-19 Daniel Jacobowitz <drow@mvista.com>
6229
6230 * breakpoint.c (insert_catchpoint): Call internal_error.
6231
adcf68a2
TR
62322003-06-19 Theodore A. Roth <troth@openavr.org>
6233
6234 * avr-tdep.c (avr_push_dummy_code): Delete function.
6235 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6236
ea67f13b
DJ
62372003-06-19 Daniel Jacobowitz <drow@mvista.com>
6238
6239 * arch-utils.c (default_prepare_to_proceed): Remove.
6240 (generic_prepare_to_proceed): Remove.
6241 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6242 (generic_prepare_to_proceed): Remove prototype.
6243 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6244 * gdbarch.c: Regenerate.
6245 * gdbarch.h: Regenerate.
6246 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6247 * hppah-nat.c (hppa_switched_threads): Remove.
6248 * infrun.c (prepare_to_proceed): New static function, copied from
6249 generic_prepare_to_proceed. Remove select_it argument.
6250 (proceed): Call prepare_to_proceed.
6251 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6252 variables.
6253 (ptrace_wait): Don't set the removed variables.
6254 (hppa_switched_threads): Remove.
6255 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6256 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6257 (lin_lwp_prepare_to_proceed): Remove prototype.
6258 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6259 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6260
4add8633
TR
62612003-06-18 Theodore A. Roth <troth@openavr.org>
6262
6263 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6264 trad-frame.h.
6265 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6266 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6267 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6268 (AVR_PROLOGUE_*): Enumerate prologue types.
6269 (struct frame_extra_info): Remove.
6270 (struct avr_unwind_cache): Define.
6271 (avr_write_sp): Delete function.
6272 (avr_read_fp): Ditto.
6273 (avr_init_extra_frame_info): Ditto.
6274 (avr_pop_frame): Ditto.
6275 (avr_frame_saved_pc): Ditto.
6276 (avr_saved_pc_after_call): Ditto.
6277 (avr_push_return_address): Ditto.
6278 (avr_frame_chain): Ditto.
6279 (avr_store_struct_return): Ditto.
6280 (avr_push_arguments): Ditto.
6281 (avr_scan_prologue): Update comments. Changed to set up the info for
6282 cache unwinding. Now returns end of prologue PC.
6283 (avr_skip_prologue): Better handling of functions lacking a prologue
6284 by using avr_scan_prologue.
6285 (avr_scan_arg_moves): New function.
6286 (avr_saved_regs_unwinder): Ditto.
6287 (avr_frame_unwind_cache): Ditto.
6288 (avr_unwind_pc): Ditto.
6289 (avr_frame_this_id): Ditto.
6290 (avr_frame_prev_register): Ditto.
6291 (avr_frame_p): Ditto.
6292 (avr_frame_base_address ): Ditto.
6293 (avr_unwind_dummy_id): Ditto.
6294 (avr_push_dummy_code): Ditto.
6295 (push_stack_item): Ditto.
6296 (pop_stack_item): Ditto.
6297 (avr_push_dummy_call): Ditto.
6298 (struct stack_item): Define.
6299 (avr_frame_unwind): Declare structure.
6300 (avr_frame_base): Ditto.
6301 (avr_gdbarch_init): Remove calls to
6302 set_gdbarch_deprecated_init_frame_pc,
6303 set_gdbarch_deprecated_target_read_fp,
6304 set_gdbarch_deprecated_dummy_write_sp,
6305 set_gdbarch_deprecated_fp_regnum,
6306 set_gdbarch_deprecated_push_arguments,
6307 set_gdbarch_deprecated_push_return_address,
6308 set_gdbarch_deprecated_pop_frame,
6309 set_gdbarch_deprecated_store_struct_return,
6310 set_gdbarch_deprecated_frame_init_saved_regs,
6311 set_gdbarch_deprecated_init_extra_frame_info,
6312 set_gdbarch_deprecated_frame_chain,
6313 set_gdbarch_deprecated_frame_saved_pc,
6314 set_gdbarch_deprecated_saved_pc_after_call.
6315 Add calls to set_gdbarch_push_dummy_call,
6316 set_gdbarch_push_dummy_code,
6317 frame_unwind_append_predicate,
6318 frame_base_set_default,
6319 set_gdbarch_unwind_dummy_id,
6320 set_gdbarch_unwind_pc.
6321 Wrap a long line.
6322
7be04a68
MS
63232003-06-18 Corinna Vinschen <vinschen@redhat.com>
6324
6325 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6326 registers for H8/300S.
6327 (h8300_print_registers_info): Ditto.
8ffd9b1b 6328 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6329
ae087d01
DJ
63302003-06-18 Daniel Jacobowitz <drow@mvista.com>
6331
6332 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6333 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6334 (lin_lwp_wait): Likewise. Update comments.
6335 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6336 (pull_pid_from_list, linux_record_stopped_pid): New.
6337
07d8f827
SC
63382003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6339
6340 * ada-lang.c (scan_discrim_bound): Name first argument.
6341 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6342 declared by ALL_BLOCK_SYMBOLS.
6343
7cb47b14
SC
63442003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6345
6346 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6347 ("regcache.h"): Include it.
6348 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6349
6ad8ae5c
DJ
63502003-06-17 Daniel Jacobowitz <drow@mvista.com>
6351
6352 * NEWS: Mention gdbserver detach change and "disconnect" command.
6353 * infcmd.c (disconnect_command): New function.
6354 (_initialize_infcmd): Add ``disconnect'' command.
6355 * remote.c (remote_async_detach): Delete.
6356 (remote_detach): Merge remote_async_detach.
6357 (remote_disconnect): New.
6358 (init_remote_ops): Set to_disconnect.
6359 (init_remote_cisco_ops): Likewise.
6360 (init_remote_async_ops): Likewise. Use remote_detach.
6361 * target.c (cleanup_target): Default to_disconnect.
6362 (update_current_target): Inherit to_disconnect.
6363 (target_disconnect, debug_to_disconnect): New functions.
6364 (setup_target_debug): Set to_disconnect.
6365 * target.h (struct target_ops): Add to_disconnect.
6366 (target_disconnect): Add prototype.
6367
687595f9
DJ
63682003-06-17 Daniel Jacobowitz <drow@mvista.com>
6369
6370 * breakpoint.c (insert_catchpoint): New function.
6371 (insert_breakpoints): Use catch_exceptions to call
6372 insert_catchpoint. Disable catchpoints if they fail to insert.
6373
29239a8f
DJ
63742003-06-17 Daniel Jacobowitz <drow@mvista.com>
6375
6376 * symfile.c (reread_symbols): Clear sym_private.
6377
2cdf3c63
AC
63782003-06-17 Andrew Cagney <cagney@redhat.com>
6379
6380 * trad-frame.h (struct frame_info): Add opaque declaration.
6381 * remote-fileio.h (struct cmd_list_element): Add opaque
6382 declaration.
6383 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6384 comments.
6385
cf0e1e0d
DJ
63862003-06-17 Daniel Jacobowitz <drow@mvista.com>
6387
6388 * remote.c (remote_prepare_to_store): Replace call to
6389 deprecated_read_register_bytes with multiple regcache_raw_read
6390 calls.
6391
192cdb19
KW
63922003-06-17 Kris Warkentin <kewarken@qnx.com>
6393
6394 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6395 (nto_find_and_open_solib): Likewise.
6396 (nto_init_solib_absolute_prefix): Likewise.
6397 (_initialize_nto_tdep): Fix indentation.
6398
89929b45
KW
63992003-06-17 Kris Warkentin <kewarken@qnx.com>
6400
6401 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6402
46019f27
KW
64032003-06-17 Kris Warkentin <kewarken@qnx.com>
6404
6405 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6406
1a38736e
JB
64072003-06-17 Jim Blandy <jimb@redhat.com>
6408
6409 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6410
3605c34a
TR
64112003-06-16 Theodore A. Roth <troth@openavr.org>
6412
6413 * avr-tdep.c (avr_extract_return_value): New function.
6414 (avr_gdbarch_init): Set extract_return_value method.
6415
870b3035
AC
64162003-06-16 Andrew Cagney <cagney@redhat.com>
6417
6418 * frame.h (deprecated_get_next_frame_hack): Declare.
6419 * frame.c (legacy_saved_regs_prev_register): Only require
6420 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6421 there are always saved regs.
6422 (deprecated_generic_get_saved_register): Do not require
6423 DEPRECATED_FRAME_INIT_SAVED_REGS.
6424 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6425 use frame ID unwind instead.
6426 (deprecated_get_next_frame_hack): New function.
6427
63d47a7d
CV
64282003-06-16 Corinna Vinschen <vinschen@redhat.com>
6429
6430 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6431 (h8300_push_dummy_call): ...this function. Some minor optimization.
6432 (h8300_push_return_address): Remove.
6433 (h8300_gdbarch_init): Remove calls to
6434 set_gdbarch_deprecated_dummy_write_sp,
6435 set_gdbarch_deprecated_push_arguments and
6436 set_gdbarch_deprecated_push_return_address.
6437 Add call to set_gdbarch_push_dummy_call.
6438
4bb1dc5e
CV
64392003-06-16 Corinna Vinschen <vinschen@redhat.com>
6440
6441 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6442 (E_PSEUDO_EXR_REGNUM): Ditto.
6443 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6444 registers into safe registers.
4bb1dc5e
CV
6445 (h8300_skip_prologue): Check for stm instruction to push registers
6446 used for register variables onto stack.
6447 (gdb_print_insn_h8300): Remove.
6448 (h8300_examine_prologue): Add a comment.
6449 (h8300_register_name): Take pseudo registers into account.
6450 (h8300s_register_name): Ditto.
6451 (h8300sx_register_name): Ditto.
6452 (h8300_print_register): Ditto.
6453 (h8300_print_registers_info): Define "nice" printing order.
6454 (h8300_saved_pc_after_call): Take pseudo registers into account.
6455 (h8300_register_type): Ditto. Return type used for remote connection
6456 when requesting real CCR or EXR register, return actual type when
6457 requesting pseudo CCR or EXR.
6458 (h8300_pseudo_register_read): New function.
6459 (h8300_pseudo_register_write): Ditto.
6460 (h8300_dbg_reg_to_regnum): Ditto.
6461 (h8300s_dbg_reg_to_regnum): Ditto.
6462 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6463 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6464 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6465 set_gdbarch_print_insn architecture dependent.
6466 Call set_gdbarch_pseudo_register_read and
6467 set_gdbarch_pseudo_register_write.
6468 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6469
a59fe496
AC
64702003-06-16 Andrew Cagney <cagney@redhat.com>
6471
6472 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6473 * gdbarch.h, gdbarch.c: Re-generate.
6474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6475 * s390-tdep.c (s390_gdbarch_init): Update.
6476 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6477 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6478 * mips-tdep.c (mips_gdbarch_init): Update.
6479 * mcore-tdep.c (mcore_gdbarch_init): Update.
6480 * cris-tdep.c (cris_gdbarch_init): Update.
6481 * infcall.c (call_function_by_hand): Update.
6482 * ia64-tdep.c (ia64_push_arguments): Update comment.
6483 * frame.c (legacy_get_prev_frame): Do not assume
6484 SAVE_DUMMY_FRAME_TOS_P.
6485 * dummy-frame.c (find_dummy_frame): Update comment.
6486
6f4e5a41
AC
64872003-06-16 Andrew Cagney <cagney@redhat.com>
6488
6489 * regcache.c (do_cooked_read): Do not use register_valid_p.
6490
72fab697
TR
64912003-06-15 Theodore A. Roth <troth@openavr.org>
6492
6493 * avr-tdep.c (avr_register_type): Remove a blank line.
6494 (avr_scan_prologue): Correct some comments.
6495
e3d8b004
TR
64962003-06-15 Theodore A. Roth <troth@openavr.org>
6497
6498 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6499 prologue types.
8ffd9b1b 6500 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6501 option.
6502 Add code to scan -mcall-prologues for mega devices.
6503
866b76ea
TR
65042003-06-15 Theodore A. Roth <troth@openavr.org>
6505
6506 * avr-tdep.c (avr_register_byte): Delete function.
6507 (avr_register_raw_size): Delete function.
6508 (avr_register_virtual_size): Delete function.
6509 (avr_register_virtual_type): Delete function.
6510 (avr_register_type): New function.
6511 (avr_address_to_pointer): Remove unused code.
6512 (avr_read_fp): Need to read FP as two separate bytes due to change to
6513 avr_register_type() usage.
6514 (avr_gdbarch_init): Don't set deprecated_register_size.
6515 Don't set deprecated_register_bytes.
6516 Don't set deprecated_register_byte.
6517 Don't set deprecated_register_raw_size.
6518 Don't set deprecated_max_register_raw_size.
6519 Don't set deprecated_register_virtual_size.
6520 Don't set deprecated_max_register_virtual_size.
6521 Don't set deprecated_register_virtual_type.
6522 Set register_type method.
6523
3993f6b1
DJ
65242003-06-15 Daniel Jacobowitz <drow@mvista.com>
6525
6526 * Makefile.in (linux-nat.o): Add rule.
6527 * linux-nat.c: New file.
6528 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6529 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6530 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6531 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6532 * config/arm/linux.mh (NATDEPFILES): Likewise.
6533 * config/i386/linux.mh (NATDEPFILES): Likewise.
6534 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6535 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6536 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6537 * config/mips/linux.mh (NATDEPFILES): Likewise.
6538 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6539 * config/s390/s390.mh (NATDEPFILES): Likewise.
6540 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6541
786a90bb
MK
65422003-06-15 Mark Kettenis <kettenis@gnu.org>
6543
6544 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6545 replace out-of-date comment.
6546
3bd3f01e
AC
65472003-06-15 Andrew Cagney <cagney@redhat.com>
6548
6549 * rdi-share/host.h (Fail): Change to a varargs function.
6550 * remote-rdi.c (Fail): Update.
8ffd9b1b 6551
de5b9bb9
MK
65522003-06-15 Mark Kettenis <kettenis@gnu.org>
6553
6554 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6555 (i386_convert_register_p, i386_register_to_value,
6556 i386_register_from_value): Handle types longer than 8 bytes.
6557
d532c08f
MK
65582003-06-15 Mark Kettenis <kettenis@gnu.org>
6559
6560 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6561 Move floating-point code to new function in i387-tdep.c.
6562 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6563 New functions containing code moved here from i386-tdep.c.
6564 * i387-tdep.h: Add opaque declaration for `struct type'.
6565 (i387_register_to_value, i387_value_to_register): New prototypes.
6566 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6567 (x86_64_init_abi): Set convert_register_p, register_to_value and
6568 value_to_register here.
8ffd9b1b 6569
42c466d7
AC
65702003-06-14 Andrew Cagney <cagney@redhat.com>
6571
6572 * mips-tdep.c (mips_register_to_value): Make static.
6573 (mips_value_to_register): Make static.
6574 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6575 * ia64-tdep.c (ia64_register_raw_size): Make static.
6576 (ia64_register_virtual_size): Make static.
6577 (ia64_register_byte): Make static.
6578 * i387-tdep.c: Include "i387-tdep.h".
6579 (print_387_control_word): Delete function.
6580 (print_387_status_word): Delete function.
6581 (print_387_status_bits): Delete function.
6582 (print_387_control_bits): Delete function.
6583 * Makefile.in (i387-tdep.o): Update dependencies.
6584 * rdi-share/host.h (Fail): Declare.
6585 * remote-rdi.c (Fail): Update to match declaration.
6586
2a9cda49
AC
65872003-06-14 Andrew Cagney <cagney@redhat.com>
6588
6589 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6590 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6591 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6592 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6593 * README: Delete reference to remote-array.
6594 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6595 (remote-array.o): Delete target.
6596 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6597 * remote-array.c: Delete file.
6598
ff2e87ac
AC
65992003-06-14 Andrew Cagney <cagney@redhat.com>
6600 Mark Kettenis <kettenis@gnu.org>
6601
6602 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6603 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6604 parameter with "frame".
6605 * gdbarch.h, gdbarch.c: Re-generate.
6606 * frame.h (put_frame_register): Declare.
6607 * frame.c (put_frame_register): New function.
6608 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6609 (legacy_register_to_value): Rewrite, use "frame" to get the
6610 register value.
6611 (legacy_value_to_register): Rewrite, use "frame" to find the
6612 register's location before storing.
6613 * arch-utils.h (legacy_convert_register_p): Update.
6614 (legacy_register_to_value, legacy_value_to_register): Update.
6615 * findvar.c (value_from_register): Rewrite, eliminate use of
6616 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6617 "frame" to REGISTER_TO_VALUE.
6618 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6619 lval_reg_frame_relative + lval_register branch of the switch. Do
6620 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6621 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6622 I386_EDI_REGNUM): New defines.
6623 (i386_next_regnum, i386_convert_register_p,
6624 i386_register_to_value, i386_value_to_register): New functions.
6625 (i386_register_convertible, i386_register_convert_to_virtual,
6626 i386_convert_to_raw): Remove functions.
6627 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6628 value_to_register instead of register_convertible,
6629 register_convert_to_virtual and register_convert_to_raw.
6630 * mips-tdep.c (mips_convert_register_p): New function.
6631 (mips_value_to_register): Replace mips_register_convert_from_type.
6632 (mips_register_to_value): Replace mips_register_convert_to_type.
6633 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6634 register_to_value.
6635 * alpha-tdep.c (alpha_convert_register_p): Update.
6636 (alpha_value_to_register): Update, store the register.
6637 (alpha_register_to_value): Update, fetch the register.
6638
98be1e77
TR
66392003-06-14 Theodore A. Roth <troth@openavr.org>
6640
6641 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6642 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6643 Don't set deprecated_call_dummy_words.
6644 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6645 Don't set remote_translate_xfer_address.
6646 (avr_io_reg_read_command): Remove commented out debug printf.
6647 Wrap a long line.
6648
57bc6122
TR
66492003-06-14 Theodore A. Roth <troth@openavr.org>
6650
6651 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6652 causes gdb to seg fault.
6653
eb01fc62
DJ
66542003-06-14 Daniel Jacobowitz <drow@mvista.com>
6655
6656 * sparc-nat.c (fetch_inferior_registers): Correct
6657 a reference to "registers".
6658
3b3e6bee
DJ
66592003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6660
6661 * Makefile.in (exc_request_U_h): Define
6662 (exc_request_S_h): Likewise.
6663 (msg_reply_S_h): Likewise.
6664 (msg_U_h): Likewise.
6665 (notify_S_h): Likewise.
6666 (process_reply_S_h): Likewise.
6667 (gnu-nat.o): Depend on gdb_obstack_h
6668 * gnu-nat.c: Include "gdb_obstack.h".
6669
b8de8283
AC
66702003-06-13 Andrew Cagney <cagney@redhat.com>
6671
6672 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6673 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6674
f3be58bc
AC
66752003-06-13 Andrew Cagney <cagney@redhat.com>
6676
6677 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6678 when deprecated REGISTER macros can be deleted.
6679 * gdbarch.h, gdbarch.c: Re-generate.
6680
4c0122c8
JB
66812003-06-13 Jim Blandy <jimb@redhat.com>
6682
6683 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6684 Linux entry point symbols for _dl_debug_state, too.
6685
3e210248
AC
66862003-06-13 Andrew Cagney <cagney@redhat.com>
6687
6688 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6689 available, do not use the FP register, and always save the TOS.
6690 * dummy-frame.c (dummy_frame_this_id): Do not assert
6691 SAVE_DUMMY_FRAME_TOS.
6692 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6693 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6694 (i386_push_dummy_call): Add 8 to the returned SP.
6695 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6696 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6697 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6698 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6699 (x86_64_push_dummy_call): Return "sp + 16".
6700 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6701 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6702 save_dummy_frame_tos.
6703
0b65af49
JB
67042003-06-13 Jim Blandy <jimb@redhat.com>
6705
6706 * frv-tdep.c (frv_use_struct_convention): Delete static
6707 declaration for function deleted in my change of 2003-06-12.
6708
4ea2465e
TR
67092003-06-13 Theodore A. Roth <troth@openavr.org>
6710
6711 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6712 (avr_pointer_to_address): Shift code addrs left 1 bit.
6713 (avr_convert_from_func_ptr_addr): Delete function since operation is
6714 better handled by avr_address_to_pointer and avr_pointer_to_address.
6715 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6716
1581182a
MK
67172003-06-13 Mark Kettenis <kettenis@gnu.org>
6718
6719 From Kelley Cook <kelleycook@wideopenwest.com>:
6720 * configure.host: Accept i[34567]86 variants.
6721 * configure.tgt: Likewise.
6722 * nlm/configure.in: Likewise.
6723 * nlm/configure: Regenerated.
6724
7aa1783e
RE
67252003-06-13 Richard Earnshaw <rearnsha@arm.com>
6726
6727 * arm-tdep.c (solib-svr4.h): Dont' include it.
6728 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6729 * arm-linux-tdep.c: ... here. Make static.
6730 (arm_linux_init_abi): Register it.
6731 (solib-svr4.h): Include it.
6732 * Makefile.in: Update dependencies.
6733 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6734 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6735
0261a0d0
CV
67362003-06-13 Corinna Vinschen <vinschen@redhat.com>
6737
6738 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6739 indicate registers used for return values.
6740 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6741 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6742 members.
6743 (h8300_init_extra_frame_info): Ditto.
6744 (h8300_frame_locals_address): Removed.
6745 (h8300_frame_args_address): Removed.
6746 (h8300_extract_return_value): Use new regcache structure. Only care
6747 for 16 bit CPUs.
6748 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6749 (h8300_store_return_value): Use new regcache structure. Only care
6750 for 16 bit CPUs.
6751 (h8300h_store_return_value): Same function for 32 bit CPUs.
6752 (h8300_store_struct_return): Removed.
6753 (h8300_extract_struct_value_address): Use new regcache structure.
6754 (h8300h_extract_struct_value_address): Removed.
6755 (h8300_push_dummy_code): New function.
6756 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6757 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6758 set_gdbarch_store_return_value architecture dependent.
6759 Call set_gdbarch_push_dummy_code and
6760 set_gdbarch_extract_struct_value_address.
6761 Remove calls to set_gdbarch_frame_args_address,
6762 set_gdbarch_frame_locals_address,
6763 set_gdbarch_deprecated_store_struct_return,
6764 set_gdbarch_deprecated_extract_return_value,
6765 set_gdbarch_deprecated_extract_struct_value_address,
6766 set_gdbarch_deprecated_call_dummy_words and
6767 set_gdbarch_deprecated_sizeof_call_dummy_words.
6768
055c394a
CV
67692003-06-13 Corinna Vinschen <vinschen@redhat.com>
6770
6771 * h8300-tdep.c (h8300_register_byte): Remove.
6772 (h8300h_register_byte): Remove.
6773 (h8300_register_virtual_type): Remove. Substitute by...
6774 (h8300_register_type): New function.
6775 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6776 (h8300h_extract_struct_value_address): Ditto.
6777 (h8300_gdbarch_init): Drop calls to
6778 set_gdbarch_deprecated_register_byte and
6779 set_gdbarch_deprecated_register_virtual_type.
6780 Add call to set_gdbarch_register_type.
6781
9c04cab7
AC
67822003-06-13 Andrew Cagney <cagney@redhat.com>
6783
6784 * gdbarch.sh: Update comments on registers.
6785 (deprecated_register_byte): Rename register_byte.
6786 (deprecated_register_raw_size): Rename register_raw_size.
6787 (deprecated_register_virtual_size): Rename register_virtual_size.
6788 (deprecated_register_virtual_type): Rename register_virtual_type.
6789 * gdbarch.h, gdbarch.c: Re-generate.
6790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6791 * vax-tdep.c (vax_gdbarch_init): Update.
6792 * v850-tdep.c (v850_gdbarch_init): Update.
6793 * sparc-tdep.c (sparc_gdbarch_init): Update.
6794 * sh-tdep.c (sh_gdbarch_init): Update.
6795 * s390-tdep.c (s390_gdbarch_init): Update.
6796 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6797 * ns32k-tdep.c: Update.
6798 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6799 * mips-tdep.c (mips_gdbarch_init): Update.
6800 * mcore-tdep.c (mcore_gdbarch_init): Update.
6801 * m68k-tdep.c (m68k_gdbarch_init): Update.
6802 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6803 * ia64-tdep.c (ia64_gdbarch_init): Update.
6804 * hppa-tdep.c (hppa_gdbarch_init): Update.
6805 * h8300-tdep.c (h8300_gdbarch_init): Update.
6806 * frv-tdep.c (frv_gdbarch_init): Update.
6807 * cris-tdep.c (cris_gdbarch_init): Update.
6808 * avr-tdep.c (avr_gdbarch_init): Update.
6809 * alpha-tdep.c (alpha_gdbarch_init): Update.
6810 * arm-tdep.c (arm_gdbarch_init): Update.
6811
b060cbea
AC
68122003-06-13 Andrew Cagney <cagney@redhat.com>
6813
6814 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6815 mips_o32_use_struct_convention with always_use_struct_convention.
6816
0fc9922a
DC
68172003-06-12 David Carlton <carlton@kealia.com>
6818
6819 * cp-namespace.c (cp_set_block_scope): Comment out
6820 processing_has_namespace_info branch.
6821
1fd35568
JB
68222003-06-12 Jim Blandy <jimb@redhat.com>
6823
f470a70a
JB
6824 Recognize and skip 64-bit PowerPC Linux linkage functions.
6825 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6826 insn_pattern, insns_match_pattern, d_field, ds_field): New
6827 functions, macros, and types for working with PPC instructions.
6828 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6829 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6830 ppc64_skip_trampoline_code): New functions, variables, and macros
6831 for recognizing and skipping linkage functions.
6832 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6833 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6834
49ff75ad
JB
6835 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6836 register offsets for both the 32- and 64-bit interfaces.
6837
bd918c83
JB
6838 Actually finish the job started by my change of 2003-05-29.
6839 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6840 other #definition of this.
6841 (ppc_linux_skip_trampoline_code): Remove declaration.
6842 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6843 static.
6844 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6845 method for GDBARCH.
6846
6847 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6848 'long' on ppc64-*-linux*.
6849
f8c59253
JB
6850 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6851 isn't #defined, assume the register doesn't exist: act as if
6852 tdep->ppc_mq_regnum were -1.
6853
8fbb30b1
JB
6854 * configure.host, configure.tgt: Add entries for
6855 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6856 powerpc/linux.mt.
6857 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6858 New files.
6859
1fd35568
JB
6860 * arch-utils.c (always_use_struct_convention): New function.
6861 * arch-utils.h (always_use_struct_convention): New prototype.
6862 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6863 (alpha_gdbarch_init): Register always_use_struct_convention,
6864 instead of alpha_use_struct_convention.
6865 * cris-tdep.c (cris_use_struct_convention): Delete.
6866 (cris_gdbarch_init): Register always_use_struct_convention,
6867 instead of cris_use_struct_convention.
6868 * frv-tdep.c (frv_use_struct_convention): Delete.
6869 (frv_gdbarch_init): Register always_use_struct_convention,
6870 instead of frv_use_struct_convention.
6871 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6872 (h8300_gdbarch_init): Register always_use_struct_convention,
6873 instead of h8300_use_struct_convention.
e3305dd9 6874 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6875 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6876 instead of mips_o32_use_struct_convention.
6877
e14e6e9c
AC
68782003-06-12 Andrew Cagney <cagney@redhat.com>
6879
6880 * wince.c: Include "mips-tdep.h".
6881 * mips-tdep.h (mips_next_pc): Declare.
6882 * mcore-tdep.c: Make more local functions static.
6883 * Makefile.in (wince.o): Update dependencies.
6884
2335f48e
DC
68852003-06-12 David Carlton <carlton@kealia.com>
6886
6887 * symtab.c (lookup_symbol_aux_minsyms): Replace
6888 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6889 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6890 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6891 SYMBOL_NATURAL_NAME.
6892
f70a7d61
AS
68932003-06-12 Andreas Schwab <schwab@suse.de>
6894
6895 * Makefile.in (tuiDisassem.o): Update dependencies.
6896
b6429628
DC
68972003-06-12 David Carlton <carlton@bactrian.org>
6898
6899 * symtab.h: Delete declaration of make_symbol_overload_list.
6900 Add declaration of lookup_partial_symbol.
6901 * symtab.c (remove_params): Move to cp-support.c.
6902 (overload_list_add_symbol, make_symbol_overload_list)
6903 (sym_return_val_size, sym_return_val_index): Ditto.
6904 (lookup_partial_symbol): Make extern.
6905 * cp-support.h: Add declaration of make_symbol_overload_list.
6906 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6907 symtab.h, and block.h.
6908 (remove_params): Move here from symtab.c.
6909 (overload_list_add_symbol, make_symbol_overload_list)
6910 (sym_return_val_size, sym_return_val_index): Ditto.
6911 * valops.c: Include cp-support.h.
6912 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6913 frame_h, and block_h.
6914 (valops.o): Depend on cp_support_h.
6915
084edea5
CV
69162003-06-12 Corinna Vinschen <vinschen@redhat.com>
6917
6918 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6919 substitute by NUM_REGS throughout.
6920 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6921 (h8300s_register_name): New function for H8S registers.
6922 (h8300sx_register_name): Ditto for H8SX registers.
6923 (h8300_print_register): Revise register printing, avoid depending
6924 on 32 bit long.
0261a0d0 6925 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6926 (h8300h_register_byte): New function for any other architecture.
6927 (h8300_register_raw_size): Remove.
6928 (h8300_register_virtual_type): Revise to return actually useful
6929 type.
6930 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6931 (h8300h_extract_struct_value_address): New function for any other
6932 architecture.
6933 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6934 set_gdbarch_register_name, set_gdbarch_register_byte,
6935 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6936 Remove calls to set_gdbarch_deprecated_register_size,
6937 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6938 set_gdbarch_deprecated_max_register_raw_size,
6939 set_gdbarch_register_virtual_size and
6940 set_gdbarch_deprecated_max_register_virtual_size entirely.
6941 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6942 set_gdbarch_long_double_bit.
6943
06194148
JJ
69442003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6945
8ffd9b1b
AJ
6946 * doublest.c (convert_doublest_to_floatformat): When dealing
6947 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6948 processing a full 32 bits of mantissa.
6949
de4f826b
DC
69502003-06-11 David Carlton <carlton@bactrian.org>
6951
6952 * dictionary.h: New.
6953 * dictionary.c: New.
6954 * block.h: Add opaque declaration for struct dictionary.
6955 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6956 'sym' members.
6957 (BLOCK_DICT): New macro.
6958 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6959 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6960 BLOCK_SHOULD_SORT.
6961 (ALL_BLOCK_SYMBOLS): Update definition.
6962 * Makefile.in (SFILES): Add dictionary.c.
6963 (dictionary_h): New.
6964 (COMMON_OBS): Add dictionary.o.
6965 (dictionary.o): New.
6966 (ada-lang.o): Depend on dictionary_h.
6967 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6968 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6969 (mi-cmd-stack.o): Ditto.
6970 (gdbtk-cmds.o): Update dependencies.
6971 (gdbtk-stack.o): Ditto.
6972 * ada-lang.c: Include dictionary.h.
6973 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6974 (fill_in_ada_prototype, debug_print_block): Ditto.
6975 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6976 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6977 'is_sorted'.
6978 * mdebugread.c: Include dictionary.h.
6979 (struct parse_stack): Delete 'maxsyms' member.
6980 (parse_symbol): Update calls to new_block. Delete calls to
6981 shrink_block. Use dictionary methods.
6982 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6983 Update calls to new_symtab. Don't maintain maxsyms data.
6984 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6985 (add_symbol): Just call dict_add_symbol.
6986 (new_symtab): Delete 'maxsyms' argument.
6987 (new_symtab): Update calls to new_block.
6988 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6989 (shrink_block): Delete function.
6990 (fixup_sigtramp): Update call to new_block. Add symbol via
6991 dict_add_symbol.
6992 * jv-lang.c: Include dictionary.h.
6993 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6994 appropriately. Set class_symtab->free_func. Make sure the
6995 blockvector is big enough to hold two blocks.
6996 (add_class_symtab_symbol): Use dictionary methods.
6997 (free_class_block): New function.
6998 (type_from_class): Replace explicit iteration by
6999 ALL_BLOCK_SYMBOLS.
7000 * symtab.h (struct symtab): Replace 'free_ptr' method by
7001 'free_func'.
7002 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7003 sort_symtab_syms.
7004 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7005 sort_symtab_syms.
7006 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7007 Include dictionary.h.
7008 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7009 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7010 sort_symtab_syms.
7011 * objfiles.c: Include dictionary.h.
7012 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7013 * buildsym.c: Include dictionary.h.
7014 (finish_block): Use dictionary methods.
7015 (end_symtab): Set free_func to NULL, not free_ptr.
7016 * tracepoint.c: Include dictionary.h.
7017 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7018 (scope_info): Ditto.
7019 * stack.c: Include dictionary.h.
7020 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7021 (print_block_frame_labels, print_frame_arg_vars)
7022 (print_frame_args): Ditto.
7023 * symmisc.c (free_symtab_block): Use dictionary methods.
7024 (dump_symtab): Ditto.
7025 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7026 Include dictionary.h.
7027 * symfile.h: Delete declarations of sort_block_syms,
7028 sort_symtab_syms.
7029 * symfile.c (sort_block_syms): Delete.
7030 (sort_symtab_syms): Delete.
7031 * symtab.c: Include dictionary.h.
7032 (lookup_block_symbol): Use dictionary iterators.
7033 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7034 (search_symbols, make_symbol_completion_list): Ditto.
7035 (make_symbol_overload_list): Ditto.
7036 * valops.c (value_of_local): Use dict_empty.
7037 Include dictionary.h.
7038
a31f978c
JB
70392003-06-11 J. Brobecker <brobecker@gnat.com>
7040
7041 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7042
526e70c0
DC
70432003-06-11 David Carlton <carlton@bactrian.org>
7044
7045 * block.h (BLOCK_SHOULD_SORT): Delete.
7046 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7047 blocks.
7048 * ada-lang.c (ada_add_block_symbols): Ditto.
7049 * symfile.c (sort_block_syms): Delete.
7050 (sort_symtab_syms): Ditto.
7051 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7052 declarations.
7053 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7054 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7055 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7056 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7057 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7058 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7059 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7060
33c08150
JJ
70612003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7062
8ffd9b1b 7063 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7064 bits to 128.
7065
781a750d
AC
70662003-06-11 Andrew Cagney <cagney@redhat.com>
7067
7068 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7069 REGISTER_CONVERTIBLE.
7070 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7071 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7072 * gdbarch.h, gdbarch.c: Re-generate.
7073 * arch-utils.h (deprecated_register_convertible_not): Rename
7074 generic_register_convertible_not.
7075 * arch-utils.c (deprecated_register_convertible_not): Rename
7076 generic_register_convertible.
7077 (legacy_convert_register_p, legacy_register_to_value): Update.
7078 * sh-tdep.c (sh64_push_arguments): Update.
7079 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7080 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7081 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7082 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7083 * arch-utils.c (legacy_value_to_register): Update.
7084 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7085 (rs6000_register_convert_to_raw): Make parameter "from" const.
7086 * mips-tdep.c (mips_gdbarch_init): Update.
7087 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7088 * infcmd.c (default_print_registers_info): Update.
7089 * ia64-tdep.c (ia64_gdbarch_init): Update.
7090 (ia64_register_convert_to_raw): Make parameter "from" const.
7091 * i386-tdep.c (i386_gdbarch_init): Update.
7092 (i386_register_convert_to_raw): Update.
7093
cd90e54f
AC
70942003-06-11 Andrew Cagney <cagney@redhat.com>
7095
7096 * remote-fileio.c: Include "remote-fileio.h".
7097 * Makefile.in (remote-fileio.o): Update dependencies.
7098 (remote_fileio_h): Fix typo.
7099
a78f21af
AC
71002003-06-11 Andrew Cagney <cagney@redhat.com>
7101
7102 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7103 (xstormy16_save_dummy_frame_tos): Make static.
7104 (_initialize_xstormy16_tdep): Add declaration.
7105 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7106 * v850-tdep.c: Make local functions static.
7107 (_initialize_v850_tdep): Add declaration.
7108 * sparc-tdep.c: Make local functions static.
7109 (_initialize_sparc_tdep): Add declaration.
7110 * sh-tdep.c: Make local functions static.
7111 (_initialize_sh_tdep): Add declaration.
7112 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7113 * s390-tdep.c: Make local functions static.
7114 (_initialize_s390_tdep): Add declaration.
7115 * dbxread.c (find_stab_function_addr): Make static.
7116 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7117 * ocd.c (_initialize_remote_ocd): Add declaration.
7118 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7119 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7120 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7121 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7122 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7123 * remote-array.c (_initialize_array): Add declaration.
7124 (_initialize_remote_monitors): Add declaration.
7125 * remote-mips.c: Make local functions static.
7126 (_initialize_remote_mips): Add declaration.
7127 * mcore-tdep.c: Make all local functions static.
7128 (_initialize_mcore_tdep): Add declaration.
7129 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7130 * abug-rom.c (_initialize_abug_rom): Add declaration.
7131 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7132 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7133 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7134 * remote-est.c (_initialize_est): Add declaration.
7135 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7136 (m68hc11_call_dummy_address): Make static.
7137 * ia64-tdep.c: Make local functions static.
7138 (_initialize_ia64_tdep): Add declaration.
7139 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7140 * monitor.c (monitor_wait_filter): Make static.
7141 (_initialize_remote_monitors): Add declaration.
7142 * remote-hms.c (_initialize_remote_hms): Add declaration.
7143 * remote-e7000.c (fetch_regs_from_dump): Make static.
7144 (expect_n): Make static.
7145 (_initialize_remote_e7000): Add declaration.
7146 * ser-e7kpc.c: Always include "defs.h".
7147 (_initialize_ser_e7000pc): Add declaration.
7148 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7149 * cris-tdep.c: Make all but one function static.
7150 (_initialize_cris_tdep): Add declaration.
7151 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7152 * solib.c (update_solib_list): Make static.
7153 (_initialize_solib): Add declaration.
7154 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7155 (_initialize_avr_tdep): Add declaration.
7156 * remote-rdi.c (voiddummy): Make static.
7157 (_initialize_remote_rdi): Add declaration.
7158 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7159 * remote-rdp.c (send_rdp): Make static.
7160 (_initialize_remote_rdp): Add declaration.
7161 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7162
cbcdb1f5
CV
71632003-06-11 Corinna Vinschen <vinschen@redhat.com>
7164
7165 * remote-fileio.c: Make ari happy.
7166
a191ea8d
JB
71672003-06-10 J. Brobecker <brobecker@gnat.com>
7168
7169 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7170 fetching the trailing bytes of the buffer we are about to write.
7171
0ef75e11
AC
71722003-06-10 Andrew Cagney <cagney@redhat.com>
7173
7174 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7175 * Makefile.in (remote-fileio.o): Update dependencies.
7176 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7177 include <setjmp.h>, or <sys/types.h> conditional on USG.
7178 (remote_fio_jmp_buf): Delete global variable.
7179
449092f6 71802003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7181 Martin M. Hunt <hunt@redhat.com>
449092f6 7182
559fa028
AC
7183 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7184 (SFILES): Add remote-fileio.c.
7185 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7186 dependencies for building remote.o.
449092f6
CV
7187 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7188 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7189 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7190 static storage class.
7191 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7192 'F' packet.
7193 (_initialize_remote): Call initialize_remote_fileio().
7194 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7195 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7196 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7197 (captured_main): Initialize new ui_files.
7198 * ui-file.c: Add read and fgets input functions.
7199 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7200 (null_file_read): New function.
7201 (ui_file_read): New function.
7202 (set_ui_file_read): New function.
7203 (stdio_file_read): New function.
7204 * ui-file.h: New type ui_file_read_ftype.
7205 (set_ui_file_read): Declare.
7206 (ui_file_read): Declare.
7207
248de703
AC
72082003-06-09 Andrew Cagney <cagney@redhat.com>
7209
7210 * frame.h (deprecated_unwind_get_saved_register): Rename
7211 generic_unwind_get_saved_register, update comments.
7212 * mips-tdep.c (mips_get_saved_register): Update.
7213 * frame.c (deprecated_unwind_get_saved_register): Update.
7214
0ed8aa57
AC
72152003-06-09 Andrew Cagney <cagney@redhat.com>
7216
7217 * vax-tdep.c (vax_frame_locals_address): Delete function.
7218 (vax_gdbarch_init): Do not set frame_locals_address.
7219 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7220 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7221 * s390-tdep.c (s390_frame_args_address): Delete function.
7222 (s390_gdbarch_init): Do not set frame_args_address or
7223 frame_locals_address.
7224 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7225 (ns32k_gdbarch_init): Do not set frame_locals_address.
7226 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7227 (hppa_frame_locals_address): Delete function.
7228 (hppa_gdbarch_init): Do not set frame_args_address, or
7229 frame_locals_address.
7230 * arm-tdep.c (arm_frame_args_address): Delete.
7231 (arm_frame_locals_address): Delete.
7232 (arm_gdbarch_init): Do not set frame_args_address, or
7233 frame_locals_address.
7234
983a287a
AC
72352003-06-09 Andrew Cagney <cagney@redhat.com>
7236
7237 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7238 * gdbarch.h, gdbarch.c: Re-generate.
7239 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7240 * arch-utils.c (frame_num_args_unknown): Delete function.
7241 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7242 (frame_info): Use FRAME_NUM_ARGS_P.
7243 * arm-tdep.c (arm_frame_num_args): Delete function.
7244 (arm_gdbarch_init): Do not set frame_num_args.
7245 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7246 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7247 (hppa_gdbarch_init): Do not set frame_num_args.
7248 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7250 frame_num_args to default frame_num_args_unknown.
7251 * v850-tdep.c (v850_gdbarch_init): Ditto.
7252 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7253 * sh-tdep.c (sh_gdbarch_init): Ditto.
7254 * s390-tdep.c (s390_gdbarch_init): Ditto.
7255 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7256 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7257 * mips-tdep.c (mips_gdbarch_init): Ditto.
7258 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7259 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7261 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7262 * i386-tdep.c (i386_gdbarch_init): Ditto.
7263 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7264 * frv-tdep.c (frv_gdbarch_init): Ditto.
7265 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7266 * cris-tdep.c (cris_gdbarch_init): Ditto.
7267 * avr-tdep.c (avr_gdbarch_init): Ditto.
7268 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7269
8d3b0994
AC
72702003-06-09 Andrew Cagney <cagney@redhat.com>
7271
7272 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7273 (print_frame_args): Moved to "stack.c".
7274 * stack.c: Include "gdb_assert.h".
7275 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7276 (print_frame_args): Moved from "printcmd.c".
7277 * frame.h (print_frame_args): Delete declaration.
7278 * Makefile.in (stack.o): Update dependencies.
7279
25e3a86b
AC
72802003-06-08 Andrew Cagney <cagney@redhat.com>
7281
7282 * frame.c (get_prev_frame): Remove reference to
7283 frame_args_address_correct in comments.
7284 * frame-base.c (default_frame_args_address): Delete code
7285 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7286 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7287 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7288 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7289 (vax_frame_args_address_correct): Delete declaration.
7290
a9e5fdc2
AC
72912003-06-08 Andrew Cagney <cagney@redhat.com>
7292
7293 * gdbarch.sh (UNWIND_SP): Add.
7294 * gdbarch.h, gdbarch.c: Re-generate.
7295 * frame.c (frame_sp_unwind): New function.
7296 (get_frame_sp): New function.
7297 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7298 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7299 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7300 value.
7301 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7302 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7303
8983bd83
AC
73042003-06-08 Andrew Cagney <cagney@redhat.com>
7305
7fec2c59
AC
7306 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7307 REMOTE_BREAKPOINT.
7308 * remote.c: Update.
7309 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7310 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7311 * config/m68k/tm-sun3.h: Update.
7312 * config/m68k/tm-m68klynx.h: Update.
7313 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7314
8983bd83
AC
7315 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7316 trad_frame". Update comments.
7317 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7318 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7319 (trad_frame_register_value, trad_frame_prev_register): Update.
7320
b9362cc7
AC
73212003-06-08 Andrew Cagney <cagney@redhat.com>
7322
7323 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7324 from GCC's acinclude.m4.
7325 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7326 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7327 * main.c (error_init): Delete declaration.
7328 * defs.h (error_init): Declare.
7329 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7330 (rs6000_convert_from_func_ptr_addr): Make static.
7331 (_initialize_rs6000_tdep): Add declaration.
7332 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7333 (show_commands, set_verbose, show_history): Delete declaration.
7334 * top.h (set_verbose): Add declaration.
7335 (show_history, set_history, show_commands): Add declaration.
7336 (do_restore_instream_cleanup): Add declaration.
7337 * objc-lang.c (specialcmp): Make static.
7338 (print_object_command): Make static.
7339 (find_objc_msgsend): Make static.
7340 (find_objc_msgcall_submethod_helper): Make static.
7341 (find_objc_msgcall_submethod): Make static.
7342 (_initialize_objc_language): Add declaration.
7343 (find_implementation_from_class): Make static.
7344 (find_implementation): Make static.
7345 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7346 * objc-lang.h (lookup_struct_typedef): Add declaration.
7347 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7348 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7349 (do_restore_user_call_depth): Make static.
7350 (do_restore_instream_cleanup): Delete declaration.
7351 (dont_repeat): Delete declaration.
7352 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7353 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7354 * reggroups.c (_initialize_reggroup): Add declaration.
7355 * cp-support.c (_initialize_cp_support): Add declaration.
7356 * cp-abi.c (_initialize_cp_abi): Add declaration.
7357 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7358 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7359 (_initialize_gnu_v3_abi): Add declaration.
7360 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7361 (_initialize_gnu_v2_abi): Add declaration.
7362 * frame-base.c (_initialize_frame_base): Add declaration.
7363 * doublest.c (floatformat_from_length): Make static.
7364 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7365 * frame.c (create_sentinel_frame): Make static.
7366 (_initialize_frame): Add declaration.
7367 * top.c (do_catch_errors): Make static.
7368 (gdb_rl_operate_and_get_next_completion): Make static.
7369 * typeprint.c: Include "typeprint.h".
7370 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7371 (sentinel_frame_this_id): Make static.
7372 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7373 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7374 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7375 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7376 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7377 * maint.c (maintenance_print_architecture): Make static.
7378 * signals/signals.c (_initialize_signals): Add declaration.
7379 * std-regs.c (_initialize_frame_reg): Add declaration.
7380 * jv-exp.y (push_variable): ISO C definition.
7381 (push_qualified_expression_name): Ditto.
7382 * memattr.c (_initialize_mem): Add declaration.
7383 * remote.c (remote_check_watch_resources): Make static.
7384 (remote_stopped_by_watchpoint): Make static.
7385 (remote_stopped_data_address): Make static.
7386 * d10v-tdep.c (nr_dmap_regs): Make static.
7387 (a0_regnum): Make static.
7388 (d10v_frame_unwind_cache): Make static.
7389 (d10v_frame_p): Make static.
7390 * osabi.c (show_osabi): Make static.
7391 (_initialize_gdb_osabi): Add extern declaration.
7392 * gdbtypes.c (make_qualified_type): Make static.
7393 (safe_parse_type): Make static.
7394 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7395 * macrotab.c (macro_bcache_free): Make static.
7396 * interps.c (interp_set_quiet): Make static.
7397 (interpreter_exec_cmd): Make static.
7398 * stack.h (select_frame_command): New file.
7399 * stack.c: Include "stack.h".
7400 (select_frame_command_wrapper): Delete function.
7401 (select_frame_command): Make global.
7402 * infcall.c: Include "infcall.h".
7403 * linespec.c: Include "linespec.h".
7404 * symfile.c (sections_overlap): Make static.
7405 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7406 * charset.c (_initialize_charset): Add missing prototype.
7407 * regcache.c (init_legacy_regcache_descr): Make static.
7408 (do_regcache_xfree): Make static.
7409 (regcache_xfer_part): Make static.
7410 (_initialize_regcache): Add missing prototype.
7411 * breakpoint.c (parse_breakpoint_sals): Make static.
7412 (breakpoint_sals_to_pc): Make static.
7413 * interps.h (clear_interpreter_hooks): ISO C declaration.
7414 * Makefile.in (stack_h): Define.
7415 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7416 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7417
a0f267c7
AC
74182003-06-08 Andrew Cagney <cagney@redhat.com>
7419
7420 * Makefile.in (d10v-tdep.o): Update dependencies.
7421 (SFILES): Add trad-frame.c.
7422 (trad_frame_h): Define.
7423 (COMMON_OBS): Add trad-frame.o.
7424 (trad-frame.o): Specify dependencies.
7425 * d10v-tdep.c: Include "trad-frame.h".
7426 (saved_regs_unwinder): Delete function.
7427 (d10v_frame_prev_register): Use trad_frame_prev_register.
7428 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7429 trad_frame", delete "regs" and "prev_sp".
7430 (prologue_find_regs): Use trad-frame.
7431 * trad-frame.h, trad-frame.c: New files.
7432
4538b4f4
MK
74332003-06-08 Mark Kettenis <kettenis@gnu.org>
7434
7435 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7436
a0273b2f
AF
74372003-06-07 Adam Fedor <fedor@gnu.org>
7438
7439 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7440 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7441 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7442 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7443 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7444 Use it.
7445
3a6c3343
AC
74462003-06-07 Andrew Cagney <cagney@redhat.com>
7447
7448 * symfile.h: Re-indent, clean up comments.
7449
b46e02f6
AC
74502003-06-07 Andrew Cagney <cagney@redhat.com>
7451
7452 * inferior.h (deprecated_write_sp): Replace
7453 generic_target_write_sp.
7454 * regcache.c (deprecated_write_sp): Replace
7455 generic_target_write_sp.
7456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7457 * vax-tdep.c (vax_gdbarch_init): Update.
7458 * v850-tdep.c (v850_gdbarch_init): Update.
7459 * sparc-tdep.c (sparc_gdbarch_init): Update.
7460 * sh-tdep.c (sh_gdbarch_init): Update.
7461 * s390-tdep.c (s390_gdbarch_init): Update.
7462 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7463 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7465 * mcore-tdep.c (mcore_gdbarch_init): Update.
7466 * m68k-tdep.c (m68k_gdbarch_init): Update.
7467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7468 * ia64-tdep.c (ia64_gdbarch_init): Update.
7469 * h8300-tdep.c (h8300_gdbarch_init): Update.
7470 * frv-tdep.c (frv_gdbarch_init): Update.
7471 * cris-tdep.c (cris_gdbarch_init): Update.
7472 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7473
a42e117c
AC
74742003-06-07 Andrew Cagney <cagney@redhat.com>
7475
7476 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7477 Assert that PC_REGNUM is valid.
7478 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7479
bd1ce8ba
AC
74802003-06-07 Andrew Cagney <cagney@redhat.com>
7481
7482 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7483 * gdbarch.h, gdbarch.c: Regenerate.
7484 * mn10300-tdep.c: Include "gdb_assert.h".
7485 (mn10300_read_fp): New function.
7486 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7487 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7488 * ia64-tdep.c: Include "gdb_assert.h".
7489 (ia64_read_fp): New function.
7490 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7491 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7492 * regcache.c (generic_target_read_sp): Delete function.
7493 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7494 * inferior.h (generic_target_read_sp): Delete declaration.
7495 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7496 generic_target_read_sp.
7497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7498 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7499 * sh-tdep.c (sh_gdbarch_init): Ditto.
7500 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7501 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7502
ec5cbaec
AC
75032003-06-07 Andrew Cagney <cagney@redhat.com>
7504
7505 * gdbarch.sh: Comment each field of startup_gdbarch.
7506 * gdbarch.h, gdbarch.c: Re-generate.
7507
cde9ea48
AC
75082003-06-07 Andrew Cagney <cagney@redhat.com>
7509
7510 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7511 * gdbarch.h, gdbarch.c: Re-generate.
7512 * regcache.c: Update comments on read_pc et.al.
7513 (generic_target_read_pc): Delete function.
7514 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7515 * inferior.h (generic_target_read_pc): Delete declaration.
7516 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7517 generic_target_read_pc.
7518 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7519 * sh-tdep.c (sh_gdbarch_init): Ditto.
7520 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7522
9a90a780
AC
75232003-06-07 Andrew Cagney <cagney@redhat.com>
7524
7525 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7526 "index" with "special_local_sect". Use strcmp instead of STREQ.
7527 Append period to coments.
7528
a39a16c4
MM
75292003-06-06 Mark Mitchell <mark@codesourcery.com>
7530
7531 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7532 (elfstab_offset_sections): Likewise.
7533 * gdb-stabs.h (stab_section_info): Likewise.
7534 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7535 * objfiles.c (objfile_relocate): Likewise.
7536 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7537 * remote.c (get_offsets): Likewise.
7538 (remote_cisco_objfile_relocate): Likewise.
7539 * somread.c (som_symfile_offsets): Likewise.
7540 * symfile.c (alloc_section_addr_info): New function.
7541 (build_section_addr_info_from_section_tab): Use it.
7542 (free_section_addr_info): Adjust.
7543 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7544 (syms_from_objfile): Allocate local_addr dynamically.
7545 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7546 dynamically.
7547 (add_symbol_file_command): Allocate sect_opts dynamically.
7548 (reread_symbols): Avoid use of SECT_OFF_MAX.
7549 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7550 (alloc_section_addr_info): Declare it.
7551 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7552 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7553 dynamically.
7554 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7555
20c6c2f8
AC
75562003-06-06 Andrew Cagney <cagney@redhat.com>
7557
7558 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7559 (d10v_frame_unwind_cache): Do not set "return_pc".
7560
884a26c8
MS
75612003-06-06 Michael Snyder <msnyder@redhat.com>
7562
7563 * h8300-tdep.c: Make tidy (long lines).
7564
088ce440
ML
75652003-06-06 Michal Ludvig <mludvig@suse.cz>
7566
8ffd9b1b 7567 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7568 to regcache_collect().
7569
7d773d96
JB
75702003-06-05 J. Brobecker <brobecker@gnat.com>
7571
7572 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7573 pc_in_sigtramp multiarch method.
7574 (hppa_hpux_som_init_abi): Use it.
7575 (hppa_hpux_elf_init_abi): Likewise.
7576 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7577 macro has been multiarched.
7578 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7579 macro here, as hppa64 isn't multiarched yet.
7580
1df6926e
AC
75812003-06-05 Andrew Cagney <cagney@redhat.com>
7582
7583 * Makefile.in (value_h): Add $(frame_h).
7584 * value.h: Include "frame.h".
7585 (struct value): Replace "frame_addr" with "frame_id".
7586 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7587 * values.c (allocate_value): Use VALUE_FRAME_ID.
7588 (value_copy): Use VALUE_FRAME_ID.
7589 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7590 * valops.c (value_assign): Update. Use frame_find_by_id.
7591
6b53acc6
ML
75922003-06-05 Michal Ludvig <mludvig@suse.cz>
7593
7594 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7595 in each pass.
7596
4d9850d3
JJ
75972003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7598
7599 * thread-db.c (check_event): For create/death event breakpoints,
7600 loop through all messages to ensure that we read the message
7601 corresponding to the breakpoint we are at.
7602
8efca6ba
MS
76032003-06-04 Michael Snyder <msnyder@redhat.com>
7604
7605 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7606
0912c7f2
MK
76072003-06-04 Mark Kettenis <kettenis@gnu.org>
7608
7609 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7610 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7611 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7612 when handling .eh_frame sections.
7613
4e370325
JB
76142003-06-04 J. Brobecker <brobecker@gnat.com>
7615
7616 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7617 prepare_to_proceed procedure instead of the hppa-specific one.
7618 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7619
b757528f 76202003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7621
b757528f
JJ
7622 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7623 * config.in: Regenerated.
7624 * configure.in: Add test for syscall function and check for
7625 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7626 * configure: Regenerated.
7627 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7628 <sys/syscall.h>.
7629 (kill_lwp): New function that uses tkill syscall or
7630 uses kill, depending on whether threading model is nptl or not.
7631 All callers of kill() changed to use kill_lwp().
7632 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7633 see if all threads have already exited in the nptl model.
7634 (stop_and_resume_callback): New callback function used by the
7635 lin_lwp_wait thread exit handling code.
7636 (stop_wait_callback): Check for threads already having exited and
7637 delete such threads fromt the lwp list when discovered.
7638 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7639
b757528f
JJ
7640 Roland McGrath <roland@redhat.com>
7641 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7642 nptl libthread_db.
7643
087779b1
RH
76442003-06-03 Richard Henderson <rth@redhat.com>
7645
b21fd293
RH
7646 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7647 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7648 (alpha_sigtramp_frame_prev_register): Likewise.
7649 (alpha_heuristic_frame_prev_register): Likewise.
7650 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7651
8ffd9b1b 7652 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7653 alpha-specific register id names.
7654 (alpha_mdebug_frame_unwind_cache): Likewise.
7655 (alpha_mdebug_frame_prev_register): Likewise.
7656
baa490c4
RH
76572003-06-03 Richard Henderson <rth@redhat.com>
7658
7659 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7660 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7661 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7662 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7663 unwind routines.
7664 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7665 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7666 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7667
7668 * alpha-linux-tdep.c: Remove unnecessary includes.
7669 * Makefile.in (alpha-linux-tdep.o): Update.
7670
76712003-06-03 Richard Henderson <rth@redhat.com>
7672
7673 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7674 (alphabsd_fill_fpreg): Likewise.
7675
f534e522
JB
76762003-06-03 J. Brobecker <brobecker@gnat.com>
7677
7678 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7679 references to struct frame_info fields by calls to the equivalent
7680 accessors. Necessary now that frame_info is opaque.
7681
4035536b
JB
76822003-06-03 J. Brobecker <brobecker@gnat.com>
7683
7684 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7685 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7686 structure, field no longer exists.
7687
0bd79c5c
JB
76882003-06-03 J. Brobecker <brobecker@gnat.com>
7689
7690 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7691 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7692
37bb6d9f
JB
76932003-06-03 J. Brobecker <brobecker@gnat.com>
7694
7695 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7696 references to struct frame_info fields by calls to the equivalent
7697 accessors. Necessary now that frame_info is opaque.
7698
852ee05c
JB
76992003-06-03 J. Brobecker <brobecker@gnat.com>
7700
7701 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7702 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7703 structure, field no longer exists.
7704
7d58c67d
TR
77052003-06-03 Theodore A. Roth <troth@openavr.org>
7706
8ffd9b1b 7707 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7708 accumulation of the size of all registers instead of blindly using
7709 DEPRECATED_REGISTER_BYTES.
7710
0a48e7e8
MS
77112003-06-03 Michael Snyder <msnyder@redhat.com>
7712
7713 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7714 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7715 for h8300sx.
7716
9798ab0d
JB
77172003-06-03 J. Brobecker <brobecker@gnat.com>
7718
7719 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7720 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7721
00b037e2
AC
77222003-06-03 Andrew Cagney <cagney@redhat.com>
7723
7724 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7725 (sparc_convert_to_raw): Delete function.
7726 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7727 register_convert_to_virtual.
7728
043b2f77
JJ
77292003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7730
7731 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7732 layer if not dealing with a statically-linked threaded program.
7733
f43caff8
KW
77342003-06-03 Kris Warkentin <kewarken@qnx.com>
7735
7736 * solib.c (solib_open): Update comment to reflect actual search order.
7737
ae1e7417
AC
77382003-06-03 Andrew Cagney <cagney@redhat.com>
7739
7740 * frame.c (get_frame_memory_signed): New function.
7741 (get_frame_memory, get_frame_memory_unsigned): New function.
7742 (get_frame_arch): New function.
7743 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7744 (get_frame_memory, get_frame_unsigned_memory): Declare.
7745 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7746 get_frame_memory_unsigned and get_frame_arch.
7747 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7748
cb123844
RG
77492003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7750
7751 * MAINTAINERS (write after approval): Add myself.
7752
1bb792e9
JB
77532003-06-03 Jim Blandy <jimb@redhat.com>
7754
7755 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7756 elements of gregset_t are 64 bits each, but access registers
7757 are still 32 bits, so they're packed two per gregset_t
7758 element. Unpack/pack them properly.
7759
aee8d8ba
DC
77602003-06-02 David Carlton <carlton@bactrian.org>
7761
7762 * linespec.c (find_methods): Break out code into
7763 add_matching_methods and add_constructors.
7764 (add_matching_methods): New.
7765 (add_constructors): Ditto.
7766
bf7488d2
AC
77672003-06-02 Andrew Cagney <cagney@redhat.com>
7768
bf7488d2
AC
7769 * sparc-tdep.c (sparc_print_registers): Delete call to
7770 REGISTER_CONVERTIBLE.
7771 (sparc_gdbarch_init): Do not set register_convertible.
7772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7773 * frv-tdep.c (frv_gdbarch_init): Ditto.
7774 * cris-tdep.c (cris_gdbarch_init): Ditto.
7775
adedef68
EZ
77762003-06-02 Elena Zannoni <ezannoni@redhat.com>
7777
8ffd9b1b 7778 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7779 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7780 (syms_from_objfile): Ditto.
7781
650fcc91
AS
77822003-06-03 Andreas Schwab <schwab@suse.de>
7783
7784 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7785 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7786
df4a182b
RH
77872003-06-02 Richard Henderson <rth@redhat.com>
7788
7789 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7790 a member of all_reggroup.
7791
c483c494
RH
77922003-06-02 Richard Henderson <rth@redhat.com>
7793
7794 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7795 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7796 (alpha_lds, alpha_sts): New.
7797 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7798 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7799 restructure and fail for type sizes other than 4 or 8.
7800 (alpha_value_to_register): Similarly.
7801 (alpha_extract_return_value): Use alpha_sts.
7802 (alpha_store_return_value): Use alpha_lds.
7803 (alpha_gdbarch_init): Update hooks.
7804
b38b6be2
RH
78052003-06-02 Richard Henderson <rth@redhat.com>
7806
7807 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7808 regnum identifiers.
7809 (alpha_sigtramp_register_address): Likewise.
7810
98a8e1e5
RH
78112003-06-02 Richard Henderson <rth@redhat.com>
7812
7813 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7814 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7815 * alpha-tdep.h: Declare them.
7816
7817 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7818 Remove zerobuf. Don't error on UNIQUE.
7819 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7820 (ALPHA_REGSET_UNIQUE): Provide default.
7821 (supply_gregset): Use alpha_supply_int_regs.
7822 (fill_gregset): Use alpha_fill_int_regs.
7823 (supply_fpregset): Use alpha_supply_fp_regs.
7824 (fill_fpregset): Use alpha_fill_fp_regs.
7825 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7826 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7827 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7828 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7829 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7830 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7831
67dfac52
RH
78322003-06-02 Richard Henderson <rth@redhat.com>
7833
f75d70cc
RH
7834 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7835
67dfac52
RH
7836 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7837 (alpha_store_return_value): Likewise.
7838
0cf566ec
DC
78392003-06-02 David Carlton <carlton@math.stanford.edu>
7840
7841 * block.c (contained_in): Add 'const' to arguments.
7842 (block_function): Ditto.
7843 * block.h: Update declarations for block_function and
7844 contained_in.
7845
cdef89d0
DC
78462003-06-02 David Carlton <carlton@math.stanford.edu>
7847
7848 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7849 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7850 * p-valprint.c (pascal_val_print): Ditto.
7851 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7852
72667056
RH
78532003-06-02 Richard Henderson <rth@redhat.com>
7854
98a8e1e5
RH
7855 * alpha-tdep.c (alpha_push_dummy_call): Use
7856 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7857
8ffd9b1b 7858 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7859 sign-extension of 32-bit values.
7860 (alpha_store_return_value): Similarly.
0ede8eca 7861
98a8e1e5
RH
7862 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7863 (alpha_extract_return_value): Likewise.
7864 (alpha_store_return_value): Likewise.
7b5e1cb3 7865
98a8e1e5
RH
7866 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7867 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7868
98a8e1e5
RH
7869 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7870 (alpha_extract_struct_value_address): Likewise.
7871 (alpha_store_return_value): Likewise.
7872 (alpha_store_struct_return): Remove.
7873 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7874
98a8e1e5
RH
7875 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7876 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7877 macros where appropriate.
7878 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7879 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7880
98a8e1e5
RH
7881 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7882 for SP, GP; void_func_ptr for PC; non-language-specific types
7883 for all others.
7884 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7885
6dd77b81
RH
78862003-06-02 Richard Henderson <rth@redhat.com>
7887
7888 * top.h (lim_at_start): Declare.
7889 * main.c (captured_main): Set it.
7890 * top.c (lim_at_start): Define.
7891 (command_loop): Use it instead of &environ.
7892 * event-top.c (command_handler): Likewise.
7893
f4dbdb54
JT
78942003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7895
7896 * mipsnbsd-tdep.c: Update copyright years.
7897 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7898
8f285956
RH
78992003-06-01 Richard Henderson <rth@redhat.com>
7900
98a8e1e5
RH
7901 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7902 (alpha-linux-tdep.o): Update dependencies.
7903 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7904 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7905
615967cb
RH
79062003-06-01 Richard Henderson <rth@redhat.com>
7907
98a8e1e5
RH
7908 * alpha-tdep.c (alpha_register_reggroup_p): New.
7909 (alpha_gdbarch_init): Register it.
615967cb 7910
b59661bd
AC
79112003-06-02 Andrew Cagney <cagney@redhat.com>
7912
7913 * dwarfread.c: Eliminate "register"
7914 (decode_die_type): Eliminate assignment within "if".
7915 (struct_type, decode_array_element_type): Ditto.
7916 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7917 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7918 (decode_modified_type, completedieinfo): Ditto.
7919 * block.c: Eliminate "register".
7920 (blockvector_for_pc_sect): Eliminate assignment within "if".
7921 * cp-support.h (struct symbol): Opaque declaration.
7922 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7923
5ef165c2
RH
79242003-06-01 Richard Henderson <rth@redhat.com>
7925
98a8e1e5
RH
7926 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7927 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7928
143985b7
AF
79292003-06-01 Adam Fedor <fedor@gnu.org>
7930
7931 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7932 * gdbarch.[ch]: Regenerate.
7933 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7934 (hppa_gdbarch_init): Set it in the gdbarch vector.
7935 * i386-tdep.c (i386_fetch_pointer_argument): New
7936 (i386_gdbarch_init): Set it into gdbarch.
7937 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7938 (rs6000_gdbarch_init): Set it in gdbarch.
7939 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7940 (sparc_gdbarch_init): Set it in gdbarch.
7941
ae0167b9
AC
79422003-06-01 Andrew Cagney <cagney@redhat.com>
7943
7c0b4a20
AC
7944 * defs.h (extract_address): Delete declaration.
7945 * findvar.c (extract_address): Delete function.
7946 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7947 extract_address with the inline equivalent,
7948 extract_unsigned_integer.
7949 (xstormy16_extract_struct_value_address): Ditto.
7950 (xstormy16_pointer_to_address): Ditto.
7951 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7952 * v850-tdep.c (v850_push_arguments): Ditto.
7953 (v850_extract_return_value): Ditto.
7954 (v850_extract_struct_value_address): Ditto.
7955 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7956 (sparcnbsd_get_longjmp_target_64): Ditto.
7957 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7958 (get_longjmp_target): Ditto.
7959 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7960 (sh64_extract_struct_value_address): Ditto.
7961 (sh_push_arguments): Ditto.
7962 (sh64_push_arguments): Ditto.
7963 * remote-vxsparc.c (vx_read_register): Ditto.
7964 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7965 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7966 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7967 * mipsv4-nat.c (get_longjmp_target): Ditto.
7968 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7969 * mips-nat.c (get_longjmp_target): Ditto.
7970 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7971 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7972 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7973 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7974 * irix5-nat.c (get_longjmp_target): Ditto.
7975 * irix4-nat.c (get_longjmp_target): Ditto.
7976 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7977 (ia64_push_arguments): Ditto.
7978 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7979 * h8300-tdep.c (h8300_push_arguments): Ditto.
7980 (h8300_store_return_value): Ditto.
7981 (h8300_extract_struct_value_address): Ditto.
7982 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7983 (frv_push_arguments): Ditto.
7984 * avr-tdep.c (avr_pointer_to_address): Ditto.
7985 (avr_push_arguments): Ditto.
7986 * arm-tdep.c (arm_push_dummy_call): Ditto.
7987 (arm_get_longjmp_target): Ditto.
7988 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7989 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7990 (alpha_get_longjmp_target): Ditto.
7991
ae0167b9
AC
7992 * solib-irix.c (extract_mips_address): Inline extract_address,
7993 replacing it with extract_signed_integer.
7994 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7995 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7996 (first_link_map_member, open_symbol_file_object): Ditto.
7997 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7998 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7999 (LM_NEXT, LM_NAME): Ditto.
8000
44d88583
RH
80012003-06-01 Richard Henderson <rth@redhat.com>
8002
98a8e1e5
RH
8003 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8004 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8005 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8006 (alpha_cannot_store_register): Likewise.
8007 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8008 * alpha-nat.c (supply_gregset): Likewise.
8009 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8010
310e9b6a
AC
80112003-06-01 Andrew Cagney <cagney@redhat.com>
8012
8013 * infcall.c (call_function_by_hand): Update comment on
8014 DEPRECATED_DUMMY_WRITE_SP.
8015
8016 * mips-tdep.c (mips_gdbarch_init): Do not set
8017 deprecated_dummy_write_sp.
8018 (mips_eabi_push_dummy_call): Set the SP register.
8019 (mips_o64_push_dummy_call): Set the SP register.
8020 (mips_o32_push_dummy_call): Set the SP register.
8021 (mips_n32n64_push_dummy_call): Set the SP register.
8022
5ab84872
RH
80232003-06-01 Richard Henderson <rth@redhat.com>
8024
98a8e1e5
RH
8025 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8026 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8027 (supply_gregset): Likewise.
8028 * alpha-tdep.c (alpha_store_return_value): Likewise.
8029 (alpha_get_longjmp_target): Likewise.
8030 (alpha_register_name): Constify array.
8031 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8032 deprecated_register_size, deprecated_register_bytes,
8033 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8034 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8035 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8036
09cc52fd
RH
80372003-06-01 Richard Henderson <rth@redhat.com>
8038
8039 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8040 from arg_reg_buffer to regcache to avoid double conversion.
8041
c7f16359
MK
80422003-06-01 Mark Kettenis <kettenis@gnu.org>
8043
8044 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8045 SP_REGNUM.
8046 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8047 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8048
7131cb6e
RH
80492003-06-01 Richard Henderson <rth@redhat.com>
8050
98a8e1e5
RH
8051 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8052 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8053
f3e0f90b
RH
80542003-06-01 Richard Henderson <rth@redhat.com>
8055
98a8e1e5
RH
8056 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8057 not overlapping PC_REGNUM.
f3e0f90b 8058
c88e30c0
RH
80592003-06-01 Richard Henderson <rth@redhat.com>
8060
98a8e1e5
RH
8061 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8062 alpha_push_arguments. Don't dump argument register data to
8063 the target stack. Fix float and 128-bit long double semantics.
8064 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8065 (alpha_fix_call_dummy): Remove.
8066 (alpha_call_dummy_words): Remove.
8067 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8068
f1a559ae
RH
80692003-06-01 Richard Henderson <rth@redhat.com>
8070
8071 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8072
5e045346
AC
80732003-06-01 Andrew Cagney <cagney@redhat.com>
8074
95404a3e
AC
8075 * mips-tdep.c (is_mips16_addr): New function.
8076 (make_mips16_addr, unmake_mips16_addr): New functions.
8077 (pc_is_mips16, mips_fetch_instruction): Use.
8078 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8079 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8080 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8081 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8082 TARGET_MIPS.
8083 * config/mips/tm-mips.h: Update copyright.
8084 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8085 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8086 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8087 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8088 (TM_PRINT_INSN_MACH): Delete.
8089 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8090
5e045346
AC
8091 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8092 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8093 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8094 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8095 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8096 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8097 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8098 mips*-*-riscos* and mips*-*-sysv* onto mips.
8099 * config/mips/mips64.mt: New file.
8100 * config/mips/mips.mt: New file.
8101 * config/mips/littlemips.mt: Delete file.
8102 * config/mips/decstation.mt: Delete file.
8103 * config/mips/vr4300el.mt: Delete file.
8104 * config/mips/vr5000el.mt: Delete file.
8105 * config/mips/vr5000.mt: Delete file.
8106 * config/mips/vr4100.mt: Delete file.
8107 * config/mips/vr4xxxel.mt: Delete file.
8108 * config/mips/vr4300.mt: Delete file.
8109 * config/mips/vr4xxx.mt: Delete file.
8110 * config/mips/bigmips.mt: Delete file.
8111 * config/mips/bigmips64.mt: Delete file.
8112 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8113 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8114 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8115 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8116 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8117 "tm-bigmips.h".
8118 * config/mips/tm-irix3.h: Ditto.
8119 * config/mips/tm-mipsv4.h: Ditto.
8120 * config/mips/tm-embed.h: Ditto.
8121 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8122 "tm-bigmips64.h".
8123 * config/mips/tm-vr5000el.h: Delete file.
8124 * config/mips/tm-tx39l.h: Delete file.
8125 * config/mips/tm-vr4300el.h: Delete file.
8126 * config/mips/tm-vr4xxxel.h: Delete file.
8127 * config/mips/tm-vr4300.h: Delete file.
8128 * config/mips/tm-vr4100.h: Delete file.
8129 * config/mips/tm-vr4xxx.h: Delete file.
8130 * config/mips/tm-vr5000.h: Delete file.
8131 * config/mips/tm-embedl64.h: Delete file.
8132 * config/mips/tm-embedl.h: Delete file.
8133 * config/mips/tm-embed64.h: Delete file.
8134 * config/mips/tm-bigmips64.h: Delete file.
8135 * config/mips/tm-bigmips.h: Delete file.
8136
2473a4a9
MK
81372003-06-01 Mark Kettenis <kettenis@gnu.org>
8138
97a5b208
MK
8139 Fix gdb/1216.
8140 * shnbsd-nat.c: Include "sh-tdep.h".
8141
2473a4a9
MK
8142 From Richard Henderson <rth@redhat.com>:
8143 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8144
e0f7ec59
AC
81452003-05-31 Andrew Cagney <cagney@redhat.com>
8146
8147 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8148 forward declaration.
8149 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8150 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8151 (mips_find_saved_regs): Use set_reg_offset.
8152 (mips_frame_init_saved_regs): Delete function.
8153 (mips_pop_frame): Call mips_find_saved_regs instead of
8154 DEPRECATED_FRAME_INIT_SAVED_REGS.
8155
68dcc709
AC
81562003-05-31 Andrew Cagney <cagney@redhat.com>
8157
8158 * mips-tdep.c (mips_gdbarch_init): Do not set
8159 deprecated_max_register_raw_size, register_virtual_size, and
8160 deprecated_max_register_virtual_size.
8161
cfc14b3a
MK
81622003-05-31 Mark Kettenis <kettenis@gnu.org>
8163
6405b0a6
MK
8164 * i386-tdep.c: Include "dwarf2-frame.h".
8165 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8166 * Makefile.in (i386-tdep.o): Update dependencies.
8167
cfc14b3a
MK
8168 * dwarf2-frame.c, dwarf2-frame.h: New files.
8169 * Makefile.in (SFILES): Add dwarf2-frame.c.
8170 (dwarf2_frame_h): Define.
8171 (COMMON_OBS): Add dwarf2-frame.o.
8172 (dwarf2-frame.o): Add dependencies.
8173
6a2751d2
AJ
81742003-05-31 Andreas Jaeger <aj@suse.de>
8175
8176 * x86-64-linux-nat.c: Fix comment.
8177
1c3545ae
MK
81782003-05-31 Mark Kettenis <kettenis@gnu.org>
8179
10f93086
MK
8180 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8181 function signature.
8182
1c3545ae
MK
8183 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8184 have a sigcontext_addr handler.
8185 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8186 sigcontext_addr handler.
8187
e11c53d2
AC
81882003-05-31 Andrew Cagney <cagney@redhat.com>
8189
8190 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8191 (print_fp_register_row): Replace do_fp_register_row.
8192 (mips_print_fp_register): Add "file" and "frame" parameters.
8193 (mips_print_register): Add "file" and "frame" parameters.
8194 (mips_print_registers_info): Replace mips_do_registers_info.
8195 (mips_gdbarch_init): Set print_registers_info instead of
8196 deprecated_do_registers_info.
8197 (mips_read_fp_register_single): Add "frame" parameter.
8198 (mips_read_fp_register_double): Add "frame" parameter.
8199
a3386186
MK
82002003-05-31 Mark Kettenis <kettenis@gnu.org>
8201
70913449
MK
8202 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8203 Fixes a bug where GDB would print the wrong register names for
8204 targets without SSE.
8205
2b5e0749
MK
8206 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8207 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8208 registers.
8209
8210 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8211 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8212 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8213 TDEP->sc_sp_offset.
8214
a3386186
MK
8215 From Michal Ludvig <mludvig@suse.cz>:
8216 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8217 and `sc_num_regs'.
8218 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8219 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8220 I386_ST0_REGNUM): Move here from...
8221 * i386-tdep.c: ... here.
8222 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8223 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8224 registers if possible.
8225 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8226 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8227 Remove variables.
8228 (i386bsd_sc_reg_offset): New variable.
8229 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8230 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8231 TDEP->sc_sp_offset.
8232 (i386fbsd_sc_reg_offset): New variable.
8233 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8234 TDEP->sc_num_regs.
8235 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8236 variables.
8237 (i386fbsd4_sc_reg_offset): New variable.
8238 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8239 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8240 TDEP->sc_sp_offset.
8241 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8242 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8243 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8244 Remove variables.
8245 (i386nbsd_sc_reg_offset): New variable.
8246 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8247 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8248 TDEP->sc_sp_offset.
8249 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8250 Remove variables.
8251 (i386obsd_sc_reg_offset): New variable.
8252 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8253 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8254 TDEP->sc_sp_offset.
8255 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8256 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8257 for frame pointer offset in `struct sigcontext'.
8258
25ab4790
AC
82592003-05-31 Andrew Cagney <cagney@redhat.com>
8260
8261 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8262 architecture methods call_dummy_words, sizeof_call_dummy_words,
8263 push_return_address, store_struct_return, and fix_call_dummy. Set
8264 push_dummy_call instead of deprecated_push_arguments.
8265 (mips_store_struct_return): Delete function.
8266 (mips_fix_call_dummy): Delete function.
8267 (mips_push_return_address): Delete function.
8268 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8269 RA_REGNUM and T9_REGNUM.
8270 (mips_n32n64_push_dummy_call): Ditto for
8271 mips_n32n64_push_arguments.
8272 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8273 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8274
6a65450a
AC
82752003-05-31 Andrew Cagney <cagney@redhat.com>
8276
8277 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8278 "dummy_addr" to "bp_addr".
8279 * infcall.c (call_function_by_hand): Pass "funaddr" to
8280 gdbarch_push_dummy_call.
8281 * gdbarch.h, gdbarch.c: Re-generate.
8282 * i386-tdep.c (i386_push_dummy_call): Update.
8283 * arm-tdep.c (arm_push_dummy_call): Update.
8284 * d10v-tdep.c (d10v_push_dummy_call): Update.
8285
c4f35dd8
MK
82862003-05-31 Mark Kettenis <kettenis@gnu.org>
8287
8288 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8289 variable declarations.
8290 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8291 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8292 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8293 x86_64_init_frame_pc, x86_64_init_frame_pc,
8294 x86_64_function_has_prologue): Remove prototypes.
8295 (X86_64_NUM_GREGS): New define.
8296 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8297 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8298 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8299 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8300 XMM1_REGNUM): Remove defines.
8301 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8302 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8303 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8304 X86_64_XMM1_REGNUM): New defines.
8305 (struct x86_64_register_info): Renamed from `struct
8306 register_info'. Remove `size' member.
8307 (x86_64_register_info_table): Remove variable.
8308 (x86_64_register_info): New variable.
8309 (X86_64_NUM_REGS): New define.
8310 (X86_64_NUM_GREGS): Remove define.
8311 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8312 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8313 Remove variables.
8314 (x86_54_dwarf2_reg_to_regnum): Remove function.
8315 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8316 (x86_64_dwarf_reg_to_regnum): New function.
8317 (x86_64_register_name): Rewrite.
8318 (x86_64_register_raw_size): Remove function.
8319 (x86_64_register_byte_table): Remove variable.
8320 (x86_64_register_byte): Remove function.
8321 (x86_64_register_virtual_type): Remove function.
8322 (x86_64_register_type): New function.
8323 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8324 x86_64_register_convert_to_raw): Remove functions.
8325 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8326 (x86_64_use_struct_convention): Make static. Adjust for renamed
8327 defines.
8328 (x86_64_frame_init_saved_regs): Remove function.
8329 (x86_64_push_arguments): Make static. Change to accept a regcache
8330 as argument.
8331 (x86_64_store_return_value, x86_64_extract_return_value): Make
8332 static. Rewrite based on i386 counterparts.
8333 (x86_64_push_dummy_call): New function.
8334 (X86_64_NUM_SAVED_REGS): New define.
8335 (x86_64_register_number): Remove function.
8336 (x86_64_store_struct_return): Remove function.
8337 (x86_64_frameless_function_invocation,
8338 x86_64_function_has_prologue): Remove functions.
8339 (PROLOG_BUFSIZE): Remove define.
8340 (struct x86_64_frame_cache): New structure.
8341 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8342 x86_64_frame_cache, x86_64_frame_this_id,
8343 x86_64_frame_prev_register, x86_64_frame_p,
8344 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8345 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8346 functions.
8347 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8348 variables.
8349 (x86_64_skip_prologue): Rewrite in terms of
8350 x86_64_analyze_prologue.
8351 (x86_64_frame_base_address): New function.
8352 (x86_64_frame_base): New variable.
8353 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8354 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8355 set deprecated_fp_regnum, deprecated_register_size,
8356 deprecated_register_bytes, register_raw_size, register_byte,
8357 register_virtual_type, register_convertiable,
8358 register_convert_to_virtual, convert_to_raw,
8359 deprecated_get_saved_register, deprecated_target_read_fp,
8360 deprecated_push_arguments, deprecated_push_return_address,
8361 deprecated_pop_frame, deprecated_store_struct_return,
8362 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8363 frameless_function_invocation, deprecated_frame_saved_pc,
8364 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8365 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8366 deprecated_init_frame_pc and virtual_frame_pointer. Call
8367 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8368 and x86_64_frame_p. Call frame_base_set_default to register
8369 x86_64_frame_base.
8370 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8371 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8372 (_initialize_x86_64_tdep): Remove function.
8373 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8374 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8375 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8376 define.
8377 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8378 (x86_64_linux_sigcontext_addr): Rewrite.
8379 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8380 x86_64_linux_frame_saved_pc): Remove functions.
8381 (x86_64_linux_pc_in_sigtramp): Renamed from
8382 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8383 trampoline.
8384 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8385 Remove_functions.
8386 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8387 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8388 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8389 (x86_64_regmap): Rename to regmap.
8390 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8391 x86_64_num_gregs.
8392 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8393 x86_64_regmap.
8394 (x86_64_fxsave_offset): Remove function.
8395 (supply_fpregset): Simply call x86_64_supply_fxsave.
8396 (fill_fpregset): Simply call x86_64_fill_fxsave.
8397 (fetch_inferior_registers, store_inferior_registers): Avoid
8398 asignment in if-statement.
8399 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8400 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8401 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8402 (fetch_core_registers): Remove function.
8403 (linux_elf_core_fns): Remove.
8404 (offsetoff): Don't define.
8405 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8406 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8407 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8408 add core-regset.o.
8409 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8410 protection against multiple includes instead of NM_X86_64_h. Add
8411 various comments. Include "config/nm-linux.h". Don't include
8412 <signal.h>.
8413 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8414 GET_THREAD_SIGNALS): Remove defines.
8415 (x86_64_register_u_addr, kernel_u_size,
8416 lin_thread_get_thread_signals): Remove prototypes.
8417 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8418 [HAVE_LINK_H]: Don't include "solib.h".
8419 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8420 * config/i386/tm-x86-64linux.h: Fix comments.
8421 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8422 x86-64-tdep.o): Update dependencies.
8423
c25083af
AC
84242003-05-30 Andrew Cagney <cagney@redhat.com>
8425
c8f55a7b
AC
8426 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8427 Change parameter type to a "struct regcache *".
8428
c25083af
AC
8429 * gdbarch.sh: Regardless of the multi-arch level, always define
8430 the macro when not already defined.
8431 * gdbarch.h, gdbarch.c: Re-generate.
8432
fbe586ae
RH
84332003-05-30 Richard Henderson <rth@redhat.com>
8434
8435 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8436 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8437 (alpha_mdebug_frame_this_id): Likewise.
8438 (alpha_mdebug_frame_prev_register): Likewise.
8439 (alpha_mdebug_frame_base_address): Likewise.
8440 (alpha_mdebug_frame_locals_address): Likewise.
8441 (alpha_mdebug_frame_args_address): Likewise.
8442 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8443 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8444 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8445 loop increment.
8446 (alpha_heuristic_frame_this_id): Make static.
8447 (alpha_heuristic_frame_prev_register): Likewise.
8448 (alpha_heuristic_frame_base_address): Likewise.
8449 * alpha-tdep.h: Update.
8450
acd5c798
MK
84512003-05-30 Mark Kettenis <kettenis@gnu.org>
8452
8453 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8454 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8455 defenitions.
8456 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8457 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8458 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8459 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8460 I386_ST0_REGNUM): New defines.
8461 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8462 codestream_get): Remove define.
8463 (codestream_next_addr, condestream_addr, condestream_buf,
8464 codestream_off, codestream_cnt): Remove variables.
8465 (codestream_fill, codestream_seek, codestream_read): Remove
8466 functions.
8467 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8468 functionality.
8469 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8470 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8471 i386_frame_saved_pc, i386_saved_pc_after_call,
8472 i386_frame_num_args, i386_frame_init_saved_regs,
8473 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8474 i386_push_arguments): Remove functions.
8475 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8476 functionality. Use i386_analyze_prologue instead of
8477 i386_get_frame_setup.
8478 (I386_NUM_SAVED_REGS): New define.
8479 (struct i386_frame_cache): New structure.
8480 (i386_alloc_frame_cache, i386_analyze_struct_return,
8481 i386_skip_probe, i386_analyze_frame_setup,
8482 i386_analyze_register_saves, i386_analyze_prologue,
8483 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8484 i386_frame_prev_register, i386_sigtramp_frame_cache,
8485 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8486 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8487 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8488 New functions.
8489 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8490 New variables.
8491 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8492 I386_EAX_REGNUM and I386_EDX_REGNUM.
8493 (i386_extract_return_value, i386_store_return_value): Use
8494 I386_ST0_REGNUM where appropriate.
8495 (i386_extract_struct_value_address): Rewrite to use extract_address.
8496 (i386_svr4_pc_in_sigtramp): Add comment.
8497 (i386_svr4_sigcontext_addr): Rewrite.
8498 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8499 TDEP->sc_sp_offset.
8500 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8501 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8502 of new defines. Set push_dummy_call, don't set
8503 deprecated_push_arguments, deprecated_push_return_address,
8504 deprecated_pop_frame. Don't set parm_boundary. Don't set
8505 deprecated_frame_chain, deprecated_frame_saved_pc,
8506 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8507 save_dummy_frame_tos, unwind_pc. Call
8508 frame_unwind_append_predicate and frame_base_set_default. Don't
8509 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8510 Don't set frameless_function_invocation. Don't set
8511 deprecated_register_bytes, deprecated_register_size,
8512 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8513 * i386-linux-tdep.c: Fix formatting in some comments.
8514 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8515 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8516 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8517 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8518 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8519 redundant parentheses.
8520 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8521 (i386_linux_sigcontext_addr): Use it. Rewrite.
8522 (find_minsym_and_objfile): Change name of second argument.
8523 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8524 changed. Use frame_pc_unwind instead of
8525 DEPRECATED_SAVED_PC_AFTER_CALL.
8526 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8527 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8528 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8529 unwinder.
8530 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8531 "dummy-frame.h".
8532 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8533 (_initialize_i386_cygwin_tdep): New prototype.
8534 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8535 deprecated_frame_chain_valid.
8536 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8537 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8538 Rely on the SVR4 defaults.
8539 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8540 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8541
c89b70f1
AC
85422003-05-30 Andrew Cagney <cagney@redhat.com>
8543
8544 * infcall.c (call_function_by_hand): Always call
8545 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8546
85b32d22
RH
85472003-05-30 Richard Henderson <rth@redhat.com>
8548
c89b70f1
AC
8549 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8550 increment.
85b32d22 8551
bfe51b1e
JB
85522003-05-29 Jim Blandy <jimb@redhat.com>
8553
8554 Use gdbarch methods for solib stuff on PowerPC Linux.
8555 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8556 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8557 show through.
8558 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8559 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8560 giving the same effect as the #definitions above.
8561
1abf022c
AF
85622003-05-29 Adam Fedor <fedor@gnu.org>
8563
8564 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8565 (find_implementation_from_class): Replace it with the standard
8566 case i.e. do nothing.
8567
d2427a71
RH
85682003-05-29 Richard Henderson <rth@redhat.com>
8569
8570 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8571 (alpha_linux_sigtramp_offset): Use it. Make static.
8572 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8573 update for new frame model.
8574 * alpha-mdebug-tdep.c: New file.
8575 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8576 (alpha_osf1_init_abi): Install it.
8577 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8578 (linked_proc_desc_table): Remove.
8579 (alpha_frame_past_sigtramp_frame): Remove.
8580 (alpha_dynamic_sigtramp_offset): Remove.
8581 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8582 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8583 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8584 (push_sigtramp_desc): Remove.
8585 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8586 (alpha_cannot_store_register): Likewise.
8587 (alpha_sigcontext_addr): Remove.
8588 (alpha_find_saved_regs): Remove.
8589 (alpha_frame_init_saved_regs): Remove.
8590 (alpha_init_frame_pc_first): Remove.
8591 (read_next_frame_reg): Remove.
8592 (alpha_frame_saved_pc): Remove.
8593 (alpha_saved_pc_after_call): Remove.
8594 (temp_proc_desc, temp_saved_regs): Remove.
8595 (alpha_about_to_return): Remove.
8596 (cached_proc_desc): Remove.
8597 (alpha_frame_chain): Remove.
8598 (alpha_print_extra_frame_info): Remove.
8599 (alpha_init_extra_frame_info): Remove.
8600 (alpha_frame_locals_address): Remove.
8601 (alpha_frame_args_address): Remove.
8602 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8603 (alpha_push_dummy_frame): Remove.
8604 (alpha_pop_frame): Remove.
8605 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8606 (alpha_read_insn): New.
8607 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8608 for different insn encodings.
8609 (alpha_in_lenient_prologue): Remove.
8610 (struct alpha_sigtramp_unwind_cache): New.
8611 (alpha_sigtramp_frame_unwind_cache): New.
8612 (alpha_sigtramp_register_address): New.
8613 (alpha_sigtramp_frame_this_id): New.
8614 (alpha_sigtramp_frame_prev_register): New.
8615 (alpha_sigtramp_frame_unwind): New.
8616 (alpha_sigtramp_frame_p): New.
8617 (struct alpha_heuristic_unwind_cache): New.
8618 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8619 don't count nop insns that occur between functions.
8620 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8621 heuristic_proc_desc, but without the mdebug wrapping.
8622 (alpha_heuristic_frame_this_id): New.
8623 (alpha_heuristic_frame_prev_register): New.
8624 (alpha_heuristic_frame_unwind): New.
8625 (alpha_heuristic_frame_p): New.
8626 (alpha_heuristic_frame_base_address): New.
8627 (alpha_heuristic_frame_base): New.
8628 (alpha_unwind_dummy_id): New.
8629 (alpha_unwind_pc): New.
8630 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8631 frame related deprecated initializations; install replacements.
8632 (alpha_dump_tdep): Remove.
8633 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8634 (alpha_read_insn, alpha_after_prologue,
8635 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8636 alpha_heuristic_frame_prev_register,
8637 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8638 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8639 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8640 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8641
93ec1121
AC
86422003-05-29 Andrew Cagney <cagney@redhat.com>
8643
8644 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8645 dependant on the availability of ASSERT_FUNCTION.
8646 (ASSERT_FUNCTION): Do not define when there is no function name.
8647
98f08d3d
KB
86482003-05-29 Kevin Buettner <kevinb@redhat.com>
8649
8650 From Jimi X <jimix@watson.ibm.com>:
8651 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8652
0897f59b
JB
86532003-05-28 Jim Blandy <jimb@redhat.com>
8654
8655 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8656 argument to ptrace to int; the system headers should give it the
8657 right type, and pointers don't fit in ints on powerpc64-*-*.
8658
14898363
L
86592003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8660
8661 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8662 DW_TAG_catch_block.
8663
a7a48797
EZ
86642003-05-26 Elena Zannoni <ezannoni@redhat.com>
8665
8666 * stabsread.c (dbx_lookup_type): Make static.
8667 (read_type): Ditto.
8668 (add_undefined_type): Ditto.
8669 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8670 not export.
8671
f5479e9c
EZ
86722003-05-26 Elena Zannoni <ezannoni@redhat.com>
8673
8674 * hpread.c (hpread_has_name): Make static.
8675 (hpread_psymtab_to_symtab): Ditto.
8676 (file_exists): Ditto.
8677 (hpread_call_pxdb): Ditto.
8678 (hpread_pxdb_needed): Ditto.
8679 (hpread_quick_traverse): Ditto.
8680 (hpread_get_header): Ditto.
8681 (hpread_get_lntt): Ditto.
8682 (hpread_get_slt): Ditto.
8683 (class_of): Ditto.
8684
eb2e12d7
AS
86852003-05-25 Andreas Schwab <schwab@suse.de>
8686
78bf922a
AS
8687 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8688 stack_align and deprecated_extra_stack_alignment_needed.
8689 (m68k_stack_align): Delete.
8690
eb2e12d7
AS
8691 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8692 (m68k_register_virtual_size): Likewise.
8693 (altos_skip_prologue): Remove obsolete function.
8694 (isi_frame_num_args): Likewise.
8695 (news_frame_num_args): Likewise.
8696 (m68k_fix_call_dummy): Make static.
8697 (m68k_push_dummy_frame): Likewise.
8698 (m68k_pop_frame): Likewise.
8699 (m68k_skip_prologue): Likewise.
8700 (m68k_frame_init_saved_regs): Likewise.
8701 (m68k_saved_pc_after_call): Likewise.
8702 (m68k_get_longjmp_target): Make multi-arch.
8703 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8704 structure. Register m68k_get_longjmp_target if enabled.
8705 * m68k-tdep.h (struct gdbarch_tdep): Define.
8706 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8707
8708 * Makefile.in (config.status): Also depend on configure.tgt
8709 and configure.host.
8710 (m68klinux-tdep.o): Update dependencies.
8711 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8712 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8713 (M68K_LINUX_JB_PC): Define.
8714 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8715 and take additional parameter.
8716 (m68k_linux_sigtramp_saved_pc): Update.
8717 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8718 m68k_linux_pc_in_sigtramp, in_plt_section,
8719 find_solib_trampoline_target.
8720 * config/m68k/tm-linux.h: Don't include any tm headers.
8721 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8722 (JB_ELEMENT_SIZE): Likewise.
8723 (JB_PC): Likewise.
8724 (GET_LONGJMP_TARGET): Likewise.
8725 (IN_SIGTRAMP): Likewise.
8726 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8727
eb2c22dc
MK
87282003-05-25 Mark Kettenis <kettenis@gnu.org>
8729
8730 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8731 (sparc32_push_arguments): Re-implement by calling
8732 sparc32_do_push_arguments.
8733
44b7b84e
MK
87342003-05-25 Mark Kettenis <kettenis@gnu.org>
8735
8736 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8737 SPARC_O1_REGNUM): New defines.
8738 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8739 (sparc32_store_return_value): New function.
8740 (sparc_extract_struct_value_address): Rewrite to operate on a
8741 regcache.
8742 (sparc_gdbarch_init): Don't set
8743 deprecated_extract_struct_value_address. Set
8744 extract_struct_value_address instead. Don't set
8745 deprecated_extract_return_value and deprecated_store_return_value
8746 for 32-bit targets. Set extract_return_value and
8747 store_return_value instead.
8748 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8749 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8750 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8751 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8752 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8753 (sparc_store_return_value): Remove prototype.
8754 (sparc32_store_return_value): New prototype.
8755 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8756 Adjust prototypes.
8757
f6ad61e3
MK
87582003-05-24 Mark Kettenis <kettenis@gnu.org>
8759
8760 * sparcnbsd-tdep.c: Include "gdb_string.h".
8761
b276f1bb
AC
87622003-05-23 Andrew Cagney <cagney@redhat.com>
8763
8764 * p-valprint.c (pascal_val_print): Replace extract_address with
8765 the inline equivalent extract_unsigned_integer.
8766 * jv-valprint.c (java_value_print): Ditto.
8767 * ada-valprint.c (ada_val_print_1): Ditto.
8768 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8769
e76c5fcc
TR
87702003-05-23 Theodore A. Roth <troth@openavr.org>
8771
8772 * blockframe.c (frameless_look_for_prologue): Remove unused
8773 after_prologue variable.
8774
2cdd89cb
MK
87752003-05-23 Mark Kettenis <kettenis@gnu.org>
8776
8777 * blockframe.c (get_pc_function_start): Rewrite to avoid
8778 asignments in if-statements.
8779
182d43bc
EZ
87802003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8781
8782 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8783 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8784 files, don't relocate absolute symbols (and do use mst_abs).
8785
e8f3fcdd
AC
87862003-05-23 Andrew Cagney <cagney@redhat.com>
8787
8788 * objc-lang.c: Include "gdb_assert.h".
8789 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8790 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8791 (gdb_check, gdb_check_fatal): Delete functions.
8792 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8793 gdb_assert.
8794 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8795 * Makefile.in (objc-lang.o): Update dependencies.
8796
3c23e6fb
ILT
87972003-05-22 Ian Lance Taylor <ian@airs.com>
8798
8799 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8800 with fprintf_filtered, not fprintf_unfiltered.
8801
af1342ab
AC
88022003-05-22 Andrew Cagney <cagney@redhat.com>
8803
8804 * stack.c (frame_info): Inline extract_address, replacing it with
8805 extract_unsigned_integer.
8806 * findvar.c (unsigned_pointer_to_address): Ditto.
8807 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8808 * dwarf2expr.c (dwarf2_read_address): Ditto.
8809 * frame.c (frame_pc_unwind): Update comment.
8810 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8811
47e242ec
JJ
88122003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8813
8814 * infptrace.c (detach): Call print_sys_errmsg rather than
8815 perror_with_name to issue warning message when errno is non-zero
8816 after calling ptrace detach.
8817
e2ac8128
JB
88182003-05-21 J. Brobecker <brobecker@gnat.com>
8819
8820 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8821 macro definitions from here...
8822 * hppa-tdep.c: ...to there.
8823
92b3541e
KB
88242003-05-20 Kevin Buettner <kevinb@redhat.com>
8825
8826 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8827 register_ptrace_addr(). Fix all callers.
8828
55809acb
AS
88292003-05-21 Andreas Schwab <schwab@suse.de>
8830
8831 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8832 dependencies.
8833 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8834 end.
8835 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8836 (_initialize_m68k_linux_tdep): New function.
8837 (m68k_linux_frame_saved_pc): Make static.
8838 (m68k_linux_extract_return_value): Likewise.
8839 (m68k_linux_store_return_value): Likewise.
8840 (m68k_linux_extract_struct_value_address): Likewise.
8841 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8842 Remove.
8843 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8844 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8845 (DEPRECATED_FRAME_SAVED_PC): Remove.
8846
0fbc10f7
KW
88472003-05-20 Kris Warkentin <kewarken@qnx.com>
8848
8849 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8850 regset numbering rather than our own.
8851
58da2eb2
DC
88522003-05-19 David Carlton <carlton@bactrian.org>
8853
8854 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8855
1fcb5155
DC
88562003-05-19 David Carlton <carlton@bactrian.org>
8857
8858 Partial fix for PR c++/827.
8859 * cp-support.h: Include symtab.h.
8860 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8861 * cp-namespace.c: Update contributors.
8862 (cp_lookup_symbol_nonlocal): New.
8863 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8864 (lookup_symbol_file): Ditto.
8865 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8866 * block.h: Declare block_scope, block_using, block_global_block.
8867 * block.c (block_scope): New.
8868 (block_using, block_global_block): Ditto.
8869 * Makefile.in (cp_support_h): Depend on symtab_h.
8870 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8871
5f9a71c3
DC
88722003-05-19 David Carlton <carlton@bactrian.org>
8873
8874 * language.h (struct language_defn): Add 'la_value_of_this'
8875 and 'la_lookup_symbol_nonlocal' members.
8876 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8877 lookup_symbol_static, lookup_symbol_global,
8878 lookup_symbol_aux_block.
8879 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8880 if we should search fields of this and how to do static/global
8881 lookup.
8882 (lookup_symbol_aux_block): Make extern.
8883 (basic_lookup_symbol_nonlocal): New.
8884 (lookup_symbol_static, lookup_symbol_global): Ditto.
8885 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8886 'la_lookup_symbol_nonlocal' members.
8887 * c-lang.c (c_language_defn, cplus_language_defn)
8888 (asm_language_defn, minimal_language_defn): Ditto.
8889 * jv-lang.c (java_language_defn): Ditto.
8890 * language.c (unknown_language_defn, auto_language_defn)
8891 (local_language_defn): Ditto.
8892 * m2-lang.c (m2_language_defn): Ditto.
8893 * objc-lang.c (objc_language_defn): Ditto.
8894 * scm-lang.c (scm_language_defn): Ditto.
8895 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8896 * p-lang.c (pascal_language_defn): Ditto for both.
8897 * Makefile.in (f-lang.o): Depend on value_h.
8898 (p-lang.o): Ditto.
8899
89a9d1b1
DC
89002003-05-19 David Carlton <carlton@bactrian.org>
8901
8902 * block.h: Declare block_static_block.
8903 * block.c (block_static_block): New.
8904 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8905 lookup_symbol_aux_local, calling block_static_block instead.
8906 (lookup_symbol_aux_local): Delete 'static_block' argument.
8907
eed3f8ab
DC
89082003-05-19 David Carlton <carlton@bactrian.org>
8909
8910 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8911
a09d8bda
ML
89122003-05-19 Michal Ludvig <mludvig@suse.cz>
8913
8914 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8915 register numbers mapping.
8916
69636828
AF
89172003-05-18 Adam Fedor <fedor@gnu.org>
8918
8919 * symtab.c (completion_list_objc_symbol): New function.
8920 (make_symbol_completion_list): Use it to add ObjC symbols
8921 when looking though the list.
8922 (language_search_unquoted_string): New function.
8923 (make_file_symbol_completion_list): Use it.
8924
55baeb84
AS
89252003-05-18 Andreas Schwab <schwab@suse.de>
8926
d0b45d99
AS
8927 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8928 dependencies.
8929 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8930 as m68k_linux_extract_return_value.
8931 (DEPRECATED_STORE_RETURN_VALUE): Define as
8932 m68k_linux_store_return_value.
8933 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8934 m68k_linux_extract_struct_value_address.
8935 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8936 get_next_frame, get_frame_base, get_frame_pc.
8937 (m68k_linux_frame_saved_pc): Use get_frame_base.
8938 (m68k_linux_extract_return_value): New function.
8939 (m68k_linux_store_return_value): New function.
8940 (m68k_linux_extract_struct_value_address): New function.
8941 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8942
55baeb84
AS
8943 * c-exp.y (typebase): Remove duplicate occurence of
8944 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8945 of lookup_signed_typename.
55baeb84 8946
b6b08ebf
MK
89472003-05-18 Mark Kettenis <kettenis@gnu.org>
8948
8949 * dwarf2loc.c (find_location_expression): Change type of second
8950 argument to `size_t *'.
8951 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8952 for size variable.
8953
5ad1c190
DC
89542003-05-18 David Carlton <carlton@bactrian.org>
8955
8956 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8957 'linkage_name'. Add comment.
8958 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8959 'linkage_name'.
8960 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8961 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8962 (lookup_block_symbol): Ditto.
8963
b8b527c5
AC
89642003-05-16 Andrew Cagney <cagney@redhat.com>
8965
8966 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8967 * gdbarch.h, gdbarch.c: Re-generate.
8968 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8969 * TODO (REGISTER_BYTES): Delete reference.
8970 * alpha-tdep.c (alpha_gdbarch_init): Update.
8971 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8972 * x86-64-tdep.c (x86_64_init_abi): Update.
8973 * vax-tdep.c (vax_gdbarch_init): Update.
8974 * v850-tdep.c (v850_gdbarch_init): Update.
8975 * sparc-tdep.c (sparc_gdbarch_init): Update.
8976 * sh-tdep.c (sh_gdbarch_init): Update.
8977 * s390-tdep.c (s390_gdbarch_init): Update.
8978 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8979 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8980 (ns32k_gdbarch_init_32382): Update.
8981 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8982 * mcore-tdep.c (mcore_gdbarch_init): Update.
8983 * m68k-tdep.c (m68k_gdbarch_init): Update.
8984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8985 * ia64-tdep.c (ia64_gdbarch_init): Update.
8986 * i386-tdep.c (i386_gdbarch_init): Update.
8987 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8988 * hppa-tdep.c (hppa_gdbarch_init): Update.
8989 * h8300-tdep.c (h8300_gdbarch_init): Update.
8990 * frv-tdep.c (frv_gdbarch_init): Update.
8991 * cris-tdep.c (cris_gdbarch_init): Update.
8992 * avr-tdep.c (avr_gdbarch_init): Update.
8993 * arm-tdep.c (arm_gdbarch_init): Update.
8994 * sparc-tdep.c (sparc_pop_frame): Update.
8995 * rs6000-tdep.c (rs6000_pop_frame): Update.
8996 * remote.c (init_remote_state): Update.
8997 (remote_prepare_to_store): Update.
8998 * remote-vx.c (vx_prepare_to_store): Update.
8999 * remote-sds.c (sds_fetch_registers): Update.
9000 (sds_prepare_to_store): Update.
9001 * remote-array.c: Update.
9002 * regcache.c (init_legacy_regcache_descr): Update.
9003 (init_regcache_descr): Update.
9004 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9005 (mips_o64_extract_return_value): Update.
9006 * irix5-nat.c (fetch_core_registers): Update.
9007 * irix4-nat.c (fetch_core_registers): Update.
9008 * i386-tdep.h: Update.
9009 * hppa-tdep.c (pa_do_registers_info): Update.
9010 (pa_do_strcat_registers_info): Update.
9011 * cris-tdep.c (cris_register_bytes_ok): Update.
9012 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9013 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9014 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9015 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9016 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9017 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9018 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9019 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9020 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9021 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9022 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9023 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9024 (REGISTER_BYTES_OK): Update.
9025 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9026 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9027
ee2842e2
ILT
90282003-05-16 Ian Lance Taylor <ian@airs.com>
9029
9030 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9031 (vax_print_insn, print_insn_arg): Remove static functions.
9032 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9033 print_insn_vax from opcodes library.
9034 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9035
973177d3
AC
90362003-05-15 Andrew Cagney <cagney@redhat.com>
9037
aaab4dba
AC
9038 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9039 * target.h (memory_breakpoint_from_pc): Delete declaration.
9040 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9041 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9042 * monitor.c (monitor_insert_breakpoint): Use
9043 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9044 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9045 * gdbarch.h, gdbarch.c: Re-generate.
9046 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9047 (sparc_gdbarch_init): Set breakpoint_from_pc to
9048 sparc_breakpoint_from_pc.
9049 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9050 (BREAKPOINT_FROM_PC): Define.
9051 (sparc_breakpoint_from_pc): Declare.
9052 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9053 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9054 (BREAKPOINT_FROM_PC): Define.
9055 (BREAKPOINT): Delete macro.
9056 * target.h: Update comment.
9057 * s390-tdep.c (s390_gdbarch_init): Update comments.
9058 * remote.c: Update comments.
9059 * remote-mips.c: Update comments.
9060 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9061 * mem-break.c: Update comment.
9062 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9063 (ia64_memory_insert_breakpoint): Update.
9064 * config/sparc/tm-sparc.h: Update comment.
9065 * config/pa/tm-hppa64.h: Update comment.
9066 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9067 (rs6000_breakpoint_from_pc): Update.
9068 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9069 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9070 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9071 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9072 (mips_breakpoint_from_pc): Update.
9073 (mips_dump_tdep): Update.
9074
e06963ff
AC
9075 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9076 * minsyms.c (lookup_minimal_symbol): Inline
9077 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9078
973177d3
AC
9079 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9080 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9081 * p-lang.c (pascal_printstr): Ditto.
9082 * objc-lang.c (objc_printstr): Ditto.
9083 * m2-lang.c (m2_printstr): Ditto.
9084 * jv-valprint.c (java_print_value_fields): Ditto.
9085 * f-lang.c (f_printstr): Ditto.
9086 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9087 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9088 for repeat_count_threshold.
9089 * Makefile.in (cp-valprint.o): Update dependencies.
9090
5ea2bd7f 90912003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9092
5ea2bd7f
JJ
9093 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9094 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9095 they start with mov r2,r12. Support skipping over indirect stores
9096 of the input registers. Upon hitting a non-nop branch instruction
9097 or predicated instruction, bail out by setting lim_pc to the current
9098 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9099 beyond our calculated value and we have trust_limit set,
9100 use the lim_pc value.
9101
cc8c88f3
AC
91022003-05-15 Andrew Cagney <cagney@redhat.com>
9103
9104 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9105 generic_find_dummy_frame.
9106 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9107 (deprecated_generic_find_dummy_frame): Update.
9108 (deprecated_read_register_dummy): Update.
9109 * frame.c (deprecated_generic_get_saved_register): Update.
9110
909cd28e
TR
91112003-05-15 Theodore A. Roth <troth@openavr.org>
9112
9113 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9114 (avr_gdbarch_init): Set breakpoint_from_pc method.
9115
b923b08d
AC
91162003-05-15 Andrew Cagney <cagney@redhat.com>
9117
9118 * regcache.c (build_regcache): Set deprecated_register_valid
9119 directly.
9120 (deprecated_grub_regcache_for_register_valid): Delete function.
9121 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9122 declaration.
9123
ae2f03ac 91242003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9125
9126 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9127 * symtab.c (lookup_symbol_aux): Delete calls to
9128 lookup_symbol_aux_minsyms.
9129 (lookup_symbol_aux_minsyms): Comment out function and
9130 prototype. Delete lookup by mangled name.
ae2f03ac 9131
18ec9831
KB
91322003-05-14 Kevin Buettner <kevinb@redhat.com>
9133
9134 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9135 correctly indicate an empty stack and ``stack_allocated'' to the
9136 indicate the number of elements initially allocated.
9137 (dwarf_expr_grow_stack): Simplify method for computing new
9138 stack size. Don't loop infinitely if ``stack_len'' is zero.
9139 (execute_stack_op): Move ``ctx->in_reg'' initialization
9140 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9141 be used in conjuction with DW_OP_piece. Revise error message
9142 accordingly.
9143
de18ac1f
TR
91442003-05-14 Theodore A. Roth <troth@openavr.org>
9145
9146 * MAINTAINERS: Update my email address.
9147 * avr-tdep.c: Ditto.
9148
176620f1
EZ
91492003-05-14 Elena Zannoni <ezannoni@redhat.com>
9150
9151 * symtab.h (enum domain_enum): Rename from namespace_enum.
9152 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9153 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9154 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9155 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9156 TYPES_NAMESPACE, METHODS_NAMESPACE.
9157 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9158 (struct symbol, struct partial_symbol): Rename field
9159 'namespace_enum namespace' to 'domain_enum domain'.
9160 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9161 Delete old define kludge for namespace.
9162
9163 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9164 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9165 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9166 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9167 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9168 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9169 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9170 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9171 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9172 occurrences of the above.
9173
b7f31508
ILT
91742003-05-14 Ian Lance Taylor <ian@airs.com>
9175
9176 * Makefile.in (install-only): Use $(SHELL) when running
9177 mkinstalldirs.
9178
2fdbdd39
ILT
91792003-05-13 Ian Lance Taylor <ian@airs.com>
9180
a208d82c
ILT
9181 * MAINTAINERS (write after approval): Add myself.
9182
2fdbdd39
ILT
9183 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9184 second and third arguments.
9185 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9186 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9187
fbd9dcd3
AC
91882003-05-13 Andrew Cagney <cagney@redhat.com>
9189
9190 * defs.h (store_address): Delete declaration.
9191 findvar.c (store_address): Delete function.
9192 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9193 store_unsigned_integer.
9194 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9195 * v850-tdep.c (v850_push_arguments): Ditto.
9196 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9197 * sh-tdep.c (sh64_get_saved_register): Ditto.
9198 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9199 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9200 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9201 (mips_get_saved_register): Ditto.
9202 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9203 (find_func_descr, ia64_push_arguments): Ditto.
9204 * i386-tdep.c (i386_push_arguments): Ditto.
9205 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9206 * frv-tdep.c (frv_push_arguments): Ditto.
9207 * frame.c (legacy_saved_regs_prev_register): Ditto.
9208 (deprecated_generic_get_saved_register): Ditto.
9209 * findvar.c (unsigned_address_to_pointer): Ditto.
9210 * dwarf2read.c (dwarf2_const_value): Ditto.
9211 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9212 * alpha-tdep.c (alpha_push_arguments): Ditto.
9213
6760f9e6
JB
92142003-05-12 J. Brobecker <brobecker@gnat.com>
9215
9216 * NEWS: Mention that the hppa-hpux port has been partially
9217 multiarched (32bit ABIT only, so far).
9218
30e221b4
AC
92192003-05-11 Andrew Cagney <cagney@redhat.com>
9220
9221 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9222 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9223 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9224 sim/testsuite/sim/arm/misaligned2.ms, and
9225 sim/testsuite/sim/arm/misaligned3.ms.
9226 * disasm.h (struct ui_file): Add opaque struct declaration.
9227 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9228 * frame.h (struct ui_file): Ditto.
9229
dea7f9ba
MK
92302003-05-11 Mark Kettenis <kettenis@gnu.org>
9231
9232 * value.h: Pretty print.
9233
01986c48
MK
92342003-05-10 Mark Kettenis <kettenis@gnu.org>
9235
9236 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9237
123a958e
AC
92382003-05-08 Andrew Cagney <cagney@redhat.com>
9239
9240 * regcache.h (max_register_size): Delete declaration.
9241 * regcache.c (max_register_size): Delete function.
9242 (struct regcache_descr): Delete field "max_register_size".
9243 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9244 registers fit in MAX_REGISTER_SIZE.
9245 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9246 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9247 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9248 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9249 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9250 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9251 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9252 * dve3900-rom.c, hppa-tdep.c: Ditto.
9253
eb294659
DC
92542003-05-08 David Carlton <carlton@math.stanford.edu>
9255
9256 * valops.c (push_word): Fix typo.
9257
d9d9c31f
AC
92582003-05-08 Andrew Cagney <cagney@redhat.com>
9259
9260 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9261 * gdbarch.h: Re-generate.
9262 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9263 (legacy_max_register_raw_size): Delete declaration.
9264 * regcache.c (legacy_max_register_raw_size): Delete function.
9265 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9266 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9267 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9268 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9269 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9270 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9271 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9272 * findvar.c, dwarf2cfi.c: Ditto.
9273
22540ece
AC
92742003-05-08 Andrew Cagney <cagney@redhat.com>
9275
9276 * mips-tdep.c (read_signed_register): New function, moved to here
9277 from "regcache.c".
9278 (read_signed_register_pid): Ditto.
9279 * regcache.c (read_signed_register_pid): Delete function, moved to
9280 "mips-tdep.c".
9281 (read_signed_register): Ditto.
9282 * regcache.h (read_signed_register): Delete declaration.
9283 (read_signed_register_pid): Delete declaration.
9284
0c92afe8
AC
92852003-05-08 Andrew Cagney <cagney@redhat.com>
9286
9287 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9288 * gdbarch.h: Re-generate.
9289 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9290 (legacy_max_register_virtual_size): Delete declaration.
9291 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9292 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9293 * tracepoint.c (memrange_sortmerge): Ditto.
9294 * sparc-tdep.c (sparc_print_registers): Ditto.
9295 * regcache.c (legacy_max_register_virtual_size): Delete function.
9296
6037b830
JB
92972002-05-08 J. Brobecker <brobecker@gnat.com>
9298
9299 * fork-child.c (escape_bang_in_quoted_argument): New function.
9300 (fork_inferior): Escape '!' characters in quoted arguments
9301 only when needed.
9302
5d62c8b1
JB
93032003-05-08 J. Brobecker <brobecker@gnat.com>
9304
9305 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9306 the language of the CU is not currently supported by GDB.
9307
20a0e81d
JB
93082003-05-08 J. Brobecker <brobecker@gnat.com>
9309
9310 * defs.h (language): Add language_minimal enum value.
9311 * c-lang.c (minimal_language_defn): New language definition.
9312 (_initialize_c_language): Add the new minimal language to the list
9313 of languages known to GDB.
9314
710ee10a
KB
93152003-05-08 Kevin Buettner <kevinb@redhat.com>
9316
9317 * frame.c (get_frame_type): Don't attempt to lazily initialize
9318 frame's unwinder for legacy frames.
9319
1750fa04
AC
93202003-05-07 Andrew Cagney <cagney@redhat.com>
9321
9322 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9323 and "regcache" parameters.
9324 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9325
ddf9f258 93262003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9327
9328 * dwarf2read.c (dwarf_decode_lines): Only use output of
9329 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9330 the current address.
9331
87767c29
AC
93322003-05-07 Andrew Cagney <cagney@redhat.com>
9333
9334 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9335 code.
9336
5e7b2f39
JB
93372003-05-07 Jim Blandy <jimb@redhat.com>
9338
9339 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9340 'maint info symtabs' and 'maint info psymtabs'.
9341 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9342 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9343 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9344 Declarations updated.
9345 * maint.c (maintenance_list_command): Delete.
9346 (_initialize_maint_cmds): Update calls to add_cmd.
9347 * gdbcmd.h (maintenancelistlist): Delete declaration.
9348 * cli/cli-cmds.c (maintenancelistlist): Delete.
9349 (init_cmd_lists): Don't initialize it.
9350 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9351
f6684c31
AC
93522003-05-07 Andrew Cagney <cagney@redhat.com>
9353
9354 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9355 "regcache".
9356 (d10v_print_registers_info): Update.
9357 (d10v_dmap_register, d10v_imap_register): Delete functions.
9358 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9359 and "imap_register".
9360 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9361 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9362 * arch-utils.c (generic_remote_translate_xfer_address): Add
9363 "regcache" and "gdbarch" parameters.
9364 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9365 parameter. Change class to multi-arch.
9366 * gdbarch.h, gdbarch.c: Re-generate.
9367 * remote.c (remote_xfer_memory): Use
9368 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9369
e4846b08
JJ
93702003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9371
9372 * infrun.c (prev_pc): Move declaration ahead of proceed().
9373 (proceed): Refresh prev_pc value before resuming.
9374 (stop_stepping): Remove code to refresh prev_pc.
9375
6b71b8ac
KW
93762003-05-06 Kris Warkentin <kewarken@qnx.com>
9377
9378 * nto-tdep.c: Removed stray comment.
9379
47979a4b
KW
93802003-05-06 Kris Warkentin <kewarken@qnx.com>
9381
9382 * i386-nto-tdep.c: Fix old K&R function definitions.
9383 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9384 Also change add_show_from_set() call to add_setshow_cmd().
9385 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9386
00905d52
AC
93872003-05-05 Andrew Cagney <cagney@redhat.com>
9388
9389 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9390 (fprint_dummy_frames): New function.
9391 (maintenance_print_dummy_frames): New function.
9392 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9393 * frame.c (fprint_frame_id): Make global.
9394 * frame.h (fprint_frame_id): Declare.
9395 * Makefile.in (dummy-frame.o): Update dependencies.
9396
b1e29e33
AC
93972003-05-05 Andrew Cagney <cagney@redhat.com>
9398
9399 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9400 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9401 SIZEOF_CALL_DUMMY_WORDS.
9402 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9403 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9404 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9405 CALL_DUMMY_BREAKPOINT_OFFSET.
9406 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9407 CALL_DUMMY_START_OFFSET.
9408 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9409 * gdbarch.h, gdbarch.c: Re-generate.
9410 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9411 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9412 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9413 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9414 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9415 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9416 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9417 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9418 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9419 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9420 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9421 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9422 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9423 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9424 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9425
94262003-05-05 Kris Warkentin <kewarken@qnx.com>
9427
9428 * configure.tgt: Add i[3456]86-*-nto*.
9429 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9430 * nto-tdep.c: New file. Neutrino target support routines.
9431 * nto-tdep.h: New file. Neutrino target header.
9432 * config/tm-qnxnto.h: New file.
9433 * config/i386/i386nto.mt: New file.
9434 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9435
0ce3d317
AC
94362003-05-04 Andrew Cagney <cagney@redhat.com>
9437
9438 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9439 (load_infrun_state): Ditto.
9440 (struct thread_info): Drop "prev_func_name" field.
9441 * thread.c (load_infrun_state): Update.
9442 (save_infrun_state): Update.
9443 * infrun.c (prev_func_name): Delete variable.
9444 (init_wait_for_inferior): Do not clear prev_func_name.
9445 (stop_stepping, keep_going, context_switch): Do not swap
9446 prev_func_name.
9447 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9448 instead of PC_IN_SIGTRAMP.
9449
46654a5b
AC
94502003-05-04 Andrew Cagney <cagney@redhat.com>
9451
9452 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9453 REGISTER_BYTE with register_offset_hack.
9454 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9455 that REGISTER_BYTE is consistent with the regcache.
9456 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9457 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9458
14b08c1b
MK
94592003-05-04 Mark Kettenis <kettenis@gnu.org>
9460
04c8243f
MK
9461 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9462 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9463
14b08c1b
MK
9464 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9465
c7a11e01
JB
94662003-05-03 J. Brobecker <brobecker@gnat.com>
9467
9468 From Thierry Schneider <tpschneider1@yahoo.com>
9469 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9470 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9471 (mi-cmd-symbol.o): Add rule.
9472
7043d8dc
AC
94732003-05-03 Andrew Cagney <cagney@redhat.com>
9474
9475 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9476 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9477 * gdbarch.h, gdbarch.c: Re-generate.
9478 * d10v-tdep.c (d10v_push_dummy_code): New function.
9479 (d10v_gdbarch_init): Set push_dummy_code.
9480 * infcall.c (legacy_push_dummy_code): New function.
9481 (generic_push_dummy_code): New function.
9482 (push_dummy_code): New function.
9483 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9484 instead of dummy_addr, to push_dummy_call. Move call to
9485 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9486 switch.
9487 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9488
92bf2b80
AC
94892003-05-03 Andrew Cagney <cagney@redhat.com>
9490
9491 * disasm.h (print_insn): Declare.
9492 * disasm.c (init_gdb_disassemble_info): New function.
9493 (gdb_disassembly): Call init_gdb_disassemble_info.
9494 (gdb_print_insn): New function.
9495 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9496 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9497 * mcore-tdep.c: Include "disasm.h"
9498 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9499 * d10v-tdep.c: Include "disasm.h".
9500 (display_trace): Call gdb_print_insn, instead of print_insn.
9501 (print_insn): Delete function.
9502 * printcmd.c: Include "disasm.h".
9503 (print_insn): Delete function.
9504 (print_formatted): Call gdb_print_insn, instead of print_insn.
9505 * Makefile.in (printcmd.o): Update dependencies.
9506 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9507
27d94c49
AC
95082003-05-02 Andrew Cagney <cagney@redhat.com>
9509
82de1e5b
AC
9510 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9511 PC_REGNUM, re-indent.
9512 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9513 PC_REGNUM isn't set.
9514
27d94c49
AC
9515 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9516 * gdbarch.h, gdbarch.c: Re-generate.
9517 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9518 register_virtual_size, pc_regnum, or register_bytes.
9519 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9520 (d10v_register_type): Use D10V_PC_REGNUM.
9521 (d10v_print_registers_info, d10v_read_pc): Ditto.
9522 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9523 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9524
a9c0dc7f
DC
95252003-05-02 David Carlton <carlton@bactrian.org>
9526
9527 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9528 the name with mstrsave.
9529
e33d66ec
EZ
95302003-05-02 Elena Zannoni <ezannoni@redhat.com>
9531
9532 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9533 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9534 (host_charset_name, target_charset_name): New vars for use by
9535 set/show commands.
9536 (host_charset_enum, target_charset_enum): New enums for set/show
9537 commands.
9538 (set_charset_sfunc, set_host_charset_sfunc,
9539 set_target_charset_sfunc): New functions.
9540 (set_host_charset, set_target_charset): Make static.
9541 (list_charsets, set_host_charset_command,
9542 set_target_charset_command): Delete functions.
9543 (show_charset_command): Rewrite as....
9544 (show_charset): Hook this up with the set/show command mechanism.
9545 (_initialize_charset): Change names of charsets to match the
9546 set/show enums. Use host_charset_name and target_charset_name.
9547 Use set/show mechanism for charset, host-charset, target-charset
9548 commands. Do not make 'show host-charset' and 'show
9549 target-charset' be aliases of 'show charset'.
9550
9551 * charset.h (set_host_charset, set_target_charset): Don't export,
9552 they are not used outside the file.
9553
2b6fd0d8
AC
95542003-05-01 Andrew Cagney <cagney@redhat.com>
9555
9556 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9557 (gdb_disassembly): Make "di" non static, always initialize and
9558 cleanup. Always use dis_asm_read_memory.
9559 (gdb_dis_asm_read_memory): Delete function.
9560
6ae2f580
AC
95612003-05-01 Andrew Cagney <cagney@redhat.com>
9562
9563 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9564 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9565
810ecf9f
AC
95662003-04-30 Andrew Cagney <cagney@redhat.com>
9567
9568 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9569 "tm_print_insn_info".
9570 (TARGET_PRINT_INSN_INFO): Delete macro.
9571 (dis_asm_read_memory): Delete function declaration.
9572 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9573 (tm_print_insn_info): Delete variable definition.
9574 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9575 * gdbarch.h, gdbarch.c: Re-generate.
9576 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9577 "deprecated_tm_print_insn_info".
9578 * mcore-tdep.c (mcore_dump_insn): Ditto.
9579 * mips-tdep.c (mips_gdbarch_init): Ditto.
9580 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9581 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9582 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9583 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9584 instead of TARGET_PRINT_INSN_INFO, add comment.
9585 * s390-tdep.c (s390_get_frame_info): Instead of
9586 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9587 (s390_check_function_end, s390_is_sigreturn): Ditto.
9588 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9589 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9590 * disasm.c: Include "gdbcore.h".
9591 (_initialize_disasm): New function, initialize
9592 "deprecated_tm_print_insn_info".
9593 (deprecated_tm_print_insn_info): New variable.
9594 (dis_asm_read_memory): Moved from "corefile.c", made static.
9595 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9596 * Makefile.in (disasm.o): Update dependencies.
9597
07020390
AC
95982003-04-30 Andrew Cagney <cagney@redhat.com>
9599
9600 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9601
a9fa03de
AF
96022003-04-29 Adam Fedor <fedor@gnu.org>
9603
9604 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9605 * infcall.c (find_function_addr): Make non-static.
9606 * infcall.h (find_function_addr): Declare.
9607 * Makefile.in (eval.o): Update dependencies.
9608
1bae87b9
AF
96092003-04-28 Adam Fedor <fedor@gnu.org>
9610
9611 * symtab.c (symbol_find_demangled_name): Check for and demangle
9612 ObjC symbols.
9613 (symbol_init_demangled_name): Init for language_objc as well.
9614
0ba6dca9
AC
96152003-04-28 Andrew Cagney <cagney@redhat.com>
9616
9617 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9618 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9619 * gdbarch.h, gdbarch.c: Re-generate.
9620 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9621 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9622 * inferior.h (deprecated_read_fp): Rename read_fp.
9623 (generic_target_read_fp): Delete declaration.
9624 * regcache.c (generic_target_read_fp): Delete function.
9625 (deprecated_read_fp): Replace read_fp, use
9626 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9627 * d10v-tdep.c (d10v_read_fp): Delete function.
9628 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9629
9630 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9631 deprecated_target_read_fp to generic_target_read_fp.
9632 * sh-tdep.c (sh_gdbarch_init): Ditto.
9633 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9635 * frv-tdep.c (frv_gdbarch_init): Ditto.
9636
9637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9638 deprecated_fp_regnum.
9639 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9640 * vax-tdep.c (vax_gdbarch_init): Ditto.
9641 * v850-tdep.c (v850_gdbarch_init): Ditto.
9642 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9643 * sh-tdep.c (sh_gdbarch_init): Ditto.
9644 * s390-tdep.c (s390_gdbarch_init): Ditto.
9645 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9646 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9647 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9648 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9650 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9651 * i386-tdep.c (i386_gdbarch_init): Ditto.
9652 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9653 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9654 * frv-tdep.c (frv_gdbarch_init): Ditto.
9655 * cris-tdep.c (cris_gdbarch_init): Ditto.
9656 * avr-tdep.c (avr_gdbarch_init): Ditto.
9657 * arm-tdep.c (arm_gdbarch_init): Ditto.
9658 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9659
9660 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9661 * v850-tdep.c (v850_gdbarch_init): Ditto.
9662 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9663 * sh-tdep.c (sh_gdbarch_init): Ditto.
9664 * s390-tdep.c (s390_gdbarch_init): Ditto.
9665 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9667 * mips-tdep.c (mips_gdbarch_init): Ditto.
9668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9669 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9670 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9671 * frv-tdep.c (frv_gdbarch_init): Ditto.
9672 * avr-tdep.c (avr_gdbarch_init): Ditto.
9673 * arm-tdep.c (arm_gdbarch_init): Ditto.
9674
9675 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9676 DEPRECATED_FP_REGNUM.
9677 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9678 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9679 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9680 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9681 (sparc32_register_virtual_type): Ditto.
9682 * sh-tdep.c (sh64_frame_chain): Ditto.
9683 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9684 (sh_nofp_frame_init_saved_regs): Ditto.
9685 (sh64_nofp_frame_init_saved_regs): Ditto.
9686 (sh_fp_frame_init_saved_regs): Ditto.
9687 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9688 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9689 * procfs.c (procfs_fetch_registers): Ditto.
9690 (procfs_store_registers): Ditto.
9691 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9692 (store_inferior_registers, fetch_core_registers): Ditto.
9693 (fetch_kcore_registers, clear_regs): Ditto.
9694 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9695 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9696 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9697 * nlm/i386.c (do_status): Ditto.
9698 * mipsv4-nat.c (supply_gregset): Ditto.
9699 * mips-tdep.c: Ditto for comments.
9700 * mips-nat.c (fetch_inferior_registers): Ditto.
9701 (store_inferior_registers, fetch_core_registers): Ditto.
9702 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9703 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9704 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9705 (i386_do_pop_frame, i386_register_type): Ditto.
9706 * hppa-tdep.c (hppa_frame_chain): Ditto.
9707 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9708 (hppa_pop_frame, hppa_read_fp): Ditto.
9709 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9710 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9711 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9712 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9713 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9714 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9715 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9716 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9717 * blockframe.c: Ditto for comments.
9718 * arch-utils.h: Ditto for comments.
9719 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9720 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9721 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9722 * alpha-tdep.h: Ditto for comments.
9723 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9724 (alpha_cannot_store_register): Ditto.
9725 (alpha_push_dummy_frame): Ditto.
9726 * alpha-nat.c (supply_gregset): Ditto.
9727
9728 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9729 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9730 * config/sparc/tm-sparc.h: Update comment.
9731
9732 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9733 deprecated_read_fp instead of TARGET_READ_FP.
9734 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9735 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9736 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9737 deprecated_read_fp instead of read_fp.
9738 * s390-tdep.c (s390_push_arguments): Ditto.
9739 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9740 * frame.h: Ditto in comments.
9741 * frame.c (legacy_get_prev_frame): Ditto.
9742 * dummy-frame.c (dummy_frame_this_id): Ditto.
9743 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9744
d7a27068
AC
97452003-04-28 Andrew Cagney <cagney@redhat.com>
9746
9747 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9748 * gdbarch.h, gdbarch.c: Re-generate.
9749 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9750 * vax-tdep.c (_initialize_vax_tdep): Update.
9751 * v850-tdep.c (_initialize_v850_tdep): Update.
9752 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9753 * s390-tdep.c (_initialize_s390_tdep): Update.
9754 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9755 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9756 * mips-tdep.c (_initialize_mips_tdep): Update.
9757 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9758 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9759 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9760 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9761 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9762 * frv-tdep.c (_initialize_frv_tdep): Update.
9763 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9764 (_initialize_cris_tdep): Update.
9765 * arch-utils.c (legacy_print_insn): Update.
9766 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9767
d2630e69
AF
97682003-04-26 Adam Fedor <fedor@gnu.org>
9769
9770 * linespec.c (decode_objc): New function to decode ObjC calls
9771 (decode_line_1): Check for ObjC calls (using decode_objc)
9772 * Makefile (linespec.o): Update dependencies.
9773
3086aeae
DJ
97742003-04-26 Daniel Jacobowitz <drow@mvista.com>
9775
9776 * breakpoint.h (struct breakpoint_ops): New.
9777 (struct breakpoint): Add ops member.
9778
9779 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9780 (mention): Use new breakpoint ops member.
9781 (set_raw_breakpoint): Initialize ops field to NULL.
9782 (print_exception_catchpoint, print_one_exception_catchpoint)
9783 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9784 (gnu_v3_exception_catchpoint_ops): New.
9785 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9786
1fbec6c3
AF
97872003-04-25 Adam Fedor <fedor@gnu.org>
9788
9789 * Makefile.in (COMMON_OBS): Add objc-lang.o
9790
0ef21242
AC
97912003-04-25 Andrew Cagney <cagney@redhat.com>
9792
9793 * d10v-tdep.c (print_insn): Delete function.
9794 (display_trace): Use TARGET_PRINT_INSN.
9795 (_initialize_d10v_tdep): Do not set tm_print_insn.
9796 (d10v_gdbarch_init): Set print_insn.
9797
f75493ed
AC
97982003-04-25 Andrew Cagney <cagney@redhat.com>
9799
9800 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9801 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9802 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9803 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9804 (nr_dmap_regs, a0_regnum): ... new functions.
9805 (d10v_print_registers_info): Use a0_regnum, use register_size.
9806 (d10v_register_byte): Delete function.
9807 (d10v_register_raw_size): Delete function.
9808 (d10v_register_type): Use a0_regnum.
9809 (d10v_print_registers_info): Use a0_regnum.
9810 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9811 (d10v_gdbarch_init): Do not set register_byte or
9812 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9813 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9814 extract_address.
9815 (trace_command): Use XCALLOC.
9816 (print_insn): Delete reference to tm_print_insn.
9817 (saved_regs_unwinder): Use store_unsigned_integer instead of
9818 store_address.
9819 * frame.h (FRAME_OBSTACK_CALLOC): Define
9820
2202b100
DC
98212003-04-25 David Carlton <carlton@bactrian.org>
9822
9823 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9824
4e45ca2e
AF
98252003-04-24 Adam Fedor <fedor@gnu.org>
9826
9827 * objc-lang.c: Include "valprint.h"
9828 * Makefile.in (objc-lang.o): Update dependencies.
9829
93de3e7f
AF
98302003-04-24 Adam Fedor <fedor@gnu.org>
9831
8ffd9b1b 9832 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9833 architecture dependant compilation and mark as unimplemented
9834 (until they get put in the gdbarch vector).
9835
0f20eeea
DC
98362003-04-23 David Carlton <carlton@bactrian.org>
9837
9838 * cp-support.c (cp_find_first_component): Accept 'operator' in
9839 more locations.
9840
74cfe982
AC
98412003-04-23 Andrew Cagney <cagney@redhat.com>
9842
9843 * infcall.c (call_function_by_hand): Eliminate redundant
9844 indentation. Move "saved_async" and "old_cleanups" to where they
9845 are needed.
8ffd9b1b 9846
52557533
AC
98472003-04-23 Andrew Cagney <cagney@redhat.com>
9848
9849 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9850 and "buffer". Move the "name" code to where it is needed.
9851
158775de
AC
98522003-04-23 Andrew Cagney <cagney@redhat.com>
9853
9854 * infcall.c (call_function_by_hand): Move variables "start_sp",
9855 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9856 code to ON_STACK switch branch.
8ffd9b1b 9857
ebc7896c
AC
98582003-04-23 Andrew Cagney <cagney@redhat.com>
9859
9860 * infcall.c (call_function_by_hand): Make declaration of "i",
9861 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9862 lint.
9863
d727590f
AC
98642003-04-23 Andrew Cagney <cagney@redhat.com>
9865
9866 * infcall.c (call_function_by_hand): Delete variable
9867 "n_method_args". Localize "param_type"'s declaration to the loop
9868 that it is used. Reinstate code assigning to said variable -
9869 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9870 Rationalize code using "param_type".
9871
d585e13a
AC
98722003-04-22 Andrew Cagney <cagney@redhat.com>
9873
9874 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9875 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9876 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9877 to DEPRECATED_PUSH_RETURN_ADDRESS.
9878
051caad9
KB
98792003-04-22 Kevin Buettner <kevinb@redhat.com>
9880
9881 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9882 on the DWARF2 register number prior to fetching a register.
9883
77296879
JB
98842003-04-22 J. Brobecker <brobecker@gnat.com>
9885
9886 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9887 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9888 this macro was always set to 0.
77296879
JB
9889 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9890 considering the fact that this macro was always set to 0.
9891 * hppa-tdep.h (hppa_store_return_value): Likewise.
9892 (hppa_extract_return_value): Likewise.
9893
4252f1df
JB
98942003-04-22 J. Brobecker <brobecker@gnat.com>
9895
9896 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9897 the hppa-pro target only.
9898
14604c6b
JB
98992003-04-21 J. Brobecker <brobecker@gnat.com>
9900
9901 Ongoing multi-arch conversion effort for HP/UX:
9902 * config/pa/tm-hppa.h: Move all macro that are no longer
9903 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9904 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9905
77eb01d1
JB
99062003-04-21 J. Brobecker <brobecker@gnat.com>
9907
9908 * config/pa/tm-hppa.h: Obsolete a section that was only used
9909 for hppa-pro.
9910
61995b3b
JB
99112003-04-21 J. Brobecker <brobecker@gnat.com>
9912
9913 Ongoing multi-arch conversion for HP/UX.
9914 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9915 if already defined (allows hppa64 to stay non-multiarched for now).
9916 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9917
4aa79dcc
AC
99182003-04-21 Andrew Cagney <cagney@redhat.com>
9919
9920 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9921
0f751ff2
AC
99222003-04-21 Andrew Cagney <cagney@redhat.com>
9923
9924 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9925 "i386_num_mmx_regs".
9926
04714b91
AC
99272003-04-21 Andrew Cagney <cagney@redhat.com>
9928
9929 * infcall.c: New file.
9930 * infcall.h: New file.
9931 * valarith.c: Include "infcall.h".
9932 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9933 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9934 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9935 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9936 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9937 (SFILES): Add "infcall.c"
9938 (COMMON_OBS): Add "infcall.o".
9939 (infcall.o): Specify dependencies.
9940 * value.h (call_function_by_hand): Delete declaration.
9941 * inferior.h (run_stack_dummy): Delete declaration.
9942 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9943 (run_stack_dummy): Move to "infcall.c", merged into
9944 call_function_by_hand.
9945 * valops.c (call_function_by_hand): Moved to "infcall.c".
9946 (find_function_addr, value_arg_coerce): Ditto.
9947 (unwindonsignal_p, coerce_float_to_double): Ditto.
9948 (_initialize_valops): Move "set/show coerce-float-to-double", and
9949 "set/show unwindonsignal" commands to "infcall.c".
9950 * v850-tdep.c, target.h: Update comments.
9951 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9952 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9953 (sh64_init_extra_frame_info): Update comments.
9954 * mn10300-tdep.c: Update comments.
9955 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9956 * config/sparc/tm-sparc.h: Update comments.
9957 * breakpoint.h: Update comments.
9958 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9959 * arm-tdep.c: Update comment.
9960
f9d3c2a8
MK
99612003-04-19 Mark Kettenis <kettenis@gnu.org>
9962
c40e1eab
MK
9963 * i386-tdep.c (i386_num_register_names): New variable.
9964 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9965 (MM0_REGNUM): Remove redundant parentheses in define.
9966 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9967 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9968 i386_mxcsr_regnum_p): Remove redundant parentheses.
9969 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9970
94ea66b3
MK
9971 * i386-tdep.c (i386_extract_return_value,
9972 i386_store_return_value): Correct check for availability of
9973 floating-point registers.
9974
54299a1d
MK
9975 * i386-tdep.c (i386_frame_num_args): Remove function.
9976 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9977
c86c27af
MK
9978 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9979 mmx_regnum_to_fp_regnum. Adjust all callers.
9980
f9d3c2a8
MK
9981 * i386-tdep.c (i386_get_longjmp_target): Use
9982 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9983 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9984 extract_address.
9985
94ba74a9
MK
99862003-04-19 Mark Kettenis <kettenis@gnu.org>
9987
9988 * core-regset.c: Update comments to reflect reality. Re-order
9989 includes.
9990 (fetch_core_registers): Use switch instead of if. Remove
9991 redundant prototype.
9992
4074e13c
JB
99932003-04-18 Jim Blandy <jimb@redhat.com>
9994
9995 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9996 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9997
e3ab4aba
RH
99982003-04-17 Richard Henderson <rth@redhat.com>
9999
10000 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10001
627bf7c1
EZ
100022003-04-17 Michael Snyder <msnyder@redhat.com>
10003 Karen Bennet <bennet@redhat.com>
10004
10005 Committed by Elena Zannoni <ezannoni@redhat.com>
10006 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10007
514621a9
EZ
100082003-04-17 Elena Zannoni <ezannoni@redhat.com>
10009
10010 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10011 value if the return type is void.
514621a9 10012
b4acd559
JJ
100132003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10014
10015 * thread-db.c: Reindented.
8ffd9b1b 10016
530b167e 100172003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10018
10019 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10020 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10021 as types.
10022
0a48e7e8
MS
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
8ffd9b1b 10046
ab9fe00e
KB
100472003-04-16 Kevin Buettner <kevinb@redhat.com>
10048
610a3745 10049 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10050 the size of ``long double'' to 16, instead of 8.
10051
e64a344c
MK
100522003-04-16 Mark Kettenis <kettenis@gnu.org>
10053
10054 * i386-linux-nat.c: Add some whitespace to make things more
10055 readable.
10056 (fetch_register, store_register, fetch_inferior_registers,
10057 store_inferior_registers): Get rid of assignment in if-statement.
10058 (store_register): Fix typo in error message.
10059
25d41031
AC
100602003-04-16 Andrew Cagney <cagney@redhat.com>
10061
10062 * utils.c (xmmalloc): Always allocate something, matches
10063 libiberty/xmalloc's semantics.
10064 (xmrealloc, xmcalloc): Ditto.
10065
c50901fd
AC
100662003-04-16 Andrew Cagney <cagney@redhat.com>
10067
10068 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10069 update comments.
10070 (get_frame_type): Initialize unwind and type when needed.
10071 (get_frame_id, frame_register_unwind): Ditto.
10072
f81824a9
AC
100732003-04-16 Andrew Cagney <cagney@redhat.com>
10074
10075 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10076 obsolete.
10077 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10078 * sparcl-stub.c: Obsolete file.
10079 * config/sparc/tm-sparclet.h: Obsolete file.
10080 * sparclet-stub.c: Obsolete file.
10081 * sparclet-rom.c: Obsolete file.
10082 * sparcl-tdep.c: Obsolete file.
10083 * config/sparc/tm-sparclite.h: Obsolete file.
10084 * config/sparc/sparclite.mt: Obsolete file.
10085 * config/sparc/sparclet.mt: Obsolete file.
10086 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10087 sparc86x-*-* obsolete.
10088
9219021c
DC
100892003-04-15 David Carlton <carlton@math.stanford.edu>
10090
10091 * Makefile.in (SFILES): Add cp-namespace.c.
10092 (COMMON_OBS): Add cp-namespace.o.
10093 (block.o): Depend on gdb_obstack_h and cp_support_h.
10094 (buildsym.o): Depend on cp_support_h.
10095 (cp-namespace.o): New.
10096 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10097 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10098 (dwarf2read.o): Depend on cp_support_h.
10099 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10100 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10101 processing_current_namespace.
10102 (read_namespace): Update processing_current_namespace; check for
10103 anonymous namespaces.
10104 (dwarf2_name): New function.
10105 (dwarf2_extension): Ditto.
10106 * cp-support.h: Update copyright, contributors.
10107 Add inclusion guards.
10108 Add opaque declaration for structs obstack, block, symbol.
10109 (struct using_direct): New struct.
10110 Add declarations for cp_find_first_component,
10111 cp_entire_prefix_len, processing_has_namespace_info,
10112 processing_current_namespace, cp_is_anonymous,
10113 cp_add_using_directive, cp_initialize_namespace,
10114 cp_finalize_namespace, cp_set_block_scope,
10115 cp_scan_for_anonymous_namespaces.
10116 * cp-namespace.c: New file.
10117 * cp-support.c: Update copyright.
10118 Include ctype.h, gdb_assert.h, gdbcmd.h.
10119 New variable maint_cplus_cmd_list.
10120 (cp_find_first_component): New function.
10121 (cp_entire_prefix_len, maint_cplus_command)
10122 (first_component_command, _initialize_cp_support): Ditto.
10123 * buildsym.c: Include cp-support.h.
10124 New variable using_list.
10125 (add_symbol_to_list): Check for anonymous namespaces.
10126 (finish_block): Set block's scope.
10127 (start_symtab): Initialize C++ namespace support.
10128 (end_symtab): Finalize C++ namespace support.
10129 * block.h: Add opaque declarations for structs
10130 block_namespace_info, using_direct, and obstack.
10131 Add declarations for block_set_scope and block_set_using.
10132 (struct block): Add 'language_specific' member.
10133 (BLOCK_NAMESPACE): New macro.
10134 * block.c: Include gdb_obstack.h and cp-support.h.
10135 (struct block_namespace_info): New struct.
10136 (block_set_scope): New function.
10137 (block_set_using, block_initialize_namespace): Ditto.
10138
d5a921c9
KB
101392003-04-14 Kevin Buettner <kevinb@redhat.com>
10140
10141 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10142 (locate_base): Return early if there aren't any link map offsets.
10143 (svr4_solib_create_inferior_hook): Warn if shared library support
10144 is unavailable.
10145
d2a52b27
DC
101462003-04-14 David Carlton <carlton@math.stanford.edu>
10147
10148 * symtab.c (symbol_set_names): Add prefix when storing Java names
10149 in hash table. Fix for PR java/1039.
10150
980cae7a
DC
101512003-04-14 David Carlton <carlton@math.stanford.edu>
10152
10153 * symtab.c (symbol_set_names): Rename 'name' arg to
10154 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10155 * symtab.h: Change 'name' argument in declaration of
10156 symbol_set_names to 'linkage_name'.
10157 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10158
e227b13c
AC
101592003-04-14 Andrew Cagney <cagney@redhat.com>
10160
10161 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10162 return the fully sign-extended register value.
10163 (get_frame_pointer): Ditto.
10164 (mips_pop_frame): Initialize "proc_desc" after checking for a
10165 dummy frame.
10166
36712a20
AC
101672003-04-14 Andrew Cagney <cagney@redhat.com>
10168
10169 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10170 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10171 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10172 (mips_push_register): Delete function.
10173 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10174 PUSH_FP_REGNUM.
10175
44ea7b70
JB
101762003-04-14 Jim Blandy <jimb@redhat.com>
10177
10178 * symmisc.c: #include "gdb_regex.h".
10179 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10180 functions.
10181 * maint.c (maintenance_list_command): New function.
10182 (_initialize_maint_cmds): Register the above as commands.
10183 * symtab.h (maintenance_list_symtabs,
10184 maintenance_list_psymtabs): New declarations.
10185 * cli/cli-cmds.c (maintenancelistlist): New variable.
10186 (init_cmd_lists): Initialize it.
10187 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10188 * gdbcmd.h (maintenancelistlist): New declaration.
10189 * Makefile.in (symmisc.o): Update dependencies.
10190
2d0c7962
EZ
101912003-04-14 Elena Zannoni <ezannoni@redhat.com>
10192
10193 * s390-nat.c: Include asm/types.h for addr_t.
10194
1947a811
CV
101952003-04-14 Corinna Vinschen <vinschen@redhat.com>
10196
10197 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10198 actually incoming type.
10199
adb616d7
AC
102002003-04-13 Andrew Cagney <cagney@redhat.com>
10201
10202 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10203 get_next_frame and get_frame_saved_regs.
10204
9b5e151c
AC
102052003-04-13 Andrew Cagney <cagney@redhat.com>
10206
10207 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10208 of gdbarch_num_regs.
10209
ef6e7e13
AC
102102003-04-13 Andrew Cagney <cagney@redhat.com>
10211
10212 * frame.h: Mention what replaced what in "struct frame_info".
10213 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10214 deprecated_update_frame_base_hack and
10215 deprecated_update_frame_pc_hack.
10216 * hppa-tdep.c: Ditto.
10217
61fbb938
DJ
102182003-04-13 Daniel Jacobowitz <drow@mvista.com>
10219
10220 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10221 to read_reg and update its comment. Remove regnum member.
10222 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10223 Don't call read_reg when setting in_reg. Call read_reg to get
10224 the frame base if it's in a register. Return the register number
10225 on the stack instead of in the context. Remove extra arguments
10226 to read_reg.
10227 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10228 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10229 the register number on the expression stack.
10230 (needs_frame_read_reg): Remove extra arguments.
10231
0d53c4c4
DJ
102322003-04-13 Daniel Jacobowitz <drow@mvista.com>
10233
10234 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10235 made non-static.
10236 (execute_stack_op): All callers updated.
10237 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10238 * dwarf2loc.c (find_location_expression): New function.
10239 (dwarf_expr_frame_base): Call it.
10240 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10241 (dwarf2_tracepoint_var_ref): New function, broken out from
10242 locexpr_tracepoint_var_ref.
10243 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10244 Make static.
10245 (loclist_read_variable, loclist_read_needs_frame): New functions.
10246 (loclist_describe_location, loclist_tracepoint_var_ref): New
10247 functions.
10248 (dwarf2_loclist_funcs): New struct location_funcs.
10249 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10250 (struct dwarf2_locexpr_baton): Add comments.
10251 (dwarf2_loclist_funcs): New extern.
10252 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10253 base_address and base_known.
10254 (dwarf_loc_buffer): New variable.
10255 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10256 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10257 (dwarf2_has_info): Initialize dwarf_loc_offset.
10258 (dwarf2_build_psymtabs): Read in .debug_loc.
10259 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10260 DWARF_LOC_SIZE.
10261 (psymtab_to_symtab_1): Likewise. Move base address calculation
10262 here, from...
10263 (dwarf2_get_pc_bounds): ... here. Use the base address from
10264 cu_header.
10265 (dwarf2_symbol_mark_computed): Handle location lists.
10266
6aca59a3
DJ
102672003-04-13 Daniel Jacobowitz <drow@mvista.com>
10268
10269 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10270 if the linkage name demangled successfully.
10271
aca1fcd0
MK
102722003-04-13 Mark Kettenis <kettenis@gnu.org>
10273
97095916
MK
10274 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10275 disassmbly_flavour): Removed.
10276
aca1fcd0
MK
10277 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10278
562a961f
MK
102792003-04-13 Mark Kettenis <kettenis@gnu.org>
10280
10281 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10282
bd013d54
AC
102832003-04-12 Andrew Cagney <cagney@redhat.com>
10284
10285 * frame.h (struct frame_info): Move definition from here ...
10286 * frame.c (struct frame_info): ... to here.
10287
167ef8b1
AC
102882003-04-12 Andrew Cagney <cagney@redhat.com>
10289
10290 * gdbthread.h (save_infrun_state): Delete parameter
10291 "prev_func_start".
10292 (struct thread_info): Delete field "prev_func_start".
10293 (load_infrun_state): Ditto.
10294 * thread.c (load_infrun_state, save_infrun_state): Update.
10295 * infrun.c (prev_func_start): Delete variable.
10296 (context_switch, init_wait_for_inferior): Update.
10297 (stop_stepping, keep_going): Update.
10298
da3331ec
AC
102992003-04-12 Andrew Cagney <cagney@redhat.com>
10300
10301 * gdbarch.sh: Add missing opaque declarations.
10302 * gdbarch.h: Regnerate.
10303 * symtab.h: Add missing opaque declarations.
10304 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10305 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10306 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10307 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10308 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10309 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10310 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10311 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10312 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10313 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10314 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10315 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10316 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10317
18adea3f
AC
103182003-04-11 Andrew Cagney <cagney@redhat.com>
10319
10320 * frame.c (get_frame_id): Return this frame's "id".
10321 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10322 function start.
10323 (legacy_saved_regs_this_id): Replace function body with
10324 internal-error.
10325 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10326 FRAME_OBSTACK_ZALLOC.
10327 (create_new_frame): Mark the frame ID as valid.
10328
2252e863
AO
103292003-04-11 Alexandre Oliva <aoliva@redhat.com>
10330
10331 * Makefile.in (libbfd_h): Added missing setting.
10332 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10333 according to the selected ABI.
10334
a8245ab8
JJ
103352003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10336
10337 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10338
6913c89a
AC
103392003-04-11 Andrew Cagney <cagney@redhat.com>
10340
10341 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10342 SAVED_PC_AFTER_CALL.
10343 * gdbarch.h, gdbarch.c: Regenerate.
10344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10345 * x86-64-tdep.c (x86_64_init_abi): Update.
10346 * vax-tdep.c (vax_gdbarch_init): Update.
10347 * v850-tdep.c (v850_gdbarch_init): Update.
10348 * sparc-tdep.c (sparc_gdbarch_init): Update.
10349 * sh-tdep.c (sh_gdbarch_init): Update.
10350 * s390-tdep.c (s390_gdbarch_init): Update.
10351 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10352 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10353 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10354 * mips-tdep.c (mips_gdbarch_init): Update.
10355 * mcore-tdep.c (mcore_gdbarch_init): Update.
10356 * m68k-tdep.c (m68k_gdbarch_init): Update.
10357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10358 * ia64-tdep.c (ia64_gdbarch_init): Update.
10359 (ia64_saved_pc_after_call): Update declaration.
10360 * i386ly-tdep.c (i386lynx_init_abi): Update.
10361 * i386-tdep.c (i386_gdbarch_init): Update.
10362 * hppa-tdep.c (hppa_gdbarch_init): Update.
10363 * h8300-tdep.c (h8300_gdbarch_init): Update.
10364 * frv-tdep.c (frv_gdbarch_init): Update.
10365 * cris-tdep.c (cris_gdbarch_init): Update.
10366 * avr-tdep.c (avr_gdbarch_init): Update.
10367 * arm-tdep.c (arm_gdbarch_init): Update.
10368 * alpha-tdep.c (alpha_gdbarch_init): Update.
10369 * ns32knbsd-nat.c (frame_num_args): Update.
10370 * ns32k-tdep.c (umax_frame_num_args): Update.
10371 * mips-tdep.c (mips_init_frame_pc_first): Update.
10372 * infrun.c (step_over_function): Update.
10373 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10374 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10375 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10376 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10377 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10378 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10379 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10380 * arch-utils.c (init_frame_pc_default): Update.
10381 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10382 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10383 declaration.
8ffd9b1b 10384
38edeab8
AC
103852003-04-11 Andrew Cagney <cagney@redhat.com>
10386
10387 * i387-tdep.c: Update copyright.
10388 (i387_to_double): Delete function.
10389 (double_to_i387): Delete function.
10390
81f8a206
AC
103912003-04-10 Andrew Cagney <cagney@redhat.com>
10392
10393 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10394 frame's function's address. Simplify.
10395 (d10v_frame_unwind_cache): Check that the frame's function is
10396 non-zero.
10397
6e691f7a
JB
103982003-04-10 Jim Blandy <jimb@redhat.com>
10399
10400 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10401 call to set_gdbarch_deprecated_push_arguments.
10402
7f78e237
AC
104032003-04-10 Andrew Cagney <cagney@redhat.com>
10404
10405 * frame.c (fprint_frame_id): New function.
10406 (fprint_frame_type, fprint_frame): New function.
10407 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10408 (create_sentinel_frame, get_frame_id): Ditto.
10409 (frame_id_p, frame_id_eq): Ditto.
10410 (frame_id_inner, create_new_frame): Ditto.
10411 (legacy_get_prev_frame, get_prev_frame): Ditto.
10412 (deprecated_update_frame_pc_hack): Ditto.
10413 (frame_register_unwind): Ditto.
10414 (deprecated_update_frame_base_hack): Ditto.
10415
f870b49b
CV
104162003-04-10 Corinna Vinschen <vinschen@redhat.com>
10417
10418 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10419 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10420 frame_chain function.
10421 * Makefile.in: Add dependencies due to above change.
10422
7c86889b
CV
104232003-04-10 Corinna Vinschen <vinschen@redhat.com>
10424
10425 * blockframe.c (legacy_frame_chain_valid): Move call to
10426 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10427 inside_entry_file.
10428
d0a55772
AC
104292003-04-09 Andrew Cagney <cagney@redhat.com>
10430
10431 * frame.h (struct frame_id): Replace "pc" and "base" with
10432 "stack_addr" and "code_addr". Update comments.
10433 (frame_id_build): Update parameter names and comment.
10434 (struct frame_info): Replace "id_p" and "id" with "this_id".
10435 * dummy-frame.c (dummy_frame_this_id): Update.
10436 * breakpoint.c (print_one_breakpoint): Update.
10437 * frame.c (get_frame_id): Update.
10438 (get_frame_base, frame_id_build): Update.
10439 (create_sentinel_frame, legacy_get_prev_frame): Update.
10440 (deprecated_update_frame_base_hack): Update.
10441 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10442 (frame_id_inner): Ditto.
10443
ac16bf07
AC
104442003-04-09 Andrew Cagney <cagney@redhat.com>
10445
10446 * defs.h (gdb_print_host_address): Make "addr" parameter a
10447 pointer constant.
10448 * utils.c (gdb_print_host_address): Update.
10449
366cfc9e
KB
104502003-04-09 Kevin Buettner <kevinb@redhat.com>
10451
10452 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10453 register number for R0 is 0.
10454
cd983b5c
JB
104552003-04-09 J. Brobecker <brobecker@gnat.com>
10456
10457 * frame.h (struct gdbarch): Add opaque structure definition
10458 to avoid a compilation warning on LynxOS 4.0.
10459
d1340264
AC
104602003-04-09 Andrew Cagney <cagney@redhat.com>
10461
10462 * frame.h (struct frame_info): Delete field "pc". Replace
10463 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10464 structure.
10465 * frame.c (frame_pc_unwind): Update.
10466 (create_sentinel_frame): Do not set "pc".
10467 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10468 (get_frame_pc): Call frame_pc_unwind.
10469 (deprecated_update_frame_pc_hack): Update.
10470 (create_new_frame): Use "pc" not "->pc".
10471
90a6fffb
AC
104722003-04-09 Andrew Cagney <cagney@redhat.com>
10473
10474 * frame.c (get_frame_id): Eliminate code updating "frame".
10475 (legacy_get_prev_frame): Ditto.
10476 (get_frame_base): Return id.base directly.
10477 (deprecated_update_frame_base_hack): Update "id.base".
10478 * frame.h (struct frame_info): Delete field "frame".
10479
2fbce691
AC
104802003-04-09 Andrew Cagney <cagney@redhat.com>
10481
10482 * NEWS: Mention that the "Sequent family" is obsolete.
10483 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10484 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10485 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10486 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10487 * config/i386/tm-ptx4.h: Obsolete file.
10488 * config/i386/tm-ptx.h: Obsolete file.
10489 * symm-tdep.c: Obsolete file.
10490 * config/i386/symmetry.mt: Obsolete file.
10491 * config/i386/tm-symmetry.h: Obsolete file.
10492 * symm-nat.c: Obsolete file.
10493 * config/i386/nm-symmetry.h: Obsolete file.
10494 * config/i386/xm-symmetry.h: Obsolete file.
10495 * config/i386/symmetry.mh: Obsolete file.
10496 * config/i386/nm-ptx4.h: Obsolete file.
10497 * config/i386/ptx4.mh: Obsolete file.
10498 * config/i386/ptx.mt: Obsolete file.
10499 * config/i386/ptx.mh: Obsolete file.
10500 * config/i386/xm-ptx4.h: Obsolete file.
10501 * config/i386/xm-ptx.h: Obsolete file.
10502
78c43945
AC
105032003-04-09 Andrew Cagney <cagney@redhat.com>
10504
10505 Obsolete mips*-*-mach3*.
10506 * NEWS: Mention that mips*-*-mach3* is obsolete.
10507 * m3-nat.c: Obsolete file.
10508 * config/nm-m3.h: Obsolete file.
10509 * config/mips/tm-mipsm3.h: Obsolete file.
10510 * config/mips/mipsm3.mt: Obsolete file.
10511 * config/mips/mipsm3.mh: Obsolete file.
10512 * config/mips/xm-mipsm3.h: Obsolete file.
10513 * mipsm3-nat.c: Obsolete file.
10514 * configure.host: Obsolete mips-dec-mach3*.
10515 * configure.tgt: Obsolete mips*-*-mach3*.
10516
f1908289
AC
105172003-04-09 Andrew Cagney <cagney@redhat.com>
10518
10519 * doublest.h: Update copyright.
10520 (deprecated_store_floating, deprecated_extract_floating): Rename
10521 store_floating and extract_floating. Update comments.
10522 * doublest.c: Update copyright.
10523 (extract_floating_by_length): Replace extract_floating.
10524 (store_floating_by_length): Replace store_floating.
10525 (deprecated_extract_floating): New function.
10526 (deprecated_store_floating): New function.
10527 (extract_typed_floating): Call extract_floating_by_length.
10528 (store_typed_floating): Call store_floating_by_length.
10529 * x86-64-tdep.c (x86_64_store_return_value): Update.
10530 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10531 (sh64_extract_return_value): Update.
10532 (sh_sh4_register_convert_to_virtual): Update.
10533 (sh_sh64_register_convert_to_virtual): Update.
10534 (sh_sh4_register_convert_to_raw): Update.
10535 (sh_sh64_register_convert_to_raw): Update.
10536 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10537 (rs6000_register_convert_to_raw): Update.
10538 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10539 (ia64_register_convert_to_raw): Update.
10540 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10541 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10542 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10543 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10544 (alpha_register_convert_to_raw): Update.
10545
4443bd83
AC
105462003-04-08 Andrew Cagney <cagney@redhat.com>
10547
10548 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10549 * gdbarch.h, gdbarch.c: Re-generate.
10550 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10551 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10552 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10553 conditionally, use frame_pc_unwind as an alternative. Add
10554 comments.
10555 * arch-utils.c (init_frame_pc_default): Only call
10556 SAVED_PC_AFTER_CALL when available.
10557
c0236d92
EZ
105582003-04-08 Elena Zannoni <ezannoni@redhat.com>
10559
fbe586ae 10560 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10561 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10562 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10563 (start_remote): Ditto.
10564 (handle_inferior_event): Ditto.
10565 (save_inferior_status): Ditto.
10566 (restore_inferior_status): Ditto.
10567 * infcmd.c (attach_command): Ditto.
10568 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10569 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10570 * alpha-tdep.c (heuristic_proc_start): Ditto.
10571 * mips-tdep.c (heuristic_proc_start): Ditto.
10572 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10573 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10574 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10575 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10576 * remote-vx.c (vx_create_inferior): Ditto.
10577
105782003-04-08 Elena Zannoni <ezannoni@redhat.com>
10579
10580 * infrun.c (stop_soon_quietly): Make it an enum, to better
10581 override the default behavior of handle_inferior_event.
10582 (clear_proceed_status): Update uses of stop_soon_quietly to
10583 reflect that it is now an enum.
10584 (start_remote): Ditto.
10585 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10586 is set to handle the new GNU/Linux kernel behavior for
10587 attach/sigstop. Update uses of stop_soon_quietly.
10588 * inferior.h (enum stop_kind): New enum.
10589 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10590 Reset normal handle_inferior_event behavior, afterwards.
10591 * fork-child.c (startup_inferior): Update.
10592 * alpha-tdep.c (heuristic_proc_start): Update.
10593 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10594 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10595 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10596 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10597 * remote-vx.c (vx_create_inferior): Update.
10598 * mips-tdep.c (heuristic_proc_start): Update.
10599
1211bce3
EZ
106002003-04-07 Elena Zannoni <ezannoni@redhat.com>
10601
10602 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10603 be freed more than once, causing wild memory corruptions.
1211bce3 10604 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10605 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10606 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10607 with the "core" target.
1211bce3 10608
f0ef6b29
KB
106092003-04-07 Kevin Buettner <kevinb@redhat.com>
10610
10611 * mips-tdep.c (mips_print_fp_register): New function, created from
10612 do_fp_register_row(). Registers are now (also) printed as hex.
10613 Only one register is printed per row.
10614 (mips_print_register, do_fp_register_row): Print floating point
10615 registers with mips_print_fp_register().
10616
8cf71652
AC
106172003-04-06 Andrew Cagney <cagney@redhat.com>
10618
5e488a7b
AC
10619 * valprint.h (inspect_it): Add extern declaration.
10620 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10621 (selectors_info, classes_info): Ditto.
10622 (find_objc_msgcall): Fix indentation.
10623 (objc_printstr): Delete extern declarations.
10624
8cf71652
AC
10625 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10626
e6ba3bc9
AC
106272003-04-06 Andrew Cagney <cagney@redhat.com>
10628
10629 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10630 Update comment.
10631 * frame.c (legacy_saved_regs_this_id): Update.
10632 (legacy_get_prev_frame): Update.
10633 * xstormy16-tdep.c: Update comment.
10634 * sparc-tdep.c (sparc_frame_chain): Update comment.
10635 * blockframe.c (legacy_frame_chain_valid): Update.
10636
55e1d7e7
AC
106372003-04-06 Andrew Cagney <cagney@redhat.com>
10638
996179ee
AC
10639 * valprint.c (val_print_type_code_int): Delete #ifdef
10640 PRINT_TYPELESS_INTEGER code.
10641
55e1d7e7
AC
10642 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10643 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10644 multi-arch definition.
10645 * gdbarch.h: Re-generate.
10646
43bd9a9e
AC
106472003-04-05 Andrew Cagney <cagney@redhat.com>
10648
10649 Eliminate FRAME_FIND_SAVED_REGS.
10650 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10651 Change FSR parameter to a pointer.
10652 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10653 Assume FSR parameter is a pointer.
10654 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10655 Make fsr a pointer.
10656 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10657 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10658 saved_regs a pointer.
10659 (hppa_frame_saved_pc): Ditto.
10660 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10661 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10662 pointer.
10663 (restore_pc_queue): Make fsr a pointer.
10664 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10665 (hppa_frame_chain): Make saved_regs a pointer, call
10666 hppa_frame_init_saved_regs.
10667 * sparc-tdep.c: Include "gdb_assert.h".
10668 (sparc_frame_find_saved_regs): Replace internal_error with
10669 gdb_assert.
10670 * remote-vxsparc.c (vx_read_register): Delete reference to
10671 FRAME_FIND_SAVED_REGS.
10672 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10673 * gdbarch.h: Regenerate.
10674 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10675 (deprecated_get_frame_saved_regs): Delete declaration.
10676 (struct frame_saved_regs): Delete definition.
10677 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10678 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10679 (hppa_frame_find_saved_regs): Delete declaration.
10680 (FRAME_FIND_SAVED_REGS): Delete macro.
10681 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10682 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10683 FRAME_FIND_SAVED_REGS in comment.
10684
be41e9f4
AC
106852003-04-05 Andrew Cagney <cagney@redhat.com>
10686
10687 * frame.c (frame_func_unwind, get_frame_func): New functions.
10688 * frame.h (get_frame_func, frame_func_unwind): Declare.
10689 (struct frame_info): Add field "prev_func" for caching the
10690 previous frame's function address.
10691 * arm-tdep.c (arm_frameless_function_invocation): Combine
10692 get_pc_function_start and get_frame_pc into get_frame_func.
10693 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10694 (sh64_nofp_frame_init_saved_regs): Ditto.
10695 * s390-tdep.c (s390_function_start): Ditto.
10696 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10697 (rs6000_frameless_function_invocation): Ditto.
10698 (rs6000_frame_saved_pc): Ditto.
10699 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10700 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10701 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10702 (i386_frame_init_saved_regs): Ditto.
10703 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10704 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10705 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10706 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10707 * blockframe.c (frameless_look_for_prologue): Ditto.
10708
a01dd7cc
AC
107092003-04-05 Andrew Cagney <cagney@redhat.com>
10710
10711 * frame.c (legacy_get_prev_frame): Link prev to next at the
10712 function start. Update comments.
10713
5e5592e6
AC
107142003-04-05 Andrew Cagney <cagney@redhat.com>
10715
10716 * frame.c (get_frame_id): Update comment.
10717 (legacy_get_prev_frame): Update comment.
10718 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10719 * gdbarch.h: Regenerate.
10720 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10721 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10722
6fba5002
AC
107232003-04-05 Andrew Cagney <cagney@redhat.com>
10724
10725 * stack.c (print_frame_info): Use get_frame_pc.
10726
7df05f2b
AC
107272003-04-04 Andrew Cagney <cagney@redhat.com>
10728
10729 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10730 the frame's type from the unwinder.
10731 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10732 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10733 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10734 (get_frame_base_address): Use get_frame_type.
10735 (get_frame_locals_address, get_frame_args_address): Ditto.
10736 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10737 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10738 (struct frame_info): Add comment explaining why the frame contains
10739 a "type" field.
10740 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10741 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10742 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10743 NORMAL_FRAME.
10744 * frame-unwind.h: Include "frame.h".
10745 (struct frame_unwind): Add "type" field.
10746 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10747
11889732
AC
107482003-04-04 Andrew Cagney <cagney@redhat.com>
10749
10750 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10751 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10752 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10753 get_frame_base.
10754 (d10v_unwind_dummy_id): Use frame_id_build.
10755 * frame.c (find_frame_sal): Use get_frame_pc.
10756 (create_new_frame): Use deprecated_update_frame_pc_hack and
10757 deprecated_update_frame_base_hack.
10758 (create_sentinel_frame): Add comment about ->pc going away.
10759 (get_prev_frame): Add comment about ->pc going away.
10760 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10761 frame_id_build, deprecated_update_frame_pc_hack and
10762 deprecated_update_frame_base_hack.
10763 (select_frame): Use get_frame_pc.
10764 (legacy_saved_regs_this_id): Use frame_id_build.
10765
50c46a0d
EZ
107662003-04-04 Elena Zannoni <ezannoni@redhat.com>
10767
fbe586ae
RH
10768 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10769 signed integer case.
10770 (classify_argument): Handle enumerations and references.
50c46a0d 10771
50bbdbd9
AC
107722003-04-04 Andrew Cagney <cagney@redhat.com>
10773
10774 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10775 ID to NULL.
10776
36018d2e
AF
107772003-04-01 Adam Fedor <fedor@gnu.org>
10778
10779 * gdb/objc-lang.c (selectors_info): Replace calls to
10780 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10781 SYMBOL_NATURAL_NAME.
10782 (classes_info, find_methods): Likewise.
10783
35cec841
KB
107842003-04-03 Kevin Buettner <kevinb@redhat.com>
10785
10786 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10787 ``mach'' to the value determined by bfd_default_set_arch_mach().
10788
43136899
BR
107892003-04-02 Bob Rossi <bob_rossi@cox.net>
10790
10791 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10792 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10793 (mi-cmd-file.o): Update dependencies.
10794
040b99fd
KB
107952003-04-01 Kevin Buettner <kevinb@redhat.com>
10796
10797 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10798 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10799
9a3d7dfd
AF
108002003-04-01 Adam Fedor <fedor@gnu.org>
10801
10802 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10803 * language.h (struct language_defn): Add la_demangle.
10804 (language_demangle): Declare.
10805 * language.c (language_demangle): New function.
10806 (unk_lang_demangle): Likewise.
10807 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10808 Add ukn_lang_demangle.
9a3d7dfd 10809 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10810 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10811 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10812 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10813 * jv-lang.c (java_demangle): New function
10814 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10815 * objc-lang.c (objc_demangle): Add options argument
10816 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10817 * maint.c (maintenance_demangle): Replace switch with
10818 call to language_demangle.
10819 * utils.c (fprintf_symbol_filtered): Likewise.
10820
5e074003
AC
108212003-04-01 Andrew Cagney <cagney@redhat.com>
10822
10823 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10824 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10825 PRINT_TYPELESS_INTEGER.
10826 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10827 PUSH_RETURN_ADDRESS.
10828
270cb5d6
AC
108292003-04-01 Andrew Cagney <cagney@redhat.com>
10830
10831 * Makefile.in (d10v-tdep.o): Update dependencies.
10832 * d10v-tdep.c: Include "frame-base.h".
10833 (d10v_frame_unwind): Make constant.
10834 (d10v_frame_base_address): New function.
10835 (d10v_frame_base): New variable.
10836 (d10v_gdbarch_init): Set frame_base default.
10837 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10838 comment for base.
10839 (d10v_frame_unwind_cache): Set and use "prev_sp".
10840 (d10v_frame_this_id): Use the previous frame's inner most stack
10841 address and this frame's func address for the frame ID. Use
10842 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10843
6bfb3e36
AC
108442003-04-01 Andrew Cagney <cagney@redhat.com>
10845
10846 * frame.h (get_frame_locals_address, get_frame_args_address):
10847 Refer to the base address, instead of the address of the first
10848 local or parameter.
8ffd9b1b 10849
da62e633
AC
108502003-04-01 Andrew Cagney <cagney@redhat.com>
10851
10852 Add frame debug info addresses:
10853 * frame-base.c: New file.
10854 * frame-base.h: New file.
10855 * frame.h (struct frame_base): Add opaque declaration.
10856 (get_frame_base): Update comment.
10857 (get_frame_base_address): Declare.
10858 (get_frame_locals_address): Declare.
10859 (get_frame_args_address): Declare.
10860 (struct frame_info): Add "base" and "base_cache". Update
10861 comments on the unwinder.
10862 * frame.c: Include "frame-base.h".
10863 (get_frame_locals_address): New function.
10864 (get_frame_base_address): New function.
10865 (get_frame_args_address): New function.
10866 * findvar.c (read_var_value): Use get_frame_locals_address and
10867 get_frame_args_address.
10868 * stack.c (frame_info): Use get_frame_locals_address and
10869 get_frame_args_address.
10870 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10871 moved to "frame-base.c".
10872 * printcmd.c (print_frame_nameless_args): Ditto.
10873 * symtab.h (address_class): Update comments.
10874 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10875 get_frame_base_address.
10876 * dwarf2expr.c (execute_stack_op): Ditto.
10877 * Makefile.in (frame_base_h): Define.
10878 (frame.o): Update dependencies.
10879 (frame-base.o): Add dependencies.
10880 (SFILES): Add frame-base.c.
10881 (COMMON_OBS): Add frame-base.o.
10882
3d30e9c2
AC
108832003-04-01 Andrew Cagney <cagney@redhat.com>
10884
10885 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10886 CALL_DUMMY_LENGTH): Ditto.
10887 * gdbarch.c: Re-generate.
10888 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10889 (CALL_DUMMY_LENGTH): Delete macro.
10890 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10891 * arm-tdep.c (arm_gdbarch_init): Ditto.
10892 * avr-tdep.c (avr_gdbarch_init): Ditto.
10893 * cris-tdep.c (cris_gdbarch_init): Ditto.
10894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10895 * frv-tdep.c (frv_gdbarch_init): Ditto.
10896 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10897 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10898 * i386-tdep.c (i386_gdbarch_init): Ditto.
10899 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10901 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10902 * mips-tdep.c (mips_gdbarch_init): Ditto.
10903 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10905 * s390-tdep.c (s390_gdbarch_init): Ditto.
10906 * sh-tdep.c (sh_gdbarch_init): Ditto.
10907 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10908 * v850-tdep.c (v850_gdbarch_init): Ditto.
10909 * vax-tdep.c (vax_gdbarch_init): Ditto.
10910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10911
ce0c7262
CV
109122003-04-01 Corinna Vinschen <vinschen@redhat.com>
10913
10914 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10915
73dd234f
AC
109162003-04-01 Andrew Cagney <cagney@redhat.com>
10917
10918 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10919 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10920 * gdbarch.h, gdbarch.c: Re-generate.
10921 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10922 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10923 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10924 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10925 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10926 * infcmd.c (run_stack_dummy): Simplify assuming
10927 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10928 * infrun.c (handle_inferior_event): Ditto.
10929 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10930 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10931 * arm-tdep.c (arm_gdbarch_init): Ditto.
10932 * avr-tdep.c (avr_gdbarch_init): Ditto.
10933 * cris-tdep.c (cris_gdbarch_init): Ditto.
10934 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10935 * frv-tdep.c (frv_gdbarch_init): Ditto.
10936 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10937 * i386-tdep.c (i386_gdbarch_init): Ditto.
10938 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10940 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10941 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10942 * mips-tdep.c (mips_gdbarch_init): Ditto.
10943 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10944 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10945 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10946 * s390-tdep.c (s390_gdbarch_init): Ditto.
10947 * sh-tdep.c (sh_gdbarch_init): Ditto.
10948 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10949 * v850-tdep.c (v850_gdbarch_init): Ditto.
10950 * vax-tdep.c (vax_gdbarch_init): Ditto.
10951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10952
97606a13
DJ
109532003-04-01 Daniel Jacobowitz <drow@mvista.com>
10954
10955 * symfile.c (symfile_relocate_debug_section): Update call to
10956 bfd_simple_get_relocated_section_contents.
10957
e8ab51f7
AC
109582003-03-31 Andrew Cagney <cagney@redhat.com>
10959
10960 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10961 * gdbarch.h, gdbarch.c: Regenerate.
10962 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10963 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10964 available.
10965 * frame.h (generic_fix_call_dummy): Delete declaration.
10966 * dummy-frame.h: Update comment.
10967 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10969 fix_call_dummy.
10970 * sh-tdep.c (sh_gdbarch_init): Ditto.
10971 * s390-tdep.c (s390_gdbarch_init): Ditto.
10972 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10973 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10975 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10976 * i386-tdep.c (i386_gdbarch_init): Ditto.
10977 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10978 * frv-tdep.c (frv_gdbarch_init): Ditto.
10979 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10980 * cris-tdep.c (cris_gdbarch_init): Ditto.
10981 * avr-tdep.c (avr_gdbarch_init): Ditto.
10982 * arm-tdep.c (arm_gdbarch_init): Ditto.
10983
018d1b48
JB
109842003-03-31 J. Brobecker <brobecker@gnat.com>
10985
10986 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10987 (INIT_FRAME_AP): Likewise.
10988 (EXTRA_FRAME_INFO): Likewise.
10989
e9a2674e
AC
109902003-03-31 Andrew Cagney <cagney@redhat.com>
10991
10992 * gdbarch.sh: Include "symfile.h".
10993 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10994 * gdbarch.h, gdbarch.c: Re-generate.
10995 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10997 call_dummy_address, the default is at entry_point_address.
10998 * v850-tdep.c (v850_gdbarch_init): Ditto.
10999 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11000 * sh-tdep.c (sh_gdbarch_init): Ditto.
11001 * s390-tdep.c (s390_gdbarch_init): Ditto.
11002 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11003 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11004 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11005 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11006 * i386-tdep.c (i386_gdbarch_init): Ditto.
11007 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11008 * frv-tdep.c (frv_gdbarch_init): Ditto.
11009 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11010 * cris-tdep.c (cris_gdbarch_init): Ditto.
11011 * arm-tdep.c (arm_gdbarch_init): Ditto.
11012
e8a8712a
AC
110132003-03-31 Andrew Cagney <cagney@redhat.com>
11014
11015 * gdbarch.sh (CALL_DUMMY_P): Delete.
11016 * gdbarch.h, gdbarch.c: Re-generate.
11017 * inferior.h (CALL_DUMMY_P): Delete macro.
11018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11019 * vax-tdep.c (vax_gdbarch_init): Update.
11020 * v850-tdep.c (v850_gdbarch_init): Update.
11021 * sparc-tdep.c (sparc_gdbarch_init): Update.
11022 * sh-tdep.c (sh_gdbarch_init): Update.
11023 * s390-tdep.c (s390_gdbarch_init): Update.
11024 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11025 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11026 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11027 * mips-tdep.c (mips_gdbarch_init): Update.
11028 * mcore-tdep.c (mcore_gdbarch_init): Update.
11029 * m68k-tdep.c (m68k_gdbarch_init): Update.
11030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11031 * ia64-tdep.c (ia64_gdbarch_init): Update.
11032 * i386-tdep.c (i386_gdbarch_init): Update.
11033 * h8300-tdep.c (h8300_gdbarch_init): Update.
11034 * frv-tdep.c (frv_gdbarch_init): Update.
11035 * d10v-tdep.c (d10v_gdbarch_init): Update.
11036 * cris-tdep.c (cris_gdbarch_init): Update.
11037 * breakpoint.c (deprecated_frame_in_dummy): Update.
11038 * avr-tdep.c (avr_gdbarch_init): Update.
11039 * alpha-tdep.c (alpha_gdbarch_init): Update.
11040 * arm-tdep.c (arm_gdbarch_init): Update.
11041 * dummy-frame.c (dummy_frame_this_id): Update comments.
11042 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11043 * frame.c (legacy_get_prev_frame): Ditto.
11044 * valops.c (call_function_by_hand): Delete function.
11045 (hand_function_call): Rename to call_function_by_hand
11046
ed234cf8
AC
110472003-03-30 Andrew Cagney <cagney@redhat.com>
11048
11049 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11050 * value.h (struct value): Update comment.
ed234cf8 11051
06c77151
AC
110522003-03-30 Andrew Cagney <cagney@redhat.com>
11053
6c2b5168
AC
11054 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11055 D10V_FP_REGNUM.
11056 (d10v_gdbarch_init): Do not set fp_regnum.
11057
06c77151
AC
11058 * frame.c (get_frame_base): Force ID initialization.
11059 (get_prev_frame): Move computation of the frame ID from here ...
11060 (get_frame_id): ... to here.
11061 (legacy_get_prev_frame): Mark the frame ID as valid.
11062 * frame.h (struct frame_info): Add field "id_p".
11063
97a1a11c
MK
110642003-03-30 Mark Kettenis <kettenis@gnu.org>
11065
11066 * i386-tdep.c (i386_store_struct_return): Removed.
11067 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11068
6c0e89ed
AC
110692003-03-30 Andrew Cagney <cagney@redhat.com>
11070
11071 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11072 * gdbarch.h, gdbarch.c: Regenerate.
11073 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11075 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11076 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11077 * i386-tdep.c (i386_gdbarch_init): Ditto.
11078 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11079 * cris-tdep.c (cris_gdbarch_init): Ditto.
11080 * vax-tdep.c (vax_gdbarch_init): Ditto.
11081 * s390-tdep.c (s390_gdbarch_init): Ditto.
11082 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11083 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11084 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11085 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11086 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11087 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11088 * sparc-tdep.c (sparc_gdbarch_init): Update.
11089 * sh-tdep.c (sh_gdbarch_init): Update.
11090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11091 * mips-tdep.c (mips_gdbarch_init): Update.
11092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11093 * ia64-tdep.c (ia64_gdbarch_init): Update.
11094 * frv-tdep.c (frv_gdbarch_init): Update.
11095 * avr-tdep.c (avr_gdbarch_init): Update.
11096 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11097 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11098 instead of when push_dummy_call is not available.
8ffd9b1b 11099
f7dd6af2
AC
111002003-03-30 Andrew Cagney <cagney@redhat.com>
11101
11102 * infttrace.c: Include "gdbthread.h".
11103 (parent_attach_all): Fix function signature.
11104 (call_ptrace): Update call.
11105 * Makefile.in (infttrace.o): Update dependencies.
11106
28f617b3
AC
111072003-03-30 Andrew Cagney <cagney@redhat.com>
11108
11109 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11110 PUSH_RETURN_ADDRESS.
11111 * gdbarch.h, gdbarch.c: Regenerate.
11112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11113 * x86-64-tdep.c (x86_64_init_abi): Update.
11114 * v850-tdep.c (v850_gdbarch_init): Update.
11115 * sparc-tdep.c (sparc_gdbarch_init): Update.
11116 * sh-tdep.c (sh_gdbarch_init): Update.
11117 * s390-tdep.c (s390_gdbarch_init): Update.
11118 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11119 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11120 * mips-tdep.c (mips_gdbarch_init): Update.
11121 * mcore-tdep.c (mcore_gdbarch_init): Update.
11122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11123 * ia64-tdep.c (ia64_gdbarch_init): Update.
11124 * i386-tdep.c (i386_gdbarch_init): Update.
11125 * h8300-tdep.c (h8300_gdbarch_init): Update.
11126 * frv-tdep.c (frv_gdbarch_init): Update.
11127 * cris-tdep.c (cris_gdbarch_init): Update.
11128 * avr-tdep.c (avr_gdbarch_init): Update.
11129 * arm-tdep.c (arm_gdbarch_init): Update.
11130 * valops.c (hand_function_call): Update.
11131
4d628cd7
AC
111322003-03-29 Andrew Cagney <cagney@redhat.com>
11133
11134 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11135 sizeof_call_dummy_words.
11136 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11137 define.
11138 * gdbarch.h: Regenerate.
8ffd9b1b 11139
65e82032
AC
111402003-03-29 Andrew Cagney <cagney@redhat.com>
11141
11142 * infttrace.h: New file.
11143 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11144 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11145 (hpread_read_doc_function_type): Detect an initialized type1.
11146 (hpread_quick_traverse): Initialize mod_name_string.
11147 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11148 (som_solib_get_solib_by_pc): Declare.
11149 (so_lib_thread_start_addr): Declare.
11150 (no_shared_libraries): Declare.
11151 * somread.c (init_import_symbols): Make static. Add forward
11152 declaration.
11153 * config/pa/nm-hppah.h: Include "infttrace.h" for
11154 parent_attach_all.
11155 (hppa_insert_hw_watchpoint): Declare.
11156 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11157 * hppah-nat.c: Include "gdb_string.h".
11158 (parent_attach_all): Delete extern declaration, moved to
11159 "infttrace.h".
11160 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11161 int.
11162 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11163 * Makefile.in (infttrace_h): Define.
11164 (hpread.o): Update dependencies.
11165 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11166 * hppa-hpux-tdep.c: Include "gdb_string.h".
11167 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11168 * infrun.c (handle_inferior_event): Always initialize
11169 stepped_after_stopped_by_watchpoint. Add default and remove
11170 fallthrough in switch statement.
11171 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11172 parameter to int.
11173 (hppa_remove_hw_watchpoint): Ditto.
11174
2c3bbe77
AC
111752003-03-29 Andrew Cagney <cagney@redhat.com>
11176
11177 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11178 offset.
11179
2dd604e7
RE
111802003-03-29 Richard Earnshaw <rearnsha@arm.com>
11181
11182 * arm-tdep.c (arm_push_arguments): Delete.
11183 (struct stack_item): New type.
11184 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11185 (arm_store_struct_return): Delte.
11186 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11187 arm_push_arguments or arm_store_struct_return.
11188
e8933a55
AC
111892003-03-28 Andrew Cagney <cagney@redhat.com>
11190
11191 * Makefile.in (d10v-tdep.o): Update dependencies.
11192 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11193 * d10v-tdep.c: Include "remote.h".
11194 (target_resume_hook): Delete extern declaration.
11195 (target_wait_loop_hook): Ditto.
11196 (tdisassemble_command): Eliminate assignment in "if" conditional.
11197 (d10v_ts2_register_sim_regno): Eliminate call to
11198 legacy_register_sim_regno.
11199 (d10v_ts3_register_sim_regno): Ditto.
11200
6949171e
JJ
112012003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11202
11203 * thread.c: Reindented.
11204 * lin-lwp.c: Ditto.
11205 * linux-proc.c: Ditto.
11206
98c7071f
BR
112072003-03-28 Bob Rossi <bob_rossi@cox.net>
11208
fbe586ae 11209 * MAINTAINERS (write after approval): Add myself.
98c7071f 11210
5edc9ca6
TR
112112003-03-27 Theodore A. Roth <troth@openavr.org>
11212
11213 * objc-exp.y: Add missing semi-colons.
11214
378bfd1b
AC
112152003-03-27 Andrew Cagney <cagney@redhat.com>
11216
11217 * regcache.c (write_sp): Delete function and references.
11218 * inferior.h (write_sp): Delete declaration.
11219 * valops.c (hand_function_call): Replace write_sp with
11220 TARGET_WRITE_SP.
11221 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11222 (sparc_pop_frame): Ditto.
8ffd9b1b 11223
56056df7
AC
112242003-03-27 Andrew Cagney <cagney@redhat.com>
11225
11226 * NEWS: Mention removal of support for hppa*-*-bsd* and
11227 hppa*-*-osf* natives, and hppa*-*-pro* target.
11228 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11229 * config/pa/xm-pa.h: Obsolete file.
11230 * config/pa/xm-hppab.h: Obsolete file.
11231 * config/pa/nm-hppab.h: Obsolete file.
11232 * config/pa/tm-hppab.h: Obsolete file.
11233 * config/pa/tm-hppao.h: Obsolete file.
11234 * config/pa/nm-hppao.h: Obsolete file.
11235 * config/pa/tm-pro.h: Obsolete file.
11236 * config/pa/hppaosf.mt: Obsolete file.
11237 * config/pa/hppaosf.mh: Obsolete file.
11238 * config/pa/hppapro.mt: Obsolete file.
11239 * config/pa/hppabsd.mt: Obsolete file.
11240 * config/pa/hppabsd.mh: Obsolete file.
11241 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11242 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11243 hppa*-*-osf*.
11244
5873a88d
AC
112452003-03-27 Andrew Cagney <cagney@redhat.com>
11246
11247 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11248 push_arguments. Don't set push_return_address or write_sp.
11249 (d10v_push_dummy_call): Replace d10v_push_arguments.
11250 (d10v_push_return_address, d10v_write_sp): Delete function,
11251 handled by push_dummy_call.
11252
b81774d8
AC
112532003-03-26 Andrew Cagney <cagney@redhat.com>
11254
11255 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11256 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11257 regcache and dummy_addr parameters.
11258 * gdbarch.h, gdbarch.c: Re-generate.
11259 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11260 available; assume it will handle stack alignment and return
11261 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11262 legacy_push_arguments.
11263 (legacy_push_arguments): Rename default_push_arguments.
11264 * value.h (legacy_push_arguments): Rename default_push_arguments.
11265 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11266 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11267 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11268 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11269 * config/i386/tm-symmetry.h: Update.
11270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11271 * x86-64-tdep.c (x86_64_init_abi): Update.
11272 * v850-tdep.c (v850_gdbarch_init): Update.
11273 * sparc-tdep.c (sparc_gdbarch_init): Update.
11274 * sh-tdep.c (sh_gdbarch_init): Update.
11275 * s390-tdep.c (s390_gdbarch_init): Update.
11276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11277 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11278 * mips-tdep.c (mips_gdbarch_init): Update.
11279 * mcore-tdep.c (mcore_gdbarch_init): Update.
11280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11281 * ia64-tdep.c (ia64_gdbarch_init): Update.
11282 * i386-tdep.c (i386_gdbarch_init): Update.
11283 * hppa-tdep.c (hppa_gdbarch_init): Update.
11284 * h8300-tdep.c (h8300_gdbarch_init): Update.
11285 * frv-tdep.c (frv_gdbarch_init): Update.
11286 * d10v-tdep.c (d10v_gdbarch_init): Update.
11287 * cris-tdep.c (cris_gdbarch_init): Update.
11288 * avr-tdep.c (avr_gdbarch_init): Update.
11289 * arm-tdep.c (arm_gdbarch_init): Update.
11290 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11291 * alpha-tdep.c (alpha_gdbarch_init): Update.
11292
f541410f
DJ
112932003-03-26 Daniel Jacobowitz <drow@mvista.com>
11294
11295 * signals/signals.c (do_target_signal_to_host): Correct realtime
11296 signal range test.
11297
69f567ae
DJ
112982003-03-26 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11301 (struct sal_chain, map_catch_names): Remove.
11302 (catch_exception_command_1): Don't call
11303 handle_gnu_4_16_catch_command.
11304
d5d14a5a
DJ
113052003-03-26 Daniel Jacobowitz <drow@mvista.com>
11306
11307 From Mark Dettinger <dettinge@de.ibm.com>:
11308 * dwarf2cfi.c (read_2u): Increment pointer by two.
11309
bdd73e22
DJ
113102003-03-26 Daniel Jacobowitz <drow@mvista.com>
11311
11312 * signals/signals.c: Fix typos in last change.
11313
960cb555
DJ
113142003-03-26 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11317 not already defined. Use __SIGRTMIN if available.
11318 (target_signal_from_host): Remove SIGRTMIN block.
11319 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11320 the signal is within the realtime range.
11321
f636b87d
AF
113222003-03-25 Adam Fedor <fedor@gnu.org>
11323
11324 * Makefile.in (infrun.o): Add $(language_h)
11325 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11326 for language specific trampolines.
11327 * language.h (struct language_defn): Add skip_trampoline.
11328 (skip_language_trampoline): Declare.
11329 * language.c (unk_lang_trampoline, skip_language_trampoline):
11330 New functions.
11331 (unknown_language_defn, auto_language_defn, local_language_defn):
11332 Add ukn_lang_trampoline.
11333 * ada-lang.c (ada_language_defn): Add NULL for language
11334 specific skip_trampoline.
11335 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11336 scm-lang.c: Likewise.
11337 * objc-lang.c (objc_skip_trampoline): New function.
11338 (objc_language_defn): Add objc_skip_trampoline.
11339
28f617b3 113402003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11341
11342 * frame.c (get_prev_frame): Delay validating a frame's ID -
11343 non-NULL, didn't go backwards - until an attempt to unwind it to
11344 the previous frame.
11345
f933a9c5
AC
113462003-03-25 Andrew Cagney <cagney@redhat.com>
11347
11348 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11349 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11350 * gdbarch.h, gdbarch.c: Re-generate.
11351 * config/sparc/tm-sparc.h
11352 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11353 * sparc-tdep.c (sparc_gdbarch_init): Set
11354 deprecated_extra_stack_alignment_needed.
11355 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11357 extra_stack_alignment_needed.
11358 * v850-tdep.c (v850_gdbarch_init): Ditto.
11359 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11360 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11361 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11362 * cris-tdep.c (cris_gdbarch_init): Ditto.
11363 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11365
4183d812
AC
113662003-03-25 Andrew Cagney <cagney@redhat.com>
11367
11368 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11369 STORE_STRUCT_RETURN.
11370 * gdbarch.h, gdbarch.c: Regenerate.
11371 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11372 (d10v_push_arguments): Set the struct return register.
11373 (d10v_gdbarch_init): Update.
11374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11375 * x86-64-tdep.c (x86_64_init_abi): Update.
11376 * vax-tdep.c (vax_gdbarch_init): Update.
11377 * v850-tdep.c (v850_gdbarch_init): Update.
11378 * sparc-tdep.c (sparc_gdbarch_init): Update.
11379 * sh-tdep.c (sh_gdbarch_init): Update.
11380 * s390-tdep.c (s390_gdbarch_init): Update.
11381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11382 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11383 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11384 * mips-tdep.c (mips_gdbarch_init): Update.
11385 * mcore-tdep.c (mcore_gdbarch_init): Update.
11386 * m68k-tdep.c (m68k_gdbarch_init): Update.
11387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11388 * ia64-tdep.c (ia64_gdbarch_init): Update.
11389 * i386-tdep.c (i386_gdbarch_init): Update.
11390 * hppa-tdep.c (hppa_gdbarch_init): Update.
11391 * h8300-tdep.c (h8300_gdbarch_init): Update.
11392 * frv-tdep.c (frv_gdbarch_init): Update.
11393 * cris-tdep.c (cris_gdbarch_init): Update.
11394 * avr-tdep.c (avr_gdbarch_init): Update.
11395 * arm-tdep.c (arm_gdbarch_init): Update.
11396 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11397
1bf6d5cc
AC
113982003-03-25 Andrew Cagney <cagney@redhat.com>
11399
11400 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11401 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11402 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11403 * gdbarch.h, gdbarch.c: Regenerate.
11404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11405 call_dummy_stack_adjust_p.
11406 * vax-tdep.c (vax_gdbarch_init): Ditto.
11407 * v850-tdep.c (v850_gdbarch_init): Ditto.
11408 * sh-tdep.c (sh_gdbarch_init): Ditto.
11409 * s390-tdep.c (s390_gdbarch_init): Ditto.
11410 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11411 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11412 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11413 * mips-tdep.c (mips_gdbarch_init): Ditto.
11414 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11415 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11417 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11418 * i386-tdep.c (i386_gdbarch_init): Ditto.
11419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11420 * frv-tdep.c (frv_gdbarch_init): Ditto.
11421 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11422 * cris-tdep.c (cris_gdbarch_init): Ditto.
11423 * avr-tdep.c (avr_gdbarch_init): Ditto.
11424 * arm-tdep.c (arm_gdbarch_init): Ditto.
11425 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11426 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11427 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11428 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11429 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11430 call_dummy_stack_adjust_p.
11431 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11432 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11433 * sparc-tdep.c (sparc32_push_arguments): Update.
11434 * valops.c (hand_function_call): Update.
11435
71c08af0
CV
114362003-03-25 Corinna Vinschen <vinschen@redhat.com>
11437
11438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11439 set_gdbarch_char_signed.
11440
30757f90
RE
114412003-03-25 Richard Earnshaw <rearnsha@arm.com>
11442
11443 PR cli/548
11444 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11445
03d48a7d
RE
114462003-03-25 Richard Earnshaw <rearnsha@arm.com>
11447
11448 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11449 (_initialize_arm_tdep): Don't set tm_print_insn.
11450
2cf6873c
AF
114512003-03-24 Adam Fedor <fedor@gnu.org>
11452
11453 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11454 * objc-lang.h: Add multiple inclusion protection.
11455 (start_msglist, add_msglist, end_msglist): Additional declarations.
11456
17c0759e
RE
114572003-03-24 Richard Earnshaw <rearnsha@arm.com>
11458
11459 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11460 value was renamed to ARM_FLOAT_SOFT_FPA.
11461
618ce49f
AC
114622003-03-23 Andrew Cagney <cagney@redhat.com>
11463
11464 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11465 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11466 * gdbarch.h, gdbarch.c: Regenerate.
11467 * valops.c (hand_function_call): Update.
11468 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11469 * frame.c (legacy_saved_regs_this_id): Update.
11470 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11471 * dummy-frame.h: Update.
11472 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11473 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11474 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11475 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11476 * config/m68k/tm-sun3.h: Update.
11477 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11479 * x86-64-tdep.c (x86_64_init_abi): Update.
11480 * vax-tdep.c (vax_gdbarch_init): Update.
11481 * v850-tdep.c (v850_gdbarch_init): Update.
11482 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11483 * sh-tdep.c (sh_gdbarch_init): Update.
11484 * s390-tdep.c (s390_gdbarch_init): Update.
11485 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11486 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11487 (frame_get_saved_regs): Update.
11488 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11489 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11490 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11491 * mips-tdep.c (mips_gdbarch_init): Update.
11492 * mcore-tdep.c (mcore_gdbarch_init): Update.
11493 * m68k-tdep.c (m68k_gdbarch_init): Update.
11494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11495 * ia64-tdep.c (ia64_gdbarch_init): Update.
11496 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11497 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11498 (i386_interix_back_one_frame): Update.
11499 * hppa-tdep.c (hppa_gdbarch_init): Update.
11500 (hppa_init_extra_frame_info): Update.
11501 * h8300-tdep.c (h8300_gdbarch_init): Update.
11502 * frv-tdep.c (frv_gdbarch_init): Update.
11503 * cris-tdep.c (cris_gdbarch_init): Update.
11504 * avr-tdep.c (avr_gdbarch_init): Update.
11505 * arm-tdep.c (arm_gdbarch_init): Update.
11506 * alpha-tdep.c (alpha_gdbarch_init): Update.
11507
fd50bc42
RE
115082003-03-22 Richard Earnshaw <rearnsha@arm.com>
11509
11510 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11511 (arm_get_fp_model): Declare.
11512 * arm-tdep.c (fp_model_strings): New string array.
11513 (arm_fp_model, current_fp_model): New variables.
11514 (arm_get_fp_model): New function.
11515 (arm_set_fp): New function.
11516 (set_fp_model_sfunc): New function.
11517 (show_fp_model): New function.
11518 (_initialize_arm_tdep): Add new command to set/show the FPU.
11519 (arm_extract_return_value): Use arm_get_fp_model.
11520 (arm_store_return_value): Likewise.
11521 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11522 to initialize the floating-point data types.
11523 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11524 model is FPA.
11525
26304000
RE
115262003-03-22 Richard Earnshaw <rearnsha@arm.com>
11527
11528 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11529 the current setting of each value.
11530 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11531 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11532 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11533 commands and add new version as subcommands of "set/show arm".
11534
afd7eef0
RE
115352003-03-22 Richard Earnshaw <rearnsha@arm.com>
11536
11537 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11538 (set_arm_command, show_arm_command): New functions.
11539 (_initialize_arm_tdep): Add them.
11540 (num_disassembly_options): Renamed from num_flavor_options.
11541 (valid_disassembly_styles): Renamed from valid_flavors.
11542 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11543 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11544 set_disassembly_flavor_sfunc.
11545 (set_disassembly_style): Renamed from set_disassembly_flavor.
11546 (arm_othernames): Updated.
11547 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11548 command. Add "set/show arm disassembly" commands. Deprecate
11549 "othernames" command.
11550
299a7944
RE
115512003-03-22 Richard Earnshaw <rearnsha@arm.com>
11552
11553 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11554 (arm-tdep.o): Depend on elf_arm_h.
11555
c1dac9e6
RE
115562003-03-22 Richard Earnshaw <rearnsha@arm.com>
11557
11558 * Makefile.in (coff_internal_h): Define.
11559 (arm-tdep.o): Update dependencies.
11560
2702d96c
RE
115612003-03-22 Richard Earnshaw <rearnsha@arm.com>
11562
11563 * arm-tdep.c (prologue_cache): Delete.
11564 (check_prologue_cache, save_prologue_cache): Delete.
11565 (arm_scan_prologue): Don't check or update the prologue_cache.
11566 (arm_gdb_arch_init): Don't initialize it.
11567 (_initialize_arm_tdep): Likewise.
11568
27d5d74b
SC
115692003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11570
11571 * MAINTAINERS (tui): Maintainer of tui code.
11572
1762d96d
CV
115732003-03-21 Corinna Vinschen <vinschen@redhat.com>
11574
11575 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11576 (i386-cygwin-tdep.o): Add dependencies.
11577 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11578 * i386-cygwin-tdep.c: New file.
11579 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11580 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11581
4c2e2391
AC
115822003-03-20 Andrew Cagney <cagney@redhat.com>
11583
f20d38b7
AC
11584 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11585 (handle_inferior_event): Remove code calling
11586 DYNAMIC_TRAMPOLINE_NEXTPC.
11587
0022b738
AC
11588 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11589 already has a full path.
11590
864dbc90
AC
11591 * main.c (gdb_main): Return 1.
11592 (captured_main): Call error to report an invalid interpreter.
11593
4c2e2391
AC
11594 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11595 * alpha-osf1-tdep.c: Include "gdb_string.h".
11596
5ef7553b
JB
115972003-03-19 J. Brobecker <brobecker@gnat.com>
11598
11599 Continuing work to convert the hppa targets to multiarch partial.
11600
11601 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11602 method, now that hppa_push_dummy_frame has a conformant prototype.
11603 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11604 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11605 for the switch to multiarch partial.
11606
7bde8967
KB
116072003-03-19 Kevin Buettner <kevinb@redhat.com>
11608
11609 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11610 when iss is issNull.
11611
b006a9e9
KB
116122003-03-18 Kevin Buettner <kevinb@redhat.com>
11613
11614 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11615 NUM_REGS bounds check.
11616
5e2e9765
KB
116172003-03-18 Kevin Buettner <kevinb@redhat.com>
11618
11619 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11620 * mips-tdep.c (gdb_assert.h): Include.
11621 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11622 (mips_register_name): Handle integer registers explicitly. Add
11623 bounds checking.
11624 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11625 (mips_lsi33k_reg_names): Don't list integer registers; they're
11626 handled by mips_register_name() now.
11627 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11628 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11629 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11630 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11631 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11632
a2867626
AC
116332003-03-18 Andrew Cagney <cagney@redhat.com>
11634
11635 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11636 a void pointer.
11637 * gdbtypes.h (print_scalar_formatted): Update declaration.
11638 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11639
06600e06
JB
116402003-03-18 J. Brobecker <brobecker@gnat.com>
11641
11642 * infrun.c (observer.h): Add #include.
11643 (normal_stop): Add call to observer_notify_normal_stop.
11644 * Makefile.in (infrun.o): Add dependency on observer.h.
11645
7daf4f5b
JB
116462003-03-18 J. Brobecker <brobecker@gnat.com>
11647
11648 Continuing work to convert the hppa targets to multiarch partial.
11649 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11650 parameter. Reformat comment.
11651 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11652 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11653 to match new profile.
11654
3371ccc0
JB
116552003-03-18 J. Brobecker <brobecker@gnat.com>
11656
11657 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11658 appear to be working in any case.
11659
4fbe891e
JB
116602003-03-18 J. Brobecker <brobecker@gnat.com>
11661
11662 * observer.c (observer_test_first_observer): New static variable.
11663 (observer_test_second_observer): Likewise.
11664 (observer_test_third_observer): Likewise.
11665 (observer_test_first_notification_function): New static function.
11666 (observer_test_second_notification_function): Likewise.
11667 (observer_test_third_notification_function): Likewise.
11668
a7ff40e7
JB
116692003-03-17 J. Brobecker <brobecker@gnat.com>
11670
11671 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11672 * somsolib.c (gdb_assert.h): Likewise.
11673 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11674 (somsolib.o): Likewise.
11675
26ca4152
AC
116762003-03-17 Andrew Cagney <cagney@redhat.com>
11677
11678 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11679 BFD. Simplify setting of di.endian.
11680
0a613259
AC
116812003-03-17 Andrew Cagney <cagney@redhat.com>
11682
11683 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11684 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11685
11686 From Elena Zannoni <ezannoni@redhat.com>
11687 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11688 vector and floating-point parameters.
11689 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11690 convention.
11691 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11692
1132738f
FN
116932003-03-17 Fernando Nasser <fnasser@redhat.com>
11694
11695 * MAINTAINERS: Remove my name from several maintainership roles.
11696
6dc42492
AC
116972003-03-17 Andrew Cagney <cagney@redhat.com>
11698
11699 Fix frame off-by-one bug.
11700 * frame-unwind.h (frame_this_id_ftype): Replace
11701 frame_unwind_id_ftype.
11702 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11703 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11704 with "prev_register".
11705 * frame-unwind.c (frame_unwind_find_by_pc): Return
11706 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11707 comment.
11708 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11709 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11710 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11711 (dummy_frame_unwind): Update.
11712 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11713 sentinel_frame_register_unwind.
11714 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11715 (sentinel_frame_unwinder): Update.
11716 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11717 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11718 * frame.c (create_sentinel_frame): Update. Initialize
11719 "prologue_cache" instead of "unwind_cache".
11720 (frame_register_unwind): Call this frame's prev_register with the
11721 next frame and this frame's prologue cache.
11722 (get_prev_frame): Simplify. Always call prev frame's this_id with
11723 this frame and prev frame's prologue cache. Document that this
11724 call is shifted one to the left when compared to the
11725 frame_register_unwind call.
11726 (legacy_saved_regs_prev_register): Replace
11727 frame_saved_regs_register_unwind.
11728 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11729 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11730 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11731 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11732 (d10v_frame_unwind): Update.
11733 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11734 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11735 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11736 "saved_regs" with "this_saved_regs".
11737
efd710d6
AC
117382003-03-16 Andrew Cagney <cagney@redhat.com>
11739
11740 * frame.c (frame_pop): Don't call target_store_registers. Fix
11741 problem reported by Mark Kettenis.
11742
4e259f09
MK
117432003-03-16 Mark Kettenis <kettenis@gnu.org>
11744
11745 * i386-tdep.c (i386_register_type): Renamed from
11746 i386_register_virtual_type. Adjust function signature.
11747 (i386_gdbarch_init): Set register_type instead of
11748 deprecated_max_register_raw_size,
11749 deprecated_max_register_virtual_size and register_virtual_type.
11750
055bb976
AC
117512003-03-14 Andrew Cagney <cagney@redhat.com>
11752
11753 * frame.c (get_prev_frame): When a legacy frame, always call
11754 legacy_get_prev_frame. Simplify unwind code using assumption that
11755 the unwinder is new.
11756 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11757 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11758 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11759
ac2adee5
AC
117602003-03-14 Andrew Cagney <cagney@redhat.com>
11761
11762 * frame.c (get_saved_register): Delete function.
11763 * frame.h (get_saved_register): Delete declaration.
11764 * xstormy16-tdep.c: Update comment.
11765 * regcache.h: Update comments.
11766 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11767 get_saved_register and extract_address, use
11768 frame_read_unsigned_register.
11769 (sparc_frame_saved_pc): Ditto.
11770 (sparc_get_saved_register): Instead of get_saved_register, use
11771 frame_register.
11772 (sparc_pop_frame): Ditto.
11773 * findvar.c: Update comments.
11774 (value_of_register): Call frame_register instead of
11775 get_saved_register.
11776 (value_from_register): Ditto.
11777 * config/sparc/tm-sparc.h: Update comment.
11778 * breakpoint.c: Update comment.
11779
129c1cd6
AC
117802003-03-14 Andrew Cagney <cagney@redhat.com>
11781
11782 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11783 GET_SAVED_REGISTER.
11784 * gdbarch.h, gdbarch.c: Re-generate.
11785 * frame.h: Update comments.
11786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11787 * x86-64-tdep.c (x86_64_init_abi): Update.
11788 * sparc-tdep.c (sparc_gdbarch_init): Update.
11789 * sh-tdep.c (sh_gdbarch_init): Update.
11790 * mips-tdep.c (mips_gdbarch_init): Update.
11791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11792 * cris-tdep.c (cris_gdbarch_init): Update.
11793 * ia64-tdep.c (ia64_gdbarch_init): Update.
11794 * frame.c (frame_register): Update.
11795 (get_saved_register): Update.
11796 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11797
749b82f6
AC
117982003-03-13 Andrew Cagney <cagney@redhat.com>
11799
11800 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11801 * gdbarch.h, gdbarch.c: Regenerate.
11802 * valops.c (hand_function_call): Update comment.
11803 * stack.c (return_command): Update comment.
11804 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11805 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11807 * x86-64-tdep.c (x86_64_init_abi): Update.
11808 * vax-tdep.c (vax_gdbarch_init): Update.
11809 * v850-tdep.c (v850_gdbarch_init): Update.
11810 * sparc-tdep.c (sparc_gdbarch_init): Update.
11811 * sh-tdep.c (sh_gdbarch_init): Update.
11812 * s390-tdep.c (s390_gdbarch_init): Update.
11813 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11814 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11815 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11816 * mips-tdep.c (mips_gdbarch_init): Update.
11817 * mcore-tdep.c (mcore_gdbarch_init): Update.
11818 * m68k-tdep.c (m68k_gdbarch_init): Update.
11819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11820 * ia64-tdep.c (ia64_gdbarch_init): Update.
11821 * i386-tdep.c (i386_gdbarch_init): Update.
11822 * hppa-tdep.c (hppa_gdbarch_init): Update.
11823 * h8300-tdep.c (h8300_gdbarch_init): Update.
11824 * frv-tdep.c (frv_gdbarch_init): Update.
11825 * cris-tdep.c (cris_gdbarch_init): Update.
11826 * avr-tdep.c (avr_gdbarch_init): Update.
11827 * arm-tdep.c (arm_gdbarch_init): Update.
11828 * alpha-tdep.c (alpha_gdbarch_init): Update.
11829
1594fa56
AC
118302003-03-13 Andrew Cagney <cagney@redhat.com>
11831
11832 * frame.c (legacy_frame_p): New function.
11833 (get_prev_frame): Use legacy_frame_p.
11834 * frame.h (legacy_frame_p): Declare.
11835
7717fda3
V
118362003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11837
fbe586ae 11838 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11839 listing corrected.
11840
0c67cbe9
V
118412003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11842
fbe586ae 11843 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11844
03febf99
AC
118452003-03-12 Andrew Cagney <cagney@redhat.com>
11846
11847 * frame.c (get_prev_frame): Rename the frame parameter to
11848 "this_frame".
11849 (get_next_frame, legacy_get_prev_frame): Ditto.
11850
0a1e1ca1
AC
118512003-03-12 Andrew Cagney <cagney@redhat.com>
11852
11853 * frame.c (get_current_frame): Check target_has_registers before
11854 checking target_has_stack.
11855 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11856 instead of deprecated_selected_frame.
11857 * findvar.c (value_of_register): Pass "frame", not
11858 deprecated_selected_frame, to value_of_builtin_reg.
11859
a66a9c23
AC
118602003-03-12 Andrew Cagney <cagney@redhat.com>
11861
11862 * regcache.c (regcache_cooked_write_signed): New function.
11863 (regcache_cooked_write_unsigned): New function.
11864 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11865 (regcache_cooked_read_signed): Fix regnum in range assertion.
11866 * regcache.h (regcache_cooked_write_signed): Declare.
11867 (regcache_cooked_write_unsigned): Declare.
11868
8bedc050
AC
118692003-03-12 Andrew Cagney <cagney@redhat.com>
11870
11871 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11872 * gdbarch.h, gdbarch.c: Re-generate.
11873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11874 * x86-64-tdep.h: Update.
11875 * x86-64-tdep.c (x86_64_init_abi): Update.
11876 * v850-tdep.c (v850_gdbarch_init): Update.
11877 * sparc-tdep.c (sparc_gdbarch_init): Update.
11878 * sh-tdep.c (sh_gdbarch_init): Update.
11879 * s390-tdep.c (s390_gdbarch_init): Update.
11880 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11881 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11882 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11883 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11884 * mips-tdep.c (mips_gdbarch_init): Update.
11885 * mcore-tdep.c (mcore_gdbarch_init): Update.
11886 * m68k-tdep.c (m68k_gdbarch_init): Update.
11887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11888 * ia64-tdep.c (ia64_gdbarch_init): Update.
11889 * i386-tdep.c (i386_gdbarch_init): Update.
11890 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11891 * hppa-tdep.c (hppa_gdbarch_init): Update.
11892 * h8300-tdep.c (h8300_gdbarch_init): Update.
11893 * frv-tdep.c (frv_gdbarch_init): Update.
11894 * cris-tdep.c (cris_gdbarch_init): Update.
11895 * avr-tdep.c (avr_gdbarch_init): Update.
11896 * arm-tdep.c (arm_gdbarch_init): Update.
11897 * alpha-tdep.c (alpha_gdbarch_init): Update.
11898 * sh-tdep.c (sh_init_extra_frame_info): Update.
11899 (sh64_init_extra_frame_info): Update.
11900 * ns32knbsd-nat.c (frame_num_args): Update.
11901 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11902 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11903 (xstormy16_frame_chain_valid): Update.
11904 * vax-tdep.c (vax_saved_pc_after_call): Update.
11905 * v850-tdep.c (v850_frame_chain): Update.
11906 (v850_pop_frame): Update.
11907 (v850_init_extra_frame_info): Update.
11908 * sparc-tdep.c (setup_arbitrary_frame): Update.
11909 * ns32k-tdep.c (umax_frame_num_args): Update.
11910 * s390-tdep.c (s390_pop_frame_regular): Update.
11911 * mn10300-tdep.c (mn10300_frame_chain): Update.
11912 (mn10300_pop_frame_regular): Update.
11913 (mn10300_init_extra_frame_info): Update.
11914 * mips-tdep.c (mips_init_frame_pc_first): Update.
11915 (mips_frame_chain): Update.
11916 (mips_pop_frame): Update.
11917 * mcore-tdep.c (mcore_frame_chain): Update.
11918 (mcore_pop_frame): Update.
11919 (mcore_init_extra_frame_info): Update.
11920 * arch-utils.c (init_frame_pc_default): Update.
11921 * m68k-tdep.c (isi_frame_num_args): Update.
11922 (delta68_frame_num_args): Update.
11923 (news_frame_num_args): Update.
11924 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11925 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11926 (alpha_frame_chain): Update.
11927 (alpha_pop_frame): Update.
11928 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11929 (hppa_init_extra_frame_info): Update.
11930 (hppa_frame_chain): Update.
11931 (hppa_frame_chain_valid): Update.
11932 * cris-tdep.c (cris_init_extra_frame_info): Update.
11933 * avr-tdep.c (avr_init_extra_frame_info): Update.
11934 * arm-tdep.c (arm_frame_chain_valid): Update.
11935 (arm_init_extra_frame_info): Update.
11936 (arm_pop_frame): Update.
11937 * frame.c (frame_pc_unwind): Update.
11938 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11939 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11940 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11941 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11942 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11943 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11944
7a25a7c1
AC
119452003-03-12 Andrew Cagney <cagney@redhat.com>
11946
11947 Eliminate the need for POP_FRAME.
11948 * frame.c (do_frame_unwind_register): New function.
11949 (frame_pop): When no POP_FRAME, pop the frame using register
11950 unwind and a scratch regcache.
11951 (frame_saved_regs_pop): Delete function.
11952 (trad_frame_unwinder): Update.
11953 * d10v-tdep.c (d10v_frame_pop): Delete function.
11954 (d10v_frame_unwind): Update.
11955 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11956 (sentinel_frame_unwinder): Update.
11957 * dummy-frame.c (dummy_frame_pop): Delete function.
11958 (dummy_frame_unwind): Update.
11959 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11960 (struct frame_unwind): Update.
11961
2f38ef89
KB
119622003-03-11 Kevin Buettner <kevinb@redhat.com>
11963
11964 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11965 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11966 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11967 Do range checks on register number obtained from debugging info.
11968 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11969 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11970 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11971 mapping function.
11972 (do_fp_register_row): Fix typo which caused double type to be
11973 used when attempting to unpack a float.
11974
552f4abf
JB
119752003-03-11 J. Brobecker <brobecker@gnat.com>
11976
11977 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11978
e0d2ae16
AC
119792003-03-11 Andrew Cagney <cagney@redhat.com>
11980
11981 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11982 frame. Problem found by Corinna Vinschen.
11983
ddbfdd06
PM
119842003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11985
11986 * doublest.c (floatformat_from_length): Accept also
11987 the real size of 'long double' type.
11988
088b2ddc 119892003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11990
088b2ddc 11991 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11992 * breakpoint.c (bpstat_copy): Copy the command lines as well
11993 as the old value, to match what is freed in bpstat_clear.
11994
f56f77c1
DC
119952003-03-10 David Carlton <carlton@math.stanford.edu>
11996
11997 * minsyms.c (add_minsym_to_hash_table): Replace
11998 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11999 (compare_minimal_symbols, compact_minimal_symbols)
12000 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12001 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12002 of DEPRECATED_SYMBOL_MATCHES_NAME.
12003 (lookup_minimal_symbol_solib_trampoline): Ditto.
12004
5602984a
AC
120052003-03-10 Andrew Cagney <cagney@redhat.com>
12006
12007 * regcache.h (regcache_cooked_read_ftype): Define.
12008 (regcache_save, regcache_restore): Add a cooked_read parameter.
12009 * regcache.c (regcache_save, regcache_restore): Update.
12010 (do_cooked_read): New function.
12011 (regcache_cpy): Pass do_cooked_read to regcache_save and
12012 regcache_restore.
12013
8bedc050
AC
120142003-03-10 Andrew Cagney <cagney@redhat.com>
12015
12016 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12017 * gdbarch.h, gdbarch.c: Re-generate.
12018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12019 * x86-64-tdep.h: Update.
12020 * x86-64-tdep.c (x86_64_init_abi): Update.
12021 * v850-tdep.c (v850_gdbarch_init): Update.
12022 * sparc-tdep.c (sparc_gdbarch_init): Update.
12023 * sh-tdep.c (sh_gdbarch_init): Update.
12024 * s390-tdep.c (s390_gdbarch_init): Update.
12025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12026 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12027 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12028 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12029 * mips-tdep.c (mips_gdbarch_init): Update.
12030 * mcore-tdep.c (mcore_gdbarch_init): Update.
12031 * m68k-tdep.c (m68k_gdbarch_init): Update.
12032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12033 * ia64-tdep.c (ia64_gdbarch_init): Update.
12034 * i386-tdep.c (i386_gdbarch_init): Update.
12035 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12036 * hppa-tdep.c (hppa_gdbarch_init): Update.
12037 * h8300-tdep.c (h8300_gdbarch_init): Update.
12038 * frv-tdep.c (frv_gdbarch_init): Update.
12039 * cris-tdep.c (cris_gdbarch_init): Update.
12040 * avr-tdep.c (avr_gdbarch_init): Update.
12041 * arm-tdep.c (arm_gdbarch_init): Update.
12042 * alpha-tdep.c (alpha_gdbarch_init): Update.
12043 * sh-tdep.c (sh_init_extra_frame_info): Update.
12044 (sh64_init_extra_frame_info): Update.
12045 * ns32knbsd-nat.c (frame_num_args): Update.
12046 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12047 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12048 (xstormy16_frame_chain_valid): Update.
12049 * vax-tdep.c (vax_saved_pc_after_call): Update.
12050 * v850-tdep.c (v850_frame_chain): Update.
12051 (v850_pop_frame): Update.
12052 (v850_init_extra_frame_info): Update.
12053 * sparc-tdep.c (setup_arbitrary_frame): Update.
12054 * ns32k-tdep.c (umax_frame_num_args): Update.
12055 * s390-tdep.c (s390_pop_frame_regular): Update.
12056 * mn10300-tdep.c (mn10300_frame_chain): Update.
12057 (mn10300_pop_frame_regular): Update.
12058 (mn10300_init_extra_frame_info): Update.
12059 * mips-tdep.c (mips_init_frame_pc_first): Update.
12060 (mips_frame_chain): Update.
12061 (mips_pop_frame): Update.
12062 * mcore-tdep.c (mcore_frame_chain): Update.
12063 (mcore_pop_frame): Update.
12064 (mcore_init_extra_frame_info): Update.
12065 * arch-utils.c (init_frame_pc_default): Update.
12066 * m68k-tdep.c (isi_frame_num_args): Update.
12067 (delta68_frame_num_args): Update.
12068 (news_frame_num_args): Update.
12069 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12070 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12071 (alpha_frame_chain): Update.
12072 (alpha_pop_frame): Update.
12073 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12074 (hppa_init_extra_frame_info): Update.
12075 (hppa_frame_chain): Update.
12076 (hppa_frame_chain_valid): Update.
12077 * cris-tdep.c (cris_init_extra_frame_info): Update.
12078 * avr-tdep.c (avr_init_extra_frame_info): Update.
12079 * arm-tdep.c (arm_frame_chain_valid): Update.
12080 (arm_init_extra_frame_info): Update.
12081 (arm_pop_frame): Update.
12082 * frame.c (frame_pc_unwind): Update.
12083 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12084 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12085 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12086 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12087 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12088 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12089
12cc2063
AC
120902003-03-10 Andrew Cagney <cagney@redhat.com>
12091
12092 * gdbarch.sh (gdbarch_unwind_pc): New method.
12093 * gdbarch.h, gdbarch.c: Regenerate.
12094 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12095 but use read_pc and FRAME_SAVED_PC as fall backs.
12096 (frame_saved_regs_pc_unwind): Delete function.
12097 (trad_frame_unwinder): Update.
12098 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12099 (struct frame_unwind): Update.
12100 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12101 (dummy_frame_unwind): Update.
12102 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12103 (sentinel_frame_unwinder): Update.
12104 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12105 (d10v_frame_unwind): Update.
12106 (d10v_unwind_pc): New function.
12107 (d10v_gdbarch_init): Set unwind_pc.
12108
ef840a37
AC
121092003-03-10 Andrew Cagney <cagney@redhat.com>
12110
a2ce2e56
AC
12111 * gdbarch.h: Re-generate.
12112
ef840a37
AC
12113 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12114 PC.
12115 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12116 the PC register.
12117
08f3424b
MK
121182003-03-08 Mark Kettenis <kettenis@gnu.org>
12119
12120 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12121
1248ede2
AC
121222003-03-08 Andrew Cagney <cagney@redhat.com>
12123
12124 * cli-out.c: Update copyright.
12125 (cli_out_data): Define typedef. Use instead of ui_out_data.
12126
f49bacc8
AC
121272003-03-08 Andrew Cagney <cagney@redhat.com>
12128
12129 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12130 the result.
12131
9b05f993
AC
121322003-03-07 Andrew Cagney <cagney@redhat.com>
12133
12134 * gdbarch.sh: Don't generate two macro definitions when an
12135 undefined macro taking no arguments.
12136 * gdbarch.h: Regenerate.
8ffd9b1b 12137
166f4c7b
ML
121382002-03-07 Michal Ludvig <mludvig@suse.cz>
12139
12140 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12141 (x86_64_unwind_dummy_id): New functions.
12142 (x86_64_init_abi): Register these two new functions.
12143
6d686a84
ML
121442003-03-07 Michal Ludvig <mludvig@suse.cz>
12145
12146 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12147 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12148 separate function.
12149 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12150
6314f104
AC
121512003-03-05 Andrew Cagney <cagney@redhat.com>
12152
12153 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12154 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12155 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12156 to use unwind_dummy_id when a dummy frame.
12157 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12158 predicate.
12159 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12160
ceea5145
AC
121612003-03-05 Andrew Cagney <cagney@redhat.com>
12162
12163 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12164 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12165 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12166 values.
12167
0d843116
AC
121682003-03-05 Andrew Cagney <cagney@redhat.com>
12169
12170 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12171 (struct d10v_unwind_cache): Delete field "frameless". Replace
12172 "next_addr" with "sp_offset". Add "r11_offset".
12173 (d10v_frame_unwind_cache): Update.
12174 (prologue_find_regs): Update. When "mv r11, sp", save the
12175 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12176 RN was saved in r11_offset.
12177
b2579786
AC
121782003-03-05 Andrew Cagney <cagney@redhat.com>
12179
12180 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12181 cached PC value in the next frame.
12182
218e5956
AC
121832003-03-05 Andrew Cagney <cagney@redhat.com>
12184
12185 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12186 "id_unwind_cache" with "id".
12187 (frame_id_unwind): Delete declaration.
12188 * frame.c (frame_id_unwind): Delete function.
12189 (get_prev_frame): Call the frame id unwind method directly. Store
12190 the returned next frame's ID value in NEXT_FRAME. Note that there
12191 is a problem with the wrong unwind ID being called with the wrong
12192 unwind cache.
12193
ed363b1b
DJ
121942003-03-05 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12197
fe1f4a5e
DJ
121982003-03-05 James Ingham <jingham@apple.com>
12199 Daniel Jacobowitz <drow@mvista.com>
12200
12201 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12202 (auto_cp_abi): New variable.
12203 (current_cp_abi, num_cp_abis): Make static.
12204 (CP_ABI_MAX): Define.
12205 (cp_abis): Turn into an array.
12206 (value_virtual_fn_field): Fix formatting.
12207 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12208 takes a pointer.
12209 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12210 (list_cp_abis, _initialize_cp_abi): New functions.
12211 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12212 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12213 switch_to_cp_abi. Update prototype for register_cp_abi.
12214 * Makefile.in (cp-abi.o): Update dependencies.
12215 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12216 instead of switch_to_cp_abi.
12217 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12218 register_cp_abi.
12219 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12220 register_cp_abi.
12221 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12222
e4adbba9
DJ
122232003-03-05 Daniel Jacobowitz <drow@mvista.com>
12224
12225 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12226 * dwarf2loc.c: Include "regcache.h".
12227 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12228 register_size.
12229 * Makefile.in (dwarf2loc.o): Update dependencies.
12230
91ccbfc1
TR
122312003-03-04 Theodore A. Roth <troth@openavr.org>
12232
12233 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12234 number of io registers reported by remote target is not a multiple of
12235 step.
12236
3d4e8fd2
DC
122372003-03-04 David Carlton <carlton@math.stanford.edu>
12238
12239 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12240 (lookup_symbol_aux_psymtabs): Update call to
12241 lookup_partial_symbol.
12242 (lookup_transparent_type, find_main_psymtab)
12243 (make_symbol_overload_list): Ditto.
12244
ed42d87b
KH
122452003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12246
12247 * MAINTAINERS (Write after approval): Update my email address.
12248
a0ed5532
AC
122492003-03-03 Andrew Cagney <cagney@redhat.com>
12250
12251 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12252 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12253 predicate. Replace MAX_REGISTER_RAW_SIZE.
12254 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12255 MAX_REGISTER_VIRTUAL_SIZE.
12256 * regcache.c (legacy_max_register_raw_size): New function.
12257 (legacy_max_register_virtual_size): New function.
12258 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12259 (MAX_REGISTER_RAW_SIZE): Define.
12260 (legacy_max_register_raw_size): Declare.
12261 (legacy_max_register_virtual_size): Declare.
12262 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12263 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12264 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12265 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12266 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12267 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12268 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12269 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12270 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12272 * vax-tdep.c (vax_gdbarch_init): Update.
12273 * v850-tdep.c (v850_gdbarch_init): Update.
12274 * sparc-tdep.c (sparc_gdbarch_init): Update.
12275 * sh-tdep.c (sh_gdbarch_init): Update.
12276 * s390-tdep.c (s390_gdbarch_init): Update.
12277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12278 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12280 * mips-tdep.c (mips_gdbarch_init): Update.
12281 * mcore-tdep.c (mcore_gdbarch_init): Update.
12282 * m68k-tdep.c (m68k_gdbarch_init): Update.
12283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12284 * ia64-tdep.c (ia64_gdbarch_init): Update.
12285 * i386-tdep.c (i386_gdbarch_init): Update.
12286 * hppa-tdep.c (hppa_gdbarch_init): Update.
12287 * h8300-tdep.c (h8300_gdbarch_init): Update.
12288 * frv-tdep.c (frv_gdbarch_init): Update.
12289 * cris-tdep.c (cris_gdbarch_init): Update.
12290 * avr-tdep.c (avr_gdbarch_init): Update.
12291 * arm-tdep.c (arm_gdbarch_init): Update.
12292 * alpha-tdep.c (alpha_gdbarch_init): Update.
12293 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12294 max_register_raw_size or max_register_virtual_size.
12295
8e437497
DC
122962003-03-03 David Carlton <carlton@math.stanford.edu>
12297
12298 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12299 SYMBOL_MATCHES_NAME, add comment.
12300 (SYMBOL_MATCHES_NATURAL_NAME): New.
12301 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12302 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12303 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12304 * symtab.c (lookup_partial_symbol): Use
12305 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12306 unhelpful comment.
12307 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12308 SYMBOL_MATCHES_NAME.
12309 Fix for PR c++/33.
12310
25120b0d
DC
123112003-03-03 David Carlton <carlton@math.stanford.edu>
12312
12313 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12314 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12315 by regexp matching against SYMBOL_NATURAL_NAME.
12316
78a11fb4
DC
123172003-03-03 David Carlton <carlton@math.stanford.edu>
12318
12319 * linespec.c (find_method): Extract code into collect_methods.
12320 (collect_methods): New.
12321
645dd519
MK
123222003-03-02 Mark Kettenis <kettenis@gnu.org>
12323
b4700d91
MK
12324 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12325 get_frame_base.
12326
645dd519
MK
12327 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12328 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12329
0aa7e1aa
SC
123302003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12331
8ffd9b1b 12332 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12333 and not regnum when summing the size of all registers up to regnum.
12334
f30ee0bc
AC
123352003-03-01 Andrew Cagney <cagney@redhat.com>
12336
12337 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12338 FRAME_INIT_SAVED_REGS.
12339 * gdbarch.h, gdbarch.c: Regenerate.
12340 * stack.c (frame_info): Update.
12341 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12342 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12343 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12344 * ns32k-tdep.c (ns32k_pop_frame): Update.
12345 * mips-tdep.c (mips_pop_frame): Update.
12346 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12347 * ia64-tdep.c (ia64_frame_chain): Update.
12348 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12349 (ia64_frameless_function_invocation): Update.
12350 (ia64_init_extra_frame_info): Update.
12351 (ia64_pop_frame_regular): Update.
12352 * frame.h (struct frame_info): Update comment.
12353 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12354 * frame.c (frame_saved_regs_register_unwind): Update.
12355 (frame_saved_regs_register_unwind): Update.
12356 (deprecated_generic_get_saved_register): Update.
12357 * cris-tdep.c: Update comment.
12358 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12359 Rename macro.
12360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12361 * x86-64-tdep.c (x86_64_init_abi): Update.
12362 * vax-tdep.c (vax_gdbarch_init): Update.
12363 * v850-tdep.c (v850_gdbarch_init): Update.
12364 * sparc-tdep.c (sparc_gdbarch_init): Update.
12365 * sh-tdep.c (sh_gdbarch_init): Update.
12366 * s390-tdep.c (s390_gdbarch_init): Update.
12367 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12368 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12369 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12370 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12371 * mips-tdep.c (mips_gdbarch_init): Update.
12372 * mcore-tdep.c (mcore_gdbarch_init): Update.
12373 * m68k-tdep.c (m68k_gdbarch_init): Update.
12374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12375 * ia64-tdep.c (ia64_gdbarch_init): Update.
12376 * i386-tdep.c (i386_gdbarch_init): Update.
12377 * frv-tdep.c (frv_gdbarch_init): Update.
12378 * avr-tdep.c (avr_gdbarch_init): Update.
12379 * arm-tdep.c (arm_gdbarch_init): Update.
12380 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12381
42fa7c0f
AC
123822003-03-01 Andrew Cagney <cagney@redhat.com>
12383
12384 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12385 option enum and switch. When no windows, set the interpreter to
12386 INTERP_CONSOLE.
8ffd9b1b 12387
49c7e338
AC
123882003-03-01 Andrew Cagney <cagney@redhat.com>
12389
12390 * main.c (captured_main): Replace magic option characters with an
12391 enum.
12392
e9582e71
AC
123932003-03-01 Andrew Cagney <cagney@redhat.com>
12394
12395 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12396 INIT_EXTRA_FRAME_INFO.
12397 * gdbarch.h, gdbarch.c: Regenerate.
12398 * arm-tdep.c: Update comments.
12399 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12400 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12401 * frame.h, avr-tdep.c: Ditto.
12402 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12403 (create_new_frame, legacy_get_prev_frame): Ditto.
12404 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12405 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12407 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12408 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12409 * v850-tdep.c (v850_gdbarch_init): Ditto.
12410 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12411 * sh-tdep.c (sh_gdbarch_init): Ditto.
12412 * s390-tdep.c (s390_gdbarch_init): Ditto.
12413 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12414 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12415 * mips-tdep.c (mips_gdbarch_init): Ditto.
12416 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12418 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12419 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12420 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12421 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12422 * frv-tdep.c (frv_gdbarch_init): Ditto.
12423 * cris-tdep.c (cris_gdbarch_init): Ditto.
12424 * avr-tdep.c (avr_gdbarch_init): Ditto.
12425 * arm-tdep.c (arm_gdbarch_init): Ditto.
12426 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12427 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12428
35cac7cf
AC
124292003-03-01 Andrew Cagney <cagney@redhat.com>
12430
12431 * gdbarch.sh (register_type): New function with predicate.
12432 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12433 * gdbarch.h, gdbarch.c: Re-generate.
12434 * arch-utils.c (generic_register_byte): Use generic_register_size.
12435 (generic_register_size): When available, use
12436 gdbarch_register_type.
12437 * regcache.c (init_regcache_descr): When available, initialize the
12438 register type array using gdbarch_register_type. If the
12439 architecture supplies gdbarch_register_type, do not use the legacy
12440 regcache layout.
12441 * d10v-tdep.c (d10v_register_type): Replace
12442 d10v_register_virtual_type.
12443 (d10v_gdbarch_init): Set register_type instead of
12444 register_virtual_type.
12445
7b83296f
AC
124462003-03-01 Andrew Cagney <cagney@redhat.com>
12447
12448 * Makefile.in (ax-gdb.o): Update dependencies.
12449 * ax-gdb.c: Include "regcache.h".
12450 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12451 * findvar.c (value_of_register): Ditto.
12452 * infcmd.c (default_print_registers_info): Ditto.
12453
eadc1c87
MK
124542003-03-01 Mark Kettenis <kettenis@gnu.org>
12455
12456 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12457 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12458
14143612
MK
124592003-03-01 Mark Kettenis <kettenis@gnu.org>
12460
12461 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12462 of STREQ.
12463
a55cc764
DJ
124642003-02-28 Daniel Jacobowitz <drow@mvista.com>
12465
12466 * Makefile.in (dwarf2loc.o): Update dependencies.
12467 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12468 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12469 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12470 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12471 (locexpr_tracepoint_var_ref): New function.
12472 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12473
08a617da
AC
124742003-02-28 Andrew Cagney <cagney@redhat.com>
12475
12476 * regcache.c (register_size): New function.
12477 * regcache.h (register_size): Declare
12478 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12479 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12480
4224873a
DC
124812003-02-28 David Carlton <carlton@math.stanford.edu>
12482
12483 * linespec.c (decode_compound): Extract code into find_method.
12484 (find_method): New.
12485
ccdc5d7f
JB
124862003-02-28 J. Brobecker <brobecker@gnat.com>
12487
12488 * Makefile.in: Add rules to build and link in observer.o.
12489
974e8ced
JB
124902003-02-27 J. Brobecker <brobecker@gnat.com>
12491
12492 * observer.c: Minor comments edits.
12493
7a28f973
JB
124942003-02-27 J. Brobecker <brobecker@gnat.com>
12495
12496 * observer.h, observer.c: New file.
12497
27cddce2
AC
124982003-02-27 Andrew Cagney <cagney@redhat.com>
12499
12500 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12501
b94a41a1
SC
125022003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12503
12504 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12505 (M6812_OP_STS_EXT): Likewise.
12506 (m6811_prologue): Use the above to recognize prologue.
12507 (m6812_prologue): Likewise.
12508
c8be8951
DC
125092003-02-27 David Carlton <carlton@math.stanford.edu>
12510
12511 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12512 SYMBOL_PRINT_NAME.
12513 (compare_psymbols): Ditto.
12514 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12515
d05bb1fc
MS
125162003-02-27 Michael Snyder <msnyder@redhat.com>
12517
4e845cd3
MS
12518 * f-lang.c (build_fortran_types): New function.
12519 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12520 * doublest.c (extract_floating): Fix warning text.
12521
f3824013
AC
125222003-02-27 Andrew Cagney <cagney@redhat.com>
12523
12524 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12525 predicate. Replaces PUSH_DUMMY_FRAME.
12526 * gdbarch.h, gdbarch.c: Regnerate.
12527 * valops.c (hand_function_call): Update. Call
12528 generic_push_dummy_frame directly.
12529 * vax-tdep.c (vax_gdbarch_init): Update.
12530 * sparc-tdep.c (sparc_gdbarch_init): Update.
12531 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12532 * m68k-tdep.c (m68k_gdbarch_init): Update.
12533 * hppa-tdep.c (hppa_gdbarch_init): Update.
12534 * alpha-tdep.c (alpha_gdbarch_init): Update.
12535 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12536 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12537 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12539 push_dummy_frame to generic_push_dummy_frame.
12540 * v850-tdep.c (v850_gdbarch_init): Ditto.
12541 * sh-tdep.c (sh_gdbarch_init): Ditto.
12542 * s390-tdep.c (s390_gdbarch_init): Ditto.
12543 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12545 * mips-tdep.c (mips_gdbarch_init): Ditto.
12546 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12548 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12549 * i386-tdep.c (i386_gdbarch_init): Ditto.
12550 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12551 * frv-tdep.c (frv_gdbarch_init): Ditto.
12552 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12553 * cris-tdep.c (cris_gdbarch_init): Ditto.
12554 * avr-tdep.c (avr_gdbarch_init): Ditto.
12555 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12556
ad188201
KB
125572003-02-26 Kevin Buettner <kevinb@redhat.com>
12558
12559 * mips-tdep.c (show_mips_abi): New function.
12560 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12561 command ``show mips abi''.
12562
6b37567a 125632003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12564
6b37567a 12565 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12566 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12567 more sline entries have been seen for the function.
12568
d3e0a5bf
MC
125692003-02-26 Michael Chastain <mec@shout.net>
12570
12571 * configure: Regenerate with autoconf 000227.
12572
18972eea
MC
125732003-02-26 Michael Chastain <mec@shout.net>
12574
12575 Close PR build/660.
12576 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12577 for old libc5/glibc.
12578 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12579
0bbde931
KW
125802003-02-26 Kris Warkentin <kewarken@qnx.com>
12581
12582 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12583 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12584
27ca5dad
MC
125852003-02-26 Michael Chastain <mec@shout.net>
12586
12587 * configure.in: New variable HAVE_UINTPTR_T.
12588 * configure, config.in: Regenerated.
12589
6f88d630
DJ
125902003-02-26 Daniel Jacobowitz <drow@mvista.com>
12591
12592 Fix PR build/1097.
12593 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12594
b14185ce
AC
125952003-02-25 Andrew Cagney <cagney@redhat.com>
12596
12597 * frame.c (get_prev_frame): Add comment on check for
12598 inside_entry_func. Only check for inside_entry_file when not a
12599 dummy and not a sentinel. Check that the new frame is not inner
12600 to the old frame.
12601
ac2bd0a9
AC
126022003-02-25 Andrew Cagney <cagney@redhat.com>
12603
12604 * frame.c (frame_debug): New variable.
12605 (_initialize_frame): Add "set/show debug frame" command.
12606 (get_prev_frame): When frame_debug, print reason why unwind
12607 failed.
12608
b18a0fd2
MC
126092003-02-25 Michael Chastain <mec@shout.net>
12610
12611 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12612 to avoid uintptr_t definition problems.
12613
22abf04a
DC
126142003-02-25 David Carlton <carlton@math.stanford.edu>
12615
12616 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12617 (SYMBOL_LINKAGE_NAME): Ditto.
12618 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12619 SYMBOL_LINKAGE_NAME.
12620 (struct general_symbol_info): Expand comment.
12621 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12622 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12623 (SYMBOL_MATCHES_REGEXP): Ditto.
12624 * symtab.c (symbol_natural_name): New function.
12625 * objfiles.h: Replace all uses of SYMBOL_NAME by
12626 DEPRECATED_SYMBOL_NAME.
12627 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12628 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12629 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12630 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12631 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12632 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12633 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12634 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12635 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12636 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12637 * ada-exp.y: Ditto.
12638 * ada-exp.y: Update copyright.
12639 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12640 * cp-valprint.c: Ditto.
12641
1a5848f6
JJ
126422003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12643
12644 * infptrace.c (detach): Do not flag error if ptrace detach fails
12645 and errno is set to ESRCH.
12646
7343d46a
AC
126472003-02-24 Andrew Cagney <cagney@redhat.com>
12648
12649 * infptrace.c (udot_info): Change type of udot_off to long. Use
12650 paddr when printing udot_off's value.
12651
49fa1dc2
DC
126522003-02-24 David Carlton <carlton@math.stanford.edu>
12653
12654 * symtab.c (make_symbol_overload_list): Only read in partial
12655 symtabs containing a matching partial symbol.
12656
0fe19209
DC
126572003-02-24 David Carlton <carlton@math.stanford.edu>
12658
12659 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12660 do the comparison, not strcmp.
12661 * symfile.c (compare_psymbols): Ditto.
12662 * defs.h: Declare strcmp_iw_ordered.
12663 * utils.c (strcmp_iw_ordered): New function.
12664
8e3ee7b5
JB
126652003-02-24 Jim Blandy <jimb@redhat.com>
12666
12667 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12668 support, shared libs): Remove my name from here, to better reflect
12669 reality.
12670
7df1a324
KW
126712003-02-24 Kris Warkentin <kewarken@qnx.com>
12672
12673 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12674 (target_ops): Add to_have_continuable_watchpoint.
12675 * target.c (update_current_target): Add INHERIT line for
12676 to_have_continuable_watchpoint.
12677 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12678 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12679 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12680 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12681
d1c76907
EZ
126822003-02-24 Elena Zannoni <ezannoni@redhat.com>
12683
12684 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12685 maintainership.
12686
2610b0bf
KW
126872003-02-24 Kris Warkentin <kewarken@qnx.com>
12688
f46169db
KW
12689 * solib.c (solib_open): Call target defined search function after
12690 failing with solib-search-path.
12691 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12692 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12693
9a3c34fe
KW
126942003-02-24 Kris Warkentin <kewarken@qnx.com>
12695
f46169db 12696 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12697
2417dd25
SC
126982003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12699
12700 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12701
b631436b
SC
127022003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12703
12704 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12705 (m68hc11_add_reggroups): New function.
12706 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12707 (m68hc11_gdbarch_init): Install the reggroups.
12708 (_initialize_m68hc11_tdep): Initialize them.
12709
0aa8c1e4
JW
127102003-02-21 James E Wilson <wilson@tuliptree.org>
12711
12712 * MAINTAINERS: Update my email address.
12713
50ceaba5
DC
127142003-02-21 David Carlton <carlton@math.stanford.edu>
12715
12716 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12717
4c2df51b
DJ
127182003-02-21 Daniel Jacobowitz <drow@mvista.com>
12719
12720 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12721 * symtab.h: Add opaque declarations of struct axs_value and
12722 struct agent_expr.
12723 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12724 (struct location_funcs): New type.
12725 (struct symbol): Add "loc" to aux_value.
12726 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12727 * dwarf2read.c: Include "dwarf2expr.h".
12728 (dwarf2_symbol_mark_computed): New function.
12729 (read_func_scope): Use it.
12730 (var_decode_location): New function.
12731 (new_symbol): Use it.
12732 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12733
12734 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12735 (dwarf2expr_h, dwarf2loc_h): New variables.
12736 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12737 (dwarf2expr.o, dwarf2loc.o): New rules.
12738 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12739 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12740 LOC_COMPUTED_ARG.
12741 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12742 * m2-exp.y (yylex): Likewise.
12743 * printcmd.c (address_info, print_frame_args): Likewise.
12744 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12745 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12746 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12747 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12748 * symtab.c (lookup_block_symbol): Likewise.
12749
5784d15e
AF
127502003-02-20 Adam Fedor <fedor@gnu.org>
12751
12752 * symtab.h: Remove objc_specific struct
12753 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12754 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12755 Have language_objc use cplus_specific struct.
12756
d4cad8db
TT
127572003-02-20 Tom Tromey <tromey@redhat.com>
12758
12759 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12760 TYPE_NAME, when printing a String value. PR java/1075.
12761
2f9a90b4
AF
127622003-02-20 Adam Fedor <fedor@gnu.org>
12763
d38074a8 12764 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12765 * objc-lang.c (find_methods): Make static.
2f9a90b4 12766
6f17862b
CF
127672003-02-20 Christopher Faylor <cgf@redhat.com>
12768
12769 * win32-nat.c (get_image_name): Check return value from
12770 ReadProcessMemory.
12771 (child_xfer_memory): Ditto.
12772
715d1656
AO
127732003-02-20 Alexandre Oliva <aoliva@redhat.com>
12774
12775 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12776 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12777 '${exec_prefix}' (in addition to the expansion thereof) as
12778 relocatable.
12779 * configure: Rebuilt.
12780
b1262a02
DC
127812003-02-20 David Carlton <carlton@math.stanford.edu>
12782
12783 * symtab.c (search_symbols): Revert the search_symbols part of my
12784 2002-12-23 patch. Add comment.
12785
7134143f
DJ
127862002-02-20 Daniel Jacobowitz <drow@mvista.com>
12787
12788 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12789 * dbxread.c (elfstab_build_psymtabs): Don't call
12790 install_minimal_symbols.
12791 (stabsect_build_psymtabs): Likewise.
12792 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12793 earlier.
12794 * somread.c (som_symfile_read): Call install_minimal_symbols
12795 and do_cleanups earlier.
12796 * nlmread.c (nlm_symfile_read): Likewise.
12797 * mdebugread.c (elfmdebug_build_psymtabs): Call
12798 install_minimal_symbols and make appropriate cleanups.
12799
cf466558
KB
128002003-02-20 Kevin Buettner <kevinb@redhat.com>
12801
12802 * solib.c (reload_shared_libraries): New function.
12803 (_initialize_solib): Add callbacks for ``set solib-search-path''
12804 and ``set solib-absolute-prefix''.
12805
de5ad195
DC
128062003-02-20 David Carlton <carlton@math.stanford.edu>
12807
12808 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12809 expand comment.
12810 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12811 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12812 * ada-typeprint.c (ada_typedef_print): Ditto.
12813 * ax-gdb.c (gen_var_ref): Ditto.
12814 * breakpoint.c (print_one_breakpoint): Ditto.
12815 * buildsym.c (finish_block): Ditto.
12816 * c-valprint.c (c_val_print): Ditto.
12817 * expprint.c (print_subexp): Ditto.
12818 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12819 * infcmd.c (jump_command): Ditto.
12820 * linespec.c (decode_line_2, decode_compound): Ditto.
12821 * maint.c (maintenance_translate_address): Ditto.
12822 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12823 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12824 Ditto.
8ffd9b1b
AJ
12825 * p-valprint.c (pascal_val_print): Ditto.
12826 * stabsread.c (define_symbol): Ditto.
de5ad195 12827 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12828 (print_frame_arg_vars, return_command): Ditto.
12829 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12830 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12831 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12832 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12833 (rbreak_command): Ditto.
12834 * tracepoint.c (tracepoints_info): Ditto.
12835 * typeprint.c (typedef_print): Ditto.
12836 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12837 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12838 * ada-typeprint.c: Update Copyright.
12839 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12840 * tracepoint.c, cli/cli-cmds.c: Ditto.
12841
f796e4be
KB
128422003-02-20 Kevin Buettner <kevinb@redhat.com>
12843
12844 * frame.c (generic_unwind_get_saved_register): Make non-static.
12845 * frame.h (generic_unwind_get_saved_register): Declare.
12846 * mips-tdep.c (read_next_frame_reg): Fetch register from
12847 current regcache when frame is NULL.
12848 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12849 that must be NULL.
12850 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12851 instead of frame_register_unwind().
12852
836cc9f4
AC
128532003-02-20 Andrew Cagney <ac131313@redhat.com>
12854
12855 * remote-sim.c (gdbsim_insert_breakpoint)
12856 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12857 code.
12858
501eef12
AC
128592003-02-20 Andrew Cagney <ac131313@redhat.com>
12860
12861 * remote.c (_initialize_remote): Add commands "set/show remote
12862 hardware-watchpoint-limit" and "set/show remote
12863 hardware-breakpoint-limit".
12864 (remote_hw_watchpoint_limit): Initialize to -1.
12865 (remote_hw_breakpoint_limit): Ditto.
12866 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12867
1b6bc7e0
CF
128682003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12869
12870 * coff-pe-read.c: New file - support reading of minimal symbols from a
12871 portable executable using the export table.
12872 * coff-pe-read.h: New file.
12873 * coffread.c: Include coff-pe-read.h.
12874 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12875 debugging symbols found.
12876 * Makefile.in (SFILES): Add coff-pe-read.o.
12877 (coff_pe_read_h): Define.
12878 (COMMON_OBS): Add coff-pe-read.o.
12879 (coffread.o): Add coff_pe_read_h dependency.
12880 (coff-pe-read.o): New target.
12881
fe898f56
DC
128822003-02-19 David Carlton <carlton@math.stanford.edu>
12883
12884 * Makefile.in (SFILES): Add block.c.
12885 (block_h): New.
12886 (COMMON_OBS): Add block.o.
12887 (block.o): New.
12888 (x86-64-tdep.o): Add $(block_h).
12889 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12890 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12891 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12892 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12893 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12894 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12895 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12896 * value.h: Add opaque declaration for struct block.
12897 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12898 * ada-lang.h: Ditto.
12899 * x86-64-tdep.c: #include "block.h"
12900 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12901 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12902 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12903 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12904 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12905 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12906 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12907 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12908 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12909 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12910 * symtab.c (block_function): Ditto.
12911 (contained_in): Ditto.
12912 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12913 block.h. Add opaque declaration for struct block.
12914 * symtab.h: Move block_function and contained_in declarations to
12915 block.h. Add opaque declarations for struct block, struct
12916 blockvector.
12917 (struct block): Move to block.h.
12918 (struct blockvector): Ditto.
12919 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12920 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12921 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12922 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12923 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12924 Ditto.
12925 * block.c: New file.
12926 * block.h: New file.
12927
173345b5
TR
129282003-02-19 Theodore A. Roth <troth@openavr.org>
12929
12930 * avr-tdep.c (avr_extract_return_value): Remove function.
12931 (avr_store_return_value): Remove function.
12932 (avr_extract_struct_value_address): Remove function.
12933 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12934
338ef23d
AC
129352003-02-19 Andrew Cagney <ac131313@redhat.com>
12936
12937 * rs6000-tdep.c: Include "gdb_assert.h".
12938 (registers_e500): Add "acc" and "spefscr".
12939 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12940 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12941 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12942 really is "r0".
12943 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12944
5412f5f3
KS
129452003-02-18 Keith Seitz <keiths@redhat.com>
12946
12947 * Makefile.in: Add gdbtk-interps.c.
12948
881324eb
KB
129492003-02-18 Kevin Buettner <kevinb@redhat.com>
12950
12951 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12952 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12953
6a2f5abf
AC
129542003-02-18 Andrew Cagney <cagney@redhat.com>
12955
12956 * symtab.h (struct objfile): Add opaque declaration.
12957
54c7009d
EZ
129582003-02-18 Elena Zannoni <ezannoni@redhat.com>
12959
12960 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12961 * dbxread.c (process_one_symbol): Use last_function_start rather
12962 than function_start_offset to find the real beginning of the
12963 current function. The latter is just the text section offset on
12964 some systems, the former is always the real function start.
54c7009d 12965
7ee6d7eb
AC
129662003-02-17 Andrew Cagney <cagney@redhat.com>
12967
12968 * configure.in: Revert ${target} != ${host}.
12969
2846da9b
AC
129702003-02-17 Andrew Cagney <ac131313@redhat.com>
12971
12972 * configure.in (Makefile): Use the test ${target} != ${host},
12973 instead of the absence of the "nm.h" file, to determine of the
12974 configuration non-native.
12975 * configure: Regenerate.
8ffd9b1b 12976
3b27aeea
EZ
129772003-02-14 Elena Zannoni <ezannoni@redhat.com>
12978
fbe586ae 12979 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12980
12981 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12982 conditionalize tui_active test.
12983 (lookup_cmd_1): Ditto.
12984
b0b1c2c0
MK
129852003-02-14 Mark Kettenis <kettenis@gnu.org>
12986
12987 * configure.in: Add check for _etext.
12988 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12989 available.
12990 * config.in, configure: regenerated.
12991
8f05cde5
DJ
129922003-02-14 Daniel Jacobowitz <drow@mvista.com>
12993
12994 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12995
021e7609
AC
129962003-02-14 Andrew Cagney <ac131313@redhat.com>
12997
12998 * main.c (tui_version): Delete variable.
12999 (captured_main): When --tui, set interpreter_p to "tui" instead of
13000 enabling tui_version.
13001 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13002 tui_version.
13003 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13004 * cli/cli-cmds.c (disassemble_command): Ditto.
13005 * defs.h (tui_version): Delete declaration.
13006 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13007 (tui-interp.o): Add rules.
13008 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13009
e325dcec
CF
130102003-02-14 Christopher Faylor <cgf@redhat.com>
13011
36ffb041 13012 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13013 just-loaded dll.
13014
c4f90d87
JM
130152003-02-12 Jason Molenda (jmolenda@apple.com)
13016
fbe586ae
RH
13017 * symmisc.c (print_objfile_statistics): Include information about
13018 the number of psymtabs and symtabs in each object file.
c4f90d87 13019
e46e5ccd
KS
130202003-02-13 Keith R Seitz <keiths@redhat.com>
13021
13022 * main.h (struct captured_main_args): Add interpreter_p.
13023 * main.c (captured_main): Initialize interpreter_p from context.
13024 * gdb.c (main): Set interpreter_p argument.
13025 * Makefile.in (gdb.o): Add dependency for interps.h.
13026
fe97fe9c
AC
130272003-02-12 Andrew Cagney <ac131313@redhat.com>
13028
13029 * event-top.c (cli_command_loop): Delete declaration.
13030 (_initialize_event_loop): Delete function setting event_loop_hook.
13031 * event-top.h (cli_command_loop): Declare. Update copyright.
13032 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13033 * interps.c (current_interp_command_loop): When event_loop_p, call
13034 cli_command_loop.
13035
1cdac4ef
AC
130362003-02-12 Andrew Cagney <ac131313@redhat.com>
13037
13038 * interps.h (interp_command_loop_ftype): Change return type to
13039 void.
13040
48037ead
ML
130412003-02-12 Michal Ludvig <mludvig@suse.cz>
13042
13043 * x86-64-tdep.c (x86_64_extract_return_value)
13044 (x86_64_store_return_value): Use regcache instead of regbuf.
13045 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13046 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13047
033afc63
AC
130482003-02-11 Andrew Cagney <ac131313@redhat.com>
13049
13050 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13051 * aclocal.m4: Regenerate.
13052 * configure: Regenerate.
13053
13054 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13055 TCL_LD_SEARCH_FLAGS.
13056
40d02bca
ML
130572003-02-10 Michal Ludvig <mludvig@suse.cz>
13058
13059 * dwarf2cfi.c: Reindented.
13060
11308a41
AC
130612003-02-09 Andrew Cagney <ac131313@redhat.com>
13062
13063 * interps.c (clear_interpreter_hooks): Convert function definition
13064 to ISO C.
13065
e1c1c0f6
DC
130662003-02-07 David Carlton <carlton@math.stanford.edu>
13067
13068 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13069
ab5d3da6
KB
130702003-02-07 Kevin Buettner <kevinb@redhat.com>
13071
13072 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13073 (struct type): ...to here.
13074 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13075 field.
13076 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13077 (replace_type): Set length on all type variants for a given type.
13078
b8a92b82
AC
130792003-02-07 Andrew Cagney <ac131313@redhat.com>
13080
13081 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13082 <sys/stat.h>.
13083 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13084
5cb316ef
AC
130852003-02-06 Andrew Cagney <ac131313@redhat.com>
13086
2555fe1a
AC
13087 * Makefile.in (symm-nat.o): Update dependencies.
13088 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13089 (lynx-nat.o, ia64-linux-nat.): Ditto.
13090 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13091 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13092 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13093
44270758
AC
13094 * Makefile.in (inflow_h): Define.
13095 (procfs.o, inflow.o, procfs.o): Update dependencies.
13096 * inftarg.c (child_stop): Delete extern declaration of
13097 inferior_process_group. Include "inflow.h".
13098 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13099 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13100 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13101 (our_process_group, inferior_process_group): Extern declarations.
13102
df8f7274
AC
13103 * procfs.c: Include "gdb_assert.h".
13104
5cb316ef
AC
13105 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13106 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13107 * jv-typeprint.c (java_type_print_base): Ditto.
13108 * typeprint.c (typedef_print): Eliminate STREQ.
13109 * cli/cli-script.c (define_command, define_command): Ditto.
13110 * main.c (captured_main): Ditto.
13111 * values.c (lookup_internalvar): Ditto.
13112 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13113 within `if' conditional.
13114 * linespec.c (decode_line_2): Ditto.
13115 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13116 (bfd_openw_with_cleanup): Ditto.
13117
2a28ccea
MK
131182003-02-07 Mark Kettenis <kettenis@gnu.org>
13119
13120 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13121 legacy_extract_return_value and store_return_value to
13122 legacy_return_value.
13123
786b8124
CF
131242003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13125
13126 * win32-nat.c (get_relocated_section_addrs): New function. Find
13127 section load addresses for symbol handling in relocated DLLs.
13128 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13129
b871e4ec
FF
131302003-02-05 Fred Fish <fnf@intrinsity.com>
13131
13132 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13133 '=' and '!='.
13134 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13135 with '&' and '=='.
13136 (angel_RDI_info): Ditto.
13137 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13138 with '&' and '!='.
13139 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13140
4389a95a 131412003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13142 Keith Seitz <keiths@redhat.com>
13143 Elena Zannoni <ezannoni@redhat.com>
13144 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13145
13146 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13147 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13148 (SUBDIR_MI_OBS): Add "mi-interp.o".
13149 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13150 (SFILES): Add "interps.c".
13151 (COMMON_OBS): Add "interps.o".
13152 (interps_h, mi_main_h): Define.
13153 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13154 (mi-main.o, main.o, event-top.o): Update dependencies.
13155 * cli/cli-interp.c: New file.
13156 * interps.h, interps.c: New files.
13157 * top.c: (gdb_init): Don't install the default interpreter, handed
13158 by captured_main.
13159 * main.c: Include "interps.h".
13160 (interpreter_p): Note that it should malloc'ed.
13161 (captured_command_loop): Call current_interp_command_loop.
13162 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13163 xfree and xstrdup when updating interpreter_p. Install the
13164 default interpreter. Add hack to stop mi1's copyright notice
13165 being encoded.
13166 * event-top.h (gdb_setup_readline): Declare.
13167 (gdb_disable_readline): Declare.
13168 * event-top.c: Include "interps.h".
13169 (display_gdb_prompt): Call current_interp_display_prompt_p.
13170 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13171 gdb_stdlog, and gdb_stdtarg.
13172 (_initialize_event_loop): Don't call gdb_setup_readline.
13173 * cli-out.c (cli_out_set_stream): New function.
13174 * cli-out.h (cli_out_set_stream): Declare.
13175
ff3b5810
MK
131762003-02-06 Mark Kettenis <kettenis@gnu.org>
13177
13178 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13179 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13180 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13181 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13182 config/i386/i386v42mp.mt: Removed.
13183
5b729aa5
MK
131842003-02-05 Mark Kettenis <kettenis@gnu.org>
13185
13186 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13187 GDB_OSABI_SOLARIS.
13188
8cc15142
MC
131892003-02-05 Michael Chastain <mec@shout.net>
13190
13191 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13192 2.12.1 and earlier versions.
13193
5aa5d4b9
AC
131942003-02-05 Andrew Cagney <ac131313@redhat.com>
13195
13196 Remove orphaned hosts, targets and files.
13197 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13198 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13199 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13200 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13201 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13202 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13203 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13204 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13205 * config/sparc/tm-sp64sim.h: Delete.
13206 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13207 hosts.
13208 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13209 mips*-dec-mach3* targets.
13210
b68767c1
MC
132112003-02-04 Michael Chastain <mec@shout.net>
13212
13213 * NEWS: Fix typo: sepcifying -> specifying.
13214
5ae7ca1d
MC
132152003-02-04 Michael Chastain <mec@shout.net>
13216
13217 * dwarfread.c: Add documentation on the state of dwarf-1,
13218 looking towards obsoletion.
13219
d08a4280
MC
132202003-02-03 Michael Chastain <mec@shout.net>
13221
13222 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13223 gdb/testsuite/gdb.c++/pr-1023.exp.
13224
e9be73e4
AC
132252003-02-04 Andrew Cagney <ac131313@redhat.com>
13226
13227 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13228 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13229
13230 * utils.c (init_page_info): Delete reference to MPW in comments.
13231 * main.c (captured_main): Delete #ifdef MPW.
13232
05d57f6f
AC
132332003-02-04 Andrew Cagney <ac131313@redhat.com>
13234
8ffd9b1b 13235 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13236 * monitor.c (monitor_expect): Obsolete reference to m32r.
13237 * configure.tgt: Mark m32r-*-elf* as obsolete.
13238 * MAINTAINERS: Mark m32k as obsolete.
13239 * m32r-rom.c: Obsolete file.
13240 * config/m32r/m32r.mt: Obsolete file.
13241 * config/m32r/tm-m32r.h: Obsolete file.
13242 * m32r-stub.c: Obsolete file.
13243 * m32r-tdep.c: Obsolete file.
13244
8b0e5691
AC
132452003-02-04 Andrew Cagney <ac131313@redhat.com>
13246
13247 * NEWS: Mention that the z8k-zilog-none is obsolete.
13248 * MAINTAINERS: Mark z8k as obsolete.
13249 * configure.tgt: Obsolete the z8k-*-coff* target.
13250 * config/z8k/z8k.mt: Obsolete file.
13251 * config/z8k/tm-z8k.h: Obsolete file.
13252 * z8k-tdep.c: Obsolete file.
13253
67f16606
AC
132542003-02-04 Andrew Cagney <ac131313@redhat.com>
13255
13256 * NEWS: Mention that the mn10200-elf is obsolete.
13257 * configure.tgt: Obsolete mn10200-*-* target.
13258 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13259 mention that the mn10200 is obsolete.
13260 * breakpoint.h: Ditto.
13261 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13262 * config/mn10200/mn10200.mt: Obsolete file.
13263 * config/mn10200/tm-mn10200.h: Obsolete file.
13264 * mn10200-tdep.c: Obsolete file.
13265
fd2299bd
AC
132662003-02-04 Andrew Cagney <ac131313@redhat.com>
13267
13268 * MAINTAINERS: Mark h8500 as obsolete.
13269 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13270 * findvar.c (value_from_register): Ditto.
13271 * h8500-tdep.c: Mark file as obsolete.
13272 * config/h8500/h8500.mt: Ditto.
13273 * config/h8500/tm-h8500.h: Ditto.
13274 * NEWS: Mention that h8500 is obsolete.
13275
eb9a305d
DC
132762003-02-04 David Carlton <carlton@math.stanford.edu>
13277
13278 * objfiles.c (allocate_objfile): Always set name. Add comment at
13279 start of function.
13280 * jv-lang.c (get_dynamics_objfile): Add comment.
13281
406fc7fb
DC
132822003-02-04 David Carlton <carlton@math.stanford.edu>
13283
13284 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13285 * printcmd.c (build_address_symbolic): Replace uses of
13286 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13287 SYMBOL_NAME, and asm_demangle.
13288 Update copyright.
13289
93d91629
DC
132902003-02-04 David Carlton <carlton@math.stanford.edu>
13291
13292 * linespec.c (decode_compound): Extract code into
13293 lookup_prefix_sym.
13294 (lookup_prefix_sym): New function.
13295
1c5cb38e
DC
132962003-02-04 David Carlton <carlton@math.stanford.edu>
13297
13298 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13299 FLOAT_COERCION_BADNESS.
13300 * gdbtypes.c (rank_one_type): Replace all uses of
13301 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13302
0cf824c9
JB
133032003-02-04 Jim Blandy <jimb@redhat.com>
13304
13305 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13306 section, let dwarf_macinfo_section point to it, not
13307 dwarf_loc_section.
13308
a2d356b0
DJ
133092003-02-04 Daniel Jacobowitz <drow@mvista.com>
13310
13311 Pointed out by Anton Blanchard <anton@samba.org>.
13312 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13313 (ppc_linux_at_sigtramp_return_path): Use it.
13314
2de7ced7
DJ
133152003-02-04 Daniel Jacobowitz <drow@mvista.com>
13316
13317 * defs.h (streq): Add prototype.
13318 * utils.c (streq): New function.
13319
13320 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13321 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13322 * mdebugread.c (new_symbol): Likewise.
13323 * stabsread.c (define_symbol): Likewise.
13324 * coffread.c (process_coff_symbol): Likewise.
13325 * dwarfread.c (new_symbol): Likewise.
13326
13327 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13328 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13329 here.
13330 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13331 SYMBOL_INIT_DEMANGLED_NAME.
13332 * objfiles.c: Include "hashtab.h".
13333 (allocate_objfile): Call htab_set_functions_ex for the
13334 demangled_names_hash.
13335 (free_objfile): Call htab_delete for the demangled_names_hash.
13336 * objfiles.h (struct htab): Add declaration.
13337 (struct objfile): Add demangled_names_hash.
13338 * symfile.c: Include "hashtab.h".
13339 (reread_symbols): Call htab_delete for the demangled_names_hash.
13340 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13341 SYMBOL_NAME in the bcache.
13342 * symtab.c: Include "hashtab.h". Update comments.
13343 (create_demangled_names_hash, symbol_set_names): New functions.
13344 (symbol_find_demangled_name): New function, broken out from
13345 symbol_init_demangled_names.
13346 (symbol_init_demangled_names): Use it.
13347 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13348 (SYMBOL_SET_NAMES): New macro.
13349 (symbol_set_names): Add prototype.
13350
15831452
JB
133512003-02-03 Jim Blandy <jimb@redhat.com>
13352
13353 Use a single, consistent representation for an empty minimal
13354 symbol table in an objfile.
13355 * objfiles.c (terminate_minimal_symbol_table): New function.
13356 (allocate_objfile): Call it.
13357 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13358 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13359 non-NULL.
15831452
JB
13360 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13361 objfile has minimal symbols, compare minimal_symbol_count to zero,
13362 instead of comparing msymbols with NULL.
13363 * objfiles.c (have_minimal_symbols): Same.
13364 * solib-sunos.c (solib_add_common_symbols): Call
13365 terminate_minimal_symbol_table.
13366 * symfile.c (reread_symbols): Same.
8ffd9b1b 13367
ffc65945
KB
133682003-02-03 Kevin Buettner <kevinb@redhat.com>
13369
13370 * s390-tdep.c (s390_address_class_type_flags)
13371 (s390_address_class_type_flags_to_name)
13372 (s390_address_class_name_to_type_flags): New functions.
13373 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13374 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13375
f211c6d4
MS
133762003-02-03 Michael Snyder <msnyder@redhat.com>
13377
13378 * arm-tdep.c: Fix spell-o in comment.
13379
659b0389
ML
133802003-02-03 Michal Ludvig <mludvig@suse.cz>
13381
13382 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13383 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13384 error messages to contain BFD filename.
659b0389 13385
3b31d625
EZ
133862003-02-02 Elena Zannoni <ezannoni@redhat.com>
13387
997b089a 13388 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13389 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13390 (do_mixed_source_and_assembly): Use
13391 make_cleanup_ui_out_tuple_begin_end and
13392 make_cleanup_ui_out_tuple_begin_end.
13393 (do_mixed_source_and_assembly): Ditto.
13394 * thread.c (do_captured_list_thread_ids): Ditto.
13395 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13396 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13397 ui_out_tuple_end): Delete prototypes.
13398 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13399 ui_out_list_end, ui_out_tuple_end): Delete.
13400
13401 From Kevin Buettner <kevinb@redhat.com>:
13402 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13403 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13404 (do_cleanup_table_end): New functions.
13405 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13406 Use cleanups to invoke_ui_out_tuple_end().
13407 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13408 * cli/cli-setshow.c (cmd_show_list): Use
13409 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13410
5b181d62
AC
134112003-02-02 Andrew Cagney <ac131313@redhat.com>
13412
13413 * frame.c (frame_unwind_register): New function.
13414 (frame_unwind_unsigned_register): Use.
13415 (frame_unwind_signed_register): Use.
13416 (frame_read_register): New function.
13417 * frame.h (frame_unwind_register): Declare.
13418 (frame_read_register): Declare.
13419
13420 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13421 and frame_unwind_register instead of read_memory, write_register
13422 and deprecated_write_register_bytes.
13423
5f601589
AC
134242003-02-02 Andrew Cagney <ac131313@redhat.com>
13425
13426 * frame.h: Note that namelen can be negative.
13427 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13428 NAME's length.
13429
13430 * NEWS: Mention that the d10v's `regs' command is deprecated.
13431 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13432 (d10v_print_registers_info): New function.
13433 (show_regs): Call d10v_print_registers_info.
13434 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13435
6a3fe0a4
MK
134362003-02-02 Mark Kettenis <kettenis@gnu.org>
13437
13438 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13439 lost in the previous patch.
13440
075559bc
AC
134412003-02-01 Andrew Cagney <ac131313@redhat.com>
13442
13443 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13444 * stack.c (print_frame_info_base): Output complete FRAME tuple
13445 for synthesized frames.
075559bc 13446
6789195b
AC
134472003-02-02 Andrew Cagney <ac131313@redhat.com>
13448
13449 * mips-nat.c (zerobuf): Delete.
13450 (fetch_inferior_registers): Alloc local zerobuf.
13451 (fetch_core_registers): Alloc local zerobuf.
13452 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13453 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13454 * thread-db.c (thread_db_store_registers): Ditto.
13455 * sh-tdep.c (sh_do_register): Ditto.
13456 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13457 * remote-sim.c (gdbsim_store_register): Ditto.
13458 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13459 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13460 * monitor.c (monitor_supply_register): Ditto.
13461 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13462 * mips-nat.c (fetch_inferior_registers): Ditto.
13463 * m68klinux-nat.c (fetch_register): Ditto.
13464 * lynx-nat.c (fetch_inferior_registers): Ditto.
13465 (fetch_inferior_registers): Ditto.
13466 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13467 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13468 (hpux_thread_store_registers): Ditto.
13469 * hppah-nat.c (fetch_register): Ditto.
13470 * hppab-nat.c (fetch_register): Ditto.
13471 * hppa-tdep.c (pa_register_look_aside): Ditto.
13472 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13473 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13474
e669114a
AC
134752003-02-01 Andrew Cagney <ac131313@redhat.com>
13476
13477 * gdbarch.sh: Explictly specify all method levels. When a
13478 variable with an empty level, provide a non-multi-arch default.
13479 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13480 * gdbarch.h: Re-generate.
13481 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13482 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13483
9a043c1d
AC
134842003-02-01 Andrew Cagney <ac131313@redhat.com>
13485
13486 * defs.h (host_pointer_to_address): Delete declaration.
13487 (address_to_host_pointer): Delete declaration.
13488 * utils.c (host_pointer_to_address): Delete function.
13489 (address_to_host_pointer): Delete function.
13490 * procfs.c (procfs_address_to_host_pointer): New function.
13491 * procfs.c (proc_set_watchpoint): Use.
13492 (procfs_can_use_hw_breakpoint): Update comments.
13493 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13494 (som_solib_add): Use.
13495 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13496 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13497
7ca9f392
AC
134982003-02-01 Andrew Cagney <ac131313@redhat.com>
13499
94bbfd30
AC
13500 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13501 strlen d_name.
13502
7ca9f392
AC
13503 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13504 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13505 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13506 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13507 (define_symbol): Update.
13508 * symfile.c (generic_load): Remove references to nindy.
13509 * symtab.c: Remove references to nindy.
13510
31a85ea2
AC
135112003-02-01 Andrew Cagney <ac131313@redhat.com>
13512
13513 * infcmd.c (print_float_info): Delete code conditional on
13514 FLOAT_INFO.
13515 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13516 * config/m68k/nm-apollo68b.h: Ditto.
13517 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13518 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13519 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13520
f6e85fc8
MK
135212003-02-01 Mark Kettenis <kettenis@gnu.org>
13522
6015b6a0
MK
13523 * config/i386/tm-i386os9k.h: Removed.
13524
f7a30bdf
MK
13525 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13526 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13527 they're identical to i[3456]86-*-sysv* now.
13528 * config/i386/i386v32.mh: Removed.
13529 * config/i386/xm-i386v32.h: Removed.
13530 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13531
28d52111
MK
13532 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13533
4d3f6bce
MK
13534 * config/i386/i386dgux.mh: Removed.
13535 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13536
f6e85fc8
MK
13537 * configure.in: Fix typo.
13538 * configure: Regenerated.
13539
53955967
DC
135402003-01-31 David Carlton <carlton@math.stanford.edu>
13541
13542 * dwarf2read.c (dwarf2_locate_sections): Set
13543 dwarf_ranges_section.
13544
b1364885
AC
135452003-01-31 Andrew Cagney <ac131313@redhat.com>
13546
8dbb1c65
AC
13547 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13548 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13549
8731e58e
AC
13550 * utils.c: Re-indent.
13551
b1364885
AC
13552 * config/djgpp/fnchange.lst: Delete nindy files.
13553 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13554 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13555 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13556 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13557 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13558 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13559 * Makefile.in (init.c): Remove nindy references.
13560 (saber_gdb): Delete rule.
13561 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13562 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13563 and a68v-nat.c.
13564 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13565 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13566 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13567 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13568 nindy-share/stop.h.
13569 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13570 * saber.suppress: Delete file.
13571
086df311
DJ
135722003-01-31 Daniel Jacobowitz <drow@mvista.com>
13573
13574 * dbxread.c (stabs_data): New static variable.
13575 (fill_symbuf): Support an in-memory buffer for stabs data.
13576 (stabs_seek): New function.
13577 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13578 (read_ofile_symtab): Use stabs_seek.
13579 (elfstab_build_psymtabs): Take an asection* instead of
13580 an offset and size. Relocate the stabs data if necessary.
13581 Save the section* for dbx_psymtab_to_symtab.
13582 * dwarf2read.c: Add section variables for each debug section.
13583 (dwarf2_locate_sections): Fill them in.
13584 (dwarf2_read_section): Take an asection* argument.
13585 Relocate the section contents if necessary.
13586 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13587 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13588 it to dwarf2_read_section.
13589 (dwarf2_build_frame_info): Update callers.
13590 * elfread.c (elf_symfile_read): Update call to
13591 elfstab_build_psymtabs.
13592 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13593 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13594 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13595 * symfile.c (symfile_dummy_outputs): New function.
13596 (symfile_relocate_debug_section): New function.
13597 * symfile.h (symfile_relocate_debug_section): Add prototype.
13598
87d1b352
RH
135992003-01-31 Richard Henderson <rth@redhat.com>
13600
13601 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13602 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13603 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13604 * alpha-tdep.c (alpha_register_name): Add "unique".
13605 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13606 (ALPHA_UNIQUE_REGNUM): New.
13607 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13608
c48861fb
AC
136092003-01-31 Andrew Cagney <ac131313@redhat.com>
13610
13611 * README: Remove reference to Ericsson 1800 monitor.
13612 * Makefile.in (remote-es.o): Delete rule.
13613 (ALLDEPFILES): Delete remote-es.c.
13614 * remote-es.c: Delete file.
13615 * config/m68k/es1800.mt: Delete file.
13616 * config/djgpp/fnchange.lst: Update.
13617 * configure.tgt: Delete m68*-ericsson-* target.
13618
d764a824
AF
136192003-01-31 Adam Fedor <fedor@gnu.org>
13620
13621 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13622 Remove duplicate/shadowing variable of same name.
13623
fe36c4f4
JB
136242003-01-30 Jim Blandy <jimb@redhat.com>
13625
13626 * symfile.c (find_separate_debug_file): Assert that the objfile's
13627 directory name we compute ends with a slash, and then assume that
13628 that's so everywhere we use it.
13629
cb741690
DJ
136302003-01-30 Daniel Jacobowitz <drow@mvista.com>
13631
13632 * valops.c (value_assign): Flush frame cache after stores to memory
13633 also.
13634
96ee5227
AC
136352003-01-30 Andrew Cagney <ac131313@redhat.com>
13636
13637 * Makefile.in (mon960-rom.o): Delete rule.
13638 * mon960-rom.c: Delete file.
13639
7f6104a9
AC
136402003-01-30 Andrew Cagney <ac131313@redhat.com>
13641
13642 * d10v-tdep.c: Include "frame-unwind.h".
13643 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13644 list.
13645 (next_addr, uses_frame): Delete.
13646 (struct d10v_unwind_cache): Define.
13647 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13648 Use info instead of next_addr and uses_frame globals.
13649 (d10v_frame_init_saved_regs): Delete function.
13650 (d10v_init_extra_frame_info): Delete function.
13651 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13652 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13653 init_frame_pc or frame_saved_pc.
13654 (d10v_pop_frame): Delete function.
13655 (do_d10v_pop_frame): Delete function.
13656 (d10v_frame_chain): Delete function.
13657 (d10v_frame_chain_valid): Delete function.
13658 (d10v_frame_pc_unwind): New function.
13659 (d10v_frame_id_unwind): New function.
13660 (saved_regs_unwinder): New function.
13661 (d10v_frame_register_unwind): New function.
13662 (d10v_frame_pop): New function.
13663 (d10v_frame_unwind): New variable.
13664 (d10v_frame_p): New function.
13665 (d10v_frame_saved_pc): Delete function.
13666 * Makefile.in (d10v-tdep.o): Update dependencies.
13667
cad2e848
JB
136682003-01-30 J. Brobecker <brobecker@gnat.com>
13669
13670 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13671 causing some regressions due to a change in the default value
13672 for this macro.
13673
af34e669
DJ
136742003-01-29 Richard Henderson <rth@redhat.com>
13675 Elena Zannoni <ezannoni@redhat.com>
13676 Daniel Jacobowitz <drow@mvista.com>
13677
13678 Fix PR gdb/961.
8ffd9b1b 13679 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13680 variables.
13681 (RANGES_SECTION): New.
13682 (dwarf_ranges_buffer): New variable.
13683 (struct comp_unit_head): Add member "die".
13684 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13685 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13686 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13687 (dwarf2_locate_sections): Likewise.
13688 (dwarf2_build_psymtabs): Read .debug_ranges.
13689 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13690 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13691 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13692 Look for DW_AT_ranges and return the bounding box.
13693
baa93fa6
CF
136942003-01-29 Brian Ford <ford@vss.fsi.com>
13695
13696 * win32-nat.c (cygwin_pid): Removed as unused.
13697 (child_attach): Try fall back to Cygwin pid.
13698
c63f977f
JB
136992003-01-29 Jim Blandy <jimb@redhat.com>
13700
13701 * objfiles.h (struct objfile): Doc fix.
13702
d62d1979
AC
137032003-01-29 Andrew Cagney <ac131313@redhat.com>
13704
13705 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13706 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13707 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13708 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13709 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13710 (FRAME_SAVED_PC): Change to a function with predicate.
13711 * gdbarch.h, gdbarch.c: Re-generate.
13712
1ae18a04
AC
137132003-01-28 Andrew Cagney <ac131313@redhat.com>
13714
52287340
AC
13715 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13716
1ae18a04
AC
13717 * complaints.c (complain): Delete function.
13718 * complaints.h (struct deprecated_complaint): Delete definition.
13719 (complain): Delete declaration.
13720
f2c16bd6
KB
137212003-01-28 Kevin Buettner <kevinb@redhat.com>
13722
13723 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13724 dummy frames.
13725
a94dd1fd
AC
137262003-01-27 Andrew Cagney <ac131313@redhat.com>
13727
13728 * sentinel-frame.h, sentinel-frame.c: New files.
13729 * Makefile.in (frame.o): Update dependencies.
13730 (SFILES): Add sentinel-frame.c.
13731 (sentinel_frame_h): Define.
13732 (COMMON_OBS): Add sentinel-frame.o.
13733 (sentinel-frame.o): Specify dependencies.
13734 * frame.c: Include "sentinel-frame.h".
13735 (frame_register_unwind): Rewrite assuming that there is always a a
13736 ->next frame.
13737 (frame_register, generic_unwind_get_saved_register): Ditto.
13738 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13739 (create_sentinel_frame, unwind_to_current_frame): New functions.
13740 (get_current_frame): Rewrite using create_sentinel_frame and
13741 unwind_to_current_frame. When possible, always create a frame.
13742 (create_new_frame): Set next to the sentinel frame.
13743 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13744 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13745 ID cache when necessary.
13746 (frame_saved_regs_id_unwind): Use frame_relative_level.
13747 (deprecated_generic_get_saved_register): Use frame_relative_level,
13748 get_frame_saved_regs, get_frame_pc, get_frame_base and
13749 get_next_frame.
13750 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13751 frame_register.
13752
5378adc4
DJ
137532003-01-27 Daniel Jacobowitz <drow@mvista.com>
13754
13755 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13756
51ee2ddc
DJ
137572003-01-27 Daniel Jacobowitz <drow@mvista.com>
13758
13759 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13760 (maintenance_set_profile_cmd): Use error () instead of warning ().
13761
d9feb4e7
DJ
137622003-01-27 Daniel Jacobowitz <drow@mvista.com>
13763
13764 * configure.in: Check that -pg works if using --enable-profiling.
13765 Check for monstartup and _mcleanup regardless of --enable-profiling.
13766 * maint.c: Check for monstartup and _mcleanup before using them.
13767 * config.in: Regenerated.
13768 * configure: Regenerated.
13769
2d188dd3
NC
137702003-01-24 Nick Clifton <nickc@redhat.com>
13771
13772 * Add sh2e support:
13773
13774 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13775
13776 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13777 (sh2e_show_regs): New.
13778 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13779 * config/sh/tm-sh.h: Added sh2e to comments.
13780
cb3c37b2
JB
137812003-01-23 Jim Blandy <jimb@redhat.com>
13782
13783 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13784 symbols found)" message here; we haven't checked for a separate
13785 debug info file yet, so we don't know yet.
13786 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13787 we've looked everywhere. Also, there's no need to print a special
13788 message when we're loading the separate debug info file: the one
13789 symbol_file_add prints is fine.
13790
5b5d99cf
JB
137912003-01-23 Alexander Larsson <alexl@redhat.com>
13792 Jim Blandy <jimb@redhat.com>
13793
13794 Add support for executables whose debug info has been separated
13795 out into a separate file, leaving only a link behind.
13796 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13797 and separate_debug_objfile_backlink.
13798 (put_objfile_before): New declaration.
13799 * symfile.c: #include "filenames.h".
13800 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13801 debug info in a separate file, read that, too. Save the addrs
13802 argument, so we can use it again to read the separated debug info;
13803 syms_from_objfile modifies the table we pass it.
13804 (reread_symbols): After re-reading an objfile, call
13805 reread_separate_symbols to refresh its separate debug info
13806 objfile, if it has one.
13807 (reread_separate_symbols, find_separate_debug_file,
13808 get_debug_link_info, separate_debug_file_exists): New functions.
13809 (debug_file_directory): New global var.
13810 (_initialize_symfile): Initialize debug_file_directory, and
13811 provide the new `set debug-file-directory' command to let the user
13812 change it.
13813 * objfiles.c (free_objfile): If this objfile has its debug info in
13814 a separate objfile, free that one too. If this is itself a
13815 separate debug info objfile, clear our parent's backlink.
13816 (put_objfile_before): New function.
13817 * utils.c (gnu_debuglink_crc32): New function.
13818 * defs.h (gnu_debuglink_crc32): New declaration.
13819 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13820 * configure.in: Handle --with-separate-debug-dir config option.
13821 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13822 * acconfig.h (DEBUGDIR): New macro.
13823 * configure, aclocal.m4, config.in: Regenerated.
13824
7e8580c1
JB
138252003-01-22 Jim Blandy <jimb@redhat.com>
13826
7904e09f
JB
13827 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13828 like the old symbol_file_add, but taking new arguments: you can
13829 now pass in either a `struct section_addr_info' list to say where
13830 each section is loaded, or a `struct section_offsets' table. Pass
13831 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13832 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13833 with the appropriate quiescent values for the new arguments.
13834
7e8580c1
JB
13835 * symfile.c: #include "gdb_assert.h".
13836 (syms_from_objfile): Add the ability to pass in a section offset
13837 table directly, as an alternative to the section_addr_info table.
13838 Document arguments better.
13839 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13840 * symfile.h (syms_from_objfile): Update declaration.
13841 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13842 syms_from_objfile.
13843 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13844
d28f9cdf
DJ
138452003-01-22 Daniel Jacobowitz <drow@mvista.com>
13846
13847 Original patch by Tom Tromey <tromey@cygnus.com> and
13848 Jason Molenda <jmolenda@apple.com>.
13849 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13850 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13851 * NEWS: Mention profiling.
13852 * configure.in (--enable-gdbtk): Fix typo.
13853 (--enable-profiling): New. Set PROFILE_CFLAGS.
13854 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13855 Fill in function.
13856 (profiling_state): New variable.
13857 (mcleanup_wrapper): New function.
13858 (_initialize_maint): Remove NOTYET, fix call to
13859 add_setshow_boolean_cmd for "maint set profile".
13860 * configure: Regenerated.
13861
df21e465
MH
138622003-01-21 Martin M. Hunt <hunt@redhat.com>
13863
13864 * Makefile.in (install-gdbtk): Install PNG images too.
13865
73c1f219
AC
138662003-01-21 Andrew Cagney <ac131313@redhat.com>
13867
13868 * exec.c (text_start): Delete global variable.
13869 (exec_file_attach): Make text_start local to the function.
13870 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13871 * valops.c (hand_function_call): Delete code that handles
13872 BEFORE_TEXT_END and AFTER_TEXT_END.
13873 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13874 of CALL_DUMMY_LOCATION.
13875 * gdbarch.c: Regenerate.
13876 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13877 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13878 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13879 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13880 (text_end): Delete extern declaration.
13881
eb4f72c5
AC
138822003-01-21 Andrew Cagney <ac131313@redhat.com>
13883
13884 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13885 * blockframe.c (backtrace_below_main): Move to "frame.c".
13886 (frame_chain_valid): Delete check for backtrace_below_main.
13887 (_initialize_blockframe): Delete initialization, move ``set
13888 backtrace-below-main'' command to "frame.c".
13889 (do_flush_frames_sfunc): Delete function.
13890 * frame.c: Include "command.h" and "gdbcmd.h".
13891 (frame_type_from_pc): New function.
13892 (create_new_frame): Use frame_type_from_pc.
13893 (legacy_get_prev_frame): New function.
13894 (get_prev_frame): Rewrite. When an old style frame, call
13895 legacy_get_prev_frame. Otherwize, unwind the PC first.
13896 (_initialize_frame): Add ``set backtrace-below-main'' command.
13897 * Makefile.in (frame.o): Update dependencies.
13898
778ce8cc
AC
138992003-01-19 Andrew Cagney <ac131313@redhat.com>
13900
13901 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13902 DEPRECATED_REGISTERS_INFO.
13903
01c193c8
AC
139042003-01-19 Andrew Cagney <ac131313@redhat.com>
13905
13906 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13907 Maintainers'. Update `Various Maintainers'.
13908
dedc2a2b
AC
139092003-01-19 Andrew Cagney <ac131313@redhat.com>
13910
13911 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13912 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13913 Suppress actual parameters when `-'.
13914 * gdbarch.h, gdbarch.c: Regenerate.
13915
b7261c70
AC
139162003-01-19 Andrew Cagney <ac131313@redhat.com>
13917
13918 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13919 code handling dummy frames.
13920
dbe9fe58
AC
139212003-01-19 Andrew Cagney <ac131313@redhat.com>
13922
13923 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13924 (struct frame_unwind): Add field pop.
13925 * frame.h (frame_pop): Declare.
13926 * frame.c (frame_saved_regs_pop): New function.
13927 (trad_frame_unwinder): Add frame_saved_regs_pop.
13928 (frame_pop): New function.
13929 * dummy-frame.c (dummy_frame_pop): New function.
13930 (discard_innermost_dummy): New function.
13931 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13932 (dummy_frame_unwind): Add dummy_frame_pop.
13933 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13934 * valops.c (hand_function_call): Ditto.
13935 * stack.c (return_command): Ditto.
13936
570b8f7c
AC
139372003-01-18 Andrew Cagney <ac131313@redhat.com>
13938
13939 * cris-tdep.c: Fix function declaration indentation.
13940 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13941 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13942 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13943 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13944 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13945 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13946
139472003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13948
13949 * README (Unpacking and Installation -- quick overview):
13950 Warn against ".../gdb-5.3/gdb/configure".
13951
494cca16
AC
139522003-01-18 Andrew Cagney <ac131313@redhat.com>
13953
13954 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13955 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13956 (struct frame_unwind): Declare opaque.
13957 (dummy_frame_p): Declare function.
13958 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13959 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13960 * dummy-frame.c: Include "frame-unwind.h".
13961 (dummy_frame_p): New function.
13962 (dummy_frame_unwind): New variable.
13963 * frame.c: Include "frame-unwind.h".
13964 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13965 to use the new unwind field.
13966 (set_unwind_by_pc): Delete function.
13967 (create_new_frame, get_prev_frame): Set unwind field using
13968 frame_unwind_find_by_pc.
13969 (trad_frame_unwind, trad_frame_unwinder): New variables.
13970 * frame.h (trad_frame_unwind): Declare variable.
13971 (frame_id_unwind_ftype): Delete declaration.
13972 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13973 (struct frame_unwind): Declare opaque.
13974 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13975 register_unwind with a single unwind pointer.
13976 * frame-unwind.h, frame-unwind.c: New files.
13977 * Makefile.in (SFILES): Add frame-unwind.c.
13978 (frame_unwind_h): Define.
13979 (COMMON_OBS): Add frame-unwind.o.
13980 (frame-unwind.o): Specify dependencies.
13981 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13982
4efb68b1
AC
139832003-01-18 Andrew Cagney <ac131313@redhat.com>
13984
13985 * ada-valprint.c: Eliminate PTR.
13986 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13987 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13988 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13989 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13990 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13991 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13992 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13993
a84d24ee
AC
139942003-01-17 Andrew Cagney <ac131313@redhat.com>
13995
762f08a3
AC
13996 * main.c (captured_main): Don't use PTR.
13997 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13998 * gdbtypes.c (lookup_primitive_typename): Ditto.
13999 (lookup_struct_elt_type): Ditto.
14000 * f-valprint.c (info_common_command): Ditto.
14001 (list_all_visible_commons): Ditto.
14002 * jv-typeprint.c (java_type_print_base): Ditto.
14003
a84d24ee
AC
14004 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14005 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14006 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14007 i386-interix-nat.c and i386-interix-tdep.c. Rename
14008 m68klinux-nat.c and m68klinux-tdep.c. Rename
14009 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14010 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14011 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14012 * main.c (captured_main): Use xfree, not free.
14013
c170fb60
AC
140142003-01-16 Andrew Cagney <ac131313@redhat.com>
14015
14016 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14017 ID back using a parameter.
14018 * frame.c (frame_id_unwind): Update call.
14019 (frame_saved_regs_id_unwind): Update.
14020 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14021 * dummy-frame.h (struct frame_id): Add opaque declaration.
14022 (dummy_frame_id_unwind): Update declaration.
14023
867f3898
AC
140242003-01-15 Andrew Cagney <ac131313@redhat.com>
14025
14026 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14027
40622be8 140282003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14029
40622be8 14030 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14031
ae66c1fc
EZ
140322003-01-14 Elena Zannoni <ezannoni@redhat.com>
14033
997b089a 14034 Fix PR gdb/898
ae66c1fc
EZ
14035 * breakpoint.c (until_break_command): Add new argument. Use it to
14036 decide whether to stop only at the current frame or not.
14037 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14038 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14039 call.
14040 (advance_command): New function.
14041 (_initialize_infcmd): Update help string for 'until' command.
14042 Add new 'advance' command.
14043
a04257e6
DC
140442003-01-14 David Carlton <carlton@math.stanford.edu>
14045
14046 * linespec.c (decode_line_1): Normalize comments.
14047 (set_flags): Ditto.
14048 (locate_first_half): Ditto.
14049 (decode_compound): Ditto.
14050 (symtab_from_filename): Ditto.
14051 (decode_all_digits): Ditto.
14052 (decode_dollar): Ditto.
14053 (find_methods): Ditto.
14054 (find_toplevel_char): Ditto.
14055
1bac305b
AC
140562003-01-13 Andrew Cagney <ac131313@redhat.com>
14057
14058 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14059 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14060 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14061 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14062 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14063 * language.c, language.h, m32r-tdep.c: Update copyright.
14064 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14065 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14066 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14067 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14068 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14069 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14070
25caa7a8
EZ
140712003-01-13 Elena Zannoni <ezannoni@redhat.com>
14072
14073 * stabsread.h (process_later, resolve_cfront_continuation):
14074 Obsolete.
14075 Update copyright years.
14076 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14077 Update copyright year.
14078 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14079 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14080 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14081 Update copyright year.
14082 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14083 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14084 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14085 (parse_partial_symbols): Obsolete cfront support.
14086 * stabsread.c
14087 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14088 macros.
14089 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14090 read_cfront_baseclasses, read_cfront_member_functions,
14091 resolve_cfront_continuation,read_cfront_static_fields,
14092 copy_cfront_struct_fields): Obsolete functions.
14093 (define_symbol, read_one_struct_field): Obsolete cfront support.
14094 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14095 Update Copyright year.
14096
7789c6f5
EZ
140972003-01-13 Elena Zannoni <ezannoni@redhat.com>
14098
14099 * stack.c (print_frame_info, print_stack_frame_base_stub,
14100 print_stack_frame_base, show_and_print_stack_frame_stub,
14101 show_and_print_stack_frame, print_only_stack_frame_stub,
14102 print_only_stack_frame): Delete functions.
14103 (print_stack_frame_stub): Call print_frame_info instead of
14104 print_frame_info_base.
14105 (print_frame_info_base): Rename to print_frame_info.
14106 (backtrace_command_1): Call print_frame_info, instead of
14107 print_frame_info_base.
14108 (current_frame_command): Call print_stack_frame, instead of
14109 print_only_stack_frame.
14110 (frame_command): Call print_stack_frame, instead of
14111 show_and_print_stack_frame.
14112 (up_command): Ditto.
14113 (down_command): Ditto.
14114 * frame.h (print_only_stack_frame): Delete prototype.
14115 * infrun.c (normal_stop): Call print_stack_frame, instead of
14116 show_and_print_stack_frame.
14117 * thread.c (info_threads_command): Call print_stack_frame, instead
14118 of print_only_stack_frame.
14119
3f5a3016
AC
141202003-01-13 Andrew Cagney <ac131313@redhat.com>
14121
d99ba314
AC
14122 * README (Graphical interface to GDB): Update URL. Point at
14123 gdb/links/.
14124
3f5a3016
AC
14125 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14126 version match.
14127
083ae935
DJ
141282003-01-13 Daniel Jacobowitz <drow@mvista.com>
14129
14130 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14131 lines.
14132
5365276c
DJ
141332003-01-13 Daniel Jacobowitz <drow@mvista.com>
14134
14135 * thread-db.c (attach_thread): Prototype.
14136 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14137 thread information (ti), and valid flags (th_valid, ti_valid).
14138 (attach_thread): Move target_pid_to_str call to after the thread
14139 is added to GDB's list. Initialize the cache.
14140 (thread_get_info_callback, thread_db_map_id2thr)
14141 (thread_db_get_info): New functions.
14142 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14143 (thread_db_store_registers, thread_db_thread_alive)
14144 (thread_db_get_thread_local_address): Use them.
14145 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14146 of calling error() for threads in unknown state.
14147
14148 (clear_lwpid_callback): New function.
14149 (thread_db_resume): Use it to clear the cache.
14150
9fc30b6b
DJ
141512003-01-13 Daniel Jacobowitz <drow@mvista.com>
14152
14153 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14154 (resume_callback): Remove dead code.
14155
8f871025
AC
141562003-01-13 Andrew Cagney <ac131313@redhat.com>
14157
14158 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14159 predicate.
14160 * gdbarch.h, gdbarch.c: Regenerate.
14161 * stack.c (frame_info): Only initialize the saved registers when
14162 FRAME_INIT_SAVED_REGS_P.
14163 * frame.c (frame_saved_regs_register_unwind): Assert
14164 FRAME_INIT_SAVED_REGS_P.
14165 (deprecated_generic_get_saved_register): Ditto.
14166
3f565f1e
DJ
141672003-01-13 Daniel Jacobowitz <drow@mvista.com>
14168
14169 * source.c (openp): Squelch warning about "filename".
14170
072b1022
DJ
141712003-01-13 Daniel Jacobowitz <drow@mvista.com>
14172
14173 * source.c (openp): If the file does not exist don't necessarily
14174 search the path.
14175
973ccf8b
DJ
141762003-01-13 Daniel Jacobowitz <drow@mvista.com>
14177
14178 Fix PR gdb/872.
14179 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14180 (integer_types_same_name_p): New function.
14181 (rank_one_type): Use it.
14182 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14183
030292b7
DJ
141842003-01-13 Daniel Jacobowitz <drow@mvista.com>
14185
14186 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14187 variables.
14188 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14189 * configure.in: Add --with-sysroot.
14190 * configure: Regenerated.
14191 * main.c (gdb_sysroot): New variable.
14192 (captured_main): Initialize gdb_sysroot.
14193 * defs.h (gdb_sysroot): New extern declaration.
14194 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14195
afb5d334
MC
141962003-01-12 Michael Chastain <mec@shout.net>
14197
14198 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14199
751ceeb4
MC
142002003-01-12 Michael Chastain <mec@shout.net>
14201
14202 * top.c (print_gdb_version): Bump copyright year to 2003.
14203
94cd26f8
DC
142042003-01-12 David Carlton <carlton@bactrian.org>
14205
14206 * linespec.c (symtab_from_filename): Rename variable 's' to
14207 'file_symtab'.
14208
1ce79225
AC
142092003-01-12 Andrew Cagney <ac131313@redhat.com>
14210
14211 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14212 dummy frame.
14213 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14214
fa1fd571
AC
142152003-01-12 Andrew Cagney <ac131313@redhat.com>
14216
14217 * d10v-tdep.c: Include "gdb_assert.h".
14218 (d10v_store_return_value): Rewrite to match current interface.
14219 (d10v_extract_struct_value_address): Ditto.
14220 (d10v_extract_return_value): Ditto.
14221 (d10v_gdbarch_init): Set store_restore_value,
14222 extract_struct_value_address and extract_return_value.
14223
68b8d23e
JB
142242003-01-12 J. Brobecker <brobecker@gnat.com>
14225
14226 * hpread.c (set_namestring): New procedure replacing the
14227 SET_NAMESTRING macro.
14228 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14229 by calls to set_namestring.
14230
142312003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14232
14233 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14234 a compilation warning.
14235 (hpread_process_one_debug_symbol): Likewise.
14236
88d262ca
DC
142372003-01-10 David Carlton <carlton@math.stanford.edu>
14238
14239 * linespec.c (decode_line_1): Rename variable 's' to
14240 'file_symtab'.
14241 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14242 (decode_dollar): Ditto.
14243 (decode_variable): Ditto.
14244 (symbol_found): Ditto.
14245
86669319
MC
142462003-01-09 Michael Chastain <mec@shout.net>
14247
14248 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14249
616a9dc4
CV
142502003-01-07 Corinna Vinschen <vinschen@redhat.com>
14251
14252 * win32-nat.c (set_process_privilege): New function.
14253 (child_attach): Call set_process_privilege() to enable the
14254 SE_DEBUG_NAME user privilege if available in process token.
14255
3269bcfa
JB
142562003-01-10 J. Brobecker <brobecker@gnat.com>
14257
14258 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14259 compilation error in the previous revision.
14260
2b0ee454
DC
142612003-01-09 David Carlton <carlton@math.stanford.edu>
14262
14263 * linespec.c: Update copyright.
14264
b3ba1b44
DJ
142652003-01-09 Daniel Jacobowitz <drow@mvista.com>
14266
14267 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14268 than inferior_ptid.
14269 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14270
4ef3f3be
AC
142712003-01-09 Andrew Cagney <ac131313@redhat.com>
14272
479ab5a0
AC
14273 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14274 Update comments.
14275 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14276 (frame_saved_regs_zalloc): Update.
14277 (frame_saved_regs_register_unwind): Update.
14278 (create_new_frame): Update.
14279 (get_prev_frame): Update.
14280 (frame_extra_info_zalloc): Update.
14281 (deprecated_get_frame_saved_regs): Update.
14282 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14283 * cris-tdep.c: Update comment.
14284
bde58177
AC
14285 * somsolib.h: Fix function indentation.
14286 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14287 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14288 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14289 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14290 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14291
4ef3f3be
AC
14292 * infrun.c (follow_fork): Use ISO C definition.
14293 * expprint.c (print_subexp): Use xfree instead of free.
14294 * charset.c: Include "gdb_string.h" instead of <string.h>.
14295 (register_iconv_charsets): Use ISO C definition.
14296 (host_charset, target_charset): Ditto.
14297 * Makefile.in (charset.o): Update dependencies.
14298 (mi-cmd-env.o): Update dependencies.
14299
1c615f7a
AC
143002003-01-08 Andrew Cagney <cagney@redhat.com>
14301
14302 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14303 get_frame_base.
14304
c9a1dc08
AC
143052003-01-08 Andrew Cagney <ac131313@redhat.com>
14306
14307 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14308 build directories. Save edited gdb output in Mbuild.log. If a
14309 build fails, remove any final GDB executable.
14310
dbad9d94
AC
143112003-01-08 Andrew Cagney <ac131313@redhat.com>
14312
14313 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14314 replacing hex constants with function names and stripping leading
14315 file name directory prefixes.
14316
8d357cca
AC
143172003-01-08 Andrew Cagney <cagney@redhat.com>
14318
14319 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14320 get_frame_base.
14321
bca02a8a
DC
143222003-01-08 David Carlton <carlton@math.stanford.edu>
14323
14324 * linespec.c (decode_line_1): Move code into decode_variable.
14325 (decode_variable): New function.
14326
7f8ab3a0
AC
143272003-01-08 Andrew Cagney <ac131313@redhat.com>
14328
14329 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14330
7b5849cc
AC
143312003-01-08 Andrew Cagney <cagney@redhat.com>
14332
14333 * cris-tdep.c (cris_frame_init_saved_regs): Use
14334 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14335 saved_regs buffer.
14336 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14337 (sh64_nofp_frame_init_saved_regs): Ditto.
14338 (sh_fp_frame_init_saved_regs): Ditto.
14339 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14340 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14341 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14342 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14343
72a5efb3
DJ
143442003-01-08 Daniel Jacobowitz <drow@mvista.com>
14345
14346 * minsyms.c (lookup_minimal_symbol): Update comment.
14347 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14348 (lookup_minimal_symbol_solib_trampoline): Likewise.
14349
11c02a10
AC
143502003-01-08 Andrew Cagney <cagney@redhat.com>
14351
aab3ea25
AC
14352 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14353 frame_relative_level.
14354
da50a4b7
AC
14355 * alpha-tdep.c: Use get_frame_extra_info.
14356 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14357 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14358 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14359 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14360
11c02a10
AC
14361 * alpha-tdep.c: Use get_next_frame.
14362 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14363 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14364 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14365 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14366 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14367 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14368 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14369
1e2330ba
AC
143702003-01-07 Andrew Cagney <cagney@redhat.com>
14371
14372 * alpha-tdep.c: Use get_frame_base.
14373 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14374 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14375 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14376 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14377 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14378 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14379 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14380 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14381
2d75187b
AC
143822003-01-07 Andrew Cagney <cagney@redhat.com>
14383
14384 * frame.c (deprecated_get_frame_context): New function.
14385 (deprecated_set_frame_context): New function.
14386 * frame.h (deprecated_get_frame_context): Declare.
14387 (deprecated_set_frame_context): Declare.
14388 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14389 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14390
483d36b2
AC
143912003-01-07 Andrew Cagney <cagney@redhat.com>
14392
14393 * frame.c (deprecated_set_frame_next_hack): New function.
14394 (deprecated_set_frame_prev_hack): New function.
14395 * frame.h (deprecated_set_frame_next_hack): Declare.
14396 (deprecated_set_frame_prev_hack): Declare.
14397 * mcore-tdep.c (analyze_dummy_frame): Use
14398 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14399 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14400
14e91ac5
DC
144012003-01-07 David Carlton <carlton@math.stanford.edu>
14402
14403 * linespec.c (decode_line_1): Move code into decode_dollar.
14404 (decode_dollar): New function.
14405
b0c6b05c
AC
144062003-01-07 Andrew Cagney <cagney@redhat.com>
14407
14408 * arm-tdep.c (arm_init_extra_frame_info): Use
14409 deprecated_update_frame_base_hack.
14410 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14411 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14412 (fix_frame_pointer): Ditto.
14413 (mn10300_analyze_prologue): Ditto.
14414
a00a19e9
AC
144152003-01-07 Andrew Cagney <cagney@redhat.com>
14416
14417 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14418 extra_info using frame_extra_info_zalloc.
14419 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14420 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14421 (sh64_init_extra_frame_info): Ditto.
14422 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14423 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14424 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14425 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14426 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14427 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14428 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14429 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14430 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14431 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14432 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14433 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14434
14435 * mn10300-tdep.c (analyze_dummy_frame): Use
14436 deprecated_set_frame_extra_info_hack.
14437 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14438
1fb4c65b
JB
144392003-01-07 J. Brobecker <brobecker@gnat.com>
14440
14441 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14442 class is not scText. These do not define "real" procedures.
14443 (parse_partial_symbols): Likewise.
14444
9fe7d6bf
MS
144452003-01-06 Michael Snyder <msnyder@redhat.com>
14446
14447 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14448
f6c609c4
AC
144492003-01-06 Andrew Cagney <ac131313@redhat.com>
14450
14451 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14452 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14453 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14454 deprecated_frame_xmalloc_with_cleanup.
14455 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14456 deprecated_frame_xmalloc.
14457 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14458 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14459
d995ff4b
AC
144602003-01-06 Andrew Cagney <cagney@redhat.com>
14461
84dc46cb
AC
14462 * x86-64-linux-tdep.c: Include "osabi.h".
14463 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14464
d995ff4b
AC
14465 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14466
66140c26
AC
144672003-01-06 Andrew Cagney <cagney@redhat.com>
14468
14469 * MAINTAINERS (Target Instruction Set Architectures): Update
14470 arm-elf. Can be built with -Werror, has been multiarched.
14471
14472 * value.h (unpack_long): Make buffer parameter constant.
14473 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14474 * scm-lang.h (scm_parse): Ditto.
14475 * defs.h (extract_typed_address, extract_address): Ditto.
14476 (extract_long_unsigned_integer): Ditto.
14477 * inferior.h (unsigned_pointer_to_address): Ditto.
14478 (signed_pointer_to_address): Ditto.
14479 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14480 * gdbarch.h, gdbarch.c: Regenerate.
14481 * findvar.c (extract_long_unsigned_integer): Update.
14482 (extract_address): Update.
14483 (extract_typed_address): Update.
14484 (unsigned_pointer_to_address): Update.
14485 * values.c (unpack_long): Update.
14486 (unpack_double): Update.
14487 (unpack_pointer): Update.
14488 (unpack_field_as_long): Update.
14489 * d10v-tdep.c (d10v_pointer_to_address): Update.
14490 * avr-tdep.c (avr_pointer_to_address): Update.
14491 * scm-lang.c (scm_unpack): Update.
14492 * findvar.c (signed_pointer_to_address): Update.
14493
b089b3da
ML
144942003-01-06 Michal Ludvig <mludvig@suse.cz>
14495
8ffd9b1b 14496 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14497 since it is in i386-tdep.c.
14498
aff87235
JB
144992003-01-06 J. Brobecker <brobecker@gnat.com>
14500
14501 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14502 failure introduced in the previous change.
14503
34f5e845
MC
145042003-01-05 Michael Chastain <mec@shout.net>
14505
14506 * README: Remove references to deleted remote-*.c files:
14507 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14508 remote-nrom.c, remote-os9k.c, remote-udi.c.
14509
28bcfd30
MK
145102003-01-05 Mark Kettenis <kettenis@gnu.org>
14511
14512 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14513 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14514 i386_get_longjmp_target.
14515
15a5b3ee
AC
145162003-01-05 Andrew Cagney <ac131313@redhat.com>
14517
14518 * arm-tdep.c (prologue_cache): Change to a pointer.
14519 (_initialize_arm_tdep): Allocate prologue_cache.
14520 (check_prologue_cache): Update.
14521 (save_prologue_cache): Update.
14522 (arm_gdbarch_init): Update.
14523
c263362b
DJ
145242003-01-04 Daniel Jacobowitz <drow@mvista.com>
14525
14526 * stabsread.c (update_method_name_from_physname): Call complaint()
14527 instead of error.
14528
51603483
DJ
145292003-01-04 Daniel Jacobowitz <drow@mvista.com>
14530
14531 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14532 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14533 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14534
14535 * blockframe.c: Include "gdbcmd.h" and "command.h".
14536 (backtrace_below_main): New variable.
14537 (file_frame_chain_valid, func_frame_chain_valid)
14538 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14539 (generic_func_frame_chain_valid): Remove functions.
14540 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14541 (_initialize_blockframe): New function.
14542 * Makefile.in (blockframe.o): Update dependencies.
14543 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14544 comment. Call frame_chain_valid ().
14545 * frame.h: Remove old prototypes. Add prototype for
14546 frame_chain_valid and update comments to match.
14547 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14548 Remove old comment.
14549 * gdbarch.h: Regenerated.
14550 * gdbarch.c: Regenerated.
14551
14552 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14553 set_gdbarch_frame_chain_valid.
14554 * avr-tdep.c (avr_gdbarch_init): Likewise.
14555 * cris-tdep.c (cris_gdbarch_init): Likewise.
14556 * frv-tdep.c (frv_gdbarch_init): Likewise.
14557 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14558 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14559 (i386_nw_init_abi): Likewise.
14560 (i386_gdbarch_init): Likewise.
14561 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14563 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14564 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14565 * mips-tdep.c (mips_gdbarch_init): Likewise.
14566 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14567 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14568 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14569 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14570 * s390-tdep.c (s390_gdbarch_init): Likewise.
14571 * sh-tdep.c (sh_gdbarch_init): Likewise.
14572 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14573 * v850-tdep.c (v850_gdbarch_init): Likewise.
14574 * vax-tdep.c (vax_gdbarch_init): Likewise.
14575 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14576
14577 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14578 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14579 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14580 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14581 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14582 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14583 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14584 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14585
b00a8037
DJ
145862002-01-04 Daniel Jacobowitz <drow@mvista.com>
14587
14588 * Makefile.in (acconfig_h): Remove incorrect macro.
14589 (config_h): Define.
14590 (osabi.o): Update dependencies.
14591 * configure.tgt: Set gdb_osabi based on target triplet.
14592 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14593 * configure: Regenerated.
14594 * config.in: Regenerated.
14595 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14596 (GDB_OSABI_DEFAULT): Define if not already defined.
14597 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14598 (set_osabi_string): New variables.
14599 (gdbarch_register_osabi): Add new OS ABI to
14600 gdb_osabi_available_names.
14601 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14602 (set_osabi, show_osabi): New functions.
14603 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14604
4be87837
DJ
146052003-01-04 Daniel Jacobowitz <drow@mvista.com>
14606
14607 * arch-utils.c (gdbarch_info_init): Set osabi to
14608 GDB_OSABI_UNINITIALIZED.
14609 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14610 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14611 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14612 * gdbarch.c: Regenerated.
14613 * gdbarch.h: Regenerated.
14614 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14615 there's no BFD.
14616 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14617 * osabi.h (enum gdb_osabi): Move to defs.h.
14618 (gdbarch_init_osabi): Update prototype.
14619 * defs.h (enum gdb_osabi): Moved here.
14620 * Makefile.in: Update dependencies.
14621
14622 * alpha-tdep.h: Don't include "osabi.h".
14623 (struct gdbarch_tdep): Remove osabi member.
14624 * alpha-tdep.c: Include "osabi.h".
14625 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14626 iterate over arches. Update call to gdbarch_init_osabi.
14627 (alpha_dump_tdep): Don't dump osabi.
14628 * alpha-linux-tdep.c: Include "osabi.h".
14629 * alpha-osf1-tdep.c: Include "osabi.h".
14630 * alphafbsd-tdep.c: Include "osabi.h".
14631 * alphanbsd-tdep.c: Include "osabi.h".
14632
14633 * arm-tdep.h: Don't include "osabi.h".
14634 (struct gdbarch_tdep): Remove osabi member.
14635 * arm-tdep.c: Include "osabi.h".
14636 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14637 iterate over arches. Update call to gdbarch_init_osabi.
14638 (arm_dump_tdep): Don't dump osabi.
14639 * arm-linux-tdep.c: Include "osabi.h".
14640 * armnbsd-tdep.c: Include "osabi.h".
14641
14642 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14643 Update call to gdbarch_init_osabi.
14644
14645 * i386-tdep.h: Don't include "osabi.h".
14646 (struct gdbarch_tdep): Remove osabi member.
14647 * i386-tdep.c: Include "osabi.h".
14648 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14649 iterate over arches. Update call to gdbarch_init_osabi.
14650 (i386_dump_tdep): Don't dump osabi.
14651 * i386-linux-tdep.c: Include "osabi.h".
14652 * i386-sol2-tdep.c: Include "osabi.h".
14653 * i386bsd-tdep.c: Include "osabi.h".
14654 * i386gnu-tdep.c: Include "osabi.h".
14655 * i386ly-tdep.c: Include "osabi.h".
14656 * i386nbsd-tdep.c: Include "osabi.h".
14657 * i386obsd-tdep.c: Include "osabi.h".
14658
14659 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14660 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14661 check osabi when iterating over arches. Update call to
14662 gdbarch_init_osabi.
14663 (mips_dump_tdep): Don't dump osabi.
14664
14665 * ns32k-tdep.h: Don't include "osabi.h".
14666 (struct gdbarch_tdep): Remove.
14667 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14668 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14669 allocate tdep. Update call to gdbarch_init_osabi.
14670 (ns32k_dump_tdep): Remove.
14671 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14672 * ns32knbsd-tdep.c: Include "osabi.h".
14673
14674 * ppc-tdep.h: Don't include "osabi.h".
14675 (struct gdbarch_tdep): Remove osabi member.
14676 * rs6000-tdep.c: Include "osabi.h".
14677 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14678 osabi when iterating over arches. Update call to
14679 gdbarch_init_osabi.
14680 (rs6000_dump_tdep): Don't dump osabi.
14681 * ppc-linux-tdep.c: Include "osabi.h".
14682 * ppcnbsd-tdep.c: Include "osabi.h".
14683
14684 * sh-tdep.h: Don't include "osabi.h".
14685 (struct gdbarch_tdep): Remove osabi member.
14686 * sh-tdep.c: Include "osabi.h".
14687 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14688 iterate over arches. Update call to gdbarch_init_osabi.
14689 (sh_dump_tdep): Don't dump osabi.
14690 * shnbsd-tdep.c: Include "osabi.h".
14691
14692 * sparc-tdep.c: Include "osabi.h".
14693 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14694 iterate over arches. Update call to gdbarch_init_osabi.
14695 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14696 tdep structure.
14697
14698 * vax-tdep.h: Don't include "osabi.h".
14699 (struct gdbarch_tdep): Remove.
14700 * vax-tdep.c: Include "osabi.h".
14701 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14702 iterate over arches. Don't allocate tdep. Update call
14703 to gdbarch_init_osabi.
14704 (vax_dump_tdep): Remove.
14705 (_initialize_vax_tdep): Update call to gdbarch_register.
14706
a881cf8e
DJ
147072003-01-04 Daniel Jacobowitz <drow@mvista.com>
14708
14709 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14710 entirely.
14711 (breakpoint_re_set_one): Don't fetch the value for a disabled
14712 watchpoint.
14713
1e698235
DJ
147142003-01-04 Daniel Jacobowitz <drow@mvista.com>
14715
14716 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14717 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14718 (COERCE_FLOAT_TO_DOUBLE): Remove.
14719 * gdbarch.c: Regenerate.
14720 * gdbarch.h: Regenerate.
14721 * Makefile.in: Remove value_h from gdbarch_h.
14722 * valops.c (coerce_float_to_double): New variable.
14723 (default_coerce_float_to_double): Remove.
14724 (standard_coerce_float_to_double): Remove.
14725 (value_arg_coerce): Use coerce_float_to_double.
14726 (_initialize_valops): Add "set coerce-float-to-double".
14727 * value.h (default_coerce_float_to_double): Remove prototype.
14728 (standard_coerce_float_to_double): Remove prototype.
14729
14730 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14731 prototyped.
14732 * mdebugread.c (parse_symbol): Likewise.
14733 * stabsread.c (define_symbol): Mark all functions as prototyped.
14734
14735 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14736 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14737 set_gdbarch_coerce_float_to_double.
14738 * arm-tdep.c (arm_gdbarch_init): Likewise.
14739 * frv-tdep.c (frv_gdbarch_init): Likewise.
14740 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14741 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14742 * mips-tdep.c (mips_gdbarch_init): Likewise.
14743 (mips_coerce_float_to_double): Remove.
14744 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14745 (rs6000_coerce_float_to_double): Remove.
14746 * s390-tdep.c (s390_gdbarch_init): Likewise.
14747 * sh-tdep.c (sh_gdbarch_init): Likewise.
14748 (sh_coerce_float_to_double): Remove.
14749 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14750 (sparc_coerce_float_to_double): Remove.
14751 * v850-tdep.c (v850_gdbarch_init): Likewise.
14752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14753 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14754 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14755 (hppa_coerce_float_to_double): Remove prototype.
14756 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14757
f436a26a
DJ
147582003-01-04 Daniel Jacobowitz <drow@mvista.com>
14759
14760 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14761
248f8055
DJ
147622003-01-04 Daniel Jacobowitz <drow@mvista.com>
14763
14764 Suggested by Stewart Brown <sb24@avaya.com>:
14765 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14766 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14767 (c_type_print_varspec_suffix): Likewise.
14768
72cfdc76
MK
147692003-01-04 Mark Kettenis <kettenis@gnu.org>
14770
bfd260bb
MK
14771 * configure.in: Don't set and AC_SUBST SUBDIRS.
14772 * configure: Regenerated.
14773
72cfdc76
MK
14774 * configure.in: Remove code dealing with shared libraries.
14775 * Makefile.in: Remove HLDFLAGS and HLDENV.
14776 * configure: Regenerated.
14777
c8b8a898
AC
147782003-01-04 Andrew Cagney <ac131313@redhat.com>
14779
14780 * frame.c (deprecated_frame_xmalloc): New function.
14781 (deprecated_set_frame_saved_regs_hack): New function.
14782 (deprecated_set_frame_extra_info_hack): New function.
14783 * frame.h (deprecated_frame_xmalloc): Declare.
14784 (deprecated_set_frame_saved_regs_hack): Declare.
14785 (deprecated_set_frame_extra_info_hack): Declare.
14786
14abd0fb
MK
147872003-01-04 Mark Kettenis <kettenis@gnu.org>
14788
8ee53726
MK
14789 * configure.in: Move code that provides the --enable-gdbtk option
14790 right after the code that handles the --enable-tui option, and
14791 polish it somewhat.
14792 * configure: Regenerated.
14793
14abd0fb
MK
14794 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14795 AC_CHECK_FUNCS and remove the old check for pread64.
14796 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14797 * acconfig.h (_GNU_SOURCE): Add.
14798 (HAVE_PREAD64): Remove.
14799 * configure, aclocal.m4, config.in: Regenerated.
14800
b2fb4676
AC
148012003-01-03 Andrew Cagney <ac131313@redhat.com>
14802
14803 * alpha-tdep.c: Use get_frame_saved_regs.
14804 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14805 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14806 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14807 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14808 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14809
8dcde887
MK
148102003-01-03 Mark Kettenis <kettenis@gnu.org>
14811
14812 * configure.in: Remove all use of the SUBDIRS variable; add
14813 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14814 code providing the --enable-multi-ice option, and move it right in
14815 front of the code that checks whether gdbserver is supported.
14816 Polish that too.
14817 * configure: Regenerated.
14818 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14819 @SUBDIRS@.
14820
8ccd593b
AC
148212003-01-03 Andrew Cagney <cagney@redhat.com>
14822
14823 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14824 * avr-tdep.c, cris-tdep.c: Ditto.
14825 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14826 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14827
91151a06
MK
148282003-01-03 Mark Kettenis <kettenis@gnu.org>
14829
14830 * configure.in: Remove --enable-netrom option.
14831 * configure: Regenerated.
14832
8fe84d01
MK
148332003-01-03 Mark Kettenis <kettenis@gnu.org>
14834
14835 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14836 declaration for `struct re_pattern_buffer' instead.
14837 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14838
f0394be6
JB
148392003-01-03 J. Brobecker <brobecker@gnat.com>
14840
14841 * mdebugread.c (parse_symbol): Count until the stEnd matching
14842 the structure name.
14843
27e9bf90
MK
148442003-01-02 Mark Kettenis <kettenis@gnu.org>
14845
93d331ba
MK
14846 * configure.in: Remove --with-cpu option.
14847 subscripts. Remove evil changequotes here.
14848 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14849 * config.in, configure: Regenerated.
8ffd9b1b 14850
27e9bf90
MK
14851 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14852 * configure.in: Cleanup section that sources GDB and BFD configure
14853 subscripts. Remove evil changequotes here.
14854 * config.in, configure: Regenerated.
14855
50abf9e5
AC
148562003-01-02 Andrew Cagney <ac131313@redhat.com>
14857
14858 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14859 frame accessor methods.
14860 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14861 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14862 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14863 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14864 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14865 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14866 * z8k-tdep.c: Ditto.
8ffd9b1b 14867
287c1a40
MK
148682003-01-02 Mark Kettenis <kettenis@gnu.org>
14869
f5dbc56d
MK
14870 * configure.in: Remove UI_OUT configuration code.
14871 * ada-lang.c: Update assuming UI_OUT is always true.
14872 * Makefile.in (UIOUT_CFLAGS): Remove.
14873 * configure: Regenerated.
14874 * TODO: Remove blurb about elimination of -DUI_OUT.
14875
627af7ea
MK
14876 * configure.in: Move code that provides the --enable-gdbcli,
14877 --enable-gdbmi options right before the code that handles the
14878 --enable-tui option. Polish a bit.
14879 * configure: Regenerated.
14880
06825bd1
MK
14881 * configure.in: Rewrite check for GNU regex and the
14882 --without-included regex option, and move it into the "Checks for
14883 library functions" section. This makes us use the system regex
14884 again by default on systems with version 2 of the GNU C library.
14885 This was apparently broken.
14886 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14887 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14888 * config.in, configure: Regenerated.
14889
287c1a40
MK
14890 * configure.in: Move code that provides the --enable-tui option
14891 before the "Checks for libraries" section. Polish the code
14892 somewhat and set need_curses to yes if we build the TUI. Rewrite
14893 code that looks for a library providing termcap functionality to
14894 match more closely what's done in the Readline library, and move
14895 it into to the "Checks for libraries" section.
14896 * configure: Regenerated.
14897 * Makefile.in (TERMCAP): Remove variable.
14898 * config/i386/go32.mh (TERMCAP): Remove variable.
14899
684e56bf
AC
149002003-01-02 Andrew Cagney <ac131313@redhat.com>
14901
14902 * MAINTAINERS: Mention gdb_mbuild.sh.
14903 * gdb_mbuild.sh: Rewrite.
14904
e1ea1d75
MK
149052003-01-02 Mark Kettenis <kettenis@gnu.org>
14906
14907 * configure.in: Fix typo in last change.
14908 * config.in, configure: Regenerated.
14909
1b831c93
AC
149102003-01-02 Andrew Cagney <ac131313@redhat.com>
14911
14912 * valarith.c (value_binop): Delete obsolete code and comments.
14913 * configure.host: Ditto.
14914 * buildsym.h (make_blockvector): Ditto.
14915 * buildsym.c (make_blockvector): Ditto.
14916 * defs.h (enum language): Ditto.
14917 (chill_demangle): Ditto.
14918 * elfread.c (elf_symtab_read): Ditto.
14919 * dwarfread.c (CHILL_PRODUCER): Ditto.
14920 (set_cu_language): Ditto.
14921 (handle_producer): Ditto.
14922 * expprint.c (print_subexp): Ditto.
14923 * gdbtypes.c (chill_varying_type): Ditto.
14924 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14925 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14926 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14927 (chill_varying_type): Ditto.
14928 * language.h (_LANG_chill): Ditto.
14929 * language.c (binop_result_type, integral_type): Ditto.
14930 (character_type, string_type, structured_type): Ditto.
14931 (lang_bool_type, binop_type_check): Ditto.
14932 * stabsread.h (os9k_stabs): Ditto.
14933 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14934 (define_symbol, read_type, read_struct_fields): Ditto.
14935 (read_array_type, read_enum_type, read_huge_number): Ditto.
14936 (read_range_type, start_stabs): Ditto.
14937 * symfile.c (init_filename_language_table): Ditto.
14938 (add_psymbol_with_dem_name_to_list): Ditto.
14939 * symtab.c (symbol_init_language_specific): Ditto.
14940 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14941 * symtab.h (struct general_symbol_info): Ditto.
14942 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14943 * typeprint.c (typedef_print): Ditto.
14944 * utils.c (fprintf_symbol_filtered): Ditto.
14945 * valops.c (value_cast, search_struct_field, value_slice): Delete
14946 obsolete code.
14947 (varying_to_slice): Delete function.
14948 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14949 (varying_to_slice): Delete declaration.
14950 * MAINTAINERS: Update.
14951
8bb2c122
MK
149522003-01-02 Mark Kettenis <kettenis@gnu.org>
14953
97bf5e38
MK
14954 * configure.in: Reorganize "Checks for library functions section"
14955 a bit. Remove check for `btowc' and `isascii' functions.
14956 * configure: Regenerated.
14957
5ee754fc
MK
14958 * acconfig.h (_MSE_INT_H): Remove.
14959 * configure.in: Create "Checks for header files" section, and move
14960 appropriate tests there. Don't check for objlist.h, wchar.h,
14961 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14962 misdetection fix. Also add "Checks for types", "Checks for
14963 compiler characteristics" and "Checks for library functions"
14964 sections.
14965 * config.in, configure: Regenerated.
14966
8bb2c122
MK
14967 * configure.in: Create "Checks for programs" section, and move
14968 appropriate tests there.
14969
9a156167
MK
149702003-01-01 Mark Kettenis <kettenis@gnu.org>
14971
14972 * configure.in: Create "Checks for libraries" section, and move
14973 appropriate tests there. Cleanup check for wctype in libw. Use
14974 AC_SEARCH_LIBS to see whether we need libsocket.
14975 * configure: Regenerated.
14976
a80e2bcb 14977For older changes see ChangeLog-2002
c906108c
SS
14978\f
14979Local Variables:
14980mode: change-log
14981left-margin: 8
14982fill-column: 74
14983version-control: never
14984End:
This page took 1.133707 seconds and 4 git commands to generate.