2003-12-02 Roland McGrath <roland@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
59659be2
ILT
12003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
2
3 * NEWS: Mention new C++ demangler code.
4
56d0d96a
AC
52003-12-03 Andrew Cagney <cagney@redhat.com>
6
7 * ppc-linux-nat.c (store_register, fetch_register): Convert
8 between ptrace and regcache's wordsize.
9 (ppc_register_u_addr): Use the ptrace wordsize.
10
251a3ae3
KB
112003-12-02 Kevin Buettner <kevinb@redhat.com>
12
13 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
14
188dd5d6
DJ
152003-12-02 Daniel Jacobowitz <drow@mvista.com>
16
17 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
18 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
19 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
20 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
21 Delete.
22 (dwarf2_read_section): Remove offset and size arguments. Use
23 bfd_get_section_size_before_reloc and sectp->filepos.
24 (dwarf2_has_info): Clear section variables instead of offsets.
25 (dwarf2_locate_sections): Don't initialize the deleted variables.
26 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
27 (dwarf2_build_psymtabs_easy): Likewise.
28 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
29 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
30 declarations.
31 (dwarf2_read_section): Update prototype.
32 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
33 Use bfd_get_section_size_before_reloc instead of global size
34 variables.
35
013be872
MC
362003-12-01 Michael Chastain <mec.gnu@mindspring.com>
37
38 * dwarfread.c: Update documentation on the state of dwarf-1.
39
5994185b
AC
402003-12-01 Andrew Cagney <cagney@redhat.com>
41
0748d941
AC
42 Obsolete old MIPS SVr3 and SVr4 systems.
43 * NEWS: Mention obsoleted systems.
44 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
45 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
46 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
47 obsolete.
48 * config/mips/decstation.mh: Mark as obsolete.
49 * config/mips/littlemips.mh: Mark as obsolete.
50 * config/mips/nm-mips.h: Mark as obsolete.
51 * config/mips/xm-mips.h: Mark as obsolete.
52 * config/mips/news-mips.mh: Mark as obsolete.
53 * config/mips/nm-news-mips.h: Mark as obsolete.
54 * config/mips/riscos.mh: Mark as obsolete.
55 * config/mips/nm-riscos.h: Mark as obsolete.
56 * config/mips/xm-riscos.h: Mark as obsolete.
57 * config/mips/mipsv4.mt: Mark as obsolete.
58 * config/mips/tm-mipsv4.h: Mark as obsolete.
59 * config/mips/xm-mipsv4.h: Mark as obsolete.
60
5994185b
AC
61 Obsolete old m68k systems.
62 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
63 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
64 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
65 m680[01]0-sun-sunos3* as obsolete.
66 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
67 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
68 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
69 * config/m68k/sun3os4.mh: Mark file obsolete.
70 * config/m68k/xm-sun3os4.h: Mark file obsolete.
71 * config/m68k/sun3os3.mh: Mark file obsolete.
72 * config/m68k/nm-sun3.h: Mark file obsolete.
73 * config/m68k/xm-sun3.h: Mark file obsolete.
74 * config/m68k/sun2os4.mh: Mark file obsolete.
75 * config/m68k/sun2os3.mh: Mark file obsolete.
76 * config/m68k/nm-sun2.h: Mark file obsolete.
77 * config/m68k/xm-sun2.h: Mark file obsolete.
78 * config/m68k/m68kv4.mh: Mark file obsolete.
79 * config/m68k/nm-sysv4.h: Mark file obsolete.
80 * config/m68k/xm-m68kv4.h: Mark file obsolete.
81 * config/m68k/m68klynx.mh: Mark file obsolete.
82 * config/m68k/nm-m68klynx.h: Mark file obsolete.
83 * config/m68k/dpx2.mh: Mark file obsolete.
84 * config/m68k/xm-dpx2.h: Mark file obsolete.
85 * config/m68k/nm-dpx2.h: Mark file obsolete.
86 * config/m68k/delta68.mh: Mark file obsolete.
87 * config/m68k/xm-delta68.h: Mark file obsolete.
88 * config/m68k/nm-delta68.h: Mark file obsolete.
89 * config/m68k/3b1.mh: Mark file obsolete.
90 * config/m68k/xm-3b1.h: Mark file obsolete.
91 * config/m68k/sun3os4.mt: Mark file obsolete.
92 * config/m68k/tm-sun3os4.h: Mark file obsolete.
93 * config/m68k/sun3os3.mt: Mark file obsolete.
94 * config/m68k/tm-sun3.h: Mark file obsolete.
95 * config/m68k/sun2os4.mt: Mark file obsolete.
96 * config/m68k/tm-sun2os4.h: Mark file obsolete.
97 * config/m68k/sun2os3.mt: Mark file obsolete.
98 * config/m68k/tm-sun2.h: Mark file obsolete.
99 * config/m68k/m68kv4.mt: Mark file obsolete.
100 * config/m68k/tm-m68kv4.h: Mark file obsolete.
101 * config/m68k/m68klynx.mt: Mark file obsolete.
102 * config/m68k/tm-m68klynx.h: Mark file obsolete.
103 * config/m68k/dpx2.mt: Mark file obsolete.
104 * config/m68k/tm-dpx2.h: Mark file obsolete.
105 * config/m68k/delta68.mt: Mark file obsolete.
106 * config/m68k/tm-delta68.h: Mark file obsolete.
107 * config/m68k/3b1.mt: Mark file obsolete.
108 * config/m68k/tm-3b1.h: Mark file obsolete.
109
720aa428
MK
1102003-11-29 Mark Kettenis <kettenis@gnu.org>
111
112 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
113 (x86_64_reg_class): Remove enum.
114 (merge_classes, classify_argument, examine_argument): Remove
115 functions.
116 (INT_REGS, SSE_REGS): Remove macros.
117 (x86_64_push_arguments): Remove function.
118 (amd64_push_arguments): New function.
119 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
120 x86_64_push_arguments.
121
35883a3f
MK
1222003-11-28 Mark Kettenis <kettenis@gnu.org>
123
124 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
125 zero. Reorganize code a bit.
126
597684c5
MK
1272003-11-27 Mark Kettenis <kettenis@gnu.org>
128
3e74aeed
MK
129 * dwarf2-frame.c: Fix another comment.
130
efb1c01c
MK
131 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
132 (x86_64_use_struct_convention, x86_64_extract_return_value,
133 x86_64_store_return_value): Remove.
134 (amd64_reg_class): New enum.
135 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
136 amd64_return_value): New functions.
137 (x86_64_init_abi): Don't set extract_return_value,
138 store_return_value and use_struct_convention. Set return_value to
139 amd64_return_value.
140 * i387-tdep.h (i387_return_value): New prototype.
141 * i387-tdep.c (i387_return_value): New function.
142
e4e9607c
MK
143 * dwarf2-frame.c: Fix some comments and whitespace problems.
144
13739f4d
MK
145 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
146 "gdb_assert.h" and "gdb_string.h".
147 (i386nbsd_r_reg_offset): Rename from regmap.
148 (SIZEOF_STRUCT_REG): Remove.
149 (i386nbsd_supply_reg, fetch_core_registers,
150 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
151 Remove.
152 (i386nbsd_aout_supply_regset,
153 i386nbsd_aout_regset_from_core_section): New functions.
154 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
155 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
156 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
157 initialize TDEP->sc_num_regs.
158 (i386nbsdaout_init_abi): New function.
159 (i386nbsdelf_init_abi): Remove initialization of
160 TDEP->num_xmm_regs. Don't set num_regs here.
161 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
162 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
163
597684c5
MK
164 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
165 .note.netbsdcore.procinfo section to recognize NetBSD core files.
166
37e79b6b
MC
1672003-11-26 Michael Chastain <mec.gnu@mindspring.com>
168
169 * cp-abi.c: Update copyright years.
170
24557e30
AC
1712003-11-25 Andrew Cagney <cagney@redhat.com>
172
173 * thread-db.c (enable_thread_event): New function. Ensure that BP
174 is a code address.
175 (enable_thread_event_reporting): Use enable_thread_event.
176
78c63a3b
MS
1772003-11-25 Michael Snyder <msnyder@redhat.com>
178
179 * mips-tdep.c (mips_o64_extract_return_value): Correct for
180 NUM_REGS (see changes 2003-06-21).
181 (mips_eabi_extract_return_value): Ditto.
182
aff6338a
AC
1832003-11-25 Andrew Cagney <cagney@redhat.com>
184
185 * infrun.c: Don't include "exec.h".
186 (handle_inferior_event): Pass current_target, instead of exec_ops,
187 to SOLIB_ADD. Add comments.
188 * Makefile.in (infrun.o): Update dependencies.
189
9e08b29b
DJ
1902003-11-24 Daniel Jacobowitz <drow@mvista.com>
191
192 * NEWS: Mention improved location expression support.
193
603942cc
AC
1942003-11-23 Andrew Cagney <cagney@redhat.com>
195
196 * Makefile.in (infrun.o): Update dependencies.
197 * infrun.c: Include "exec.h".
198 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
199
66c57289
AC
2002003-11-23 Andrew Cagney <cagney@redhat.com>
201
dd3ecc14
AC
202 * frame.c (frame_unwind_signed_register): Delete function.
203 * frame.h (frame_unwind_register_signed): Delete declaration.
204 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
205
eec1a560
AC
206 * arch-utils.h (generic_cannot_extract_struct_value_address):
207 Delete declaration.
208
cb137aa5
AC
209 * defs.h (DEPRECATED_STREQN): Rename STREQN.
210 (DEPRECATED_STREQ): Rename STREQ.
211 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
212 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
213 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
214 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
215 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
216 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
217 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
218 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
219 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 220
cb137aa5 221 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
222 * elfread.c (elf_symtab_read): Delete STREQ from comment.
223
29dfb2ac
AC
2242003-11-22 Andrew Cagney <cagney@redhat.com>
225
213cc0ad
AC
226 * frame.c (deprecated_frame_xmalloc): Delete function.
227 (deprecated_set_frame_extra_info_hack): Delete function.
228 (deprecated_set_frame_saved_regs_hack): Delete function.
229 * frame.h (deprecated_frame_xmalloc): Delete declaration.
230 (deprecated_set_frame_extra_info_hack): Delete declaration.
231 (deprecated_set_frame_saved_regs_hack): Delete declaration.
232 * mcore-tdep.c (analyze_dummy_frame): Instead of
233 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
234 and deprecated_set_frame_extra_info_hack use
235 deprecated_frame_xmalloc_with_cleanup.
236 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
237 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
238 deprecated_set_frame_saved_regs_hack.
239
35bb18ac
AC
240 * mips-tdep.c (mips_frame_chain): Delete call to
241 deprecated_inside_entry_file.
242
38a7ce4b
AC
243 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
244 (deprecated_set_frame_prev_hack): Delete declaration.
245 * frame.c (deprecated_set_frame_next_hack): Delete function.
246 (deprecated_set_frame_prev_hack): Delete function.
247 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
248 "deprecated_set_frame_next_hack" and
249 "deprecated_set_frame_prev_hack".
250 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
251
47ebcfbe
AC
252 * mips-tdep.c (mips_register_convertible): Delete function.
253 (mips_register_convert_to_virtual): Delete function.
254 (mips_register_convert_to_raw): Delete function.
255 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
256 "deprecated_register_convert_to_virtual", or
257 "deprecated_register_convert_to_raw".
258 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
259 32/64 cooked to raw register conversions.
260
2a9264f1 261 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 262 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
263 (struct frame_info): Delete member "context".
264 * frame.h (deprecated_get_frame_context): Delete declaration.
265 (deprecated_set_frame_context): Delete declaration.
266
7af6341f
AC
267 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
268 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
269 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
270 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
271
10a08821
AC
272 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
273 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
274 mips_regsize.
275 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
276 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
277 * config/mips/tm-irix5.h: Update copyright.
278 (SIGFRAME_REG_SIZE): Delete macro.
279
00d33403
AC
280 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
281 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
282 declaration.
283 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
284 * infcall.c (call_function_by_hand): Delete #ifdef
285 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
286 * infcmd.c (print_return_value): Ditto.
287
74da7425
AC
288 * mips-tdep.c (skip_prologue_using_sal): New function.
289 (mips32_skip_prologue, mips16_skip_prologue): Use
290 skip_prologue_using_sal to get an upper bound on the search.
291
369864a4
AC
292 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
293 #if 0'ed macro.
294 * infrun.c (step_into_function): Delete #ifdef
295 PROLOGUE_FIRSTLINE_OVERLAP code.
296 * symtab.c (find_function_start_sal): Ditto.
297
a5a12285
AC
298 * remote-rdp.c: Update copyright.
299 (rdp_init): #if 0 references to "target_byte_order".
300
29dfb2ac
AC
301 * mips-tdep.c (mips_o32_store_return_value): Delete function.
302 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
303 (mips_o32_extract_return_value): Delete function.
304 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
305 (mips_n32n64_extract_return_value): Delete function.
306 (mips_n32n64_store_return_value): Delete function.
307 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
308 instead of "store_return_value", "extract_return_value", and
309 "use_struct_convention".
310 (mips_n32n64_use_struct_convention): Delete function.
311
3a3da38c
KB
3122003-11-21 Kevin Buettner <kevinb@redhat.com>
313
314 * frv-tdep.c (frv_frame_this_id): Eliminate call to
315 inside_entry_func().
316
c5e656c1
MK
3172003-11-20 Mark Kettenis <kettenis@gnu.org>
318
319 * i386-tdep.c (i386_extract_return_value,
320 i386_store_return_value): Add gdbarch argument. Use it instead of
321 determining it from REGCACHE. Remove recursive call for
322 structures with a single member.
323 (i386_use_struct_convention): Remove.
324 (i386_reg_struct_return_p): New function.
325 (i386_return_value): New function.
326 (i386_gdbarch_init): Set return_value, don't set
327 extract_return_value, store_return_value and
328 use_struct_convention.
329 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
330
515cc92e
JB
3312003-11-20 Jim Blandy <jimb@redhat.com>
332
333 * osabi.c (_initialize_gdb_osabi): Don't return before registering
334 the 'set osabi' and 'show osabi' commands.
335
3f1d7f16
MK
3362003-11-19 Mark Kettenis <kettenis@gnu.org>
337
338 * frame.c (get_prev_frame): Use result from
339 get_frame_address_in_block instead of get_frame_pc as argument to
340 inside_main_func. Fixes PR backtrace/1435.
341
667e784f
AC
3422003-11-19 Andrew Cagney <cagney@redhat.com>
343
344 * stack.c (return_command): Handle "void", "legacy" and "unknown
345 location" return values separatly.
346 * values.c (using_struct_return): Return 0 for a "void" return
347 type. Mention "register_value_being_returned".
348 (register_value_being_returned): Mention "using_struct_return".
349
4cecd739
DJ
3502003-11-19 Daniel Jacobowitz <drow@mvista.com>
351
352 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
353 (frame_base_offset): Delete.
354 (read_func_scope): Delete call to decode_locdesc.
355 (decode_locdesc): Update comments. Don't set the removed variables.
356 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
357 DW_OP_fbreg support.
358
6b992462
DJ
3592003-11-18 Daniel Jacobowitz <drow@mvista.com>
360
361 * dwarf2read.c (optimized_out, islocal): Remove.
362 (decode_locdesc): Update comments. Don't set optimized_out
363 or islocal.
364
968d1cb4
JJ
3652003-11-17 Jeff Johnston <jjohnstn@redhat.com>
366 David Mosberger <davidm@hpl.hp.com>
367
368 * ia64-tdep.c: Include elf.h.
369 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
370 libunwind-ia64.h.
371 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
372 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
373 (ia64_is_fpreg, ia64_access_reg): Ditto.
374 (ia64_access_fpreg, ia64_access_mem): Ditto.
375 (get_kernel_table): Ditto.
376 (ia64_find_unwind_table): Ditto.
377 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
378 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
379 (ia64_libunwind_frame_prev_register): Ditto.
380 (ia64_libunwind_frame_sniffer): Ditto.
381 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
382 sniffer. Register libunwind functions needed by generic
383 libunwind frame code using libunwind_frame_set_descr().
384
d29caefc
DJ
3852003-11-16 Daniel Jacobowitz <drow@mvista.com>
386
387 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
388 bp_shlib_disabled breakpoint if there is a shared library mapped
389 at its expected address.
390
691c0433
AC
3912003-11-16 Andrew Cagney <cagney@redhat.com>
392
96cb1c2f
AC
393 * configure.tgt: Delete mips*tx39*-elf*.
394 * config/mips/tm-tx39.h: Delete file.
395 * config/mips/tx39.mt: Delete file.
396 * config/mips/tx39.mt: Delete file.
397
691c0433
AC
398 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
399 * remote-mips.c (common_open): Instead of
400 "mips_read_register_type" and "mips_set_processor_type_command"
401 call "deprecated_mips_set_processor_regs_hack".
402 * config/mips/tm-mips.h (mips_read_processor_type): Delete
403 declaration.
404 (mips_set_processor_type_command): Delete declaration.
405 * mips-tdep.c (mips_gdbarch_init): Update comment.
406 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
407 (mips_set_processor_type): Delete function.
408 (NUM_MIPS_PROCESSOR_REGS): Define.
409 (mips_show_processor_type_command): Delete function.
410 (mips_set_processor_type_command): Delete function.
411 (tmp_mips_processor_type): Delete.
412 (mips_processor_type): Delete.
413 (mips_processor_type_table): Delete.
414 (mips_r3051_reg_names): Delete.
415 (mips_r3081_reg_names): Delete.
416 (mips_lsi33k_reg_names): Delete.
417 (mips_processor_reg_names): Delete.
418 (mips_read_processor_type): Delete function.
419 (deprecated_mips_set_processor_regs_hack): New function.
420 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
421 (mips_register_name): Get the processor names from the tdep.
422 (mips_tx39_reg_names): New array.
423 (mips_generic_reg_names): Wire to a standard set of names.
424 (mips_gdbarch_init): Set "mips_processor_reg_names".
425 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
426 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
427 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
428
56cea623
AC
4292003-11-16 Andrew Cagney <cagney@redhat.com>
430
431 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
432 (mips_fpa0_regnum, mips_regnum): New function.
433 (mips_gdbarch_init): Fill in the "regnum" fields.
434 * mips-tdep.h (struct mips_regnum): Define.
435 (mips_regnum): Declare.
436 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
437 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
438 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
439 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
440 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
441 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
442 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
443 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
444 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
445 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
446 * remote-mips.c: Include "mips-tdep.h". Update.
447 * mipsnbsd-tdep.c: Update.
448 * mipsv4-nat.c: Update.
449 * mips-tdep.c: Update.
450 * mips-nat.c: Update.
451 * mips-linux-tdep.c: Update.
452 * mips-linux-nat.c: Update.
453 * irix5-nat.c: Update.
454 * dve3900-rom.c: Include "mips-tdep.h". Update.
455 (ignore_packet): Supress GCC warning.
456 * config/mips/nm-riscos.h: Update.
457
719ec221
AC
4582003-11-16 Andrew Cagney <cagney@redhat.com>
459
460 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
461 register_size.
462 (mips_register_raw_size): Delete function.
463 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
464 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
465 Check and set "mips64_transfers_32bit_regs_p".
466 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
467 (mips_register_convertible): Check the architecture's
468 "mips64_transfers_32bit_regs_p".
469 (set_mips64_transfers_32bit_regs): New function.
470 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
471 "set remote-mips64-transfers-32bit-regs" command. Specify
472 set_mips64_transfers_32bit_regs as the set function.
56cea623 473 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 474
20187ed5
MK
4752003-11-16 Mark Kettenis <kettenis@gnu.org>
476
477 * i386-tdep.h (i386_supply_gregset): Provide prototype.
478 * i386-tdep.c (i386_supply_gregset): Make public.
479
6771c427
AC
4802003-11-16 Andrew Cagney <cagney@redhat.com>
481
482 * mips-tdep.c (mips_register_byte): Delete function.
483 (mips_gdbarch_init): Do not set "deprecated_register_byte".
484 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
485 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
486 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
487
c8048956
MK
4882003-11-16 Mark Kettenis <kettenis@gnu.org>
489
490 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
491
cc8a868a
AC
4922003-11-16 Andrew Cagney <cagney@redhat.com>
493
494 * config/mips/linux64.mt: Delete file.
495 * config/mips/tm-linux64.h: Delete file.
496 * config/mips/tm-mips64.h: Delete file.
497 * config/mips/embed64.mt: Delete file.
498 * config/djgpp/fnchange.lst: Update.
499 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
500 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
501 * config/mips/tm-irix6.h: Update copyright. Include
502 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
503 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
504 "OP_LDGPR".
505
5ef80fb0
AC
5062003-11-15 Andrew Cagney <cagney@redhat.com>
507
508 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
509 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
510 n32 registers 64 bit.
511 (mips_register_raw_size, mips_register_byte): For pseudo
512 registers, use the register's pseudo size and not the
513 corresponding raw register's size.
514 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
515 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
516 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
517 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
518
4246e332
AC
5192003-11-15 Andrew Cagney <cagney@redhat.com>
520
8fa9cfa1
AC
521 * mips-tdep.c (struct gdbarch_tdep): Delete member
522 gdb_target_is_mips64.
523 (GDB_TARGET_IS_MIPS64): Delete macro.
524 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
525 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
526 (mips_addr_bits_remove): Simplify.
527
c73e8f27
AC
528 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
529 register_size.
530
4246e332
AC
531 Replace MIPS_REGSIZE with mips_regsize.
532 * mips-tdep.c (mips_regsize): New function.
533 * mips-tdep.h (mips_regsize): Declare.
534 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
535 (SIZEOF_STRUCT_REG): Update.
536 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
537 (mipsnbsd_fill_reg): Update.
538 (mipsnbsd_supply_fpreg): Update.
539 (mipsnbsd_fill_fpreg): Update.
540 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
541 * mips-tdep.c (mips_register_raw_size): Update.
542 (mips_register_type): Update.
543 (SIGFRAME_BASE): Update.
544 (SIGFRAME_PC_OFF): Update.
545 (SIGFRAME_REGSAVE_OFF): Update.
546 (SIGFRAME_FPREGSAVE_OFF): Update.
547 (SIGFRAME_REG_SIZE): Update.
548 (mips32_heuristic_proc_desc): Update.
549 (print_gp_register_row): Update.
550 (mips_dump_tdep): Do not print MIPS_REGSIZE.
551 * irix5-nat.c (supply_gregset): Update.
552 (fetch_core_registers): Update.
553 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
554 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
555 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
556 (MIPS_REGISTER_BYTE): Update.
557 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
558
5e044b1e
AC
5592003-11-15 Andrew Cagney <cagney@redhat.com>
560
561 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
562 USE_REGISTER_NOT_ARG.
563 * stabsread.c (define_symbol): Update.
564
3a16a68c
AC
5652003-11-15 Andrew Cagney <cagney@redhat.com>
566
567 * bcache.h (deprecated_bcache): Declare.
568 (bcache): Make returned buffer constant.
569 * bcache.c (deprecated_bcache): New function.
570 (bcache_data): New function.
571 (bcache): Call bcache data.
572 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
573 (add_psymbol_with_dem_name_to_list): Ditto.
574
bb41a796
MK
5752003-11-15 Mark Kettenis <kettenis@gnu.org>
576
577 * glibc-tdep.h (struct gdbarch): Declare opaque.
578 (glibc_skip_solib_resolver): Adjust prototype.
579 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
580 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
581 (arm_linux_init_abi): Set skip_solib_resolver.
582 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
583 (i386_linux_init_abi): Set skip_solib_resolver.
584 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
585 (arm_linux_skip_solib_resolver): Remove prototype.
586 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
587 (i386_linux_skip_solib_resolver): Remove prototype.
588
4c8c40e6
MK
5892003-11-14 Mark Kettenis <kettenis@gnu.org>
590
591 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
592 function.
593 * gdbarch.c, gdbarch.h: Regenerate.
594 * infrun.c (handle_inferior_event): Call
595 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
596 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
597 definition.
598 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
599 prototype.
600
0e5d83e3
JJ
6012003-11-14 Jeff Johnston <jjohnstn@redhat.com>
602
603 * libunwind-frame.c: New file.
604 * libunwind-frame.h: New file.
605 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
606 * configure.in: Add --with-libunwind option support. Define
607 HAVE_LIBUNWIND if libunwind support selected / defaulted.
608 Also check for libunwind.h and libunwind-ia64.h headers.
609 * configure: Regenerated.
610 * Makefile.in: Add support for libunwind-frame.o.
611 * config.in: Regenerated.
612
287a334e
JJ
6132003-11-14 Jeff Johnston <jjohnstn@redhat.com>
614
615 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
616 set up the ia64 linux native target method for getting the kernel
617 unwind table.
618 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
619 * inftarg.c (child_xfer_partial): Enable section of code to
620 handle TARGET_OBJECT_UNWIND_TABLE.
621 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
622
140be7b8
ILT
6232003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
624
625 * config/arm/nbsd.mt (TM_FILE): Define.
626 * config/arm/tm-nbsd.h: New file.
627
0a90bcdd
AC
6282003-11-14 Andrew Cagney <cagney@redhat.com>
629
630 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
631 * ppc-sysv-tdep.c: Include "objfiles.h".
632 (ppc64_sysv_abi_push_dummy_call): Provide the
633 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
634
635 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
636 "name_of_malloc" to ".malloc".
637
087f1027
MK
6382003-11-13 Mark Kettenis <kettenis@gnu.org>
639
640 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
641
3882f37a
DC
6422003-11-13 David Carlton <carlton@kealia.com>
643
644 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
645
a8cf2722
AC
6462003-11-13 Andrew Cagney <cagney@redhat.com>
647
648 * arch-utils.h (selected_architecture_name): Declare.
649 (selected_byte_order): Declare.
650 * arch-utils.c (selected_byte_order): New function.
651 (selected_architecture_name): New function.
652 (target_architecture_auto): Make static.
653 (set_architecture_string): Make static.
654 (target_byte_order): Make static.
655 (target_byte_order_auto): Make static.
656 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
657 non-multi-arch definition.
658 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
659 (target_byte_order, target_architecture): Delete declaration.
660 (target_byte_order_auto, target_architecture_auto): Ditto.
661 * gdbarch.h: Re-generate.
662 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
663 "selected_byte_order".
664
475b6ddd
AC
6652003-11-13 Andrew Cagney <cagney@redhat.com>
666
667 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
668
a22286a9
JB
6692003-11-13 Jim Blandy <jimb@redhat.com>
670
671 * cp-namespace.c: Doc fix.
672
7bb11558
MS
6732003-11-12 Michael Snyder <msnyder@redhat.com>
674
39add00a
MS
675 * sh64_tdep.c: Regularize some names.
676 (sh_sh64_register_name): Rename to sh64_register_name.
677 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
678 (sh_sh64_register_byte): Rename to sh64_register_byte.
679 (sh_sh64_build_float_register_type):
680 Rename to sh64_build_float_register_type.
681 (sh_sh64_register_convert_to_virtual):
682 Rename to sh64_register_convert_to_virtual.
683 (sh_sh64_register_convert_to_raw):
684 Rename to sh64_register_convert_to_raw.
685
2a314ed5
MS
686 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
687 sh64_media_reg_base_num, sh64_compact_reg_base_num,
688 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
689 sh64_extract_return_value, sh64_show_media_regs,
690 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
691 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
692 sh64_pseudo_register_read, sh64_pseudo_register_write,
693 sh64_do_pseudo_register, sh_compact_print_registers_info):
694 Delete unused variable 'tdep'.
695
7bb11558
MS
696 * sh64-tdep.c: Coding standard and spelling comment fixes.
697 (sh64_extract_return_value): Replace deprecated_store_floating
698 with store_typed_floating.
699 (sh_sh64_register_convert_to_raw): Replace
700 deprecated_store_floating with store_typed_floating.
701 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
702 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
703 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
704 sh64_extract_struct_value_address, sh64_pop_frame,
705 sh64_extract_return_value, sh64_store_return_value,
706 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
707 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
708 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
709 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
710 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
711 deprecated_register_virtual_type, deprecated_register_raw_size,
712 deprecated_max_register_raw_size, or
713 deprecated_max_register_virtual_size. Instead, just set
714 gdbarch_register_type.
39add00a
MS
715 (sh_sh64_register_raw_size): Delete.
716 (sh_sh64_register_virtual_size): Delete.
7bb11558 717
e7c27a73
DJ
7182003-11-12 Daniel Jacobowitz <drow@mvista.com>
719
720 * dwarf2read.c (struct dwarf2_cu): New type.
721
722 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
723 dwarf2_cu structure to pass down.
724
725 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
726 (add_partial_enumeration, locate_pdi_sibling, process_die)
727 (read_file_scope, read_func_scope)
728 (read_lexical_block_scope, dwarf2_get_pc_bounds)
729 (dwarf2_add_field, dwarf2_attach_fields_to_type)
730 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
731 (read_structure_scope, read_enumeration, read_array_type)
732 (read_common_block, read_namespace, read_tag_pointer_type)
733 (read_tag_ptr_to_member_type, read_tag_reference_type)
734 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
735 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
736 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
737 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
738 (read_full_die. read_attribute_value, read_attribute)
739 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
740 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
741 (die_containing_type, type_at_offset, tag_type_to_type)
742 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
743 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
744
1640b821
DJ
7452003-11-12 Daniel Jacobowitz <drow@mvista.com>
746
747 PR breakpoints/1450
748 * breakpoint.c (insert_bp_location): Fix a logic error by returning
749 0 after a catchpoint fails.
750
d7891507
MC
7512003-11-11 Michael Chastain <mec.gnu@mindspring.com>
752
753 * mips-tdep.c (msymbol_size): Delete.
754
f594e5e9
MC
7552003-11-07 Michael Chastain <mec@shout.net>
756
757 * symtab.h (struct minimal_symbol): Add size.
758 * dbxread.c: Use it.
759 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
760 Rename to record_minimal_symbol.
761 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
762 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
763 (install_minimal_symbols): Ditto.
764 * objfiles.c (terminate_minimal_symbol_table): Ditto.
765 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
766 * m68hc11-tdep.c: Ditto.
767 * mips-tdep.c: Ditto.
768 * sh64-tdep.c: Ditto.
769
68e39e73
MC
7702003-11-10 Michael Chastain <mec.gnu@mindspring.com>
771
772 * MAINTAINERS: Change my e-mail address.
773
b60eb90d
AC
7742003-11-10 Andrew Cagney <cagney@redhat.com>
775
963e2bb7
AC
776 * gdbarch.sh (return_value): Replace "inval" and "outval" with
777 "readbuf" and "writebuf".
778 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
779 * d10v-tdep.c (d10v_return_value): Ditto.
780 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
781 (ppc_sysv_abi_broken_return_value): Ditto.
782 (ppc64_sysv_abi_return_value): Ditto.
783 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
784 (ppc_sysv_abi_return_value): Ditto.
785 (ppc_sysv_abi_broken_return_value): Ditto.
786 (ppc64_sysv_abi_return_value): Ditto.
787 * values.c (register_value_being_returned): Update call.
788 * stack.c (return_command): Update call.
789 * gdbarch.h, gdbarch.c: Re-generate.
790
8aa91c1e
AC
791 * target.h (struct target_ops): Order xfer buffer parameters "read
792 write" not "write read".
793 * bfd-target.c (target_bfd_xfer_partial): Update.
794 * remote.c (remote_xfer_partial): Update.
795 * inftarg.c (child_xfer_partial): Update.
796 * target.c (default_xfer_partial): Update.
797 (target_read_partial, target_write_partial): Update.
798 (debug_to_xfer_partial): Update.
799
100bcc3f
AC
800 * arch-utils.h, arch-utils.c: Fix typo in comment.
801
b60eb90d
AC
802 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
803 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
804 (set_gdbarch_from_file): Call
805 "deprecated_current_gdbarch_select_hack".
b60eb90d 806
bf922ad9
AC
8072003-11-09 Andrew Cagney <cagney@redhat.com>
808
ebdba546
AC
809 * arch-utils.c (gdbarch_update_p): New function.
810 * gdbarch.sh (gdbarch_update_p): Delete function.
811 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 812 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
813 * gdbarch.c: Re-generate.
814
7de2341d
AC
815 * gdbarch.sh (clear_gdbarch_swap): Delete function.
816 (swapout_gdbarch_swap): Delete function.
817 (swapin_gdbarch_swap): Delete function.
818 (init_gdbarch_swap): Delete function.
819 (initialize_non_multiarch): Delete function.
820 (current_gdbarch_swap_in_hack): New function.
821 (current_gdbarch_swap_out_hack): New function.
822 (current_gdbarch_swap_init_hack): New function.
823 * gdbarch.c: Re-generate.
824
db446970
AC
825 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
826 parameter to "current_gdbarch". Add comment explaining why.
827 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
828 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
829 * gdbarch.c: Re-generate.
830
341e3d11
AC
831 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
832 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
833 * config/s390/xm-linux.h: Delete file.
834 * config/m88k/xm-delta88v4.h: Delete stray.
835
bf922ad9
AC
836 * Makefile.in (arch-utils.o): Update dependencies.
837 * arch-utils.c: Include "osabi.h".
838 (gdbarch_info_fill): New function.
839 * arch-utils.h (gdbarch_info_fill): Declare.
840 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
841 * gdbarch.c: Re-generate.
842
a3640c75
MK
8432003-11-09 Mark Kettenis <kettenis@gnu.org>
844 David S. Miller <davem@redhat.com>
845
846 * glibc-tdep.c, glibc-tdep.h: New files.
847 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
848 * config/i386/linux.mt (TDEPFILES): Likewise.
849 * i386-linux-tdep.c (glibc-tdep.h): Include.
850 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
851 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
852 * arm-linux-tdep.c (glibc-tdep.h): Include.
853 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
854 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
855 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
856 (glibc_tdep_h): Define.
857 (glibc-tdep.o): Add dependencies.
858 (arm-linux-tdep.o): Update dependencies.
859 (i386-linux-tdep.o): Likewise.
860
e60e0ab2
AC
8612003-11-09 Andrew Cagney <cagney@redhat.com>
862
863 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
864 * config/mips/nm-irix6.h: Delete file.
865 * config/mips/nm-linux.h: Update copyright.
866 (MIPS_GNULINUX_TARGET): Delete macro.
867 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
868 * config/mips/xm-irix6.h: Delete file.
869 * config/mips/linux.mh (XM_FILE): Delete definition.
870 * config/mips/xm-linux.h: Delete file.
871
181555e9
AC
8722003-11-09 Andrew Cagney <cagney@redhat.com>
873
874 * d10v-tdep.c (d10v_return_value): New function.
875 (d10v_use_struct_convention): Delete function.
876 (d10v_store_return_value): Delete function.
877 (d10v_extract_struct_value_address): Delete function.
878 (d10v_gdbarch_init): Set "return_value" instead of
879 "extract_return_value", "store_return_value",
880 "extract_struct_value_address", and "use_struct_convention".
881 (RET1_REGNUM): Delete const.
882
dea0c52f
MK
8832003-11-09 Mark Kettenis <kettenis@gnu.org>
884
885 From David S. Miller <davem@redhat.com>:
886 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
887 * gdbarch.c, gdbarch.h: Regenerated.
888 * arch-utils.c (generic_skip_solib_resolver): New function.
889 * arch-utils.h (generic_skip_solib_resolver): New prototype.
890 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
891
6314a349
AC
8922003-11-07 Andrew Cagney <cagney@redhat.com>
893
894 * top.c (print_gdb_version): Replace STREQ with strcmp.
895 * valops.c (value_struct_elt_for_reference): Ditto.
896 (value_struct_elt_for_reference): Ditto.
897 * symtab.c (gdb_mangle_name): Ditto.
898 (find_line_symtab): Ditto.
899 * symmisc.c (maintenance_print_symbols): Ditto.
900 * symfile.c (symbol_file_command): Ditto.
901 * stabsread.c (define_symbol, read_type): Ditto.
902 (cleanup_undefined_types, scan_file_globals): Ditto.
903 * solib.c (solib_map_sections): Ditto.
904 * solib-svr4.c (bfd_lookup_symbol): Ditto.
905 * rs6000-tdep.c (skip_prologue): Ditto.
906 * p-valprint.c (pascal_value_print): Ditto.
907 (pascal_object_is_vtbl_ptr_type): Ditto.
908 * objfiles.c (in_plt_section): Ditto.
909 * minsyms.c (lookup_minimal_symbol): Ditto.
910 (compact_minimal_symbols): Ditto.
911 (find_solib_trampoline_target): Ditto.
912 * mdebugread.c (parse_type): Ditto.
913 * language.c (set_language_command): Ditto.
914 (set_type_command, set_range_command): Ditto.
915 * f-lang.c (add_common_block): Ditto.
916 (add_common_block): Ditto.
917 (find_first_common_named): Ditto.
918 (patch_all_commons_by_name): Ditto.
919 * elfread.c (elf_locate_sections): Ditto.
920 (elf_locate_sections): Ditto.
921 (elfstab_offset_sections): Ditto.
922 * dwarf2read.c (dwarf2_locate_sections): Ditto.
923 * dbxread.c (add_old_header_file): Ditto.
924 (find_corresponding_bincl_psymtab): Ditto.
925 (read_dbx_symtab, process_one_symbol): Ditto.
926 * coffread.c (patch_opaque_types): Ditto.
927 * cli/cli-decode.c (delete_cmd): Ditto.
928 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
929 * c-typeprint.c (c_type_print_base): Ditto.
930 * breakpoint.c (bpstat_stop_status): Ditto.
931 (clear_command, breakpoint_re_set_one): Ditto.
932
49df298f
AC
9332003-11-07 Andrew Cagney <cagney@redhat.com>
934
935 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
936 * bcache.c (struct bstring): Make "length" an unsigned short, add
937 "half_hash".
938 (struct bcache): Add "half_hash_error_count".
939 (bcache): Compute and save the "half_hash". Compare the
940 "half_hash" before comparing the length. Update
941 half_hash_error_count.
942
f168dd80
AC
9432003-11-07 Andrew Cagney <cagney@redhat.com>
944
945 * inftarg.c (child_xfer_partial): New function
946 (init_child_ops): Set "to_xfer_partial".
947
05580c65
AC
9482003-11-07 Andrew Cagney <cagney@redhat.com>
949
950 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
951 set "return_value" instead of "use_struct_convention".
952 (ppc_linux_use_struct_convention): Delete function.
953 (ppc_linux_return_value): New function.
954 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
955 (ppc_sysv_abi_broken_return_value): New function.
956 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
957 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
958 static.
959 (ppc_sysv_abi_extract_return_value): Delete function.
960 (ppc_sysv_abi_broken_extract_return_value): Delete function.
961 (ppc_sysv_abi_store_return_value): Delete function.
962 (ppc_sysv_abi_broken_store_return_value): Delete function.
963 (ppc_sysv_abi_use_struct_convention): Delete function.
964 (ppc64_sysv_abi_use_struct_convention): Delete function.
965 (ppc64_sysv_abi_extract_return_value): Delete function.
966 (ppc64_sysv_abi_store_return_value): Delete function.
967 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
968 (ppcnbsd_init_abi): Set "return_value", instead of
969 "use_struct_convention", "extract_return_value", and
970 "store_return_value".
971 (ppcnbsd_use_struct_convention): Delete function.
972 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
973 (ppc_sysv_abi_return_value): Declare.
974 (ppc_sysv_abi_broken_return_value): Declare.
975 (ppc_sysv_abi_use_struct_convention): Delete.
976 (ppc_sysv_abi_store_return_value): Delete.
977 (ppc_sysv_abi_extract_return_value): Delete.
978 (ppc_sysv_abi_broken_store_return_value): Delete.
979 (ppc_sysv_abi_broken_extract_return_value): Delete.
980 (ppc64_sysv_abi_use_struct_convention): Delete.
981 (ppc64_sysv_abi_extract_return_value): Delete.
982 (ppc64_sysv_abi_store_return_value): Delete.
983 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
984 set "return_value" instead of "extract_return_value",
985 "store_return_value", and "use_struct_convention".
986
1763fba4
MK
9872003-11-07 Mark Kettenis <kettenis@gnu.org>
988
22c7ba1a
MK
989 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
990
1763fba4
MK
991 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
992 fscanf.
993
fc07cc2d
MK
9942003-11-07 Mark Kettenis <kettenis@gnu.org>
995
996 * fbsd-proc.c: Fix formatting.
997
6a748db6
KB
9982003-11-06 Kevin Buettner <kevinb@redhat.com>
999
1000 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1001 Define.
1002 (new_variant): Set name for iacc0_regnum.
1003 (frv_register_name): Accommodate pseudo-registers.
1004 (frv_register_type): Add case for iacc0_regnum.
1005 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1006 (frv_gdbarch_init): Set number of pseudo registers. Establish
1007 pseudo-register read/write methods.
1008
bf896cb0
AC
10092003-11-06 Andrew Cagney <cagney@redhat.com>
1010
1011 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1012 * top.c (command_line_input): Ditto.
1013 * objc-exp.y (yylex): Ditto.
1014 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1015 * jv-exp.y (yylex): Ditto.
1016 * f-exp.y (yylex): Ditto.
1017 * event-top.c (command_line_handler): Ditto.
1018 * environ.c (get_in_environ): Ditto.
1019 (set_in_environ): Ditto.
1020 * dwarfread.c (handle_producer): Ditto.
1021 * dbxread.c (process_one_symbol): Ditto.
1022 * c-typeprint.c (c_type_print_base): Ditto.
1023 * c-exp.y (yylex): Ditto.
1024
0b603eba
AC
10252003-11-06 Andrew Cagney <cagney@redhat.com>
1026 Jeff Johnston <jjohnstn@redhat.com>
1027
1028 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1029 (init_dummy_target): Set "to_xfer_partial".
1030
9cedbfec
AC
10312003-11-06 Andrew Cagney <cagney@redhat.com>
1032
1033 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1034 REGISTER_CONVENTION.
1035
26bb91f3
DJ
10362003-11-06 Daniel Jacobowitz <drow@mvista.com>
1037
1038 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1039 static.
1040
0bde7532
DJ
10412003-11-06 Daniel Jacobowitz <drow@mvista.com>
1042
1043 * breakpoint.c (remove_breakpoint): Take an bp_location
1044 instead of a breakpoint argument. Check the bp_location's type.
1045 Fix a reversed condition for hardware breakpoints.
1046
1047 (insert_bp_location): Update call to remove_breakpoint.
1048 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1049 (remove_hw_watchpoints): Likewise.
1050 (reattach_breakpoints): Likewise.
1051 (detach_breakpoints): Likewise.
1052 (delete_breakpoint): Likewise.
1053
075f6582
DJ
10542003-11-06 Daniel Jacobowitz <drow@mvista.com>
1055
1056 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1057 (beakpoint_init_inferior): Likewise.
1058 (breakpoint_here_p): Likewise. Only check addresses for software
1059 or hardware breakpoints.
1060 (breakpoint_inserted_here_p): Likewise.
1061 (breakpoint_thread_match): Likewise. Correct comment.
1062 (bpstat_have_active_hw_watchpoints): Likewise.
1063 (check_duplicates): Likewise.
1064
879bfdc2
DJ
10652003-11-06 Daniel Jacobowitz <drow@mvista.com>
1066
1067 * breakpoints.c (insert_bp_location): New function, broken out
1068 from insert_breakpoints. Work on an bp_location instead of a
1069 breakpoint.
1070 (insert_breakpoints): Use it.
1071
cf3a9e5b
DJ
10722003-11-06 Daniel Jacobowitz <drow@mvista.com>
1073
1074 * breakpoint.h (struct bp_location): Add section.
1075 (struct breakpoint): Remove section.
1076 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1077 (breakpoint_here_p, breakpoint_inserted_here_p)
1078 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1079 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1080 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1081 section through loc.
1082
ffce0d52
DJ
10832003-11-06 Daniel Jacobowitz <drow@mvista.com>
1084
1085 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1086 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1087
e049a4b5
DJ
10882003-11-06 Daniel Jacobowitz <drow@mvista.com>
1089
1090 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1091 arguments. Initialize owner and type for the new breakpoint
1092 location item.
1093 (set_raw_breakpoint): Update call to allocate_bp_location.
1094
7cc221ef
DJ
10952003-11-06 Daniel Jacobowitz <drow@mvista.com>
1096
1097 * breakpoint.h (struct bp_location): Add a chain pointer.
1098 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1099 macros.
1100 (bp_location_chain): New variable.
1101 (allocate_bp_location): New function.
1102 (set_raw_breakpoint): Use it.
1103 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1104
5cab636d
DJ
11052003-11-06 Daniel Jacobowitz <drow@mvista.com>
1106
1107 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1108 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1109 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1110 * breakpoint.c (condition_command, read_memory_nobpt)
1111 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1112 (reattach_breakpoints, update_breakpoints_after_exec)
1113 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1114 (breakpoint_init_inferior, breakpoint_here_p)
1115 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1116 (breakpoint_thread_match, bpstat_stop_status)
1117 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1118 (describe_other_breakpoints, check_duplicates)
1119 (make_breakpoint_permanent, create_thread_event_breakpoint)
1120 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1121 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1122 (watch_command_1, print_one_exception_catchpoint)
1123 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1124 use the breakpoint's ->loc.
1125 (set_raw_breakpoint): Likewise. Initialize ->loc.
1126 (delete_breakpoint): Likewise. Free ->loc.
1127
7be0c536
AC
11282003-11-05 Andrew Cagney <cagney@redhat.com>
1129
4c7d882e
AC
1130 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1131 macro.
1132 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1133 * config/i386/tm-cygwin.h
1134 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1135 * config/powerpc/tm-linux.h
1136 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1137 (at_subroutine_call_instruction_target): Delete declaration.
1138 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1139 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1140 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1141
7be0c536
AC
1142 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1143 "struct bfd_section" and "struct bfd".
1144 * target.h (struct section_table): Ditto.
1145 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1146 * solib-svr4.c (elf_locate_base): Ditto.
1147 * pa64solib.c (dld_cache_t): Ditto.
1148 * objfiles.h (struct obj_section): Ditto.
1149 * objfiles.c (add_to_objfile_sections): Ditto.
1150 * exec.c (bfdsec_to_vmap): Ditto.
1151 (add_to_section_table): Ditto.
1152 (build_section_table): Ditto.
1153 * corelow.c (get_core_register_section): Ditto.
1154 * coffread.c (find_linenos): Ditto.
1155 * elfread.c (elf_interpreter): Delete #if0'd function.
1156
1157 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1158 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1159 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1160 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1161
1162 * arch-utils.h (generic_cannot_extract_struct_value_address):
1163 Delete declaration.
1164 * wince.c (_initialize_wince): Fix multi-line string.
1165 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1166
d8fe84e3
EZ
11672003-11-05 Elena Zannoni <ezannoni@redhat.com>
1168
1169 * top.c (execute_command): Fix broken logic for command execution
1170 while inferior is running in async mode.
1171
cbdfc7c0
MK
11722003-11-06 Mark Kettenis <kettenis@gnu.org>
1173
1174 * dwarf2-frame.c (execute_cfa_program): Mark register as
1175 REG_SAVED_REG for DW_CFA_register opcode.
1176
dac94105
MK
11772003-11-05 Mark Kettenis <kettenis@gnu.org>
1178
1179 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1180 %rsp, %rip and %eflags to match ABI-change.
1181
85bf2b91
JJ
11822003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1183
1184 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1185 (ia64_gdbarch_init): Don't bother calculating the os.
1186 Instead use the gdbarch_info struct and look at the osabi field.
1187 Also use gdbarch_list_lookup_by_info() to look for a
1188 candidate gdbarch.
1189
cd31fb03
KB
11902003-11-05 Kevin Buettner <kevinb@redhat.com>
1191
1192 * frv-tdep.c (frv_register_byte): Delete.
1193 (frv_extract_return_value, frv_store_return_value)
1194 (frv_extract_struct_value_address): Don't call frv_register_byte().
1195 Convert to non-deprecated form.
1196 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1197 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1198 set_gdbarch_deprecated_store_return_value(), and
1199 set_gdbarch_deprecated_extract_struct_value_address() into
1200 non-deprecated forms.
1201
0a056982
AC
12022003-11-05 Andrew Cagney <cagney@redhat.com>
1203
1204 * mips-tdep.c (mips_dump_tdep): Do not print
1205 PRINT_EXTRA_FRAME_INFO.
1206 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1207 Rename PRINT_EXTRA_FRAME_INFO.
1208 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1209 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1210 (mips_print_extra_frame_info): Delete declaration.
1211 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1212
29e0a062
EZ
12132003-11-05 Elena Zannoni <ezannoni@redhat.com>
1214
1215 * coffread.c (coff_symtab_read): Remove passing of info parameter
1216 to prim_record_minimal_symbol_and_info.
1217
8af580fc
EZ
12182003-11-05 Elena Zannoni <ezannoni@redhat.com>
1219
1220 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1221 (decode_base_type): Delete ifdeffed out code.
1222
507836c0
AC
12232003-11-04 Andrew Cagney <cagney@redhat.com>
1224
1225 * symtab.c (find_active_alias): Delete function.
1226 (lookup_block_symbol): Delete alias code.
1227 * stabsread.c (resolve_live_range): Delete function.
1228 (add_live_range): Delete function.
1229 (resolve_symbol_reference): Delete function.
1230 (define_symbol): Delete live range and alias code.
1231 (scan_file_globals): Delete alias code.
1232 * symtab.h (SYMBOL_RANGES): Delete macro.
1233 (struct range_list): Delete structure.
1234 (struct symbol): Delete field "ranges".
1235 (SYMBOL_ALIASES): Delete macro.
1236 (struct alias_list): Delete structure.
1237 (struct symbol): Delete field "aliases".
1238
1083b3bc
MS
12392003-11-04 Michael Snyder <msnyder@redhat.com>
1240
1241 * MAINTAINERS: Remove myself as owner of breakpoints and
1242 of sparc/solaris.
1243
474e5826
CV
12442003-11-03 Corinna Vinschen <vinschen@redhat.com>
1245
1246 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1247 (sh_sh4al_dsp_register_name): Ditto.
1248 (sh4_nofpu_show_regs): Ditto.
1249 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1250 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1251
2160782c
AC
12522003-11-03 Andrew Cagney <cagney@redhat.com>
1253
1254 * bcache.c: Include "gdb_assert.h".
1255 (struct bcache): Add fields "expand_count" and
1256 "expand_hash_count".
1257 (expand_hash_table): Update the expand counts.
1258 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1259 on object sizes and hashes.
1260 * Makefile.in (bcache.o): Update dependencies.
1261
85302095
AC
12622003-11-03 Andrew Cagney <cagney@redhat.com>
1263
1264 * exec.c (xfer_memory): Eliminate xfer_fn.
1265
526eef89
KB
12662003-10-31 Kevin Buettner <kevinb@redhat.com>
1267
1268 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1269 (opcodes/frv-desc.h): Include.
1270 (iacc0h_regnum, iacc0l_regnum): Define.
1271 (last_spr_regnum, frv_num_regs): Update.
1272 (new_variant): Don't supply default names for holes in the SPRs.
1273 Supply names for iacc0h_regnum and iacc0l_regnum.
1274 (frv_register_type): Use symbolic constants first_fpr_regnum and
1275 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1276 builtin_type_int instead of builtin_type_int32.
1277 (frv_register_sim_regno): New function.
1278 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1279 * Makefile.in (gdb_sim_frv_h): Define.
1280 (frv-tdep.o): Update dependencies.
1281
9e815ec2
AC
12822003-10-31 Andrew Cagney <cagney@redhat.com>
1283
1284 * avr-tdep.c (avr_frame_this_id): Do not call
1285 deprecated_inside_entry_file.
1286 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1287 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1288 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1289 * arm-tdep.c (arm_prologue_this_id): Ditto.
1290 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1291
e372db49
JB
12922003-10-31 Jim Blandy <jimb@redhat.com>
1293
1294 * elfread.c (elf_symtab_read): Allocate correct number of tail
1295 elements to sectinfo structure. (Fix from Woody LaRue.)
1296
e8bcf01f
AC
12972003-10-31 Andrew Cagney <cagney@redhat.com>
1298
1299 * stack.c (return_command): Use get_frame_type, instead of
1300 CALL_DUMMY_HAS_COMPLETED.
1301 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1302 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1303
4c05fe53
MK
13042003-10-31 Mark Kettenis <kettenis@gnu.org>
1305
1306 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1307 explicitly specify size of array.
1308 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1309 TDEP->sc_num_regs.
1310
c8b91b89
AC
13112003-10-31 Andrew Cagney <cagney@redhat.com>
1312
1313 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1314 function.
1315 (s390_gdbarch_init): Set extract_struct_value_address.
1316 * arch-utils.c (generic_cannot_extract_struct_value_address):
1317 Delete function.
1318 * arch-utils.h (generic_cannot_extract_struct_value_address):
1319 Delete definition.
1320
fdfb6fc8
MK
13212003-10-31 Mark Kettenis <kettenis@gnu.org>
1322
1323 * i386-linux-nat.c (fetch_core_registers): Remove.
1324 (linux_elf_core_fns): Remove.
1325 (_initialize_i386_linux_nat): Remove.
1326
2f4950cd
AC
13272003-10-31 Andrew Cagney <cagney@redhat.com>
1328
1329 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1330 "exec.h".
1331 (exec_entry_point): New function.
1332 (enable_break): Create a "tmp_bfd_target", use that and
1333 entry_point_address when computing the relocation offset.
1334 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1335 * Makefile.in (solib-svr4.o): Update dependencies.
1336
bba2d28d
AC
13372003-10-31 Andrew Cagney <cagney@redhat.com>
1338
1339 * defs.h (XZALLOC): Define.
1340 * target.h (struct target_ops): Add "to_data";
1341 * bfd-target.h, bfd-target.c: New files.
1342 * Makefile.in (SFILES): Add "bfd-target.c".
1343 (COMMON_OBS): Add "bfd-target.o".
1344 (bfd-target.o): Specify dependencies.
1345 (bfd_target_h): Define.
1346 * defs.h (XZALLOC): Define.
1347
6066c3de
AC
13482003-10-31 Andrew Cagney <cagney@redhat.com>
1349
1350 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1351 adjust_breakpoint_address.
1352 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1353 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1354 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1355 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1356
4b8a223f
AC
13572003-10-31 Andrew Cagney <cagney@redhat.com>
1358
1359 * target.h (struct target_ops): Replace "to_read_partial" and
1360 "to_write_partial" with "to_xfer_partial". Update comments.
1361 * target.c (debug_to_write_partial): Delete function.
1362 (debug_to_xfer_partial): Replace debug_to_read_partial.
1363 (add_target, update_current_target, setup_target_debug): Set
1364 "to_xfer_partial" instead of "to_read_partial" and
1365 "to_write_partial".
1366 (default_xfer_partial): Replace "default_write_partial".
1367 (default_read_partial): Delete.
1368 (target_read_partial, target_write_partial): Call
1369 "to_xfer_partial".
1370 * remote.c (init_remote_ops): Set "to_xfer_partial".
1371 (init_remote_async_ops): Ditto.
1372 (remote_xfer_partial): Replace "remote_read_partial".
1373
66a72d25
MK
13742003-10-31 Mark Kettenis <kettenis@gnu.org>
1375
1376 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1377 registers in `fxsave' format.
1378 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1379
9a12a2a0
MK
13802003-10-30 Mark Kettenis <kettenis@gnu.org>
1381
e9f1aad5
MK
1382 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1383 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1384 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1385
bb489b3c
MK
1386 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1387 specify size of array.
1388 (i386_linux_init_abi): Remove initialization of
1389 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1390 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1391
da285bc4
MK
1392 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1393 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1394 core-regset.o.
1395
9a12a2a0
MK
1396 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1397 the ELF header.
1398
0e24ac5d
MK
13992003-10-29 Mark Kettenis <kettenis@gnu.org>
1400
6d6d8e9c
MK
1401 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1402 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1403 core-regset.o.
1404
25e60c9b
MK
1405 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1406
0e24ac5d
MK
1407 * corelow.c: Include "arch-utils.h", "regset.h" and
1408 "gdb_assert.h".
1409 (core_gdbarch): New variable.
1410 (sniff_core_bfd): Don't sniff if we have support for register sets
1411 in CORE_GDBARCH.
1412 (core_close): Reset CORE_GDBARCH.
1413 (core_open): Initialize CORE_GDBARCH.
1414 (get_core_register_section): Use register sets if they are
1415 supported by CORE_GDBARCH.
1416 (get_core_registers): Don't print error message if we have support
1417 for register sets in CORE_GDBARCH.
1418
0a0a4ac3
AC
14192003-10-29 Andrew Cagney <cagney@redhat.com>
1420
1421 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1422 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1423
7b097ae3
MK
14242003-10-29 Mark Kettenis <kettenis@gnu.org>
1425
1426 * objfiles.h (clear_objfile_data): New prototype.
1427 * objfiles.c (clear_objfile_data): New function.
1428 * symfile.c (reread_symbols): Clear per-objfile data.
1429
46f45a4a
JJ
14302003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1431
1432 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1433 printf_unfiltered instead of printf_filtered for output messages.
1434 (add_symbol_file_command): Ditto.
1435 (reread_symbols): Ditto.
1436 (overlay_auto_command): Ditto.
1437 (overlay_manual_command): Ditto.
1438 (overlay_off_command): Ditto.
1439
2b026650
MK
14402003-10-27 Mark Kettenis <kettenis@gnu.org>
1441
1442 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1443 (gdbarch_from_bfd): New function.
1444 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1445 deprecated_select_gdbarch_hack.
1446 * arch-utils.h (gdbarch_from_bfd): New prototype.
1447
0bcad584 14482003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1449
1450 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1451 arch_info. Use warning instead of fprintf_filtered. Do not use
1452 deprecated bfd_printable_arch_mach.
1453
7f398216
KB
14542003-10-26 Kevin Buettner <kevinb@redhat.com>
1455
1456 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1457 Delete.
1458 (frv_register_type): Rename from frv_register_virtual_type. Add
1459 ``struct gdbarch *'' parameter.
1460 (frv_gdbarch_init): Delete calls to the following functions:
1461 set_gdbarch_deprecated_size(),
1462 set_gdbarch_deprecated_register_bytes(),
1463 set_gdbarch_deprecated_register_raw_size(),
1464 set_gdbarch_deprecated_max_register_raw_size(),
1465 set_gdbarch_deprecated_register_virtual_size(),
1466 set_gdbarch_deprecated_max_register_virtual_size(),
1467 set_gdbarch_deprecated_register_virtual_size(),
1468 set_gdbarch_deprecated_register_virtual_type().
1469 Add call to function set_gdbarch_register_type().
1470
bcf48cc7
MK
14712003-10-26 Mark Kettenis <kettenis@gnu.org>
1472
6c7de422
MK
1473 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1474 FDOFF_REGNUM): Remove defines.
1475 * win32-nat.c (do_child_fetch_inferior_registers): Include
1476 "i387-tdep.h".
3e685d41 1477 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1478 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1479 undefine I387_ST0_REGNUM.
1480
f783586b
MK
1481 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1482 * x86-64-tdep.c (x86_64_store_return_value): Use
1483 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1484
bcf48cc7
MK
1485 Change register numbers to enumartion values.
1486 * i386-tdep.h (enum i386_regnum): New.
1487 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1488 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1489 I386_ST0_REGNUM): Remove defines.
1490 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1491 I386_EDI_REGNUM): Remove defines.
1492
b6591e8b
AC
14932003-10-24 Andrew Cagney <cagney@redhat.com>
1494
1495 * target.c: Include "gdbcore.h".
1496 (get_target_memory, get_target_memory_unsigned): New functions.
1497 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1498 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1499 Use get_target_memory_unsigned.
1500 * Makefile.in (target.o): Update dependencies.
1501
5f724446
AC
15022003-10-24 Andrew Cagney <cagney@redhat.com>
1503
ce2826aa
AC
1504 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1505 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1506 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1507 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1508 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1509
5f724446
AC
1510 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1511 (can_run_code_for): Use the OO term "singleton".
1512
fc70c2a0
AC
15132003-10-23 Andrew Cagney <cagney@redhat.com>
1514
1515 * Makefile.in (stack.o): Add $(regcache_h).
1516 * stack.c: Include "regcache.h"
1517 (return_command): Rewrite. Use get_frame_id and
1518 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1519 about unhandled return-values.
1520 * value.h (set_return_value): Delete declaration.
1521 * values.c (set_return_value): Delete function.
1522
4afcc598
JJ
15232003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1524
1525 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1526 (pseudo_regs): Add comment regarding register stack registers.
1527 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1528 (floatformat_valid): New static routine.
1529 (floatformat_ia64_ext): Add name field and set up is_valid routine
1530 to floatformat_valid().
1531 (examine_prologue): For the previous cfm, use
1532 frame_unwind_register()
1533 if the cfm is not stored in a register-stack register. Save the
1534 previous cfm value in the prev_cfm field. Add debug output.
1535 (ia64_frame_this_id): Use frame_id_build_special() to also register
1536 the bsp. Add debug output.
1537 (ia64_sigtramp_frame_this_id): Ditto.
1538 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1539 registers and also add some checks for framelessness before accepting
1540 current register values for fields such as return address. For cfm,
1541 use the cached prev_cfm field if available. Add comment to explain
1542 PSR logic. Add debug output.
1543 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1544 as part of initialization.
1545 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1546 calculated. Cache the bsp and cfm values.
1547 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1548 instead of using ia64_frame_prev_register() which doesn't expect most
1549 registers to be saved. The saved values for bsp and sp
1550 can be taken from the cache. Add debug output.
1551 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1552 the bsp.
1553
6cfae0bc
JB
15542003-10-23 Jim Blandy <jimb@redhat.com>
1555
1556 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1557 architecture the current arch can run code for --- but not if it's
1558 a superset.
1559 (can_run_code_for): New function.
1560
fcd182f9
JW
15612003-10-22 James E Wilson <wilson@specifixinc.com>
1562
1563 * MAINTAINERS: Move myself from paper trail section back to write
1564 after approval section.
1565
4646aa9d
AC
15662003-10-22 Andrew Cagney <cagney@redhat.com>
1567
1568 * exec.h: New file.
1569 * win32-nat.c: Include "exec.h".
1570 * solib.c: Include "exec.h".
1571 * target.h (build_section_table): Delete declaration.
1572 * somsolib.c: Include "exec.h".
1573 (exec_ops): Delete extern declaration.
1574 * rs6000-nat.c: Update copyright. Include "exec.h".
1575 (exec_ops): Delete extern declaration.
1576 * pa64solib.c: Update copyright. Include "exec.h".
1577 (exec_ops): Delete extern declaration.
1578 * exec.c: Update copyright. Include "exec.h".
1579 * corelow.c: Update dependencies. Include "exec.h".
1580 * Makefile.in (exec_h): Define.
1581 (exec.o, somsolib.o): Update dependencies.
1582 (pa64solib.o, corelow.o): Update dependencies.
1583
0088c768
AC
15842003-10-22 Andrew Cagney <cagney@redhat.com>
1585
1586 * target.c: Include "gdb_assert.h" (target_read): Call
1587 "target_read_partial", not "target_write_partial".
1588 (default_read_partial, default_write_partial): New function.
1589 (target_read_partial, target_write_partial): Simplify, assume that
1590 there is always a read/write method.
1591 (update_current_target, add_target): Always set "to_read_partial"
1592 and "to_write_partial".
1593 (target_write, target_read): Fail on a zero byte transfer.
1594 * Makefile.in (target.o): Update dependencies.
1595 * target.h: Update copyright date.
1596 (target_object): Fix typo.
1597
e2d0e7eb
AC
15982003-10-22 Andrew Cagney <cagney@redhat.com>
1599
1600 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1601 multi-arch method, add "targ" parameter.
1602 (struct target_ops): Declare.
1603 * gdbarch.h, gdbarch.c: Re-generate.
1604 * Makefile.in (c-valprint.o): Update dependencies.
1605 * arch-utils.h: Update copyright.
1606 (convert_from_func_ptr_addr_identity): Declare.
1607 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1608 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1609 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1610 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1611 * infcall.c (find_function_addr, call_function_by_hand): Update.
1612 * c-valprint.c: Include "target.h".
1613 (print_function_pointer_address): Update.
1614
f1c07ab0
AC
16152003-10-22 Andrew Cagney <cagney@redhat.com>
1616
1617 * target.c (target_close): New function.
1618 (debug_to_close): Use "target_close".
1619 (push_target): Use "target_close".
1620 (unpush_target): Use "target_close".
1621 (pop_target): Use "target_close".
1622 * target.h (struct target_ops): Add "to_xclose".
1623 (target_open): Delete macro. Move comment to "to_open".
1624 (target_close): Replace macro with function that takes a target.
1625 * top.c (quit_target): Pass "current_target" to "target_close".
1626
5520a790
EZ
16272003-10-21 Elena Zannoni <ezannoni@redhat.com>
1628
1629 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1630 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1631 * symtab.h (lookup_minimal_symbol_text): Update.
1632 * breakpoint.c (create_overlay_event_breakpoint,
1633 create_longjmp_breakpoint): Update callers.
1634 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1635 * symtab.c (find_pc_sect_line): Ditto.
1636
caa92b73
AC
16372003-10-21 Andrew Cagney <cagney@redhat.com>
1638
1639 * target.c (errno): Delete extern declaration.
1640
aa2a9a3c
JJ
16412003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1642
1643 * ia64-tdep.c: Change all occurrences of
1644 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1645 (ia64_frame_prev_register): Minor whitespace change.
1646
4beec2b7
MC
16472003-10-20 Michael Chastain <mec@shout.net>
1648
1649 * config/djgpp/fnchange.lst: Add lines for:
1650 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1651 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1652 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1653 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1654 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1655 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1656 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1657
92ad9cd9
AC
16582003-10-20 Andrew Cagney <cagney@redhat.com>
1659
1660 * values.c (register_value_being_returned): Update comments. Use
1661 "gdbarch_return_value" when available.
1662 (using_struct_return): Ditto.
1663 (set_return_value): Ditto. Use "gdbarch_return_value" when
1664 available.. Print a warning, and not an error, when an unhandled
1665 return type is encountered.
1666 * infcmd.c: Include "gdb_assert.h".
1667 (print_return_value): When gdbarch_return_value_p, and using
1668 struct return, assume that the value is not available.
1669 * defs.h (return_value_convention): Define.
1670 * gdbarch.sh (gdbarch_return_value): New predicate method.
1671 * gdbarch.h, gdbarch.c: Re-generate
1672 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1673
198beae2
AC
16742003-10-20 Andrew Cagney <cagney@redhat.com>
1675
1676 * symtab.c: Replace "struct sec" with "struct bfd_section".
1677 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1678
24d693a6 16792003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1680
1681 * config/djgpp/fnchange.lst: Add lines for:
1682 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1683 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1684 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1685
21ad8dc3
MK
16862003-10-19 Mark Kettenis <kettenis@gnu.org>
1687
1688 * amd64fbsd-nat.c (fetch_inferior_registers,
1689 store_inferior_registers): Remove functions.
1690 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1691
cced5e27
MK
16922003-10-18 Mark Kettenis <kettenis@gnu.org>
1693
1694 Add NetBSD/amd64 native configuration:
1695 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1696 * amd64nbsd-tdep.c: New file.
1697 * amd64nbsd-nat.c: New file.
1698 * amd64bsd-nat.c: New file.
1699 * config/i386/nbsd64.mh: New file.
1700 * config/i386/nbsd64.mt: New file.
1701 * configure.host: Add x86_64-*-netbsd*.
1702 * configure.tgt: Add x86_64-*-netbsd*.
1703 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1704 New targets.
1705 * NEWS (New native configurations): Mention NetBSD/amd64.
1706
666de3fd
MC
17072003-10-17 Michael Chastain <mec@shout.net>
1708
1709 * config/djgpp/fnchange.lst: Remove dead lines for:
1710 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1711 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1712 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1713 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1714 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1715 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1716 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1717 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1718 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1719 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1720 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1721 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1722 gdb/config/sparc/tm-sparclite.h,
1723 gdb/gdbtk/generic/ChangeLog-2001,
1724 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1725 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1726 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1727 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1728 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1729 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1730 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1731 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1732 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1733 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1734 itcl/iwidgets3.0.0/demos/fileselectionbox,
1735 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1736 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1737 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1738 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1739 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1740 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1741 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1742 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1743 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1744 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1745 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1746 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1747 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1748 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1749 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1750 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1751 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1752 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1753 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1754 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1755 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1756 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1757 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1758 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1759 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1760 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1761 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1762 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1763 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1764 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1765 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1766 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1767 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1768 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1769 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1770 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1771 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1772 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1773 itcl/iwidgets3.0.0/demos/scrolledframe,
1774 itcl/iwidgets3.0.0/demos/scrolledhtml,
1775 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1776 itcl/iwidgets3.0.0/demos/scrolledtext,
1777 itcl/iwidgets3.0.0/demos/selectionbox,
1778 itcl/iwidgets3.0.0/demos/selectiondialog,
1779 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1780 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1781 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1782 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1783 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1784 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1785 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1786 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1787 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1788 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1789 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1790 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1791 itcl/iwidgets3.0.0/doc/selectionbox.n,
1792 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1793 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1794 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1795 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1796 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1797 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1798 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1799 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1800 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1801 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1802 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1803 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1804 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1805 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1806 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1807 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1808 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1809 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1810 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1811 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1812 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1813 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1814 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1815 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1816 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1817 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1818 itcl/iwidgets3.0.0/tests/selectionbox.test,
1819 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1820 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1821 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1822 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1823 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1824 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1825 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1826 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1827 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1828 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1829 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1830 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1831 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1832 tk/mac/tkMacProjects.sit.hqx.
1833
1e3ff5ad
AC
18342003-10-17 Andrew Cagney <cagney@redhat.com>
1835
8db32d44
AC
1836 * target.c (target_section_by_addr): New function.
1837 (do_xfer_memory): Use "target_section_by_addr".
1838 * target.h (target_section_by_addr): Declare.
1839
1e3ff5ad
AC
1840 * target.h (struct target_ops): Add "to_read_partial" and
1841 "to_write_partial", delete "to_query".
1842 (target_read_partial, target_write_partial): Declare.
1843 (target_read, target_write): Declare.
1844 (target_query): Delete macro.
1845 * target.c (target_read_partial): New function.
1846 (target_write_partial, target_read, target_write): New function.
1847 (update_current_target): Delete inheritance of "to_query". Add
1848 comments about "to_read_partial" and "to_write_partial".
1849 (debug_to_partial_read, debug_to_partial_write): New functions.
1850 (debug_to_query): Delete function.
1851 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1852 instead of "to_query".
1853 * remote.c (remote_read_partial): Replace "remote_query".
1854 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1855 (init_remote_async_ops): Ditto.
1856 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1857 "target_read_partial" instead of "target_query".
1858 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1859 Use "target_read_partial" instead of "target_query".
1860
48c66725
JJ
18612003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1862
1863 * frame.h (struct frame_id): Add new field: special_addr.
1864 (frame_id_build_special): New prototype.
1865 * frame.c (frame_id_build_special): New function.
1866 (frame_id_build): Change to call frame_id_build_special().
1867 (frame_id_eq): Change to also test special_addr field.
1868 (frame_id_inner): Update comment.
1869
7998dfc3
AC
18702003-10-17 Andrew Cagney <cagney@redhat.com>
1871
1872 * target.c (update_current_target): Perform the target cleanup.
1873 Put the target stack beneath the squashed "current_target".
1874 (add_target): Delete disabled call to "cleanup_target".
1875 (cleanup_target): Delete function.
1876 (push_target, unpush_target): Do not call "cleanup_target".
1877
9c04404e 18782003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1879
1880 * target.c (target_stack): Change to a static target_ops.
1881 (update_current_target): Walk the "struct target_ops" stack.
1882 (pop_target, do_xfer_memory, target_info): Ditto.
1883 (find_target_beneath): Ditto.
1884 (push_target): Rewrite to use the "struct target_ops" stack.
1885 (unpush_target): Ditto.
1886 * target.h (struct target_stack_item): Delete definition.
1887 (target_stack): Delete declaration.
1888 (struct target_ops): Add field "beneath".
1889
c98a2b49 18902003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1891
1892 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1893 declaration.
1894 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1895 (h8300_examine_prologue): Use h8300_normal_mode flag
1896 (h8300_gdbarch_init): Set architecture info for normal mode
1897
506fb367
DJ
18982003-10-16 Daniel Jacobowitz <drow@mvista.com>
1899
1900 * remote.c (remote_protocol_vcont): New variable.
1901 (set_remote_protocol_vcont_packet_cmd): New function.
1902 (show_remote_protocol_vcont_packet_cmd): New function.
1903 (init_all_packet_configs): Handle remote_protocol_vcont.
1904 (remote_vcont_probe): New function.
1905 (remote_vcont_resume): New function.
1906 (remote_resume): Use it.
1907 (remote_async_resume): Call remote_resume.
1908 (_initialize_remote): Add verbose-resume packet commands.
1909
65815ea1
AC
19102003-10-16 Andrew Cagney <cagney@redhat.com>
1911
1912 * infrun.c (handle_inferior_event): Add comment about
1913 "frame_id_inner" being too weak.
1914
40324f1b
EZ
19152003-10-16 Elena Zannoni <ezannoni@redhat.com>
1916
1917 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1918 second parameter, which is always null. Remove
1919 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1920 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1921 accordingly.
1922 * somsolib.c (som_solib_create_inferior_hook,
1923 som_solib_desire_dynamic_linker_symbols): Update callers.
1924 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1925
19262003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1927
1928 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1929 debug interface, SDI (Scalable Debug Interface).
1930 * NEWS: Mention m32r SDI protocol was supported.
1931 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1932 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1933
51931cbb
JJ
19342003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1935
1936 * ia64-linux-tdep.c: Include gdbcore.h.
1937 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1938 (ia64_linux_sigcontext_register_addr): Find the address of the
1939 sigcontext area stored in the sigframe instead of using
1940 a magic offset constant.
1941
84e7fd53
AC
19422003-10-15 Andrew Cagney <cagney@redhat.com>
1943
1944 * remote.c (remote_search): Delete function.
1945 * target.h (target_search): Delete disabled macro.
1946 (struct target_ops): Delete disabled field "to_search".
1947
0f4d7c52
KB
19482003-10-14 Kevin Buettner <kevinb@redhat.com>
1949
1950 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1951 instead of deprecated_inside_entry_file().
1952
2e952408
CV
19532003-10-14 Corinna Vinschen <vinschen@redhat.com>
1954
1955 * sh-tdep.c: Fix copy/paste hangover in comment.
1956 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1957 mode.
1958 (sh3e_sh4_extract_return_value): Ditto.
1959
7e86466e
RH
19602003-10-13 Richard Henderson <rth@redhat.com>
1961
1962 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1963 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1964 match c_val_print a bit closer.
1965
46a16dba
KB
19662003-10-13 Kevin Buettner <kevinb@redhat.com>
1967
1968 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1969 (frv_gdbarch_adjust_breakpoint_address): New function.
1970 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1971 method.
1972
76897487
KB
19732003-10-13 Kevin Buettner <kevinb@redhat.com>
1974
1975 * breakpoint.h (struct breakpoint): Add new member
1976 ``requested_address''.
1977 * breakpoint.c (breakpoint_adjustment_warning)
1978 (adjust_breakpoint_address): New static functions.
1979 (print_it_typical): Issue warning if breakpoint's address is different
1980 from its requested address.
1981 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1982 (breakpoint_re_set_one): Set breakpoint's
1983 ``requested_address'' field. Set ``address'' field to the
1984 result of calling adjust_breakpoint_address() on the requested
1985 address.
1986
a1131521
KB
19872003-10-13 Kevin Buettner <kevinb@redhat.com>
1988
1989 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1990 * gdbarch.h, gdbarch.c: Regenerate.
1991
6ce6d90f
MK
19922003-10-11 Mark Kettenis <kettenis@gnu.org>
1993
155c1d33
MK
1994 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1995 TDEP->sc_num_regs.
1996
8a96bc77
MK
1997 * i386fbsd-tdep.c: New file.
1998 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1999 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2000 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2001 i386bsd-tdep.c.
2002 (_initialize_i386fbsd_tdep): New function.
2003 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2004 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2005 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2006 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2007 TDEP->sc_num_regs.
2008 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2009 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2010 to initialize TDEP->sc_num_regs.
2011 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2012 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2013 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2014 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2015 FreeBSD ELF OS/ABI's here.
2016 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2017 (i386fbsd-tdep.o): New target.
2018 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2019 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2020
477f40d1
MK
2021 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2022 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2023 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2024 in initialization of TDEP->sc_num_regs.
2025
c6b33596
MK
2026 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2027 (x86_64_init_abi): Initialize regset_from_core_section if
2028 appropriate.
2029
8446b36a
MK
2030 * i386-tdep.c (i386_regset_from_core_section): New function.
2031 (i386_gdbarch_init): Initialize regset_from_core_section if
2032 appropriate.
2033 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2034
c783cbd6
MK
2035 * i386-tdep.h (struct regset): Declare opaque.
2036
6ce6d90f
MK
2037 * gdbarch.sh (regset_from_core_section): New method.
2038 (struct regset): Declare opaque.
2039 * gdbarch.c, gdbarch.h: Regenerated.
2040
b98ed7be
AM
20412003-10-11 Alan Modra <amodra@bigpond.net.au>
2042
2043 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2044 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2045 Correct test for pc within section.
2046
f6214256
MK
20472003-10-11 Mark Kettenis <kettenis@gnu.org>
2048
2049 * gdbarch.sh: Remove trailing whitepsace from comments.
2050
a8f4cde1
RM
20512003-10-08 Roland McGrath <roland@redhat.com>
2052
2053 * gcore.c (make_mem_sec): Function removed, folded into ...
2054 (gcore_create_callback): ... here. To omit a section, clear its
2055 SEC_LOAD bit rather than zeroing its size.
2056 Omit read-only sections only if they correspond to a known disk file.
2057 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2058
74276724
MS
20592003-10-10 Michael Snyder <msnyder@redhat.com>
2060
2061 * d10v-tdep.c: Fix typo in comment.
2062
e754ae69
AC
20632003-10-10 Andrew Cagney <cagney@redhat.com>
2064
2065 * rs6000-tdep.c (e500_store_return_value): Delete function.
2066 (e500_extract_return_value): Delete function.
2067 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2068 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2069 "ppc_sysv_abi_restore_return_value" where applicable.
2070 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2071 (ppc_sysv_abi_extract_return_value): Declare.
2072 (ppc_sysv_abi_broken_store_return_value): Declare.
2073 (ppc_sysv_abi_broken_extract_return_value): Declare.
2074 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2075 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2076 start of file.
2077 (do_ppc_sysv_return_value): New function.
2078 (ppc_sysv_abi_extract_return_value): New function.
2079 (ppc_sysv_abi_store_return_value): New function.
2080 (ppc_sysv_abi_broken_extract_return_value): New function.
2081 (ppc_sysv_abi_broken_store_return_value): New function.
2082 (ppc_sysv_abi_use_struct_convention): Call
2083 do_ppc_sysv_return_value.
2084
8d4ce20a
JB
20852003-10-10 J. Brobecker <brobecker@gnat.com>
2086
2087 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2088 to lookup the main function symbol.
2089
afce3d2a
CV
20902003-10-10 Corinna Vinschen <vinschen@redhat.com>
2091
2092 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2093 types correctly.
2094 (sh_push_dummy_call_fpu): Fix argument passing rules.
2095 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2096 float types.
2097 (sh3e_sh4_store_return_value): Ditto.
2098
7fe958be
EZ
20992003-10-10 Elena Zannoni <ezannoni@redhat.com>
2100
2101 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2102 comment.
2103
3f997a97
CV
21042003-10-10 Corinna Vinschen <vinschen@redhat.com>
2105
2106 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2107 more readable code. Accomodate passing of bitfields.
2108
8be9034a
AC
21092003-10-10 Andrew Cagney <cagney@redhat.com>
2110
2111 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2112 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2113 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2114 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2115 (ppc64_sysv_abi_push_dummy_call): New function.
2116 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2117 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2118 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2119
85a453d5
KI
21202003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2121
2122 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2123 * README: Ditto.
2124 * d10v-tdep.c: Ditto.
2125 * h8300-tdep.c: Ditto.
2126 * remote-e7000.c: Ditto.
2127 * remote-hms.c: Ditto.
2128 * ser-e7kpc.c: Ditto.
2129 * sh-stub.c: Ditto.
2130 * sh-tdep.c: Ditto.
2131 * sh-tdep.h: Ditto.
2132 * sh3-rom.c: Ditto.
2133 * sh64-tdep.c: Ditto.
2134 * top.c: Ditto.
2135 * wince.c: Ditto.
2136 * config/d10v/d10v.mt: Ditto.
2137 * config/sh/embed.mt: Ditto.
2138 * config/sh/linux.mt: Ditto.
2139 * config/sh/tm-linux.h: Ditto.
2140 * config/sh/tm-sh.h: Ditto.
2141 * config/sh/wince.mt: Ditto.
2142
221c12ff
AC
21432003-10-09 Andrew Cagney <cagney@redhat.com>
2144
2145 * ppc-tdep.h (struct type): Declare opaque.
2146 * x86-64-tdep.h (struct regcache): Declare opaque.
2147 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2148 coding style.
2149
ef5200c1
AC
21502003-10-09 Andrew Cagney <cagney@redhat.com>
2151
2152 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2153 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2154 (SOFTWARE_SINGLE_STEP_P): Ditto.
2155 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2156 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2157 (SOFTWARE_SINGLE_STEP_P): Ditto.
2158 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2159 software_single_step to rs6000_software_single_step.
a8f4cde1 2160
9644bbdd
AC
21612003-10-09 Andrew Cagney <cagney@redhat.com>
2162
2163 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2164
db72fa6b
MS
21652003-10-09 Michael Snyder <msnyder@redhat.com>
2166
f3efb16c
MS
2167 * frame.h: Fix typo in comment.
2168 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2169 * d10v-tdep.c: Random whitespace/comment tweaks.
2170
9a5cef92
EZ
21712003-10-09 Elena Zannoni <ezannoni@redhat.com>
2172
2173 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2174 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2175 on stack.
a8f4cde1 2176
9a5cef92
EZ
2177 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2178 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2179 in detail.
a8f4cde1 2180
0f317a0c
DJ
21812003-10-09 Daniel Jacobowitz <drow@mvista.com>
2182
2183 * remote-mips.c (mips_initialize): Remove unneeded call to
2184 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2185
bbab2f46
DJ
21862003-10-09 Daniel Jacobowitz <drow@mvista.com>
2187
2188 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2189 a memory pointer.
2190
550950b8
JJ
21912003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2192
2193 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2194 for any lwp we resume.
2195 (running_callback): Add lwps that have pending status events
2196 against them to be considered running.
2197
15c69bc7
KI
21982003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2199
2200 * m32r-tdep.c : Include "dis-asm.h".
2201 * Makefile.in (m32r-tdep.o): Update dependencies.
2202
51065942
JB
22032003-10-06 J. Brobecker <brobecker@gnat.com>
2204
2205 * completer.h (get_gdb_completer_word_break_characters): Delete.
2206 * completer.c: include language.h.
2207 (gdb_completer_word_break_characters): Delete.
2208 (get_gdb_completer_word_break_characters): Delete.
2209 (location_completer): Use the word break characters of the current
2210 language.
2211 (complete_line): Likewise.
2212 (line_completion_function): Likewise.
2213 (skip_quoted_chars): Likewise.
2214 * Makefile.in (completer.o): Add dependency on language.h.
2215 * top.c (init_main): Set the readline word break characters
2216 to GDB's default word break characters.
2217
6084f43a
JB
22182003-10-06 J. Brobecker <brobecker@gnat.com>
2219
2220 * language.h (language_defn): new field, la_word_break_characters.
2221 * language.c (unknown_language_defn): Set new field to
2222 default_word_break_characters.
2223 (auto_language_defn): Likewise.
2224 (local_language_defn): Likewise.
2225 * ada-lang.c (ada_language_defn): Likewise.
2226 * c-lang.c (c_language_defn): Likewise.
2227 (cplus_language_defn): Likewise.
2228 (asm_language_defn): Likewise.
2229 (minimal_language_defn): Likewise.
2230 * f-lang.c (f_language_defn): Likewise.
2231 * jv-lang.c (java_language_defn): Likewise.
2232 * m2-lang.c (m2_language_defn): Likewise.
2233 * objc-lang.c (objc_language_defn): Likewise.
2234 * p-lang.c (pascal_language_defn): Likewise.
2235 * scm-lang.c (scm_language_defn): Likewise.
2236
944fcfab
AC
22372003-10-06 Andrew Cagney <cagney@redhat.com>
2238
2239 * ppc-sysv-tdep.c: Re-indent.
2240
9f0a5303
JB
22412003-10-06 J. Brobecker <brobecker@gnat.com>
2242
2243 * language.h (default_word_break_characters): Add prototype.
2244 * language.c (default_word_break_characters): New function.
2245
7270b6ed
AS
22462003-10-06 Andreas Schwab <schwab@suse.de>
2247
2248 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2249 with %eax.
2250
a5d61f66
AC
22512003-10-06 Andrew Cagney <cagney@redhat.com>
2252
2253 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2254 "h8500-tdep.c".
2255 (z8k-tdep.o): Delete custom build rule.
2256
28a86f5c
AC
22572003-10-06 Andrew Cagney <cagney@redhat.com>
2258
1bfd8a83
AC
2259 * Makefile.in: Update all dependencies.
2260
17144ef8
AC
2261 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2262 No longer list PA as as obsolete candidate. List m32r as
2263 broken instead of obsolete.
a8f4cde1 2264
a5679ae5
AC
2265 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2266 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2267 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2268 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2269 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2270 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2271 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2272 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2273 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2274 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2275 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2276 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2277 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2278 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2279 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2280 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2281 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2282 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2283 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2284 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2285 * config/z8k/z8k.mt: Ditto.
2286
4a8269c0
AC
2287 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2288 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2289 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2290 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2291 sparclite were removed.
2292 * configure.host, configure.tgt: Remove corresponding tuples.
2293
41989fcd
AC
2294 * breakpoint.c, breakpoint.h: Remove obsolete code.
2295 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2296 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2297 * stabsread.h, xcoffread.c: Ditto.
2298
28a86f5c
AC
2299 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2300 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2301 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2302 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2303
4efdaa0d
DL
23042003-10-06 David Lecomber <dsl@sources.redhat.com>
2305
2306 * f-valprint.c: Reformatting
2307
ae53de43
MK
23082003-10-06 Mark Kettenis <kettenis@gnu.org>
2309
a8bb57e7
MK
2310 * x86-64-tdep.c: Remove duplicate comment.
2311
ae53de43
MK
2312 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2313 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2314 names for return values. This fixes a bug since we looked at %rbx
2315 instead of %rdx.
2316
473f17b0
MK
23172003-10-05 Mark Kettenis <kettenis@gnu.org>
2318
2c261fae
MK
2319 * x86-64-tdep.c: Include "regset.h".
2320
473f17b0
MK
2321 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2322 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2323 sizeof_fpregset.
2324 * i386-tdep.c: Include "regset.h".
2325 (i386_supply_gregset): New function.
2326 (i386_supply_fpregset): New function.
2327 (i386_gdbarch_init): Initialze register set-related members of
2328 TDEP.
2329 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2330 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2331
afd48b75
AC
23322003-10-03 Andrew Cagney <cagney@redhat.com>
2333
2334 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2335 set extract_return_value, store_return_value and
2336 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2337 ppc64_sysv_abi_store_return_value and
2338 ppc64_sysv_abi_use_struct_convention.
2339 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2340 (ppc64_sysv_abi_store_return_value): Declare.
2341 (ppc64_sysv_abi_use_struct_convention): Declare.
2342 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2343 (ppc64_sysv_abi_extract_return_value): New function.
2344 (ppc64_sysv_abi_store_return_value): New function.
2345 (ppc64_sysv_abi_use_struct_convention): New function.
2346 (ppc64_sysv_abi_return_value): New function.
2347
9b540880
AC
23482003-10-03 Andrew Cagney <cagney@redhat.com>
2349
2350 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2351 convert a descriptor to a function when it's in the ".opd"
2352 section.
2353
8748518b
CV
23542003-10-03 Corinna Vinschen <vinschen@redhat.com>
2355
2356 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2357 reg_size to keep GCC silent.
2358
0fd85043
CV
23592003-10-03 Corinna Vinschen <vinschen@redhat.com>
2360
2361 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2362 base for DW_EH_PE_textrel encodings.
2363 (read_encoded_value): Add a DW_EH_PE_textrel case.
2364 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2365 section.
2366
37b517aa
MK
23672003-10-03 Mark Kettenis <kettenis@gnu.org>
2368
2369 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2370
12c266ea
AC
23712003-10-02 Andrew Cagney <cagney@redhat.com>
2372
2373 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2374 REGISTER_RAW_SIZE.
2375 * gdbarch.h, gdbarch.c: Re-generate.
2376 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2377 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2378 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2379 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2380 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2381 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2382 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2383 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2384 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2385 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2386 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2387 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2388 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2389 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2390 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2391 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2392
78ba4af6
JB
23932003-10-02 Jim Blandy <jimb@redhat.com>
2394
2395 * dwarf2read.c (struct die_info): Doc fix.
2396
617daa0e
CV
23972003-10-02 Corinna Vinschen <vinschen@redhat.com>
2398
2399 * sh-tdep.c: Running thru gdb_indent.sh.
2400
e5e33cd9
CV
24012003-10-02 Corinna Vinschen <vinschen@redhat.com>
2402
2403 * sh-tdep.c (sh_justify_value_in_reg): New function.
2404 (sh_stack_allocsize): Ditto.
2405 (flt_argreg_array): New array used for floating point argument
2406 passing.
2407 (sh_init_flt_argreg): New function.
a8f4cde1 2408 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2409 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2410 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2411 Fix argument passing strategy.
2412 (sh_push_dummy_call_nofpu): Ditto.
2413
5fe830e4
AC
24142003-10-01 Andrew Cagney <cagney@redhat.com>
2415
2416 * value.h (register_value_being_returned): Declare. Replace
2417 "value_being_returned".
2418 * infcall.c (call_function_by_hand): Use
2419 register_value_being_returned.
2420 * infcmd.c (print_return_value): Call
2421 "register_value_being_returned", handle struct return locally.
2422 * values.c (register_value_being_returned): New function. Replace
2423 "value_being_returned".
a8f4cde1 2424
5fe830e4 24252003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2426
2427 * linux-proc.c (linux_do_registers): New function.
2428 (linux_make_note_section): Use linux_do_registers in case of
2429 single threaded inferior programs.
2430
64f395bf
AC
24312003-10-01 Andrew Cagney <cagney@redhat.com>
2432
2433 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2434 use STRUCT_ADDR. When not using "struct return convention", pass
2435 "0" to "value_being_returned". Add FIXMEs.
2436 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2437 value_being_returned. Add comments.
2438 * values.c (value_being_returned): Add fixme.
2439 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2440 (hppa_value_returned_from_stack): Add FIXME.
2441
639d11d3
DC
24422003-09-30 David Carlton <carlton@kealia.com>
2443
2444 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2445 'has_children' and 'next' by 'child' and 'sibling'.
2446 (read_comp_unit): Rework algorithm, breaking body into
2447 read_die_and_children and read_die_and_siblings.
2448 (read_die_and_children, read_die_and_siblings): New.
2449 (read_full_die): Add 'has_children' argument; set it instead of
2450 the die's 'has_children' field. Minor formatting cleanup.
2451 (free_die_list): Use die->child and die->sibling instead of
2452 die->next.
2453 (dump_die_list): Ditto.
2454 (sibling_die): Use die->sibling.
2455 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2456 'has_children' and 'next' fields.
a8f4cde1
RM
2457 (process_die, read_file_scope, read_func_scope)
2458 (read_lexical_block_scope, read_structure_scope)
2459 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2460 (read_namespace, read_subroutine_type, dump_die): Ditto.
2461
5bffac25
AC
24622003-09-30 Andrew Cagney <cagney@redhat.com>
2463
2464 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2465 to 224, not 220.
2466
f30992d4
AC
24672003-09-30 Andrew Cagney <cagney@redhat.com>
2468
2469 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2470 REGISTER_VIRTUAL_SIZE.
2471 * gdbarch.h, gdbarch.c: Regenerate.
2472 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2473 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2474 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2475
2e092625
AC
24762003-09-29 Andrew Cagney <cagney@redhat.com>
2477
2478 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2479 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2480 * gdbarch.h, gdbarch.c: Regenerate.
2481 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2482 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2483
2484 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2485 * remote-vxmips.c (vx_read_register): Ditto.
2486 * remote-vx68.c (vx_read_register): Ditto.
2487 * gnu-nat.c (inf_validate_procs): Ditto.
2488
7a5dd6ee
JB
24892003-09-29 J. Brobecker <brobecker@gnat.com>
2490
2491 * infcall.c (call_function_by_hand): Fix build failure
2492 introduced in the previous change to this file.
2493
1fe43d45
AC
24942003-09-29 Andrew Cagney <cagney@redhat.com>
2495
2496 * NEWS: Mention Objective-C.
2497
e28a332c
JG
24982003-09-29 Jerome Guitton <guitton@act-europe.fr>
2499
2500 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2501 test if the register has been saved on the stack.
2502 (arm_scan_prologue_cache): When analysing the instruction
2503 "str lr, [sp, #-4]", save the address where lr has been stored.
2504
9ff63c35
AC
25052003-09-28 Andrew Cagney <cagney@redhat.com>
2506
7f5f525d
AC
2507 * frame.c (frame_read_unsigned_register): Delete function.
2508 * frame.h (frame_read_unsigned_register): Delete declaration.
2509 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2510 get_frame_register_unsigned.
2511 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2512 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2513 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2514
7f5f525d
AC
2515 * frame.h (frame_read_register): Delete declaration.
2516 * frame.c (frame_read_register): Delete function.
2517 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2518 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2519 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2520 * mips-tdep.c (mips_register_to_value): Ditto.
2521 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2522 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2523
2524 * frame.c (frame_read_signed_register): Delete function.
2525 (frame_read_unsigned_register): Update comments.
2526 * frame.h (frame_read_signed_register): Delete declaration.
2527 * h8300-tdep.c (h8300_print_register): Use
2528 get_frame_register_signed.
2529 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2530
9ff63c35
AC
2531 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2532 Rename VALUE_RETURNED_FROM_STACK.
2533 * infcmd.c (print_return_value): Update.
2534 * infcall.c (call_function_by_hand): Update.
2535
41d041d6
MK
25362003-09-28 Mark Kettenis <kettenis@gnu.org>
2537
2538 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2539 regcache argument and reverse the order of the other two
2540 arguments. Remove local regcache variable. Determine
2541 architecture from REGCACHE. Update comments.
2542 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2543 reverse the order of the other two arguments. Remove local
2544 regcache variable. Determine architecture from REGCACHE. Update
2545 comments.
2546 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2547 prototypes. Update comments.
2548 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2549 comment.
2550 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2551 Update.
2552 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2553 * i386-interix-nat.c (supply_fpregset): Update.
2554 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2555 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2556 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2557 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2558 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2559 Update.
2560 * i386obsd-tdep.c (fetch_core_registers): Update.
2561 * i386v4-nat.c (supply_fpregset): Update.
2562 * x86-64-linux-nat.c (supply_fpregset): Update.
2563 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2564
1cb97e17
MK
25652003-09-27 Mark Kettenis <kettenis@gnu.org>
2566
5716833c
MK
2567 * i386-tdep.h: Put opaque declarations in alphabetical
2568 order. Remove spurious whitespace.
2569 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2570 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2571 * i386-tdep.c (MM0_REGNUM): Remove define.
2572 (i386_mmx_regnum_p): Add gdbarch argument.
2573 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2574 Rewrite using new macro definitions for FPU/SSE registers.
2575 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2576 definitions from i387-tdep.h.
2577 (i386_register_name): Update.
2578 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2579 new macro definitions for FPU/SSE registers.
2580 (i386_extract_return_value): Determine whether floating-point
2581 registers are present by examining REGCACHE's architecture.
2582 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2583 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2584 FPU/SSE registers.
2585 (i386_register_type): Update.
2586 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2587 definitions for FPU registers. Use REGCACHE's architecture to
2588 determine the appropriate register numbers.
2589 (i386_pseudo_register_read, i386_pseudo_register_write,
2590 i386_register_reggroup_p): Update.
2591 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2592 TDEP->mm0_regnum.
2593 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2594 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2595 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2596 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2597 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2598 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2599 *' to `void *'.
2600 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2601 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2602 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2603 definitions for FPU/SSE registers.
2604 (FXSAVE_MXCSR_ADDR): New define.
2605 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2606 TDEP->mm0_regnum.
2607 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2608 (I387_ST0_REGNUM): Define.
2609
41d35cb0
MK
2610 * regcache.h (get_regcache_arch): New prototype.
2611 * regcache.c (get_regcache_arch): New function.
2612
54e74f72
MK
2613 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2614 whitespace.
2615
1cb97e17
MK
2616 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2617 Initialize using ARRAY_SIZE.
2618
0968aa8c
AC
26192003-09-27 Andrew Cagney <cagney@redhat.com>
2620
2621 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2622 "init_frame_pc_default".
2623 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2625 * vax-tdep.c (vax_gdbarch_init): Update.
2626 * v850-tdep.c (v850_gdbarch_init): Update.
2627 * sh64-tdep.c (sh64_gdbarch_init): Update.
2628 * s390-tdep.c (s390_gdbarch_init): Update.
2629 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2630 * mcore-tdep.c (mcore_gdbarch_init): Update.
2631 * h8300-tdep.c (h8300_gdbarch_init): Update.
2632 * cris-tdep.c (cris_gdbarch_init): Update.
2633 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2634
54c84734
MK
26352003-09-26 Mark Kettenis <kettenis@gnu.org>
2636
2637 * regset.h: New file.
2638 * Makefile.in (regset_h): Add.
2639
1b1d3794
AC
26402003-09-25 Andrew Cagney <cagney@redhat.com>
2641
2642 * frame.h (deprecated_frame_saved_regs): Rename
2643 get_frame_saved_regs.
2644 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2645 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2646 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2647 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2648 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2649
e6beb428
AC
26502003-09-25 Andrew Cagney <cagney@redhat.com>
2651
2652 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2653 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2654 and Java.
2655 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2656 arm*-*-* do not use the new frame code.
2657
710122da
DC
26582003-09-25 David Carlton <carlton@kealia.com>
2659
2660 * c-exp.y: Remove 'register' declarations.
2661 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2662
79c2c32d
DC
26632003-09-25 David Carlton <carlton@kealia.com>
2664
2665 * c-exp.y: Include cp-support.h. Add qualified_type.
2666 (yylex): Delete nested type hack; add comments.
2667 * cp-namespace.c (cp_lookup_nested_type): New function.
2668 * cp-support.h: Declare cp_lookup_nested_type.
2669 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2670 instead of value_struct_elt_for_reference.
2671 * valops.c: Include cp-support.h.
2672 (value_aggregate_elt): New function.
2673 (value_namespace_elt): Ditto.
2674 (value_struct_elt_for_reference): Make static.
2675 * value.h: Delete declaration of value_struct_elt_for_reference;
2676 add declaration for value_aggregate_elt.
2677 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2678 (valops.o): Ditto.
2679
898c62f5
DJ
26802003-09-25 Daniel Jacobowitz <drow@mvista.com>
2681
2682 * stack.c: Include "reggroups.h".
2683 (frame_info): Only display registers in all_reggroup.
2684 * Makefile.in (stack.o): Update dependencies.
2685
28cd8767
JG
26862003-09-25 Jerome Guitton <guitton@act-europe.fr>
2687
2688 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2689 "add ip, sp #n" in the prologue.
2690 (arm_scan_prologue): Ditto.
2691
a4ab2b5d
JG
26922003-09-25 Jerome Guitton <guitton@act-europe.fr>
2693
2694 * MAINTAINERS (write after approval): Add myself.
2695
3f244638
AS
26962003-09-25 Andreas Schwab <schwab@suse.de>
2697
2698 * m68k-tdep.c: Include "dwarf2-frame.h".
2699 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2700 * Makefile.in (m68k-tdep.o): Update dependencies.
2701
1c0159e0
CV
27022003-09-25 Corinna Vinschen <vinschen@redhat.com>
2703
2704 * sh-tdep.c (struct frame_extra_info): Remove.
2705 (struct sh_frame_cache): New structure.
2706 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2707 (GET_TARGET_REG): Ditto but target register.
2708 (GET_PUSHED_REG): Remove.
2709 (IS_MOV_ARG_TO_REG): New macro.
2710 (IS_MOV_ARG_TO_IND_R14): New macro.
2711 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2712 (IS_MOVW_PCREL_TO_REG): New macro.
2713 (IS_MOVL_PCREL_TO_REG): New macro.
2714 (IS_SUB_REG_FROM_SP): New macro.
2715 (IS_ARG_MOV): Remove.
2716 (IS_MOV_TO_R14): Remove.
2717 (IS_RESTORE_FP): New macro.
2718 (IS_RTS): New macro.
2719 (IS_LDS): New macro.
2720 (IS_MOV_FP_SP): New macro.
2721 (IS_ADD_REG_TO_FP): New macro.
2722 (IS_ADD_IMM_FP): New macro.
2723 (sh_skip_prologue_hard_way): Remove.
2724 (sh_saved_pc_after_call): Remove.
2725 (sh_frame_chain): Remove.
2726 (sh_find_callers_reg): Remove.
a8f4cde1 2727 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2728 (sh_fp_frame_init_saved_regs): Remove.
2729 (sh_init_extra_frame_info): Remove.
2730 (sh_analyze_prologue): New function.
2731 (sh_skip_prologue): Remove deprecated code. Rely on new function
2732 sh_analyze_prologue when after_prologue fails.
2733 (sh_frame_saved_pc): Remove.
2734 (sh_alloc_frame_cache): New function.
2735 (sh_frame_cache): Ditto.
2736 (sh_frame_prev_register): Ditto.
2737 (sh_frame_this_id): Ditto.
2738 (sh_frame_unwind): New structure defining the heuristic frame
2739 sniffer interface.
2740 (sh_frame_sniffer): New function.
2741 (sh_unwind_sp): Ditto.
2742 (sh_unwind_pc): Ditto.
2743 (sh_unwind_dummy_id): Ditto.
2744 (sh_frame_base_address): Ditto.
2745 (sh_frame_base): New structure defining new frame base code.
2746 (sh_in_function_epilogue_p): New function.
2747 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2748 code and to call all new code instead. Initialize dwarf2 and
2749 heuristic frame sniffer.
2750
5f9769d1
PH
27512003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2752
a8f4cde1
RM
2753 * parser-defs.h (struct exp_descriptor): New definition, containing
2754 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2755 evaluating expressions.
2756 (exp_descriptor_standard): Declare new variable.
2757 (print_subexp): Make global and declare here (from expprint.c).
2758 (dump_subexp): Ditto.
2759 (dump_subexp_body_standard): Declare.
2760 (operator_length_standard): Declare.
2761 (op_name_standard): Declare.
2762 (print_subexp): Declare.
2763 (print_subexp_standard): Declare.
2764
2765 * language.h (struct language_defn): Add la_exp_desc field to hold
2766 pointer to table for language-specific operators.
2767 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2768
2769 * parse.c (operator_length): Move most code to new
5f9769d1 2770 operator_length_standard function. Use language-specific information.
a8f4cde1 2771 (operator_length_standard): New function taking most code from
5f9769d1
PH
2772 operator_length.
2773 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2774
2775 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2776 and OP_EXTENDED_LAST.
a8f4cde1
RM
2777
2778 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2779 Make global; remove static declaration.
2780 Move most code to print_subexp_standard.
a8f4cde1 2781 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2782 print_subexp.
2783 (op_name): Add expression to argument signature.
a8f4cde1 2784 Use langauge-specific op_name.
5f9769d1
PH
2785 Move most code to op_name_standard.
2786 (op_name_standard): New function, containing code formerly in op_name.
2787 (dump_subexp): Use new version of op_name function.
2788 Use language-specific dump_subexp_body, and move most existing code to
2789 dump_subexp_body_standard.
2790 (dump_raw_expression): Use new op_name interface.
2791 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2792 (dump_subexp_body_standard): New function, containing code formerly
2793 in dump_subexp_body.
a8f4cde1 2794
5f9769d1
PH
2795 * language.c (unknown_language): Add default la_exp_desc field and
2796 remove evaluate_exp field.
2797 (auto_language): Ditto.
2798 (local_language): Ditto.
2799 * f-lang.c (f_language_defn): Ditto.
2800 * c-lang.c (c_language_defn): Ditto.
2801 (cplus_language_defn): Ditto.
2802 (asm_language_defn): Ditto.
2803 (minimal_language_defn): Ditto.
2804 * p-lang.c (pascal_language_defn): Ditto.
2805 * m2-lang.c (m2_language_defn): Ditto.
2806 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2807
2808 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2809 Java-specific expression evaluator.
2810 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2811 field.
a8f4cde1 2812 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2813 Scheme-specific expression evaluator.
2814 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2815 field.
2816 * objc-lang.c (print_object_command): Take evaluate_exp from the
2817 la_exp_desc field.
a8f4cde1 2818
5f9769d1 2819 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2820
2821 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2822 la_exp_desc's type.
2823 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2824
24daaebc
PH
28252003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2826
2827 * parser-defs.h (operator_length): Declare.
a8f4cde1 2828
24daaebc
PH
2829 * parse.c (length_of_subexp): Use operator_length to get operator
2830 lengths and arities for operators.
2831 Move most code to new operator_length function.
a8f4cde1 2832 (operator_length): New function absorbing most code from
24daaebc
PH
2833 length_of_subexp.
2834 (prefixify_subexp): Remove large case and use operator_length instead.
2835 (parse_exp_1): Use renamings:
a8f4cde1 2836 dump_prefix_expression => dump_raw_expression and
24daaebc 2837 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2838
24daaebc
PH
2839 * expression.h (dump_prefix_expression): Rename to ...
2840 (dump_raw_expression): New name.
2841 (dump_postfix_expression): Rename to ...
2842 (dump_prefix_expression): New name.
a8f4cde1 2843
24daaebc
PH
2844 * expprint.c (dump_subexp): Make global. Add comment.
2845 Move most existing code to dump_subexp_body.
2846 (dump_subexp_body): New function.
2847 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2848 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2849 work before the expression is prefixified.
2850 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2851 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2852 that's what it does.
a8f4cde1 2853 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2854 prefixified expression.
2855 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2856
8c2957c4
JB
28572003-09-22 Jim Blandy <jimb@redhat.com>
2858
2859 * dwarf2read.c (read_array_type): When building the type for an
2860 array of unspecified length, make sure to choose the upper bound
2861 so that the array's total length comes out to be zero --- that's
2862 how we represent such arrays.
2863
592e3010
MC
28642003-09-22 Michael Chastain <mec@shout.net>
2865
2866 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2867
365c70b1
JJ
28682003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2869
2870 * top.c (quit_force): Fix indirect call to quit_target so
2871 a struct qt_args pointer is passed.
2872
5d6eb653
AC
28732003-09-22 Andrew Cagney <cagney@redhat.com>
2874
2875 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2876 * arch-utils.c (init_frame_pc_noop): Delete function.
2877 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2878 "init_frame_pc".
2879 * mips-tdep.c (mips_gdbarch_init): Ditto.
2880 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2881 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2882 declaration.
2883 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2884 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2885 declaration.
2886 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2887
b222a67f
AG
28882003-09-22 Anthony Green <green@redhat.com>
2889
2890 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2891 declaration.
2892
d5b5ac79
AC
28932003-09-20 Andrew Cagney <cagney@redhat.com>
2894
deafb061
AC
2895 * breakpoint.c: Eliminate ARGSUSED.
2896 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2897 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2898 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2899 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2900 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2901 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2902 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2903 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2904 * wince.c, remote-vx.c: Ditto.
2905
d5b5ac79
AC
2906 * cli/cli-script.c: Remove "register" attributes.
2907 * config/pa/tm-hppa.h: Ditto.
2908 * cli/cli-decode.c: Ditto.
2909 * cli/cli-cmds.c: Ditto.
2910
c6316faa
AC
29112003-09-19 Andrew Cagney <cagney@redhat.com>
2912
2913 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2914 DEPRECATED_NPC_REGNUM.
2915 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2916
f4f99b11
CF
29172003-09-19 Christopher Faylor <cgf@redhat.com>
2918
2919 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2920
1708f284
JB
29212003-09-19 Jim Blandy <jimb@redhat.com>
2922
2923 * macrotab.c (macro_include): Use the correct comparison to find
2924 the appropriate place for this inclusion in the list.
2925
b9fbf434
AC
29262003-09-19 Andrew Cagney <cagney@redhat.com>
2927
2928 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2929 (DEPRECATED_HPUX_TEXT_END): Define.
2930 (deprecated_hpux_text_end): Declare.
2931 (struct target_ops): Declare opaque.
2932 * hppah-nat.c (text_end): Make static.
2933 (deprecated_hpux_text_end): New function.
2934 * exec.c (text_end): Delete global variable.
2935 (NEED_TEXT_START_END): Do not define.
2936 (exec_file_attach): Replace code computing "text_end" code with
2937 call to DEPRECATED_HPUX_TEXT_END.
2938
5b03f266
AC
29392003-09-19 Andrew Cagney <cagney@redhat.com>
2940
2941 * utils.c (align_up, align_down): New functions.
2942 * defs.h (align_up, align_down): Declare.
2943 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2944 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2945 and "align_down".
2946 (round_up, round_down): Delete functions.
2947 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2948 "align_down".
2949 (ROUND_DOWN, ROUND_UP): Delete macros.
2950 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2951 * h8300-tdep.c: Replace "round_up" and "round_down" with
2952 "align_up" and "align_down".
2953 (round_up, round_down): Delete macros.
2954 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2955 "align_down".
2956 (ROUND_UP, ROUND_DOWN): Delete macros.
2957
51db5742
JB
29582003-09-18 J. Brobecker <brobecker@gnat.com>
2959
2960 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2961 hard-coded constant. Use the proper machine name instead.
2962
77949794
AC
29632003-09-17 Andrew Cagney <cagney@redhat.com>
2964
2965 * sparc-tdep.c (legacy_register_name): Delete function.
2966 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2967 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2968 * infcmd.c (gdb_register_name): Delete variable.
2969 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2970 REGISTER_NAME and "tm.h".
2971 * gdbarch.h, gdbarch.c: Regenerate.
2972 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2973 REGISTER_NAMES in comments.
2974 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2975 * m68klinux-nat.c (regmap): Ditto.
2976
b55c33cc
JB
29772003-09-17 Jim Blandy <jimb@redhat.com>
2978
2979 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2980
957e27ac
AC
29812003-09-17 Andrew Cagney <cagney@redhat.com>
2982
2983 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2984 (ppcnbsd_init_abi): Set "use_struct_convention" to
2985 "ppcnbsd_use_struct_convention".
2986
192cb3d4
MK
29872003-09-17 Mark Kettenis <kettenis@gnu.org>
2988
2989 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2990 * gdbarch.h, gdbarch.c: Regenerate.
2991 (stabs_argument_has_addr): New architecture method.
2992 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2993 * arch-utils.c: Include "buildsym.h".
2994 (default_stabs_argument_has_addr): New function.
2995 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2996 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2997
efe59759
AC
29982003-09-17 Andrew Cagney <cagney@redhat.com>
2999
3000 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3001 * gdbarch.h, gdbarch.c: Regenerate.
3002 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3003 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3004 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3005 * sparcnbsd-tdep.c: Update.
a8f4cde1 3006
62700349
AC
30072003-09-17 Andrew Cagney <cagney@redhat.com>
3008
3009 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3010 * gdbarch.h, gdbarch.c: Regenerate.
3011 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3012 * d10v-tdep.c, frame.c: Update.
3013 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3014 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3015 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3016 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3017 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3018 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3019 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3020 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3021 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3022 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3023 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3024 * config/pa/nm-hppah.h: Update.
3025
b9ff3018
AC
30262003-09-16 Andrew Cagney <cagney@redhat.com>
3027
3028 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3029 "use_struct_convention" to "ppc_linux_use_struct_convention".
3030 (ppc_linux_use_struct_convention): New function.
3031 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3032 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3033 "rs6000_use_struct_convention".
3034 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3035 declaration.
3036 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3037 Delete function.
3038
aa1ee363
AC
30392003-09-16 Andrew Cagney <cagney@redhat.com>
3040
3041 * buildsym.c: Remove more occurances of "register".
3042 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3043 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3044 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3045 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3046 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3047 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3048 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3049 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3050
f2ea0907
CV
30512003-09-16 Corinna Vinschen <vinschen@redhat.com>
3052
3053 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3054 numbers to enumeration values.
3055 * sh-tdep.c: Accomodate above change.
3056 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3057 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3058 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3059 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3060 (IS_FPUSH): Rename from IS_FMOV.
3061 (sh_extract_struct_value_address): Remove useless comment.
3062 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3063 instead of own local values.
3064 (sh_dump_tdep): Remove.
3065 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3066 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3067
1c704f11
AC
30682003-09-15 Andrew Cagney <cagney@redhat.com>
3069
3070 * doublest.c (convert_floatformat_to_doublest): No longer need to
3071 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3072
ac79b88b
DJ
30732003-09-15 Daniel Jacobowitz <drow@mvista.com>
3074
3075 * values.c (unpack_double): Call floatformat_is_valid.
3076
1c671366
MK
30772003-09-15 Mark Kettenis <kettenis@gnu.org>
3078
de5227fb
MK
3079 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3080 ps_strings into a long.
3081
1c671366
MK
3082 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3083 _initialize_am64fbsd_nat.
3084
a604369a
KB
30852003-09-15 Kevin Buettner <kevinb@redhat.com>
3086
3087 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3088 associated with DW_AT_ranges attribute is out of bounds.
3089
b3cacbee
DL
30902003-09-15 David Lecomber <dsl@sources.redhat.com>
3091
3092 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3093
d0f37bb2
MC
30942003-09-14 Michael Chastain <mec@shout.net>
3095
3096 * config/m68k/nm-apollo68v.h: Delete.
3097 * config/m68k/xm-apollo68v.h: Delete.
3098
69517000
AC
30992003-09-14 Andrew Cagney <cagney@redhat.com>
3100
3101 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3102 * dcache.c: Update copyrights and descriptions.
3103 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3104
ef8b349d
AC
31052003-09-14 Andrew Cagney <cagney@redhat.com>
3106
3107 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3108 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3109
52f0bd74
AC
31102003-09-14 Andrew Cagney <cagney@redhat.com>
3111
3112 * alpha-nat.c: Remove some occurances of "register".
3113 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3114 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3115 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3116 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3117 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3118 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3119 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3120 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3121 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3122 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3123 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3124 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3125 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3126 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3127 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3128 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3129 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3130 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3131 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3132 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3133 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3134 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3135
4a4b3fed
AC
31362003-09-13 Andrew Cagney <cagney@redhat.com>
3137
3138 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3139 * ppc-tdep.h (struct regcache): Declare opaque.
3140 * objfiles.h (struct objfile_data): Declare opaque.
3141 * cp-support.h (struct objfile): Declare opaque.
3142 * linux-nat.h (target_waitstatus): Declare opaque.
3143
2110b94f
MK
31442003-09-14 Mark Kettenis <kettenis@gnu.org>
3145
1c671366
MK
3146 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3147 (stabs_argument_has_addr): New architecture method.
3148 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3149 * arch-utils.c: Include "buildsym.h".
3150 (default_stabs_argument_has_addr): New function.
3151 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3152 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3153
2110b94f
MK
3154 * cris-tdep.c (cris_gdbarch_init): Set
3155 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3156 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3157 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3158 * mips-tdep.c (mips_gdbarch_init): Likewise.
3159 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3160 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3161
48436ce6
AC
31622003-09-13 Andrew Cagney <cagney@redhat.com>
3163
3164 * values.c (using_struct_return): Delete "function" and "funcaddr"
3165 parameters.
3166 * value.h (using_struct_return): Update declaration.
3167 * infcmd.c (finish_command_continuation): Update.
3168 (finish_command): Update.
3169 * infcall.c (call_function_by_hand): Update.
3170 * eval.c (evaluate_subexp_standard): Update.
3171
403d9909
CF
31722003-09-13 Christopher Faylor <cgf@redhat.com>
3173
3174 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3175 SSE registers since gdb will not operate correctly without this.
3176 Restore include file ordering munged in previous change.
3177 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3178
ebf7d56b
MK
31792003-09-13 Mark Kettenis <kettenis@gnu.org>
3180
8e823e25
MK
3181 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3182 REG_STRUCT_HAS_ADDR.
3183 * gdbarch.c, gdbarch.h: Updated.
3184 * infcall.c (call_function_by_hand): Update.
3185 * stabsread.c (define_symbol): Updated.
a8f4cde1 3186
ebf7d56b
MK
3187 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3188
d3f13f72
CF
31892003-09-12 Christopher Faylor <cgf@redhat.com>
3190
3191 * win32-nat.c: Reorganize so that defines used by target headers are
3192 actually defined by the system headers.
3193 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3194 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3195
14f75137
JB
31962003-09-12 Jim Blandy <jimb@redhat.com>
3197
d646061f
JB
3198 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3199 the file has no .data, .bss, or .rodata sections. Instead wait
3200 until we see a variable alleged to live in one of those sections.
3201
2a13f9bc
JB
3202 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3203 .bss section, presume that any variables we find live in the
3204 .rodata section.
3205
4f49b26b
JB
3206 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3207 offsets for global and static variables.
3208
14f75137
JB
3209 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3210 symbol types are, by definition, in the .data section, so it is
3211 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3212 If there is no .data section, there should be no N_DATA or N_DATA
3213 | N_EXT symbols.
3214
212c460c
MK
32152003-09-12 Mark Kettenis <kettenis@gnu.org>
3216
3217 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3218 (amd64fbsd_sigcontext_addr): Rewrite.
3219 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3220 with correct values.
3221 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3222 (amd64fbsd_init_abi): Fix typo.
3223
68856ea3
AC
32242003-09-12 Andrew Cagney <cagney@redhat.com>
3225
3226 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3227 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3228
627b3ba2
AC
32292003-09-12 Andrew Cagney <cagney@redhat.com>
3230
3231 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3232 "entry_file_highpc". Update comments.
3233 * defs.h (deprecated_inside_entry_file): Rename
3234 "inside_entry_file".
3235 * blockframe.c (deprecated_inside_entry_file): Rename
3236 "inside_entry_file".
3237 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3238 * vax-tdep.c (vax_frame_chain): Update.
3239 * sh64-tdep.c (sh64_frame_chain): Update.
3240 * sh-tdep.c (sh_frame_chain): Update.
3241 * rs6000-tdep.c (rs6000_frame_chain): Update.
3242 * ns32k-tdep.c (ns32k_frame_chain): Update.
3243 * mips-tdep.c (mips_frame_chain): Update.
3244 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3245 * m32r-tdep.c (m32r_frame_this_id): Update.
3246 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3247 * frv-tdep.c (frv_frame_this_id): Update.
3248 * d10v-tdep.c (d10v_frame_this_id): Update.
3249 * cris-tdep.c (cris_frame_chain): Update.
3250 * blockframe.c (legacy_frame_chain_valid): Update.
3251 * avr-tdep.c (avr_frame_this_id): Update.
3252 * arm-tdep.c (arm_prologue_this_id): Update.
3253 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3254 * objfiles.c (objfile_relocate): Update.
3255 * mipsread.c (mipscoff_symfile_read): Update.
3256 (mipscoff_symfile_read): Update.
3257 * mdebugread.c (parse_partial_symbols): Update.
3258 * dwarfread.c (read_file_scope): Update.
3259 * dwarf2read.c (read_file_scope): Update.
3260 * dbxread.c (read_dbx_symtab): Update.
3261 (read_dbx_symtab): Update.
3262 * coffread.c (complete_symtab): Update.
3263
b0abbc58
JJ
32642003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3265
3266 * top.c (quit_target): New static helper function.
3267 (quit_force): Moved code to quit_target(). Call quit_target()
3268 via catch_errors() to catch errors during quit.
3269
a1632d59
DC
32702003-09-11 David Carlton <carlton@kealia.com>
3271
3272 * buildsym.c (finish_block): Use allocate_block to allocate the
3273 block.
3274 * mdebugread.c (new_block): Add FIXME.
3275
5c4e30ca
DC
32762003-09-11 David Carlton <carlton@kealia.com>
3277
3278 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3279 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3280 (recursive_dump_type): Ditto.
3281 * printcmd.c (print_formatted): Ditto.
3282 * typeprint.c (print_type_scalar): Ditto.
3283 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3284 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3285 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3286 maint_cplus_cmd_list.
3287 * cp-support.c: Make maint_cplus_cmd_list extern.
3288 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3289 command.h.
3290 (lookup_symbol_file): Look in possible namespace blocks when
3291 appropriate.
3292 (initialize_namespace_symtab): New.
3293 (get_possible_namespace_block, free_namespace_block)
3294 (check_possible_namespace_symbols)
3295 (check_possible_namespace_symbols_loop)
3296 (check_one_possible_namespace_symbol)
3297 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3298 (_initialize_cp_namespace): Ditto.
3299 * block.h: Declare allocate_block.
3300 * block.c (allocate_block): New.
3301 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3302 allocate_block.
3303 * symfile.h: Update declaration of add_psymbol_to_list.
3304 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3305 question.
3306 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3307 scan_partial_symbols_call.
3308 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3309 helper functions.
3310 (add_partial_symbol): If necessary, scan mangled names for names
3311 of namespaces.
3312 (add_partial_namespace): Add NAMESPACE argument; generate partial
3313 symbols associated to namespaces.
3314 (add_partial_enumeration): Add NAMESPACE argument.
3315 (new_symbol): Allow namespace syms.
3316 (read_namespace): Generate namespace syms.
3317 * objfiles.h: Add opaque declaration of struct symtab.
3318 (struct objfile): Add cp_namespace_symtab member.
3319 * objfiles.c (allocate_objfile): Set
3320 objfile->cp_namespace_symtab.
3321 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3322 dictionary_h, command_h.
3323
33a7c2fc
AC
33242003-09-11 Andrew Cagney <cagney@redhat.com>
3325
3326 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3327 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3328 near the function's end.
3329 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3330 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3331 regcache_raw_write_signed to set SP_REGNUM.
3332
63cd24fe
EZ
33332003-09-11 Elena Zannoni <ezannoni@redhat.com>
3334
3335 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3336 orig_addrs is set up properly.
3337
f27dd7fd
AC
33382003-09-11 Andrew Cagney <cagney@redhat.com>
3339
3340 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3341 * gdbarch.h, gdbarch.c: Re-generate.
3342 * infcall.c (call_function_by_hand): Update.
3343 * hppa-tdep.c (hppa_push_arguments): Update.
3344 * ada-lang.c (place_on_stack): Update.
3345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3346 * sparc-tdep.c (sparc_gdbarch_init): Update.
3347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3348 * hppa-tdep.c (hppa_gdbarch_init): Update.
3349 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3350 stack_align.
3351
f630a401
DJ
33522003-09-11 Daniel Jacobowitz <drow@mvista.com>
3353
3354 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3355 register do need a frame.
3356
0ddabb4c
AC
33572003-09-11 Andrew Cagney <cagney@redhat.com>
3358
3359 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3360 buildable since GDB 5.0.
3361 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3362 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3363 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3364 * irix4-nat.c: Delete file.
3365 * config/mips/irix4.mh: Delete file.
3366 * config/mips/irix3.mh: Delete file.
3367 * config/mips/irix3.mt: Delete file.
3368 * config/mips/tm-irix3.h: Delete file.
3369 * config/mips/nm-irix3.h: Delete file.
3370 * config/mips/xm-irix3.h: Delete file.
3371 * config/mips/nm-irix4.h: Delete file.
3372 * config/mips/xm-irix4.h: Delete file.
3373 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3374
fde2cceb
JB
33752003-09-10 J. Brobecker <brobecker@gnat.com>
3376
3377 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3378 * Makefile.in (hppa-tdep.o): Update dependencies.
3379
66f667f5
JW
33802003-09-10 James E Wilson <wilson@specifixinc.com>
3381
ef5fd69f
JW
3382 * MAINTAINERS: Change my e-mail address. Move to paper trail
3383 section.
66f667f5 3384
53e8aaea
KB
33852003-09-10 Kevin Buettner <kevinb@redhat.com>
3386
3387 * MAINTAINERS (frv): New ISA entry.
3388
dcc6aaff
KB
33892003-09-10 Kevin Buettner <kevinb@redhat.com>
3390
3391 * frv-tdep.c (dis-asm.h): Include.
3392 * Makefile.in (frv-tdep.o): Update dependencies.
3393
932644f0
JJ
33942003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3395
3396 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3397 Fix typo for high range of floating registers.
3398
91c24f0a
DC
33992003-09-09 David Carlton <carlton@kealia.com>
3400
3401 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3402 highpc initialization here out of scan_partial_symbols.
3403 (scan_partial_symbols): Restructure into a recursive version,
3404 calling add_partial_namespace and add_partial_enumeration when
3405 appropriate.
3406 (add_partial_namespace): New.
3407 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3408
c9263853
AC
34092003-09-09 Andrew Cagney <cagney@redhat.com>
3410
e56a0ecc
AC
3411 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3412 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3413 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3414 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3415
794a477a
AC
3416 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3417 (rs6000_push_dummy_call): Set the "TOC" register.
3418
c9263853
AC
3419 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3420 methods "max_register_raw_size", "max_register_virtual_size" or
3421 "register_virtual_size".
3422
afa7d0b2
ILT
34232003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3424
3425 * MAINTAINERS: Update my e-mail address.
3426
7a41266b
AC
34272003-09-09 Andrew Cagney <cagney@redhat.com>
3428
3429 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3430 (rs6000_push_dummy_call): Store the struct return address.
3431 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3432
77b2b6d4
AC
34332003-09-09 Andrew Cagney <cagney@redhat.com>
3434
3435 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3436 "ppc_sysv_abi_push_arguments".
3437 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3438 "ppc_sysv_abi_push_arguments".
3439 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3440 instead of "push_arguments".
3441 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3442
e8a7b686
AC
34432003-09-09 Andrew Cagney <cagney@redhat.com>
3444
3445 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3446 instead of CALL_DUMMY_ADDRESS.
3447
f86f5ca3
PH
34482003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3449
3450 * p-lang.c: Eliminate "register".
3451 * c-lang.c: Ditto.
3452 * expprint.c: Ditto.
3453 * f-lang.c: Ditto.
3454 * jv-lang.c: Ditto.
3455 * language.c: Ditto.
3456 * m2-lang.c: Ditto.
3457 * parse.c: Ditto.
3458 * scm-lang.c: Ditto.
3459 * objc-lang.c: Ditto.
3460
83ee270e
NC
34612003-09-09 Nick Clifton <nickc@redhat.com>
3462
3463 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3464
a89aa300
AC
34652003-09-04 Andrew Cagney <cagney@redhat.com>
3466
3467 * avr-tdep.c: Include "dis-asm.h".
3468 * cris-tdep.c: Include "dis-asm.h".
3469 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3470 instead of corresponding typedef.
3471 * h8300-tdep.c: Include "dis-asm.h".
3472 * ia64-tdep.c: Include "dis-asm.h".
3473 * i386-tdep.c: Include "dis-asm.h".
3474 (i386_print_insn): Use "struct disassemble_info" instead of
3475 corresponding typedef.
3476 * m68k-tdep.c: Include "dis-asm.h".
3477 * mcore-tdep.c: Include "dis-asm.h".
3478 * mips-tdep.c: Include "dis-asm.h".
3479 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3480 instead of corresponding typedef.
3481 * ns32k-tdep.c: Include "dis-asm.h".
3482 * s390-tdep.c: Include "dis-asm.h".
3483 * sparc-tdep.c: Include "dis-asm.h".
3484 * vax-tdep.c: Include "dis-asm.h".
3485 * v850-tdep.c: Include "dis-asm.h".
3486 * mn10300-tdep.c: Include "dis-asm.h".
3487 * rs6000-tdep.c: Include "dis-asm.h".
3488 * xstormy16-tdep.c: Include "dis-asm.h".
3489 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3490 print_insn_xstormy16.
3491 * Makefile.in (v850-tdep.o): Update dependencies.
3492 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3493 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3494 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3495 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3496 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3497 (gdbarch_h): Remove $(dis_asm_h).
3498 * disasm.c: Include "dis-asm.h".
3499 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3500 corresponding typedef.
3501 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3502 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3503 * gdbarch.sh: Do not include "dis-asm.h".
3504 (struct disassemble_info): Declare opaque.
3505 (TARGET_PRINT_INSN): Update declaration.
3506 * gdbarch.h, gdbarch.c: Re-generate.
3507
88a82a65
AC
35082003-09-08 Andrew Cagney <cagney@redhat.com>
3509
3510 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3511 CALL_DUMMY_ADDRESS, change to a predicate.
3512 * gdbarch.h, gdbarch.c: Re-generate.
3513 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3514 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3515 * infcall.c (call_function_by_hand): Ditto.
3516 * sparc-tdep.c (sparc_push_return_address): Ditto.
3517 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3518 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3519 CALL_DUMMY_ADDRESS with entry_point_address.
3520 * v850-tdep.c (v850_push_return_address): Ditto.
3521 * s390-tdep.c (s390_push_return_address): Ditto.
3522 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3523 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3524 * mcore-tdep.c (mcore_push_return_address): Ditto.
3525 * cris-tdep.c (cris_push_return_address): Ditto.
3526 * arm-tdep.c (arm_push_return_address): Ditto.
3527
3e2c4033
AC
35282003-09-08 Andrew Cagney <cagney@redhat.com>
3529
3530 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3531 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3532 and REG_UNMODIFIED to REG_SAME_VALUE.
3533 (execute_cfa_program): Update.
3534 (dwarf2_frame_cache): Update. Initialize table to
3535 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3536 location.
3537 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3538
39efb398
AC
35392003-09-08 Andrew Cagney <cagney@redhat.com>
3540
3541 * gnu-nat.c: Remove "inline" function attribute.
3542 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3543
f5cb5aca
KB
35442003-09-08 Kevin Buettner <kevinb@redhat.com>
3545
3546 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3547 target.
3548
1cb761c7
KB
35492003-09-08 Kevin Buettner <kevinb@redhat.com>
3550
3551 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3552 (frame_extra_info): Rename this struct to frv_unwind_cache.
3553 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3554 Add fields ``prev_sp'' and ``base''.
3555 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3556 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3557 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3558 Delete.
3559 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3560 Revise all callers. Fill in the unwind cache argument and make
3561 other adjustments to account for new frame mechanisms.
3562 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3563 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3564 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3565 (frv_frame_unwind, frv_frame_base): New structs.
3566 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3567 additional arguments expected by this method and adjust function
3568 body accordingly.
3569 (frv_gdbarch_init): Remove calls to the following functions:
3570 set_gdbarch_deprecated_init_frame_pc(),
3571 set_gdbarch_deprecated_saved_pc_after_call(),
3572 set_gdbarch_deprecated_frame_chain(),
3573 set_gdbarch_deprecated_frame_saved_pc(),
3574 set_gdbarch_deprecated_frame_init_saved_regs(),
3575 set_gdbarch_deprecated_push_arguments(),
3576 set_gdbarch_deprecated_push_return_address(),
3577 set_gdbarch_deprecated_pop_frame(),
3578 set_gdbarch_deprecated_call_dummy_words(),
3579 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3580 set_gdbarch_deprecated_init_extra_frame_info(),
3581 set_gdbarch_deprecated_dummy_write_sp(), and
3582 set_gdbarch_deprecated_pc_in_call_dummy().
3583 Add calls to the following functions:
3584 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3585 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3586 frame_base_set_default().
3587 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3588
68f6cf99
MK
35892003-09-09 Mark Kettenis <kettenis@gnu.org>
3590
3591 * dwarf2-frame.c (read_encoded_value): Add support for
3592 DW_EH_PE_aligned encoding.
3593
73b65bb0
DJ
35942003-09-08 Daniel Jacobowitz <drow@mvista.com>
3595
3596 * infrun.c (normal_stop): Don't print a message if the inferior
3597 has exited.
3598
7c8a5605
JB
35992003-09-08 Jim Blandy <jimb@redhat.com>
3600
3601 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3602 * dbxread.c: #include "gdb_assert.h".
3603 (read_dbx_symtab): If the objfile has no .data section, use the
3604 section index for the .bss section instead.
3605
7dd88986
DJ
36062003-09-08 Daniel Jacobowitz <drow@mvista.com>
3607
3608 * frame.c (deprecated_safe_get_selected_frame): New function.
3609 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3610 * findvar.c (read_var_value): Call it.
3611
55ff77ac
CV
36122003-09-08 Corinna Vinschen <vinschen@redhat.com>
3613
3614 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3615 (sh64-tdep.o): Add dependencies.
3616 * configure.tgt: Add FIXME to sh-*-linux*.
3617 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3618 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3619 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3620 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3621 * sh64-tdep.c: New file, containing all sh64 related code from
3622 sh-tdep.c.
3623 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3624 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3625 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3626 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3627 * config/sh/wince.mt (TDEPFILES): Ditto.
3628
bfb39158
DJ
36292003-09-07 Daniel Jacobowitz <drow@mvista.com>
3630
3631 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3632 (stop_wait_callback): Handle !lp->signalled also.
3633 (lin_lwp_has_pending, flush_callback): New functions.
3634 (lin_lwp_wait): Call flush_callback.
3635 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3636 (linux_proc_pending_signals): New function.
3637 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3638
9407de8e
DJ
36392003-09-07 Daniel Jacobowitz <drow@mvista.com>
3640
3641 From Nick Kelsey <nickk@ubicom.com>:
3642 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3643 when the stop PC is at the beginning of a function also.
3644
2ef47cd0
DJ
36452003-09-06 Daniel Jacobowitz <drow@mvista.com>
3646
3647 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3648 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3649
6f4492c8
MK
36502003-09-06 Mark Kettenis <kettenis@gnu.org>
3651
3652 * sol-thread.c: Include "gdb_string.h".
3653
d3420b2f
MK
36542003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3655
3656 * gcore.c: Reorder include files in alphabetical order. Include
3657 "gdb_assert.h". Various coding style fixes.
3658 (derive_stack_segment, derive_heap_segment): Replace check for
3659 non-null BOTTOM and TOP with gdb_assert.
3660 (derive_heap_segment): Replace check for successful creation of
3661 ZERO with gdb_assert.
3662 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3663
5220ea4c
AC
36642003-09-04 Andrew Cagney <cagney@redhat.com>
3665
3666 * thread-db.c (verbose_dlsym): New function.
3667 (thread_db_load): Use verbose_dlsym
3668 (thread_db_new_objfile): Print that libthread_db was loaded, and
3669 that thread debugging was enabled.
3670
6e8c2c06
AC
36712003-09-04 Andrew Cagney <cagney@redhat.com>
3672
3673 * configure.tgt: Add "mips64*-*-*" target. Delete
3674 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3675 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3676 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3677 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3678 mips*-sony-*, and mips64*-*-elf* targets.
3679 * config/mips/embedl.mt: Delete file.
3680 * config/mips/embedl64.mt: Delete file.
3681 * config/mips/mips.mt: Delete file.
3682 * config/mips/mips64.mt: Delete file.
3683 * config/mips/tm-embed.h: Delete file.
3684 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3685 * config/mips/embed64.mt: Delete out-of-date comment.
3686
3a3bc038
AC
36872003-09-04 Andrew Cagney <cagney@redhat.com>
3688
3689 * hppa-tdep.c (hppa_gdbarch_init): Set
3690 "have_nonsteppable_watchpoint".
3691 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3692 * mips-tdep.c (mips_dump_tdep): Do not print
3693 HAVE_NONSTEPPABLE_WATCHPOINT.
3694 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3695 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3696 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3697 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3698
a957e642
CV
36992003-09-04 Corinna Vinschen <vinschen@redhat.com>
3700
3701 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3702 unused code. Add comment.
3703
a6fbcf2f
CV
37042003-09-04 Corinna Vinschen <vinschen@redhat.com>
3705
3706 * breakpoint.c (watchpoint_check): Check for pc being in an
3707 epilogue if watchpoint frame couldn't be found.
3708
c14a44d5
AC
37092003-09-04 Andrew Cagney <cagney@redhat.com>
3710
3711 * Makefile.in: Re-generate all dependencies.
3712
f6c40618
AC
37132003-09-03 Andrew Cagney <cagney@redhat.com>
3714
3715 * arch-utils.h (legacy_print_insn): Delete declaration.
3716 * arch-utils.c (legacy_print_insn): Delete function.
3717 * disasm.c (deprecated_tm_print_insn_info): Delete.
3718 (_initialize_disasm): Delete function, contained code initializing
3719 deprecated_tm_print_insn_info.
3720 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3721 (deprecated_tm_print_insn_info): Delete.
3722 (TARGET_PRINT_INSN): Do not provide a default.
3723 * gdbarch.h, gdbarch.c: Re-generate.
3724
242e8be5
AC
37252003-09-03 Andrew Cagney <cagney@redhat.com>
3726
3727 * disasm.c (fprintf_disasm): New function.
3728 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3729 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3730 reverts 2003-08-14 change.
3731 (_initialize_disasm): Call "init_disassemble_info", instead of
3732 INIT_DISASSEMBLE_INFO_NO_ARCH.
3733
3ffc3dda
MS
37342003-09-03 Michael Snyder <msnyder@redhat.com>
3735
3736 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3737
52d16ba8
AC
37382003-09-03 Andrew Cagney <cagney@redhat.com>
3739
3740 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3741 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3742 * symfile.c (syms_from_objfile): Update.
3743 (reread_symbols): `Update
3744 * exec.c (exec_file_attach): Update.
3745 (exec_file_attach): Update.
3746 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3747 2003-08-29 change.
3748 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3749
eb5492fa
DJ
37502003-09-03 Daniel Jacobowitz <drow@mvista.com>
3751
3752 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3753 trad-frame.h.
3754 (arm_get_cache): Delete macro.
3755 (struct arm_prologue_cache): Update comments. Make saved_regs into
3756 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3757 to prev_sp.
3758 (thumb_scan_prologue): Update for cache changes. Don't call
3759 DEPRECATED_PC_IN_CALL_DUMMY.
3760 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3761 argument and use it in desperation search for our prologue. Do not
3762 search past the specified PC.
3763 (arm_make_prologue_cache): Simplify.
3764
3765 (arm_prologue_this_id, arm_prologue_prev_register)
3766 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3767 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3768 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3769 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3770 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3771
3772 (arm_frame_chain_valid, arm_find_callers_reg)
3773 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3774 (arm_pop_frame): Delete obsolete methods.
3775 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3776
3777 (arm_gdbarch_init): Update for new frame methods. Register prologue
3778 and sigtramp unwinders. Set the default frame base method.
3779
3780 * Makefile.in (arm-tdep.o): Update dependencies.
3781 * varobj.c (find_frame_addr_in_frame_chain): Call
3782 get_frame_base_address.
3783 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3784
24de872b
DJ
37852003-09-03 Daniel Jacobowitz <drow@mvista.com>
3786
3787 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3788 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3789 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3790 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3791 Take NEXT_FRAME and CACHE arguments. Call
3792 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3793 Set unwound_pc in CACHE instead of modifying the frame argument.
3794 Don't bother checking the frame type when looking for sigtramp
3795 frames.
3796 (arm_make_prologue_cache, arm_frame_chain)
3797 (arm_init_extra_frame_info): New functions.
3798
9b8d791a
DJ
37992003-09-03 Daniel Jacobowitz <drow@mvista.com>
3800
3801 * arm-tdep.c (arm_get_cache): Define.
3802 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3803 unwound_sp, unwound_pc, and saved_regs.
3804 (thumb_scan_prologue): Take a cache instead of the frame.
3805 (arm_scan_prologue): Likewise.
3806 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3807 instead of a temporary frame.
3808 (arm_init_extra_frame_info): Allocate and use a cache.
3809 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3810
7ee3275f
AC
38112003-09-03 Andrew Cagney <cagney@redhat.com>
3812
3813 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3814 * config/mips/wince.mt (TM_CLIBS): Ditto.
3815 * config/sh/wince.mt (TM_CLIBS): Ditto.
3816 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3817 * config/sparc/sp64.mt (CC): Delete.
3818
57b29be7
AC
38192003-09-03 Andrew Cagney <cagney@redhat.com>
3820
3821 * defs.h: Do not include "arch-utils.h".
3822 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3823 GDB_MULTI_ARCH_PURE.
3824 * configure.in (GDB_MULTI_ARCH): Do not define.
3825 * configure, config.in: Regenerate.
3826 * configure.tgt: Do not set variable "gdb_multi_arch".
3827 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3828 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3829 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3830 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3831 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3832 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3833 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3834 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3835 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3836 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3837 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3838 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3839 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3840 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3841 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3842 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3843 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3844 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3845
12e035e2
MC
38462003-08-30 Michael Chastain <mec@shout.net>
3847
3848 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3849 * config/m68k/nm-hp300hpux.h: Delete.
3850 * config/m68k/tm-hp300hpux.h: Delete.
3851 * config/m68k/xm-hp300hpux.h: Delete.
3852 * config/m68k/xm-hp300bsd.h: Delete.
3853 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3854 tm-hp300hpux.h, xm-hp300hpux.h.
3855 * somsolib.c: Remove comment about hp300 shared libraries.
3856
bda34dc2
MK
38572003-08-31 Mark Kettenis <kettenis@gnu.org>
3858
5bca7895
MK
3859 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3860 Only define PTRACE_GET_THREAD_AREA is not already defined.
3861 Various style fixes in code and comments and some additional
3862 spelling fixes in comments. Move after functions dealing with
3863 debug registers.
3864 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3865 Fix coding-style.
3866
bda34dc2
MK
3867 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3868 frame_unwind_register_unsigned instead of
3869 frame_unwind_unsigned_register.
3870
c890192f
MK
38712003-08-30 Mark Kettenis <kettenis@gnu.org>
3872
3873 * configure.in: Search for gethostbyname in libnsl.
3874 * configure: Regenerated.
3875
60fac5b8
MK
38762003-08-29 Mark Kettenis <kettenis@gnu.org>
3877
e294916c
MK
3878 * configure.in: Remove redundant AC_MSG_RESULT in check for
3879 uintptr_t in stdint.h.
3880 * configure: Regenerated.
3881
c40d267a
MK
3882 * amd64-nat.h (struct regcache): Add opaque declaration.
3883
60fac5b8
MK
3884 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3885 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3886 Change "register array" to "register cache" in comments.
3887 (x86_64_linux_gregset64_reg_offset): New variable.
3888 (GETREGS_SUPPLIES): Remove macro.
3889 (supply_gregset): Call amd64_supply_native_gregset instead of
3890 x86_64_linux_supply_gregset.
3891 (fill_gregset): Rename `regno' to `regnum'. Call
3892 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3893 (store_regs): Rename `regno' to `regnum'.
3894 (store_fpregs): Rename `regno' to `regnum'.
3895 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3896 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3897 Reorganize function a bit.
3898 (store_inferior_registers): Rename `regno' to `regnum'. Use
3899 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3900 Reorganize function a bit.
3901 (_initialize_x86_64_linux_nat): New function.
3902 * config/i386/x86-64linux.mh.
3903
546143b6
AC
39042003-08-29 Andrew Cagney <cagney@redhat.com>
3905
3906 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3907 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3908 (target_remove_watchpoint): Delete macro.
3909 (target_insert_watchpoint): Delete macro.
3910 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3911 (remote_mips_stopped_by_watchpoint): Delete declaration.
3912 (remote_mips_remove_watchpoint): Delete declaration.
3913 (remote_mips_set_watchpoint): Delete declaration.
3914 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3915 * remote-mips.c (_initialize_remote_mips): Set
3916 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3917 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3918 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3919 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3920 (mips_stopped_by_watchpoint): Rename
3921 remote_mips_stopped_by_watchpoint.
3922 (mips_can_hardware_watchpoint): Rename
3923 remote_mips_can_use_hardware_watchpoint, update function
3924 signature.
3925
7bace51b
MK
39262003-08-29 Mark Kettenis <kettenis@gnu.org>
3927
b0f5c6f2
MK
3928 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3929 USER_DS. We haven't given them a register number yet.
3930
2a6d284d
MK
3931 * amd64-nat.h: New file.
3932 * amd64-nat.c: New file.
3933 * amd64fbsd-nat.c: Include "amd64-nat.h".
3934 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3935 (amd64fbsd32_r_reg_offset): New variable.
3936 (supply_gregset): Simply call amd64_supply_native_gregset.
3937 (fill_gregset): Rename `regno' to `regnum'. Simply call
3938 amd64_collect_native_gregset.
3939 (fill_fpregset): Rename `regno' to `regnum'.
3940 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3941 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3942 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3943 `fpregset_t'. Call amd64_supply_native_gregset instead of
3944 supply_gregset. Call x86_64_supply_fxsave instead of
3945 supply_fpregset.
3946 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3947 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3948 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3949 `fpregset_t'. Call amd64_collect_native_gregset instead of
3950 fill_gregset. Call x86_64_collect_fxsave instead of
3951 fill_fpregset.
3952 (_initialize_am64fbsd_nat): Initialize
3953 amd64_native_gregset32_reg_offset and
3954 amd64_native_gregset64_reg_offset.
3955 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3956
a16d75cc
MK
3957 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3958 null pointer. Fix typo in comment.
3959
7bace51b
MK
3960 * regcache.c (supply_register): Reimplement to call
3961 regcache_raw_supply.
3962 (regcache_collect): Reimplement by calling regcache_raw_collect.
3963
9a661b68
MK
39642003-08-28 Mark Kettenis <kettenis@gnu.org>
3965
3966 * regcache.c (register_buffer): Consitify first argument.
3967 (regcache_raw_supply, regcache_raw_collect): New
3968 functions.
3969
e94cc8fa
DJ
39702003-08-28 Daniel Jacobowitz <drow@mvista.com>
3971
3972 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3973 by Nathan J. Williams.
3974
c64bd0ce
DJ
39752003-08-28 Daniel Jacobowitz <drow@mvista.com>
3976
3977 * lin-lwp.c (wait_lwp): New function, copied from
3978 stop_wait_callback. Clean up.
3979 (stop_wait_callback): Use wait_lwp.
3980
e5ab0dce
AC
39812003-08-28 Andrew Cagney <cagney@redhat.com>
3982
3983 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3984 flavour and disassembler options.
3985 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3986 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3987 deprecated_tm_print_insn_info.
a8f4cde1 3988
a788de9b
AC
39892003-08-27 Andrew Cagney <cagney@redhat.com>
3990
3991 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3992 Use target_read_memory.
3993 (s390_get_frame_info): Update. Do not reference
3994 deprecated_tm_print_insn_info.
3995 (s390_check_function_end, s390_is_sigreturn): Ditto.
3996
36482093
AC
39972003-08-27 Andrew Cagney <cagney@redhat.com>
3998
3999 * Makefile.in (cris-tdep.o): Update dependencies.
4000 * cris-tdep.c: Include "gdb_assert.h".
4001 (cris_gdbarch_init): Set print_insn.
4002 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4003 (cris_delayed_get_disassembler): Simplify, directly call the
4004 disassembler returned by cris_get_disassembler.
4005 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4006 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4007 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4008 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4009 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4010 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4011 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4012 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4013 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4014 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4015 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4016 (gdb_print_insn_sparc): Delete function.
4017 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4018 deprecated_tm_print_insn_info.
4019 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4020 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4021 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4023 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4024 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4025 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4026 (s390_gdbarch_init): Set print_insn.
4027
0285512f
AC
40282003-08-27 Andrew Cagney <cagney@redhat.com>
4029
4030 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4031 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4032 * infcall.c (call_function_by_hand): Convert the entry point
4033 address into a code address.
4034
cdcd5552
AC
40352003-08-27 Andrew Cagney <cagney@redhat.com>
4036
4037 * dsrec.c: Include "gdb_string.h".
4038 * Makefile.in (dsrec.o): Update dependencies.
4039
e85cddad
MC
40402003-08-27 Michael Chastain <mec@shout.net>
4041
4042 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4043
8bbfbb23
AC
40442003-08-27 Andrew Cagney <cagney@redhat.com>
4045
4046 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4047 (alpha_osf1_init_abi): Do not set call_dummy_address.
4048
ba058b66
DC
40492003-08-27 David Carlton <carlton@kealia.com>
4050
4051 From Randolph Chung <tausq@debian.org>:
4052 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4053 compiles with -Wformat-nonliteral -Werror.
4054
87f84c9d
JB
40552003-08-26 Jim Blandy <jimb@redhat.com>
4056
4057 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4058 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4059 bfd_lookup_symbol, since we only want symbols in code sections.
4060 (look_for_base): Pass zero as the SECT_FLAGS argument to
4061 bfd_lookup_symbol, since we're not concerned about which section
4062 the symbol is in.
4063
102d615a
JJ
40642003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4065
4066 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4067 we are frameless or the return address register is already known.
102d615a 4068
cc7ad3ea
AC
40692003-08-26 Andrew Cagney <cagney@redhat.com>
4070
4071 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4072 in size. Add comments.
4073
af8b88dd
JJ
40742003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4075
4076 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4077 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4078
e0a4f5a1
JM
40792003-08-26 Jason Merrill <jason@redhat.com>
4080
4081 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4082 case out of #ifdef MIPS block.
4083
4ae9ee8e
DJ
40842003-08-25 Daniel Jacobowitz <drow@mvista.com>
4085
4086 PR java/1322
4087 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4088 available before calling SECT_OFF_TEXT.
3c164570 4089 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4090
004d836a
JJ
40912003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4092
a8f4cde1 4093 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4094 bof, and nat0-nat127 as pseudo-registers.
4095 (ia64_frame_cache): New struct used to cache frame info.
4096 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4097 register grouping so registers without names are still saved and
004d836a 4098 restored.
a8f4cde1 4099 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4100 pseudo values.
4101 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4102 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4103 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4104 ia64_frame_cache.
4105 (examine_prologue): Change prototype to add next_frame pointer.
4106 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4107 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4108 alloc insn and if equal, mark as not frameless. At end of routine,
4109 if not frameless, calculate registers for the previous frame and store
4110 in the cache, if a cache is provided.
4111 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4112 and pass 0 for next_frame.
4113 (ia64_store_return_value): Change to use convert_typed_floating()
4114 instead of calling ia64_convert_to_raw().
4115 (ia64_extract_return_value): Change to use convert_typed_floating()
4116 instead of calling ia64_convert_to_virtual().
4117 (ia64_frame_cache): New routine to support new frame model.
4118 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4119 (ia64_frame_sniffer): Ditto.
4120 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4121 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4122 (ia64_sigtramp_frame_prev_register): Ditto.
4123 (ia64_sigtramp_frame_sniffer): Ditto.
4124 (ia64_frame_base_address): Ditto.
4125 (ia64_extract_struct_value_address): Change to issue error message.
4126 (ia64_frame_align): New routine to align sp.
4127 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4128 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4129 ia64_push_dummy_call().
4130 (ia64_push_return_address): Ditto.
4131 (ia64_unwind_dummy_id): New function.
4132 (ia64_unwind_pc): Ditto.
4133 (ia64_convert_register_p): Ditto.
4134 (ia64_register_to_value): Ditto.
4135 (ia64_value_to_register): Ditto.
4136 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4137 (ia64_register_byte, ia64_register_raw_size): Ditto.
4138 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4139 (ia64_saved_pc_after_call): Ditto.
4140 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4141 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4142 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4143 (ia64_register_convert_to_raw): Ditto.
4144 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4145 (ia64_init_extra_frame_info): Ditto.
4146 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4147 (ia64_gdbarch_init): Remove registering of deprecated functions that
4148 are no longer used. Add registration of new gdbarch functions.
4149 Remove registering deprecated_write_sp. Replace
4150 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4151 Delete set_gdbarch_deprecated_register_convertible(),
4152 set_gdbarch_deprecated_register_convert_to_virtual(), and
4153 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4154 set_gdbarch_deprecated_register_size(),
4155 set_gdbarch_deprecated_register_bytes(),
4156 set_gdbarch_pcregnum(),
4157 set_gdbarch_deprecated_register_byte(),
4158 set_gdbarch_deprecated_register_raw_size(),
4159 set_gdbarch_deprecated_max_register_raw_size(),
4160 set_gdbarch_deprecated_register_virtual_size(),
4161 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4162 Replace set_gdbarch_deprecated_extract_return_value() with
4163 set_gdbarch_extract_return_value(). Remove calls to:
4164 set_gdbarch_deprecated_saved_pc_after_call();
4165 set_gdbarch_deprecated_frame_chain(),
4166 set_gdbarch_deprecated_frame_saved_pc(),
4167 set_gdbarch_deprecated_frame_init_saved_regs(),
4168 set_gdbarch_deprecated_get_saved_register(),
4169 set_gdbarch_deprecated_call_dummy_words(),
4170 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4171 set_gdbarch_deprecated_init_extra_frame_info(),
4172 set_gdbarch_deprecated_frame_args_address(),
4173 set_gdbarch_deprecated_frame_locals_address(),
4174 and set_gdbarch_deprecated_dummy_write_sp().
4175 Add set_gdbarch_convert_register_p(),
4176 set_gdbarch_register_to_value(),
4177 set_gdbarch_value_to_register(),
4178 set_gdbarch_push_dummy_call(),
4179 set_gdbarch_frame_align(),
4180 set_gdbarch_unwind_dummy_id(),
4181 set_gdbarch_unwind_pc(),
4182 frame_unwind_append_sniffer(),
4183 frame_unwind_append_sniffer(),
4184 and frame_base_set_default().
4185
aede7613
CD
41862003-08-25 Chris Demetriou <cgd@broadcom.com>
4187
4188 * configure.tgt: Document need for special "mipsisa64" handling.
4189 (mipsisa64*-*-linux64): Handle as target linux64.
4190 (mipsisa64*-*-*): Handle as target embed64.
4191
43c3a82e
MC
41922003-08-18 Michael Chastain <mec@shout.net>
4193
4194 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4195 objfile bug.
4196
6564f77d
MK
41972003-08-24 Mark Kettenis <kettenis@gnu.org>
4198
2de139ba
MK
4199 * i387-tdep.h: Update copyright date.
4200 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4201
6564f77d
MK
4202 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4203 CFLAGS games to reflect reality.
4204
42cf1509
AC
42052003-08-24 Andrew Cagney <cagney@redhat.com>
4206
4207 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4208 GDB_MULTI_ARCH is always non-zero.
4209 * osabi.c (_initialize_gdb_osabi): Ditto.
4210 (gdbarch_init_osabi): Ditto.
4211 * sparc-tdep.c: Ditto for #if code.
4212
0485f6ad
MK
42132003-08-23 Mark Kettenis <kettenis@gnu.org>
4214
4215 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4216 Update comments.
4217 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4218 comments.
4219 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4220 x86_64_supply_fxsave.
4221 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4222 x86_64_supply_fxsave.
4223 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4224 x86_64_supply_fxsave.
4225
c7716133
AJ
42262003-08-23 Andreas Jaeger <aj@suse.de>
4227
4228 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4229 i387_supply_fxsave.
4230
ed504bdf
MK
42312003-08-23 Mark Kettenis <kettenis@gnu.org>
4232
4233 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4234 i387_supply_register.
4235 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4236 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4237 i387_supply_fsave.
4238 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4239 i387_supply_fxsave.
4240 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4241 i387_supply_fsave.
4242 * i386bsd-nat.c (supply_fpregset): Adjust call to
4243 i387_supply_fsave.
4244 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4245 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4246 supply_fpregset.
4247 (store_inferior_registers): Remove extraneous whitespace. Call
4248 i387_fill_fsave instead of fill_fpregset.
4249 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4250 (supply_fpregset): Likewise.
4251 * i386v4-nat.c (supply_fpregset): Adjust call to
4252 i387_supply_fsave.
4253 * i386-interix-nat.c (supply_fpregset): Adjust call to
4254 i387_supply_fsave.
4255 * i386-linux-nat.c (supply_fpregset): Adjust call to
4256 i387_supply_fsave.
4257 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4258 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4259 i387supply_fsave and i387_supply_fxsave.
4260 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4261 Incorporate code from `i387_supply_register.
4262 (i387_supply_register): Remove.
4263 (i387_supply_fxsave): Add `regnum' argument.
4264 Update comments.
4265 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4266 prototype.
4267 (i387_supply_register): remove prototype.
4268 Update comments.
a8f4cde1 4269
4be5d520
MC
42702003-08-22 Michael Chastain <mec@shout.net>
4271
4272 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4273 Add lines for files in gdb/testsuite/gdb.cp/* that are
4274 still not 8.3 unique.
4275
7ed85d26
DJ
42762003-08-22 Daniel Jacobowitz <drow@mvista.com>
4277
4278 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4279 TYPE_VPTR_FIELDNO is valid.
4280
eb0d3137
MK
42812003-08-19 Mark Kettenis <kettenis@gnu.org>
4282
4283 * utils.c (set_width_command): Remove prototypes.
4284 (set_screen_size): New prototype.
4285 (init_page_info): Simplify by fetching the screen size from
4286 Readline. Call set_screen_size.
4287 (set_screen_size): New function.
4288 (set_width): Add missing whitespace in comment.
4289 (set_width_command): Call set_screen_size.
4290 (set_height_command): New function.
4291 (initialize_utils): Fix formatting. Make "set height" command
4292 call set_height_command. Remove redundant code that turns off
4293 pagination if output isn't a terminal. Remove redundant call to
4294 set_width_command.
a8f4cde1 4295
7e6d0ac8
MK
42962003-08-22 Mark Kettenis <kettenis@gnu.org>
4297
3567a8ea
MK
4298 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4299 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4300 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4301 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4302 `case' keyword.
4303 (sparc64_register_info): Give the reister with number
4304 SPARC64_STATE_REGNUM a name.
4305 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4306 %asi and %ccr.
4307 (sparc64_push_dummy_call): Take BIAS into account when checking
4308 stcak alignment.
4309 (sparc_software_single_step): Remove assertions that check whether
4310 NPC and NNPC were zero.
4311 (sparc_supply_rwindow): Make public. Merge functionality with
4312 sparc64_supply_rwindow.
4313 (sparc_fill_rwindow): Make public. Merge functionality with
4314 sparc64_fill_rwindow.
4315 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4316 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4317 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4318 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4319 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4320
7e6d0ac8
MK
4321 * reggroups.c: Add whitespace after declarations of local
4322 variables in functions.
4323
72e5f484
MC
43242003-08-21 Michael Chastain <mec@shout.net>
4325
4326 * gdbtypes.h: Change array bound type from an int to enum.
4327
435ac228
AC
43282003-08-21 Andrew Cagney <cagney@redhat.com>
4329
4330 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4331 * config/sparc/tm-sparc.h: Ditto.
4332 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4333 unconditionally.
4334 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4335
0d0e1a63
MK
43362003-07-13 Mark Kettenis <kettenis@gnu.org>
4337
4338 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4339 (register_objfile_data, set_objfile_data, objfile_data): New
4340 prototypes.
4341 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4342 prototypes.
4343 (allocate_objfile): Call objfile_alloc_data.
4344 (free_objfile): Call objfile_free_data.
4345 (struct objfile_data): New.
4346 (struct objfile_data_registration): New.
4347 (struct objfile_data_registry): New.
4348 (objfile_data_registry): New variable.
4349 (register_objfile_data): New function.
4350 (objfile_alloc_data, objfile_free_data): New functions.
4351 (set_objfile_data, objfile_data): New functions.
4352 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4353 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4354 (_initialize_dwarf2_frame): New function and prototype.
4355
d90cf509
AC
43562003-08-21 Andrew Cagney <cagney@redhat.com>
4357
4358 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4359 a specific architecture.
4360 * arch-utils.h (set_architecture_from_arch_mach): Delete
4361 declaration.
4362 (target_architecture_hook): Delete declaration.
4363 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4364 (default_float_format): Assume GDB_MULTI_ARCH.
4365 (default_double_format): Assume GDB_MULTI_ARCH.
4366 (set_endian_from_file): Delete function.
4367 (arch_ok): Delete function.
4368 (set_arch): Delete function.
4369 (set_architecture_from_arch_mach): Delete function.
4370 (set_architecture_from_file): Delete function.
4371 (set_architecture): Assume GDB_MULTI_ARCH.
4372 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4373
8b39fe56
MK
43742003-08-21 Mark Kettenis <kettenis@gnu.org>
4375
4376 Rewrite FreeBSD/sparc64 native configuration.
4377 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4378 * sparc64fbsd-nat.c: New file.
4379 * sparc64fbsd-tdep.c: New file.
4380 * sparc64-tdep.c sparc64-tdep.h: New files.
4381 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4382 sparc64fbsd-tdep.o): New dependencies.
4383 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4384 and sparc64fbsd-tdep.c.
4385 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4386 * config/sparc/fbsd.mh: Remove copyright notice.
4387 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4388 sparcbsd-nat.o.
4389 * config/sparc/fbsd.mt: Remove copyright notice.
4390 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4391 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4392 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4393 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4394 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4395 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4396 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4397 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4398 "sparc/tm-sp64.h".
4399 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4400 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4401
a7f19c79
MC
44022003-08-21 Michael Chastain <mec@shout.net>
4403
4404 * symtab.h: Add doco on the space critical structures and
4405 some measurements of space usage.
4406
da08ea5b
MS
44072003-08-21 Michael Snyder <msnyder@redhat.com>
4408
4409 * tracepoint.c (trace_dump_command): Trace break address
4410 is subject to DECR_PC_AFTER_BREAK.
4411 (set_traceframe_context): Make "trace_line" an int.
4412 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4413
6df2bf50
MS
44142003-08-20 Michael Snyder <msnyder@redhat.com>
4415
4416 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4417 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4418 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4419 argument passing.
a8f4cde1 4420 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4421 functions, replace sh_push_dummy_call.
4422 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4423
0955bbf0
MC
44242003-08-20 Michael Chastain <mec@shout.net>
4425
4426 * gdbtypes.h (struct main_type): Rearrange to save space.
4427
260a4188
MS
44282003-08-20 Michael Snyder <msnyder@redhat.com>
4429
4430 * trad-frame.c: Comment typo fix.
4431
8baa6f92
KB
44322003-08-20 Michael Snyder <msnyder@redhat.com>
4433 Kevin Buettner <kevinb@redhat.com>
4434
4435 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4436 (frv_frame_init_saved_regs): Add declaration.
4437 (frame_extra_info): Add new field ``saved_regs''.
4438 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4439 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4440 Update frame related code.
4441 (frv_extract_struct_value_address): Adjust formatting.
4442 * Makefile.in (frv-tdep.o): Update dependencies.
4443 * config/frv/tm-frv.h (target_insert_watchpoint)
4444 (target_remove_watchpoint, target_insert_hw_breakpoint)
4445 (target_remove_hw_breakpoint): Delete these macros.
4446 (remote_insert_watchpoint, remote_remove_watchpoint)
4447 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4448 these declarations.
4449
87193939
MC
44502003-08-20 Michael Chastain <mec@shout.net>
4451
4452 * defs.h (ENUM_BITFIELD): New macro.
4453 * symtab.h (ENUM_BITFIELD): Use it.
4454 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4455
062103ba
SA
44562003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4457
4458 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4459
8b148df9
AC
44602003-08-18 Andrew Cagney <cagney@redhat.com>
4461
4462 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4463 * gdbarch.h, gdbarch.c: Re-generate.
4464 * infcall.c (call_function_by_hand): Adjust the SP by
4465 frame_red_zone_size before allocating any stack space.
4466 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4467 * x86-64-tdep.c (x86_64_frame_align): New function.
4468 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4469
4470 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4471 Remove code adjusting SP so that it skips over the Red Zone.
4472
954a4db8
MK
44732003-08-18 Mark Kettenis <kettenis@gnu.org>
4474
4475 * NEWS (New native configurations): Mention FreeBSD/amd64.
4476
1a241548
AC
44772003-08-18 Andrew Cagney <cagney@redhat.com>
4478
4479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4480 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4481 "m68k_frame_p".
4482 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4483
f82b2acd
MK
44842003-08-18 Mark Kettenis <kettenis@gnu.org>
4485
4486 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4487
4056d258
ML
44882003-08-18 Michal Ludvig <mludvig@suse.cz>
4489
4490 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4491 Define.
4492 * i386-linux-nat.c: Include "linux-nat.h".
4493 (child_post_startup_inferior): New function.
a8f4cde1 4494
99ab4326
MK
44952003-08-18 Mark Kettenis <kettenis@gnu.org>
4496
4497 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4498 at the start of a frameless function. This probably fixes PR
4499 backtrace/1338.
4500
c8d5f0d6
MC
45012003-08-17 Michael Chastain <mec@shout.net>
4502
4503 * symfile.c (find_sym_fns): Remove special case for apollo target.
4504
9016a515
DJ
45052003-08-17 Daniel Jacobowitz <drow@mvista.com>
4506
4507 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4508 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4509 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4510 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4511 (linux_supports_tracevforkdone): New function.
4512 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4513 TRACEVFORKDONE.
4514 (child_follow_fork): Handle vfork.
4515 (linux_handle_extended_wait): Likewise. Also handle exec.
4516 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4517 * NEWS: Mention fork tracing.
4518
c538c11c
DJ
45192003-08-17 Daniel Jacobowitz <drow@mvista.com>
4520
4521 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4522
4de4c07c
DJ
45232003-08-17 Daniel Jacobowitz <drow@mvista.com>
4524
4525 * Makefile.in (i386-linux-nat.o): Update dependencies.
4526 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4527 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4528 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4529 * i386-linux-nat.c: Include "linux-nat.h".
4530 (child_post_startup_inferior): New function.
4531 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4532 * infptrace.c (kill_inferior): Wrap in #ifdef.
4533 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4534 attaching to each LWP.
4535 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4536 (init_lin_lwp_ops): Fill in some more operations.
4537 * linux-nat.h (linux_enable_event_reporting)
4538 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4539 prototypes.
4540 * linux-nat.c (linux_enable_event_reporting): New function.
4541 (child_post_attach, linux_child_post_startup_inferior)
4542 (child_post_startup_inferior, child_follow_fork)
4543 (linux_handle_extended_wait, kill_inferior): New functions.
4544
7996bcec
AC
45452003-08-16 Andrew Cagney <cagney@redhat.com>
4546
4547 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4548 * gdbarch.h, gdbarch.c: Re-generate.
4549
3d48a7a0
MK
45502003-08-16 Mark Kettenis <kettenis@gnu.org>
4551
4552 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4553
7989c619
AC
45542003-08-16 Andrew Cagney <cagney@redhat.com>
4555
4556 * NEWS: Mention that "set prompt-escape-char" was deleted.
4557 * top.c (get_prompt_1): Delete function.
4558 (gdb_prompt_escape):
4559 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4560 prompt-escape-char" command.
4561 (MAX_PROMPT_SIZE): Delete macro.
4562 (get_prompt): Simplify, do not call get_prompt_1.
4563
07978cd8
AC
45642003-08-16 Andrew Cagney <cagney@redhat.com>
4565
4566 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4567 -Werror. -Wformat-nonliteral problems.
4568
3ff7cf9e
JB
45692003-08-15 J. Brobecker <brobecker@gnat.com>
4570
4571 Further multiarching work mostly for hppa64-*-hpux11:
4572 * hppa-tdep.h: New file.
4573 * hppa-tdep.c: #include hppa-tdep.c.
4574 (hppa32_num_regs): Renamed from hppa_num_regs.
4575 (hppa64_num_regs): New constant.
4576 (hppa64_call_dummy_breakpoint_offset): New constant.
4577 (hppa32_call_dummy_length): New constant.
4578 (hppa64_call_dummy_length): New constant.
4579 (hppa32_stack_align): Make name 32bit explicit.
4580 (hppa32_register_virtual_type): Likewise.
4581 (hppa32_extract_return_value): Likewise.
4582 (hppa32_use_struct_convention): Likewise.
4583 (hppa32_store_return_value): Likewise.
4584 (hppa64_register_virtual_type): New function.
4585 (hppa64_extract_return_value): New function.
4586 (hppa64_use_struct_convention): New function.
4587 (hppa64_store_return_value): New function.
4588 (hppa_frame_locals_address): Remove declaration, function does
4589 not exist anymore.
4590 (hppa_register_byte): Add support for PA64 ABI.
4591 (hppa_gdbarch_init): Add support for PA64 ABI.
4592 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4593 Make name 32bit explicit.
4594 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4595 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4596 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4597 (hppa64_hpux_frame_base_before_sigtramp): New function.
4598 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4599 * config/pa/tm-hppa64.h: Remove macros that are no longer
4600 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4601 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4602 * config/pa/tm-hppah.h: Update function calls in macros
4603 following the function renaming in hppa-hpux-tdep.c.
4604 * Makefile.in (hppa_tdep_h): New variable.
4605 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4606
5d05ca6d
MS
46072003-08-14 Michael Snyder <msnyder@redhat.com>
4608
4609 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4610
37ba2569
JB
46112003-08-13 J. Brobecker <brobecker@gnat.com>
4612
4613 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4614 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4615 routine.
4616
aed7f26a
MS
46172003-08-13 Michael Snyder <msnyder@redhat.com>
4618
4619 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4620 (frv_saved_pc_after_call): Use deprecated ftype.
4621 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4622 (frv_remote_translate_xfer_address): Remove.
4623 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4624
752d4ac1
JB
46252003-08-13 J. Brobecker <brobecker@gnat.com>
4626
4627 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4628 initialization after the common gdbarch initialization, not before.
4629
1426ac1d
JB
46302003-08-13 J. Brobecker <brobecker@gnat.com>
4631
4632 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4633 (ADDR_BITS_REMOVE): Remove, redundant.
4634
b6fbdd1d
JB
46352003-08-13 J. Brobecker <brobecker@gnat.com>
4636
4637 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4638 gdbarch method to clear the 2 low bits of text addresses.
4639
44160db3
AC
46402003-08-12 Andrew Cagney <cagney@redhat.com>
4641
4642 * Makefile.in (dsrec.o): Update dependencies.
4643 * dsrec.c: Include "gdb_assert.h".
4644 (make_srec): Use snprintf instead of sprintf, use a literal format
4645 string.
4646
bcf7d3ca
AC
46472003-08-12 Andrew Cagney <cagney@redhat.com>
4648
4649 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4650 FRAME_OBSTACK_ZALLOC.
4651
49ed40de
KB
46522003-08-12 Kevin Buettner <kevinb@redhat.com>
4653
4654 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4655 SSE registers.
4656
b246147c
MK
46572003-08-10 Mark Kettenis <kettenis@gnu.org>
4658
4659 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4660 amd64fbsd_sc_reg_offset): Add extern declarations.
4661 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4662 declarations.
4663
d95fdc0d
BE
46642003-08-11 Ben Elliston <bje@wasabisystems.com>
4665
4666 * MAINTAINERS (write after approval): Update my mail address.
4667
cf6a0e73
AC
46682003-08-10 Andrew Cagney <cagney@redhat.com>
4669
4670 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4671
f837910f
MK
46722003-08-10 Mark Kettenis <kettenis@gnu.org>
4673
e2dbbd2d
MK
4674 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4675 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4676 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4677 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4678 i386bsd_sc_reg_offset): Add extern declarations.
4679 * i386obsd-nat.c: Include "i386-tdep.h"
4680 (_initialize_i386obsd_nat): Remove extern declarations.
4681 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4682 declarations.
4683 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4684 declarations.
4685
f837910f
MK
4686 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4687 instead of frame_read_register.
4688 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4689 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4690 SP_REGNUM.
4691 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4692 instead of frame_unwind_unsigned_register. Use
4693 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4694 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4695 instead of read_register. Use builtin_type_void_data_ptr instead
4696 of builtin_type_void_func_ptr when extracting the address of the
4697 jmp_buf.
4698 (i386_extract_return_value, i386_store_return_value,
4699 i386_pseudo_register_read, i386_pseudo_register_write): Use
4700 register_size instead REGISTER_RAW_SIZE.
4701
edcf254d
AC
47022003-08-10 Andrew Cagney <cagney@redhat.com>
4703
4704 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4705 sprintf. Make "name" constant.
4706
26604a34
MK
47072003-08-10 Mark Kettenis <kettenis@gnu.org>
4708
192285c6
MK
4709 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4710 instead of frame_read_register.
f837910f
MK
4711 (i387_print_float_info): Use get_frame_register and
4712 get_frame_register_unsigned instead of frame_register_read.
192285c6 4713
f0925262
MK
4714 * i386fbsd-nat.c: Include "i386-tdep.h".
4715 (child_resume): Make `eflags' an ULONGEST. Use
4716 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4717 instead of register_read and register_write.
4718
a144416f
MK
4719 * i386bsd-nat.c (fetch_inferior_registers,
4720 store_inferior_registers): Don't use && at the end of a line.
4721 (_initialize_i386bsd_nat): Fix typo.
4722
fec74868
MK
4723 * frame.c (_initialize_frame): Add missing backslash.
4724
87232496
MK
4725 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4726 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4727 and supply_register instead of manipulating the register buffer
4728 directly.
4729
c9b9de0b
MK
4730 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4731 * config/i386/nm-i386sol2.h
4732 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4733
26604a34
MK
4734 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4735 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4736 instructions that GCC likes to mingle into the prologue. Fixes
4737 gdb/1253 and gdb/1255.
4738
25d29d70
AC
47392003-08-09 Andrew Cagney <cagney@redhat.com>
4740
4741 Fix GDB PR cli/926.
4742 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4743 * command.h (add_setshow_uinteger_cmd): Declare.
4744 * frame.c (set_backtrace_cmd): New function.
4745 (show_backtrace_cmd): New function.
4746 * frame.c (_initialize_frame): Replace "set/show
4747 backtrace-below-main" with "set/show backtrace past-main". Add
4748 command "set/show backtrace limit".
4749 (backtrace_past_main): Rename "backtrace_below_main".
4750 (backtrace_limit): New variable.
4751 (get_prev_frame): Update. Check the backtrace_limit.
4752
9ebf4acf
AC
47532003-08-09 Andrew Cagney <cagney@redhat.com>
4754
4755 * defs.h (xstrprintf): Declare.
4756 * utils.c (xstrprintf): New function.
4757 * breakpoint.c (insert_breakpoints): Replace sprintf and
4758 non-literal format strings, with xstrprintf and cleanups.
4759 (delete_breakpoint,breakpoint_re_set): Ditto.
4760 (commands_command, insert_breakpoints): Ditto.
4761 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4762 (break_at_finish_command_1): Ditto.
4763
3771659b
AC
47642003-08-09 Andrew Cagney <cagney@redhat.com>
4765
4766 * MAINTAINERS (language support): List Adam Fedor as Objective C
4767 maintainer.
4768
b4263afa
JB
47692003-08-08 J. Brobecker <brobecker@gnat.com>
4770
4771 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4772 are now multiarched.
4773
d84defb1
JB
47742003-08-08 J. Brobecker <brobecker@gnat.com>
4775
4776 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4777 longer necessary now that hppa64 is partially multiarch'ed.
4778
f786f615
AC
47792003-08-08 Andrew Cagney <cagney@redhat.com>
4780
4781 * interps.c (interp_set): Check for a NULL "old_interp".
4782
c938e9b0
L
47832003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4784
4785 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4786 (install-only): Support DESTDIR.
4787 (uninstall): Likewise.
4788 (install-gdbtk): Likewise.
4789
9a146a11
EZ
47902003-08-08 Elena Zannoni <ezannoni@redhat.com>
4791
4792 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4793 contains something meaningful at all times.
4794
4795Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4796
62599e99 4797 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4798
56296155
BC
4799Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4800
62599e99 4801 * MAINTAINERS (write after approval): Added self.
56296155 4802
9710e734
AC
48032003-08-07 Andrew Cagney <cagney@redhat.com>
4804
4805 * inferior.h (AT_SYMBOL): Define.
4806 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4807 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4808 * mips-tdep.c (mips_call_dummy_address): Delete function.
4809 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4810 set call_dummy_address.
4811
98b3ab73
AC
48122003-08-07 Andrew Cagney <cagney@redhat.com>
4813
4814 * language.c (op_error): Delete function.
4815 (binop_type_check): Delete function.
4816 * language.h (type_op_error, range_op_error): Delete macros.
4817 (op_error): Delete declaration.
4818
2fcf52f0
AC
48192003-08-07 Andrew Cagney <cagney@redhat.com>
4820
4821 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4822
abd4220e 48232003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4824
abd4220e 4825 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4826 (x86_64_push_arguments): Skip the red zone.
abd4220e 4827
9dd5f34f
AC
48282003-08-05 Andrew Cagney <cagney@redhat.com>
4829
4830 * reggroups.c (reggroup_next): Check for the final entry.
4831
e5e78edc
AC
48322003-08-04 Andrew Cagney <cagney@redhat.com>
4833
ab4e3d93
AC
4834 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4835 * cli/cli-script.c (define_command): Call query directly, instead
4836 of passing it a buffer.
4837 * ocd.c (ocd_error): Pass error a constant format string.
4838 * remote-mips.c (mips_error): Use fputs_filtered.
4839
1062ca82
AC
4840 * solib-svr4.c (_initialize_svr4_solib): Update
4841 register_gdbarch_data call.
4842 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4843
fcc1c85c
AC
4844 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4845 (register_gdbarch_data): Delete "free" parameter. Update
4846 comments.
4847 * gdbarch.h, gdbarch.c: Re-generate.
4848 * reggroups.c (_initialize_reggroup): Update.
4849 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4850 * frame-base.c (_initialize_frame_base): Update.
4851 * frame-unwind.c (_initialize_frame_unwind): Update.
4852 * user-regs.c (_initialize_user_regs): Update.
4853 * remote.c (_initialize_remote): Update.
4854 * regcache.c (_initialize_regcache): Update.
4855
116f06ea
AC
4856 * regcache.c (xfree_regcache_descr): Delete function.
4857 (_initialize_regcache): Update call to register_gdbarch_data.
4858 (init_regcache_descr, init_legacy_regcache_descr): Use
4859 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4860
e5e78edc
AC
4861 * remote.c (free_remote_state): Delete function.
4862 (_initialize_remote): Update register_gdbarch_data.
4863 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4864 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4865
6c7d17ba
AC
48662003-08-04 Andrew Cagney <cagney@redhat.com>
4867
4868 * reggroups.c (struct reggroup_el): Define.
4869 (struct reggroups): Delete field "nr_group". Replace array
4870 "group" with a "first" to "last" linked list.
4871 (reggroups_init): Update. Allocate using gdbarch's obstack.
4872 (reggroups_free): Delete function.
4873 (add_group): Update. Add "el" parameter.
4874 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4875 (default_groups): Update.
4876 (reggroup_next): Replace reggroups.
4877 (reggroups_dump): Update.
4878 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4879 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4880 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4881
89b7795b
DJ
48822003-08-04 Daniel Jacobowitz <drow@mvista.com>
4883
4884 * Makefile.in (tui-interp.o): Update dependencies.
4885
306d9ac5
DC
48862003-08-04 David Carlton <carlton@kealia.com>
4887
4888 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4889 to internal_error call.
4890 * source.c (forward_search_command): Add "%s" format argument.
4891 (reverse_search_command): Ditto.
4892 * top.c (quit_confirm): Ditto.
4893 * cli/cli-setshow.c (do_setshow_command): Ditto.
4894 * cp-valprint.c (cp_print_class_method): Replace
4895 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4896 (cp_print_class_member): Ditto.
4897 * event-top.c (command_line_handler): Ditto.
4898 * linux-proc.c (linux_info_proc_cmd): Ditto.
4899 * p-typeprint.c (pascal_type_print_base): Ditto.
4900 * p-valprint.c (pascal_object_print_class_method): Ditto.
4901 (pascal_object_print_class_member): Ditto.
4902 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4903 * remote.c (remote_cisco_section_offsets): Ditto.
4904 * top.c (command_line_input): Ditto.
4905 * utils.c (vwarning,error_stream,quit): Ditto.
4906 * valprint.c (print_floating,print_binary_chars)
4907 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4908
57bfe177
AC
49092003-08-04 Andrew Cagney <cagney@redhat.com>
4910
4911 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4912
e546b999
AC
49132003-08-02 Andrew Cagney <cagney@redhat.com>
4914
4915 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4916 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4917 amd64fbsd-nat.c.
4918
91092ee5
AC
49192003-08-02 Andrew Cagney <cagney@redhat.com>
4920
4921 * Makefile.in: Update all dependencies and definitions.
4922
889f28e2
AF
49232003-08-02 Adam Fedor <fedor@gnu.org>
4924
4925 * linespec.c (is_objc_method_format): New function
4926 (decode_line_1, locate_first_half): Use it.
4927 Fixes PR objc/1298
4928
880bc914
AC
49292003-08-01 Andrew Cagney <cagney@redhat.com>
4930
4931 * NEWS: Mention that m32r is multi-arch.
4932 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4933 * configure.tgt: Recognize m32r-*-*.
4934 * config/m32r/tm-m32r.h: Delete file.
4935 * config/m32r/m32r.mt: New file.
a8f4cde1 4936 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4937 gethostname succeeds, in order to avoid a compilation
4938 warning.
4939 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4940 compiler warning.
4941
19f59343
MS
49422003-08-01 Michael Snyder <msnyder@redhat.com>
4943
4944 * sh-tdep.c (sh_frame_align): New gdbarch method.
4945 (sh_gdbarch_init): Set up frame_align method.
4946
4e7d7511
MS
49472003-07-31 Michael Snyder <msnyder@redhat.com>
4948
4949 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4950 which is already covered by the new frames infrastructure.
4951
63022984
AC
49522003-07-31 Andrew Cagney <cagney@redhat.com>
4953
4954 * user-regs.c (struct user_reg): Add "next" link.
4955 (struct user_regs): Replace "user" with "first" and "last" links.
4956 (append_user_reg): Add pre-allocated "reg" parameter.
4957 (builtin_user_regs): Provide initial value for "last".
4958 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4959 (user_regs_init): Allocate memory from the gdbarch obstack.
4960 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4961 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4962 linked list.
4963 (usernum_to_user_reg): New function.
4964 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4965 (value_of_user_reg): Use usernum_to_user_reg.
4966 (user_regs_free): Delete function.
4967 (_initialize_user_regs): Update register_gdbarch_data call.
4968
7cf6e574
DJ
49692003-07-31 Daniel Jacobowitz <drow@mvista.com>
4970
4971 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4972
c48a845b
MS
49732003-07-30 Michael Snyder <msnyder@redhat.com>
4974
4e7d7511 4975 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4976 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4977 value_being_returned.
4978 * infcmd.c (print_return_value): Pass zero as struct_addr.
4979 * values.c (value_being_returned): If struct_addr is passed,
4980 use it instead of trying to recover it from the inferior.
4981
f0d8db19
KB
49822003-07-30 Kevin Buettner <kevinb@redhat.com>
4983
4984 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4985 the prologue analyzer won't need to attempt to extract the pc
4986 value from the woefully incomplete dummy frame.
4987 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4988 possible. Disable code which modifies the frame.
4989
e5c113a1
AC
49902003-07-28 Andrew Cagney <cagney@redhat.com>
4991
4992 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4993 to level 2.
4994 (annotate_breakpoints_table, annotate_record): Ditto.
4995 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4996 (annotate_field_name_end, annotate_field_value): Ditto.
4997 (annotate_field_end, annotate_frame_source_begin): Ditto.
4998 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4999 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5000 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5001 (annotate_frame_address_end, annotate_frame_address): Ditto.
5002 (annotate_frame_args, annotate_frame_end): Ditto.
5003 (annotate_frame_where, annotate_arg_begin): Ditto.
5004 (annotate_arg_name_end, annotate_arg_value): Ditto.
5005 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5006 (annotate_function_call, annotate_signal_name): Ditto.
5007 (annotate_signal_string, annotate_signal_name_end): Ditto.
5008 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5009 (annotate_value_begin, annotate_value_history_value): Ditto.
5010 (annotate_value_history_end, annotate_value_end): Ditto.
5011 (annotate_display_begin, annotate_display_number_end): Ditto.
5012 (annotate_display_format, annotate_display_expression): Ditto.
5013 (annotate_display_expression_end, annotate_display_value): Ditto.
5014 (annotate_display_end, annotate_array_section_begin): Ditto.
5015 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5016 (annotate_elt, annotate_array_section_end): Ditto.
5017
bb1db049
AC
50182003-07-28 Andrew Cagney <cagney@redhat.com>
5019
5020 * regcache.c (struct regcache_descr): Update comments on
5021 nr_raw_registers.
5022 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5023 sizeof_raw_register_valid_p.
5024 (init_regcache_descr): Set nr_raw_registers and
5025 sizeof_raw_register_valid_p before calling
5026 init_legacy_regcache_descr.
5027
20e6603c
AC
50282003-07-28 Andrew Cagney <cagney@redhat.com>
5029
5030 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5031 MOD NUM_REGS.
5032
db742940
DJ
50332003-07-28 Daniel Jacobowitz <drow@mvista.com>
5034
5035 * thread.c (info_threads_command): Use get_selected_frame ().
5036 Check that there is at least one non-sentinel frame.
5037
ce7f4371
SC
50382003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5039
5040 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5041 (m68hc11_pop_frame): Remove.
5042 (m68hc11_frame_saved_pc): Remove.
5043 (m68hc11_frame_chain): Remove.
5044 (m68hc11_frame_init_saved_regs): Remove.
5045 (m68hc11_init_extra_frame_info): Remove.
5046 (m68hc11_store_struct_return): Remove.
5047 (m68hc11_saved_pc_after_call): Remove.
5048
1ea653ae
SC
50492003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5050
5051 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5052 frame unwind information.
5053 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5054 and adapted for frame unwinding.
5055 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5056 (m68hc11_unwind_pc): New function.
5057 (m68hc11_frame_unwind_cache): New function to analyze frames.
5058 (m68hc11_frame_this_id): New function to create new frame struct.
5059 (m68hc11_frame_prev_register): New function to unwind a register from
5060 the frame.
5061 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5062 (m68hc11_frame_p): New function for the above.
5063 (m68hc11_frame_base_address): New function to return fp of frame.
5064 (m68hc11_frame_args_address): Update for frame.
5065 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5066 (m68hc11_unwind_sp): New function.
5067 (m68hc11_unwind_dummy_id): New function.
5068 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5069 calls.
5070
c8a7f6ac
SC
50712003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5072
5073 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5074 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5075 when we are beyond the current pc.
5076
3dc990bf
SC
50772003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5078
5079 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5080 from m68hc11_push_arguments.
5081 (m68hc11_push_arguments): Remove.
5082 (m68hc11_push_return_address): Remove.
5083 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5084 handlers; remove deprecated_extra_stack_alignment_needed.
5085
222e5d1d
AC
50862003-07-27 Andrew Cagney <cagney@redhat.com>
5087
5088 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5089 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5090 REAL_PC and not the pointer.
5091 * hppa-hpux-tdep.c: Include frame.h
5092
a7e9a47e
AC
50932003-07-27 Andrew Cagney <cagney@redhat.com>
5094
5095 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5096 GDB_MULTI_ACH_PARTIAL.
5097
7e3dd49e
AC
50982003-07-27 Andrew Cagney <cagney@redhat.com>
5099
5100 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5101 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5102 operator at start and not end of line.
5103 (decode_prologue): Ditto.
5104 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5105 frame_unwind_register_unsigned instead of
5106 frame_unwind_unsigned_register.
5107 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5108 read_register.
5109 (m32r_push_dummy_call): Use register_size instead of
5110 REGISTER_RAW_SIZE.
5111 (m32r_frame_sniffer): Replace m32r_frame_p.
5112 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5113 * m32r-rom.c (report_transfer_performance): Delete extern
5114 declaration.
5115 (m32r_load, m32r_upload_command): Use print_transfer_performance
5116 instead of report_transfer_performance.
5117 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5118 / add_show_from_set.
5119
0880807f
AC
51202003-07-26 Andrew Cagney <cagney@redhat.com>
5121
5122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5123 store_return_value and extract_struct_value_address.
5124
64ae9269
DJ
51252003-07-26 Daniel Jacobowitz <drow@mvista.com>
5126
5127 PR c++/1267
5128 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5129 NULL, default to the section containing PC.
5130
e286caf2
SC
51312003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5132
5133 * NEWS: Mention "regs" deprecated for m68hc11 too.
5134
5135 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5136 (m68hc11_print_register): New function to print out one register.
5137 (m68hc11_print_registers_info): New function to print registers.
5138 (show_regs): Deprecate and use the above.
5139 (m68hc11_gdbarch_init): Install the print_registers_info.
5140
705b278b
JJ
51412003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5142
5143 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5144 that we have a SIGTRAP before returning non-zero.
5145
63cd4198
EZ
51462003-07-23 Michal Ludvig <mludvig@suse.cz>
5147 Elena Zannoni <ezannoni@redhat.com>
5148
a8f4cde1 5149 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5150 find_function_start_sal() returns empty record.
5151
6926787d
AS
51522003-07-23 Andreas Schwab <schwab@suse.de>
5153
5154 * ia64-tdep.c (ia64_print_insn): New function.
5155 (ia64_gdbarch_init): Set print_insn to it.
5156 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5157 deprecated_tm_print_insn_info.
5158
708cc1b6
MS
51592003-07-22 Michael Snyder <msnyder@redhat.com>
5160
5161 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5162 handle 8-bit returns (long long).
5163 (h8300h_extract_return_value): Ditto.
5164 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5165
aebd7893
AC
51662003-07-22 Andrew Cagney <cagney@redhat.com>
5167
5168 * gdbarch.c Include "gdb_obstack.h".
5169 (struct gdbarch): Add an "obstack".
5170 (alloc_gdbarch_data): Allocate the gdbarch data using
5171 GDBARCH_OBSTACK_CALLOC.
5172 (free_gdbarch_data): Delete function.
5173 (gdbarch_obstack_zalloc): New function.
5174 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5175 Assert that the architecture is not initialized.
5176 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5177 vector from the obstack.
5178 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5179 architecture obstack.
5180 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5181 (set_gdbarch_data): Assert that the data is not initialized.
5182 (struct gdbarch_data): Delete member "free".
5183 (register_gdbarch_data): Do not initialize "free".
5184 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5185
153721e6
AC
51862003-07-22 Andrew Cagney <cagney@redhat.com>
5187
5188 * configure.in (build_warnings): Add -Wformat-nonliteral.
5189 * configure: Re-generate.
5190
c193f044 51912003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5192
5193 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5194
c3228f12
EZ
51952003-07-22 Elena Zannoni <ezannoni@redhat.com>
5196
5197 * findvar.c (read_var_value): Remove case for thread local storage
5198 variables. It is now entirely handled by the dwarf2 location
5199 expression code.
5200 * printcmd.c (address_info): Ditto.
5201 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5202 enumeration value.
5203 (struct symbol): Remove objfile field, which was used by
5204 LOC_THREAD_LOCAL_STATIC only.
5205 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5206 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5207 usage of objfile pointer.
5208 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5209 thread local variables.
5210 Add include of objfiles.h.
5211 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5212 storage variables.
5213 * Makefile.in (dwarf2loc.o): Update dependencies.
5214
aef9bcd2
AC
52152003-07-22 Andrew Cagney <cagney@redhat.com>
5216
5217 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5218 get_frame_base.
5219 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5220 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5221 (struct value): Add opaque declaration.
5222 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5223
d95a8903
AC
52242003-07-21 Andrew Cagney <cagney@redhat.com>
5225
5226 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5227 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5228
4db73d49
SC
52292003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5230
a8f4cde1 5231 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5232 regcache_cooked_read_unsigned instead of read_register.
5233 (m68hc11_saved_pc_after_call): Likewise.
5234 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5235 instead of write_register.
5236 (m68hc11_register_type): New function.
5237 (m68hc11_register_virtual_type): Remove.
5238 (m68hc11_store_return_value): Convert to use the regcache.
5239 (m68hc11_extract_struct_value_address): Likewise.
5240 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5241 m68hc11_register_type; undeprecate store_return_value and
5242 extract_struct_value_address.
5243
ef2b8fcd
SC
52442003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5245
5246 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5247 and translate to use regcache.
5248 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5249
625b0b97
AC
52502003-07-18 Andrew Cagney <cagney@redhat.com>
5251
5252 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5253 * gdbarch.h, gdbarch.c: Re-generate.
5254 * i386-tdep.c (i386_gdbarch_init): Do not set
5255 DWARF2_BUILD_FRAME_INFO.
5256 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5257 unconditionally.
5258 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5259 DWARF2_BUILD_FRAME_INFO.
5260
22b0d388
AC
52612003-07-18 Andrew Cagney <cagney@redhat.com>
5262
5263 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5264 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5265
1ce5d6dd
AC
52662003-07-18 Andrew Cagney <cagney@redhat.com>
5267
5268 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5269 frame_unwind_address_in_block, instead of frame_pc_unwind.
5270 (dwarf2_frame_cache): Ditto.
5271
e6e5e94c
AC
52722003-07-18 Andrew Cagney <cagney@redhat.com>
5273
5274 * user-regs.h (struct gdbarch): Declare opaque.
5275 * ui-out.h (struct ui_file): Declare opaque.
5276 * dwarf2-frame.h (struct frame_info): Declare opaque.
5277
5483d879
KW
52782003-07-18 Kris Warkentin <kewarken@qnx.com>
5279
5280 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5281 #include "...".
5282 (procfs_meminfo): Change strerror to safe_strerror.
5283 (procfs_can_run): Remove K&R badness.
5284
278a7cf7
MS
52852003-07-17 Michael Snyder <msnyder@redhat.com>
5286
5287 * remote-sim.c: Comment typo fix.
5288
606e3b82
AC
52892003-07-17 Andrew Cagney <cagney@redhat.com>
5290
5291 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5292 configure.
5293 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5294 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5295 GDB_MULTI_ARCH_PARTIAL.
5296
c43af07c
EZ
52972003-07-17 Elena Zannoni <ezannoni@redhat.com>
5298
5299 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5300 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5301 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5302
3b85b0f1
TR
53032003-07-16 Theodore A. Roth <troth@openavr.org>
5304
5305 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5306 found.
5307 (avr_frame_unwind_cache): Don't unwind FP for main.
5308 Update a comment.
5309 Save the computed prev_sp.
5310 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5311 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5312 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5313
336d1bba
AC
53142003-07-16 Andrew Cagney <cagney@redhat.com>
5315
5316 * frame-base.h (frame_base_p_ftype): Delete definition.
5317 (frame_base_append_predicate): Delete declaration.
5318 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5319 (frame_unwind_append_predicate): Delete declaration.
5320 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5321 (append_predicate): Delete parameter "p".
5322 (frame_unwind_append_predicate): Delete function.
5323 (frame_unwind_append_sniffer): Update call to append_predicate.
5324 (frame_unwind_free): Delete function.
5325 (_initialize_frame_unwind): Pass NULL as "free" to
5326 register_gdbarch_data.
5327 (frame_unwind_init): Append the dummy_frame_sniffer.
5328 (frame_unwind_find_by_frame): Simplify.
5329 * frame-base.c (struct frame_base_table): Delete field "p".
5330 (append_predicate): Delete parameter "p".
5331 (frame_base_append_predicate): Delete function.
5332 (frame_base_append_sniffer): Update call to append_predicate.
5333 (frame_base_free): Delete function.
5334 (frame_base_find_by_frame): Simplify.
5335 (_initialize_frame_base): Pass NULL as "free" to
5336 register_gdbarch_data.
5337 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5338 (x86_64_sigtramp_frame_sniffer): Replace
5339 "x86_64_sigtramp_frame_p".
5340 (x86_64_init_abi): Set the frame unwind sniffers.
5341 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5342 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5343 (m68k_gdbarch_init): Set the frame unwind sniffers.
5344 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5345 "i386_sigtramp_frame_p".
5346 (i386_frame_sniffer): Replace "i386_frame_p".
5347 (i386_gdbarch_init): Set the frame unwind sniffers.
5348 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5349 (avr_gdbarch_init): Set the frame unwind sniffers.
5350 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5351 "alpha_sigtramp_frame_p"
5352 (alpha_heuristic_frame_sniffer): Replace
5353 "alpha_heuristic_frame_p".
5354 (alpha_gdbarch_init): Set the frame unwind sniffers.
5355 (alpha_dwarf2_init_abi): Ditto.
5356 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5357 "alpha_debug_frame_p".
5358 (alpha_mdebug_frame_base_sniffer): Replace
5359 "alpha_mdebug_frame_base_p".
5360 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5361 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5362 (d10v_gdbarch_init): Set the frame unwind sniffer.
5363 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5364 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5365 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5366 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5367 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5368 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5369
48db5a3c
CV
53702003-07-16 Michael Snyder <msnyder@redhat.com>
5371
5372 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5373 should go thru sh_dsp_register_sim_regno, else the dsp regs
5374 will not get the right values.
5375
53762003-07-16 Corinna Vinschen <vinschen@redhat.com>
5377
5378 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5379 deprecated_store_floating by call to store_typed_floating.
5380 (sh_sh4_register_convert_to_raw): Substitute call to
5381 deprecated_extract_floating by call to extract_typed_floating.
5382
53832003-07-16 Corinna Vinschen <vinschen@redhat.com>
5384
5385 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5386
53872003-07-16 Corinna Vinschen <vinschen@redhat.com>
5388
5389 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5390 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5391 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5392 as possible.
5393 (do_pseudo_register): Remove.
5394 (sh_push_dummy_code): New function.
5395 (sh64_store_struct_return): Rename from sh_store_struct_return.
5396 Only called for sh64 now.
5397 (sh_extract_struct_value_address): Regcache'ify.
5398 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5399 and accomodate new tasks.
5400 (sh64_push_return_address): Rename from sh_push_return_address.
5401 Only called for sh64 now.
5402 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5403 Regcache'ify.
5404 (sh3e_sh4_extract_return_value): Regcache'ify.
5405 (sh_default_store_return_value): Ditto.
5406 (sh3e_sh4_store_return_value): Ditto.
5407 (sh_default_register_byte): Remove.
5408 (sh_sh4_register_byte): Remove.
5409 (sh_default_register_raw_size): Remove.
5410 (sh_sh4_register_raw_size): Remove.
5411 (sh_register_virtual_size): Remove.
5412 (sh_sh3e_register_virtual_type): Remove.
5413 (sh_sh3e_register_type): New function.
5414 (sh_sh4_register_virtual_type): Remove.
5415 (sh_sh4_register_type): New function.
5416 (sh_default_register_virtual_type): Remove.
5417 (sh_default_register_type): New function.
5418 (do_fv_register_info): Add parameters to accomodate call from
5419 sh_print_registers_info.
5420 (do_dr_register_info): Ditto.
5421 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5422 Add parameters to accomodate call from sh_print_registers_info.
5423 (sh_do_fp_register): Ditto.
5424 (sh64_do_pseudo_register): Call do_dr_register_info,
5425 do_fv_register_info and sh_do_fp_register with default parameters.
5426 (sh_do_register): Add parameters to accomodate call from
5427 sh_print_registers_info.
5428 (sh_print_register): Ditto.
5429 (sh_print_registers_info): Rename from sh_do_registers_info.
5430 Add parameters to be used as gdbarch_print_registers_info
5431 implementation. Accomodate removed do_pseudo_register function
5432 pointer.
5433 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5434 function pointer. Call sh_print_register with default parameters.
5435 (sh64_do_registers_info): Call sh_print_registers_info instead of
5436 sh_do_registers_info.
5437 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5438 detection of deprecated vs. non-deprecated functionality.
5439 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5440 function pointer assignments by direct function calls.
5441
e8a89fe2
AC
54422003-07-15 Andrew Cagney <cagney@redhat.com>
5443
5444 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5445 (frame_register_unwind, create_new_frame): Ditto.
5446 (legacy_get_prev_frame, get_frame_type): Ditto.
5447 (get_frame_base_address): Use frame_base_find_by_frame.
5448 (get_frame_locals_address): Use frame_base_find_by_frame.
5449 (get_frame_args_address): Use frame_base_find_by_frame.
5450 * frame-base.h (frame_base_sniffer_ftype): Declare.
5451 (frame_base_append_sniffer): Declare.
5452 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5453 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5454 (frame_base_append_sniffer): New function.
5455 (frame_base_append_predicate): Add a NULL sniffer.
5456 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5457 (struct frame_base_table): Add "sniffer".
5458 (frame_base_free): Free the "sniffer" table.
5459 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5460 (frame_unwind_append_sniffer): Declare.
5461 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5462 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5463 (struct frame_unwind_table): Add "sniffer", delete "middle".
5464 (append_predicate): Add "sniffer" parameter, append the sniffer.
5465 (frame_unwind_init): Update append_predicate call.
5466 (frame_unwind_append_sniffer): New function.
5467 (frame_unwind_append_predicate): Update append_predicate call.
5468 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5469
0714963c
AC
54702003-07-15 Andrew Cagney <cagney@redhat.com>
5471
5472 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5473 before code inhibiting repeated unwind attempts. Add to
5474 commentary on that test's problems.
5475 * blockframe.c (inside_main_func): Look for "main" in the minimal
5476 symbol table.
5477 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5478 identical.
5479
d9170e22
AC
54802003-07-15 Andrew Cagney <cagney@redhat.com>
5481
5482 * complaints.c (struct explanation): Define.
5483 (struct complaints): Change type of "explanation" to "struct
5484 explanation".
5485 (symfile_explanations): Convert to a "struct explanation" table.
5486 (vcomplaint): Update.
5487
eba29c8c
ML
54882003-07-15 Michal Ludvig <mludvig@suse.cz>
5489
5490 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5491 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5492 x86_64_linux_(fill,supply)_gregset functions.
5493 * x86-64-linux-tdep.c (USER_*): New defines.
5494 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5495 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5496 New functions.
5497 (fetch_core_registers): Ditto.
5498 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5499 * x86-64-linux-tdep.h: New file.
5500 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5501 and core-regset.o.
5502 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5503
68cc0bfb
MK
55042003-07-13 Mark Kettenis <kettenis@gnu.org>
5505
88a115f7
MK
5506 * x86-64-tdep.c (x86_64_store_return_value): Use
5507 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5508
68cc0bfb
MK
5509 * configure.host: Add x86_64-*-freebsd*.
5510 * configure.tgt: Add x86_64-*-freebsd*.
5511 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5512 * amd64fbsd-nat.c: New file.
5513 * amd64fbsd-tdep.c: New file.
5514 * config/i386/nm-fbsd64.h: New file.
5515 * config/i386/fbsd64.mh: New file.
5516 * config/i386/fbsd64.mt: New file.
5517
138e7be5
MK
55182003-07-11 Mark Kettenis <kettenis@gnu.org>
5519
5520 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5521 `sc_regs_offset' and `sc_fpregs_offset'.
5522 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5523 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5524 (alpha_sigtramp_register_address): Rewrite to use new members of
5525 `struct gdbarch_tdep'.
5526 (alpha_gdbarch_init): Initialize new members of struct
5527 gdbarch_tdep'.
5528 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5529 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5530 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5531 (alphafbsd_pc_in_sigtramp): Implement.
5532 (alphafbsd_sigtramp_offset): New function.
5533 (alphafbsd_sigcontext_addr): New function.
5534 (alphafbsd_init_abi): Initialize signal trampoline related members
5535 of `struct gdbarch_tdep'.
5536 (_initialize_alphafbsd_tdep): Add prototype.
5537
95303a68
TR
55382003-07-11 Theodore A. Roth <troth@openavr.org>
5539
ba292e4c
TR
5540 * Makefile.in (install-only): Quote sed expression when generating
5541 transformed_name.
95303a68 5542
6896c0c7
RH
55432003-07-11 Richard Henderson <rth@redhat.com>
5544
5545 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5546 * dwarf2-frame.c: Include complaints.h.
5547 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5548 variable initialization; return NULL on error.
5549 (decode_frame_entry): New.
5550
8edd5d01
AC
55512003-07-11 Andrew Cagney <cagney@redhat.com>
5552
c4a09524
AC
5553 * frame.h (frame_address_in_block): Delete declaration.
5554 * blockframe.c (frame_address_in_block): Delete function.
5555 (get_frame_block): Use get_frame_address_in_block.
5556 (block_innermost_frame): Ditto.
5557 * stack.c (print_frame, backtrace_command_1): Ditto.
5558
8edd5d01
AC
5559 * frame.h (get_frame_address_in_block): Declare.
5560 (frame_unwind_address_in_block): Declare.
5561 * frame.c (frame_unwind_address_in_block): New function.
5562 (get_frame_address_in_block): New function.
5563
f7968451
AC
55642003-07-10 Andrew Cagney <cagney@redhat.com>
5565
5566 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5567 pre-default. Note: re-generate has no effect.
a8f4cde1 5568
ae99b398
AC
55692003-07-10 Andrew Cagney <cagney@redhat.com>
5570
5571 * gdbarch.sh: When a variable, but not a function, compare against
5572 0. Fix problem in previous patch.
5573 * gdbarch.c: Re-generate.
a8f4cde1 5574
956ac328
AC
55752003-07-10 Andrew Cagney <cagney@redhat.com>
5576
5577 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5578 functions against NULL, not 0.
5579 * gdbarch.c: Re-generate.
a8f4cde1 5580
287c3240
FF
55812003-07-10 Fred Fish <fnf@ninemoons.com>
5582
5583 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5584 null string instead of a null pointer.
5585 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5586
32f63c4b
MS
55872003-07-09 Michael Snyder <msnyder@redhat.com>
5588
5589 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5590
402ecd56
MK
55912003-07-09 Mark Kettenis <kettenis@gnu.org>
5592
5593 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5594 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5595 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5596 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5597 * x86-64-tdep.c: ... from here.
5598
c481dac7
AS
55992003-07-09 Andreas Schwab <schwab@suse.de>
5600
5601 * m68k-tdep.h (enum struct_return): Define.
5602 (struct gdbarch_tdep): Add struct_return.
5603 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5604 bytes are padded to the right, not to the left. Pass struct value
5605 address in register %a1, not on stack.
5606 (m68k_use_struct_convention): New function.
5607 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5608 struct_return in tdep to pcc_struct_return.
5609 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5610 reg_struct_return.
5611
a8f4cde1 56122003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5613
a8f4cde1 5614 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5615
96a4ee76
AC
56162003-07-09 Andrew Cagney <cagney@redhat.com>
5617
5618 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5619 Add comments about the checks.
5620
1517c6d1
AC
56212003-07-08 Andrew Cagney <cagney@redhat.com>
5622
5623 * Makefile.in: Make dependency section headers consistent.
5624 (config_h): Move to $BUILD headers section.
5625 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5626 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5627 (ada-exp.tab.c): Move to YACC/LEX section.
5628 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5629 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5630
dc5dd1eb
KW
56312003-07-08 Kris Warkentin <kewarken@qnx.com>
5632
5633 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5634 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5635 of strerror with safe_strerror, use ISO C function definitions,
5636 and replace instances of sprintf with snprintf.
dc5dd1eb 5637
612dde91
AC
56382003-07-07 Andrew Cagney <cagney@redhat.com>
5639
5640 * frame.c (get_prev_frame): Enable check for identical frames.
5641 Update comments. Update error messages.
5642
492c11d3
JB
56432003-07-07 Joel Brobecker <brobecker@gnat.com>
5644
5645 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5646
376a5a49
JB
56472003-07-07 Joel Brobecker <brobecker@gnat.com>
5648
5649 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5650 sort_symtab_syms, no longer necessary.
5651
22b4a9ad
JB
56522003-07-07 Joel Brobecker <brobecker@gnat.com>
5653
5654 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5655
5bbcb741
JB
56562003-07-07 Joel Brobecker <brobecker@gnat.com>
5657
5658 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5659 (mips_register_byte): Likewise.
5660
c139e7d9
DJ
56612003-07-07 Daniel Jacobowitz <drow@mvista.com>
5662
5663 * Makefile.in (sparc_tdep_h): New.
5664 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5665 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5666 * sparc-linux-nat.c: Include "sparc-tdep.h".
5667 * sparc-nat.c: Likewise.
5668 * sparc-tdep.c: Likewise.
5669 * sparc64nbsd-nat.c: Likewise.
5670 * sparcnbsd-nat.c: Likewise.
5671 * sparcnbsd-tdep.c: Likewise.
5672 * sparc-tdep.h: New file.
5673 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5674 and sparc_npc_regnum.
5675
fd8f87c5
DJ
56762003-07-07 Daniel Jacobowitz <drow@mvista.com>
5677
5678 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5679 (mips_linux_cannot_store_register): List supported instead of
5680 unsupported registers.
5681
13adf674
DJ
56822003-07-07 Daniel Jacobowitz <drow@mvista.com>
5683
5684 * disasm.c (dump_insns): Separate instructions from addresses.
5685
8de307e0
AS
56862003-07-07 Andreas Schwab <schwab@suse.de>
5687
5688 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5689 dependencies.
5690 * m68k-tdep.c (NUM_FREGS): Delete.
5691 (SIG_PC_FP_OFFSET): Delete.
5692 (TARGET_M68K): Delete.
5693 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5694 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5695 P_MOVEL_SP, P_MOVEML_SP): Define.
5696 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5697 P_TRAP): Delete.
5698 (m68k_register_raw_size): Delete.
5699 (m68k_register_virtual_size): Delete.
5700 (m68k_register_type): Renamed from m68k_register_virtual_type and
5701 add gdbarch argument.
5702 (m68k_store_struct_return): Delete.
5703 (m68k_deprecated_extract_return_value): Delete.
5704 (m68k_deprecated_extract_struct_value_address): Delete.
5705 (m68k_frame_chain): Delete.
5706 (m68k_frame_saved_pc): Delete.
5707 (m68k_fix_call_dummy): Delete.
5708 (m68k_push_dummy_frame): Delete.
5709 (m68k_pop_frame): Delete.
5710 (m68k_extract_return_value): New function.
5711 (m68k_store_return_value): Rewrite using regcache.
5712 (m68k_extract_struct_value_address): Rewrite using regcache.
5713 (m68k_push_dummy_call): New function.
5714 (struct m68k_frame_cache): Define.
5715 (m68k_alloc_frame_cache): New function.
5716 (m68k_analyze_frame_setup): New function.
5717 (m68k_analyze_register_saves): New function.
5718 (m68k_analyze_prologue): New function.
5719 (m68k_skip_prologue): Rewrite using above functions.
5720 (m68k_unwind_pc): New function.
5721 (m68k_frame_cache): New function.
5722 (m68k_frame_this_id): New function.
5723 (m68k_frame_prev_register): New function.
5724 (m68k_frame_unwind): New variable.
5725 (m68k_frame_p): New function.
5726 (m68k_sigtramp_frame_cache): New function.
5727 (m68k_sigtramp_frame_this_id): New function.
5728 (m68k_sigtramp_frame_prev_register): New function.
5729 (m68k_sigtramp_frame_unwind): New variable.
5730 (m68k_sigtramp_frame_p): New function.
5731 (m68k_frame_base_address): New function.
5732 (m68k_frame_base): New function.
5733 (m68k_unwind_dummy_id): New function.
5734 (fill_gregset): Use regcache_collect.
5735 (fill_fpregset): Likewise.
5736 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5737 defined.
5738 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5739 deprecated_init_frame_pc, deprecated_store_struct_return,
5740 deprecated_extract_return_value, deprecated_store_return_value,
5741 deprecated_frame_chain, deprecated_frame_saved_pc,
5742 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5743 deprecated_register_virtual_size,
5744 deprecated_max_register_raw_size,
5745 deprecated_max_register_virtual_size,
5746 deprecated_register_virtual_type, deprecated_register_size,
5747 deprecated_register_byte, deprecated_register_bytes,
5748 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5749 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5750 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5751 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5752 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5753 deprecated_push_dummy_frame, deprecated_pop_frame,
5754 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5755 only if SYSCALL_TRAP is defined. Set extract_return_value,
5756 store_return_value, extract_struct_value_address, register_type,
5757 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5758 predicates.
5759 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5760 M68K_MAX_REGISTER_SIZE): Define.
5761 (struct m68k_sigtramp_info): Define.
5762 (struct gdbarch_tdep): Add get_sigtramp_info.
5763 * m68klinux-nat.c (fetch_register): Use register_size instead of
5764 REGISTER_RAW_SIZE. Don't put assignment in if.
5765 (store_register): Likewise.
5766 (fetch_inferior_registers): Likewise.
5767 (store_inferior_registers): Likewise.
5768 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5769 (m68k_linux_frame_saved_pc): Delete.
5770 (m68k_linux_sigcontext_reg_offset,
5771 m68k_linux_ucontext_reg_offset): Define.
5772 (m68k_linux_get_sigtramp_info): New function.
5773 (m68k_linux_extract_return_value): Rewrite using regcache.
5774 (m68k_linux_store_return_value): Likewise.
5775 (m68k_linux_extract_struct_value_address): Likewise.
5776 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5777 Don't set deprecated_frame_saved_pc,
5778 deprecated_extract_return_value, deprecated_store_return_value,
5779 deprecated_extract_struct_value_address. Set
5780 extract_return_value, store_return_value,
5781 extract_struct_value_address.
5782
eb8bc282
AC
57832003-07-07 Andrew Cagney <cagney@redhat.com>
5784
5785 * expprint.c: Include "user-regs.h" instead of "frame.h".
5786 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5787 frame_map_regnum_to_name.
5788 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5789 (frame_map_name_to_regnum): Simplify, call
5790 user_reg_map_name_to_regnum.
5791 (frame_map_regnum_to_name): Simplify, call
5792 user_reg_map_regnum_to_name.
5793 (frame_register_unwind): Update.
5794 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5795 (_initialize_frame_reg): Call user_reg_add_builtin.
5796 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5797 (value_of_register): Use value_of_user_reg.
5798 * eval.c (evaluate_subexp_standard): Update.
5799 * parse.c (write_dollar_variable): Update.
5800 * d10v-tdep.c (d10v_print_registers_info): Update.
5801 * infcmd.c (registers_info): Update.
5802 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5803 (builtin_regs_h): Delete macro.
5804 (user_regs_h): Define.
5805 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5806 (builtin-regs.o): Delete target.
5807 (user-regs.o): Specify dependencies.
5808 (expprint.o): Update dependencies.
5809 (findvar.o): Update dependencies.
5810 (frame.o): Update dependencies.
5811 (std-regs.o): Update dependencies.
5812
9f476a01
CF
58132003-07-06 Christopher Faylor <cgf@redhat.com>
5814
5815 * win32-nat.c (solib_symbols_add): Use one variable for all section
5816 address stuff. Pass variable rather than address of variable to
5817 safe_symbol_file_add.
5818
a731b831
AS
58192003-07-06 Andreas Schwab <schwab@suse.de>
5820
5821 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5822
9f83329d
JB
58232003-07-04 Joel Brobecker <brobecker@gnat.com>
5824
5825 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5826
27e28cc5
KW
58272003-07-04 Kris Warkentin <kewarken@qnx.com>
5828
5829 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5830
58312003-07-04 Kris Warkentin <kewarken@qnx.com>
5832
5833 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5834 * config/i386/nto.mh: New file.
5835 * config/i386/nm-nto.h: New file.
5836 * configure.host: Add i[3456]86-*-nto*.
5837
100f2e98
JB
58382003-07-03 Joel Brobecker <brobecker@gnat.com>
5839
5840 * remote-vx.c (vx_add_symbols): Fix compilation error.
5841
e23457df
AC
58422003-07-03 Andrew Cagney <cagney@redhat.com>
5843
5844 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5845 * gdbarch.h, gdbarch.c: Re-generate.
5846 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5847 (legacy_register_name): Declare.
5848 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5849 (REGISTER_NAME): Define.
5850 * sparc-tdep.c (legacy_register_name): New function.
5851 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5852 (REGISTER_NAME): Define.
5853 (hppa64_register_name): Declare.
5854 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5855 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5856 (hppa64_register_name): New function.
5857 (hppa_register_name): New function.
5858 * arch-utils.c (legacy_register_name): Delete.
5859 * arch-utils.h (legacy_register_name): Delete.
5860
38caaeec
DJ
58612003-07-03 Daniel Jacobowitz <drow@mvista.com>
5862
5863 * cli/cli-interp.c (cli_interpreter_resume): Update the
5864 cli_uiout's stream to gdb_stdout.
5865
dadd712e
AC
58662003-07-03 Andrew Cagney <cagney@redhat.com>
5867
5868 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5869 predicate.
5870 * gdbarch.h, gdbarch.c: Re-generate.
5871 * regcache.c (init_regcache_descr): Use legacy code when either
5872 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5873
c7f1390e
DJ
58742003-07-02 Daniel Jacobowitz <drow@mvista.com>
5875
5876 * NEWS: Move "set logging" entry into GDB 6.0 section.
5877
4bc8c588
JB
58782003-07-02 Jim Blandy <jimb@redhat.com>
5879
a9dd42f1
JB
5880 * s390-tdep.c (struct frame_extra_info): new member:
5881 'stack_bought_valid'.
5882 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5883 initialize fextra_info->stack_bought.
5884 (s390_frameless_function_invocation): Don't trust the value of
5885 fextra_info_ptr->stack_bought unless
5886 fextra_info->stack_bought_valid is set.
5887
4bc8c588
JB
5888 New S390 prologue analyzer.
5889 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5890 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5891 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5892 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5893 compute_x_addr, s390_on_stack, s390_store,
5894 s390_get_signal_frame_info): New functions.
5895 (S390_NUM_SPILL_SLOTS): New macro.
5896 (s390_get_frame_info): Rewritten.
5897 (is_arg_reg): Deleted.
5898
5899 Break out the decoding of S/390 instructions into separate
5900 functions, to make it more legible, and easier to check
5901 against the spec.
5902 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5903 is_rx, is_rxe): New functions.
5904 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5905 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5906 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5907 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5908 enums for opcode values. (Is this an improvement?)
5909
fd13a04a
AC
59102003-07-02 Andrew Cagney <cagney@redhat.com>
5911
5912 * i386-tdep.c: Revert change committed as part of trad-frame code
5913 below.
5914
3f8091c1
DJ
59152003-07-02 Daniel Jacobowitz <drow@mvista.com>
5916
5917 * breakpoint.c (insert_catchpoint): Make static.
5918
8dd5115e
AS
59192003-07-02 Andreas Schwab <schwab@suse.de>
5920
5921 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5922 former ia64_push_arguments and ia64_push_return_address, and use
5923 regcache functions instead of read/write_register.
5924 (ia64_gdbarch_init): Set push_dummy_call instead of
5925 deprecated_push_arguments and deprecated_push_return_address.
5926
a2229c23
AJ
59272003-07-01 Andreas Jaeger <aj@suse.de>
5928
5929 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5930 before the call.
5931 Set %rax only to number of SSE registers used.
5932
3b3850e8
AC
59332003-07-01 Andrew Cagney <cagney@redhat.com>
5934
5935 * trad-frame.h: Update comments, a -1 .addr is reserved.
5936 (trad_frame_value_p, trad_frame_addr_p): Declare.
5937 (trad_frame_reg_p): Declare.
5938 (trad_frame_set_value): Rename trad_frame_register_value.
5939 (trad_frame_set_unknown): Declare.
5940 * trad-frame.c (trad_frame_realreg_p): New function.
5941 (trad_frame_addr_p, trad_frame_value_p): New function.
5942 (trad_frame_set_unknown): New function.
5943 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5944 (trad_frame_prev_register): Use trad_frame_realreg_p,
5945 trad_frame_addr_p and trad_frame_value_p.
5946 (trad_frame_set_value): Rename trad_frame_register_value.
5947 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5948 and trad_frame_set_value.
a2229c23 5949
4d819d0e
JB
59502003-06-30 Jim Blandy <jimb@redhat.com>
5951
5952 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5953 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5954 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5955 for 16 registers, and then 32 more bytes.
5956 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5957 New macros.
5958 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5959 Move up in the file, since it's now used by is_simple_arg.
5960 (is_simple_arg): Don't assume registers are four bytes long.
5961 Exclude all double arguments. Extended floats are not simple
5962 args.
5963 (is_power_of_two): New function.
5964 (pass_by_copy_ref): Call is_power_of_two, and check that the
5965 length fits in a register, rather than listing all the acceptable
5966 sizes. Extended floats are not passed by reference.
5967 (s390_push_arguments): Don't assume registers are four bytes long.
5968 Reserve an argument register to point to the buffer for structures
5969 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5970 S390_STACK_FRAME_OVERHEAD.
5971
1ad828f1
AS
59722003-06-30 Andreas Schwab <schwab@suse.de>
5973
5974 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5975 format error message.
5976
39b00981
JB
59772003-06-30 Joel Brobecker <brobecker@gnat.com>
5978
5979 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5980
b2a7f303
DC
59812003-06-30 David Carlton <carlton@kealia.com>
5982
5983 Band-aid for PR c++/1245.
5984 * Makefile.in (cp-support.o): Depend on complaints_h.
5985 * cp-support.c: Include complaints.h. Add declaration for
5986 find_last_component.
5987 (cp_find_first_component): Separate code into
5988 cp_find_first_component_aux.
5989 (cp_find_first_component_aux): Call demangled_name_complaint.
5990 (demangled_name_complaint): New.
5991
a257b5bb
AC
59922003-06-30 Andrew Cagney <cagney@redhat.com>
5993
5994 * remote.c (remote_write_bytes): Explicitly compute and then use
5995 the payload size. Update comments to reflect. Fixes problem of
5996 GDB not sending small packets as found by Fred Fish.
5997
0a2cfde4
AC
59982003-06-30 Andrew Cagney <cagney@redhat.com>
5999
6000 * remote.c (remote_async_wait): Fix -Wformat problem.
6001
3fcb8548
AC
60022003-06-29 Andrew Cagney <cagney@redhat.com>
6003
6004 * remote.c (remote_wait): Call error, and not warning, when the
6005 packet is corrupt.
6006 (remote_async_wait): Ditto.
6007
9f9970a3
DJ
60082003-06-29 Daniel Jacobowitz <drow@mvista.com>
6009
6010 * sparc-tdep.c (sparc_y_regnum): Make external again.
6011
83a8ccca
DJ
60122003-06-29 Daniel Jacobowitz <drow@mvista.com>
6013
6014 * cli/cli-logging.c (pop_output_files): Add void to function
6015 definition.
6016
d2cf594a
AC
60172003-06-29 Andrew Cagney <cagney@redhat.com>
6018
6019 * frame.c (frame_register_unwind): Use unsigned char when dumping
6020 the buffer contents.
6021
0fac0b41
DJ
60222003-06-28 Daniel Jacobowitz <drow@mvista.com>
6023
6024 * cli/cli-logging.c: New file.
6025 * cli-out.c (struct ui_out_data): Add original_stream.
6026 (cli_redirect): New function.
6027 (cli_ui_out_impl): Add cli_redirect.
6028 (cli_out_new): Initialize original_stream.
6029 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6030 (uo_redirect, ui_out_redirect): New.
6031 * ui-out.h (struct ui_out_impl): Add redirect member.
6032 (redirect_ftype): New.
6033 (ui_out_redirect): Add prototype.
6034 * Makefile.in: Add rules for cli-logging.c.
6035 * NEWS: Mention "set logging".
6036
88a07d7c
EZ
60372003-06-27 Elena Zannoni <ezannoni@redhat.com>
6038
6039 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6040
4eb58876
AC
60412003-06-27 Andrew Cagney <cagney@redhat.com>
6042
6043 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6044 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6045 * avr-tdep.c (avr_call_dummy_address): Delete function.
6046 (avr_gdbarch_init): Do not set call_dummy_address.
6047
1549f619
EZ
60482003-06-27 Elena Zannoni <ezannoni@redhat.com>
6049
6050 * symfile.c (syms_from_objfile): Move variables to inner block.
6051 Move the checks for the non-mainline case a bit earlier to avoid
6052 doing some useless computations.
6053
3cb3398d
EZ
60542003-06-27 Elena Zannoni <ezannoni@redhat.com>
6055
6056 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6057
3799ccc6
EZ
60582003-06-26 Elena Zannoni <ezannoni@redhat.com>
6059
6060 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6061 sections.
6062
ce1f6491
MC
60632003-06-26 Michael Chastain <mec@shout.net>
6064
6065 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6066 gdb/testsuite/gdb.c++/pr-1210.exp.
6067
d958dfd0
AC
60682003-06-26 Andrew Cagney <cagney@redhat.com>
6069
6070 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6071 altivec_expression.h and altivec_registers.h.
6072
d31431ed
AC
60732003-06-26 Andrew Cagney <cagney@redhat.com>
6074
6075 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6076 info->mach when MIPS16. Patch suggested by Fred Fish.
6077
714b1282
AC
60782003-06-26 Andrew Cagney <cagney@redhat.com>
6079
6080 * utils.c (internal_vproblem): Print the problem to a reason
6081 buffer and then pass to query. Make the msg variable more local.
6082
42efa47a
AC
60832003-06-26 Andrew Cagney <cagney@redhat.com>
6084
6085 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6086 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6087 * gdbarch.h, gdbarch.c: Re-generate.
6088 * frame-base.c (default_frame_args_address): Update. Use
6089 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6090 not available.
6091 (default_frame_locals_address): Ditto for
6092 DEPRECATED_FRAME_LOCALS_ADDRESS.
6093 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6094 (vax_frame_num_args): Update.
6095 (vax_gdbarch_init): Update.
6096 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6097 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6098 * mcore-tdep.c (mcore_gdbarch_init): Update.
6099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6100 * ia64-tdep.c (ia64_gdbarch_init): Update.
6101 * symtab.h (address_class): Update comments.
6102 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6103 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6104 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6105 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6106 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6107 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6108 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6109 * alpha-mdebug-tdep.c: Update.
6110 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6111
8ffd9b1b
AJ
61122003-06-26 Andreas Jaeger <aj@suse.de>
6113
6114 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6115 of SSE registers so that varargs functions work. Rework handling
6116 of passing arguments on the stack.
6117 (x86_64_store_return_value): Return double and float values in SSE
6118 register.
6119
e8ac10a6
MC
61202003-06-24 Michael Chastain <mec@shout.net>
6121
6122 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6123 the "constructor breakpoints ignored" bug.
6124
986af8e6
DC
61252003-06-25 David Carlton <carlton@kealia.com>
6126
6127 * MAINTAINERS: Update e-mail address.
6128
d64558a5
JB
61292003-06-24 Jim Blandy <jimb@redhat.com>
6130
e538d2d7
JB
6131 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6132
02631ec0
JB
6133 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6134 function.
6135 (ppc_linux_init_abi): Register it as the
6136 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6137
e716d87a
JB
6138 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6139 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6140 method.
6141
d64558a5
JB
6142 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6143 (ppc64_standard_linkage_target): Use it.
6144
449a5da4
AC
61452003-06-23 Andrew Cagney <cagney@redhat.com>
6146
6147 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6148 for 0 "int0" and 4 "int32" sized registers.
6149 * gdbtypes.c (builtin_type_int0): Define.
6150 (build_gdbtypes): Initialize builtin_type_int0.
6151 * gdbtypes.h (builtin_type_int0): Declare.
6152
b2a02dda
SC
61532003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6154
6155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6156 as characters are unsigned.
6157
fba3138e
DJ
61582003-06-22 Daniel Jacobowitz <drow@mvista.com>
6159
6160 PR gdb/1179
6161 * dwarfread.c (struct_type): Skip static fields without crashing.
6162
f6c8180b
AC
61632003-06-22 Andrew Cagney <cagney@redhat.com>
6164
6165 GDB 6.0 branch created.
f2c06f52
AC
6166 * README: Update.
6167 * PROBLEMS: Update. Empty.
6168 * NEWS: Update.
f6c8180b 6169
ae822768
DJ
61702003-06-22 Daniel Jacobowitz <drow@mvista.com>
6171
6172 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6173 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6174
261de166
AC
61752003-06-22 Andrew Cagney <cagney@redhat.com>
6176
6177 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6178 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6179 Velikov.
6180
30e94205
DJ
61812003-06-22 Daniel Jacobowitz <drow@mvista.com>
6182
6183 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6184 compilers.
6185
9e14d721
DJ
61862003-06-21 Daniel Jacobowitz <drow@mvista.com>
6187
6188 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6189 argument of val_print.
6190 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6191 to the address argument of baseclass_offset or target_read_memory.
6192 Do add it to the argument of cp_print_value_fields.
6193
a4b8ebc8
AC
61942003-06-21 Andrew Cagney <cagney@redhat.com>
6195
6196 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6197 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6198 instead of 0..NUM_REGS.
6199 (mips_register_reggroup_p): New function.
6200 (mips_pseudo_register_write): New function.
6201 (mips_pseudo_register_read): New function.
6202 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6203 based on the register's type.
6204 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6205 cooked.
6206 (mips_get_saved_register): Simplify. Assert that REGNO is a
6207 pseudo / cooked.
6208 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6209 (mips_register_type): Replace mips_register_virtual_type. Map
6210 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6211 when available.
6212 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6213 that the register is cooked / virtual.
6214 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6215 Only get the extra info when needed.
6216 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6217 (mips32_heuristic_proc_desc): Fetch the cooked register.
6218 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6219 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6220 (mips_print_register): Use gdbarch_register_type, instead of
6221 REGISTER_VIRTUAL_TYPE.
6222 (print_gp_register_row): Use gdbarch_register_type, instead of
6223 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6224 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6225 Print the pseudo / cooked registers.
6226 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6227 Print the pseudo / cooked registers.
6228 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6229 REG_NUM is pseudo / cooked.
6230 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6231 (mips_n32n64_xfer_return_value): Ditto.
6232 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6233 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6234 (mips_register_sim_regno): New function.
6235 (mips_gdbarch_init): Set deprecated_register_byte,
6236 register_group_p, pseudo_register_write, pseudo_register_read,
6237 register_sim_regno, and num_pseudo_regs. Set register_type,
6238 instead of register_virtual_type.
6239 * Makefile.in (mips-tdep.o): Update dependencies.
6240 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6241 REGISTER_VIRTUAL_TYPE.
6242 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6243 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6244 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6245 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6246 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6247
325ed089
DJ
62482003-06-21 Daniel Jacobowitz <drow@mvista.com>
6249
6250 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6251 * cli/cli-cmds.c: Include "gdb_vfork.h".
6252 (shell_escape): Use vfork.
6253
f0e7d0e8
AC
62542003-06-21 Andrew Cagney <cagney@redhat.com>
6255
c57bb9fa
AC
6256 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6257 32 bit floating-point register saves.
6258
6e51443a
AC
6259 * frame.h (deprecated_unwind_get_saved_register): Delete.
6260 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6261 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6262 and deprecated_get_next_frame_hack instead of
6263 deprecated_unwind_get_saved_register.
6264
ed183c7c
AC
6265 * mips-tdep.c (mips_dump_tdep): Do not print
6266 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6267
f0e7d0e8
AC
6268 * frame.c (get_frame_register): New function.
6269 (frame_unwind_register_signed): New function.
6270 (get_frame_register_signed): New function.
6271 (frame_unwind_register_unsigned): New function.
6272 (get_frame_register_unsigned): New function.
6273 * frame.h: Add comments on naming schema.
6274 (get_frame_register, frame_unwind_register_signed): Declare.
6275 (get_frame_register_signed, get_frame_register_signed): Declare.
6276 (frame_unwind_register_unsigned): Declare.
6277 (get_frame_register_unsigned): Declare.
6278
2224d941
TR
62792003-06-20 Theodore A. Roth <troth@openavr.org>
6280
6281 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6282
8619218d
TR
62832003-06-20 Theodore A. Roth <troth@openavr.org>
6284
6285 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6286 (avr_read_sp): Ditto.
6287
0b1b50c0
DJ
62882003-06-20 Daniel Jacobowitz <drow@mvista.com>
6289
6290 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6291 * config/arm/nm-linux.h: Likewise.
6292 * config/arm/tm-linux.h: Likewise.
6293 * config/ia64/nm-linux.h: Likewise.
6294 * config/ia64/tm-ia64.h: Likewise.
6295 * config/s390/tm-linux.h: Likewise.
6296 * config/s390/tm-s390.h: Likewise.
6297 * s390-nat.c: Likewise.
6298 * s390-tdep.c: Likewise.
6299
6300 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6301 * config/ia64/linux.mt: Likewise.
6302 * config/m68k/linux.mh: Likewise.
6303 * config/mips/linux.mt: Likewise.
6304 * config/powerpc/linux.mh: Likewise.
6305 * config/sh/linux.mt: Likewise.
6306
c8c18e65
KW
63072003-06-19 Kris Warkentin <kewarken@qnx.com>
6308
6309 * solib.c (solib_open): Change tests for whether to search
6310 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6311 comments.
6312
dcccef2e
TR
63132003-06-19 Theodore A. Roth <troth@openavr.org>
6314
6315 * avr-tdep.c (avr_frame_address): Delete function.
6316 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6317 set_gdbarch_frame_args_address.
6318
5861a190
AC
63192003-06-19 Andrew Cagney <cagney@redhat.com>
6320
6321 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6322 (REGISTER_CONVERT_FROM_TYPE): Delete.
6323 (mips_register_convert_to_type): Delete declaration.
6324 (mips_register_convert_from_type): Delete declaration.
6325 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6326 kernel/.
6327
0274a8ce
MS
63282003-06-19 Michael Snyder <msnyder@redhat.com>
6329
6330 * linux-nat.h: New file.
6331 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6332 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6333 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6334 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6335 (linux_make_note_section): Iterate over lwps instead of threads.
6336 (linux_do_thread_registers): Use lwp instead of merged pid.
6337 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6338 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6339 Add dependency on linux_nat_h.
6340
adf5f719
TR
63412003-06-19 Theodore A. Roth <troth@openavr.org>
6342
6343 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6344
6766a268
DJ
63452003-06-19 Daniel Jacobowitz <drow@mvista.com>
6346
6347 * varobj.c (get_type, get_target_type): Use check_typedef.
6348
1171114a
DJ
63492003-06-19 Daniel Jacobowitz <drow@mvista.com>
6350
6351 * breakpoint.c (insert_catchpoint): Call internal_error.
6352
adcf68a2
TR
63532003-06-19 Theodore A. Roth <troth@openavr.org>
6354
6355 * avr-tdep.c (avr_push_dummy_code): Delete function.
6356 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6357
ea67f13b
DJ
63582003-06-19 Daniel Jacobowitz <drow@mvista.com>
6359
6360 * arch-utils.c (default_prepare_to_proceed): Remove.
6361 (generic_prepare_to_proceed): Remove.
6362 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6363 (generic_prepare_to_proceed): Remove prototype.
6364 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6365 * gdbarch.c: Regenerate.
6366 * gdbarch.h: Regenerate.
6367 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6368 * hppah-nat.c (hppa_switched_threads): Remove.
6369 * infrun.c (prepare_to_proceed): New static function, copied from
6370 generic_prepare_to_proceed. Remove select_it argument.
6371 (proceed): Call prepare_to_proceed.
6372 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6373 variables.
6374 (ptrace_wait): Don't set the removed variables.
6375 (hppa_switched_threads): Remove.
6376 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6377 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6378 (lin_lwp_prepare_to_proceed): Remove prototype.
6379 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6380 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6381
4add8633
TR
63822003-06-18 Theodore A. Roth <troth@openavr.org>
6383
6384 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6385 trad-frame.h.
6386 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6387 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6388 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6389 (AVR_PROLOGUE_*): Enumerate prologue types.
6390 (struct frame_extra_info): Remove.
6391 (struct avr_unwind_cache): Define.
6392 (avr_write_sp): Delete function.
6393 (avr_read_fp): Ditto.
6394 (avr_init_extra_frame_info): Ditto.
6395 (avr_pop_frame): Ditto.
6396 (avr_frame_saved_pc): Ditto.
6397 (avr_saved_pc_after_call): Ditto.
6398 (avr_push_return_address): Ditto.
6399 (avr_frame_chain): Ditto.
6400 (avr_store_struct_return): Ditto.
6401 (avr_push_arguments): Ditto.
6402 (avr_scan_prologue): Update comments. Changed to set up the info for
6403 cache unwinding. Now returns end of prologue PC.
6404 (avr_skip_prologue): Better handling of functions lacking a prologue
6405 by using avr_scan_prologue.
6406 (avr_scan_arg_moves): New function.
6407 (avr_saved_regs_unwinder): Ditto.
6408 (avr_frame_unwind_cache): Ditto.
6409 (avr_unwind_pc): Ditto.
6410 (avr_frame_this_id): Ditto.
6411 (avr_frame_prev_register): Ditto.
6412 (avr_frame_p): Ditto.
6413 (avr_frame_base_address ): Ditto.
6414 (avr_unwind_dummy_id): Ditto.
6415 (avr_push_dummy_code): Ditto.
6416 (push_stack_item): Ditto.
6417 (pop_stack_item): Ditto.
6418 (avr_push_dummy_call): Ditto.
6419 (struct stack_item): Define.
6420 (avr_frame_unwind): Declare structure.
6421 (avr_frame_base): Ditto.
6422 (avr_gdbarch_init): Remove calls to
6423 set_gdbarch_deprecated_init_frame_pc,
6424 set_gdbarch_deprecated_target_read_fp,
6425 set_gdbarch_deprecated_dummy_write_sp,
6426 set_gdbarch_deprecated_fp_regnum,
6427 set_gdbarch_deprecated_push_arguments,
6428 set_gdbarch_deprecated_push_return_address,
6429 set_gdbarch_deprecated_pop_frame,
6430 set_gdbarch_deprecated_store_struct_return,
6431 set_gdbarch_deprecated_frame_init_saved_regs,
6432 set_gdbarch_deprecated_init_extra_frame_info,
6433 set_gdbarch_deprecated_frame_chain,
6434 set_gdbarch_deprecated_frame_saved_pc,
6435 set_gdbarch_deprecated_saved_pc_after_call.
6436 Add calls to set_gdbarch_push_dummy_call,
6437 set_gdbarch_push_dummy_code,
6438 frame_unwind_append_predicate,
6439 frame_base_set_default,
6440 set_gdbarch_unwind_dummy_id,
6441 set_gdbarch_unwind_pc.
6442 Wrap a long line.
6443
7be04a68
MS
64442003-06-18 Corinna Vinschen <vinschen@redhat.com>
6445
6446 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6447 registers for H8/300S.
6448 (h8300_print_registers_info): Ditto.
8ffd9b1b 6449 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6450
ae087d01
DJ
64512003-06-18 Daniel Jacobowitz <drow@mvista.com>
6452
6453 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6454 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6455 (lin_lwp_wait): Likewise. Update comments.
6456 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6457 (pull_pid_from_list, linux_record_stopped_pid): New.
6458
07d8f827
SC
64592003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6460
6461 * ada-lang.c (scan_discrim_bound): Name first argument.
6462 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6463 declared by ALL_BLOCK_SYMBOLS.
6464
7cb47b14
SC
64652003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6466
6467 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6468 ("regcache.h"): Include it.
6469 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6470
6ad8ae5c
DJ
64712003-06-17 Daniel Jacobowitz <drow@mvista.com>
6472
6473 * NEWS: Mention gdbserver detach change and "disconnect" command.
6474 * infcmd.c (disconnect_command): New function.
6475 (_initialize_infcmd): Add ``disconnect'' command.
6476 * remote.c (remote_async_detach): Delete.
6477 (remote_detach): Merge remote_async_detach.
6478 (remote_disconnect): New.
6479 (init_remote_ops): Set to_disconnect.
6480 (init_remote_cisco_ops): Likewise.
6481 (init_remote_async_ops): Likewise. Use remote_detach.
6482 * target.c (cleanup_target): Default to_disconnect.
6483 (update_current_target): Inherit to_disconnect.
6484 (target_disconnect, debug_to_disconnect): New functions.
6485 (setup_target_debug): Set to_disconnect.
6486 * target.h (struct target_ops): Add to_disconnect.
6487 (target_disconnect): Add prototype.
6488
687595f9
DJ
64892003-06-17 Daniel Jacobowitz <drow@mvista.com>
6490
6491 * breakpoint.c (insert_catchpoint): New function.
6492 (insert_breakpoints): Use catch_exceptions to call
6493 insert_catchpoint. Disable catchpoints if they fail to insert.
6494
29239a8f
DJ
64952003-06-17 Daniel Jacobowitz <drow@mvista.com>
6496
6497 * symfile.c (reread_symbols): Clear sym_private.
6498
2cdf3c63
AC
64992003-06-17 Andrew Cagney <cagney@redhat.com>
6500
6501 * trad-frame.h (struct frame_info): Add opaque declaration.
6502 * remote-fileio.h (struct cmd_list_element): Add opaque
6503 declaration.
6504 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6505 comments.
6506
cf0e1e0d
DJ
65072003-06-17 Daniel Jacobowitz <drow@mvista.com>
6508
6509 * remote.c (remote_prepare_to_store): Replace call to
6510 deprecated_read_register_bytes with multiple regcache_raw_read
6511 calls.
6512
192cdb19
KW
65132003-06-17 Kris Warkentin <kewarken@qnx.com>
6514
6515 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6516 (nto_find_and_open_solib): Likewise.
6517 (nto_init_solib_absolute_prefix): Likewise.
6518 (_initialize_nto_tdep): Fix indentation.
6519
89929b45
KW
65202003-06-17 Kris Warkentin <kewarken@qnx.com>
6521
6522 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6523
46019f27
KW
65242003-06-17 Kris Warkentin <kewarken@qnx.com>
6525
6526 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6527
1a38736e
JB
65282003-06-17 Jim Blandy <jimb@redhat.com>
6529
6530 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6531
3605c34a
TR
65322003-06-16 Theodore A. Roth <troth@openavr.org>
6533
6534 * avr-tdep.c (avr_extract_return_value): New function.
6535 (avr_gdbarch_init): Set extract_return_value method.
6536
870b3035
AC
65372003-06-16 Andrew Cagney <cagney@redhat.com>
6538
6539 * frame.h (deprecated_get_next_frame_hack): Declare.
6540 * frame.c (legacy_saved_regs_prev_register): Only require
6541 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6542 there are always saved regs.
6543 (deprecated_generic_get_saved_register): Do not require
6544 DEPRECATED_FRAME_INIT_SAVED_REGS.
6545 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6546 use frame ID unwind instead.
6547 (deprecated_get_next_frame_hack): New function.
6548
63d47a7d
CV
65492003-06-16 Corinna Vinschen <vinschen@redhat.com>
6550
6551 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6552 (h8300_push_dummy_call): ...this function. Some minor optimization.
6553 (h8300_push_return_address): Remove.
6554 (h8300_gdbarch_init): Remove calls to
6555 set_gdbarch_deprecated_dummy_write_sp,
6556 set_gdbarch_deprecated_push_arguments and
6557 set_gdbarch_deprecated_push_return_address.
6558 Add call to set_gdbarch_push_dummy_call.
6559
4bb1dc5e
CV
65602003-06-16 Corinna Vinschen <vinschen@redhat.com>
6561
6562 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6563 (E_PSEUDO_EXR_REGNUM): Ditto.
6564 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6565 registers into safe registers.
4bb1dc5e
CV
6566 (h8300_skip_prologue): Check for stm instruction to push registers
6567 used for register variables onto stack.
6568 (gdb_print_insn_h8300): Remove.
6569 (h8300_examine_prologue): Add a comment.
6570 (h8300_register_name): Take pseudo registers into account.
6571 (h8300s_register_name): Ditto.
6572 (h8300sx_register_name): Ditto.
6573 (h8300_print_register): Ditto.
6574 (h8300_print_registers_info): Define "nice" printing order.
6575 (h8300_saved_pc_after_call): Take pseudo registers into account.
6576 (h8300_register_type): Ditto. Return type used for remote connection
6577 when requesting real CCR or EXR register, return actual type when
6578 requesting pseudo CCR or EXR.
6579 (h8300_pseudo_register_read): New function.
6580 (h8300_pseudo_register_write): Ditto.
6581 (h8300_dbg_reg_to_regnum): Ditto.
6582 (h8300s_dbg_reg_to_regnum): Ditto.
6583 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6584 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6585 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6586 set_gdbarch_print_insn architecture dependent.
6587 Call set_gdbarch_pseudo_register_read and
6588 set_gdbarch_pseudo_register_write.
6589 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6590
a59fe496
AC
65912003-06-16 Andrew Cagney <cagney@redhat.com>
6592
6593 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6594 * gdbarch.h, gdbarch.c: Re-generate.
6595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6596 * s390-tdep.c (s390_gdbarch_init): Update.
6597 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6598 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6599 * mips-tdep.c (mips_gdbarch_init): Update.
6600 * mcore-tdep.c (mcore_gdbarch_init): Update.
6601 * cris-tdep.c (cris_gdbarch_init): Update.
6602 * infcall.c (call_function_by_hand): Update.
6603 * ia64-tdep.c (ia64_push_arguments): Update comment.
6604 * frame.c (legacy_get_prev_frame): Do not assume
6605 SAVE_DUMMY_FRAME_TOS_P.
6606 * dummy-frame.c (find_dummy_frame): Update comment.
6607
6f4e5a41
AC
66082003-06-16 Andrew Cagney <cagney@redhat.com>
6609
6610 * regcache.c (do_cooked_read): Do not use register_valid_p.
6611
72fab697
TR
66122003-06-15 Theodore A. Roth <troth@openavr.org>
6613
6614 * avr-tdep.c (avr_register_type): Remove a blank line.
6615 (avr_scan_prologue): Correct some comments.
6616
e3d8b004
TR
66172003-06-15 Theodore A. Roth <troth@openavr.org>
6618
6619 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6620 prologue types.
8ffd9b1b 6621 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6622 option.
6623 Add code to scan -mcall-prologues for mega devices.
6624
866b76ea
TR
66252003-06-15 Theodore A. Roth <troth@openavr.org>
6626
6627 * avr-tdep.c (avr_register_byte): Delete function.
6628 (avr_register_raw_size): Delete function.
6629 (avr_register_virtual_size): Delete function.
6630 (avr_register_virtual_type): Delete function.
6631 (avr_register_type): New function.
6632 (avr_address_to_pointer): Remove unused code.
6633 (avr_read_fp): Need to read FP as two separate bytes due to change to
6634 avr_register_type() usage.
6635 (avr_gdbarch_init): Don't set deprecated_register_size.
6636 Don't set deprecated_register_bytes.
6637 Don't set deprecated_register_byte.
6638 Don't set deprecated_register_raw_size.
6639 Don't set deprecated_max_register_raw_size.
6640 Don't set deprecated_register_virtual_size.
6641 Don't set deprecated_max_register_virtual_size.
6642 Don't set deprecated_register_virtual_type.
6643 Set register_type method.
6644
3993f6b1
DJ
66452003-06-15 Daniel Jacobowitz <drow@mvista.com>
6646
6647 * Makefile.in (linux-nat.o): Add rule.
6648 * linux-nat.c: New file.
6649 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6650 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6651 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6652 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6653 * config/arm/linux.mh (NATDEPFILES): Likewise.
6654 * config/i386/linux.mh (NATDEPFILES): Likewise.
6655 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6656 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6657 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6658 * config/mips/linux.mh (NATDEPFILES): Likewise.
6659 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6660 * config/s390/s390.mh (NATDEPFILES): Likewise.
6661 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6662
786a90bb
MK
66632003-06-15 Mark Kettenis <kettenis@gnu.org>
6664
6665 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6666 replace out-of-date comment.
6667
3bd3f01e
AC
66682003-06-15 Andrew Cagney <cagney@redhat.com>
6669
6670 * rdi-share/host.h (Fail): Change to a varargs function.
6671 * remote-rdi.c (Fail): Update.
8ffd9b1b 6672
de5b9bb9
MK
66732003-06-15 Mark Kettenis <kettenis@gnu.org>
6674
6675 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6676 (i386_convert_register_p, i386_register_to_value,
6677 i386_register_from_value): Handle types longer than 8 bytes.
6678
d532c08f
MK
66792003-06-15 Mark Kettenis <kettenis@gnu.org>
6680
6681 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6682 Move floating-point code to new function in i387-tdep.c.
6683 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6684 New functions containing code moved here from i386-tdep.c.
6685 * i387-tdep.h: Add opaque declaration for `struct type'.
6686 (i387_register_to_value, i387_value_to_register): New prototypes.
6687 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6688 (x86_64_init_abi): Set convert_register_p, register_to_value and
6689 value_to_register here.
8ffd9b1b 6690
42c466d7
AC
66912003-06-14 Andrew Cagney <cagney@redhat.com>
6692
6693 * mips-tdep.c (mips_register_to_value): Make static.
6694 (mips_value_to_register): Make static.
6695 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6696 * ia64-tdep.c (ia64_register_raw_size): Make static.
6697 (ia64_register_virtual_size): Make static.
6698 (ia64_register_byte): Make static.
6699 * i387-tdep.c: Include "i387-tdep.h".
6700 (print_387_control_word): Delete function.
6701 (print_387_status_word): Delete function.
6702 (print_387_status_bits): Delete function.
6703 (print_387_control_bits): Delete function.
6704 * Makefile.in (i387-tdep.o): Update dependencies.
6705 * rdi-share/host.h (Fail): Declare.
6706 * remote-rdi.c (Fail): Update to match declaration.
6707
2a9cda49
AC
67082003-06-14 Andrew Cagney <cagney@redhat.com>
6709
6710 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6711 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6712 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6713 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6714 * README: Delete reference to remote-array.
6715 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6716 (remote-array.o): Delete target.
6717 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6718 * remote-array.c: Delete file.
6719
ff2e87ac
AC
67202003-06-14 Andrew Cagney <cagney@redhat.com>
6721 Mark Kettenis <kettenis@gnu.org>
6722
6723 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6724 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6725 parameter with "frame".
6726 * gdbarch.h, gdbarch.c: Re-generate.
6727 * frame.h (put_frame_register): Declare.
6728 * frame.c (put_frame_register): New function.
6729 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6730 (legacy_register_to_value): Rewrite, use "frame" to get the
6731 register value.
6732 (legacy_value_to_register): Rewrite, use "frame" to find the
6733 register's location before storing.
6734 * arch-utils.h (legacy_convert_register_p): Update.
6735 (legacy_register_to_value, legacy_value_to_register): Update.
6736 * findvar.c (value_from_register): Rewrite, eliminate use of
6737 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6738 "frame" to REGISTER_TO_VALUE.
6739 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6740 lval_reg_frame_relative + lval_register branch of the switch. Do
6741 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6742 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6743 I386_EDI_REGNUM): New defines.
6744 (i386_next_regnum, i386_convert_register_p,
6745 i386_register_to_value, i386_value_to_register): New functions.
6746 (i386_register_convertible, i386_register_convert_to_virtual,
6747 i386_convert_to_raw): Remove functions.
6748 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6749 value_to_register instead of register_convertible,
6750 register_convert_to_virtual and register_convert_to_raw.
6751 * mips-tdep.c (mips_convert_register_p): New function.
6752 (mips_value_to_register): Replace mips_register_convert_from_type.
6753 (mips_register_to_value): Replace mips_register_convert_to_type.
6754 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6755 register_to_value.
6756 * alpha-tdep.c (alpha_convert_register_p): Update.
6757 (alpha_value_to_register): Update, store the register.
6758 (alpha_register_to_value): Update, fetch the register.
6759
98be1e77
TR
67602003-06-14 Theodore A. Roth <troth@openavr.org>
6761
6762 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6763 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6764 Don't set deprecated_call_dummy_words.
6765 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6766 Don't set remote_translate_xfer_address.
6767 (avr_io_reg_read_command): Remove commented out debug printf.
6768 Wrap a long line.
6769
57bc6122
TR
67702003-06-14 Theodore A. Roth <troth@openavr.org>
6771
6772 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6773 causes gdb to seg fault.
6774
eb01fc62
DJ
67752003-06-14 Daniel Jacobowitz <drow@mvista.com>
6776
6777 * sparc-nat.c (fetch_inferior_registers): Correct
6778 a reference to "registers".
6779
3b3e6bee
DJ
67802003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6781
6782 * Makefile.in (exc_request_U_h): Define
6783 (exc_request_S_h): Likewise.
6784 (msg_reply_S_h): Likewise.
6785 (msg_U_h): Likewise.
6786 (notify_S_h): Likewise.
6787 (process_reply_S_h): Likewise.
6788 (gnu-nat.o): Depend on gdb_obstack_h
6789 * gnu-nat.c: Include "gdb_obstack.h".
6790
b8de8283
AC
67912003-06-13 Andrew Cagney <cagney@redhat.com>
6792
6793 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6794 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6795
f3be58bc
AC
67962003-06-13 Andrew Cagney <cagney@redhat.com>
6797
6798 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6799 when deprecated REGISTER macros can be deleted.
6800 * gdbarch.h, gdbarch.c: Re-generate.
6801
4c0122c8
JB
68022003-06-13 Jim Blandy <jimb@redhat.com>
6803
6804 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6805 Linux entry point symbols for _dl_debug_state, too.
6806
3e210248
AC
68072003-06-13 Andrew Cagney <cagney@redhat.com>
6808
6809 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6810 available, do not use the FP register, and always save the TOS.
6811 * dummy-frame.c (dummy_frame_this_id): Do not assert
6812 SAVE_DUMMY_FRAME_TOS.
6813 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6814 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6815 (i386_push_dummy_call): Add 8 to the returned SP.
6816 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6817 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6818 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6819 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6820 (x86_64_push_dummy_call): Return "sp + 16".
6821 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6822 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6823 save_dummy_frame_tos.
6824
0b65af49
JB
68252003-06-13 Jim Blandy <jimb@redhat.com>
6826
6827 * frv-tdep.c (frv_use_struct_convention): Delete static
6828 declaration for function deleted in my change of 2003-06-12.
6829
4ea2465e
TR
68302003-06-13 Theodore A. Roth <troth@openavr.org>
6831
6832 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6833 (avr_pointer_to_address): Shift code addrs left 1 bit.
6834 (avr_convert_from_func_ptr_addr): Delete function since operation is
6835 better handled by avr_address_to_pointer and avr_pointer_to_address.
6836 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6837
1581182a
MK
68382003-06-13 Mark Kettenis <kettenis@gnu.org>
6839
6840 From Kelley Cook <kelleycook@wideopenwest.com>:
6841 * configure.host: Accept i[34567]86 variants.
6842 * configure.tgt: Likewise.
6843 * nlm/configure.in: Likewise.
6844 * nlm/configure: Regenerated.
6845
7aa1783e
RE
68462003-06-13 Richard Earnshaw <rearnsha@arm.com>
6847
6848 * arm-tdep.c (solib-svr4.h): Dont' include it.
6849 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6850 * arm-linux-tdep.c: ... here. Make static.
6851 (arm_linux_init_abi): Register it.
6852 (solib-svr4.h): Include it.
6853 * Makefile.in: Update dependencies.
6854 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6855 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6856
0261a0d0
CV
68572003-06-13 Corinna Vinschen <vinschen@redhat.com>
6858
6859 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6860 indicate registers used for return values.
6861 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6862 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6863 members.
6864 (h8300_init_extra_frame_info): Ditto.
6865 (h8300_frame_locals_address): Removed.
6866 (h8300_frame_args_address): Removed.
6867 (h8300_extract_return_value): Use new regcache structure. Only care
6868 for 16 bit CPUs.
6869 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6870 (h8300_store_return_value): Use new regcache structure. Only care
6871 for 16 bit CPUs.
6872 (h8300h_store_return_value): Same function for 32 bit CPUs.
6873 (h8300_store_struct_return): Removed.
6874 (h8300_extract_struct_value_address): Use new regcache structure.
6875 (h8300h_extract_struct_value_address): Removed.
6876 (h8300_push_dummy_code): New function.
6877 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6878 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6879 set_gdbarch_store_return_value architecture dependent.
6880 Call set_gdbarch_push_dummy_code and
6881 set_gdbarch_extract_struct_value_address.
6882 Remove calls to set_gdbarch_frame_args_address,
6883 set_gdbarch_frame_locals_address,
6884 set_gdbarch_deprecated_store_struct_return,
6885 set_gdbarch_deprecated_extract_return_value,
6886 set_gdbarch_deprecated_extract_struct_value_address,
6887 set_gdbarch_deprecated_call_dummy_words and
6888 set_gdbarch_deprecated_sizeof_call_dummy_words.
6889
055c394a
CV
68902003-06-13 Corinna Vinschen <vinschen@redhat.com>
6891
6892 * h8300-tdep.c (h8300_register_byte): Remove.
6893 (h8300h_register_byte): Remove.
6894 (h8300_register_virtual_type): Remove. Substitute by...
6895 (h8300_register_type): New function.
6896 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6897 (h8300h_extract_struct_value_address): Ditto.
6898 (h8300_gdbarch_init): Drop calls to
6899 set_gdbarch_deprecated_register_byte and
6900 set_gdbarch_deprecated_register_virtual_type.
6901 Add call to set_gdbarch_register_type.
6902
9c04cab7
AC
69032003-06-13 Andrew Cagney <cagney@redhat.com>
6904
6905 * gdbarch.sh: Update comments on registers.
6906 (deprecated_register_byte): Rename register_byte.
6907 (deprecated_register_raw_size): Rename register_raw_size.
6908 (deprecated_register_virtual_size): Rename register_virtual_size.
6909 (deprecated_register_virtual_type): Rename register_virtual_type.
6910 * gdbarch.h, gdbarch.c: Re-generate.
6911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6912 * vax-tdep.c (vax_gdbarch_init): Update.
6913 * v850-tdep.c (v850_gdbarch_init): Update.
6914 * sparc-tdep.c (sparc_gdbarch_init): Update.
6915 * sh-tdep.c (sh_gdbarch_init): Update.
6916 * s390-tdep.c (s390_gdbarch_init): Update.
6917 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6918 * ns32k-tdep.c: Update.
6919 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6920 * mips-tdep.c (mips_gdbarch_init): Update.
6921 * mcore-tdep.c (mcore_gdbarch_init): Update.
6922 * m68k-tdep.c (m68k_gdbarch_init): Update.
6923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6924 * ia64-tdep.c (ia64_gdbarch_init): Update.
6925 * hppa-tdep.c (hppa_gdbarch_init): Update.
6926 * h8300-tdep.c (h8300_gdbarch_init): Update.
6927 * frv-tdep.c (frv_gdbarch_init): Update.
6928 * cris-tdep.c (cris_gdbarch_init): Update.
6929 * avr-tdep.c (avr_gdbarch_init): Update.
6930 * alpha-tdep.c (alpha_gdbarch_init): Update.
6931 * arm-tdep.c (arm_gdbarch_init): Update.
6932
b060cbea
AC
69332003-06-13 Andrew Cagney <cagney@redhat.com>
6934
6935 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6936 mips_o32_use_struct_convention with always_use_struct_convention.
6937
0fc9922a
DC
69382003-06-12 David Carlton <carlton@kealia.com>
6939
6940 * cp-namespace.c (cp_set_block_scope): Comment out
6941 processing_has_namespace_info branch.
6942
1fd35568
JB
69432003-06-12 Jim Blandy <jimb@redhat.com>
6944
f470a70a
JB
6945 Recognize and skip 64-bit PowerPC Linux linkage functions.
6946 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6947 insn_pattern, insns_match_pattern, d_field, ds_field): New
6948 functions, macros, and types for working with PPC instructions.
6949 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6950 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6951 ppc64_skip_trampoline_code): New functions, variables, and macros
6952 for recognizing and skipping linkage functions.
6953 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6954 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6955
49ff75ad
JB
6956 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6957 register offsets for both the 32- and 64-bit interfaces.
6958
bd918c83
JB
6959 Actually finish the job started by my change of 2003-05-29.
6960 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6961 other #definition of this.
6962 (ppc_linux_skip_trampoline_code): Remove declaration.
6963 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6964 static.
6965 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6966 method for GDBARCH.
6967
6968 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6969 'long' on ppc64-*-linux*.
6970
f8c59253
JB
6971 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6972 isn't #defined, assume the register doesn't exist: act as if
6973 tdep->ppc_mq_regnum were -1.
6974
8fbb30b1
JB
6975 * configure.host, configure.tgt: Add entries for
6976 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6977 powerpc/linux.mt.
6978 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6979 New files.
6980
1fd35568
JB
6981 * arch-utils.c (always_use_struct_convention): New function.
6982 * arch-utils.h (always_use_struct_convention): New prototype.
6983 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6984 (alpha_gdbarch_init): Register always_use_struct_convention,
6985 instead of alpha_use_struct_convention.
6986 * cris-tdep.c (cris_use_struct_convention): Delete.
6987 (cris_gdbarch_init): Register always_use_struct_convention,
6988 instead of cris_use_struct_convention.
6989 * frv-tdep.c (frv_use_struct_convention): Delete.
6990 (frv_gdbarch_init): Register always_use_struct_convention,
6991 instead of frv_use_struct_convention.
6992 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6993 (h8300_gdbarch_init): Register always_use_struct_convention,
6994 instead of h8300_use_struct_convention.
e3305dd9 6995 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6996 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6997 instead of mips_o32_use_struct_convention.
6998
e14e6e9c
AC
69992003-06-12 Andrew Cagney <cagney@redhat.com>
7000
7001 * wince.c: Include "mips-tdep.h".
7002 * mips-tdep.h (mips_next_pc): Declare.
7003 * mcore-tdep.c: Make more local functions static.
7004 * Makefile.in (wince.o): Update dependencies.
7005
2335f48e
DC
70062003-06-12 David Carlton <carlton@kealia.com>
7007
7008 * symtab.c (lookup_symbol_aux_minsyms): Replace
7009 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7010 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7011 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7012 SYMBOL_NATURAL_NAME.
7013
f70a7d61
AS
70142003-06-12 Andreas Schwab <schwab@suse.de>
7015
7016 * Makefile.in (tuiDisassem.o): Update dependencies.
7017
b6429628
DC
70182003-06-12 David Carlton <carlton@bactrian.org>
7019
7020 * symtab.h: Delete declaration of make_symbol_overload_list.
7021 Add declaration of lookup_partial_symbol.
7022 * symtab.c (remove_params): Move to cp-support.c.
7023 (overload_list_add_symbol, make_symbol_overload_list)
7024 (sym_return_val_size, sym_return_val_index): Ditto.
7025 (lookup_partial_symbol): Make extern.
7026 * cp-support.h: Add declaration of make_symbol_overload_list.
7027 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7028 symtab.h, and block.h.
7029 (remove_params): Move here from symtab.c.
7030 (overload_list_add_symbol, make_symbol_overload_list)
7031 (sym_return_val_size, sym_return_val_index): Ditto.
7032 * valops.c: Include cp-support.h.
7033 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7034 frame_h, and block_h.
7035 (valops.o): Depend on cp_support_h.
7036
084edea5
CV
70372003-06-12 Corinna Vinschen <vinschen@redhat.com>
7038
7039 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7040 substitute by NUM_REGS throughout.
7041 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7042 (h8300s_register_name): New function for H8S registers.
7043 (h8300sx_register_name): Ditto for H8SX registers.
7044 (h8300_print_register): Revise register printing, avoid depending
7045 on 32 bit long.
0261a0d0 7046 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7047 (h8300h_register_byte): New function for any other architecture.
7048 (h8300_register_raw_size): Remove.
7049 (h8300_register_virtual_type): Revise to return actually useful
7050 type.
7051 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7052 (h8300h_extract_struct_value_address): New function for any other
7053 architecture.
7054 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7055 set_gdbarch_register_name, set_gdbarch_register_byte,
7056 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7057 Remove calls to set_gdbarch_deprecated_register_size,
7058 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7059 set_gdbarch_deprecated_max_register_raw_size,
7060 set_gdbarch_register_virtual_size and
7061 set_gdbarch_deprecated_max_register_virtual_size entirely.
7062 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7063 set_gdbarch_long_double_bit.
7064
06194148
JJ
70652003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7066
8ffd9b1b
AJ
7067 * doublest.c (convert_doublest_to_floatformat): When dealing
7068 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7069 processing a full 32 bits of mantissa.
7070
de4f826b
DC
70712003-06-11 David Carlton <carlton@bactrian.org>
7072
7073 * dictionary.h: New.
7074 * dictionary.c: New.
7075 * block.h: Add opaque declaration for struct dictionary.
7076 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7077 'sym' members.
7078 (BLOCK_DICT): New macro.
7079 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7080 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7081 BLOCK_SHOULD_SORT.
7082 (ALL_BLOCK_SYMBOLS): Update definition.
7083 * Makefile.in (SFILES): Add dictionary.c.
7084 (dictionary_h): New.
7085 (COMMON_OBS): Add dictionary.o.
7086 (dictionary.o): New.
7087 (ada-lang.o): Depend on dictionary_h.
7088 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7089 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7090 (mi-cmd-stack.o): Ditto.
7091 (gdbtk-cmds.o): Update dependencies.
7092 (gdbtk-stack.o): Ditto.
7093 * ada-lang.c: Include dictionary.h.
7094 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7095 (fill_in_ada_prototype, debug_print_block): Ditto.
7096 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7097 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7098 'is_sorted'.
7099 * mdebugread.c: Include dictionary.h.
7100 (struct parse_stack): Delete 'maxsyms' member.
7101 (parse_symbol): Update calls to new_block. Delete calls to
7102 shrink_block. Use dictionary methods.
7103 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7104 Update calls to new_symtab. Don't maintain maxsyms data.
7105 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7106 (add_symbol): Just call dict_add_symbol.
7107 (new_symtab): Delete 'maxsyms' argument.
7108 (new_symtab): Update calls to new_block.
7109 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7110 (shrink_block): Delete function.
7111 (fixup_sigtramp): Update call to new_block. Add symbol via
7112 dict_add_symbol.
7113 * jv-lang.c: Include dictionary.h.
7114 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7115 appropriately. Set class_symtab->free_func. Make sure the
7116 blockvector is big enough to hold two blocks.
7117 (add_class_symtab_symbol): Use dictionary methods.
7118 (free_class_block): New function.
7119 (type_from_class): Replace explicit iteration by
7120 ALL_BLOCK_SYMBOLS.
7121 * symtab.h (struct symtab): Replace 'free_ptr' method by
7122 'free_func'.
7123 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7124 sort_symtab_syms.
7125 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7126 sort_symtab_syms.
7127 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7128 Include dictionary.h.
7129 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7130 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7131 sort_symtab_syms.
7132 * objfiles.c: Include dictionary.h.
7133 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7134 * buildsym.c: Include dictionary.h.
7135 (finish_block): Use dictionary methods.
7136 (end_symtab): Set free_func to NULL, not free_ptr.
7137 * tracepoint.c: Include dictionary.h.
7138 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7139 (scope_info): Ditto.
7140 * stack.c: Include dictionary.h.
7141 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7142 (print_block_frame_labels, print_frame_arg_vars)
7143 (print_frame_args): Ditto.
7144 * symmisc.c (free_symtab_block): Use dictionary methods.
7145 (dump_symtab): Ditto.
7146 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7147 Include dictionary.h.
7148 * symfile.h: Delete declarations of sort_block_syms,
7149 sort_symtab_syms.
7150 * symfile.c (sort_block_syms): Delete.
7151 (sort_symtab_syms): Delete.
7152 * symtab.c: Include dictionary.h.
7153 (lookup_block_symbol): Use dictionary iterators.
7154 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7155 (search_symbols, make_symbol_completion_list): Ditto.
7156 (make_symbol_overload_list): Ditto.
7157 * valops.c (value_of_local): Use dict_empty.
7158 Include dictionary.h.
7159
a31f978c
JB
71602003-06-11 J. Brobecker <brobecker@gnat.com>
7161
7162 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7163
526e70c0
DC
71642003-06-11 David Carlton <carlton@bactrian.org>
7165
7166 * block.h (BLOCK_SHOULD_SORT): Delete.
7167 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7168 blocks.
7169 * ada-lang.c (ada_add_block_symbols): Ditto.
7170 * symfile.c (sort_block_syms): Delete.
7171 (sort_symtab_syms): Ditto.
7172 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7173 declarations.
7174 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7175 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7176 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7177 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7178 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7179 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7180 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7181
33c08150
JJ
71822003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7183
8ffd9b1b 7184 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7185 bits to 128.
7186
781a750d
AC
71872003-06-11 Andrew Cagney <cagney@redhat.com>
7188
7189 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7190 REGISTER_CONVERTIBLE.
7191 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7192 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7193 * gdbarch.h, gdbarch.c: Re-generate.
7194 * arch-utils.h (deprecated_register_convertible_not): Rename
7195 generic_register_convertible_not.
7196 * arch-utils.c (deprecated_register_convertible_not): Rename
7197 generic_register_convertible.
7198 (legacy_convert_register_p, legacy_register_to_value): Update.
7199 * sh-tdep.c (sh64_push_arguments): Update.
7200 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7201 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7202 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7203 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7204 * arch-utils.c (legacy_value_to_register): Update.
7205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7206 (rs6000_register_convert_to_raw): Make parameter "from" const.
7207 * mips-tdep.c (mips_gdbarch_init): Update.
7208 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7209 * infcmd.c (default_print_registers_info): Update.
7210 * ia64-tdep.c (ia64_gdbarch_init): Update.
7211 (ia64_register_convert_to_raw): Make parameter "from" const.
7212 * i386-tdep.c (i386_gdbarch_init): Update.
7213 (i386_register_convert_to_raw): Update.
7214
cd90e54f
AC
72152003-06-11 Andrew Cagney <cagney@redhat.com>
7216
7217 * remote-fileio.c: Include "remote-fileio.h".
7218 * Makefile.in (remote-fileio.o): Update dependencies.
7219 (remote_fileio_h): Fix typo.
7220
a78f21af
AC
72212003-06-11 Andrew Cagney <cagney@redhat.com>
7222
7223 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7224 (xstormy16_save_dummy_frame_tos): Make static.
7225 (_initialize_xstormy16_tdep): Add declaration.
7226 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7227 * v850-tdep.c: Make local functions static.
7228 (_initialize_v850_tdep): Add declaration.
7229 * sparc-tdep.c: Make local functions static.
7230 (_initialize_sparc_tdep): Add declaration.
7231 * sh-tdep.c: Make local functions static.
7232 (_initialize_sh_tdep): Add declaration.
7233 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7234 * s390-tdep.c: Make local functions static.
7235 (_initialize_s390_tdep): Add declaration.
7236 * dbxread.c (find_stab_function_addr): Make static.
7237 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7238 * ocd.c (_initialize_remote_ocd): Add declaration.
7239 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7240 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7241 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7242 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7243 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7244 * remote-array.c (_initialize_array): Add declaration.
7245 (_initialize_remote_monitors): Add declaration.
7246 * remote-mips.c: Make local functions static.
7247 (_initialize_remote_mips): Add declaration.
7248 * mcore-tdep.c: Make all local functions static.
7249 (_initialize_mcore_tdep): Add declaration.
7250 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7251 * abug-rom.c (_initialize_abug_rom): Add declaration.
7252 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7253 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7254 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7255 * remote-est.c (_initialize_est): Add declaration.
7256 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7257 (m68hc11_call_dummy_address): Make static.
7258 * ia64-tdep.c: Make local functions static.
7259 (_initialize_ia64_tdep): Add declaration.
7260 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7261 * monitor.c (monitor_wait_filter): Make static.
7262 (_initialize_remote_monitors): Add declaration.
7263 * remote-hms.c (_initialize_remote_hms): Add declaration.
7264 * remote-e7000.c (fetch_regs_from_dump): Make static.
7265 (expect_n): Make static.
7266 (_initialize_remote_e7000): Add declaration.
7267 * ser-e7kpc.c: Always include "defs.h".
7268 (_initialize_ser_e7000pc): Add declaration.
7269 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7270 * cris-tdep.c: Make all but one function static.
7271 (_initialize_cris_tdep): Add declaration.
7272 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7273 * solib.c (update_solib_list): Make static.
7274 (_initialize_solib): Add declaration.
7275 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7276 (_initialize_avr_tdep): Add declaration.
7277 * remote-rdi.c (voiddummy): Make static.
7278 (_initialize_remote_rdi): Add declaration.
7279 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7280 * remote-rdp.c (send_rdp): Make static.
7281 (_initialize_remote_rdp): Add declaration.
7282 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7283
cbcdb1f5
CV
72842003-06-11 Corinna Vinschen <vinschen@redhat.com>
7285
7286 * remote-fileio.c: Make ari happy.
7287
a191ea8d
JB
72882003-06-10 J. Brobecker <brobecker@gnat.com>
7289
7290 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7291 fetching the trailing bytes of the buffer we are about to write.
7292
0ef75e11
AC
72932003-06-10 Andrew Cagney <cagney@redhat.com>
7294
7295 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7296 * Makefile.in (remote-fileio.o): Update dependencies.
7297 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7298 include <setjmp.h>, or <sys/types.h> conditional on USG.
7299 (remote_fio_jmp_buf): Delete global variable.
7300
449092f6 73012003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7302 Martin M. Hunt <hunt@redhat.com>
449092f6 7303
559fa028
AC
7304 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7305 (SFILES): Add remote-fileio.c.
7306 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7307 dependencies for building remote.o.
449092f6
CV
7308 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7309 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7310 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7311 static storage class.
7312 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7313 'F' packet.
7314 (_initialize_remote): Call initialize_remote_fileio().
7315 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7316 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7317 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7318 (captured_main): Initialize new ui_files.
7319 * ui-file.c: Add read and fgets input functions.
7320 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7321 (null_file_read): New function.
7322 (ui_file_read): New function.
7323 (set_ui_file_read): New function.
7324 (stdio_file_read): New function.
7325 * ui-file.h: New type ui_file_read_ftype.
7326 (set_ui_file_read): Declare.
7327 (ui_file_read): Declare.
7328
248de703
AC
73292003-06-09 Andrew Cagney <cagney@redhat.com>
7330
7331 * frame.h (deprecated_unwind_get_saved_register): Rename
7332 generic_unwind_get_saved_register, update comments.
7333 * mips-tdep.c (mips_get_saved_register): Update.
7334 * frame.c (deprecated_unwind_get_saved_register): Update.
7335
0ed8aa57
AC
73362003-06-09 Andrew Cagney <cagney@redhat.com>
7337
7338 * vax-tdep.c (vax_frame_locals_address): Delete function.
7339 (vax_gdbarch_init): Do not set frame_locals_address.
7340 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7341 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7342 * s390-tdep.c (s390_frame_args_address): Delete function.
7343 (s390_gdbarch_init): Do not set frame_args_address or
7344 frame_locals_address.
7345 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7346 (ns32k_gdbarch_init): Do not set frame_locals_address.
7347 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7348 (hppa_frame_locals_address): Delete function.
7349 (hppa_gdbarch_init): Do not set frame_args_address, or
7350 frame_locals_address.
7351 * arm-tdep.c (arm_frame_args_address): Delete.
7352 (arm_frame_locals_address): Delete.
7353 (arm_gdbarch_init): Do not set frame_args_address, or
7354 frame_locals_address.
7355
983a287a
AC
73562003-06-09 Andrew Cagney <cagney@redhat.com>
7357
7358 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7359 * gdbarch.h, gdbarch.c: Re-generate.
7360 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7361 * arch-utils.c (frame_num_args_unknown): Delete function.
7362 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7363 (frame_info): Use FRAME_NUM_ARGS_P.
7364 * arm-tdep.c (arm_frame_num_args): Delete function.
7365 (arm_gdbarch_init): Do not set frame_num_args.
7366 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7367 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7368 (hppa_gdbarch_init): Do not set frame_num_args.
7369 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7371 frame_num_args to default frame_num_args_unknown.
7372 * v850-tdep.c (v850_gdbarch_init): Ditto.
7373 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7374 * sh-tdep.c (sh_gdbarch_init): Ditto.
7375 * s390-tdep.c (s390_gdbarch_init): Ditto.
7376 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7378 * mips-tdep.c (mips_gdbarch_init): Ditto.
7379 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7380 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7382 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7383 * i386-tdep.c (i386_gdbarch_init): Ditto.
7384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7385 * frv-tdep.c (frv_gdbarch_init): Ditto.
7386 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7387 * cris-tdep.c (cris_gdbarch_init): Ditto.
7388 * avr-tdep.c (avr_gdbarch_init): Ditto.
7389 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7390
8d3b0994
AC
73912003-06-09 Andrew Cagney <cagney@redhat.com>
7392
7393 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7394 (print_frame_args): Moved to "stack.c".
7395 * stack.c: Include "gdb_assert.h".
7396 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7397 (print_frame_args): Moved from "printcmd.c".
7398 * frame.h (print_frame_args): Delete declaration.
7399 * Makefile.in (stack.o): Update dependencies.
7400
25e3a86b
AC
74012003-06-08 Andrew Cagney <cagney@redhat.com>
7402
7403 * frame.c (get_prev_frame): Remove reference to
7404 frame_args_address_correct in comments.
7405 * frame-base.c (default_frame_args_address): Delete code
7406 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7407 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7408 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7409 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7410 (vax_frame_args_address_correct): Delete declaration.
7411
a9e5fdc2
AC
74122003-06-08 Andrew Cagney <cagney@redhat.com>
7413
7414 * gdbarch.sh (UNWIND_SP): Add.
7415 * gdbarch.h, gdbarch.c: Re-generate.
7416 * frame.c (frame_sp_unwind): New function.
7417 (get_frame_sp): New function.
7418 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7419 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7420 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7421 value.
7422 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7423 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7424
8983bd83
AC
74252003-06-08 Andrew Cagney <cagney@redhat.com>
7426
7fec2c59
AC
7427 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7428 REMOTE_BREAKPOINT.
7429 * remote.c: Update.
7430 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7431 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7432 * config/m68k/tm-sun3.h: Update.
7433 * config/m68k/tm-m68klynx.h: Update.
7434 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7435
8983bd83
AC
7436 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7437 trad_frame". Update comments.
7438 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7439 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7440 (trad_frame_register_value, trad_frame_prev_register): Update.
7441
b9362cc7
AC
74422003-06-08 Andrew Cagney <cagney@redhat.com>
7443
7444 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7445 from GCC's acinclude.m4.
7446 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7447 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7448 * main.c (error_init): Delete declaration.
7449 * defs.h (error_init): Declare.
7450 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7451 (rs6000_convert_from_func_ptr_addr): Make static.
7452 (_initialize_rs6000_tdep): Add declaration.
7453 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7454 (show_commands, set_verbose, show_history): Delete declaration.
7455 * top.h (set_verbose): Add declaration.
7456 (show_history, set_history, show_commands): Add declaration.
7457 (do_restore_instream_cleanup): Add declaration.
7458 * objc-lang.c (specialcmp): Make static.
7459 (print_object_command): Make static.
7460 (find_objc_msgsend): Make static.
7461 (find_objc_msgcall_submethod_helper): Make static.
7462 (find_objc_msgcall_submethod): Make static.
7463 (_initialize_objc_language): Add declaration.
7464 (find_implementation_from_class): Make static.
7465 (find_implementation): Make static.
7466 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7467 * objc-lang.h (lookup_struct_typedef): Add declaration.
7468 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7469 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7470 (do_restore_user_call_depth): Make static.
7471 (do_restore_instream_cleanup): Delete declaration.
7472 (dont_repeat): Delete declaration.
7473 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7474 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7475 * reggroups.c (_initialize_reggroup): Add declaration.
7476 * cp-support.c (_initialize_cp_support): Add declaration.
7477 * cp-abi.c (_initialize_cp_abi): Add declaration.
7478 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7479 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7480 (_initialize_gnu_v3_abi): Add declaration.
7481 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7482 (_initialize_gnu_v2_abi): Add declaration.
7483 * frame-base.c (_initialize_frame_base): Add declaration.
7484 * doublest.c (floatformat_from_length): Make static.
7485 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7486 * frame.c (create_sentinel_frame): Make static.
7487 (_initialize_frame): Add declaration.
7488 * top.c (do_catch_errors): Make static.
7489 (gdb_rl_operate_and_get_next_completion): Make static.
7490 * typeprint.c: Include "typeprint.h".
7491 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7492 (sentinel_frame_this_id): Make static.
7493 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7494 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7495 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7496 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7497 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7498 * maint.c (maintenance_print_architecture): Make static.
7499 * signals/signals.c (_initialize_signals): Add declaration.
7500 * std-regs.c (_initialize_frame_reg): Add declaration.
7501 * jv-exp.y (push_variable): ISO C definition.
7502 (push_qualified_expression_name): Ditto.
7503 * memattr.c (_initialize_mem): Add declaration.
7504 * remote.c (remote_check_watch_resources): Make static.
7505 (remote_stopped_by_watchpoint): Make static.
7506 (remote_stopped_data_address): Make static.
7507 * d10v-tdep.c (nr_dmap_regs): Make static.
7508 (a0_regnum): Make static.
7509 (d10v_frame_unwind_cache): Make static.
7510 (d10v_frame_p): Make static.
7511 * osabi.c (show_osabi): Make static.
7512 (_initialize_gdb_osabi): Add extern declaration.
7513 * gdbtypes.c (make_qualified_type): Make static.
7514 (safe_parse_type): Make static.
7515 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7516 * macrotab.c (macro_bcache_free): Make static.
7517 * interps.c (interp_set_quiet): Make static.
7518 (interpreter_exec_cmd): Make static.
7519 * stack.h (select_frame_command): New file.
7520 * stack.c: Include "stack.h".
7521 (select_frame_command_wrapper): Delete function.
7522 (select_frame_command): Make global.
7523 * infcall.c: Include "infcall.h".
7524 * linespec.c: Include "linespec.h".
7525 * symfile.c (sections_overlap): Make static.
7526 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7527 * charset.c (_initialize_charset): Add missing prototype.
7528 * regcache.c (init_legacy_regcache_descr): Make static.
7529 (do_regcache_xfree): Make static.
7530 (regcache_xfer_part): Make static.
7531 (_initialize_regcache): Add missing prototype.
7532 * breakpoint.c (parse_breakpoint_sals): Make static.
7533 (breakpoint_sals_to_pc): Make static.
7534 * interps.h (clear_interpreter_hooks): ISO C declaration.
7535 * Makefile.in (stack_h): Define.
7536 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7537 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7538
a0f267c7
AC
75392003-06-08 Andrew Cagney <cagney@redhat.com>
7540
7541 * Makefile.in (d10v-tdep.o): Update dependencies.
7542 (SFILES): Add trad-frame.c.
7543 (trad_frame_h): Define.
7544 (COMMON_OBS): Add trad-frame.o.
7545 (trad-frame.o): Specify dependencies.
7546 * d10v-tdep.c: Include "trad-frame.h".
7547 (saved_regs_unwinder): Delete function.
7548 (d10v_frame_prev_register): Use trad_frame_prev_register.
7549 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7550 trad_frame", delete "regs" and "prev_sp".
7551 (prologue_find_regs): Use trad-frame.
7552 * trad-frame.h, trad-frame.c: New files.
7553
4538b4f4
MK
75542003-06-08 Mark Kettenis <kettenis@gnu.org>
7555
7556 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7557
a0273b2f
AF
75582003-06-07 Adam Fedor <fedor@gnu.org>
7559
7560 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7561 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7562 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7563 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7564 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7565 Use it.
7566
3a6c3343
AC
75672003-06-07 Andrew Cagney <cagney@redhat.com>
7568
7569 * symfile.h: Re-indent, clean up comments.
7570
b46e02f6
AC
75712003-06-07 Andrew Cagney <cagney@redhat.com>
7572
7573 * inferior.h (deprecated_write_sp): Replace
7574 generic_target_write_sp.
7575 * regcache.c (deprecated_write_sp): Replace
7576 generic_target_write_sp.
7577 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7578 * vax-tdep.c (vax_gdbarch_init): Update.
7579 * v850-tdep.c (v850_gdbarch_init): Update.
7580 * sparc-tdep.c (sparc_gdbarch_init): Update.
7581 * sh-tdep.c (sh_gdbarch_init): Update.
7582 * s390-tdep.c (s390_gdbarch_init): Update.
7583 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7584 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7585 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7586 * mcore-tdep.c (mcore_gdbarch_init): Update.
7587 * m68k-tdep.c (m68k_gdbarch_init): Update.
7588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7589 * ia64-tdep.c (ia64_gdbarch_init): Update.
7590 * h8300-tdep.c (h8300_gdbarch_init): Update.
7591 * frv-tdep.c (frv_gdbarch_init): Update.
7592 * cris-tdep.c (cris_gdbarch_init): Update.
7593 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7594
a42e117c
AC
75952003-06-07 Andrew Cagney <cagney@redhat.com>
7596
7597 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7598 Assert that PC_REGNUM is valid.
7599 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7600
bd1ce8ba
AC
76012003-06-07 Andrew Cagney <cagney@redhat.com>
7602
7603 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7604 * gdbarch.h, gdbarch.c: Regenerate.
7605 * mn10300-tdep.c: Include "gdb_assert.h".
7606 (mn10300_read_fp): New function.
7607 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7608 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7609 * ia64-tdep.c: Include "gdb_assert.h".
7610 (ia64_read_fp): New function.
7611 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7612 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7613 * regcache.c (generic_target_read_sp): Delete function.
7614 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7615 * inferior.h (generic_target_read_sp): Delete declaration.
7616 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7617 generic_target_read_sp.
7618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7619 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7620 * sh-tdep.c (sh_gdbarch_init): Ditto.
7621 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7622 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7623
ec5cbaec
AC
76242003-06-07 Andrew Cagney <cagney@redhat.com>
7625
7626 * gdbarch.sh: Comment each field of startup_gdbarch.
7627 * gdbarch.h, gdbarch.c: Re-generate.
7628
cde9ea48
AC
76292003-06-07 Andrew Cagney <cagney@redhat.com>
7630
7631 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7632 * gdbarch.h, gdbarch.c: Re-generate.
7633 * regcache.c: Update comments on read_pc et.al.
7634 (generic_target_read_pc): Delete function.
7635 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7636 * inferior.h (generic_target_read_pc): Delete declaration.
7637 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7638 generic_target_read_pc.
7639 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7640 * sh-tdep.c (sh_gdbarch_init): Ditto.
7641 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7643
9a90a780
AC
76442003-06-07 Andrew Cagney <cagney@redhat.com>
7645
7646 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7647 "index" with "special_local_sect". Use strcmp instead of STREQ.
7648 Append period to coments.
7649
a39a16c4
MM
76502003-06-06 Mark Mitchell <mark@codesourcery.com>
7651
7652 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7653 (elfstab_offset_sections): Likewise.
7654 * gdb-stabs.h (stab_section_info): Likewise.
7655 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7656 * objfiles.c (objfile_relocate): Likewise.
7657 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7658 * remote.c (get_offsets): Likewise.
7659 (remote_cisco_objfile_relocate): Likewise.
7660 * somread.c (som_symfile_offsets): Likewise.
7661 * symfile.c (alloc_section_addr_info): New function.
7662 (build_section_addr_info_from_section_tab): Use it.
7663 (free_section_addr_info): Adjust.
7664 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7665 (syms_from_objfile): Allocate local_addr dynamically.
7666 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7667 dynamically.
7668 (add_symbol_file_command): Allocate sect_opts dynamically.
7669 (reread_symbols): Avoid use of SECT_OFF_MAX.
7670 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7671 (alloc_section_addr_info): Declare it.
7672 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7673 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7674 dynamically.
7675 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7676
20c6c2f8
AC
76772003-06-06 Andrew Cagney <cagney@redhat.com>
7678
7679 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7680 (d10v_frame_unwind_cache): Do not set "return_pc".
7681
884a26c8
MS
76822003-06-06 Michael Snyder <msnyder@redhat.com>
7683
7684 * h8300-tdep.c: Make tidy (long lines).
7685
088ce440
ML
76862003-06-06 Michal Ludvig <mludvig@suse.cz>
7687
8ffd9b1b 7688 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7689 to regcache_collect().
7690
7d773d96
JB
76912003-06-05 J. Brobecker <brobecker@gnat.com>
7692
7693 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7694 pc_in_sigtramp multiarch method.
7695 (hppa_hpux_som_init_abi): Use it.
7696 (hppa_hpux_elf_init_abi): Likewise.
7697 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7698 macro has been multiarched.
7699 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7700 macro here, as hppa64 isn't multiarched yet.
7701
1df6926e
AC
77022003-06-05 Andrew Cagney <cagney@redhat.com>
7703
7704 * Makefile.in (value_h): Add $(frame_h).
7705 * value.h: Include "frame.h".
7706 (struct value): Replace "frame_addr" with "frame_id".
7707 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7708 * values.c (allocate_value): Use VALUE_FRAME_ID.
7709 (value_copy): Use VALUE_FRAME_ID.
7710 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7711 * valops.c (value_assign): Update. Use frame_find_by_id.
7712
6b53acc6
ML
77132003-06-05 Michal Ludvig <mludvig@suse.cz>
7714
7715 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7716 in each pass.
7717
4d9850d3
JJ
77182003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7719
7720 * thread-db.c (check_event): For create/death event breakpoints,
7721 loop through all messages to ensure that we read the message
7722 corresponding to the breakpoint we are at.
7723
8efca6ba
MS
77242003-06-04 Michael Snyder <msnyder@redhat.com>
7725
7726 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7727
0912c7f2
MK
77282003-06-04 Mark Kettenis <kettenis@gnu.org>
7729
7730 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7731 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7732 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7733 when handling .eh_frame sections.
7734
4e370325
JB
77352003-06-04 J. Brobecker <brobecker@gnat.com>
7736
7737 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7738 prepare_to_proceed procedure instead of the hppa-specific one.
7739 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7740
b757528f 77412003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7742
b757528f
JJ
7743 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7744 * config.in: Regenerated.
7745 * configure.in: Add test for syscall function and check for
7746 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7747 * configure: Regenerated.
7748 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7749 <sys/syscall.h>.
7750 (kill_lwp): New function that uses tkill syscall or
7751 uses kill, depending on whether threading model is nptl or not.
7752 All callers of kill() changed to use kill_lwp().
7753 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7754 see if all threads have already exited in the nptl model.
7755 (stop_and_resume_callback): New callback function used by the
7756 lin_lwp_wait thread exit handling code.
7757 (stop_wait_callback): Check for threads already having exited and
7758 delete such threads fromt the lwp list when discovered.
7759 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7760
b757528f
JJ
7761 Roland McGrath <roland@redhat.com>
7762 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7763 nptl libthread_db.
7764
087779b1
RH
77652003-06-03 Richard Henderson <rth@redhat.com>
7766
b21fd293
RH
7767 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7768 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7769 (alpha_sigtramp_frame_prev_register): Likewise.
7770 (alpha_heuristic_frame_prev_register): Likewise.
7771 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7772
8ffd9b1b 7773 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7774 alpha-specific register id names.
7775 (alpha_mdebug_frame_unwind_cache): Likewise.
7776 (alpha_mdebug_frame_prev_register): Likewise.
7777
baa490c4
RH
77782003-06-03 Richard Henderson <rth@redhat.com>
7779
7780 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7781 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7782 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7783 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7784 unwind routines.
7785 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7786 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7787 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7788
7789 * alpha-linux-tdep.c: Remove unnecessary includes.
7790 * Makefile.in (alpha-linux-tdep.o): Update.
7791
77922003-06-03 Richard Henderson <rth@redhat.com>
7793
7794 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7795 (alphabsd_fill_fpreg): Likewise.
7796
f534e522
JB
77972003-06-03 J. Brobecker <brobecker@gnat.com>
7798
7799 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7800 references to struct frame_info fields by calls to the equivalent
7801 accessors. Necessary now that frame_info is opaque.
7802
4035536b
JB
78032003-06-03 J. Brobecker <brobecker@gnat.com>
7804
7805 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7806 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7807 structure, field no longer exists.
7808
0bd79c5c
JB
78092003-06-03 J. Brobecker <brobecker@gnat.com>
7810
7811 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7812 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7813
37bb6d9f
JB
78142003-06-03 J. Brobecker <brobecker@gnat.com>
7815
7816 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7817 references to struct frame_info fields by calls to the equivalent
7818 accessors. Necessary now that frame_info is opaque.
7819
852ee05c
JB
78202003-06-03 J. Brobecker <brobecker@gnat.com>
7821
7822 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7823 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7824 structure, field no longer exists.
7825
7d58c67d
TR
78262003-06-03 Theodore A. Roth <troth@openavr.org>
7827
8ffd9b1b 7828 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7829 accumulation of the size of all registers instead of blindly using
7830 DEPRECATED_REGISTER_BYTES.
7831
0a48e7e8
MS
78322003-06-03 Michael Snyder <msnyder@redhat.com>
7833
7834 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7835 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7836 for h8300sx.
7837
9798ab0d
JB
78382003-06-03 J. Brobecker <brobecker@gnat.com>
7839
7840 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7841 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7842
00b037e2
AC
78432003-06-03 Andrew Cagney <cagney@redhat.com>
7844
7845 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7846 (sparc_convert_to_raw): Delete function.
7847 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7848 register_convert_to_virtual.
7849
043b2f77
JJ
78502003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7851
7852 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7853 layer if not dealing with a statically-linked threaded program.
7854
f43caff8
KW
78552003-06-03 Kris Warkentin <kewarken@qnx.com>
7856
7857 * solib.c (solib_open): Update comment to reflect actual search order.
7858
ae1e7417
AC
78592003-06-03 Andrew Cagney <cagney@redhat.com>
7860
7861 * frame.c (get_frame_memory_signed): New function.
7862 (get_frame_memory, get_frame_memory_unsigned): New function.
7863 (get_frame_arch): New function.
7864 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7865 (get_frame_memory, get_frame_unsigned_memory): Declare.
7866 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7867 get_frame_memory_unsigned and get_frame_arch.
7868 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7869
cb123844
RG
78702003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7871
7872 * MAINTAINERS (write after approval): Add myself.
7873
1bb792e9
JB
78742003-06-03 Jim Blandy <jimb@redhat.com>
7875
7876 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7877 elements of gregset_t are 64 bits each, but access registers
7878 are still 32 bits, so they're packed two per gregset_t
7879 element. Unpack/pack them properly.
7880
aee8d8ba
DC
78812003-06-02 David Carlton <carlton@bactrian.org>
7882
7883 * linespec.c (find_methods): Break out code into
7884 add_matching_methods and add_constructors.
7885 (add_matching_methods): New.
7886 (add_constructors): Ditto.
7887
bf7488d2
AC
78882003-06-02 Andrew Cagney <cagney@redhat.com>
7889
bf7488d2
AC
7890 * sparc-tdep.c (sparc_print_registers): Delete call to
7891 REGISTER_CONVERTIBLE.
7892 (sparc_gdbarch_init): Do not set register_convertible.
7893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7894 * frv-tdep.c (frv_gdbarch_init): Ditto.
7895 * cris-tdep.c (cris_gdbarch_init): Ditto.
7896
adedef68
EZ
78972003-06-02 Elena Zannoni <ezannoni@redhat.com>
7898
8ffd9b1b 7899 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7900 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7901 (syms_from_objfile): Ditto.
7902
650fcc91
AS
79032003-06-03 Andreas Schwab <schwab@suse.de>
7904
7905 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7906 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7907
df4a182b
RH
79082003-06-02 Richard Henderson <rth@redhat.com>
7909
7910 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7911 a member of all_reggroup.
7912
c483c494
RH
79132003-06-02 Richard Henderson <rth@redhat.com>
7914
7915 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7916 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7917 (alpha_lds, alpha_sts): New.
7918 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7919 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7920 restructure and fail for type sizes other than 4 or 8.
7921 (alpha_value_to_register): Similarly.
7922 (alpha_extract_return_value): Use alpha_sts.
7923 (alpha_store_return_value): Use alpha_lds.
7924 (alpha_gdbarch_init): Update hooks.
7925
b38b6be2
RH
79262003-06-02 Richard Henderson <rth@redhat.com>
7927
7928 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7929 regnum identifiers.
7930 (alpha_sigtramp_register_address): Likewise.
7931
98a8e1e5
RH
79322003-06-02 Richard Henderson <rth@redhat.com>
7933
7934 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7935 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7936 * alpha-tdep.h: Declare them.
7937
7938 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7939 Remove zerobuf. Don't error on UNIQUE.
7940 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7941 (ALPHA_REGSET_UNIQUE): Provide default.
7942 (supply_gregset): Use alpha_supply_int_regs.
7943 (fill_gregset): Use alpha_fill_int_regs.
7944 (supply_fpregset): Use alpha_supply_fp_regs.
7945 (fill_fpregset): Use alpha_fill_fp_regs.
7946 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7947 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7948 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7949 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7950 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7951 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7952
67dfac52
RH
79532003-06-02 Richard Henderson <rth@redhat.com>
7954
f75d70cc
RH
7955 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7956
67dfac52
RH
7957 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7958 (alpha_store_return_value): Likewise.
7959
0cf566ec
DC
79602003-06-02 David Carlton <carlton@math.stanford.edu>
7961
7962 * block.c (contained_in): Add 'const' to arguments.
7963 (block_function): Ditto.
7964 * block.h: Update declarations for block_function and
7965 contained_in.
7966
cdef89d0
DC
79672003-06-02 David Carlton <carlton@math.stanford.edu>
7968
7969 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7970 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7971 * p-valprint.c (pascal_val_print): Ditto.
7972 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7973
72667056
RH
79742003-06-02 Richard Henderson <rth@redhat.com>
7975
98a8e1e5
RH
7976 * alpha-tdep.c (alpha_push_dummy_call): Use
7977 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7978
8ffd9b1b 7979 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7980 sign-extension of 32-bit values.
7981 (alpha_store_return_value): Similarly.
0ede8eca 7982
98a8e1e5
RH
7983 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7984 (alpha_extract_return_value): Likewise.
7985 (alpha_store_return_value): Likewise.
7b5e1cb3 7986
98a8e1e5
RH
7987 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7988 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7989
98a8e1e5
RH
7990 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7991 (alpha_extract_struct_value_address): Likewise.
7992 (alpha_store_return_value): Likewise.
7993 (alpha_store_struct_return): Remove.
7994 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7995
98a8e1e5
RH
7996 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7997 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7998 macros where appropriate.
7999 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8000 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8001
98a8e1e5
RH
8002 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8003 for SP, GP; void_func_ptr for PC; non-language-specific types
8004 for all others.
8005 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8006
6dd77b81
RH
80072003-06-02 Richard Henderson <rth@redhat.com>
8008
8009 * top.h (lim_at_start): Declare.
8010 * main.c (captured_main): Set it.
8011 * top.c (lim_at_start): Define.
8012 (command_loop): Use it instead of &environ.
8013 * event-top.c (command_handler): Likewise.
8014
f4dbdb54
JT
80152003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8016
8017 * mipsnbsd-tdep.c: Update copyright years.
8018 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8019
8f285956
RH
80202003-06-01 Richard Henderson <rth@redhat.com>
8021
98a8e1e5
RH
8022 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8023 (alpha-linux-tdep.o): Update dependencies.
8024 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8025 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8026
615967cb
RH
80272003-06-01 Richard Henderson <rth@redhat.com>
8028
98a8e1e5
RH
8029 * alpha-tdep.c (alpha_register_reggroup_p): New.
8030 (alpha_gdbarch_init): Register it.
615967cb 8031
b59661bd
AC
80322003-06-02 Andrew Cagney <cagney@redhat.com>
8033
8034 * dwarfread.c: Eliminate "register"
8035 (decode_die_type): Eliminate assignment within "if".
8036 (struct_type, decode_array_element_type): Ditto.
8037 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8038 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8039 (decode_modified_type, completedieinfo): Ditto.
8040 * block.c: Eliminate "register".
8041 (blockvector_for_pc_sect): Eliminate assignment within "if".
8042 * cp-support.h (struct symbol): Opaque declaration.
8043 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8044
5ef165c2
RH
80452003-06-01 Richard Henderson <rth@redhat.com>
8046
98a8e1e5
RH
8047 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8048 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8049
143985b7
AF
80502003-06-01 Adam Fedor <fedor@gnu.org>
8051
8052 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8053 * gdbarch.[ch]: Regenerate.
8054 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8055 (hppa_gdbarch_init): Set it in the gdbarch vector.
8056 * i386-tdep.c (i386_fetch_pointer_argument): New
8057 (i386_gdbarch_init): Set it into gdbarch.
8058 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8059 (rs6000_gdbarch_init): Set it in gdbarch.
8060 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8061 (sparc_gdbarch_init): Set it in gdbarch.
8062
ae0167b9
AC
80632003-06-01 Andrew Cagney <cagney@redhat.com>
8064
7c0b4a20
AC
8065 * defs.h (extract_address): Delete declaration.
8066 * findvar.c (extract_address): Delete function.
8067 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8068 extract_address with the inline equivalent,
8069 extract_unsigned_integer.
8070 (xstormy16_extract_struct_value_address): Ditto.
8071 (xstormy16_pointer_to_address): Ditto.
8072 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8073 * v850-tdep.c (v850_push_arguments): Ditto.
8074 (v850_extract_return_value): Ditto.
8075 (v850_extract_struct_value_address): Ditto.
8076 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8077 (sparcnbsd_get_longjmp_target_64): Ditto.
8078 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8079 (get_longjmp_target): Ditto.
8080 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8081 (sh64_extract_struct_value_address): Ditto.
8082 (sh_push_arguments): Ditto.
8083 (sh64_push_arguments): Ditto.
8084 * remote-vxsparc.c (vx_read_register): Ditto.
8085 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8086 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8087 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8088 * mipsv4-nat.c (get_longjmp_target): Ditto.
8089 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8090 * mips-nat.c (get_longjmp_target): Ditto.
8091 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8092 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8093 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8094 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8095 * irix5-nat.c (get_longjmp_target): Ditto.
8096 * irix4-nat.c (get_longjmp_target): Ditto.
8097 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8098 (ia64_push_arguments): Ditto.
8099 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8100 * h8300-tdep.c (h8300_push_arguments): Ditto.
8101 (h8300_store_return_value): Ditto.
8102 (h8300_extract_struct_value_address): Ditto.
8103 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8104 (frv_push_arguments): Ditto.
8105 * avr-tdep.c (avr_pointer_to_address): Ditto.
8106 (avr_push_arguments): Ditto.
8107 * arm-tdep.c (arm_push_dummy_call): Ditto.
8108 (arm_get_longjmp_target): Ditto.
8109 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8110 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8111 (alpha_get_longjmp_target): Ditto.
8112
ae0167b9
AC
8113 * solib-irix.c (extract_mips_address): Inline extract_address,
8114 replacing it with extract_signed_integer.
8115 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8116 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8117 (first_link_map_member, open_symbol_file_object): Ditto.
8118 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8119 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8120 (LM_NEXT, LM_NAME): Ditto.
8121
44d88583
RH
81222003-06-01 Richard Henderson <rth@redhat.com>
8123
98a8e1e5
RH
8124 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8125 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8126 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8127 (alpha_cannot_store_register): Likewise.
8128 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8129 * alpha-nat.c (supply_gregset): Likewise.
8130 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8131
310e9b6a
AC
81322003-06-01 Andrew Cagney <cagney@redhat.com>
8133
8134 * infcall.c (call_function_by_hand): Update comment on
8135 DEPRECATED_DUMMY_WRITE_SP.
8136
8137 * mips-tdep.c (mips_gdbarch_init): Do not set
8138 deprecated_dummy_write_sp.
8139 (mips_eabi_push_dummy_call): Set the SP register.
8140 (mips_o64_push_dummy_call): Set the SP register.
8141 (mips_o32_push_dummy_call): Set the SP register.
8142 (mips_n32n64_push_dummy_call): Set the SP register.
8143
5ab84872
RH
81442003-06-01 Richard Henderson <rth@redhat.com>
8145
98a8e1e5
RH
8146 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8147 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8148 (supply_gregset): Likewise.
8149 * alpha-tdep.c (alpha_store_return_value): Likewise.
8150 (alpha_get_longjmp_target): Likewise.
8151 (alpha_register_name): Constify array.
8152 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8153 deprecated_register_size, deprecated_register_bytes,
8154 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8155 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8156 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8157
09cc52fd
RH
81582003-06-01 Richard Henderson <rth@redhat.com>
8159
8160 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8161 from arg_reg_buffer to regcache to avoid double conversion.
8162
c7f16359
MK
81632003-06-01 Mark Kettenis <kettenis@gnu.org>
8164
8165 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8166 SP_REGNUM.
8167 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8168 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8169
7131cb6e
RH
81702003-06-01 Richard Henderson <rth@redhat.com>
8171
98a8e1e5
RH
8172 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8173 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8174
f3e0f90b
RH
81752003-06-01 Richard Henderson <rth@redhat.com>
8176
98a8e1e5
RH
8177 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8178 not overlapping PC_REGNUM.
f3e0f90b 8179
c88e30c0
RH
81802003-06-01 Richard Henderson <rth@redhat.com>
8181
98a8e1e5
RH
8182 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8183 alpha_push_arguments. Don't dump argument register data to
8184 the target stack. Fix float and 128-bit long double semantics.
8185 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8186 (alpha_fix_call_dummy): Remove.
8187 (alpha_call_dummy_words): Remove.
8188 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8189
f1a559ae
RH
81902003-06-01 Richard Henderson <rth@redhat.com>
8191
8192 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8193
5e045346
AC
81942003-06-01 Andrew Cagney <cagney@redhat.com>
8195
95404a3e
AC
8196 * mips-tdep.c (is_mips16_addr): New function.
8197 (make_mips16_addr, unmake_mips16_addr): New functions.
8198 (pc_is_mips16, mips_fetch_instruction): Use.
8199 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8200 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8201 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8202 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8203 TARGET_MIPS.
8204 * config/mips/tm-mips.h: Update copyright.
8205 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8206 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8207 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8208 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8209 (TM_PRINT_INSN_MACH): Delete.
8210 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8211
5e045346
AC
8212 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8213 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8214 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8215 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8216 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8217 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8218 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8219 mips*-*-riscos* and mips*-*-sysv* onto mips.
8220 * config/mips/mips64.mt: New file.
8221 * config/mips/mips.mt: New file.
8222 * config/mips/littlemips.mt: Delete file.
8223 * config/mips/decstation.mt: Delete file.
8224 * config/mips/vr4300el.mt: Delete file.
8225 * config/mips/vr5000el.mt: Delete file.
8226 * config/mips/vr5000.mt: Delete file.
8227 * config/mips/vr4100.mt: Delete file.
8228 * config/mips/vr4xxxel.mt: Delete file.
8229 * config/mips/vr4300.mt: Delete file.
8230 * config/mips/vr4xxx.mt: Delete file.
8231 * config/mips/bigmips.mt: Delete file.
8232 * config/mips/bigmips64.mt: Delete file.
8233 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8234 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8235 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8236 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8237 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8238 "tm-bigmips.h".
8239 * config/mips/tm-irix3.h: Ditto.
8240 * config/mips/tm-mipsv4.h: Ditto.
8241 * config/mips/tm-embed.h: Ditto.
8242 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8243 "tm-bigmips64.h".
8244 * config/mips/tm-vr5000el.h: Delete file.
8245 * config/mips/tm-tx39l.h: Delete file.
8246 * config/mips/tm-vr4300el.h: Delete file.
8247 * config/mips/tm-vr4xxxel.h: Delete file.
8248 * config/mips/tm-vr4300.h: Delete file.
8249 * config/mips/tm-vr4100.h: Delete file.
8250 * config/mips/tm-vr4xxx.h: Delete file.
8251 * config/mips/tm-vr5000.h: Delete file.
8252 * config/mips/tm-embedl64.h: Delete file.
8253 * config/mips/tm-embedl.h: Delete file.
8254 * config/mips/tm-embed64.h: Delete file.
8255 * config/mips/tm-bigmips64.h: Delete file.
8256 * config/mips/tm-bigmips.h: Delete file.
8257
2473a4a9
MK
82582003-06-01 Mark Kettenis <kettenis@gnu.org>
8259
97a5b208
MK
8260 Fix gdb/1216.
8261 * shnbsd-nat.c: Include "sh-tdep.h".
8262
2473a4a9
MK
8263 From Richard Henderson <rth@redhat.com>:
8264 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8265
e0f7ec59
AC
82662003-05-31 Andrew Cagney <cagney@redhat.com>
8267
8268 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8269 forward declaration.
8270 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8271 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8272 (mips_find_saved_regs): Use set_reg_offset.
8273 (mips_frame_init_saved_regs): Delete function.
8274 (mips_pop_frame): Call mips_find_saved_regs instead of
8275 DEPRECATED_FRAME_INIT_SAVED_REGS.
8276
68dcc709
AC
82772003-05-31 Andrew Cagney <cagney@redhat.com>
8278
8279 * mips-tdep.c (mips_gdbarch_init): Do not set
8280 deprecated_max_register_raw_size, register_virtual_size, and
8281 deprecated_max_register_virtual_size.
8282
cfc14b3a
MK
82832003-05-31 Mark Kettenis <kettenis@gnu.org>
8284
6405b0a6
MK
8285 * i386-tdep.c: Include "dwarf2-frame.h".
8286 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8287 * Makefile.in (i386-tdep.o): Update dependencies.
8288
cfc14b3a
MK
8289 * dwarf2-frame.c, dwarf2-frame.h: New files.
8290 * Makefile.in (SFILES): Add dwarf2-frame.c.
8291 (dwarf2_frame_h): Define.
8292 (COMMON_OBS): Add dwarf2-frame.o.
8293 (dwarf2-frame.o): Add dependencies.
8294
6a2751d2
AJ
82952003-05-31 Andreas Jaeger <aj@suse.de>
8296
8297 * x86-64-linux-nat.c: Fix comment.
8298
1c3545ae
MK
82992003-05-31 Mark Kettenis <kettenis@gnu.org>
8300
10f93086
MK
8301 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8302 function signature.
8303
1c3545ae
MK
8304 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8305 have a sigcontext_addr handler.
8306 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8307 sigcontext_addr handler.
8308
e11c53d2
AC
83092003-05-31 Andrew Cagney <cagney@redhat.com>
8310
8311 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8312 (print_fp_register_row): Replace do_fp_register_row.
8313 (mips_print_fp_register): Add "file" and "frame" parameters.
8314 (mips_print_register): Add "file" and "frame" parameters.
8315 (mips_print_registers_info): Replace mips_do_registers_info.
8316 (mips_gdbarch_init): Set print_registers_info instead of
8317 deprecated_do_registers_info.
8318 (mips_read_fp_register_single): Add "frame" parameter.
8319 (mips_read_fp_register_double): Add "frame" parameter.
8320
a3386186
MK
83212003-05-31 Mark Kettenis <kettenis@gnu.org>
8322
70913449
MK
8323 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8324 Fixes a bug where GDB would print the wrong register names for
8325 targets without SSE.
8326
2b5e0749
MK
8327 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8328 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8329 registers.
8330
8331 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8332 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8333 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8334 TDEP->sc_sp_offset.
8335
a3386186
MK
8336 From Michal Ludvig <mludvig@suse.cz>:
8337 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8338 and `sc_num_regs'.
8339 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8340 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8341 I386_ST0_REGNUM): Move here from...
8342 * i386-tdep.c: ... here.
8343 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8344 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8345 registers if possible.
8346 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8347 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8348 Remove variables.
8349 (i386bsd_sc_reg_offset): New variable.
8350 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8351 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8352 TDEP->sc_sp_offset.
8353 (i386fbsd_sc_reg_offset): New variable.
8354 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8355 TDEP->sc_num_regs.
8356 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8357 variables.
8358 (i386fbsd4_sc_reg_offset): New variable.
8359 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8360 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8361 TDEP->sc_sp_offset.
8362 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8363 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8364 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8365 Remove variables.
8366 (i386nbsd_sc_reg_offset): New variable.
8367 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8368 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8369 TDEP->sc_sp_offset.
8370 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8371 Remove variables.
8372 (i386obsd_sc_reg_offset): New variable.
8373 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8374 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8375 TDEP->sc_sp_offset.
8376 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8377 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8378 for frame pointer offset in `struct sigcontext'.
8379
25ab4790
AC
83802003-05-31 Andrew Cagney <cagney@redhat.com>
8381
8382 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8383 architecture methods call_dummy_words, sizeof_call_dummy_words,
8384 push_return_address, store_struct_return, and fix_call_dummy. Set
8385 push_dummy_call instead of deprecated_push_arguments.
8386 (mips_store_struct_return): Delete function.
8387 (mips_fix_call_dummy): Delete function.
8388 (mips_push_return_address): Delete function.
8389 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8390 RA_REGNUM and T9_REGNUM.
8391 (mips_n32n64_push_dummy_call): Ditto for
8392 mips_n32n64_push_arguments.
8393 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8394 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8395
6a65450a
AC
83962003-05-31 Andrew Cagney <cagney@redhat.com>
8397
8398 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8399 "dummy_addr" to "bp_addr".
8400 * infcall.c (call_function_by_hand): Pass "funaddr" to
8401 gdbarch_push_dummy_call.
8402 * gdbarch.h, gdbarch.c: Re-generate.
8403 * i386-tdep.c (i386_push_dummy_call): Update.
8404 * arm-tdep.c (arm_push_dummy_call): Update.
8405 * d10v-tdep.c (d10v_push_dummy_call): Update.
8406
c4f35dd8
MK
84072003-05-31 Mark Kettenis <kettenis@gnu.org>
8408
8409 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8410 variable declarations.
8411 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8412 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8413 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8414 x86_64_init_frame_pc, x86_64_init_frame_pc,
8415 x86_64_function_has_prologue): Remove prototypes.
8416 (X86_64_NUM_GREGS): New define.
8417 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8418 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8419 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8420 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8421 XMM1_REGNUM): Remove defines.
8422 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8423 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8424 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8425 X86_64_XMM1_REGNUM): New defines.
8426 (struct x86_64_register_info): Renamed from `struct
8427 register_info'. Remove `size' member.
8428 (x86_64_register_info_table): Remove variable.
8429 (x86_64_register_info): New variable.
8430 (X86_64_NUM_REGS): New define.
8431 (X86_64_NUM_GREGS): Remove define.
8432 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8433 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8434 Remove variables.
8435 (x86_54_dwarf2_reg_to_regnum): Remove function.
8436 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8437 (x86_64_dwarf_reg_to_regnum): New function.
8438 (x86_64_register_name): Rewrite.
8439 (x86_64_register_raw_size): Remove function.
8440 (x86_64_register_byte_table): Remove variable.
8441 (x86_64_register_byte): Remove function.
8442 (x86_64_register_virtual_type): Remove function.
8443 (x86_64_register_type): New function.
8444 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8445 x86_64_register_convert_to_raw): Remove functions.
8446 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8447 (x86_64_use_struct_convention): Make static. Adjust for renamed
8448 defines.
8449 (x86_64_frame_init_saved_regs): Remove function.
8450 (x86_64_push_arguments): Make static. Change to accept a regcache
8451 as argument.
8452 (x86_64_store_return_value, x86_64_extract_return_value): Make
8453 static. Rewrite based on i386 counterparts.
8454 (x86_64_push_dummy_call): New function.
8455 (X86_64_NUM_SAVED_REGS): New define.
8456 (x86_64_register_number): Remove function.
8457 (x86_64_store_struct_return): Remove function.
8458 (x86_64_frameless_function_invocation,
8459 x86_64_function_has_prologue): Remove functions.
8460 (PROLOG_BUFSIZE): Remove define.
8461 (struct x86_64_frame_cache): New structure.
8462 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8463 x86_64_frame_cache, x86_64_frame_this_id,
8464 x86_64_frame_prev_register, x86_64_frame_p,
8465 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8466 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8467 functions.
8468 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8469 variables.
8470 (x86_64_skip_prologue): Rewrite in terms of
8471 x86_64_analyze_prologue.
8472 (x86_64_frame_base_address): New function.
8473 (x86_64_frame_base): New variable.
8474 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8475 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8476 set deprecated_fp_regnum, deprecated_register_size,
8477 deprecated_register_bytes, register_raw_size, register_byte,
8478 register_virtual_type, register_convertiable,
8479 register_convert_to_virtual, convert_to_raw,
8480 deprecated_get_saved_register, deprecated_target_read_fp,
8481 deprecated_push_arguments, deprecated_push_return_address,
8482 deprecated_pop_frame, deprecated_store_struct_return,
8483 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8484 frameless_function_invocation, deprecated_frame_saved_pc,
8485 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8486 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8487 deprecated_init_frame_pc and virtual_frame_pointer. Call
8488 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8489 and x86_64_frame_p. Call frame_base_set_default to register
8490 x86_64_frame_base.
8491 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8492 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8493 (_initialize_x86_64_tdep): Remove function.
8494 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8495 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8496 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8497 define.
8498 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8499 (x86_64_linux_sigcontext_addr): Rewrite.
8500 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8501 x86_64_linux_frame_saved_pc): Remove functions.
8502 (x86_64_linux_pc_in_sigtramp): Renamed from
8503 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8504 trampoline.
8505 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8506 Remove_functions.
8507 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8508 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8509 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8510 (x86_64_regmap): Rename to regmap.
8511 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8512 x86_64_num_gregs.
8513 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8514 x86_64_regmap.
8515 (x86_64_fxsave_offset): Remove function.
8516 (supply_fpregset): Simply call x86_64_supply_fxsave.
8517 (fill_fpregset): Simply call x86_64_fill_fxsave.
8518 (fetch_inferior_registers, store_inferior_registers): Avoid
8519 asignment in if-statement.
8520 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8521 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8522 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8523 (fetch_core_registers): Remove function.
8524 (linux_elf_core_fns): Remove.
8525 (offsetoff): Don't define.
8526 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8527 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8528 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8529 add core-regset.o.
8530 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8531 protection against multiple includes instead of NM_X86_64_h. Add
8532 various comments. Include "config/nm-linux.h". Don't include
8533 <signal.h>.
8534 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8535 GET_THREAD_SIGNALS): Remove defines.
8536 (x86_64_register_u_addr, kernel_u_size,
8537 lin_thread_get_thread_signals): Remove prototypes.
8538 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8539 [HAVE_LINK_H]: Don't include "solib.h".
8540 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8541 * config/i386/tm-x86-64linux.h: Fix comments.
8542 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8543 x86-64-tdep.o): Update dependencies.
8544
c25083af
AC
85452003-05-30 Andrew Cagney <cagney@redhat.com>
8546
c8f55a7b
AC
8547 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8548 Change parameter type to a "struct regcache *".
8549
c25083af
AC
8550 * gdbarch.sh: Regardless of the multi-arch level, always define
8551 the macro when not already defined.
8552 * gdbarch.h, gdbarch.c: Re-generate.
8553
fbe586ae
RH
85542003-05-30 Richard Henderson <rth@redhat.com>
8555
8556 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8557 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8558 (alpha_mdebug_frame_this_id): Likewise.
8559 (alpha_mdebug_frame_prev_register): Likewise.
8560 (alpha_mdebug_frame_base_address): Likewise.
8561 (alpha_mdebug_frame_locals_address): Likewise.
8562 (alpha_mdebug_frame_args_address): Likewise.
8563 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8564 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8565 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8566 loop increment.
8567 (alpha_heuristic_frame_this_id): Make static.
8568 (alpha_heuristic_frame_prev_register): Likewise.
8569 (alpha_heuristic_frame_base_address): Likewise.
8570 * alpha-tdep.h: Update.
8571
acd5c798
MK
85722003-05-30 Mark Kettenis <kettenis@gnu.org>
8573
8574 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8575 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8576 defenitions.
8577 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8578 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8579 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8580 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8581 I386_ST0_REGNUM): New defines.
8582 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8583 codestream_get): Remove define.
8584 (codestream_next_addr, condestream_addr, condestream_buf,
8585 codestream_off, codestream_cnt): Remove variables.
8586 (codestream_fill, codestream_seek, codestream_read): Remove
8587 functions.
8588 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8589 functionality.
8590 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8591 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8592 i386_frame_saved_pc, i386_saved_pc_after_call,
8593 i386_frame_num_args, i386_frame_init_saved_regs,
8594 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8595 i386_push_arguments): Remove functions.
8596 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8597 functionality. Use i386_analyze_prologue instead of
8598 i386_get_frame_setup.
8599 (I386_NUM_SAVED_REGS): New define.
8600 (struct i386_frame_cache): New structure.
8601 (i386_alloc_frame_cache, i386_analyze_struct_return,
8602 i386_skip_probe, i386_analyze_frame_setup,
8603 i386_analyze_register_saves, i386_analyze_prologue,
8604 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8605 i386_frame_prev_register, i386_sigtramp_frame_cache,
8606 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8607 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8608 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8609 New functions.
8610 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8611 New variables.
8612 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8613 I386_EAX_REGNUM and I386_EDX_REGNUM.
8614 (i386_extract_return_value, i386_store_return_value): Use
8615 I386_ST0_REGNUM where appropriate.
8616 (i386_extract_struct_value_address): Rewrite to use extract_address.
8617 (i386_svr4_pc_in_sigtramp): Add comment.
8618 (i386_svr4_sigcontext_addr): Rewrite.
8619 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8620 TDEP->sc_sp_offset.
8621 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8622 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8623 of new defines. Set push_dummy_call, don't set
8624 deprecated_push_arguments, deprecated_push_return_address,
8625 deprecated_pop_frame. Don't set parm_boundary. Don't set
8626 deprecated_frame_chain, deprecated_frame_saved_pc,
8627 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8628 save_dummy_frame_tos, unwind_pc. Call
8629 frame_unwind_append_predicate and frame_base_set_default. Don't
8630 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8631 Don't set frameless_function_invocation. Don't set
8632 deprecated_register_bytes, deprecated_register_size,
8633 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8634 * i386-linux-tdep.c: Fix formatting in some comments.
8635 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8636 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8637 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8638 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8639 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8640 redundant parentheses.
8641 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8642 (i386_linux_sigcontext_addr): Use it. Rewrite.
8643 (find_minsym_and_objfile): Change name of second argument.
8644 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8645 changed. Use frame_pc_unwind instead of
8646 DEPRECATED_SAVED_PC_AFTER_CALL.
8647 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8648 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8649 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8650 unwinder.
8651 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8652 "dummy-frame.h".
8653 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8654 (_initialize_i386_cygwin_tdep): New prototype.
8655 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8656 deprecated_frame_chain_valid.
8657 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8658 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8659 Rely on the SVR4 defaults.
8660 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8661 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8662
c89b70f1
AC
86632003-05-30 Andrew Cagney <cagney@redhat.com>
8664
8665 * infcall.c (call_function_by_hand): Always call
8666 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8667
85b32d22
RH
86682003-05-30 Richard Henderson <rth@redhat.com>
8669
c89b70f1
AC
8670 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8671 increment.
85b32d22 8672
bfe51b1e
JB
86732003-05-29 Jim Blandy <jimb@redhat.com>
8674
8675 Use gdbarch methods for solib stuff on PowerPC Linux.
8676 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8677 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8678 show through.
8679 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8680 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8681 giving the same effect as the #definitions above.
8682
1abf022c
AF
86832003-05-29 Adam Fedor <fedor@gnu.org>
8684
8685 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8686 (find_implementation_from_class): Replace it with the standard
8687 case i.e. do nothing.
8688
d2427a71
RH
86892003-05-29 Richard Henderson <rth@redhat.com>
8690
8691 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8692 (alpha_linux_sigtramp_offset): Use it. Make static.
8693 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8694 update for new frame model.
8695 * alpha-mdebug-tdep.c: New file.
8696 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8697 (alpha_osf1_init_abi): Install it.
8698 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8699 (linked_proc_desc_table): Remove.
8700 (alpha_frame_past_sigtramp_frame): Remove.
8701 (alpha_dynamic_sigtramp_offset): Remove.
8702 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8703 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8704 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8705 (push_sigtramp_desc): Remove.
8706 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8707 (alpha_cannot_store_register): Likewise.
8708 (alpha_sigcontext_addr): Remove.
8709 (alpha_find_saved_regs): Remove.
8710 (alpha_frame_init_saved_regs): Remove.
8711 (alpha_init_frame_pc_first): Remove.
8712 (read_next_frame_reg): Remove.
8713 (alpha_frame_saved_pc): Remove.
8714 (alpha_saved_pc_after_call): Remove.
8715 (temp_proc_desc, temp_saved_regs): Remove.
8716 (alpha_about_to_return): Remove.
8717 (cached_proc_desc): Remove.
8718 (alpha_frame_chain): Remove.
8719 (alpha_print_extra_frame_info): Remove.
8720 (alpha_init_extra_frame_info): Remove.
8721 (alpha_frame_locals_address): Remove.
8722 (alpha_frame_args_address): Remove.
8723 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8724 (alpha_push_dummy_frame): Remove.
8725 (alpha_pop_frame): Remove.
8726 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8727 (alpha_read_insn): New.
8728 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8729 for different insn encodings.
8730 (alpha_in_lenient_prologue): Remove.
8731 (struct alpha_sigtramp_unwind_cache): New.
8732 (alpha_sigtramp_frame_unwind_cache): New.
8733 (alpha_sigtramp_register_address): New.
8734 (alpha_sigtramp_frame_this_id): New.
8735 (alpha_sigtramp_frame_prev_register): New.
8736 (alpha_sigtramp_frame_unwind): New.
8737 (alpha_sigtramp_frame_p): New.
8738 (struct alpha_heuristic_unwind_cache): New.
8739 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8740 don't count nop insns that occur between functions.
8741 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8742 heuristic_proc_desc, but without the mdebug wrapping.
8743 (alpha_heuristic_frame_this_id): New.
8744 (alpha_heuristic_frame_prev_register): New.
8745 (alpha_heuristic_frame_unwind): New.
8746 (alpha_heuristic_frame_p): New.
8747 (alpha_heuristic_frame_base_address): New.
8748 (alpha_heuristic_frame_base): New.
8749 (alpha_unwind_dummy_id): New.
8750 (alpha_unwind_pc): New.
8751 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8752 frame related deprecated initializations; install replacements.
8753 (alpha_dump_tdep): Remove.
8754 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8755 (alpha_read_insn, alpha_after_prologue,
8756 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8757 alpha_heuristic_frame_prev_register,
8758 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8759 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8760 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8761 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8762
93ec1121
AC
87632003-05-29 Andrew Cagney <cagney@redhat.com>
8764
8765 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8766 dependant on the availability of ASSERT_FUNCTION.
8767 (ASSERT_FUNCTION): Do not define when there is no function name.
8768
98f08d3d
KB
87692003-05-29 Kevin Buettner <kevinb@redhat.com>
8770
8771 From Jimi X <jimix@watson.ibm.com>:
8772 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8773
0897f59b
JB
87742003-05-28 Jim Blandy <jimb@redhat.com>
8775
8776 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8777 argument to ptrace to int; the system headers should give it the
8778 right type, and pointers don't fit in ints on powerpc64-*-*.
8779
14898363
L
87802003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8781
8782 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8783 DW_TAG_catch_block.
8784
a7a48797
EZ
87852003-05-26 Elena Zannoni <ezannoni@redhat.com>
8786
8787 * stabsread.c (dbx_lookup_type): Make static.
8788 (read_type): Ditto.
8789 (add_undefined_type): Ditto.
8790 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8791 not export.
8792
f5479e9c
EZ
87932003-05-26 Elena Zannoni <ezannoni@redhat.com>
8794
8795 * hpread.c (hpread_has_name): Make static.
8796 (hpread_psymtab_to_symtab): Ditto.
8797 (file_exists): Ditto.
8798 (hpread_call_pxdb): Ditto.
8799 (hpread_pxdb_needed): Ditto.
8800 (hpread_quick_traverse): Ditto.
8801 (hpread_get_header): Ditto.
8802 (hpread_get_lntt): Ditto.
8803 (hpread_get_slt): Ditto.
8804 (class_of): Ditto.
8805
eb2e12d7
AS
88062003-05-25 Andreas Schwab <schwab@suse.de>
8807
78bf922a
AS
8808 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8809 stack_align and deprecated_extra_stack_alignment_needed.
8810 (m68k_stack_align): Delete.
8811
eb2e12d7
AS
8812 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8813 (m68k_register_virtual_size): Likewise.
8814 (altos_skip_prologue): Remove obsolete function.
8815 (isi_frame_num_args): Likewise.
8816 (news_frame_num_args): Likewise.
8817 (m68k_fix_call_dummy): Make static.
8818 (m68k_push_dummy_frame): Likewise.
8819 (m68k_pop_frame): Likewise.
8820 (m68k_skip_prologue): Likewise.
8821 (m68k_frame_init_saved_regs): Likewise.
8822 (m68k_saved_pc_after_call): Likewise.
8823 (m68k_get_longjmp_target): Make multi-arch.
8824 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8825 structure. Register m68k_get_longjmp_target if enabled.
8826 * m68k-tdep.h (struct gdbarch_tdep): Define.
8827 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8828
8829 * Makefile.in (config.status): Also depend on configure.tgt
8830 and configure.host.
8831 (m68klinux-tdep.o): Update dependencies.
8832 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8833 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8834 (M68K_LINUX_JB_PC): Define.
8835 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8836 and take additional parameter.
8837 (m68k_linux_sigtramp_saved_pc): Update.
8838 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8839 m68k_linux_pc_in_sigtramp, in_plt_section,
8840 find_solib_trampoline_target.
8841 * config/m68k/tm-linux.h: Don't include any tm headers.
8842 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8843 (JB_ELEMENT_SIZE): Likewise.
8844 (JB_PC): Likewise.
8845 (GET_LONGJMP_TARGET): Likewise.
8846 (IN_SIGTRAMP): Likewise.
8847 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8848
eb2c22dc
MK
88492003-05-25 Mark Kettenis <kettenis@gnu.org>
8850
8851 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8852 (sparc32_push_arguments): Re-implement by calling
8853 sparc32_do_push_arguments.
8854
44b7b84e
MK
88552003-05-25 Mark Kettenis <kettenis@gnu.org>
8856
8857 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8858 SPARC_O1_REGNUM): New defines.
8859 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8860 (sparc32_store_return_value): New function.
8861 (sparc_extract_struct_value_address): Rewrite to operate on a
8862 regcache.
8863 (sparc_gdbarch_init): Don't set
8864 deprecated_extract_struct_value_address. Set
8865 extract_struct_value_address instead. Don't set
8866 deprecated_extract_return_value and deprecated_store_return_value
8867 for 32-bit targets. Set extract_return_value and
8868 store_return_value instead.
8869 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8870 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8871 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8872 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8873 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8874 (sparc_store_return_value): Remove prototype.
8875 (sparc32_store_return_value): New prototype.
8876 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8877 Adjust prototypes.
8878
f6ad61e3
MK
88792003-05-24 Mark Kettenis <kettenis@gnu.org>
8880
8881 * sparcnbsd-tdep.c: Include "gdb_string.h".
8882
b276f1bb
AC
88832003-05-23 Andrew Cagney <cagney@redhat.com>
8884
8885 * p-valprint.c (pascal_val_print): Replace extract_address with
8886 the inline equivalent extract_unsigned_integer.
8887 * jv-valprint.c (java_value_print): Ditto.
8888 * ada-valprint.c (ada_val_print_1): Ditto.
8889 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8890
e76c5fcc
TR
88912003-05-23 Theodore A. Roth <troth@openavr.org>
8892
8893 * blockframe.c (frameless_look_for_prologue): Remove unused
8894 after_prologue variable.
8895
2cdd89cb
MK
88962003-05-23 Mark Kettenis <kettenis@gnu.org>
8897
8898 * blockframe.c (get_pc_function_start): Rewrite to avoid
8899 asignments in if-statements.
8900
182d43bc
EZ
89012003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8902
8903 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8904 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8905 files, don't relocate absolute symbols (and do use mst_abs).
8906
e8f3fcdd
AC
89072003-05-23 Andrew Cagney <cagney@redhat.com>
8908
8909 * objc-lang.c: Include "gdb_assert.h".
8910 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8911 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8912 (gdb_check, gdb_check_fatal): Delete functions.
8913 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8914 gdb_assert.
8915 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8916 * Makefile.in (objc-lang.o): Update dependencies.
8917
3c23e6fb
ILT
89182003-05-22 Ian Lance Taylor <ian@airs.com>
8919
8920 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8921 with fprintf_filtered, not fprintf_unfiltered.
8922
af1342ab
AC
89232003-05-22 Andrew Cagney <cagney@redhat.com>
8924
8925 * stack.c (frame_info): Inline extract_address, replacing it with
8926 extract_unsigned_integer.
8927 * findvar.c (unsigned_pointer_to_address): Ditto.
8928 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8929 * dwarf2expr.c (dwarf2_read_address): Ditto.
8930 * frame.c (frame_pc_unwind): Update comment.
8931 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8932
47e242ec
JJ
89332003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8934
8935 * infptrace.c (detach): Call print_sys_errmsg rather than
8936 perror_with_name to issue warning message when errno is non-zero
8937 after calling ptrace detach.
8938
e2ac8128
JB
89392003-05-21 J. Brobecker <brobecker@gnat.com>
8940
8941 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8942 macro definitions from here...
8943 * hppa-tdep.c: ...to there.
8944
92b3541e
KB
89452003-05-20 Kevin Buettner <kevinb@redhat.com>
8946
8947 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8948 register_ptrace_addr(). Fix all callers.
8949
55809acb
AS
89502003-05-21 Andreas Schwab <schwab@suse.de>
8951
8952 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8953 dependencies.
8954 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8955 end.
8956 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8957 (_initialize_m68k_linux_tdep): New function.
8958 (m68k_linux_frame_saved_pc): Make static.
8959 (m68k_linux_extract_return_value): Likewise.
8960 (m68k_linux_store_return_value): Likewise.
8961 (m68k_linux_extract_struct_value_address): Likewise.
8962 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8963 Remove.
8964 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8965 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8966 (DEPRECATED_FRAME_SAVED_PC): Remove.
8967
0fbc10f7
KW
89682003-05-20 Kris Warkentin <kewarken@qnx.com>
8969
8970 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8971 regset numbering rather than our own.
8972
58da2eb2
DC
89732003-05-19 David Carlton <carlton@bactrian.org>
8974
8975 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8976
1fcb5155
DC
89772003-05-19 David Carlton <carlton@bactrian.org>
8978
8979 Partial fix for PR c++/827.
8980 * cp-support.h: Include symtab.h.
8981 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8982 * cp-namespace.c: Update contributors.
8983 (cp_lookup_symbol_nonlocal): New.
8984 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8985 (lookup_symbol_file): Ditto.
8986 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8987 * block.h: Declare block_scope, block_using, block_global_block.
8988 * block.c (block_scope): New.
8989 (block_using, block_global_block): Ditto.
8990 * Makefile.in (cp_support_h): Depend on symtab_h.
8991 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8992
5f9a71c3
DC
89932003-05-19 David Carlton <carlton@bactrian.org>
8994
8995 * language.h (struct language_defn): Add 'la_value_of_this'
8996 and 'la_lookup_symbol_nonlocal' members.
8997 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8998 lookup_symbol_static, lookup_symbol_global,
8999 lookup_symbol_aux_block.
9000 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9001 if we should search fields of this and how to do static/global
9002 lookup.
9003 (lookup_symbol_aux_block): Make extern.
9004 (basic_lookup_symbol_nonlocal): New.
9005 (lookup_symbol_static, lookup_symbol_global): Ditto.
9006 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9007 'la_lookup_symbol_nonlocal' members.
9008 * c-lang.c (c_language_defn, cplus_language_defn)
9009 (asm_language_defn, minimal_language_defn): Ditto.
9010 * jv-lang.c (java_language_defn): Ditto.
9011 * language.c (unknown_language_defn, auto_language_defn)
9012 (local_language_defn): Ditto.
9013 * m2-lang.c (m2_language_defn): Ditto.
9014 * objc-lang.c (objc_language_defn): Ditto.
9015 * scm-lang.c (scm_language_defn): Ditto.
9016 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9017 * p-lang.c (pascal_language_defn): Ditto for both.
9018 * Makefile.in (f-lang.o): Depend on value_h.
9019 (p-lang.o): Ditto.
9020
89a9d1b1
DC
90212003-05-19 David Carlton <carlton@bactrian.org>
9022
9023 * block.h: Declare block_static_block.
9024 * block.c (block_static_block): New.
9025 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9026 lookup_symbol_aux_local, calling block_static_block instead.
9027 (lookup_symbol_aux_local): Delete 'static_block' argument.
9028
eed3f8ab
DC
90292003-05-19 David Carlton <carlton@bactrian.org>
9030
9031 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9032
a09d8bda
ML
90332003-05-19 Michal Ludvig <mludvig@suse.cz>
9034
9035 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9036 register numbers mapping.
9037
69636828
AF
90382003-05-18 Adam Fedor <fedor@gnu.org>
9039
9040 * symtab.c (completion_list_objc_symbol): New function.
9041 (make_symbol_completion_list): Use it to add ObjC symbols
9042 when looking though the list.
9043 (language_search_unquoted_string): New function.
9044 (make_file_symbol_completion_list): Use it.
9045
55baeb84
AS
90462003-05-18 Andreas Schwab <schwab@suse.de>
9047
d0b45d99
AS
9048 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9049 dependencies.
9050 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9051 as m68k_linux_extract_return_value.
9052 (DEPRECATED_STORE_RETURN_VALUE): Define as
9053 m68k_linux_store_return_value.
9054 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9055 m68k_linux_extract_struct_value_address.
9056 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9057 get_next_frame, get_frame_base, get_frame_pc.
9058 (m68k_linux_frame_saved_pc): Use get_frame_base.
9059 (m68k_linux_extract_return_value): New function.
9060 (m68k_linux_store_return_value): New function.
9061 (m68k_linux_extract_struct_value_address): New function.
9062 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9063
55baeb84
AS
9064 * c-exp.y (typebase): Remove duplicate occurence of
9065 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9066 of lookup_signed_typename.
55baeb84 9067
b6b08ebf
MK
90682003-05-18 Mark Kettenis <kettenis@gnu.org>
9069
9070 * dwarf2loc.c (find_location_expression): Change type of second
9071 argument to `size_t *'.
9072 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9073 for size variable.
9074
5ad1c190
DC
90752003-05-18 David Carlton <carlton@bactrian.org>
9076
9077 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9078 'linkage_name'. Add comment.
9079 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9080 'linkage_name'.
9081 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9082 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9083 (lookup_block_symbol): Ditto.
9084
b8b527c5
AC
90852003-05-16 Andrew Cagney <cagney@redhat.com>
9086
9087 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9088 * gdbarch.h, gdbarch.c: Re-generate.
9089 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9090 * TODO (REGISTER_BYTES): Delete reference.
9091 * alpha-tdep.c (alpha_gdbarch_init): Update.
9092 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9093 * x86-64-tdep.c (x86_64_init_abi): Update.
9094 * vax-tdep.c (vax_gdbarch_init): Update.
9095 * v850-tdep.c (v850_gdbarch_init): Update.
9096 * sparc-tdep.c (sparc_gdbarch_init): Update.
9097 * sh-tdep.c (sh_gdbarch_init): Update.
9098 * s390-tdep.c (s390_gdbarch_init): Update.
9099 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9100 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9101 (ns32k_gdbarch_init_32382): Update.
9102 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9103 * mcore-tdep.c (mcore_gdbarch_init): Update.
9104 * m68k-tdep.c (m68k_gdbarch_init): Update.
9105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9106 * ia64-tdep.c (ia64_gdbarch_init): Update.
9107 * i386-tdep.c (i386_gdbarch_init): Update.
9108 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9109 * hppa-tdep.c (hppa_gdbarch_init): Update.
9110 * h8300-tdep.c (h8300_gdbarch_init): Update.
9111 * frv-tdep.c (frv_gdbarch_init): Update.
9112 * cris-tdep.c (cris_gdbarch_init): Update.
9113 * avr-tdep.c (avr_gdbarch_init): Update.
9114 * arm-tdep.c (arm_gdbarch_init): Update.
9115 * sparc-tdep.c (sparc_pop_frame): Update.
9116 * rs6000-tdep.c (rs6000_pop_frame): Update.
9117 * remote.c (init_remote_state): Update.
9118 (remote_prepare_to_store): Update.
9119 * remote-vx.c (vx_prepare_to_store): Update.
9120 * remote-sds.c (sds_fetch_registers): Update.
9121 (sds_prepare_to_store): Update.
9122 * remote-array.c: Update.
9123 * regcache.c (init_legacy_regcache_descr): Update.
9124 (init_regcache_descr): Update.
9125 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9126 (mips_o64_extract_return_value): Update.
9127 * irix5-nat.c (fetch_core_registers): Update.
9128 * irix4-nat.c (fetch_core_registers): Update.
9129 * i386-tdep.h: Update.
9130 * hppa-tdep.c (pa_do_registers_info): Update.
9131 (pa_do_strcat_registers_info): Update.
9132 * cris-tdep.c (cris_register_bytes_ok): Update.
9133 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9134 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9135 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9136 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9137 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9138 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9139 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9140 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9141 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9142 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9143 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9144 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9145 (REGISTER_BYTES_OK): Update.
9146 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9147 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9148
ee2842e2
ILT
91492003-05-16 Ian Lance Taylor <ian@airs.com>
9150
9151 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9152 (vax_print_insn, print_insn_arg): Remove static functions.
9153 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9154 print_insn_vax from opcodes library.
9155 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9156
973177d3
AC
91572003-05-15 Andrew Cagney <cagney@redhat.com>
9158
aaab4dba
AC
9159 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9160 * target.h (memory_breakpoint_from_pc): Delete declaration.
9161 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9162 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9163 * monitor.c (monitor_insert_breakpoint): Use
9164 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9165 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9166 * gdbarch.h, gdbarch.c: Re-generate.
9167 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9168 (sparc_gdbarch_init): Set breakpoint_from_pc to
9169 sparc_breakpoint_from_pc.
9170 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9171 (BREAKPOINT_FROM_PC): Define.
9172 (sparc_breakpoint_from_pc): Declare.
9173 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9174 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9175 (BREAKPOINT_FROM_PC): Define.
9176 (BREAKPOINT): Delete macro.
9177 * target.h: Update comment.
9178 * s390-tdep.c (s390_gdbarch_init): Update comments.
9179 * remote.c: Update comments.
9180 * remote-mips.c: Update comments.
9181 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9182 * mem-break.c: Update comment.
9183 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9184 (ia64_memory_insert_breakpoint): Update.
9185 * config/sparc/tm-sparc.h: Update comment.
9186 * config/pa/tm-hppa64.h: Update comment.
9187 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9188 (rs6000_breakpoint_from_pc): Update.
9189 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9190 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9191 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9192 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9193 (mips_breakpoint_from_pc): Update.
9194 (mips_dump_tdep): Update.
9195
e06963ff
AC
9196 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9197 * minsyms.c (lookup_minimal_symbol): Inline
9198 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9199
973177d3
AC
9200 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9201 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9202 * p-lang.c (pascal_printstr): Ditto.
9203 * objc-lang.c (objc_printstr): Ditto.
9204 * m2-lang.c (m2_printstr): Ditto.
9205 * jv-valprint.c (java_print_value_fields): Ditto.
9206 * f-lang.c (f_printstr): Ditto.
9207 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9208 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9209 for repeat_count_threshold.
9210 * Makefile.in (cp-valprint.o): Update dependencies.
9211
5ea2bd7f 92122003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9213
5ea2bd7f
JJ
9214 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9215 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9216 they start with mov r2,r12. Support skipping over indirect stores
9217 of the input registers. Upon hitting a non-nop branch instruction
9218 or predicated instruction, bail out by setting lim_pc to the current
9219 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9220 beyond our calculated value and we have trust_limit set,
9221 use the lim_pc value.
9222
cc8c88f3
AC
92232003-05-15 Andrew Cagney <cagney@redhat.com>
9224
9225 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9226 generic_find_dummy_frame.
9227 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9228 (deprecated_generic_find_dummy_frame): Update.
9229 (deprecated_read_register_dummy): Update.
9230 * frame.c (deprecated_generic_get_saved_register): Update.
9231
909cd28e
TR
92322003-05-15 Theodore A. Roth <troth@openavr.org>
9233
9234 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9235 (avr_gdbarch_init): Set breakpoint_from_pc method.
9236
b923b08d
AC
92372003-05-15 Andrew Cagney <cagney@redhat.com>
9238
9239 * regcache.c (build_regcache): Set deprecated_register_valid
9240 directly.
9241 (deprecated_grub_regcache_for_register_valid): Delete function.
9242 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9243 declaration.
9244
ae2f03ac 92452003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9246
9247 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9248 * symtab.c (lookup_symbol_aux): Delete calls to
9249 lookup_symbol_aux_minsyms.
9250 (lookup_symbol_aux_minsyms): Comment out function and
9251 prototype. Delete lookup by mangled name.
ae2f03ac 9252
18ec9831
KB
92532003-05-14 Kevin Buettner <kevinb@redhat.com>
9254
9255 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9256 correctly indicate an empty stack and ``stack_allocated'' to the
9257 indicate the number of elements initially allocated.
9258 (dwarf_expr_grow_stack): Simplify method for computing new
9259 stack size. Don't loop infinitely if ``stack_len'' is zero.
9260 (execute_stack_op): Move ``ctx->in_reg'' initialization
9261 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9262 be used in conjuction with DW_OP_piece. Revise error message
9263 accordingly.
9264
de18ac1f
TR
92652003-05-14 Theodore A. Roth <troth@openavr.org>
9266
9267 * MAINTAINERS: Update my email address.
9268 * avr-tdep.c: Ditto.
9269
176620f1
EZ
92702003-05-14 Elena Zannoni <ezannoni@redhat.com>
9271
9272 * symtab.h (enum domain_enum): Rename from namespace_enum.
9273 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9274 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9275 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9276 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9277 TYPES_NAMESPACE, METHODS_NAMESPACE.
9278 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9279 (struct symbol, struct partial_symbol): Rename field
9280 'namespace_enum namespace' to 'domain_enum domain'.
9281 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9282 Delete old define kludge for namespace.
9283
9284 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9285 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9286 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9287 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9288 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9289 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9290 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9291 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9292 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9293 occurrences of the above.
9294
b7f31508
ILT
92952003-05-14 Ian Lance Taylor <ian@airs.com>
9296
9297 * Makefile.in (install-only): Use $(SHELL) when running
9298 mkinstalldirs.
9299
2fdbdd39
ILT
93002003-05-13 Ian Lance Taylor <ian@airs.com>
9301
a208d82c
ILT
9302 * MAINTAINERS (write after approval): Add myself.
9303
2fdbdd39
ILT
9304 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9305 second and third arguments.
9306 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9307 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9308
fbd9dcd3
AC
93092003-05-13 Andrew Cagney <cagney@redhat.com>
9310
9311 * defs.h (store_address): Delete declaration.
9312 findvar.c (store_address): Delete function.
9313 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9314 store_unsigned_integer.
9315 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9316 * v850-tdep.c (v850_push_arguments): Ditto.
9317 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9318 * sh-tdep.c (sh64_get_saved_register): Ditto.
9319 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9320 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9321 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9322 (mips_get_saved_register): Ditto.
9323 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9324 (find_func_descr, ia64_push_arguments): Ditto.
9325 * i386-tdep.c (i386_push_arguments): Ditto.
9326 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9327 * frv-tdep.c (frv_push_arguments): Ditto.
9328 * frame.c (legacy_saved_regs_prev_register): Ditto.
9329 (deprecated_generic_get_saved_register): Ditto.
9330 * findvar.c (unsigned_address_to_pointer): Ditto.
9331 * dwarf2read.c (dwarf2_const_value): Ditto.
9332 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9333 * alpha-tdep.c (alpha_push_arguments): Ditto.
9334
6760f9e6
JB
93352003-05-12 J. Brobecker <brobecker@gnat.com>
9336
9337 * NEWS: Mention that the hppa-hpux port has been partially
9338 multiarched (32bit ABIT only, so far).
9339
30e221b4
AC
93402003-05-11 Andrew Cagney <cagney@redhat.com>
9341
9342 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9343 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9344 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9345 sim/testsuite/sim/arm/misaligned2.ms, and
9346 sim/testsuite/sim/arm/misaligned3.ms.
9347 * disasm.h (struct ui_file): Add opaque struct declaration.
9348 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9349 * frame.h (struct ui_file): Ditto.
9350
dea7f9ba
MK
93512003-05-11 Mark Kettenis <kettenis@gnu.org>
9352
9353 * value.h: Pretty print.
9354
01986c48
MK
93552003-05-10 Mark Kettenis <kettenis@gnu.org>
9356
9357 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9358
123a958e
AC
93592003-05-08 Andrew Cagney <cagney@redhat.com>
9360
9361 * regcache.h (max_register_size): Delete declaration.
9362 * regcache.c (max_register_size): Delete function.
9363 (struct regcache_descr): Delete field "max_register_size".
9364 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9365 registers fit in MAX_REGISTER_SIZE.
9366 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9367 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9368 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9369 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9370 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9371 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9372 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9373 * dve3900-rom.c, hppa-tdep.c: Ditto.
9374
eb294659
DC
93752003-05-08 David Carlton <carlton@math.stanford.edu>
9376
9377 * valops.c (push_word): Fix typo.
9378
d9d9c31f
AC
93792003-05-08 Andrew Cagney <cagney@redhat.com>
9380
9381 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9382 * gdbarch.h: Re-generate.
9383 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9384 (legacy_max_register_raw_size): Delete declaration.
9385 * regcache.c (legacy_max_register_raw_size): Delete function.
9386 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9387 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9388 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9389 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9390 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9391 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9392 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9393 * findvar.c, dwarf2cfi.c: Ditto.
9394
22540ece
AC
93952003-05-08 Andrew Cagney <cagney@redhat.com>
9396
9397 * mips-tdep.c (read_signed_register): New function, moved to here
9398 from "regcache.c".
9399 (read_signed_register_pid): Ditto.
9400 * regcache.c (read_signed_register_pid): Delete function, moved to
9401 "mips-tdep.c".
9402 (read_signed_register): Ditto.
9403 * regcache.h (read_signed_register): Delete declaration.
9404 (read_signed_register_pid): Delete declaration.
9405
0c92afe8
AC
94062003-05-08 Andrew Cagney <cagney@redhat.com>
9407
9408 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9409 * gdbarch.h: Re-generate.
9410 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9411 (legacy_max_register_virtual_size): Delete declaration.
9412 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9413 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9414 * tracepoint.c (memrange_sortmerge): Ditto.
9415 * sparc-tdep.c (sparc_print_registers): Ditto.
9416 * regcache.c (legacy_max_register_virtual_size): Delete function.
9417
6037b830
JB
94182002-05-08 J. Brobecker <brobecker@gnat.com>
9419
9420 * fork-child.c (escape_bang_in_quoted_argument): New function.
9421 (fork_inferior): Escape '!' characters in quoted arguments
9422 only when needed.
9423
5d62c8b1
JB
94242003-05-08 J. Brobecker <brobecker@gnat.com>
9425
9426 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9427 the language of the CU is not currently supported by GDB.
9428
20a0e81d
JB
94292003-05-08 J. Brobecker <brobecker@gnat.com>
9430
9431 * defs.h (language): Add language_minimal enum value.
9432 * c-lang.c (minimal_language_defn): New language definition.
9433 (_initialize_c_language): Add the new minimal language to the list
9434 of languages known to GDB.
9435
710ee10a
KB
94362003-05-08 Kevin Buettner <kevinb@redhat.com>
9437
9438 * frame.c (get_frame_type): Don't attempt to lazily initialize
9439 frame's unwinder for legacy frames.
9440
1750fa04
AC
94412003-05-07 Andrew Cagney <cagney@redhat.com>
9442
9443 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9444 and "regcache" parameters.
9445 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9446
ddf9f258 94472003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9448
9449 * dwarf2read.c (dwarf_decode_lines): Only use output of
9450 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9451 the current address.
9452
87767c29
AC
94532003-05-07 Andrew Cagney <cagney@redhat.com>
9454
9455 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9456 code.
9457
5e7b2f39
JB
94582003-05-07 Jim Blandy <jimb@redhat.com>
9459
9460 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9461 'maint info symtabs' and 'maint info psymtabs'.
9462 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9463 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9464 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9465 Declarations updated.
9466 * maint.c (maintenance_list_command): Delete.
9467 (_initialize_maint_cmds): Update calls to add_cmd.
9468 * gdbcmd.h (maintenancelistlist): Delete declaration.
9469 * cli/cli-cmds.c (maintenancelistlist): Delete.
9470 (init_cmd_lists): Don't initialize it.
9471 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9472
f6684c31
AC
94732003-05-07 Andrew Cagney <cagney@redhat.com>
9474
9475 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9476 "regcache".
9477 (d10v_print_registers_info): Update.
9478 (d10v_dmap_register, d10v_imap_register): Delete functions.
9479 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9480 and "imap_register".
9481 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9482 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9483 * arch-utils.c (generic_remote_translate_xfer_address): Add
9484 "regcache" and "gdbarch" parameters.
9485 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9486 parameter. Change class to multi-arch.
9487 * gdbarch.h, gdbarch.c: Re-generate.
9488 * remote.c (remote_xfer_memory): Use
9489 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9490
e4846b08
JJ
94912003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9492
9493 * infrun.c (prev_pc): Move declaration ahead of proceed().
9494 (proceed): Refresh prev_pc value before resuming.
9495 (stop_stepping): Remove code to refresh prev_pc.
9496
6b71b8ac
KW
94972003-05-06 Kris Warkentin <kewarken@qnx.com>
9498
9499 * nto-tdep.c: Removed stray comment.
9500
47979a4b
KW
95012003-05-06 Kris Warkentin <kewarken@qnx.com>
9502
9503 * i386-nto-tdep.c: Fix old K&R function definitions.
9504 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9505 Also change add_show_from_set() call to add_setshow_cmd().
9506 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9507
00905d52
AC
95082003-05-05 Andrew Cagney <cagney@redhat.com>
9509
9510 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9511 (fprint_dummy_frames): New function.
9512 (maintenance_print_dummy_frames): New function.
9513 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9514 * frame.c (fprint_frame_id): Make global.
9515 * frame.h (fprint_frame_id): Declare.
9516 * Makefile.in (dummy-frame.o): Update dependencies.
9517
b1e29e33
AC
95182003-05-05 Andrew Cagney <cagney@redhat.com>
9519
9520 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9521 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9522 SIZEOF_CALL_DUMMY_WORDS.
9523 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9524 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9525 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9526 CALL_DUMMY_BREAKPOINT_OFFSET.
9527 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9528 CALL_DUMMY_START_OFFSET.
9529 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9530 * gdbarch.h, gdbarch.c: Re-generate.
9531 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9532 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9533 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9534 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9535 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9536 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9537 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9538 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9539 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9540 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9541 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9542 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9543 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9544 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9545 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9546
95472003-05-05 Kris Warkentin <kewarken@qnx.com>
9548
9549 * configure.tgt: Add i[3456]86-*-nto*.
9550 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9551 * nto-tdep.c: New file. Neutrino target support routines.
9552 * nto-tdep.h: New file. Neutrino target header.
9553 * config/tm-qnxnto.h: New file.
9554 * config/i386/i386nto.mt: New file.
9555 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9556
0ce3d317
AC
95572003-05-04 Andrew Cagney <cagney@redhat.com>
9558
9559 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9560 (load_infrun_state): Ditto.
9561 (struct thread_info): Drop "prev_func_name" field.
9562 * thread.c (load_infrun_state): Update.
9563 (save_infrun_state): Update.
9564 * infrun.c (prev_func_name): Delete variable.
9565 (init_wait_for_inferior): Do not clear prev_func_name.
9566 (stop_stepping, keep_going, context_switch): Do not swap
9567 prev_func_name.
9568 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9569 instead of PC_IN_SIGTRAMP.
9570
46654a5b
AC
95712003-05-04 Andrew Cagney <cagney@redhat.com>
9572
9573 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9574 REGISTER_BYTE with register_offset_hack.
9575 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9576 that REGISTER_BYTE is consistent with the regcache.
9577 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9578 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9579
14b08c1b
MK
95802003-05-04 Mark Kettenis <kettenis@gnu.org>
9581
04c8243f
MK
9582 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9583 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9584
14b08c1b
MK
9585 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9586
c7a11e01
JB
95872003-05-03 J. Brobecker <brobecker@gnat.com>
9588
9589 From Thierry Schneider <tpschneider1@yahoo.com>
9590 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9591 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9592 (mi-cmd-symbol.o): Add rule.
9593
7043d8dc
AC
95942003-05-03 Andrew Cagney <cagney@redhat.com>
9595
9596 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9597 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9598 * gdbarch.h, gdbarch.c: Re-generate.
9599 * d10v-tdep.c (d10v_push_dummy_code): New function.
9600 (d10v_gdbarch_init): Set push_dummy_code.
9601 * infcall.c (legacy_push_dummy_code): New function.
9602 (generic_push_dummy_code): New function.
9603 (push_dummy_code): New function.
9604 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9605 instead of dummy_addr, to push_dummy_call. Move call to
9606 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9607 switch.
9608 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9609
92bf2b80
AC
96102003-05-03 Andrew Cagney <cagney@redhat.com>
9611
9612 * disasm.h (print_insn): Declare.
9613 * disasm.c (init_gdb_disassemble_info): New function.
9614 (gdb_disassembly): Call init_gdb_disassemble_info.
9615 (gdb_print_insn): New function.
9616 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9617 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9618 * mcore-tdep.c: Include "disasm.h"
9619 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9620 * d10v-tdep.c: Include "disasm.h".
9621 (display_trace): Call gdb_print_insn, instead of print_insn.
9622 (print_insn): Delete function.
9623 * printcmd.c: Include "disasm.h".
9624 (print_insn): Delete function.
9625 (print_formatted): Call gdb_print_insn, instead of print_insn.
9626 * Makefile.in (printcmd.o): Update dependencies.
9627 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9628
27d94c49
AC
96292003-05-02 Andrew Cagney <cagney@redhat.com>
9630
82de1e5b
AC
9631 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9632 PC_REGNUM, re-indent.
9633 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9634 PC_REGNUM isn't set.
9635
27d94c49
AC
9636 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9637 * gdbarch.h, gdbarch.c: Re-generate.
9638 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9639 register_virtual_size, pc_regnum, or register_bytes.
9640 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9641 (d10v_register_type): Use D10V_PC_REGNUM.
9642 (d10v_print_registers_info, d10v_read_pc): Ditto.
9643 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9644 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9645
a9c0dc7f
DC
96462003-05-02 David Carlton <carlton@bactrian.org>
9647
9648 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9649 the name with mstrsave.
9650
e33d66ec
EZ
96512003-05-02 Elena Zannoni <ezannoni@redhat.com>
9652
9653 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9654 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9655 (host_charset_name, target_charset_name): New vars for use by
9656 set/show commands.
9657 (host_charset_enum, target_charset_enum): New enums for set/show
9658 commands.
9659 (set_charset_sfunc, set_host_charset_sfunc,
9660 set_target_charset_sfunc): New functions.
9661 (set_host_charset, set_target_charset): Make static.
9662 (list_charsets, set_host_charset_command,
9663 set_target_charset_command): Delete functions.
9664 (show_charset_command): Rewrite as....
9665 (show_charset): Hook this up with the set/show command mechanism.
9666 (_initialize_charset): Change names of charsets to match the
9667 set/show enums. Use host_charset_name and target_charset_name.
9668 Use set/show mechanism for charset, host-charset, target-charset
9669 commands. Do not make 'show host-charset' and 'show
9670 target-charset' be aliases of 'show charset'.
9671
9672 * charset.h (set_host_charset, set_target_charset): Don't export,
9673 they are not used outside the file.
9674
2b6fd0d8
AC
96752003-05-01 Andrew Cagney <cagney@redhat.com>
9676
9677 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9678 (gdb_disassembly): Make "di" non static, always initialize and
9679 cleanup. Always use dis_asm_read_memory.
9680 (gdb_dis_asm_read_memory): Delete function.
9681
6ae2f580
AC
96822003-05-01 Andrew Cagney <cagney@redhat.com>
9683
9684 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9685 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9686
810ecf9f
AC
96872003-04-30 Andrew Cagney <cagney@redhat.com>
9688
9689 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9690 "tm_print_insn_info".
9691 (TARGET_PRINT_INSN_INFO): Delete macro.
9692 (dis_asm_read_memory): Delete function declaration.
9693 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9694 (tm_print_insn_info): Delete variable definition.
9695 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9696 * gdbarch.h, gdbarch.c: Re-generate.
9697 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9698 "deprecated_tm_print_insn_info".
9699 * mcore-tdep.c (mcore_dump_insn): Ditto.
9700 * mips-tdep.c (mips_gdbarch_init): Ditto.
9701 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9702 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9703 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9704 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9705 instead of TARGET_PRINT_INSN_INFO, add comment.
9706 * s390-tdep.c (s390_get_frame_info): Instead of
9707 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9708 (s390_check_function_end, s390_is_sigreturn): Ditto.
9709 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9710 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9711 * disasm.c: Include "gdbcore.h".
9712 (_initialize_disasm): New function, initialize
9713 "deprecated_tm_print_insn_info".
9714 (deprecated_tm_print_insn_info): New variable.
9715 (dis_asm_read_memory): Moved from "corefile.c", made static.
9716 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9717 * Makefile.in (disasm.o): Update dependencies.
9718
07020390
AC
97192003-04-30 Andrew Cagney <cagney@redhat.com>
9720
9721 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9722
a9fa03de
AF
97232003-04-29 Adam Fedor <fedor@gnu.org>
9724
9725 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9726 * infcall.c (find_function_addr): Make non-static.
9727 * infcall.h (find_function_addr): Declare.
9728 * Makefile.in (eval.o): Update dependencies.
9729
1bae87b9
AF
97302003-04-28 Adam Fedor <fedor@gnu.org>
9731
9732 * symtab.c (symbol_find_demangled_name): Check for and demangle
9733 ObjC symbols.
9734 (symbol_init_demangled_name): Init for language_objc as well.
9735
0ba6dca9
AC
97362003-04-28 Andrew Cagney <cagney@redhat.com>
9737
9738 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9739 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9740 * gdbarch.h, gdbarch.c: Re-generate.
9741 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9742 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9743 * inferior.h (deprecated_read_fp): Rename read_fp.
9744 (generic_target_read_fp): Delete declaration.
9745 * regcache.c (generic_target_read_fp): Delete function.
9746 (deprecated_read_fp): Replace read_fp, use
9747 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9748 * d10v-tdep.c (d10v_read_fp): Delete function.
9749 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9750
9751 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9752 deprecated_target_read_fp to generic_target_read_fp.
9753 * sh-tdep.c (sh_gdbarch_init): Ditto.
9754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9756 * frv-tdep.c (frv_gdbarch_init): Ditto.
9757
9758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9759 deprecated_fp_regnum.
9760 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9761 * vax-tdep.c (vax_gdbarch_init): Ditto.
9762 * v850-tdep.c (v850_gdbarch_init): Ditto.
9763 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9764 * sh-tdep.c (sh_gdbarch_init): Ditto.
9765 * s390-tdep.c (s390_gdbarch_init): Ditto.
9766 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9767 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9768 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9769 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9771 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9772 * i386-tdep.c (i386_gdbarch_init): Ditto.
9773 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9774 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9775 * frv-tdep.c (frv_gdbarch_init): Ditto.
9776 * cris-tdep.c (cris_gdbarch_init): Ditto.
9777 * avr-tdep.c (avr_gdbarch_init): Ditto.
9778 * arm-tdep.c (arm_gdbarch_init): Ditto.
9779 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9780
9781 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9782 * v850-tdep.c (v850_gdbarch_init): Ditto.
9783 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9784 * sh-tdep.c (sh_gdbarch_init): Ditto.
9785 * s390-tdep.c (s390_gdbarch_init): Ditto.
9786 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9787 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9788 * mips-tdep.c (mips_gdbarch_init): Ditto.
9789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9791 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9792 * frv-tdep.c (frv_gdbarch_init): Ditto.
9793 * avr-tdep.c (avr_gdbarch_init): Ditto.
9794 * arm-tdep.c (arm_gdbarch_init): Ditto.
9795
9796 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9797 DEPRECATED_FP_REGNUM.
9798 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9799 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9800 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9801 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9802 (sparc32_register_virtual_type): Ditto.
9803 * sh-tdep.c (sh64_frame_chain): Ditto.
9804 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9805 (sh_nofp_frame_init_saved_regs): Ditto.
9806 (sh64_nofp_frame_init_saved_regs): Ditto.
9807 (sh_fp_frame_init_saved_regs): Ditto.
9808 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9809 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9810 * procfs.c (procfs_fetch_registers): Ditto.
9811 (procfs_store_registers): Ditto.
9812 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9813 (store_inferior_registers, fetch_core_registers): Ditto.
9814 (fetch_kcore_registers, clear_regs): Ditto.
9815 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9816 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9817 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9818 * nlm/i386.c (do_status): Ditto.
9819 * mipsv4-nat.c (supply_gregset): Ditto.
9820 * mips-tdep.c: Ditto for comments.
9821 * mips-nat.c (fetch_inferior_registers): Ditto.
9822 (store_inferior_registers, fetch_core_registers): Ditto.
9823 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9824 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9825 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9826 (i386_do_pop_frame, i386_register_type): Ditto.
9827 * hppa-tdep.c (hppa_frame_chain): Ditto.
9828 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9829 (hppa_pop_frame, hppa_read_fp): Ditto.
9830 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9831 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9832 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9833 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9834 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9835 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9836 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9837 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9838 * blockframe.c: Ditto for comments.
9839 * arch-utils.h: Ditto for comments.
9840 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9841 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9842 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9843 * alpha-tdep.h: Ditto for comments.
9844 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9845 (alpha_cannot_store_register): Ditto.
9846 (alpha_push_dummy_frame): Ditto.
9847 * alpha-nat.c (supply_gregset): Ditto.
9848
9849 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9850 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9851 * config/sparc/tm-sparc.h: Update comment.
9852
9853 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9854 deprecated_read_fp instead of TARGET_READ_FP.
9855 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9856 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9857 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9858 deprecated_read_fp instead of read_fp.
9859 * s390-tdep.c (s390_push_arguments): Ditto.
9860 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9861 * frame.h: Ditto in comments.
9862 * frame.c (legacy_get_prev_frame): Ditto.
9863 * dummy-frame.c (dummy_frame_this_id): Ditto.
9864 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9865
d7a27068
AC
98662003-04-28 Andrew Cagney <cagney@redhat.com>
9867
9868 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9869 * gdbarch.h, gdbarch.c: Re-generate.
9870 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9871 * vax-tdep.c (_initialize_vax_tdep): Update.
9872 * v850-tdep.c (_initialize_v850_tdep): Update.
9873 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9874 * s390-tdep.c (_initialize_s390_tdep): Update.
9875 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9876 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9877 * mips-tdep.c (_initialize_mips_tdep): Update.
9878 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9879 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9880 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9881 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9882 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9883 * frv-tdep.c (_initialize_frv_tdep): Update.
9884 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9885 (_initialize_cris_tdep): Update.
9886 * arch-utils.c (legacy_print_insn): Update.
9887 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9888
d2630e69
AF
98892003-04-26 Adam Fedor <fedor@gnu.org>
9890
9891 * linespec.c (decode_objc): New function to decode ObjC calls
9892 (decode_line_1): Check for ObjC calls (using decode_objc)
9893 * Makefile (linespec.o): Update dependencies.
9894
3086aeae
DJ
98952003-04-26 Daniel Jacobowitz <drow@mvista.com>
9896
9897 * breakpoint.h (struct breakpoint_ops): New.
9898 (struct breakpoint): Add ops member.
9899
9900 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9901 (mention): Use new breakpoint ops member.
9902 (set_raw_breakpoint): Initialize ops field to NULL.
9903 (print_exception_catchpoint, print_one_exception_catchpoint)
9904 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9905 (gnu_v3_exception_catchpoint_ops): New.
9906 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9907
1fbec6c3
AF
99082003-04-25 Adam Fedor <fedor@gnu.org>
9909
9910 * Makefile.in (COMMON_OBS): Add objc-lang.o
9911
0ef21242
AC
99122003-04-25 Andrew Cagney <cagney@redhat.com>
9913
9914 * d10v-tdep.c (print_insn): Delete function.
9915 (display_trace): Use TARGET_PRINT_INSN.
9916 (_initialize_d10v_tdep): Do not set tm_print_insn.
9917 (d10v_gdbarch_init): Set print_insn.
9918
f75493ed
AC
99192003-04-25 Andrew Cagney <cagney@redhat.com>
9920
9921 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9922 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9923 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9924 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9925 (nr_dmap_regs, a0_regnum): ... new functions.
9926 (d10v_print_registers_info): Use a0_regnum, use register_size.
9927 (d10v_register_byte): Delete function.
9928 (d10v_register_raw_size): Delete function.
9929 (d10v_register_type): Use a0_regnum.
9930 (d10v_print_registers_info): Use a0_regnum.
9931 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9932 (d10v_gdbarch_init): Do not set register_byte or
9933 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9934 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9935 extract_address.
9936 (trace_command): Use XCALLOC.
9937 (print_insn): Delete reference to tm_print_insn.
9938 (saved_regs_unwinder): Use store_unsigned_integer instead of
9939 store_address.
9940 * frame.h (FRAME_OBSTACK_CALLOC): Define
9941
2202b100
DC
99422003-04-25 David Carlton <carlton@bactrian.org>
9943
9944 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9945
4e45ca2e
AF
99462003-04-24 Adam Fedor <fedor@gnu.org>
9947
9948 * objc-lang.c: Include "valprint.h"
9949 * Makefile.in (objc-lang.o): Update dependencies.
9950
93de3e7f
AF
99512003-04-24 Adam Fedor <fedor@gnu.org>
9952
8ffd9b1b 9953 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9954 architecture dependant compilation and mark as unimplemented
9955 (until they get put in the gdbarch vector).
9956
0f20eeea
DC
99572003-04-23 David Carlton <carlton@bactrian.org>
9958
9959 * cp-support.c (cp_find_first_component): Accept 'operator' in
9960 more locations.
9961
74cfe982
AC
99622003-04-23 Andrew Cagney <cagney@redhat.com>
9963
9964 * infcall.c (call_function_by_hand): Eliminate redundant
9965 indentation. Move "saved_async" and "old_cleanups" to where they
9966 are needed.
8ffd9b1b 9967
52557533
AC
99682003-04-23 Andrew Cagney <cagney@redhat.com>
9969
9970 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9971 and "buffer". Move the "name" code to where it is needed.
9972
158775de
AC
99732003-04-23 Andrew Cagney <cagney@redhat.com>
9974
9975 * infcall.c (call_function_by_hand): Move variables "start_sp",
9976 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9977 code to ON_STACK switch branch.
8ffd9b1b 9978
ebc7896c
AC
99792003-04-23 Andrew Cagney <cagney@redhat.com>
9980
9981 * infcall.c (call_function_by_hand): Make declaration of "i",
9982 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9983 lint.
9984
d727590f
AC
99852003-04-23 Andrew Cagney <cagney@redhat.com>
9986
9987 * infcall.c (call_function_by_hand): Delete variable
9988 "n_method_args". Localize "param_type"'s declaration to the loop
9989 that it is used. Reinstate code assigning to said variable -
9990 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9991 Rationalize code using "param_type".
9992
d585e13a
AC
99932003-04-22 Andrew Cagney <cagney@redhat.com>
9994
9995 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9996 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9997 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9998 to DEPRECATED_PUSH_RETURN_ADDRESS.
9999
051caad9
KB
100002003-04-22 Kevin Buettner <kevinb@redhat.com>
10001
10002 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10003 on the DWARF2 register number prior to fetching a register.
10004
77296879
JB
100052003-04-22 J. Brobecker <brobecker@gnat.com>
10006
10007 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10008 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10009 this macro was always set to 0.
77296879
JB
10010 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10011 considering the fact that this macro was always set to 0.
10012 * hppa-tdep.h (hppa_store_return_value): Likewise.
10013 (hppa_extract_return_value): Likewise.
10014
4252f1df
JB
100152003-04-22 J. Brobecker <brobecker@gnat.com>
10016
10017 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10018 the hppa-pro target only.
10019
14604c6b
JB
100202003-04-21 J. Brobecker <brobecker@gnat.com>
10021
10022 Ongoing multi-arch conversion effort for HP/UX:
10023 * config/pa/tm-hppa.h: Move all macro that are no longer
10024 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10025 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10026
77eb01d1
JB
100272003-04-21 J. Brobecker <brobecker@gnat.com>
10028
10029 * config/pa/tm-hppa.h: Obsolete a section that was only used
10030 for hppa-pro.
10031
61995b3b
JB
100322003-04-21 J. Brobecker <brobecker@gnat.com>
10033
10034 Ongoing multi-arch conversion for HP/UX.
10035 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10036 if already defined (allows hppa64 to stay non-multiarched for now).
10037 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10038
4aa79dcc
AC
100392003-04-21 Andrew Cagney <cagney@redhat.com>
10040
10041 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10042
0f751ff2
AC
100432003-04-21 Andrew Cagney <cagney@redhat.com>
10044
10045 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10046 "i386_num_mmx_regs".
10047
04714b91
AC
100482003-04-21 Andrew Cagney <cagney@redhat.com>
10049
10050 * infcall.c: New file.
10051 * infcall.h: New file.
10052 * valarith.c: Include "infcall.h".
10053 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10054 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10055 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10056 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10057 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10058 (SFILES): Add "infcall.c"
10059 (COMMON_OBS): Add "infcall.o".
10060 (infcall.o): Specify dependencies.
10061 * value.h (call_function_by_hand): Delete declaration.
10062 * inferior.h (run_stack_dummy): Delete declaration.
10063 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10064 (run_stack_dummy): Move to "infcall.c", merged into
10065 call_function_by_hand.
10066 * valops.c (call_function_by_hand): Moved to "infcall.c".
10067 (find_function_addr, value_arg_coerce): Ditto.
10068 (unwindonsignal_p, coerce_float_to_double): Ditto.
10069 (_initialize_valops): Move "set/show coerce-float-to-double", and
10070 "set/show unwindonsignal" commands to "infcall.c".
10071 * v850-tdep.c, target.h: Update comments.
10072 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10073 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10074 (sh64_init_extra_frame_info): Update comments.
10075 * mn10300-tdep.c: Update comments.
10076 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10077 * config/sparc/tm-sparc.h: Update comments.
10078 * breakpoint.h: Update comments.
10079 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10080 * arm-tdep.c: Update comment.
10081
f9d3c2a8
MK
100822003-04-19 Mark Kettenis <kettenis@gnu.org>
10083
c40e1eab
MK
10084 * i386-tdep.c (i386_num_register_names): New variable.
10085 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10086 (MM0_REGNUM): Remove redundant parentheses in define.
10087 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10088 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10089 i386_mxcsr_regnum_p): Remove redundant parentheses.
10090 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10091
94ea66b3
MK
10092 * i386-tdep.c (i386_extract_return_value,
10093 i386_store_return_value): Correct check for availability of
10094 floating-point registers.
10095
54299a1d
MK
10096 * i386-tdep.c (i386_frame_num_args): Remove function.
10097 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10098
c86c27af
MK
10099 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10100 mmx_regnum_to_fp_regnum. Adjust all callers.
10101
f9d3c2a8
MK
10102 * i386-tdep.c (i386_get_longjmp_target): Use
10103 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10104 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10105 extract_address.
10106
94ba74a9
MK
101072003-04-19 Mark Kettenis <kettenis@gnu.org>
10108
10109 * core-regset.c: Update comments to reflect reality. Re-order
10110 includes.
10111 (fetch_core_registers): Use switch instead of if. Remove
10112 redundant prototype.
10113
4074e13c
JB
101142003-04-18 Jim Blandy <jimb@redhat.com>
10115
10116 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10117 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10118
e3ab4aba
RH
101192003-04-17 Richard Henderson <rth@redhat.com>
10120
10121 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10122
627bf7c1
EZ
101232003-04-17 Michael Snyder <msnyder@redhat.com>
10124 Karen Bennet <bennet@redhat.com>
10125
10126 Committed by Elena Zannoni <ezannoni@redhat.com>
10127 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10128
514621a9
EZ
101292003-04-17 Elena Zannoni <ezannoni@redhat.com>
10130
10131 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10132 value if the return type is void.
514621a9 10133
b4acd559
JJ
101342003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10135
10136 * thread-db.c: Reindented.
8ffd9b1b 10137
530b167e 101382003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10139
10140 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10141 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10142 as types.
10143
0a48e7e8
MS
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
8ffd9b1b 10167
ab9fe00e
KB
101682003-04-16 Kevin Buettner <kevinb@redhat.com>
10169
610a3745 10170 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10171 the size of ``long double'' to 16, instead of 8.
10172
e64a344c
MK
101732003-04-16 Mark Kettenis <kettenis@gnu.org>
10174
10175 * i386-linux-nat.c: Add some whitespace to make things more
10176 readable.
10177 (fetch_register, store_register, fetch_inferior_registers,
10178 store_inferior_registers): Get rid of assignment in if-statement.
10179 (store_register): Fix typo in error message.
10180
25d41031
AC
101812003-04-16 Andrew Cagney <cagney@redhat.com>
10182
10183 * utils.c (xmmalloc): Always allocate something, matches
10184 libiberty/xmalloc's semantics.
10185 (xmrealloc, xmcalloc): Ditto.
10186
c50901fd
AC
101872003-04-16 Andrew Cagney <cagney@redhat.com>
10188
10189 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10190 update comments.
10191 (get_frame_type): Initialize unwind and type when needed.
10192 (get_frame_id, frame_register_unwind): Ditto.
10193
f81824a9
AC
101942003-04-16 Andrew Cagney <cagney@redhat.com>
10195
10196 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10197 obsolete.
10198 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10199 * sparcl-stub.c: Obsolete file.
10200 * config/sparc/tm-sparclet.h: Obsolete file.
10201 * sparclet-stub.c: Obsolete file.
10202 * sparclet-rom.c: Obsolete file.
10203 * sparcl-tdep.c: Obsolete file.
10204 * config/sparc/tm-sparclite.h: Obsolete file.
10205 * config/sparc/sparclite.mt: Obsolete file.
10206 * config/sparc/sparclet.mt: Obsolete file.
10207 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10208 sparc86x-*-* obsolete.
10209
9219021c
DC
102102003-04-15 David Carlton <carlton@math.stanford.edu>
10211
10212 * Makefile.in (SFILES): Add cp-namespace.c.
10213 (COMMON_OBS): Add cp-namespace.o.
10214 (block.o): Depend on gdb_obstack_h and cp_support_h.
10215 (buildsym.o): Depend on cp_support_h.
10216 (cp-namespace.o): New.
10217 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10218 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10219 (dwarf2read.o): Depend on cp_support_h.
10220 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10221 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10222 processing_current_namespace.
10223 (read_namespace): Update processing_current_namespace; check for
10224 anonymous namespaces.
10225 (dwarf2_name): New function.
10226 (dwarf2_extension): Ditto.
10227 * cp-support.h: Update copyright, contributors.
10228 Add inclusion guards.
10229 Add opaque declaration for structs obstack, block, symbol.
10230 (struct using_direct): New struct.
10231 Add declarations for cp_find_first_component,
10232 cp_entire_prefix_len, processing_has_namespace_info,
10233 processing_current_namespace, cp_is_anonymous,
10234 cp_add_using_directive, cp_initialize_namespace,
10235 cp_finalize_namespace, cp_set_block_scope,
10236 cp_scan_for_anonymous_namespaces.
10237 * cp-namespace.c: New file.
10238 * cp-support.c: Update copyright.
10239 Include ctype.h, gdb_assert.h, gdbcmd.h.
10240 New variable maint_cplus_cmd_list.
10241 (cp_find_first_component): New function.
10242 (cp_entire_prefix_len, maint_cplus_command)
10243 (first_component_command, _initialize_cp_support): Ditto.
10244 * buildsym.c: Include cp-support.h.
10245 New variable using_list.
10246 (add_symbol_to_list): Check for anonymous namespaces.
10247 (finish_block): Set block's scope.
10248 (start_symtab): Initialize C++ namespace support.
10249 (end_symtab): Finalize C++ namespace support.
10250 * block.h: Add opaque declarations for structs
10251 block_namespace_info, using_direct, and obstack.
10252 Add declarations for block_set_scope and block_set_using.
10253 (struct block): Add 'language_specific' member.
10254 (BLOCK_NAMESPACE): New macro.
10255 * block.c: Include gdb_obstack.h and cp-support.h.
10256 (struct block_namespace_info): New struct.
10257 (block_set_scope): New function.
10258 (block_set_using, block_initialize_namespace): Ditto.
10259
d5a921c9
KB
102602003-04-14 Kevin Buettner <kevinb@redhat.com>
10261
10262 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10263 (locate_base): Return early if there aren't any link map offsets.
10264 (svr4_solib_create_inferior_hook): Warn if shared library support
10265 is unavailable.
10266
d2a52b27
DC
102672003-04-14 David Carlton <carlton@math.stanford.edu>
10268
10269 * symtab.c (symbol_set_names): Add prefix when storing Java names
10270 in hash table. Fix for PR java/1039.
10271
980cae7a
DC
102722003-04-14 David Carlton <carlton@math.stanford.edu>
10273
10274 * symtab.c (symbol_set_names): Rename 'name' arg to
10275 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10276 * symtab.h: Change 'name' argument in declaration of
10277 symbol_set_names to 'linkage_name'.
10278 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10279
e227b13c
AC
102802003-04-14 Andrew Cagney <cagney@redhat.com>
10281
10282 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10283 return the fully sign-extended register value.
10284 (get_frame_pointer): Ditto.
10285 (mips_pop_frame): Initialize "proc_desc" after checking for a
10286 dummy frame.
10287
36712a20
AC
102882003-04-14 Andrew Cagney <cagney@redhat.com>
10289
10290 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10291 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10292 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10293 (mips_push_register): Delete function.
10294 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10295 PUSH_FP_REGNUM.
10296
44ea7b70
JB
102972003-04-14 Jim Blandy <jimb@redhat.com>
10298
10299 * symmisc.c: #include "gdb_regex.h".
10300 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10301 functions.
10302 * maint.c (maintenance_list_command): New function.
10303 (_initialize_maint_cmds): Register the above as commands.
10304 * symtab.h (maintenance_list_symtabs,
10305 maintenance_list_psymtabs): New declarations.
10306 * cli/cli-cmds.c (maintenancelistlist): New variable.
10307 (init_cmd_lists): Initialize it.
10308 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10309 * gdbcmd.h (maintenancelistlist): New declaration.
10310 * Makefile.in (symmisc.o): Update dependencies.
10311
2d0c7962
EZ
103122003-04-14 Elena Zannoni <ezannoni@redhat.com>
10313
10314 * s390-nat.c: Include asm/types.h for addr_t.
10315
1947a811
CV
103162003-04-14 Corinna Vinschen <vinschen@redhat.com>
10317
10318 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10319 actually incoming type.
10320
adb616d7
AC
103212003-04-13 Andrew Cagney <cagney@redhat.com>
10322
10323 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10324 get_next_frame and get_frame_saved_regs.
10325
9b5e151c
AC
103262003-04-13 Andrew Cagney <cagney@redhat.com>
10327
10328 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10329 of gdbarch_num_regs.
10330
ef6e7e13
AC
103312003-04-13 Andrew Cagney <cagney@redhat.com>
10332
10333 * frame.h: Mention what replaced what in "struct frame_info".
10334 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10335 deprecated_update_frame_base_hack and
10336 deprecated_update_frame_pc_hack.
10337 * hppa-tdep.c: Ditto.
10338
61fbb938
DJ
103392003-04-13 Daniel Jacobowitz <drow@mvista.com>
10340
10341 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10342 to read_reg and update its comment. Remove regnum member.
10343 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10344 Don't call read_reg when setting in_reg. Call read_reg to get
10345 the frame base if it's in a register. Return the register number
10346 on the stack instead of in the context. Remove extra arguments
10347 to read_reg.
10348 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10349 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10350 the register number on the expression stack.
10351 (needs_frame_read_reg): Remove extra arguments.
10352
0d53c4c4
DJ
103532003-04-13 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10356 made non-static.
10357 (execute_stack_op): All callers updated.
10358 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10359 * dwarf2loc.c (find_location_expression): New function.
10360 (dwarf_expr_frame_base): Call it.
10361 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10362 (dwarf2_tracepoint_var_ref): New function, broken out from
10363 locexpr_tracepoint_var_ref.
10364 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10365 Make static.
10366 (loclist_read_variable, loclist_read_needs_frame): New functions.
10367 (loclist_describe_location, loclist_tracepoint_var_ref): New
10368 functions.
10369 (dwarf2_loclist_funcs): New struct location_funcs.
10370 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10371 (struct dwarf2_locexpr_baton): Add comments.
10372 (dwarf2_loclist_funcs): New extern.
10373 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10374 base_address and base_known.
10375 (dwarf_loc_buffer): New variable.
10376 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10377 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10378 (dwarf2_has_info): Initialize dwarf_loc_offset.
10379 (dwarf2_build_psymtabs): Read in .debug_loc.
10380 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10381 DWARF_LOC_SIZE.
10382 (psymtab_to_symtab_1): Likewise. Move base address calculation
10383 here, from...
10384 (dwarf2_get_pc_bounds): ... here. Use the base address from
10385 cu_header.
10386 (dwarf2_symbol_mark_computed): Handle location lists.
10387
6aca59a3
DJ
103882003-04-13 Daniel Jacobowitz <drow@mvista.com>
10389
10390 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10391 if the linkage name demangled successfully.
10392
aca1fcd0
MK
103932003-04-13 Mark Kettenis <kettenis@gnu.org>
10394
97095916
MK
10395 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10396 disassmbly_flavour): Removed.
10397
aca1fcd0
MK
10398 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10399
562a961f
MK
104002003-04-13 Mark Kettenis <kettenis@gnu.org>
10401
10402 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10403
bd013d54
AC
104042003-04-12 Andrew Cagney <cagney@redhat.com>
10405
10406 * frame.h (struct frame_info): Move definition from here ...
10407 * frame.c (struct frame_info): ... to here.
10408
167ef8b1
AC
104092003-04-12 Andrew Cagney <cagney@redhat.com>
10410
10411 * gdbthread.h (save_infrun_state): Delete parameter
10412 "prev_func_start".
10413 (struct thread_info): Delete field "prev_func_start".
10414 (load_infrun_state): Ditto.
10415 * thread.c (load_infrun_state, save_infrun_state): Update.
10416 * infrun.c (prev_func_start): Delete variable.
10417 (context_switch, init_wait_for_inferior): Update.
10418 (stop_stepping, keep_going): Update.
10419
da3331ec
AC
104202003-04-12 Andrew Cagney <cagney@redhat.com>
10421
10422 * gdbarch.sh: Add missing opaque declarations.
10423 * gdbarch.h: Regnerate.
10424 * symtab.h: Add missing opaque declarations.
10425 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10426 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10427 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10428 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10429 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10430 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10431 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10432 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10433 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10434 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10435 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10436 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10437 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10438
18adea3f
AC
104392003-04-11 Andrew Cagney <cagney@redhat.com>
10440
10441 * frame.c (get_frame_id): Return this frame's "id".
10442 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10443 function start.
10444 (legacy_saved_regs_this_id): Replace function body with
10445 internal-error.
10446 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10447 FRAME_OBSTACK_ZALLOC.
10448 (create_new_frame): Mark the frame ID as valid.
10449
2252e863
AO
104502003-04-11 Alexandre Oliva <aoliva@redhat.com>
10451
10452 * Makefile.in (libbfd_h): Added missing setting.
10453 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10454 according to the selected ABI.
10455
a8245ab8
JJ
104562003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10457
10458 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10459
6913c89a
AC
104602003-04-11 Andrew Cagney <cagney@redhat.com>
10461
10462 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10463 SAVED_PC_AFTER_CALL.
10464 * gdbarch.h, gdbarch.c: Regenerate.
10465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10466 * x86-64-tdep.c (x86_64_init_abi): Update.
10467 * vax-tdep.c (vax_gdbarch_init): Update.
10468 * v850-tdep.c (v850_gdbarch_init): Update.
10469 * sparc-tdep.c (sparc_gdbarch_init): Update.
10470 * sh-tdep.c (sh_gdbarch_init): Update.
10471 * s390-tdep.c (s390_gdbarch_init): Update.
10472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10473 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10474 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10475 * mips-tdep.c (mips_gdbarch_init): Update.
10476 * mcore-tdep.c (mcore_gdbarch_init): Update.
10477 * m68k-tdep.c (m68k_gdbarch_init): Update.
10478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10479 * ia64-tdep.c (ia64_gdbarch_init): Update.
10480 (ia64_saved_pc_after_call): Update declaration.
10481 * i386ly-tdep.c (i386lynx_init_abi): Update.
10482 * i386-tdep.c (i386_gdbarch_init): Update.
10483 * hppa-tdep.c (hppa_gdbarch_init): Update.
10484 * h8300-tdep.c (h8300_gdbarch_init): Update.
10485 * frv-tdep.c (frv_gdbarch_init): Update.
10486 * cris-tdep.c (cris_gdbarch_init): Update.
10487 * avr-tdep.c (avr_gdbarch_init): Update.
10488 * arm-tdep.c (arm_gdbarch_init): Update.
10489 * alpha-tdep.c (alpha_gdbarch_init): Update.
10490 * ns32knbsd-nat.c (frame_num_args): Update.
10491 * ns32k-tdep.c (umax_frame_num_args): Update.
10492 * mips-tdep.c (mips_init_frame_pc_first): Update.
10493 * infrun.c (step_over_function): Update.
10494 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10495 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10496 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10497 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10498 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10499 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10500 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10501 * arch-utils.c (init_frame_pc_default): Update.
10502 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10503 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10504 declaration.
8ffd9b1b 10505
38edeab8
AC
105062003-04-11 Andrew Cagney <cagney@redhat.com>
10507
10508 * i387-tdep.c: Update copyright.
10509 (i387_to_double): Delete function.
10510 (double_to_i387): Delete function.
10511
81f8a206
AC
105122003-04-10 Andrew Cagney <cagney@redhat.com>
10513
10514 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10515 frame's function's address. Simplify.
10516 (d10v_frame_unwind_cache): Check that the frame's function is
10517 non-zero.
10518
6e691f7a
JB
105192003-04-10 Jim Blandy <jimb@redhat.com>
10520
10521 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10522 call to set_gdbarch_deprecated_push_arguments.
10523
7f78e237
AC
105242003-04-10 Andrew Cagney <cagney@redhat.com>
10525
10526 * frame.c (fprint_frame_id): New function.
10527 (fprint_frame_type, fprint_frame): New function.
10528 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10529 (create_sentinel_frame, get_frame_id): Ditto.
10530 (frame_id_p, frame_id_eq): Ditto.
10531 (frame_id_inner, create_new_frame): Ditto.
10532 (legacy_get_prev_frame, get_prev_frame): Ditto.
10533 (deprecated_update_frame_pc_hack): Ditto.
10534 (frame_register_unwind): Ditto.
10535 (deprecated_update_frame_base_hack): Ditto.
10536
f870b49b
CV
105372003-04-10 Corinna Vinschen <vinschen@redhat.com>
10538
10539 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10540 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10541 frame_chain function.
10542 * Makefile.in: Add dependencies due to above change.
10543
7c86889b
CV
105442003-04-10 Corinna Vinschen <vinschen@redhat.com>
10545
10546 * blockframe.c (legacy_frame_chain_valid): Move call to
10547 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10548 inside_entry_file.
10549
d0a55772
AC
105502003-04-09 Andrew Cagney <cagney@redhat.com>
10551
10552 * frame.h (struct frame_id): Replace "pc" and "base" with
10553 "stack_addr" and "code_addr". Update comments.
10554 (frame_id_build): Update parameter names and comment.
10555 (struct frame_info): Replace "id_p" and "id" with "this_id".
10556 * dummy-frame.c (dummy_frame_this_id): Update.
10557 * breakpoint.c (print_one_breakpoint): Update.
10558 * frame.c (get_frame_id): Update.
10559 (get_frame_base, frame_id_build): Update.
10560 (create_sentinel_frame, legacy_get_prev_frame): Update.
10561 (deprecated_update_frame_base_hack): Update.
10562 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10563 (frame_id_inner): Ditto.
10564
ac16bf07
AC
105652003-04-09 Andrew Cagney <cagney@redhat.com>
10566
10567 * defs.h (gdb_print_host_address): Make "addr" parameter a
10568 pointer constant.
10569 * utils.c (gdb_print_host_address): Update.
10570
366cfc9e
KB
105712003-04-09 Kevin Buettner <kevinb@redhat.com>
10572
10573 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10574 register number for R0 is 0.
10575
cd983b5c
JB
105762003-04-09 J. Brobecker <brobecker@gnat.com>
10577
10578 * frame.h (struct gdbarch): Add opaque structure definition
10579 to avoid a compilation warning on LynxOS 4.0.
10580
d1340264
AC
105812003-04-09 Andrew Cagney <cagney@redhat.com>
10582
10583 * frame.h (struct frame_info): Delete field "pc". Replace
10584 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10585 structure.
10586 * frame.c (frame_pc_unwind): Update.
10587 (create_sentinel_frame): Do not set "pc".
10588 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10589 (get_frame_pc): Call frame_pc_unwind.
10590 (deprecated_update_frame_pc_hack): Update.
10591 (create_new_frame): Use "pc" not "->pc".
10592
90a6fffb
AC
105932003-04-09 Andrew Cagney <cagney@redhat.com>
10594
10595 * frame.c (get_frame_id): Eliminate code updating "frame".
10596 (legacy_get_prev_frame): Ditto.
10597 (get_frame_base): Return id.base directly.
10598 (deprecated_update_frame_base_hack): Update "id.base".
10599 * frame.h (struct frame_info): Delete field "frame".
10600
2fbce691
AC
106012003-04-09 Andrew Cagney <cagney@redhat.com>
10602
10603 * NEWS: Mention that the "Sequent family" is obsolete.
10604 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10605 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10606 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10607 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10608 * config/i386/tm-ptx4.h: Obsolete file.
10609 * config/i386/tm-ptx.h: Obsolete file.
10610 * symm-tdep.c: Obsolete file.
10611 * config/i386/symmetry.mt: Obsolete file.
10612 * config/i386/tm-symmetry.h: Obsolete file.
10613 * symm-nat.c: Obsolete file.
10614 * config/i386/nm-symmetry.h: Obsolete file.
10615 * config/i386/xm-symmetry.h: Obsolete file.
10616 * config/i386/symmetry.mh: Obsolete file.
10617 * config/i386/nm-ptx4.h: Obsolete file.
10618 * config/i386/ptx4.mh: Obsolete file.
10619 * config/i386/ptx.mt: Obsolete file.
10620 * config/i386/ptx.mh: Obsolete file.
10621 * config/i386/xm-ptx4.h: Obsolete file.
10622 * config/i386/xm-ptx.h: Obsolete file.
10623
78c43945
AC
106242003-04-09 Andrew Cagney <cagney@redhat.com>
10625
10626 Obsolete mips*-*-mach3*.
10627 * NEWS: Mention that mips*-*-mach3* is obsolete.
10628 * m3-nat.c: Obsolete file.
10629 * config/nm-m3.h: Obsolete file.
10630 * config/mips/tm-mipsm3.h: Obsolete file.
10631 * config/mips/mipsm3.mt: Obsolete file.
10632 * config/mips/mipsm3.mh: Obsolete file.
10633 * config/mips/xm-mipsm3.h: Obsolete file.
10634 * mipsm3-nat.c: Obsolete file.
10635 * configure.host: Obsolete mips-dec-mach3*.
10636 * configure.tgt: Obsolete mips*-*-mach3*.
10637
f1908289
AC
106382003-04-09 Andrew Cagney <cagney@redhat.com>
10639
10640 * doublest.h: Update copyright.
10641 (deprecated_store_floating, deprecated_extract_floating): Rename
10642 store_floating and extract_floating. Update comments.
10643 * doublest.c: Update copyright.
10644 (extract_floating_by_length): Replace extract_floating.
10645 (store_floating_by_length): Replace store_floating.
10646 (deprecated_extract_floating): New function.
10647 (deprecated_store_floating): New function.
10648 (extract_typed_floating): Call extract_floating_by_length.
10649 (store_typed_floating): Call store_floating_by_length.
10650 * x86-64-tdep.c (x86_64_store_return_value): Update.
10651 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10652 (sh64_extract_return_value): Update.
10653 (sh_sh4_register_convert_to_virtual): Update.
10654 (sh_sh64_register_convert_to_virtual): Update.
10655 (sh_sh4_register_convert_to_raw): Update.
10656 (sh_sh64_register_convert_to_raw): Update.
10657 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10658 (rs6000_register_convert_to_raw): Update.
10659 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10660 (ia64_register_convert_to_raw): Update.
10661 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10662 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10663 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10664 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10665 (alpha_register_convert_to_raw): Update.
10666
4443bd83
AC
106672003-04-08 Andrew Cagney <cagney@redhat.com>
10668
10669 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10670 * gdbarch.h, gdbarch.c: Re-generate.
10671 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10672 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10673 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10674 conditionally, use frame_pc_unwind as an alternative. Add
10675 comments.
10676 * arch-utils.c (init_frame_pc_default): Only call
10677 SAVED_PC_AFTER_CALL when available.
10678
c0236d92
EZ
106792003-04-08 Elena Zannoni <ezannoni@redhat.com>
10680
fbe586ae 10681 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10682 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10683 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10684 (start_remote): Ditto.
10685 (handle_inferior_event): Ditto.
10686 (save_inferior_status): Ditto.
10687 (restore_inferior_status): Ditto.
10688 * infcmd.c (attach_command): Ditto.
10689 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10690 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10691 * alpha-tdep.c (heuristic_proc_start): Ditto.
10692 * mips-tdep.c (heuristic_proc_start): Ditto.
10693 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10694 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10695 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10696 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10697 * remote-vx.c (vx_create_inferior): Ditto.
10698
106992003-04-08 Elena Zannoni <ezannoni@redhat.com>
10700
10701 * infrun.c (stop_soon_quietly): Make it an enum, to better
10702 override the default behavior of handle_inferior_event.
10703 (clear_proceed_status): Update uses of stop_soon_quietly to
10704 reflect that it is now an enum.
10705 (start_remote): Ditto.
10706 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10707 is set to handle the new GNU/Linux kernel behavior for
10708 attach/sigstop. Update uses of stop_soon_quietly.
10709 * inferior.h (enum stop_kind): New enum.
10710 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10711 Reset normal handle_inferior_event behavior, afterwards.
10712 * fork-child.c (startup_inferior): Update.
10713 * alpha-tdep.c (heuristic_proc_start): Update.
10714 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10715 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10716 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10717 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10718 * remote-vx.c (vx_create_inferior): Update.
10719 * mips-tdep.c (heuristic_proc_start): Update.
10720
1211bce3
EZ
107212003-04-07 Elena Zannoni <ezannoni@redhat.com>
10722
10723 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10724 be freed more than once, causing wild memory corruptions.
1211bce3 10725 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10726 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10727 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10728 with the "core" target.
1211bce3 10729
f0ef6b29
KB
107302003-04-07 Kevin Buettner <kevinb@redhat.com>
10731
10732 * mips-tdep.c (mips_print_fp_register): New function, created from
10733 do_fp_register_row(). Registers are now (also) printed as hex.
10734 Only one register is printed per row.
10735 (mips_print_register, do_fp_register_row): Print floating point
10736 registers with mips_print_fp_register().
10737
8cf71652
AC
107382003-04-06 Andrew Cagney <cagney@redhat.com>
10739
5e488a7b
AC
10740 * valprint.h (inspect_it): Add extern declaration.
10741 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10742 (selectors_info, classes_info): Ditto.
10743 (find_objc_msgcall): Fix indentation.
10744 (objc_printstr): Delete extern declarations.
10745
8cf71652
AC
10746 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10747
e6ba3bc9
AC
107482003-04-06 Andrew Cagney <cagney@redhat.com>
10749
10750 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10751 Update comment.
10752 * frame.c (legacy_saved_regs_this_id): Update.
10753 (legacy_get_prev_frame): Update.
10754 * xstormy16-tdep.c: Update comment.
10755 * sparc-tdep.c (sparc_frame_chain): Update comment.
10756 * blockframe.c (legacy_frame_chain_valid): Update.
10757
55e1d7e7
AC
107582003-04-06 Andrew Cagney <cagney@redhat.com>
10759
996179ee
AC
10760 * valprint.c (val_print_type_code_int): Delete #ifdef
10761 PRINT_TYPELESS_INTEGER code.
10762
55e1d7e7
AC
10763 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10764 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10765 multi-arch definition.
10766 * gdbarch.h: Re-generate.
10767
43bd9a9e
AC
107682003-04-05 Andrew Cagney <cagney@redhat.com>
10769
10770 Eliminate FRAME_FIND_SAVED_REGS.
10771 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10772 Change FSR parameter to a pointer.
10773 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10774 Assume FSR parameter is a pointer.
10775 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10776 Make fsr a pointer.
10777 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10778 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10779 saved_regs a pointer.
10780 (hppa_frame_saved_pc): Ditto.
10781 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10782 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10783 pointer.
10784 (restore_pc_queue): Make fsr a pointer.
10785 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10786 (hppa_frame_chain): Make saved_regs a pointer, call
10787 hppa_frame_init_saved_regs.
10788 * sparc-tdep.c: Include "gdb_assert.h".
10789 (sparc_frame_find_saved_regs): Replace internal_error with
10790 gdb_assert.
10791 * remote-vxsparc.c (vx_read_register): Delete reference to
10792 FRAME_FIND_SAVED_REGS.
10793 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10794 * gdbarch.h: Regenerate.
10795 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10796 (deprecated_get_frame_saved_regs): Delete declaration.
10797 (struct frame_saved_regs): Delete definition.
10798 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10799 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10800 (hppa_frame_find_saved_regs): Delete declaration.
10801 (FRAME_FIND_SAVED_REGS): Delete macro.
10802 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10803 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10804 FRAME_FIND_SAVED_REGS in comment.
10805
be41e9f4
AC
108062003-04-05 Andrew Cagney <cagney@redhat.com>
10807
10808 * frame.c (frame_func_unwind, get_frame_func): New functions.
10809 * frame.h (get_frame_func, frame_func_unwind): Declare.
10810 (struct frame_info): Add field "prev_func" for caching the
10811 previous frame's function address.
10812 * arm-tdep.c (arm_frameless_function_invocation): Combine
10813 get_pc_function_start and get_frame_pc into get_frame_func.
10814 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10815 (sh64_nofp_frame_init_saved_regs): Ditto.
10816 * s390-tdep.c (s390_function_start): Ditto.
10817 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10818 (rs6000_frameless_function_invocation): Ditto.
10819 (rs6000_frame_saved_pc): Ditto.
10820 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10821 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10822 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10823 (i386_frame_init_saved_regs): Ditto.
10824 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10825 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10826 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10827 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10828 * blockframe.c (frameless_look_for_prologue): Ditto.
10829
a01dd7cc
AC
108302003-04-05 Andrew Cagney <cagney@redhat.com>
10831
10832 * frame.c (legacy_get_prev_frame): Link prev to next at the
10833 function start. Update comments.
10834
5e5592e6
AC
108352003-04-05 Andrew Cagney <cagney@redhat.com>
10836
10837 * frame.c (get_frame_id): Update comment.
10838 (legacy_get_prev_frame): Update comment.
10839 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10840 * gdbarch.h: Regenerate.
10841 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10842 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10843
6fba5002
AC
108442003-04-05 Andrew Cagney <cagney@redhat.com>
10845
10846 * stack.c (print_frame_info): Use get_frame_pc.
10847
7df05f2b
AC
108482003-04-04 Andrew Cagney <cagney@redhat.com>
10849
10850 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10851 the frame's type from the unwinder.
10852 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10853 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10854 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10855 (get_frame_base_address): Use get_frame_type.
10856 (get_frame_locals_address, get_frame_args_address): Ditto.
10857 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10858 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10859 (struct frame_info): Add comment explaining why the frame contains
10860 a "type" field.
10861 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10862 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10863 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10864 NORMAL_FRAME.
10865 * frame-unwind.h: Include "frame.h".
10866 (struct frame_unwind): Add "type" field.
10867 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10868
11889732
AC
108692003-04-04 Andrew Cagney <cagney@redhat.com>
10870
10871 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10872 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10873 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10874 get_frame_base.
10875 (d10v_unwind_dummy_id): Use frame_id_build.
10876 * frame.c (find_frame_sal): Use get_frame_pc.
10877 (create_new_frame): Use deprecated_update_frame_pc_hack and
10878 deprecated_update_frame_base_hack.
10879 (create_sentinel_frame): Add comment about ->pc going away.
10880 (get_prev_frame): Add comment about ->pc going away.
10881 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10882 frame_id_build, deprecated_update_frame_pc_hack and
10883 deprecated_update_frame_base_hack.
10884 (select_frame): Use get_frame_pc.
10885 (legacy_saved_regs_this_id): Use frame_id_build.
10886
50c46a0d
EZ
108872003-04-04 Elena Zannoni <ezannoni@redhat.com>
10888
fbe586ae
RH
10889 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10890 signed integer case.
10891 (classify_argument): Handle enumerations and references.
50c46a0d 10892
50bbdbd9
AC
108932003-04-04 Andrew Cagney <cagney@redhat.com>
10894
10895 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10896 ID to NULL.
10897
36018d2e
AF
108982003-04-01 Adam Fedor <fedor@gnu.org>
10899
10900 * gdb/objc-lang.c (selectors_info): Replace calls to
10901 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10902 SYMBOL_NATURAL_NAME.
10903 (classes_info, find_methods): Likewise.
10904
35cec841
KB
109052003-04-03 Kevin Buettner <kevinb@redhat.com>
10906
10907 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10908 ``mach'' to the value determined by bfd_default_set_arch_mach().
10909
43136899
BR
109102003-04-02 Bob Rossi <bob_rossi@cox.net>
10911
10912 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10913 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10914 (mi-cmd-file.o): Update dependencies.
10915
040b99fd
KB
109162003-04-01 Kevin Buettner <kevinb@redhat.com>
10917
10918 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10919 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10920
9a3d7dfd
AF
109212003-04-01 Adam Fedor <fedor@gnu.org>
10922
10923 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10924 * language.h (struct language_defn): Add la_demangle.
10925 (language_demangle): Declare.
10926 * language.c (language_demangle): New function.
10927 (unk_lang_demangle): Likewise.
10928 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10929 Add ukn_lang_demangle.
9a3d7dfd 10930 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10931 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10932 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10933 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10934 * jv-lang.c (java_demangle): New function
10935 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10936 * objc-lang.c (objc_demangle): Add options argument
10937 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10938 * maint.c (maintenance_demangle): Replace switch with
10939 call to language_demangle.
10940 * utils.c (fprintf_symbol_filtered): Likewise.
10941
5e074003
AC
109422003-04-01 Andrew Cagney <cagney@redhat.com>
10943
10944 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10945 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10946 PRINT_TYPELESS_INTEGER.
10947 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10948 PUSH_RETURN_ADDRESS.
10949
270cb5d6
AC
109502003-04-01 Andrew Cagney <cagney@redhat.com>
10951
10952 * Makefile.in (d10v-tdep.o): Update dependencies.
10953 * d10v-tdep.c: Include "frame-base.h".
10954 (d10v_frame_unwind): Make constant.
10955 (d10v_frame_base_address): New function.
10956 (d10v_frame_base): New variable.
10957 (d10v_gdbarch_init): Set frame_base default.
10958 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10959 comment for base.
10960 (d10v_frame_unwind_cache): Set and use "prev_sp".
10961 (d10v_frame_this_id): Use the previous frame's inner most stack
10962 address and this frame's func address for the frame ID. Use
10963 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10964
6bfb3e36
AC
109652003-04-01 Andrew Cagney <cagney@redhat.com>
10966
10967 * frame.h (get_frame_locals_address, get_frame_args_address):
10968 Refer to the base address, instead of the address of the first
10969 local or parameter.
8ffd9b1b 10970
da62e633
AC
109712003-04-01 Andrew Cagney <cagney@redhat.com>
10972
10973 Add frame debug info addresses:
10974 * frame-base.c: New file.
10975 * frame-base.h: New file.
10976 * frame.h (struct frame_base): Add opaque declaration.
10977 (get_frame_base): Update comment.
10978 (get_frame_base_address): Declare.
10979 (get_frame_locals_address): Declare.
10980 (get_frame_args_address): Declare.
10981 (struct frame_info): Add "base" and "base_cache". Update
10982 comments on the unwinder.
10983 * frame.c: Include "frame-base.h".
10984 (get_frame_locals_address): New function.
10985 (get_frame_base_address): New function.
10986 (get_frame_args_address): New function.
10987 * findvar.c (read_var_value): Use get_frame_locals_address and
10988 get_frame_args_address.
10989 * stack.c (frame_info): Use get_frame_locals_address and
10990 get_frame_args_address.
10991 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10992 moved to "frame-base.c".
10993 * printcmd.c (print_frame_nameless_args): Ditto.
10994 * symtab.h (address_class): Update comments.
10995 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10996 get_frame_base_address.
10997 * dwarf2expr.c (execute_stack_op): Ditto.
10998 * Makefile.in (frame_base_h): Define.
10999 (frame.o): Update dependencies.
11000 (frame-base.o): Add dependencies.
11001 (SFILES): Add frame-base.c.
11002 (COMMON_OBS): Add frame-base.o.
11003
3d30e9c2
AC
110042003-04-01 Andrew Cagney <cagney@redhat.com>
11005
11006 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11007 CALL_DUMMY_LENGTH): Ditto.
11008 * gdbarch.c: Re-generate.
11009 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11010 (CALL_DUMMY_LENGTH): Delete macro.
11011 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11012 * arm-tdep.c (arm_gdbarch_init): Ditto.
11013 * avr-tdep.c (avr_gdbarch_init): Ditto.
11014 * cris-tdep.c (cris_gdbarch_init): Ditto.
11015 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11016 * frv-tdep.c (frv_gdbarch_init): Ditto.
11017 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11018 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11019 * i386-tdep.c (i386_gdbarch_init): Ditto.
11020 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11022 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11023 * mips-tdep.c (mips_gdbarch_init): Ditto.
11024 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11025 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11026 * s390-tdep.c (s390_gdbarch_init): Ditto.
11027 * sh-tdep.c (sh_gdbarch_init): Ditto.
11028 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11029 * v850-tdep.c (v850_gdbarch_init): Ditto.
11030 * vax-tdep.c (vax_gdbarch_init): Ditto.
11031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11032
ce0c7262
CV
110332003-04-01 Corinna Vinschen <vinschen@redhat.com>
11034
11035 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11036
73dd234f
AC
110372003-04-01 Andrew Cagney <cagney@redhat.com>
11038
11039 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11040 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11041 * gdbarch.h, gdbarch.c: Re-generate.
11042 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11043 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11044 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11045 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11046 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11047 * infcmd.c (run_stack_dummy): Simplify assuming
11048 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11049 * infrun.c (handle_inferior_event): Ditto.
11050 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11051 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11052 * arm-tdep.c (arm_gdbarch_init): Ditto.
11053 * avr-tdep.c (avr_gdbarch_init): Ditto.
11054 * cris-tdep.c (cris_gdbarch_init): Ditto.
11055 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11056 * frv-tdep.c (frv_gdbarch_init): Ditto.
11057 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11058 * i386-tdep.c (i386_gdbarch_init): Ditto.
11059 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11061 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11062 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11063 * mips-tdep.c (mips_gdbarch_init): Ditto.
11064 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11065 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11066 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11067 * s390-tdep.c (s390_gdbarch_init): Ditto.
11068 * sh-tdep.c (sh_gdbarch_init): Ditto.
11069 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11070 * v850-tdep.c (v850_gdbarch_init): Ditto.
11071 * vax-tdep.c (vax_gdbarch_init): Ditto.
11072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11073
97606a13
DJ
110742003-04-01 Daniel Jacobowitz <drow@mvista.com>
11075
11076 * symfile.c (symfile_relocate_debug_section): Update call to
11077 bfd_simple_get_relocated_section_contents.
11078
e8ab51f7
AC
110792003-03-31 Andrew Cagney <cagney@redhat.com>
11080
11081 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11082 * gdbarch.h, gdbarch.c: Regenerate.
11083 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11084 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11085 available.
11086 * frame.h (generic_fix_call_dummy): Delete declaration.
11087 * dummy-frame.h: Update comment.
11088 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11089 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11090 fix_call_dummy.
11091 * sh-tdep.c (sh_gdbarch_init): Ditto.
11092 * s390-tdep.c (s390_gdbarch_init): Ditto.
11093 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11094 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11096 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11097 * i386-tdep.c (i386_gdbarch_init): Ditto.
11098 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11099 * frv-tdep.c (frv_gdbarch_init): Ditto.
11100 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11101 * cris-tdep.c (cris_gdbarch_init): Ditto.
11102 * avr-tdep.c (avr_gdbarch_init): Ditto.
11103 * arm-tdep.c (arm_gdbarch_init): Ditto.
11104
018d1b48
JB
111052003-03-31 J. Brobecker <brobecker@gnat.com>
11106
11107 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11108 (INIT_FRAME_AP): Likewise.
11109 (EXTRA_FRAME_INFO): Likewise.
11110
e9a2674e
AC
111112003-03-31 Andrew Cagney <cagney@redhat.com>
11112
11113 * gdbarch.sh: Include "symfile.h".
11114 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11115 * gdbarch.h, gdbarch.c: Re-generate.
11116 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11118 call_dummy_address, the default is at entry_point_address.
11119 * v850-tdep.c (v850_gdbarch_init): Ditto.
11120 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11121 * sh-tdep.c (sh_gdbarch_init): Ditto.
11122 * s390-tdep.c (s390_gdbarch_init): Ditto.
11123 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11124 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11125 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11126 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11127 * i386-tdep.c (i386_gdbarch_init): Ditto.
11128 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11129 * frv-tdep.c (frv_gdbarch_init): Ditto.
11130 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11131 * cris-tdep.c (cris_gdbarch_init): Ditto.
11132 * arm-tdep.c (arm_gdbarch_init): Ditto.
11133
e8a8712a
AC
111342003-03-31 Andrew Cagney <cagney@redhat.com>
11135
11136 * gdbarch.sh (CALL_DUMMY_P): Delete.
11137 * gdbarch.h, gdbarch.c: Re-generate.
11138 * inferior.h (CALL_DUMMY_P): Delete macro.
11139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11140 * vax-tdep.c (vax_gdbarch_init): Update.
11141 * v850-tdep.c (v850_gdbarch_init): Update.
11142 * sparc-tdep.c (sparc_gdbarch_init): Update.
11143 * sh-tdep.c (sh_gdbarch_init): Update.
11144 * s390-tdep.c (s390_gdbarch_init): Update.
11145 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11146 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11147 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11148 * mips-tdep.c (mips_gdbarch_init): Update.
11149 * mcore-tdep.c (mcore_gdbarch_init): Update.
11150 * m68k-tdep.c (m68k_gdbarch_init): Update.
11151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11152 * ia64-tdep.c (ia64_gdbarch_init): Update.
11153 * i386-tdep.c (i386_gdbarch_init): Update.
11154 * h8300-tdep.c (h8300_gdbarch_init): Update.
11155 * frv-tdep.c (frv_gdbarch_init): Update.
11156 * d10v-tdep.c (d10v_gdbarch_init): Update.
11157 * cris-tdep.c (cris_gdbarch_init): Update.
11158 * breakpoint.c (deprecated_frame_in_dummy): Update.
11159 * avr-tdep.c (avr_gdbarch_init): Update.
11160 * alpha-tdep.c (alpha_gdbarch_init): Update.
11161 * arm-tdep.c (arm_gdbarch_init): Update.
11162 * dummy-frame.c (dummy_frame_this_id): Update comments.
11163 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11164 * frame.c (legacy_get_prev_frame): Ditto.
11165 * valops.c (call_function_by_hand): Delete function.
11166 (hand_function_call): Rename to call_function_by_hand
11167
ed234cf8
AC
111682003-03-30 Andrew Cagney <cagney@redhat.com>
11169
11170 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11171 * value.h (struct value): Update comment.
ed234cf8 11172
06c77151
AC
111732003-03-30 Andrew Cagney <cagney@redhat.com>
11174
6c2b5168
AC
11175 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11176 D10V_FP_REGNUM.
11177 (d10v_gdbarch_init): Do not set fp_regnum.
11178
06c77151
AC
11179 * frame.c (get_frame_base): Force ID initialization.
11180 (get_prev_frame): Move computation of the frame ID from here ...
11181 (get_frame_id): ... to here.
11182 (legacy_get_prev_frame): Mark the frame ID as valid.
11183 * frame.h (struct frame_info): Add field "id_p".
11184
97a1a11c
MK
111852003-03-30 Mark Kettenis <kettenis@gnu.org>
11186
11187 * i386-tdep.c (i386_store_struct_return): Removed.
11188 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11189
6c0e89ed
AC
111902003-03-30 Andrew Cagney <cagney@redhat.com>
11191
11192 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11193 * gdbarch.h, gdbarch.c: Regenerate.
11194 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11196 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11197 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11198 * i386-tdep.c (i386_gdbarch_init): Ditto.
11199 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11200 * cris-tdep.c (cris_gdbarch_init): Ditto.
11201 * vax-tdep.c (vax_gdbarch_init): Ditto.
11202 * s390-tdep.c (s390_gdbarch_init): Ditto.
11203 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11204 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11205 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11206 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11207 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11208 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11209 * sparc-tdep.c (sparc_gdbarch_init): Update.
11210 * sh-tdep.c (sh_gdbarch_init): Update.
11211 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11212 * mips-tdep.c (mips_gdbarch_init): Update.
11213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11214 * ia64-tdep.c (ia64_gdbarch_init): Update.
11215 * frv-tdep.c (frv_gdbarch_init): Update.
11216 * avr-tdep.c (avr_gdbarch_init): Update.
11217 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11218 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11219 instead of when push_dummy_call is not available.
8ffd9b1b 11220
f7dd6af2
AC
112212003-03-30 Andrew Cagney <cagney@redhat.com>
11222
11223 * infttrace.c: Include "gdbthread.h".
11224 (parent_attach_all): Fix function signature.
11225 (call_ptrace): Update call.
11226 * Makefile.in (infttrace.o): Update dependencies.
11227
28f617b3
AC
112282003-03-30 Andrew Cagney <cagney@redhat.com>
11229
11230 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11231 PUSH_RETURN_ADDRESS.
11232 * gdbarch.h, gdbarch.c: Regenerate.
11233 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11234 * x86-64-tdep.c (x86_64_init_abi): Update.
11235 * v850-tdep.c (v850_gdbarch_init): Update.
11236 * sparc-tdep.c (sparc_gdbarch_init): Update.
11237 * sh-tdep.c (sh_gdbarch_init): Update.
11238 * s390-tdep.c (s390_gdbarch_init): Update.
11239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11240 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11241 * mips-tdep.c (mips_gdbarch_init): Update.
11242 * mcore-tdep.c (mcore_gdbarch_init): Update.
11243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11244 * ia64-tdep.c (ia64_gdbarch_init): Update.
11245 * i386-tdep.c (i386_gdbarch_init): Update.
11246 * h8300-tdep.c (h8300_gdbarch_init): Update.
11247 * frv-tdep.c (frv_gdbarch_init): Update.
11248 * cris-tdep.c (cris_gdbarch_init): Update.
11249 * avr-tdep.c (avr_gdbarch_init): Update.
11250 * arm-tdep.c (arm_gdbarch_init): Update.
11251 * valops.c (hand_function_call): Update.
11252
4d628cd7
AC
112532003-03-29 Andrew Cagney <cagney@redhat.com>
11254
11255 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11256 sizeof_call_dummy_words.
11257 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11258 define.
11259 * gdbarch.h: Regenerate.
8ffd9b1b 11260
65e82032
AC
112612003-03-29 Andrew Cagney <cagney@redhat.com>
11262
11263 * infttrace.h: New file.
11264 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11265 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11266 (hpread_read_doc_function_type): Detect an initialized type1.
11267 (hpread_quick_traverse): Initialize mod_name_string.
11268 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11269 (som_solib_get_solib_by_pc): Declare.
11270 (so_lib_thread_start_addr): Declare.
11271 (no_shared_libraries): Declare.
11272 * somread.c (init_import_symbols): Make static. Add forward
11273 declaration.
11274 * config/pa/nm-hppah.h: Include "infttrace.h" for
11275 parent_attach_all.
11276 (hppa_insert_hw_watchpoint): Declare.
11277 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11278 * hppah-nat.c: Include "gdb_string.h".
11279 (parent_attach_all): Delete extern declaration, moved to
11280 "infttrace.h".
11281 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11282 int.
11283 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11284 * Makefile.in (infttrace_h): Define.
11285 (hpread.o): Update dependencies.
11286 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11287 * hppa-hpux-tdep.c: Include "gdb_string.h".
11288 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11289 * infrun.c (handle_inferior_event): Always initialize
11290 stepped_after_stopped_by_watchpoint. Add default and remove
11291 fallthrough in switch statement.
11292 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11293 parameter to int.
11294 (hppa_remove_hw_watchpoint): Ditto.
11295
2c3bbe77
AC
112962003-03-29 Andrew Cagney <cagney@redhat.com>
11297
11298 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11299 offset.
11300
2dd604e7
RE
113012003-03-29 Richard Earnshaw <rearnsha@arm.com>
11302
11303 * arm-tdep.c (arm_push_arguments): Delete.
11304 (struct stack_item): New type.
11305 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11306 (arm_store_struct_return): Delte.
11307 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11308 arm_push_arguments or arm_store_struct_return.
11309
e8933a55
AC
113102003-03-28 Andrew Cagney <cagney@redhat.com>
11311
11312 * Makefile.in (d10v-tdep.o): Update dependencies.
11313 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11314 * d10v-tdep.c: Include "remote.h".
11315 (target_resume_hook): Delete extern declaration.
11316 (target_wait_loop_hook): Ditto.
11317 (tdisassemble_command): Eliminate assignment in "if" conditional.
11318 (d10v_ts2_register_sim_regno): Eliminate call to
11319 legacy_register_sim_regno.
11320 (d10v_ts3_register_sim_regno): Ditto.
11321
6949171e
JJ
113222003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11323
11324 * thread.c: Reindented.
11325 * lin-lwp.c: Ditto.
11326 * linux-proc.c: Ditto.
11327
98c7071f
BR
113282003-03-28 Bob Rossi <bob_rossi@cox.net>
11329
fbe586ae 11330 * MAINTAINERS (write after approval): Add myself.
98c7071f 11331
5edc9ca6
TR
113322003-03-27 Theodore A. Roth <troth@openavr.org>
11333
11334 * objc-exp.y: Add missing semi-colons.
11335
378bfd1b
AC
113362003-03-27 Andrew Cagney <cagney@redhat.com>
11337
11338 * regcache.c (write_sp): Delete function and references.
11339 * inferior.h (write_sp): Delete declaration.
11340 * valops.c (hand_function_call): Replace write_sp with
11341 TARGET_WRITE_SP.
11342 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11343 (sparc_pop_frame): Ditto.
8ffd9b1b 11344
56056df7
AC
113452003-03-27 Andrew Cagney <cagney@redhat.com>
11346
11347 * NEWS: Mention removal of support for hppa*-*-bsd* and
11348 hppa*-*-osf* natives, and hppa*-*-pro* target.
11349 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11350 * config/pa/xm-pa.h: Obsolete file.
11351 * config/pa/xm-hppab.h: Obsolete file.
11352 * config/pa/nm-hppab.h: Obsolete file.
11353 * config/pa/tm-hppab.h: Obsolete file.
11354 * config/pa/tm-hppao.h: Obsolete file.
11355 * config/pa/nm-hppao.h: Obsolete file.
11356 * config/pa/tm-pro.h: Obsolete file.
11357 * config/pa/hppaosf.mt: Obsolete file.
11358 * config/pa/hppaosf.mh: Obsolete file.
11359 * config/pa/hppapro.mt: Obsolete file.
11360 * config/pa/hppabsd.mt: Obsolete file.
11361 * config/pa/hppabsd.mh: Obsolete file.
11362 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11363 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11364 hppa*-*-osf*.
11365
5873a88d
AC
113662003-03-27 Andrew Cagney <cagney@redhat.com>
11367
11368 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11369 push_arguments. Don't set push_return_address or write_sp.
11370 (d10v_push_dummy_call): Replace d10v_push_arguments.
11371 (d10v_push_return_address, d10v_write_sp): Delete function,
11372 handled by push_dummy_call.
11373
b81774d8
AC
113742003-03-26 Andrew Cagney <cagney@redhat.com>
11375
11376 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11377 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11378 regcache and dummy_addr parameters.
11379 * gdbarch.h, gdbarch.c: Re-generate.
11380 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11381 available; assume it will handle stack alignment and return
11382 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11383 legacy_push_arguments.
11384 (legacy_push_arguments): Rename default_push_arguments.
11385 * value.h (legacy_push_arguments): Rename default_push_arguments.
11386 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11387 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11388 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11389 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11390 * config/i386/tm-symmetry.h: Update.
11391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11392 * x86-64-tdep.c (x86_64_init_abi): Update.
11393 * v850-tdep.c (v850_gdbarch_init): Update.
11394 * sparc-tdep.c (sparc_gdbarch_init): Update.
11395 * sh-tdep.c (sh_gdbarch_init): Update.
11396 * s390-tdep.c (s390_gdbarch_init): Update.
11397 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11398 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11399 * mips-tdep.c (mips_gdbarch_init): Update.
11400 * mcore-tdep.c (mcore_gdbarch_init): Update.
11401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11402 * ia64-tdep.c (ia64_gdbarch_init): Update.
11403 * i386-tdep.c (i386_gdbarch_init): Update.
11404 * hppa-tdep.c (hppa_gdbarch_init): Update.
11405 * h8300-tdep.c (h8300_gdbarch_init): Update.
11406 * frv-tdep.c (frv_gdbarch_init): Update.
11407 * d10v-tdep.c (d10v_gdbarch_init): Update.
11408 * cris-tdep.c (cris_gdbarch_init): Update.
11409 * avr-tdep.c (avr_gdbarch_init): Update.
11410 * arm-tdep.c (arm_gdbarch_init): Update.
11411 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11412 * alpha-tdep.c (alpha_gdbarch_init): Update.
11413
f541410f
DJ
114142003-03-26 Daniel Jacobowitz <drow@mvista.com>
11415
11416 * signals/signals.c (do_target_signal_to_host): Correct realtime
11417 signal range test.
11418
69f567ae
DJ
114192003-03-26 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11422 (struct sal_chain, map_catch_names): Remove.
11423 (catch_exception_command_1): Don't call
11424 handle_gnu_4_16_catch_command.
11425
d5d14a5a
DJ
114262003-03-26 Daniel Jacobowitz <drow@mvista.com>
11427
11428 From Mark Dettinger <dettinge@de.ibm.com>:
11429 * dwarf2cfi.c (read_2u): Increment pointer by two.
11430
bdd73e22
DJ
114312003-03-26 Daniel Jacobowitz <drow@mvista.com>
11432
11433 * signals/signals.c: Fix typos in last change.
11434
960cb555
DJ
114352003-03-26 Daniel Jacobowitz <drow@mvista.com>
11436
11437 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11438 not already defined. Use __SIGRTMIN if available.
11439 (target_signal_from_host): Remove SIGRTMIN block.
11440 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11441 the signal is within the realtime range.
11442
f636b87d
AF
114432003-03-25 Adam Fedor <fedor@gnu.org>
11444
11445 * Makefile.in (infrun.o): Add $(language_h)
11446 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11447 for language specific trampolines.
11448 * language.h (struct language_defn): Add skip_trampoline.
11449 (skip_language_trampoline): Declare.
11450 * language.c (unk_lang_trampoline, skip_language_trampoline):
11451 New functions.
11452 (unknown_language_defn, auto_language_defn, local_language_defn):
11453 Add ukn_lang_trampoline.
11454 * ada-lang.c (ada_language_defn): Add NULL for language
11455 specific skip_trampoline.
11456 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11457 scm-lang.c: Likewise.
11458 * objc-lang.c (objc_skip_trampoline): New function.
11459 (objc_language_defn): Add objc_skip_trampoline.
11460
28f617b3 114612003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11462
11463 * frame.c (get_prev_frame): Delay validating a frame's ID -
11464 non-NULL, didn't go backwards - until an attempt to unwind it to
11465 the previous frame.
11466
f933a9c5
AC
114672003-03-25 Andrew Cagney <cagney@redhat.com>
11468
11469 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11470 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11471 * gdbarch.h, gdbarch.c: Re-generate.
11472 * config/sparc/tm-sparc.h
11473 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11474 * sparc-tdep.c (sparc_gdbarch_init): Set
11475 deprecated_extra_stack_alignment_needed.
11476 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11478 extra_stack_alignment_needed.
11479 * v850-tdep.c (v850_gdbarch_init): Ditto.
11480 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11481 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11482 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11483 * cris-tdep.c (cris_gdbarch_init): Ditto.
11484 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11486
4183d812
AC
114872003-03-25 Andrew Cagney <cagney@redhat.com>
11488
11489 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11490 STORE_STRUCT_RETURN.
11491 * gdbarch.h, gdbarch.c: Regenerate.
11492 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11493 (d10v_push_arguments): Set the struct return register.
11494 (d10v_gdbarch_init): Update.
11495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11496 * x86-64-tdep.c (x86_64_init_abi): Update.
11497 * vax-tdep.c (vax_gdbarch_init): Update.
11498 * v850-tdep.c (v850_gdbarch_init): Update.
11499 * sparc-tdep.c (sparc_gdbarch_init): Update.
11500 * sh-tdep.c (sh_gdbarch_init): Update.
11501 * s390-tdep.c (s390_gdbarch_init): Update.
11502 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11503 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11504 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11505 * mips-tdep.c (mips_gdbarch_init): Update.
11506 * mcore-tdep.c (mcore_gdbarch_init): Update.
11507 * m68k-tdep.c (m68k_gdbarch_init): Update.
11508 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11509 * ia64-tdep.c (ia64_gdbarch_init): Update.
11510 * i386-tdep.c (i386_gdbarch_init): Update.
11511 * hppa-tdep.c (hppa_gdbarch_init): Update.
11512 * h8300-tdep.c (h8300_gdbarch_init): Update.
11513 * frv-tdep.c (frv_gdbarch_init): Update.
11514 * cris-tdep.c (cris_gdbarch_init): Update.
11515 * avr-tdep.c (avr_gdbarch_init): Update.
11516 * arm-tdep.c (arm_gdbarch_init): Update.
11517 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11518
1bf6d5cc
AC
115192003-03-25 Andrew Cagney <cagney@redhat.com>
11520
11521 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11522 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11523 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11524 * gdbarch.h, gdbarch.c: Regenerate.
11525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11526 call_dummy_stack_adjust_p.
11527 * vax-tdep.c (vax_gdbarch_init): Ditto.
11528 * v850-tdep.c (v850_gdbarch_init): Ditto.
11529 * sh-tdep.c (sh_gdbarch_init): Ditto.
11530 * s390-tdep.c (s390_gdbarch_init): Ditto.
11531 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11532 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11533 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11534 * mips-tdep.c (mips_gdbarch_init): Ditto.
11535 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11536 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11538 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11539 * i386-tdep.c (i386_gdbarch_init): Ditto.
11540 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11541 * frv-tdep.c (frv_gdbarch_init): Ditto.
11542 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11543 * cris-tdep.c (cris_gdbarch_init): Ditto.
11544 * avr-tdep.c (avr_gdbarch_init): Ditto.
11545 * arm-tdep.c (arm_gdbarch_init): Ditto.
11546 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11547 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11548 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11549 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11550 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11551 call_dummy_stack_adjust_p.
11552 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11553 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11554 * sparc-tdep.c (sparc32_push_arguments): Update.
11555 * valops.c (hand_function_call): Update.
11556
71c08af0
CV
115572003-03-25 Corinna Vinschen <vinschen@redhat.com>
11558
11559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11560 set_gdbarch_char_signed.
11561
30757f90
RE
115622003-03-25 Richard Earnshaw <rearnsha@arm.com>
11563
11564 PR cli/548
11565 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11566
03d48a7d
RE
115672003-03-25 Richard Earnshaw <rearnsha@arm.com>
11568
11569 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11570 (_initialize_arm_tdep): Don't set tm_print_insn.
11571
2cf6873c
AF
115722003-03-24 Adam Fedor <fedor@gnu.org>
11573
11574 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11575 * objc-lang.h: Add multiple inclusion protection.
11576 (start_msglist, add_msglist, end_msglist): Additional declarations.
11577
17c0759e
RE
115782003-03-24 Richard Earnshaw <rearnsha@arm.com>
11579
11580 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11581 value was renamed to ARM_FLOAT_SOFT_FPA.
11582
618ce49f
AC
115832003-03-23 Andrew Cagney <cagney@redhat.com>
11584
11585 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11586 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11587 * gdbarch.h, gdbarch.c: Regenerate.
11588 * valops.c (hand_function_call): Update.
11589 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11590 * frame.c (legacy_saved_regs_this_id): Update.
11591 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11592 * dummy-frame.h: Update.
11593 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11594 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11595 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11596 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11597 * config/m68k/tm-sun3.h: Update.
11598 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11600 * x86-64-tdep.c (x86_64_init_abi): Update.
11601 * vax-tdep.c (vax_gdbarch_init): Update.
11602 * v850-tdep.c (v850_gdbarch_init): Update.
11603 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11604 * sh-tdep.c (sh_gdbarch_init): Update.
11605 * s390-tdep.c (s390_gdbarch_init): Update.
11606 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11607 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11608 (frame_get_saved_regs): Update.
11609 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11610 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11612 * mips-tdep.c (mips_gdbarch_init): Update.
11613 * mcore-tdep.c (mcore_gdbarch_init): Update.
11614 * m68k-tdep.c (m68k_gdbarch_init): Update.
11615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11616 * ia64-tdep.c (ia64_gdbarch_init): Update.
11617 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11618 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11619 (i386_interix_back_one_frame): Update.
11620 * hppa-tdep.c (hppa_gdbarch_init): Update.
11621 (hppa_init_extra_frame_info): Update.
11622 * h8300-tdep.c (h8300_gdbarch_init): Update.
11623 * frv-tdep.c (frv_gdbarch_init): Update.
11624 * cris-tdep.c (cris_gdbarch_init): Update.
11625 * avr-tdep.c (avr_gdbarch_init): Update.
11626 * arm-tdep.c (arm_gdbarch_init): Update.
11627 * alpha-tdep.c (alpha_gdbarch_init): Update.
11628
fd50bc42
RE
116292003-03-22 Richard Earnshaw <rearnsha@arm.com>
11630
11631 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11632 (arm_get_fp_model): Declare.
11633 * arm-tdep.c (fp_model_strings): New string array.
11634 (arm_fp_model, current_fp_model): New variables.
11635 (arm_get_fp_model): New function.
11636 (arm_set_fp): New function.
11637 (set_fp_model_sfunc): New function.
11638 (show_fp_model): New function.
11639 (_initialize_arm_tdep): Add new command to set/show the FPU.
11640 (arm_extract_return_value): Use arm_get_fp_model.
11641 (arm_store_return_value): Likewise.
11642 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11643 to initialize the floating-point data types.
11644 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11645 model is FPA.
11646
26304000
RE
116472003-03-22 Richard Earnshaw <rearnsha@arm.com>
11648
11649 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11650 the current setting of each value.
11651 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11652 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11653 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11654 commands and add new version as subcommands of "set/show arm".
11655
afd7eef0
RE
116562003-03-22 Richard Earnshaw <rearnsha@arm.com>
11657
11658 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11659 (set_arm_command, show_arm_command): New functions.
11660 (_initialize_arm_tdep): Add them.
11661 (num_disassembly_options): Renamed from num_flavor_options.
11662 (valid_disassembly_styles): Renamed from valid_flavors.
11663 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11664 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11665 set_disassembly_flavor_sfunc.
11666 (set_disassembly_style): Renamed from set_disassembly_flavor.
11667 (arm_othernames): Updated.
11668 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11669 command. Add "set/show arm disassembly" commands. Deprecate
11670 "othernames" command.
11671
299a7944
RE
116722003-03-22 Richard Earnshaw <rearnsha@arm.com>
11673
11674 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11675 (arm-tdep.o): Depend on elf_arm_h.
11676
c1dac9e6
RE
116772003-03-22 Richard Earnshaw <rearnsha@arm.com>
11678
11679 * Makefile.in (coff_internal_h): Define.
11680 (arm-tdep.o): Update dependencies.
11681
2702d96c
RE
116822003-03-22 Richard Earnshaw <rearnsha@arm.com>
11683
11684 * arm-tdep.c (prologue_cache): Delete.
11685 (check_prologue_cache, save_prologue_cache): Delete.
11686 (arm_scan_prologue): Don't check or update the prologue_cache.
11687 (arm_gdb_arch_init): Don't initialize it.
11688 (_initialize_arm_tdep): Likewise.
11689
27d5d74b
SC
116902003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11691
11692 * MAINTAINERS (tui): Maintainer of tui code.
11693
1762d96d
CV
116942003-03-21 Corinna Vinschen <vinschen@redhat.com>
11695
11696 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11697 (i386-cygwin-tdep.o): Add dependencies.
11698 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11699 * i386-cygwin-tdep.c: New file.
11700 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11701 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11702
4c2e2391
AC
117032003-03-20 Andrew Cagney <cagney@redhat.com>
11704
f20d38b7
AC
11705 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11706 (handle_inferior_event): Remove code calling
11707 DYNAMIC_TRAMPOLINE_NEXTPC.
11708
0022b738
AC
11709 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11710 already has a full path.
11711
864dbc90
AC
11712 * main.c (gdb_main): Return 1.
11713 (captured_main): Call error to report an invalid interpreter.
11714
4c2e2391
AC
11715 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11716 * alpha-osf1-tdep.c: Include "gdb_string.h".
11717
5ef7553b
JB
117182003-03-19 J. Brobecker <brobecker@gnat.com>
11719
11720 Continuing work to convert the hppa targets to multiarch partial.
11721
11722 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11723 method, now that hppa_push_dummy_frame has a conformant prototype.
11724 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11725 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11726 for the switch to multiarch partial.
11727
7bde8967
KB
117282003-03-19 Kevin Buettner <kevinb@redhat.com>
11729
11730 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11731 when iss is issNull.
11732
b006a9e9
KB
117332003-03-18 Kevin Buettner <kevinb@redhat.com>
11734
11735 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11736 NUM_REGS bounds check.
11737
5e2e9765
KB
117382003-03-18 Kevin Buettner <kevinb@redhat.com>
11739
11740 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11741 * mips-tdep.c (gdb_assert.h): Include.
11742 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11743 (mips_register_name): Handle integer registers explicitly. Add
11744 bounds checking.
11745 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11746 (mips_lsi33k_reg_names): Don't list integer registers; they're
11747 handled by mips_register_name() now.
11748 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11749 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11750 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11751 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11752 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11753
a2867626
AC
117542003-03-18 Andrew Cagney <cagney@redhat.com>
11755
11756 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11757 a void pointer.
11758 * gdbtypes.h (print_scalar_formatted): Update declaration.
11759 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11760
06600e06
JB
117612003-03-18 J. Brobecker <brobecker@gnat.com>
11762
11763 * infrun.c (observer.h): Add #include.
11764 (normal_stop): Add call to observer_notify_normal_stop.
11765 * Makefile.in (infrun.o): Add dependency on observer.h.
11766
7daf4f5b
JB
117672003-03-18 J. Brobecker <brobecker@gnat.com>
11768
11769 Continuing work to convert the hppa targets to multiarch partial.
11770 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11771 parameter. Reformat comment.
11772 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11773 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11774 to match new profile.
11775
3371ccc0
JB
117762003-03-18 J. Brobecker <brobecker@gnat.com>
11777
11778 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11779 appear to be working in any case.
11780
4fbe891e
JB
117812003-03-18 J. Brobecker <brobecker@gnat.com>
11782
11783 * observer.c (observer_test_first_observer): New static variable.
11784 (observer_test_second_observer): Likewise.
11785 (observer_test_third_observer): Likewise.
11786 (observer_test_first_notification_function): New static function.
11787 (observer_test_second_notification_function): Likewise.
11788 (observer_test_third_notification_function): Likewise.
11789
a7ff40e7
JB
117902003-03-17 J. Brobecker <brobecker@gnat.com>
11791
11792 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11793 * somsolib.c (gdb_assert.h): Likewise.
11794 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11795 (somsolib.o): Likewise.
11796
26ca4152
AC
117972003-03-17 Andrew Cagney <cagney@redhat.com>
11798
11799 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11800 BFD. Simplify setting of di.endian.
11801
0a613259
AC
118022003-03-17 Andrew Cagney <cagney@redhat.com>
11803
11804 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11805 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11806
11807 From Elena Zannoni <ezannoni@redhat.com>
11808 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11809 vector and floating-point parameters.
11810 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11811 convention.
11812 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11813
1132738f
FN
118142003-03-17 Fernando Nasser <fnasser@redhat.com>
11815
11816 * MAINTAINERS: Remove my name from several maintainership roles.
11817
6dc42492
AC
118182003-03-17 Andrew Cagney <cagney@redhat.com>
11819
11820 Fix frame off-by-one bug.
11821 * frame-unwind.h (frame_this_id_ftype): Replace
11822 frame_unwind_id_ftype.
11823 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11824 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11825 with "prev_register".
11826 * frame-unwind.c (frame_unwind_find_by_pc): Return
11827 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11828 comment.
11829 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11830 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11831 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11832 (dummy_frame_unwind): Update.
11833 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11834 sentinel_frame_register_unwind.
11835 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11836 (sentinel_frame_unwinder): Update.
11837 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11838 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11839 * frame.c (create_sentinel_frame): Update. Initialize
11840 "prologue_cache" instead of "unwind_cache".
11841 (frame_register_unwind): Call this frame's prev_register with the
11842 next frame and this frame's prologue cache.
11843 (get_prev_frame): Simplify. Always call prev frame's this_id with
11844 this frame and prev frame's prologue cache. Document that this
11845 call is shifted one to the left when compared to the
11846 frame_register_unwind call.
11847 (legacy_saved_regs_prev_register): Replace
11848 frame_saved_regs_register_unwind.
11849 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11850 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11851 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11852 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11853 (d10v_frame_unwind): Update.
11854 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11855 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11856 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11857 "saved_regs" with "this_saved_regs".
11858
efd710d6
AC
118592003-03-16 Andrew Cagney <cagney@redhat.com>
11860
11861 * frame.c (frame_pop): Don't call target_store_registers. Fix
11862 problem reported by Mark Kettenis.
11863
4e259f09
MK
118642003-03-16 Mark Kettenis <kettenis@gnu.org>
11865
11866 * i386-tdep.c (i386_register_type): Renamed from
11867 i386_register_virtual_type. Adjust function signature.
11868 (i386_gdbarch_init): Set register_type instead of
11869 deprecated_max_register_raw_size,
11870 deprecated_max_register_virtual_size and register_virtual_type.
11871
055bb976
AC
118722003-03-14 Andrew Cagney <cagney@redhat.com>
11873
11874 * frame.c (get_prev_frame): When a legacy frame, always call
11875 legacy_get_prev_frame. Simplify unwind code using assumption that
11876 the unwinder is new.
11877 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11878 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11879 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11880
ac2adee5
AC
118812003-03-14 Andrew Cagney <cagney@redhat.com>
11882
11883 * frame.c (get_saved_register): Delete function.
11884 * frame.h (get_saved_register): Delete declaration.
11885 * xstormy16-tdep.c: Update comment.
11886 * regcache.h: Update comments.
11887 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11888 get_saved_register and extract_address, use
11889 frame_read_unsigned_register.
11890 (sparc_frame_saved_pc): Ditto.
11891 (sparc_get_saved_register): Instead of get_saved_register, use
11892 frame_register.
11893 (sparc_pop_frame): Ditto.
11894 * findvar.c: Update comments.
11895 (value_of_register): Call frame_register instead of
11896 get_saved_register.
11897 (value_from_register): Ditto.
11898 * config/sparc/tm-sparc.h: Update comment.
11899 * breakpoint.c: Update comment.
11900
129c1cd6
AC
119012003-03-14 Andrew Cagney <cagney@redhat.com>
11902
11903 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11904 GET_SAVED_REGISTER.
11905 * gdbarch.h, gdbarch.c: Re-generate.
11906 * frame.h: Update comments.
11907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11908 * x86-64-tdep.c (x86_64_init_abi): Update.
11909 * sparc-tdep.c (sparc_gdbarch_init): Update.
11910 * sh-tdep.c (sh_gdbarch_init): Update.
11911 * mips-tdep.c (mips_gdbarch_init): Update.
11912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11913 * cris-tdep.c (cris_gdbarch_init): Update.
11914 * ia64-tdep.c (ia64_gdbarch_init): Update.
11915 * frame.c (frame_register): Update.
11916 (get_saved_register): Update.
11917 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11918
749b82f6
AC
119192003-03-13 Andrew Cagney <cagney@redhat.com>
11920
11921 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11922 * gdbarch.h, gdbarch.c: Regenerate.
11923 * valops.c (hand_function_call): Update comment.
11924 * stack.c (return_command): Update comment.
11925 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11926 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11928 * x86-64-tdep.c (x86_64_init_abi): Update.
11929 * vax-tdep.c (vax_gdbarch_init): Update.
11930 * v850-tdep.c (v850_gdbarch_init): Update.
11931 * sparc-tdep.c (sparc_gdbarch_init): Update.
11932 * sh-tdep.c (sh_gdbarch_init): Update.
11933 * s390-tdep.c (s390_gdbarch_init): Update.
11934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11936 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11937 * mips-tdep.c (mips_gdbarch_init): Update.
11938 * mcore-tdep.c (mcore_gdbarch_init): Update.
11939 * m68k-tdep.c (m68k_gdbarch_init): Update.
11940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11941 * ia64-tdep.c (ia64_gdbarch_init): Update.
11942 * i386-tdep.c (i386_gdbarch_init): Update.
11943 * hppa-tdep.c (hppa_gdbarch_init): Update.
11944 * h8300-tdep.c (h8300_gdbarch_init): Update.
11945 * frv-tdep.c (frv_gdbarch_init): Update.
11946 * cris-tdep.c (cris_gdbarch_init): Update.
11947 * avr-tdep.c (avr_gdbarch_init): Update.
11948 * arm-tdep.c (arm_gdbarch_init): Update.
11949 * alpha-tdep.c (alpha_gdbarch_init): Update.
11950
1594fa56
AC
119512003-03-13 Andrew Cagney <cagney@redhat.com>
11952
11953 * frame.c (legacy_frame_p): New function.
11954 (get_prev_frame): Use legacy_frame_p.
11955 * frame.h (legacy_frame_p): Declare.
11956
7717fda3
V
119572003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11958
fbe586ae 11959 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11960 listing corrected.
11961
0c67cbe9
V
119622003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11963
fbe586ae 11964 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11965
03febf99
AC
119662003-03-12 Andrew Cagney <cagney@redhat.com>
11967
11968 * frame.c (get_prev_frame): Rename the frame parameter to
11969 "this_frame".
11970 (get_next_frame, legacy_get_prev_frame): Ditto.
11971
0a1e1ca1
AC
119722003-03-12 Andrew Cagney <cagney@redhat.com>
11973
11974 * frame.c (get_current_frame): Check target_has_registers before
11975 checking target_has_stack.
11976 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11977 instead of deprecated_selected_frame.
11978 * findvar.c (value_of_register): Pass "frame", not
11979 deprecated_selected_frame, to value_of_builtin_reg.
11980
a66a9c23
AC
119812003-03-12 Andrew Cagney <cagney@redhat.com>
11982
11983 * regcache.c (regcache_cooked_write_signed): New function.
11984 (regcache_cooked_write_unsigned): New function.
11985 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11986 (regcache_cooked_read_signed): Fix regnum in range assertion.
11987 * regcache.h (regcache_cooked_write_signed): Declare.
11988 (regcache_cooked_write_unsigned): Declare.
11989
8bedc050
AC
119902003-03-12 Andrew Cagney <cagney@redhat.com>
11991
11992 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11993 * gdbarch.h, gdbarch.c: Re-generate.
11994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11995 * x86-64-tdep.h: Update.
11996 * x86-64-tdep.c (x86_64_init_abi): Update.
11997 * v850-tdep.c (v850_gdbarch_init): Update.
11998 * sparc-tdep.c (sparc_gdbarch_init): Update.
11999 * sh-tdep.c (sh_gdbarch_init): Update.
12000 * s390-tdep.c (s390_gdbarch_init): Update.
12001 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12002 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12005 * mips-tdep.c (mips_gdbarch_init): Update.
12006 * mcore-tdep.c (mcore_gdbarch_init): Update.
12007 * m68k-tdep.c (m68k_gdbarch_init): Update.
12008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12009 * ia64-tdep.c (ia64_gdbarch_init): Update.
12010 * i386-tdep.c (i386_gdbarch_init): Update.
12011 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12012 * hppa-tdep.c (hppa_gdbarch_init): Update.
12013 * h8300-tdep.c (h8300_gdbarch_init): Update.
12014 * frv-tdep.c (frv_gdbarch_init): Update.
12015 * cris-tdep.c (cris_gdbarch_init): Update.
12016 * avr-tdep.c (avr_gdbarch_init): Update.
12017 * arm-tdep.c (arm_gdbarch_init): Update.
12018 * alpha-tdep.c (alpha_gdbarch_init): Update.
12019 * sh-tdep.c (sh_init_extra_frame_info): Update.
12020 (sh64_init_extra_frame_info): Update.
12021 * ns32knbsd-nat.c (frame_num_args): Update.
12022 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12023 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12024 (xstormy16_frame_chain_valid): Update.
12025 * vax-tdep.c (vax_saved_pc_after_call): Update.
12026 * v850-tdep.c (v850_frame_chain): Update.
12027 (v850_pop_frame): Update.
12028 (v850_init_extra_frame_info): Update.
12029 * sparc-tdep.c (setup_arbitrary_frame): Update.
12030 * ns32k-tdep.c (umax_frame_num_args): Update.
12031 * s390-tdep.c (s390_pop_frame_regular): Update.
12032 * mn10300-tdep.c (mn10300_frame_chain): Update.
12033 (mn10300_pop_frame_regular): Update.
12034 (mn10300_init_extra_frame_info): Update.
12035 * mips-tdep.c (mips_init_frame_pc_first): Update.
12036 (mips_frame_chain): Update.
12037 (mips_pop_frame): Update.
12038 * mcore-tdep.c (mcore_frame_chain): Update.
12039 (mcore_pop_frame): Update.
12040 (mcore_init_extra_frame_info): Update.
12041 * arch-utils.c (init_frame_pc_default): Update.
12042 * m68k-tdep.c (isi_frame_num_args): Update.
12043 (delta68_frame_num_args): Update.
12044 (news_frame_num_args): Update.
12045 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12046 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12047 (alpha_frame_chain): Update.
12048 (alpha_pop_frame): Update.
12049 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12050 (hppa_init_extra_frame_info): Update.
12051 (hppa_frame_chain): Update.
12052 (hppa_frame_chain_valid): Update.
12053 * cris-tdep.c (cris_init_extra_frame_info): Update.
12054 * avr-tdep.c (avr_init_extra_frame_info): Update.
12055 * arm-tdep.c (arm_frame_chain_valid): Update.
12056 (arm_init_extra_frame_info): Update.
12057 (arm_pop_frame): Update.
12058 * frame.c (frame_pc_unwind): Update.
12059 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12060 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12061 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12062 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12063 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12064 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12065
7a25a7c1
AC
120662003-03-12 Andrew Cagney <cagney@redhat.com>
12067
12068 Eliminate the need for POP_FRAME.
12069 * frame.c (do_frame_unwind_register): New function.
12070 (frame_pop): When no POP_FRAME, pop the frame using register
12071 unwind and a scratch regcache.
12072 (frame_saved_regs_pop): Delete function.
12073 (trad_frame_unwinder): Update.
12074 * d10v-tdep.c (d10v_frame_pop): Delete function.
12075 (d10v_frame_unwind): Update.
12076 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12077 (sentinel_frame_unwinder): Update.
12078 * dummy-frame.c (dummy_frame_pop): Delete function.
12079 (dummy_frame_unwind): Update.
12080 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12081 (struct frame_unwind): Update.
12082
2f38ef89
KB
120832003-03-11 Kevin Buettner <kevinb@redhat.com>
12084
12085 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12086 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12087 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12088 Do range checks on register number obtained from debugging info.
12089 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12090 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12091 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12092 mapping function.
12093 (do_fp_register_row): Fix typo which caused double type to be
12094 used when attempting to unpack a float.
12095
552f4abf
JB
120962003-03-11 J. Brobecker <brobecker@gnat.com>
12097
12098 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12099
e0d2ae16
AC
121002003-03-11 Andrew Cagney <cagney@redhat.com>
12101
12102 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12103 frame. Problem found by Corinna Vinschen.
12104
ddbfdd06
PM
121052003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12106
12107 * doublest.c (floatformat_from_length): Accept also
12108 the real size of 'long double' type.
12109
088b2ddc 121102003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12111
088b2ddc 12112 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12113 * breakpoint.c (bpstat_copy): Copy the command lines as well
12114 as the old value, to match what is freed in bpstat_clear.
12115
f56f77c1
DC
121162003-03-10 David Carlton <carlton@math.stanford.edu>
12117
12118 * minsyms.c (add_minsym_to_hash_table): Replace
12119 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12120 (compare_minimal_symbols, compact_minimal_symbols)
12121 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12122 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12123 of DEPRECATED_SYMBOL_MATCHES_NAME.
12124 (lookup_minimal_symbol_solib_trampoline): Ditto.
12125
5602984a
AC
121262003-03-10 Andrew Cagney <cagney@redhat.com>
12127
12128 * regcache.h (regcache_cooked_read_ftype): Define.
12129 (regcache_save, regcache_restore): Add a cooked_read parameter.
12130 * regcache.c (regcache_save, regcache_restore): Update.
12131 (do_cooked_read): New function.
12132 (regcache_cpy): Pass do_cooked_read to regcache_save and
12133 regcache_restore.
12134
8bedc050
AC
121352003-03-10 Andrew Cagney <cagney@redhat.com>
12136
12137 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12138 * gdbarch.h, gdbarch.c: Re-generate.
12139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12140 * x86-64-tdep.h: Update.
12141 * x86-64-tdep.c (x86_64_init_abi): Update.
12142 * v850-tdep.c (v850_gdbarch_init): Update.
12143 * sparc-tdep.c (sparc_gdbarch_init): Update.
12144 * sh-tdep.c (sh_gdbarch_init): Update.
12145 * s390-tdep.c (s390_gdbarch_init): Update.
12146 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12147 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12148 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12149 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12150 * mips-tdep.c (mips_gdbarch_init): Update.
12151 * mcore-tdep.c (mcore_gdbarch_init): Update.
12152 * m68k-tdep.c (m68k_gdbarch_init): Update.
12153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12154 * ia64-tdep.c (ia64_gdbarch_init): Update.
12155 * i386-tdep.c (i386_gdbarch_init): Update.
12156 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12157 * hppa-tdep.c (hppa_gdbarch_init): Update.
12158 * h8300-tdep.c (h8300_gdbarch_init): Update.
12159 * frv-tdep.c (frv_gdbarch_init): Update.
12160 * cris-tdep.c (cris_gdbarch_init): Update.
12161 * avr-tdep.c (avr_gdbarch_init): Update.
12162 * arm-tdep.c (arm_gdbarch_init): Update.
12163 * alpha-tdep.c (alpha_gdbarch_init): Update.
12164 * sh-tdep.c (sh_init_extra_frame_info): Update.
12165 (sh64_init_extra_frame_info): Update.
12166 * ns32knbsd-nat.c (frame_num_args): Update.
12167 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12168 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12169 (xstormy16_frame_chain_valid): Update.
12170 * vax-tdep.c (vax_saved_pc_after_call): Update.
12171 * v850-tdep.c (v850_frame_chain): Update.
12172 (v850_pop_frame): Update.
12173 (v850_init_extra_frame_info): Update.
12174 * sparc-tdep.c (setup_arbitrary_frame): Update.
12175 * ns32k-tdep.c (umax_frame_num_args): Update.
12176 * s390-tdep.c (s390_pop_frame_regular): Update.
12177 * mn10300-tdep.c (mn10300_frame_chain): Update.
12178 (mn10300_pop_frame_regular): Update.
12179 (mn10300_init_extra_frame_info): Update.
12180 * mips-tdep.c (mips_init_frame_pc_first): Update.
12181 (mips_frame_chain): Update.
12182 (mips_pop_frame): Update.
12183 * mcore-tdep.c (mcore_frame_chain): Update.
12184 (mcore_pop_frame): Update.
12185 (mcore_init_extra_frame_info): Update.
12186 * arch-utils.c (init_frame_pc_default): Update.
12187 * m68k-tdep.c (isi_frame_num_args): Update.
12188 (delta68_frame_num_args): Update.
12189 (news_frame_num_args): Update.
12190 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12191 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12192 (alpha_frame_chain): Update.
12193 (alpha_pop_frame): Update.
12194 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12195 (hppa_init_extra_frame_info): Update.
12196 (hppa_frame_chain): Update.
12197 (hppa_frame_chain_valid): Update.
12198 * cris-tdep.c (cris_init_extra_frame_info): Update.
12199 * avr-tdep.c (avr_init_extra_frame_info): Update.
12200 * arm-tdep.c (arm_frame_chain_valid): Update.
12201 (arm_init_extra_frame_info): Update.
12202 (arm_pop_frame): Update.
12203 * frame.c (frame_pc_unwind): Update.
12204 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12205 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12206 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12207 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12208 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12209 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12210
12cc2063
AC
122112003-03-10 Andrew Cagney <cagney@redhat.com>
12212
12213 * gdbarch.sh (gdbarch_unwind_pc): New method.
12214 * gdbarch.h, gdbarch.c: Regenerate.
12215 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12216 but use read_pc and FRAME_SAVED_PC as fall backs.
12217 (frame_saved_regs_pc_unwind): Delete function.
12218 (trad_frame_unwinder): Update.
12219 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12220 (struct frame_unwind): Update.
12221 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12222 (dummy_frame_unwind): Update.
12223 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12224 (sentinel_frame_unwinder): Update.
12225 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12226 (d10v_frame_unwind): Update.
12227 (d10v_unwind_pc): New function.
12228 (d10v_gdbarch_init): Set unwind_pc.
12229
ef840a37
AC
122302003-03-10 Andrew Cagney <cagney@redhat.com>
12231
a2ce2e56
AC
12232 * gdbarch.h: Re-generate.
12233
ef840a37
AC
12234 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12235 PC.
12236 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12237 the PC register.
12238
08f3424b
MK
122392003-03-08 Mark Kettenis <kettenis@gnu.org>
12240
12241 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12242
1248ede2
AC
122432003-03-08 Andrew Cagney <cagney@redhat.com>
12244
12245 * cli-out.c: Update copyright.
12246 (cli_out_data): Define typedef. Use instead of ui_out_data.
12247
f49bacc8
AC
122482003-03-08 Andrew Cagney <cagney@redhat.com>
12249
12250 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12251 the result.
12252
9b05f993
AC
122532003-03-07 Andrew Cagney <cagney@redhat.com>
12254
12255 * gdbarch.sh: Don't generate two macro definitions when an
12256 undefined macro taking no arguments.
12257 * gdbarch.h: Regenerate.
8ffd9b1b 12258
166f4c7b
ML
122592002-03-07 Michal Ludvig <mludvig@suse.cz>
12260
12261 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12262 (x86_64_unwind_dummy_id): New functions.
12263 (x86_64_init_abi): Register these two new functions.
12264
6d686a84
ML
122652003-03-07 Michal Ludvig <mludvig@suse.cz>
12266
12267 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12268 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12269 separate function.
12270 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12271
6314f104
AC
122722003-03-05 Andrew Cagney <cagney@redhat.com>
12273
12274 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12275 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12276 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12277 to use unwind_dummy_id when a dummy frame.
12278 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12279 predicate.
12280 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12281
ceea5145
AC
122822003-03-05 Andrew Cagney <cagney@redhat.com>
12283
12284 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12285 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12286 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12287 values.
12288
0d843116
AC
122892003-03-05 Andrew Cagney <cagney@redhat.com>
12290
12291 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12292 (struct d10v_unwind_cache): Delete field "frameless". Replace
12293 "next_addr" with "sp_offset". Add "r11_offset".
12294 (d10v_frame_unwind_cache): Update.
12295 (prologue_find_regs): Update. When "mv r11, sp", save the
12296 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12297 RN was saved in r11_offset.
12298
b2579786
AC
122992003-03-05 Andrew Cagney <cagney@redhat.com>
12300
12301 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12302 cached PC value in the next frame.
12303
218e5956
AC
123042003-03-05 Andrew Cagney <cagney@redhat.com>
12305
12306 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12307 "id_unwind_cache" with "id".
12308 (frame_id_unwind): Delete declaration.
12309 * frame.c (frame_id_unwind): Delete function.
12310 (get_prev_frame): Call the frame id unwind method directly. Store
12311 the returned next frame's ID value in NEXT_FRAME. Note that there
12312 is a problem with the wrong unwind ID being called with the wrong
12313 unwind cache.
12314
ed363b1b
DJ
123152003-03-05 Daniel Jacobowitz <drow@mvista.com>
12316
12317 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12318
fe1f4a5e
DJ
123192003-03-05 James Ingham <jingham@apple.com>
12320 Daniel Jacobowitz <drow@mvista.com>
12321
12322 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12323 (auto_cp_abi): New variable.
12324 (current_cp_abi, num_cp_abis): Make static.
12325 (CP_ABI_MAX): Define.
12326 (cp_abis): Turn into an array.
12327 (value_virtual_fn_field): Fix formatting.
12328 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12329 takes a pointer.
12330 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12331 (list_cp_abis, _initialize_cp_abi): New functions.
12332 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12333 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12334 switch_to_cp_abi. Update prototype for register_cp_abi.
12335 * Makefile.in (cp-abi.o): Update dependencies.
12336 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12337 instead of switch_to_cp_abi.
12338 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12339 register_cp_abi.
12340 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12341 register_cp_abi.
12342 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12343
e4adbba9
DJ
123442003-03-05 Daniel Jacobowitz <drow@mvista.com>
12345
12346 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12347 * dwarf2loc.c: Include "regcache.h".
12348 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12349 register_size.
12350 * Makefile.in (dwarf2loc.o): Update dependencies.
12351
91ccbfc1
TR
123522003-03-04 Theodore A. Roth <troth@openavr.org>
12353
12354 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12355 number of io registers reported by remote target is not a multiple of
12356 step.
12357
3d4e8fd2
DC
123582003-03-04 David Carlton <carlton@math.stanford.edu>
12359
12360 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12361 (lookup_symbol_aux_psymtabs): Update call to
12362 lookup_partial_symbol.
12363 (lookup_transparent_type, find_main_psymtab)
12364 (make_symbol_overload_list): Ditto.
12365
ed42d87b
KH
123662003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12367
12368 * MAINTAINERS (Write after approval): Update my email address.
12369
a0ed5532
AC
123702003-03-03 Andrew Cagney <cagney@redhat.com>
12371
12372 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12373 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12374 predicate. Replace MAX_REGISTER_RAW_SIZE.
12375 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12376 MAX_REGISTER_VIRTUAL_SIZE.
12377 * regcache.c (legacy_max_register_raw_size): New function.
12378 (legacy_max_register_virtual_size): New function.
12379 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12380 (MAX_REGISTER_RAW_SIZE): Define.
12381 (legacy_max_register_raw_size): Declare.
12382 (legacy_max_register_virtual_size): Declare.
12383 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12384 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12385 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12386 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12387 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12388 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12389 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12390 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12391 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12393 * vax-tdep.c (vax_gdbarch_init): Update.
12394 * v850-tdep.c (v850_gdbarch_init): Update.
12395 * sparc-tdep.c (sparc_gdbarch_init): Update.
12396 * sh-tdep.c (sh_gdbarch_init): Update.
12397 * s390-tdep.c (s390_gdbarch_init): Update.
12398 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12399 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12400 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12401 * mips-tdep.c (mips_gdbarch_init): Update.
12402 * mcore-tdep.c (mcore_gdbarch_init): Update.
12403 * m68k-tdep.c (m68k_gdbarch_init): Update.
12404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12405 * ia64-tdep.c (ia64_gdbarch_init): Update.
12406 * i386-tdep.c (i386_gdbarch_init): Update.
12407 * hppa-tdep.c (hppa_gdbarch_init): Update.
12408 * h8300-tdep.c (h8300_gdbarch_init): Update.
12409 * frv-tdep.c (frv_gdbarch_init): Update.
12410 * cris-tdep.c (cris_gdbarch_init): Update.
12411 * avr-tdep.c (avr_gdbarch_init): Update.
12412 * arm-tdep.c (arm_gdbarch_init): Update.
12413 * alpha-tdep.c (alpha_gdbarch_init): Update.
12414 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12415 max_register_raw_size or max_register_virtual_size.
12416
8e437497
DC
124172003-03-03 David Carlton <carlton@math.stanford.edu>
12418
12419 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12420 SYMBOL_MATCHES_NAME, add comment.
12421 (SYMBOL_MATCHES_NATURAL_NAME): New.
12422 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12423 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12424 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12425 * symtab.c (lookup_partial_symbol): Use
12426 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12427 unhelpful comment.
12428 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12429 SYMBOL_MATCHES_NAME.
12430 Fix for PR c++/33.
12431
25120b0d
DC
124322003-03-03 David Carlton <carlton@math.stanford.edu>
12433
12434 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12435 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12436 by regexp matching against SYMBOL_NATURAL_NAME.
12437
78a11fb4
DC
124382003-03-03 David Carlton <carlton@math.stanford.edu>
12439
12440 * linespec.c (find_method): Extract code into collect_methods.
12441 (collect_methods): New.
12442
645dd519
MK
124432003-03-02 Mark Kettenis <kettenis@gnu.org>
12444
b4700d91
MK
12445 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12446 get_frame_base.
12447
645dd519
MK
12448 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12449 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12450
0aa7e1aa
SC
124512003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12452
8ffd9b1b 12453 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12454 and not regnum when summing the size of all registers up to regnum.
12455
f30ee0bc
AC
124562003-03-01 Andrew Cagney <cagney@redhat.com>
12457
12458 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12459 FRAME_INIT_SAVED_REGS.
12460 * gdbarch.h, gdbarch.c: Regenerate.
12461 * stack.c (frame_info): Update.
12462 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12463 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12464 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12465 * ns32k-tdep.c (ns32k_pop_frame): Update.
12466 * mips-tdep.c (mips_pop_frame): Update.
12467 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12468 * ia64-tdep.c (ia64_frame_chain): Update.
12469 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12470 (ia64_frameless_function_invocation): Update.
12471 (ia64_init_extra_frame_info): Update.
12472 (ia64_pop_frame_regular): Update.
12473 * frame.h (struct frame_info): Update comment.
12474 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12475 * frame.c (frame_saved_regs_register_unwind): Update.
12476 (frame_saved_regs_register_unwind): Update.
12477 (deprecated_generic_get_saved_register): Update.
12478 * cris-tdep.c: Update comment.
12479 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12480 Rename macro.
12481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12482 * x86-64-tdep.c (x86_64_init_abi): Update.
12483 * vax-tdep.c (vax_gdbarch_init): Update.
12484 * v850-tdep.c (v850_gdbarch_init): Update.
12485 * sparc-tdep.c (sparc_gdbarch_init): Update.
12486 * sh-tdep.c (sh_gdbarch_init): Update.
12487 * s390-tdep.c (s390_gdbarch_init): Update.
12488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12489 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12490 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12492 * mips-tdep.c (mips_gdbarch_init): Update.
12493 * mcore-tdep.c (mcore_gdbarch_init): Update.
12494 * m68k-tdep.c (m68k_gdbarch_init): Update.
12495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12496 * ia64-tdep.c (ia64_gdbarch_init): Update.
12497 * i386-tdep.c (i386_gdbarch_init): Update.
12498 * frv-tdep.c (frv_gdbarch_init): Update.
12499 * avr-tdep.c (avr_gdbarch_init): Update.
12500 * arm-tdep.c (arm_gdbarch_init): Update.
12501 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12502
42fa7c0f
AC
125032003-03-01 Andrew Cagney <cagney@redhat.com>
12504
12505 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12506 option enum and switch. When no windows, set the interpreter to
12507 INTERP_CONSOLE.
8ffd9b1b 12508
49c7e338
AC
125092003-03-01 Andrew Cagney <cagney@redhat.com>
12510
12511 * main.c (captured_main): Replace magic option characters with an
12512 enum.
12513
e9582e71
AC
125142003-03-01 Andrew Cagney <cagney@redhat.com>
12515
12516 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12517 INIT_EXTRA_FRAME_INFO.
12518 * gdbarch.h, gdbarch.c: Regenerate.
12519 * arm-tdep.c: Update comments.
12520 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12521 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12522 * frame.h, avr-tdep.c: Ditto.
12523 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12524 (create_new_frame, legacy_get_prev_frame): Ditto.
12525 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12526 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12528 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12529 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12530 * v850-tdep.c (v850_gdbarch_init): Ditto.
12531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12532 * sh-tdep.c (sh_gdbarch_init): Ditto.
12533 * s390-tdep.c (s390_gdbarch_init): Ditto.
12534 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12536 * mips-tdep.c (mips_gdbarch_init): Ditto.
12537 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12539 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12540 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12541 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12542 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12543 * frv-tdep.c (frv_gdbarch_init): Ditto.
12544 * cris-tdep.c (cris_gdbarch_init): Ditto.
12545 * avr-tdep.c (avr_gdbarch_init): Ditto.
12546 * arm-tdep.c (arm_gdbarch_init): Ditto.
12547 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12548 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12549
35cac7cf
AC
125502003-03-01 Andrew Cagney <cagney@redhat.com>
12551
12552 * gdbarch.sh (register_type): New function with predicate.
12553 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12554 * gdbarch.h, gdbarch.c: Re-generate.
12555 * arch-utils.c (generic_register_byte): Use generic_register_size.
12556 (generic_register_size): When available, use
12557 gdbarch_register_type.
12558 * regcache.c (init_regcache_descr): When available, initialize the
12559 register type array using gdbarch_register_type. If the
12560 architecture supplies gdbarch_register_type, do not use the legacy
12561 regcache layout.
12562 * d10v-tdep.c (d10v_register_type): Replace
12563 d10v_register_virtual_type.
12564 (d10v_gdbarch_init): Set register_type instead of
12565 register_virtual_type.
12566
7b83296f
AC
125672003-03-01 Andrew Cagney <cagney@redhat.com>
12568
12569 * Makefile.in (ax-gdb.o): Update dependencies.
12570 * ax-gdb.c: Include "regcache.h".
12571 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12572 * findvar.c (value_of_register): Ditto.
12573 * infcmd.c (default_print_registers_info): Ditto.
12574
eadc1c87
MK
125752003-03-01 Mark Kettenis <kettenis@gnu.org>
12576
12577 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12578 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12579
14143612
MK
125802003-03-01 Mark Kettenis <kettenis@gnu.org>
12581
12582 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12583 of STREQ.
12584
a55cc764
DJ
125852003-02-28 Daniel Jacobowitz <drow@mvista.com>
12586
12587 * Makefile.in (dwarf2loc.o): Update dependencies.
12588 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12589 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12590 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12591 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12592 (locexpr_tracepoint_var_ref): New function.
12593 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12594
08a617da
AC
125952003-02-28 Andrew Cagney <cagney@redhat.com>
12596
12597 * regcache.c (register_size): New function.
12598 * regcache.h (register_size): Declare
12599 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12600 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12601
4224873a
DC
126022003-02-28 David Carlton <carlton@math.stanford.edu>
12603
12604 * linespec.c (decode_compound): Extract code into find_method.
12605 (find_method): New.
12606
ccdc5d7f
JB
126072003-02-28 J. Brobecker <brobecker@gnat.com>
12608
12609 * Makefile.in: Add rules to build and link in observer.o.
12610
974e8ced
JB
126112003-02-27 J. Brobecker <brobecker@gnat.com>
12612
12613 * observer.c: Minor comments edits.
12614
7a28f973
JB
126152003-02-27 J. Brobecker <brobecker@gnat.com>
12616
12617 * observer.h, observer.c: New file.
12618
27cddce2
AC
126192003-02-27 Andrew Cagney <cagney@redhat.com>
12620
12621 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12622
b94a41a1
SC
126232003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12624
12625 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12626 (M6812_OP_STS_EXT): Likewise.
12627 (m6811_prologue): Use the above to recognize prologue.
12628 (m6812_prologue): Likewise.
12629
c8be8951
DC
126302003-02-27 David Carlton <carlton@math.stanford.edu>
12631
12632 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12633 SYMBOL_PRINT_NAME.
12634 (compare_psymbols): Ditto.
12635 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12636
d05bb1fc
MS
126372003-02-27 Michael Snyder <msnyder@redhat.com>
12638
4e845cd3
MS
12639 * f-lang.c (build_fortran_types): New function.
12640 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12641 * doublest.c (extract_floating): Fix warning text.
12642
f3824013
AC
126432003-02-27 Andrew Cagney <cagney@redhat.com>
12644
12645 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12646 predicate. Replaces PUSH_DUMMY_FRAME.
12647 * gdbarch.h, gdbarch.c: Regnerate.
12648 * valops.c (hand_function_call): Update. Call
12649 generic_push_dummy_frame directly.
12650 * vax-tdep.c (vax_gdbarch_init): Update.
12651 * sparc-tdep.c (sparc_gdbarch_init): Update.
12652 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12653 * m68k-tdep.c (m68k_gdbarch_init): Update.
12654 * hppa-tdep.c (hppa_gdbarch_init): Update.
12655 * alpha-tdep.c (alpha_gdbarch_init): Update.
12656 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12657 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12658 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12659 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12660 push_dummy_frame to generic_push_dummy_frame.
12661 * v850-tdep.c (v850_gdbarch_init): Ditto.
12662 * sh-tdep.c (sh_gdbarch_init): Ditto.
12663 * s390-tdep.c (s390_gdbarch_init): Ditto.
12664 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12665 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12666 * mips-tdep.c (mips_gdbarch_init): Ditto.
12667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12669 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12670 * i386-tdep.c (i386_gdbarch_init): Ditto.
12671 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12672 * frv-tdep.c (frv_gdbarch_init): Ditto.
12673 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12674 * cris-tdep.c (cris_gdbarch_init): Ditto.
12675 * avr-tdep.c (avr_gdbarch_init): Ditto.
12676 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12677
ad188201
KB
126782003-02-26 Kevin Buettner <kevinb@redhat.com>
12679
12680 * mips-tdep.c (show_mips_abi): New function.
12681 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12682 command ``show mips abi''.
12683
6b37567a 126842003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12685
6b37567a 12686 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12687 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12688 more sline entries have been seen for the function.
12689
d3e0a5bf
MC
126902003-02-26 Michael Chastain <mec@shout.net>
12691
12692 * configure: Regenerate with autoconf 000227.
12693
18972eea
MC
126942003-02-26 Michael Chastain <mec@shout.net>
12695
12696 Close PR build/660.
12697 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12698 for old libc5/glibc.
12699 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12700
0bbde931
KW
127012003-02-26 Kris Warkentin <kewarken@qnx.com>
12702
12703 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12704 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12705
27ca5dad
MC
127062003-02-26 Michael Chastain <mec@shout.net>
12707
12708 * configure.in: New variable HAVE_UINTPTR_T.
12709 * configure, config.in: Regenerated.
12710
6f88d630
DJ
127112003-02-26 Daniel Jacobowitz <drow@mvista.com>
12712
12713 Fix PR build/1097.
12714 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12715
b14185ce
AC
127162003-02-25 Andrew Cagney <cagney@redhat.com>
12717
12718 * frame.c (get_prev_frame): Add comment on check for
12719 inside_entry_func. Only check for inside_entry_file when not a
12720 dummy and not a sentinel. Check that the new frame is not inner
12721 to the old frame.
12722
ac2bd0a9
AC
127232003-02-25 Andrew Cagney <cagney@redhat.com>
12724
12725 * frame.c (frame_debug): New variable.
12726 (_initialize_frame): Add "set/show debug frame" command.
12727 (get_prev_frame): When frame_debug, print reason why unwind
12728 failed.
12729
b18a0fd2
MC
127302003-02-25 Michael Chastain <mec@shout.net>
12731
12732 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12733 to avoid uintptr_t definition problems.
12734
22abf04a
DC
127352003-02-25 David Carlton <carlton@math.stanford.edu>
12736
12737 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12738 (SYMBOL_LINKAGE_NAME): Ditto.
12739 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12740 SYMBOL_LINKAGE_NAME.
12741 (struct general_symbol_info): Expand comment.
12742 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12743 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12744 (SYMBOL_MATCHES_REGEXP): Ditto.
12745 * symtab.c (symbol_natural_name): New function.
12746 * objfiles.h: Replace all uses of SYMBOL_NAME by
12747 DEPRECATED_SYMBOL_NAME.
12748 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12749 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12750 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12751 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12752 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12753 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12754 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12755 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12756 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12757 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12758 * ada-exp.y: Ditto.
12759 * ada-exp.y: Update copyright.
12760 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12761 * cp-valprint.c: Ditto.
12762
1a5848f6
JJ
127632003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12764
12765 * infptrace.c (detach): Do not flag error if ptrace detach fails
12766 and errno is set to ESRCH.
12767
7343d46a
AC
127682003-02-24 Andrew Cagney <cagney@redhat.com>
12769
12770 * infptrace.c (udot_info): Change type of udot_off to long. Use
12771 paddr when printing udot_off's value.
12772
49fa1dc2
DC
127732003-02-24 David Carlton <carlton@math.stanford.edu>
12774
12775 * symtab.c (make_symbol_overload_list): Only read in partial
12776 symtabs containing a matching partial symbol.
12777
0fe19209
DC
127782003-02-24 David Carlton <carlton@math.stanford.edu>
12779
12780 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12781 do the comparison, not strcmp.
12782 * symfile.c (compare_psymbols): Ditto.
12783 * defs.h: Declare strcmp_iw_ordered.
12784 * utils.c (strcmp_iw_ordered): New function.
12785
8e3ee7b5
JB
127862003-02-24 Jim Blandy <jimb@redhat.com>
12787
12788 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12789 support, shared libs): Remove my name from here, to better reflect
12790 reality.
12791
7df1a324
KW
127922003-02-24 Kris Warkentin <kewarken@qnx.com>
12793
12794 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12795 (target_ops): Add to_have_continuable_watchpoint.
12796 * target.c (update_current_target): Add INHERIT line for
12797 to_have_continuable_watchpoint.
12798 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12799 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12800 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12801 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12802
d1c76907
EZ
128032003-02-24 Elena Zannoni <ezannoni@redhat.com>
12804
12805 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12806 maintainership.
12807
2610b0bf
KW
128082003-02-24 Kris Warkentin <kewarken@qnx.com>
12809
f46169db
KW
12810 * solib.c (solib_open): Call target defined search function after
12811 failing with solib-search-path.
12812 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12813 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12814
9a3c34fe
KW
128152003-02-24 Kris Warkentin <kewarken@qnx.com>
12816
f46169db 12817 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12818
2417dd25
SC
128192003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12820
12821 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12822
b631436b
SC
128232003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12824
12825 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12826 (m68hc11_add_reggroups): New function.
12827 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12828 (m68hc11_gdbarch_init): Install the reggroups.
12829 (_initialize_m68hc11_tdep): Initialize them.
12830
0aa8c1e4
JW
128312003-02-21 James E Wilson <wilson@tuliptree.org>
12832
12833 * MAINTAINERS: Update my email address.
12834
50ceaba5
DC
128352003-02-21 David Carlton <carlton@math.stanford.edu>
12836
12837 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12838
4c2df51b
DJ
128392003-02-21 Daniel Jacobowitz <drow@mvista.com>
12840
12841 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12842 * symtab.h: Add opaque declarations of struct axs_value and
12843 struct agent_expr.
12844 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12845 (struct location_funcs): New type.
12846 (struct symbol): Add "loc" to aux_value.
12847 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12848 * dwarf2read.c: Include "dwarf2expr.h".
12849 (dwarf2_symbol_mark_computed): New function.
12850 (read_func_scope): Use it.
12851 (var_decode_location): New function.
12852 (new_symbol): Use it.
12853 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12854
12855 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12856 (dwarf2expr_h, dwarf2loc_h): New variables.
12857 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12858 (dwarf2expr.o, dwarf2loc.o): New rules.
12859 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12860 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12861 LOC_COMPUTED_ARG.
12862 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12863 * m2-exp.y (yylex): Likewise.
12864 * printcmd.c (address_info, print_frame_args): Likewise.
12865 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12866 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12867 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12868 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12869 * symtab.c (lookup_block_symbol): Likewise.
12870
5784d15e
AF
128712003-02-20 Adam Fedor <fedor@gnu.org>
12872
12873 * symtab.h: Remove objc_specific struct
12874 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12875 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12876 Have language_objc use cplus_specific struct.
12877
d4cad8db
TT
128782003-02-20 Tom Tromey <tromey@redhat.com>
12879
12880 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12881 TYPE_NAME, when printing a String value. PR java/1075.
12882
2f9a90b4
AF
128832003-02-20 Adam Fedor <fedor@gnu.org>
12884
d38074a8 12885 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12886 * objc-lang.c (find_methods): Make static.
2f9a90b4 12887
6f17862b
CF
128882003-02-20 Christopher Faylor <cgf@redhat.com>
12889
12890 * win32-nat.c (get_image_name): Check return value from
12891 ReadProcessMemory.
12892 (child_xfer_memory): Ditto.
12893
715d1656
AO
128942003-02-20 Alexandre Oliva <aoliva@redhat.com>
12895
12896 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12897 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12898 '${exec_prefix}' (in addition to the expansion thereof) as
12899 relocatable.
12900 * configure: Rebuilt.
12901
b1262a02
DC
129022003-02-20 David Carlton <carlton@math.stanford.edu>
12903
12904 * symtab.c (search_symbols): Revert the search_symbols part of my
12905 2002-12-23 patch. Add comment.
12906
7134143f
DJ
129072002-02-20 Daniel Jacobowitz <drow@mvista.com>
12908
12909 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12910 * dbxread.c (elfstab_build_psymtabs): Don't call
12911 install_minimal_symbols.
12912 (stabsect_build_psymtabs): Likewise.
12913 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12914 earlier.
12915 * somread.c (som_symfile_read): Call install_minimal_symbols
12916 and do_cleanups earlier.
12917 * nlmread.c (nlm_symfile_read): Likewise.
12918 * mdebugread.c (elfmdebug_build_psymtabs): Call
12919 install_minimal_symbols and make appropriate cleanups.
12920
cf466558
KB
129212003-02-20 Kevin Buettner <kevinb@redhat.com>
12922
12923 * solib.c (reload_shared_libraries): New function.
12924 (_initialize_solib): Add callbacks for ``set solib-search-path''
12925 and ``set solib-absolute-prefix''.
12926
de5ad195
DC
129272003-02-20 David Carlton <carlton@math.stanford.edu>
12928
12929 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12930 expand comment.
12931 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12932 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12933 * ada-typeprint.c (ada_typedef_print): Ditto.
12934 * ax-gdb.c (gen_var_ref): Ditto.
12935 * breakpoint.c (print_one_breakpoint): Ditto.
12936 * buildsym.c (finish_block): Ditto.
12937 * c-valprint.c (c_val_print): Ditto.
12938 * expprint.c (print_subexp): Ditto.
12939 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12940 * infcmd.c (jump_command): Ditto.
12941 * linespec.c (decode_line_2, decode_compound): Ditto.
12942 * maint.c (maintenance_translate_address): Ditto.
12943 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12944 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12945 Ditto.
8ffd9b1b
AJ
12946 * p-valprint.c (pascal_val_print): Ditto.
12947 * stabsread.c (define_symbol): Ditto.
de5ad195 12948 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12949 (print_frame_arg_vars, return_command): Ditto.
12950 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12951 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12952 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12953 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12954 (rbreak_command): Ditto.
12955 * tracepoint.c (tracepoints_info): Ditto.
12956 * typeprint.c (typedef_print): Ditto.
12957 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12958 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12959 * ada-typeprint.c: Update Copyright.
12960 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12961 * tracepoint.c, cli/cli-cmds.c: Ditto.
12962
f796e4be
KB
129632003-02-20 Kevin Buettner <kevinb@redhat.com>
12964
12965 * frame.c (generic_unwind_get_saved_register): Make non-static.
12966 * frame.h (generic_unwind_get_saved_register): Declare.
12967 * mips-tdep.c (read_next_frame_reg): Fetch register from
12968 current regcache when frame is NULL.
12969 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12970 that must be NULL.
12971 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12972 instead of frame_register_unwind().
12973
836cc9f4
AC
129742003-02-20 Andrew Cagney <ac131313@redhat.com>
12975
12976 * remote-sim.c (gdbsim_insert_breakpoint)
12977 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12978 code.
12979
501eef12
AC
129802003-02-20 Andrew Cagney <ac131313@redhat.com>
12981
12982 * remote.c (_initialize_remote): Add commands "set/show remote
12983 hardware-watchpoint-limit" and "set/show remote
12984 hardware-breakpoint-limit".
12985 (remote_hw_watchpoint_limit): Initialize to -1.
12986 (remote_hw_breakpoint_limit): Ditto.
12987 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12988
1b6bc7e0
CF
129892003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12990
12991 * coff-pe-read.c: New file - support reading of minimal symbols from a
12992 portable executable using the export table.
12993 * coff-pe-read.h: New file.
12994 * coffread.c: Include coff-pe-read.h.
12995 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12996 debugging symbols found.
12997 * Makefile.in (SFILES): Add coff-pe-read.o.
12998 (coff_pe_read_h): Define.
12999 (COMMON_OBS): Add coff-pe-read.o.
13000 (coffread.o): Add coff_pe_read_h dependency.
13001 (coff-pe-read.o): New target.
13002
fe898f56
DC
130032003-02-19 David Carlton <carlton@math.stanford.edu>
13004
13005 * Makefile.in (SFILES): Add block.c.
13006 (block_h): New.
13007 (COMMON_OBS): Add block.o.
13008 (block.o): New.
13009 (x86-64-tdep.o): Add $(block_h).
13010 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13011 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13012 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13013 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13014 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13015 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13016 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13017 * value.h: Add opaque declaration for struct block.
13018 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13019 * ada-lang.h: Ditto.
13020 * x86-64-tdep.c: #include "block.h"
13021 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13022 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13023 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13024 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13025 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13026 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13027 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13028 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13029 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13030 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13031 * symtab.c (block_function): Ditto.
13032 (contained_in): Ditto.
13033 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13034 block.h. Add opaque declaration for struct block.
13035 * symtab.h: Move block_function and contained_in declarations to
13036 block.h. Add opaque declarations for struct block, struct
13037 blockvector.
13038 (struct block): Move to block.h.
13039 (struct blockvector): Ditto.
13040 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13041 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13042 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13043 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13044 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13045 Ditto.
13046 * block.c: New file.
13047 * block.h: New file.
13048
173345b5
TR
130492003-02-19 Theodore A. Roth <troth@openavr.org>
13050
13051 * avr-tdep.c (avr_extract_return_value): Remove function.
13052 (avr_store_return_value): Remove function.
13053 (avr_extract_struct_value_address): Remove function.
13054 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13055
338ef23d
AC
130562003-02-19 Andrew Cagney <ac131313@redhat.com>
13057
13058 * rs6000-tdep.c: Include "gdb_assert.h".
13059 (registers_e500): Add "acc" and "spefscr".
13060 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13061 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13062 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13063 really is "r0".
13064 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13065
5412f5f3
KS
130662003-02-18 Keith Seitz <keiths@redhat.com>
13067
13068 * Makefile.in: Add gdbtk-interps.c.
13069
881324eb
KB
130702003-02-18 Kevin Buettner <kevinb@redhat.com>
13071
13072 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13073 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13074
6a2f5abf
AC
130752003-02-18 Andrew Cagney <cagney@redhat.com>
13076
13077 * symtab.h (struct objfile): Add opaque declaration.
13078
54c7009d
EZ
130792003-02-18 Elena Zannoni <ezannoni@redhat.com>
13080
13081 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13082 * dbxread.c (process_one_symbol): Use last_function_start rather
13083 than function_start_offset to find the real beginning of the
13084 current function. The latter is just the text section offset on
13085 some systems, the former is always the real function start.
54c7009d 13086
7ee6d7eb
AC
130872003-02-17 Andrew Cagney <cagney@redhat.com>
13088
13089 * configure.in: Revert ${target} != ${host}.
13090
2846da9b
AC
130912003-02-17 Andrew Cagney <ac131313@redhat.com>
13092
13093 * configure.in (Makefile): Use the test ${target} != ${host},
13094 instead of the absence of the "nm.h" file, to determine of the
13095 configuration non-native.
13096 * configure: Regenerate.
8ffd9b1b 13097
3b27aeea
EZ
130982003-02-14 Elena Zannoni <ezannoni@redhat.com>
13099
fbe586ae 13100 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13101
13102 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13103 conditionalize tui_active test.
13104 (lookup_cmd_1): Ditto.
13105
b0b1c2c0
MK
131062003-02-14 Mark Kettenis <kettenis@gnu.org>
13107
13108 * configure.in: Add check for _etext.
13109 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13110 available.
13111 * config.in, configure: regenerated.
13112
8f05cde5
DJ
131132003-02-14 Daniel Jacobowitz <drow@mvista.com>
13114
13115 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13116
021e7609
AC
131172003-02-14 Andrew Cagney <ac131313@redhat.com>
13118
13119 * main.c (tui_version): Delete variable.
13120 (captured_main): When --tui, set interpreter_p to "tui" instead of
13121 enabling tui_version.
13122 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13123 tui_version.
13124 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13125 * cli/cli-cmds.c (disassemble_command): Ditto.
13126 * defs.h (tui_version): Delete declaration.
13127 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13128 (tui-interp.o): Add rules.
13129 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13130
e325dcec
CF
131312003-02-14 Christopher Faylor <cgf@redhat.com>
13132
36ffb041 13133 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13134 just-loaded dll.
13135
c4f90d87
JM
131362003-02-12 Jason Molenda (jmolenda@apple.com)
13137
fbe586ae
RH
13138 * symmisc.c (print_objfile_statistics): Include information about
13139 the number of psymtabs and symtabs in each object file.
c4f90d87 13140
e46e5ccd
KS
131412003-02-13 Keith R Seitz <keiths@redhat.com>
13142
13143 * main.h (struct captured_main_args): Add interpreter_p.
13144 * main.c (captured_main): Initialize interpreter_p from context.
13145 * gdb.c (main): Set interpreter_p argument.
13146 * Makefile.in (gdb.o): Add dependency for interps.h.
13147
fe97fe9c
AC
131482003-02-12 Andrew Cagney <ac131313@redhat.com>
13149
13150 * event-top.c (cli_command_loop): Delete declaration.
13151 (_initialize_event_loop): Delete function setting event_loop_hook.
13152 * event-top.h (cli_command_loop): Declare. Update copyright.
13153 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13154 * interps.c (current_interp_command_loop): When event_loop_p, call
13155 cli_command_loop.
13156
1cdac4ef
AC
131572003-02-12 Andrew Cagney <ac131313@redhat.com>
13158
13159 * interps.h (interp_command_loop_ftype): Change return type to
13160 void.
13161
48037ead
ML
131622003-02-12 Michal Ludvig <mludvig@suse.cz>
13163
13164 * x86-64-tdep.c (x86_64_extract_return_value)
13165 (x86_64_store_return_value): Use regcache instead of regbuf.
13166 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13167 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13168
033afc63
AC
131692003-02-11 Andrew Cagney <ac131313@redhat.com>
13170
13171 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13172 * aclocal.m4: Regenerate.
13173 * configure: Regenerate.
13174
13175 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13176 TCL_LD_SEARCH_FLAGS.
13177
40d02bca
ML
131782003-02-10 Michal Ludvig <mludvig@suse.cz>
13179
13180 * dwarf2cfi.c: Reindented.
13181
11308a41
AC
131822003-02-09 Andrew Cagney <ac131313@redhat.com>
13183
13184 * interps.c (clear_interpreter_hooks): Convert function definition
13185 to ISO C.
13186
e1c1c0f6
DC
131872003-02-07 David Carlton <carlton@math.stanford.edu>
13188
13189 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13190
ab5d3da6
KB
131912003-02-07 Kevin Buettner <kevinb@redhat.com>
13192
13193 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13194 (struct type): ...to here.
13195 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13196 field.
13197 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13198 (replace_type): Set length on all type variants for a given type.
13199
b8a92b82
AC
132002003-02-07 Andrew Cagney <ac131313@redhat.com>
13201
13202 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13203 <sys/stat.h>.
13204 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13205
5cb316ef
AC
132062003-02-06 Andrew Cagney <ac131313@redhat.com>
13207
2555fe1a
AC
13208 * Makefile.in (symm-nat.o): Update dependencies.
13209 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13210 (lynx-nat.o, ia64-linux-nat.): Ditto.
13211 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13212 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13213 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13214
44270758
AC
13215 * Makefile.in (inflow_h): Define.
13216 (procfs.o, inflow.o, procfs.o): Update dependencies.
13217 * inftarg.c (child_stop): Delete extern declaration of
13218 inferior_process_group. Include "inflow.h".
13219 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13220 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13221 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13222 (our_process_group, inferior_process_group): Extern declarations.
13223
df8f7274
AC
13224 * procfs.c: Include "gdb_assert.h".
13225
5cb316ef
AC
13226 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13227 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13228 * jv-typeprint.c (java_type_print_base): Ditto.
13229 * typeprint.c (typedef_print): Eliminate STREQ.
13230 * cli/cli-script.c (define_command, define_command): Ditto.
13231 * main.c (captured_main): Ditto.
13232 * values.c (lookup_internalvar): Ditto.
13233 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13234 within `if' conditional.
13235 * linespec.c (decode_line_2): Ditto.
13236 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13237 (bfd_openw_with_cleanup): Ditto.
13238
2a28ccea
MK
132392003-02-07 Mark Kettenis <kettenis@gnu.org>
13240
13241 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13242 legacy_extract_return_value and store_return_value to
13243 legacy_return_value.
13244
786b8124
CF
132452003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13246
13247 * win32-nat.c (get_relocated_section_addrs): New function. Find
13248 section load addresses for symbol handling in relocated DLLs.
13249 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13250
b871e4ec
FF
132512003-02-05 Fred Fish <fnf@intrinsity.com>
13252
13253 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13254 '=' and '!='.
13255 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13256 with '&' and '=='.
13257 (angel_RDI_info): Ditto.
13258 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13259 with '&' and '!='.
13260 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13261
4389a95a 132622003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13263 Keith Seitz <keiths@redhat.com>
13264 Elena Zannoni <ezannoni@redhat.com>
13265 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13266
13267 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13268 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13269 (SUBDIR_MI_OBS): Add "mi-interp.o".
13270 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13271 (SFILES): Add "interps.c".
13272 (COMMON_OBS): Add "interps.o".
13273 (interps_h, mi_main_h): Define.
13274 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13275 (mi-main.o, main.o, event-top.o): Update dependencies.
13276 * cli/cli-interp.c: New file.
13277 * interps.h, interps.c: New files.
13278 * top.c: (gdb_init): Don't install the default interpreter, handed
13279 by captured_main.
13280 * main.c: Include "interps.h".
13281 (interpreter_p): Note that it should malloc'ed.
13282 (captured_command_loop): Call current_interp_command_loop.
13283 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13284 xfree and xstrdup when updating interpreter_p. Install the
13285 default interpreter. Add hack to stop mi1's copyright notice
13286 being encoded.
13287 * event-top.h (gdb_setup_readline): Declare.
13288 (gdb_disable_readline): Declare.
13289 * event-top.c: Include "interps.h".
13290 (display_gdb_prompt): Call current_interp_display_prompt_p.
13291 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13292 gdb_stdlog, and gdb_stdtarg.
13293 (_initialize_event_loop): Don't call gdb_setup_readline.
13294 * cli-out.c (cli_out_set_stream): New function.
13295 * cli-out.h (cli_out_set_stream): Declare.
13296
ff3b5810
MK
132972003-02-06 Mark Kettenis <kettenis@gnu.org>
13298
13299 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13300 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13301 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13302 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13303 config/i386/i386v42mp.mt: Removed.
13304
5b729aa5
MK
133052003-02-05 Mark Kettenis <kettenis@gnu.org>
13306
13307 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13308 GDB_OSABI_SOLARIS.
13309
8cc15142
MC
133102003-02-05 Michael Chastain <mec@shout.net>
13311
13312 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13313 2.12.1 and earlier versions.
13314
5aa5d4b9
AC
133152003-02-05 Andrew Cagney <ac131313@redhat.com>
13316
13317 Remove orphaned hosts, targets and files.
13318 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13319 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13320 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13321 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13322 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13323 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13324 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13325 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13326 * config/sparc/tm-sp64sim.h: Delete.
13327 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13328 hosts.
13329 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13330 mips*-dec-mach3* targets.
13331
b68767c1
MC
133322003-02-04 Michael Chastain <mec@shout.net>
13333
13334 * NEWS: Fix typo: sepcifying -> specifying.
13335
5ae7ca1d
MC
133362003-02-04 Michael Chastain <mec@shout.net>
13337
13338 * dwarfread.c: Add documentation on the state of dwarf-1,
13339 looking towards obsoletion.
13340
d08a4280
MC
133412003-02-03 Michael Chastain <mec@shout.net>
13342
13343 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13344 gdb/testsuite/gdb.c++/pr-1023.exp.
13345
e9be73e4
AC
133462003-02-04 Andrew Cagney <ac131313@redhat.com>
13347
13348 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13349 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13350
13351 * utils.c (init_page_info): Delete reference to MPW in comments.
13352 * main.c (captured_main): Delete #ifdef MPW.
13353
05d57f6f
AC
133542003-02-04 Andrew Cagney <ac131313@redhat.com>
13355
8ffd9b1b 13356 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13357 * monitor.c (monitor_expect): Obsolete reference to m32r.
13358 * configure.tgt: Mark m32r-*-elf* as obsolete.
13359 * MAINTAINERS: Mark m32k as obsolete.
13360 * m32r-rom.c: Obsolete file.
13361 * config/m32r/m32r.mt: Obsolete file.
13362 * config/m32r/tm-m32r.h: Obsolete file.
13363 * m32r-stub.c: Obsolete file.
13364 * m32r-tdep.c: Obsolete file.
13365
8b0e5691
AC
133662003-02-04 Andrew Cagney <ac131313@redhat.com>
13367
13368 * NEWS: Mention that the z8k-zilog-none is obsolete.
13369 * MAINTAINERS: Mark z8k as obsolete.
13370 * configure.tgt: Obsolete the z8k-*-coff* target.
13371 * config/z8k/z8k.mt: Obsolete file.
13372 * config/z8k/tm-z8k.h: Obsolete file.
13373 * z8k-tdep.c: Obsolete file.
13374
67f16606
AC
133752003-02-04 Andrew Cagney <ac131313@redhat.com>
13376
13377 * NEWS: Mention that the mn10200-elf is obsolete.
13378 * configure.tgt: Obsolete mn10200-*-* target.
13379 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13380 mention that the mn10200 is obsolete.
13381 * breakpoint.h: Ditto.
13382 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13383 * config/mn10200/mn10200.mt: Obsolete file.
13384 * config/mn10200/tm-mn10200.h: Obsolete file.
13385 * mn10200-tdep.c: Obsolete file.
13386
fd2299bd
AC
133872003-02-04 Andrew Cagney <ac131313@redhat.com>
13388
13389 * MAINTAINERS: Mark h8500 as obsolete.
13390 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13391 * findvar.c (value_from_register): Ditto.
13392 * h8500-tdep.c: Mark file as obsolete.
13393 * config/h8500/h8500.mt: Ditto.
13394 * config/h8500/tm-h8500.h: Ditto.
13395 * NEWS: Mention that h8500 is obsolete.
13396
eb9a305d
DC
133972003-02-04 David Carlton <carlton@math.stanford.edu>
13398
13399 * objfiles.c (allocate_objfile): Always set name. Add comment at
13400 start of function.
13401 * jv-lang.c (get_dynamics_objfile): Add comment.
13402
406fc7fb
DC
134032003-02-04 David Carlton <carlton@math.stanford.edu>
13404
13405 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13406 * printcmd.c (build_address_symbolic): Replace uses of
13407 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13408 SYMBOL_NAME, and asm_demangle.
13409 Update copyright.
13410
93d91629
DC
134112003-02-04 David Carlton <carlton@math.stanford.edu>
13412
13413 * linespec.c (decode_compound): Extract code into
13414 lookup_prefix_sym.
13415 (lookup_prefix_sym): New function.
13416
1c5cb38e
DC
134172003-02-04 David Carlton <carlton@math.stanford.edu>
13418
13419 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13420 FLOAT_COERCION_BADNESS.
13421 * gdbtypes.c (rank_one_type): Replace all uses of
13422 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13423
0cf824c9
JB
134242003-02-04 Jim Blandy <jimb@redhat.com>
13425
13426 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13427 section, let dwarf_macinfo_section point to it, not
13428 dwarf_loc_section.
13429
a2d356b0
DJ
134302003-02-04 Daniel Jacobowitz <drow@mvista.com>
13431
13432 Pointed out by Anton Blanchard <anton@samba.org>.
13433 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13434 (ppc_linux_at_sigtramp_return_path): Use it.
13435
2de7ced7
DJ
134362003-02-04 Daniel Jacobowitz <drow@mvista.com>
13437
13438 * defs.h (streq): Add prototype.
13439 * utils.c (streq): New function.
13440
13441 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13442 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13443 * mdebugread.c (new_symbol): Likewise.
13444 * stabsread.c (define_symbol): Likewise.
13445 * coffread.c (process_coff_symbol): Likewise.
13446 * dwarfread.c (new_symbol): Likewise.
13447
13448 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13449 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13450 here.
13451 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13452 SYMBOL_INIT_DEMANGLED_NAME.
13453 * objfiles.c: Include "hashtab.h".
13454 (allocate_objfile): Call htab_set_functions_ex for the
13455 demangled_names_hash.
13456 (free_objfile): Call htab_delete for the demangled_names_hash.
13457 * objfiles.h (struct htab): Add declaration.
13458 (struct objfile): Add demangled_names_hash.
13459 * symfile.c: Include "hashtab.h".
13460 (reread_symbols): Call htab_delete for the demangled_names_hash.
13461 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13462 SYMBOL_NAME in the bcache.
13463 * symtab.c: Include "hashtab.h". Update comments.
13464 (create_demangled_names_hash, symbol_set_names): New functions.
13465 (symbol_find_demangled_name): New function, broken out from
13466 symbol_init_demangled_names.
13467 (symbol_init_demangled_names): Use it.
13468 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13469 (SYMBOL_SET_NAMES): New macro.
13470 (symbol_set_names): Add prototype.
13471
15831452
JB
134722003-02-03 Jim Blandy <jimb@redhat.com>
13473
13474 Use a single, consistent representation for an empty minimal
13475 symbol table in an objfile.
13476 * objfiles.c (terminate_minimal_symbol_table): New function.
13477 (allocate_objfile): Call it.
13478 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13479 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13480 non-NULL.
15831452
JB
13481 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13482 objfile has minimal symbols, compare minimal_symbol_count to zero,
13483 instead of comparing msymbols with NULL.
13484 * objfiles.c (have_minimal_symbols): Same.
13485 * solib-sunos.c (solib_add_common_symbols): Call
13486 terminate_minimal_symbol_table.
13487 * symfile.c (reread_symbols): Same.
8ffd9b1b 13488
ffc65945
KB
134892003-02-03 Kevin Buettner <kevinb@redhat.com>
13490
13491 * s390-tdep.c (s390_address_class_type_flags)
13492 (s390_address_class_type_flags_to_name)
13493 (s390_address_class_name_to_type_flags): New functions.
13494 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13495 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13496
f211c6d4
MS
134972003-02-03 Michael Snyder <msnyder@redhat.com>
13498
13499 * arm-tdep.c: Fix spell-o in comment.
13500
659b0389
ML
135012003-02-03 Michal Ludvig <mludvig@suse.cz>
13502
13503 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13504 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13505 error messages to contain BFD filename.
659b0389 13506
3b31d625
EZ
135072003-02-02 Elena Zannoni <ezannoni@redhat.com>
13508
997b089a 13509 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13510 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13511 (do_mixed_source_and_assembly): Use
13512 make_cleanup_ui_out_tuple_begin_end and
13513 make_cleanup_ui_out_tuple_begin_end.
13514 (do_mixed_source_and_assembly): Ditto.
13515 * thread.c (do_captured_list_thread_ids): Ditto.
13516 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13517 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13518 ui_out_tuple_end): Delete prototypes.
13519 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13520 ui_out_list_end, ui_out_tuple_end): Delete.
13521
13522 From Kevin Buettner <kevinb@redhat.com>:
13523 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13524 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13525 (do_cleanup_table_end): New functions.
13526 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13527 Use cleanups to invoke_ui_out_tuple_end().
13528 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13529 * cli/cli-setshow.c (cmd_show_list): Use
13530 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13531
5b181d62
AC
135322003-02-02 Andrew Cagney <ac131313@redhat.com>
13533
13534 * frame.c (frame_unwind_register): New function.
13535 (frame_unwind_unsigned_register): Use.
13536 (frame_unwind_signed_register): Use.
13537 (frame_read_register): New function.
13538 * frame.h (frame_unwind_register): Declare.
13539 (frame_read_register): Declare.
13540
13541 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13542 and frame_unwind_register instead of read_memory, write_register
13543 and deprecated_write_register_bytes.
13544
5f601589
AC
135452003-02-02 Andrew Cagney <ac131313@redhat.com>
13546
13547 * frame.h: Note that namelen can be negative.
13548 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13549 NAME's length.
13550
13551 * NEWS: Mention that the d10v's `regs' command is deprecated.
13552 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13553 (d10v_print_registers_info): New function.
13554 (show_regs): Call d10v_print_registers_info.
13555 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13556
6a3fe0a4
MK
135572003-02-02 Mark Kettenis <kettenis@gnu.org>
13558
13559 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13560 lost in the previous patch.
13561
075559bc
AC
135622003-02-01 Andrew Cagney <ac131313@redhat.com>
13563
13564 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13565 * stack.c (print_frame_info_base): Output complete FRAME tuple
13566 for synthesized frames.
075559bc 13567
6789195b
AC
135682003-02-02 Andrew Cagney <ac131313@redhat.com>
13569
13570 * mips-nat.c (zerobuf): Delete.
13571 (fetch_inferior_registers): Alloc local zerobuf.
13572 (fetch_core_registers): Alloc local zerobuf.
13573 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13574 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13575 * thread-db.c (thread_db_store_registers): Ditto.
13576 * sh-tdep.c (sh_do_register): Ditto.
13577 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13578 * remote-sim.c (gdbsim_store_register): Ditto.
13579 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13580 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13581 * monitor.c (monitor_supply_register): Ditto.
13582 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13583 * mips-nat.c (fetch_inferior_registers): Ditto.
13584 * m68klinux-nat.c (fetch_register): Ditto.
13585 * lynx-nat.c (fetch_inferior_registers): Ditto.
13586 (fetch_inferior_registers): Ditto.
13587 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13588 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13589 (hpux_thread_store_registers): Ditto.
13590 * hppah-nat.c (fetch_register): Ditto.
13591 * hppab-nat.c (fetch_register): Ditto.
13592 * hppa-tdep.c (pa_register_look_aside): Ditto.
13593 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13594 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13595
e669114a
AC
135962003-02-01 Andrew Cagney <ac131313@redhat.com>
13597
13598 * gdbarch.sh: Explictly specify all method levels. When a
13599 variable with an empty level, provide a non-multi-arch default.
13600 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13601 * gdbarch.h: Re-generate.
13602 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13603 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13604
9a043c1d
AC
136052003-02-01 Andrew Cagney <ac131313@redhat.com>
13606
13607 * defs.h (host_pointer_to_address): Delete declaration.
13608 (address_to_host_pointer): Delete declaration.
13609 * utils.c (host_pointer_to_address): Delete function.
13610 (address_to_host_pointer): Delete function.
13611 * procfs.c (procfs_address_to_host_pointer): New function.
13612 * procfs.c (proc_set_watchpoint): Use.
13613 (procfs_can_use_hw_breakpoint): Update comments.
13614 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13615 (som_solib_add): Use.
13616 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13617 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13618
7ca9f392
AC
136192003-02-01 Andrew Cagney <ac131313@redhat.com>
13620
94bbfd30
AC
13621 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13622 strlen d_name.
13623
7ca9f392
AC
13624 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13625 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13626 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13627 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13628 (define_symbol): Update.
13629 * symfile.c (generic_load): Remove references to nindy.
13630 * symtab.c: Remove references to nindy.
13631
31a85ea2
AC
136322003-02-01 Andrew Cagney <ac131313@redhat.com>
13633
13634 * infcmd.c (print_float_info): Delete code conditional on
13635 FLOAT_INFO.
13636 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13637 * config/m68k/nm-apollo68b.h: Ditto.
13638 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13639 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13640 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13641
f6e85fc8
MK
136422003-02-01 Mark Kettenis <kettenis@gnu.org>
13643
6015b6a0
MK
13644 * config/i386/tm-i386os9k.h: Removed.
13645
f7a30bdf
MK
13646 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13647 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13648 they're identical to i[3456]86-*-sysv* now.
13649 * config/i386/i386v32.mh: Removed.
13650 * config/i386/xm-i386v32.h: Removed.
13651 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13652
28d52111
MK
13653 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13654
4d3f6bce
MK
13655 * config/i386/i386dgux.mh: Removed.
13656 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13657
f6e85fc8
MK
13658 * configure.in: Fix typo.
13659 * configure: Regenerated.
13660
53955967
DC
136612003-01-31 David Carlton <carlton@math.stanford.edu>
13662
13663 * dwarf2read.c (dwarf2_locate_sections): Set
13664 dwarf_ranges_section.
13665
b1364885
AC
136662003-01-31 Andrew Cagney <ac131313@redhat.com>
13667
8dbb1c65
AC
13668 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13669 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13670
8731e58e
AC
13671 * utils.c: Re-indent.
13672
b1364885
AC
13673 * config/djgpp/fnchange.lst: Delete nindy files.
13674 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13675 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13676 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13677 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13678 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13679 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13680 * Makefile.in (init.c): Remove nindy references.
13681 (saber_gdb): Delete rule.
13682 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13683 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13684 and a68v-nat.c.
13685 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13686 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13687 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13688 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13689 nindy-share/stop.h.
13690 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13691 * saber.suppress: Delete file.
13692
086df311
DJ
136932003-01-31 Daniel Jacobowitz <drow@mvista.com>
13694
13695 * dbxread.c (stabs_data): New static variable.
13696 (fill_symbuf): Support an in-memory buffer for stabs data.
13697 (stabs_seek): New function.
13698 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13699 (read_ofile_symtab): Use stabs_seek.
13700 (elfstab_build_psymtabs): Take an asection* instead of
13701 an offset and size. Relocate the stabs data if necessary.
13702 Save the section* for dbx_psymtab_to_symtab.
13703 * dwarf2read.c: Add section variables for each debug section.
13704 (dwarf2_locate_sections): Fill them in.
13705 (dwarf2_read_section): Take an asection* argument.
13706 Relocate the section contents if necessary.
13707 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13708 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13709 it to dwarf2_read_section.
13710 (dwarf2_build_frame_info): Update callers.
13711 * elfread.c (elf_symfile_read): Update call to
13712 elfstab_build_psymtabs.
13713 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13714 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13715 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13716 * symfile.c (symfile_dummy_outputs): New function.
13717 (symfile_relocate_debug_section): New function.
13718 * symfile.h (symfile_relocate_debug_section): Add prototype.
13719
87d1b352
RH
137202003-01-31 Richard Henderson <rth@redhat.com>
13721
13722 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13723 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13724 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13725 * alpha-tdep.c (alpha_register_name): Add "unique".
13726 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13727 (ALPHA_UNIQUE_REGNUM): New.
13728 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13729
c48861fb
AC
137302003-01-31 Andrew Cagney <ac131313@redhat.com>
13731
13732 * README: Remove reference to Ericsson 1800 monitor.
13733 * Makefile.in (remote-es.o): Delete rule.
13734 (ALLDEPFILES): Delete remote-es.c.
13735 * remote-es.c: Delete file.
13736 * config/m68k/es1800.mt: Delete file.
13737 * config/djgpp/fnchange.lst: Update.
13738 * configure.tgt: Delete m68*-ericsson-* target.
13739
d764a824
AF
137402003-01-31 Adam Fedor <fedor@gnu.org>
13741
13742 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13743 Remove duplicate/shadowing variable of same name.
13744
fe36c4f4
JB
137452003-01-30 Jim Blandy <jimb@redhat.com>
13746
13747 * symfile.c (find_separate_debug_file): Assert that the objfile's
13748 directory name we compute ends with a slash, and then assume that
13749 that's so everywhere we use it.
13750
cb741690
DJ
137512003-01-30 Daniel Jacobowitz <drow@mvista.com>
13752
13753 * valops.c (value_assign): Flush frame cache after stores to memory
13754 also.
13755
96ee5227
AC
137562003-01-30 Andrew Cagney <ac131313@redhat.com>
13757
13758 * Makefile.in (mon960-rom.o): Delete rule.
13759 * mon960-rom.c: Delete file.
13760
7f6104a9
AC
137612003-01-30 Andrew Cagney <ac131313@redhat.com>
13762
13763 * d10v-tdep.c: Include "frame-unwind.h".
13764 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13765 list.
13766 (next_addr, uses_frame): Delete.
13767 (struct d10v_unwind_cache): Define.
13768 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13769 Use info instead of next_addr and uses_frame globals.
13770 (d10v_frame_init_saved_regs): Delete function.
13771 (d10v_init_extra_frame_info): Delete function.
13772 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13773 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13774 init_frame_pc or frame_saved_pc.
13775 (d10v_pop_frame): Delete function.
13776 (do_d10v_pop_frame): Delete function.
13777 (d10v_frame_chain): Delete function.
13778 (d10v_frame_chain_valid): Delete function.
13779 (d10v_frame_pc_unwind): New function.
13780 (d10v_frame_id_unwind): New function.
13781 (saved_regs_unwinder): New function.
13782 (d10v_frame_register_unwind): New function.
13783 (d10v_frame_pop): New function.
13784 (d10v_frame_unwind): New variable.
13785 (d10v_frame_p): New function.
13786 (d10v_frame_saved_pc): Delete function.
13787 * Makefile.in (d10v-tdep.o): Update dependencies.
13788
cad2e848
JB
137892003-01-30 J. Brobecker <brobecker@gnat.com>
13790
13791 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13792 causing some regressions due to a change in the default value
13793 for this macro.
13794
af34e669
DJ
137952003-01-29 Richard Henderson <rth@redhat.com>
13796 Elena Zannoni <ezannoni@redhat.com>
13797 Daniel Jacobowitz <drow@mvista.com>
13798
13799 Fix PR gdb/961.
8ffd9b1b 13800 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13801 variables.
13802 (RANGES_SECTION): New.
13803 (dwarf_ranges_buffer): New variable.
13804 (struct comp_unit_head): Add member "die".
13805 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13806 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13807 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13808 (dwarf2_locate_sections): Likewise.
13809 (dwarf2_build_psymtabs): Read .debug_ranges.
13810 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13811 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13812 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13813 Look for DW_AT_ranges and return the bounding box.
13814
baa93fa6
CF
138152003-01-29 Brian Ford <ford@vss.fsi.com>
13816
13817 * win32-nat.c (cygwin_pid): Removed as unused.
13818 (child_attach): Try fall back to Cygwin pid.
13819
c63f977f
JB
138202003-01-29 Jim Blandy <jimb@redhat.com>
13821
13822 * objfiles.h (struct objfile): Doc fix.
13823
d62d1979
AC
138242003-01-29 Andrew Cagney <ac131313@redhat.com>
13825
13826 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13827 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13828 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13829 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13830 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13831 (FRAME_SAVED_PC): Change to a function with predicate.
13832 * gdbarch.h, gdbarch.c: Re-generate.
13833
1ae18a04
AC
138342003-01-28 Andrew Cagney <ac131313@redhat.com>
13835
52287340
AC
13836 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13837
1ae18a04
AC
13838 * complaints.c (complain): Delete function.
13839 * complaints.h (struct deprecated_complaint): Delete definition.
13840 (complain): Delete declaration.
13841
f2c16bd6
KB
138422003-01-28 Kevin Buettner <kevinb@redhat.com>
13843
13844 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13845 dummy frames.
13846
a94dd1fd
AC
138472003-01-27 Andrew Cagney <ac131313@redhat.com>
13848
13849 * sentinel-frame.h, sentinel-frame.c: New files.
13850 * Makefile.in (frame.o): Update dependencies.
13851 (SFILES): Add sentinel-frame.c.
13852 (sentinel_frame_h): Define.
13853 (COMMON_OBS): Add sentinel-frame.o.
13854 (sentinel-frame.o): Specify dependencies.
13855 * frame.c: Include "sentinel-frame.h".
13856 (frame_register_unwind): Rewrite assuming that there is always a a
13857 ->next frame.
13858 (frame_register, generic_unwind_get_saved_register): Ditto.
13859 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13860 (create_sentinel_frame, unwind_to_current_frame): New functions.
13861 (get_current_frame): Rewrite using create_sentinel_frame and
13862 unwind_to_current_frame. When possible, always create a frame.
13863 (create_new_frame): Set next to the sentinel frame.
13864 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13865 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13866 ID cache when necessary.
13867 (frame_saved_regs_id_unwind): Use frame_relative_level.
13868 (deprecated_generic_get_saved_register): Use frame_relative_level,
13869 get_frame_saved_regs, get_frame_pc, get_frame_base and
13870 get_next_frame.
13871 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13872 frame_register.
13873
5378adc4
DJ
138742003-01-27 Daniel Jacobowitz <drow@mvista.com>
13875
13876 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13877
51ee2ddc
DJ
138782003-01-27 Daniel Jacobowitz <drow@mvista.com>
13879
13880 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13881 (maintenance_set_profile_cmd): Use error () instead of warning ().
13882
d9feb4e7
DJ
138832003-01-27 Daniel Jacobowitz <drow@mvista.com>
13884
13885 * configure.in: Check that -pg works if using --enable-profiling.
13886 Check for monstartup and _mcleanup regardless of --enable-profiling.
13887 * maint.c: Check for monstartup and _mcleanup before using them.
13888 * config.in: Regenerated.
13889 * configure: Regenerated.
13890
2d188dd3
NC
138912003-01-24 Nick Clifton <nickc@redhat.com>
13892
13893 * Add sh2e support:
13894
13895 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13896
13897 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13898 (sh2e_show_regs): New.
13899 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13900 * config/sh/tm-sh.h: Added sh2e to comments.
13901
cb3c37b2
JB
139022003-01-23 Jim Blandy <jimb@redhat.com>
13903
13904 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13905 symbols found)" message here; we haven't checked for a separate
13906 debug info file yet, so we don't know yet.
13907 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13908 we've looked everywhere. Also, there's no need to print a special
13909 message when we're loading the separate debug info file: the one
13910 symbol_file_add prints is fine.
13911
5b5d99cf
JB
139122003-01-23 Alexander Larsson <alexl@redhat.com>
13913 Jim Blandy <jimb@redhat.com>
13914
13915 Add support for executables whose debug info has been separated
13916 out into a separate file, leaving only a link behind.
13917 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13918 and separate_debug_objfile_backlink.
13919 (put_objfile_before): New declaration.
13920 * symfile.c: #include "filenames.h".
13921 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13922 debug info in a separate file, read that, too. Save the addrs
13923 argument, so we can use it again to read the separated debug info;
13924 syms_from_objfile modifies the table we pass it.
13925 (reread_symbols): After re-reading an objfile, call
13926 reread_separate_symbols to refresh its separate debug info
13927 objfile, if it has one.
13928 (reread_separate_symbols, find_separate_debug_file,
13929 get_debug_link_info, separate_debug_file_exists): New functions.
13930 (debug_file_directory): New global var.
13931 (_initialize_symfile): Initialize debug_file_directory, and
13932 provide the new `set debug-file-directory' command to let the user
13933 change it.
13934 * objfiles.c (free_objfile): If this objfile has its debug info in
13935 a separate objfile, free that one too. If this is itself a
13936 separate debug info objfile, clear our parent's backlink.
13937 (put_objfile_before): New function.
13938 * utils.c (gnu_debuglink_crc32): New function.
13939 * defs.h (gnu_debuglink_crc32): New declaration.
13940 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13941 * configure.in: Handle --with-separate-debug-dir config option.
13942 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13943 * acconfig.h (DEBUGDIR): New macro.
13944 * configure, aclocal.m4, config.in: Regenerated.
13945
7e8580c1
JB
139462003-01-22 Jim Blandy <jimb@redhat.com>
13947
7904e09f
JB
13948 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13949 like the old symbol_file_add, but taking new arguments: you can
13950 now pass in either a `struct section_addr_info' list to say where
13951 each section is loaded, or a `struct section_offsets' table. Pass
13952 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13953 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13954 with the appropriate quiescent values for the new arguments.
13955
7e8580c1
JB
13956 * symfile.c: #include "gdb_assert.h".
13957 (syms_from_objfile): Add the ability to pass in a section offset
13958 table directly, as an alternative to the section_addr_info table.
13959 Document arguments better.
13960 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13961 * symfile.h (syms_from_objfile): Update declaration.
13962 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13963 syms_from_objfile.
13964 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13965
d28f9cdf
DJ
139662003-01-22 Daniel Jacobowitz <drow@mvista.com>
13967
13968 Original patch by Tom Tromey <tromey@cygnus.com> and
13969 Jason Molenda <jmolenda@apple.com>.
13970 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13971 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13972 * NEWS: Mention profiling.
13973 * configure.in (--enable-gdbtk): Fix typo.
13974 (--enable-profiling): New. Set PROFILE_CFLAGS.
13975 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13976 Fill in function.
13977 (profiling_state): New variable.
13978 (mcleanup_wrapper): New function.
13979 (_initialize_maint): Remove NOTYET, fix call to
13980 add_setshow_boolean_cmd for "maint set profile".
13981 * configure: Regenerated.
13982
df21e465
MH
139832003-01-21 Martin M. Hunt <hunt@redhat.com>
13984
13985 * Makefile.in (install-gdbtk): Install PNG images too.
13986
73c1f219
AC
139872003-01-21 Andrew Cagney <ac131313@redhat.com>
13988
13989 * exec.c (text_start): Delete global variable.
13990 (exec_file_attach): Make text_start local to the function.
13991 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13992 * valops.c (hand_function_call): Delete code that handles
13993 BEFORE_TEXT_END and AFTER_TEXT_END.
13994 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13995 of CALL_DUMMY_LOCATION.
13996 * gdbarch.c: Regenerate.
13997 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13998 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13999 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14000 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14001 (text_end): Delete extern declaration.
14002
eb4f72c5
AC
140032003-01-21 Andrew Cagney <ac131313@redhat.com>
14004
14005 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14006 * blockframe.c (backtrace_below_main): Move to "frame.c".
14007 (frame_chain_valid): Delete check for backtrace_below_main.
14008 (_initialize_blockframe): Delete initialization, move ``set
14009 backtrace-below-main'' command to "frame.c".
14010 (do_flush_frames_sfunc): Delete function.
14011 * frame.c: Include "command.h" and "gdbcmd.h".
14012 (frame_type_from_pc): New function.
14013 (create_new_frame): Use frame_type_from_pc.
14014 (legacy_get_prev_frame): New function.
14015 (get_prev_frame): Rewrite. When an old style frame, call
14016 legacy_get_prev_frame. Otherwize, unwind the PC first.
14017 (_initialize_frame): Add ``set backtrace-below-main'' command.
14018 * Makefile.in (frame.o): Update dependencies.
14019
778ce8cc
AC
140202003-01-19 Andrew Cagney <ac131313@redhat.com>
14021
14022 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14023 DEPRECATED_REGISTERS_INFO.
14024
01c193c8
AC
140252003-01-19 Andrew Cagney <ac131313@redhat.com>
14026
14027 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14028 Maintainers'. Update `Various Maintainers'.
14029
dedc2a2b
AC
140302003-01-19 Andrew Cagney <ac131313@redhat.com>
14031
14032 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14033 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14034 Suppress actual parameters when `-'.
14035 * gdbarch.h, gdbarch.c: Regenerate.
14036
b7261c70
AC
140372003-01-19 Andrew Cagney <ac131313@redhat.com>
14038
14039 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14040 code handling dummy frames.
14041
dbe9fe58
AC
140422003-01-19 Andrew Cagney <ac131313@redhat.com>
14043
14044 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14045 (struct frame_unwind): Add field pop.
14046 * frame.h (frame_pop): Declare.
14047 * frame.c (frame_saved_regs_pop): New function.
14048 (trad_frame_unwinder): Add frame_saved_regs_pop.
14049 (frame_pop): New function.
14050 * dummy-frame.c (dummy_frame_pop): New function.
14051 (discard_innermost_dummy): New function.
14052 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14053 (dummy_frame_unwind): Add dummy_frame_pop.
14054 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14055 * valops.c (hand_function_call): Ditto.
14056 * stack.c (return_command): Ditto.
14057
570b8f7c
AC
140582003-01-18 Andrew Cagney <ac131313@redhat.com>
14059
14060 * cris-tdep.c: Fix function declaration indentation.
14061 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14062 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14063 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14064 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14065 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14066 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14067
140682003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14069
14070 * README (Unpacking and Installation -- quick overview):
14071 Warn against ".../gdb-5.3/gdb/configure".
14072
494cca16
AC
140732003-01-18 Andrew Cagney <ac131313@redhat.com>
14074
14075 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14076 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14077 (struct frame_unwind): Declare opaque.
14078 (dummy_frame_p): Declare function.
14079 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14080 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14081 * dummy-frame.c: Include "frame-unwind.h".
14082 (dummy_frame_p): New function.
14083 (dummy_frame_unwind): New variable.
14084 * frame.c: Include "frame-unwind.h".
14085 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14086 to use the new unwind field.
14087 (set_unwind_by_pc): Delete function.
14088 (create_new_frame, get_prev_frame): Set unwind field using
14089 frame_unwind_find_by_pc.
14090 (trad_frame_unwind, trad_frame_unwinder): New variables.
14091 * frame.h (trad_frame_unwind): Declare variable.
14092 (frame_id_unwind_ftype): Delete declaration.
14093 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14094 (struct frame_unwind): Declare opaque.
14095 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14096 register_unwind with a single unwind pointer.
14097 * frame-unwind.h, frame-unwind.c: New files.
14098 * Makefile.in (SFILES): Add frame-unwind.c.
14099 (frame_unwind_h): Define.
14100 (COMMON_OBS): Add frame-unwind.o.
14101 (frame-unwind.o): Specify dependencies.
14102 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14103
4efb68b1
AC
141042003-01-18 Andrew Cagney <ac131313@redhat.com>
14105
14106 * ada-valprint.c: Eliminate PTR.
14107 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14108 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14109 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14110 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14111 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14112 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14113 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14114
a84d24ee
AC
141152003-01-17 Andrew Cagney <ac131313@redhat.com>
14116
762f08a3
AC
14117 * main.c (captured_main): Don't use PTR.
14118 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14119 * gdbtypes.c (lookup_primitive_typename): Ditto.
14120 (lookup_struct_elt_type): Ditto.
14121 * f-valprint.c (info_common_command): Ditto.
14122 (list_all_visible_commons): Ditto.
14123 * jv-typeprint.c (java_type_print_base): Ditto.
14124
a84d24ee
AC
14125 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14126 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14127 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14128 i386-interix-nat.c and i386-interix-tdep.c. Rename
14129 m68klinux-nat.c and m68klinux-tdep.c. Rename
14130 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14131 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14132 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14133 * main.c (captured_main): Use xfree, not free.
14134
c170fb60
AC
141352003-01-16 Andrew Cagney <ac131313@redhat.com>
14136
14137 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14138 ID back using a parameter.
14139 * frame.c (frame_id_unwind): Update call.
14140 (frame_saved_regs_id_unwind): Update.
14141 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14142 * dummy-frame.h (struct frame_id): Add opaque declaration.
14143 (dummy_frame_id_unwind): Update declaration.
14144
867f3898
AC
141452003-01-15 Andrew Cagney <ac131313@redhat.com>
14146
14147 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14148
40622be8 141492003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14150
40622be8 14151 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14152
ae66c1fc
EZ
141532003-01-14 Elena Zannoni <ezannoni@redhat.com>
14154
997b089a 14155 Fix PR gdb/898
ae66c1fc
EZ
14156 * breakpoint.c (until_break_command): Add new argument. Use it to
14157 decide whether to stop only at the current frame or not.
14158 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14159 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14160 call.
14161 (advance_command): New function.
14162 (_initialize_infcmd): Update help string for 'until' command.
14163 Add new 'advance' command.
14164
a04257e6
DC
141652003-01-14 David Carlton <carlton@math.stanford.edu>
14166
14167 * linespec.c (decode_line_1): Normalize comments.
14168 (set_flags): Ditto.
14169 (locate_first_half): Ditto.
14170 (decode_compound): Ditto.
14171 (symtab_from_filename): Ditto.
14172 (decode_all_digits): Ditto.
14173 (decode_dollar): Ditto.
14174 (find_methods): Ditto.
14175 (find_toplevel_char): Ditto.
14176
1bac305b
AC
141772003-01-13 Andrew Cagney <ac131313@redhat.com>
14178
14179 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14180 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14181 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14182 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14183 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14184 * language.c, language.h, m32r-tdep.c: Update copyright.
14185 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14186 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14187 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14188 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14189 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14190 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14191
25caa7a8
EZ
141922003-01-13 Elena Zannoni <ezannoni@redhat.com>
14193
14194 * stabsread.h (process_later, resolve_cfront_continuation):
14195 Obsolete.
14196 Update copyright years.
14197 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14198 Update copyright year.
14199 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14200 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14201 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14202 Update copyright year.
14203 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14204 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14205 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14206 (parse_partial_symbols): Obsolete cfront support.
14207 * stabsread.c
14208 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14209 macros.
14210 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14211 read_cfront_baseclasses, read_cfront_member_functions,
14212 resolve_cfront_continuation,read_cfront_static_fields,
14213 copy_cfront_struct_fields): Obsolete functions.
14214 (define_symbol, read_one_struct_field): Obsolete cfront support.
14215 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14216 Update Copyright year.
14217
7789c6f5
EZ
142182003-01-13 Elena Zannoni <ezannoni@redhat.com>
14219
14220 * stack.c (print_frame_info, print_stack_frame_base_stub,
14221 print_stack_frame_base, show_and_print_stack_frame_stub,
14222 show_and_print_stack_frame, print_only_stack_frame_stub,
14223 print_only_stack_frame): Delete functions.
14224 (print_stack_frame_stub): Call print_frame_info instead of
14225 print_frame_info_base.
14226 (print_frame_info_base): Rename to print_frame_info.
14227 (backtrace_command_1): Call print_frame_info, instead of
14228 print_frame_info_base.
14229 (current_frame_command): Call print_stack_frame, instead of
14230 print_only_stack_frame.
14231 (frame_command): Call print_stack_frame, instead of
14232 show_and_print_stack_frame.
14233 (up_command): Ditto.
14234 (down_command): Ditto.
14235 * frame.h (print_only_stack_frame): Delete prototype.
14236 * infrun.c (normal_stop): Call print_stack_frame, instead of
14237 show_and_print_stack_frame.
14238 * thread.c (info_threads_command): Call print_stack_frame, instead
14239 of print_only_stack_frame.
14240
3f5a3016
AC
142412003-01-13 Andrew Cagney <ac131313@redhat.com>
14242
d99ba314
AC
14243 * README (Graphical interface to GDB): Update URL. Point at
14244 gdb/links/.
14245
3f5a3016
AC
14246 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14247 version match.
14248
083ae935
DJ
142492003-01-13 Daniel Jacobowitz <drow@mvista.com>
14250
14251 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14252 lines.
14253
5365276c
DJ
142542003-01-13 Daniel Jacobowitz <drow@mvista.com>
14255
14256 * thread-db.c (attach_thread): Prototype.
14257 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14258 thread information (ti), and valid flags (th_valid, ti_valid).
14259 (attach_thread): Move target_pid_to_str call to after the thread
14260 is added to GDB's list. Initialize the cache.
14261 (thread_get_info_callback, thread_db_map_id2thr)
14262 (thread_db_get_info): New functions.
14263 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14264 (thread_db_store_registers, thread_db_thread_alive)
14265 (thread_db_get_thread_local_address): Use them.
14266 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14267 of calling error() for threads in unknown state.
14268
14269 (clear_lwpid_callback): New function.
14270 (thread_db_resume): Use it to clear the cache.
14271
9fc30b6b
DJ
142722003-01-13 Daniel Jacobowitz <drow@mvista.com>
14273
14274 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14275 (resume_callback): Remove dead code.
14276
8f871025
AC
142772003-01-13 Andrew Cagney <ac131313@redhat.com>
14278
14279 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14280 predicate.
14281 * gdbarch.h, gdbarch.c: Regenerate.
14282 * stack.c (frame_info): Only initialize the saved registers when
14283 FRAME_INIT_SAVED_REGS_P.
14284 * frame.c (frame_saved_regs_register_unwind): Assert
14285 FRAME_INIT_SAVED_REGS_P.
14286 (deprecated_generic_get_saved_register): Ditto.
14287
3f565f1e
DJ
142882003-01-13 Daniel Jacobowitz <drow@mvista.com>
14289
14290 * source.c (openp): Squelch warning about "filename".
14291
072b1022
DJ
142922003-01-13 Daniel Jacobowitz <drow@mvista.com>
14293
14294 * source.c (openp): If the file does not exist don't necessarily
14295 search the path.
14296
973ccf8b
DJ
142972003-01-13 Daniel Jacobowitz <drow@mvista.com>
14298
14299 Fix PR gdb/872.
14300 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14301 (integer_types_same_name_p): New function.
14302 (rank_one_type): Use it.
14303 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14304
030292b7
DJ
143052003-01-13 Daniel Jacobowitz <drow@mvista.com>
14306
14307 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14308 variables.
14309 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14310 * configure.in: Add --with-sysroot.
14311 * configure: Regenerated.
14312 * main.c (gdb_sysroot): New variable.
14313 (captured_main): Initialize gdb_sysroot.
14314 * defs.h (gdb_sysroot): New extern declaration.
14315 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14316
afb5d334
MC
143172003-01-12 Michael Chastain <mec@shout.net>
14318
14319 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14320
751ceeb4
MC
143212003-01-12 Michael Chastain <mec@shout.net>
14322
14323 * top.c (print_gdb_version): Bump copyright year to 2003.
14324
94cd26f8
DC
143252003-01-12 David Carlton <carlton@bactrian.org>
14326
14327 * linespec.c (symtab_from_filename): Rename variable 's' to
14328 'file_symtab'.
14329
1ce79225
AC
143302003-01-12 Andrew Cagney <ac131313@redhat.com>
14331
14332 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14333 dummy frame.
14334 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14335
fa1fd571
AC
143362003-01-12 Andrew Cagney <ac131313@redhat.com>
14337
14338 * d10v-tdep.c: Include "gdb_assert.h".
14339 (d10v_store_return_value): Rewrite to match current interface.
14340 (d10v_extract_struct_value_address): Ditto.
14341 (d10v_extract_return_value): Ditto.
14342 (d10v_gdbarch_init): Set store_restore_value,
14343 extract_struct_value_address and extract_return_value.
14344
68b8d23e
JB
143452003-01-12 J. Brobecker <brobecker@gnat.com>
14346
14347 * hpread.c (set_namestring): New procedure replacing the
14348 SET_NAMESTRING macro.
14349 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14350 by calls to set_namestring.
14351
143522003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14353
14354 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14355 a compilation warning.
14356 (hpread_process_one_debug_symbol): Likewise.
14357
88d262ca
DC
143582003-01-10 David Carlton <carlton@math.stanford.edu>
14359
14360 * linespec.c (decode_line_1): Rename variable 's' to
14361 'file_symtab'.
14362 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14363 (decode_dollar): Ditto.
14364 (decode_variable): Ditto.
14365 (symbol_found): Ditto.
14366
86669319
MC
143672003-01-09 Michael Chastain <mec@shout.net>
14368
14369 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14370
616a9dc4
CV
143712003-01-07 Corinna Vinschen <vinschen@redhat.com>
14372
14373 * win32-nat.c (set_process_privilege): New function.
14374 (child_attach): Call set_process_privilege() to enable the
14375 SE_DEBUG_NAME user privilege if available in process token.
14376
3269bcfa
JB
143772003-01-10 J. Brobecker <brobecker@gnat.com>
14378
14379 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14380 compilation error in the previous revision.
14381
2b0ee454
DC
143822003-01-09 David Carlton <carlton@math.stanford.edu>
14383
14384 * linespec.c: Update copyright.
14385
b3ba1b44
DJ
143862003-01-09 Daniel Jacobowitz <drow@mvista.com>
14387
14388 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14389 than inferior_ptid.
14390 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14391
4ef3f3be
AC
143922003-01-09 Andrew Cagney <ac131313@redhat.com>
14393
479ab5a0
AC
14394 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14395 Update comments.
14396 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14397 (frame_saved_regs_zalloc): Update.
14398 (frame_saved_regs_register_unwind): Update.
14399 (create_new_frame): Update.
14400 (get_prev_frame): Update.
14401 (frame_extra_info_zalloc): Update.
14402 (deprecated_get_frame_saved_regs): Update.
14403 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14404 * cris-tdep.c: Update comment.
14405
bde58177
AC
14406 * somsolib.h: Fix function indentation.
14407 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14408 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14409 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14410 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14411 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14412
4ef3f3be
AC
14413 * infrun.c (follow_fork): Use ISO C definition.
14414 * expprint.c (print_subexp): Use xfree instead of free.
14415 * charset.c: Include "gdb_string.h" instead of <string.h>.
14416 (register_iconv_charsets): Use ISO C definition.
14417 (host_charset, target_charset): Ditto.
14418 * Makefile.in (charset.o): Update dependencies.
14419 (mi-cmd-env.o): Update dependencies.
14420
1c615f7a
AC
144212003-01-08 Andrew Cagney <cagney@redhat.com>
14422
14423 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14424 get_frame_base.
14425
c9a1dc08
AC
144262003-01-08 Andrew Cagney <ac131313@redhat.com>
14427
14428 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14429 build directories. Save edited gdb output in Mbuild.log. If a
14430 build fails, remove any final GDB executable.
14431
dbad9d94
AC
144322003-01-08 Andrew Cagney <ac131313@redhat.com>
14433
14434 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14435 replacing hex constants with function names and stripping leading
14436 file name directory prefixes.
14437
8d357cca
AC
144382003-01-08 Andrew Cagney <cagney@redhat.com>
14439
14440 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14441 get_frame_base.
14442
bca02a8a
DC
144432003-01-08 David Carlton <carlton@math.stanford.edu>
14444
14445 * linespec.c (decode_line_1): Move code into decode_variable.
14446 (decode_variable): New function.
14447
7f8ab3a0
AC
144482003-01-08 Andrew Cagney <ac131313@redhat.com>
14449
14450 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14451
7b5849cc
AC
144522003-01-08 Andrew Cagney <cagney@redhat.com>
14453
14454 * cris-tdep.c (cris_frame_init_saved_regs): Use
14455 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14456 saved_regs buffer.
14457 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14458 (sh64_nofp_frame_init_saved_regs): Ditto.
14459 (sh_fp_frame_init_saved_regs): Ditto.
14460 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14461 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14462 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14463 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14464
72a5efb3
DJ
144652003-01-08 Daniel Jacobowitz <drow@mvista.com>
14466
14467 * minsyms.c (lookup_minimal_symbol): Update comment.
14468 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14469 (lookup_minimal_symbol_solib_trampoline): Likewise.
14470
11c02a10
AC
144712003-01-08 Andrew Cagney <cagney@redhat.com>
14472
aab3ea25
AC
14473 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14474 frame_relative_level.
14475
da50a4b7
AC
14476 * alpha-tdep.c: Use get_frame_extra_info.
14477 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14478 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14479 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14480 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14481
11c02a10
AC
14482 * alpha-tdep.c: Use get_next_frame.
14483 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14484 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14485 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14486 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14487 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14488 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14489 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14490
1e2330ba
AC
144912003-01-07 Andrew Cagney <cagney@redhat.com>
14492
14493 * alpha-tdep.c: Use get_frame_base.
14494 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14495 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14496 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14497 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14498 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14499 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14500 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14501 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14502
2d75187b
AC
145032003-01-07 Andrew Cagney <cagney@redhat.com>
14504
14505 * frame.c (deprecated_get_frame_context): New function.
14506 (deprecated_set_frame_context): New function.
14507 * frame.h (deprecated_get_frame_context): Declare.
14508 (deprecated_set_frame_context): Declare.
14509 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14510 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14511
483d36b2
AC
145122003-01-07 Andrew Cagney <cagney@redhat.com>
14513
14514 * frame.c (deprecated_set_frame_next_hack): New function.
14515 (deprecated_set_frame_prev_hack): New function.
14516 * frame.h (deprecated_set_frame_next_hack): Declare.
14517 (deprecated_set_frame_prev_hack): Declare.
14518 * mcore-tdep.c (analyze_dummy_frame): Use
14519 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14520 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14521
14e91ac5
DC
145222003-01-07 David Carlton <carlton@math.stanford.edu>
14523
14524 * linespec.c (decode_line_1): Move code into decode_dollar.
14525 (decode_dollar): New function.
14526
b0c6b05c
AC
145272003-01-07 Andrew Cagney <cagney@redhat.com>
14528
14529 * arm-tdep.c (arm_init_extra_frame_info): Use
14530 deprecated_update_frame_base_hack.
14531 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14532 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14533 (fix_frame_pointer): Ditto.
14534 (mn10300_analyze_prologue): Ditto.
14535
a00a19e9
AC
145362003-01-07 Andrew Cagney <cagney@redhat.com>
14537
14538 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14539 extra_info using frame_extra_info_zalloc.
14540 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14541 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14542 (sh64_init_extra_frame_info): Ditto.
14543 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14544 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14545 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14546 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14547 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14548 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14549 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14550 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14551 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14552 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14553 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14554 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14555
14556 * mn10300-tdep.c (analyze_dummy_frame): Use
14557 deprecated_set_frame_extra_info_hack.
14558 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14559
1fb4c65b
JB
145602003-01-07 J. Brobecker <brobecker@gnat.com>
14561
14562 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14563 class is not scText. These do not define "real" procedures.
14564 (parse_partial_symbols): Likewise.
14565
9fe7d6bf
MS
145662003-01-06 Michael Snyder <msnyder@redhat.com>
14567
14568 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14569
f6c609c4
AC
145702003-01-06 Andrew Cagney <ac131313@redhat.com>
14571
14572 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14573 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14574 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14575 deprecated_frame_xmalloc_with_cleanup.
14576 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14577 deprecated_frame_xmalloc.
14578 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14579 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14580
d995ff4b
AC
145812003-01-06 Andrew Cagney <cagney@redhat.com>
14582
84dc46cb
AC
14583 * x86-64-linux-tdep.c: Include "osabi.h".
14584 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14585
d995ff4b
AC
14586 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14587
66140c26
AC
145882003-01-06 Andrew Cagney <cagney@redhat.com>
14589
14590 * MAINTAINERS (Target Instruction Set Architectures): Update
14591 arm-elf. Can be built with -Werror, has been multiarched.
14592
14593 * value.h (unpack_long): Make buffer parameter constant.
14594 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14595 * scm-lang.h (scm_parse): Ditto.
14596 * defs.h (extract_typed_address, extract_address): Ditto.
14597 (extract_long_unsigned_integer): Ditto.
14598 * inferior.h (unsigned_pointer_to_address): Ditto.
14599 (signed_pointer_to_address): Ditto.
14600 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14601 * gdbarch.h, gdbarch.c: Regenerate.
14602 * findvar.c (extract_long_unsigned_integer): Update.
14603 (extract_address): Update.
14604 (extract_typed_address): Update.
14605 (unsigned_pointer_to_address): Update.
14606 * values.c (unpack_long): Update.
14607 (unpack_double): Update.
14608 (unpack_pointer): Update.
14609 (unpack_field_as_long): Update.
14610 * d10v-tdep.c (d10v_pointer_to_address): Update.
14611 * avr-tdep.c (avr_pointer_to_address): Update.
14612 * scm-lang.c (scm_unpack): Update.
14613 * findvar.c (signed_pointer_to_address): Update.
14614
b089b3da
ML
146152003-01-06 Michal Ludvig <mludvig@suse.cz>
14616
8ffd9b1b 14617 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14618 since it is in i386-tdep.c.
14619
aff87235
JB
146202003-01-06 J. Brobecker <brobecker@gnat.com>
14621
14622 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14623 failure introduced in the previous change.
14624
34f5e845
MC
146252003-01-05 Michael Chastain <mec@shout.net>
14626
14627 * README: Remove references to deleted remote-*.c files:
14628 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14629 remote-nrom.c, remote-os9k.c, remote-udi.c.
14630
28bcfd30
MK
146312003-01-05 Mark Kettenis <kettenis@gnu.org>
14632
14633 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14634 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14635 i386_get_longjmp_target.
14636
15a5b3ee
AC
146372003-01-05 Andrew Cagney <ac131313@redhat.com>
14638
14639 * arm-tdep.c (prologue_cache): Change to a pointer.
14640 (_initialize_arm_tdep): Allocate prologue_cache.
14641 (check_prologue_cache): Update.
14642 (save_prologue_cache): Update.
14643 (arm_gdbarch_init): Update.
14644
c263362b
DJ
146452003-01-04 Daniel Jacobowitz <drow@mvista.com>
14646
14647 * stabsread.c (update_method_name_from_physname): Call complaint()
14648 instead of error.
14649
51603483
DJ
146502003-01-04 Daniel Jacobowitz <drow@mvista.com>
14651
14652 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14653 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14654 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14655
14656 * blockframe.c: Include "gdbcmd.h" and "command.h".
14657 (backtrace_below_main): New variable.
14658 (file_frame_chain_valid, func_frame_chain_valid)
14659 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14660 (generic_func_frame_chain_valid): Remove functions.
14661 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14662 (_initialize_blockframe): New function.
14663 * Makefile.in (blockframe.o): Update dependencies.
14664 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14665 comment. Call frame_chain_valid ().
14666 * frame.h: Remove old prototypes. Add prototype for
14667 frame_chain_valid and update comments to match.
14668 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14669 Remove old comment.
14670 * gdbarch.h: Regenerated.
14671 * gdbarch.c: Regenerated.
14672
14673 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14674 set_gdbarch_frame_chain_valid.
14675 * avr-tdep.c (avr_gdbarch_init): Likewise.
14676 * cris-tdep.c (cris_gdbarch_init): Likewise.
14677 * frv-tdep.c (frv_gdbarch_init): Likewise.
14678 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14679 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14680 (i386_nw_init_abi): Likewise.
14681 (i386_gdbarch_init): Likewise.
14682 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14684 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14685 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14686 * mips-tdep.c (mips_gdbarch_init): Likewise.
14687 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14688 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14689 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14690 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14691 * s390-tdep.c (s390_gdbarch_init): Likewise.
14692 * sh-tdep.c (sh_gdbarch_init): Likewise.
14693 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14694 * v850-tdep.c (v850_gdbarch_init): Likewise.
14695 * vax-tdep.c (vax_gdbarch_init): Likewise.
14696 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14697
14698 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14699 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14700 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14701 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14702 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14703 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14704 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14705 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14706
b00a8037
DJ
147072002-01-04 Daniel Jacobowitz <drow@mvista.com>
14708
14709 * Makefile.in (acconfig_h): Remove incorrect macro.
14710 (config_h): Define.
14711 (osabi.o): Update dependencies.
14712 * configure.tgt: Set gdb_osabi based on target triplet.
14713 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14714 * configure: Regenerated.
14715 * config.in: Regenerated.
14716 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14717 (GDB_OSABI_DEFAULT): Define if not already defined.
14718 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14719 (set_osabi_string): New variables.
14720 (gdbarch_register_osabi): Add new OS ABI to
14721 gdb_osabi_available_names.
14722 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14723 (set_osabi, show_osabi): New functions.
14724 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14725
4be87837
DJ
147262003-01-04 Daniel Jacobowitz <drow@mvista.com>
14727
14728 * arch-utils.c (gdbarch_info_init): Set osabi to
14729 GDB_OSABI_UNINITIALIZED.
14730 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14731 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14732 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14733 * gdbarch.c: Regenerated.
14734 * gdbarch.h: Regenerated.
14735 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14736 there's no BFD.
14737 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14738 * osabi.h (enum gdb_osabi): Move to defs.h.
14739 (gdbarch_init_osabi): Update prototype.
14740 * defs.h (enum gdb_osabi): Moved here.
14741 * Makefile.in: Update dependencies.
14742
14743 * alpha-tdep.h: Don't include "osabi.h".
14744 (struct gdbarch_tdep): Remove osabi member.
14745 * alpha-tdep.c: Include "osabi.h".
14746 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14747 iterate over arches. Update call to gdbarch_init_osabi.
14748 (alpha_dump_tdep): Don't dump osabi.
14749 * alpha-linux-tdep.c: Include "osabi.h".
14750 * alpha-osf1-tdep.c: Include "osabi.h".
14751 * alphafbsd-tdep.c: Include "osabi.h".
14752 * alphanbsd-tdep.c: Include "osabi.h".
14753
14754 * arm-tdep.h: Don't include "osabi.h".
14755 (struct gdbarch_tdep): Remove osabi member.
14756 * arm-tdep.c: Include "osabi.h".
14757 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14758 iterate over arches. Update call to gdbarch_init_osabi.
14759 (arm_dump_tdep): Don't dump osabi.
14760 * arm-linux-tdep.c: Include "osabi.h".
14761 * armnbsd-tdep.c: Include "osabi.h".
14762
14763 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14764 Update call to gdbarch_init_osabi.
14765
14766 * i386-tdep.h: Don't include "osabi.h".
14767 (struct gdbarch_tdep): Remove osabi member.
14768 * i386-tdep.c: Include "osabi.h".
14769 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14770 iterate over arches. Update call to gdbarch_init_osabi.
14771 (i386_dump_tdep): Don't dump osabi.
14772 * i386-linux-tdep.c: Include "osabi.h".
14773 * i386-sol2-tdep.c: Include "osabi.h".
14774 * i386bsd-tdep.c: Include "osabi.h".
14775 * i386gnu-tdep.c: Include "osabi.h".
14776 * i386ly-tdep.c: Include "osabi.h".
14777 * i386nbsd-tdep.c: Include "osabi.h".
14778 * i386obsd-tdep.c: Include "osabi.h".
14779
14780 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14781 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14782 check osabi when iterating over arches. Update call to
14783 gdbarch_init_osabi.
14784 (mips_dump_tdep): Don't dump osabi.
14785
14786 * ns32k-tdep.h: Don't include "osabi.h".
14787 (struct gdbarch_tdep): Remove.
14788 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14789 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14790 allocate tdep. Update call to gdbarch_init_osabi.
14791 (ns32k_dump_tdep): Remove.
14792 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14793 * ns32knbsd-tdep.c: Include "osabi.h".
14794
14795 * ppc-tdep.h: Don't include "osabi.h".
14796 (struct gdbarch_tdep): Remove osabi member.
14797 * rs6000-tdep.c: Include "osabi.h".
14798 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14799 osabi when iterating over arches. Update call to
14800 gdbarch_init_osabi.
14801 (rs6000_dump_tdep): Don't dump osabi.
14802 * ppc-linux-tdep.c: Include "osabi.h".
14803 * ppcnbsd-tdep.c: Include "osabi.h".
14804
14805 * sh-tdep.h: Don't include "osabi.h".
14806 (struct gdbarch_tdep): Remove osabi member.
14807 * sh-tdep.c: Include "osabi.h".
14808 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14809 iterate over arches. Update call to gdbarch_init_osabi.
14810 (sh_dump_tdep): Don't dump osabi.
14811 * shnbsd-tdep.c: Include "osabi.h".
14812
14813 * sparc-tdep.c: Include "osabi.h".
14814 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14815 iterate over arches. Update call to gdbarch_init_osabi.
14816 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14817 tdep structure.
14818
14819 * vax-tdep.h: Don't include "osabi.h".
14820 (struct gdbarch_tdep): Remove.
14821 * vax-tdep.c: Include "osabi.h".
14822 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14823 iterate over arches. Don't allocate tdep. Update call
14824 to gdbarch_init_osabi.
14825 (vax_dump_tdep): Remove.
14826 (_initialize_vax_tdep): Update call to gdbarch_register.
14827
a881cf8e
DJ
148282003-01-04 Daniel Jacobowitz <drow@mvista.com>
14829
14830 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14831 entirely.
14832 (breakpoint_re_set_one): Don't fetch the value for a disabled
14833 watchpoint.
14834
1e698235
DJ
148352003-01-04 Daniel Jacobowitz <drow@mvista.com>
14836
14837 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14838 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14839 (COERCE_FLOAT_TO_DOUBLE): Remove.
14840 * gdbarch.c: Regenerate.
14841 * gdbarch.h: Regenerate.
14842 * Makefile.in: Remove value_h from gdbarch_h.
14843 * valops.c (coerce_float_to_double): New variable.
14844 (default_coerce_float_to_double): Remove.
14845 (standard_coerce_float_to_double): Remove.
14846 (value_arg_coerce): Use coerce_float_to_double.
14847 (_initialize_valops): Add "set coerce-float-to-double".
14848 * value.h (default_coerce_float_to_double): Remove prototype.
14849 (standard_coerce_float_to_double): Remove prototype.
14850
14851 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14852 prototyped.
14853 * mdebugread.c (parse_symbol): Likewise.
14854 * stabsread.c (define_symbol): Mark all functions as prototyped.
14855
14856 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14857 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14858 set_gdbarch_coerce_float_to_double.
14859 * arm-tdep.c (arm_gdbarch_init): Likewise.
14860 * frv-tdep.c (frv_gdbarch_init): Likewise.
14861 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14862 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14863 * mips-tdep.c (mips_gdbarch_init): Likewise.
14864 (mips_coerce_float_to_double): Remove.
14865 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14866 (rs6000_coerce_float_to_double): Remove.
14867 * s390-tdep.c (s390_gdbarch_init): Likewise.
14868 * sh-tdep.c (sh_gdbarch_init): Likewise.
14869 (sh_coerce_float_to_double): Remove.
14870 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14871 (sparc_coerce_float_to_double): Remove.
14872 * v850-tdep.c (v850_gdbarch_init): Likewise.
14873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14874 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14875 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14876 (hppa_coerce_float_to_double): Remove prototype.
14877 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14878
f436a26a
DJ
148792003-01-04 Daniel Jacobowitz <drow@mvista.com>
14880
14881 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14882
248f8055
DJ
148832003-01-04 Daniel Jacobowitz <drow@mvista.com>
14884
14885 Suggested by Stewart Brown <sb24@avaya.com>:
14886 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14887 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14888 (c_type_print_varspec_suffix): Likewise.
14889
72cfdc76
MK
148902003-01-04 Mark Kettenis <kettenis@gnu.org>
14891
bfd260bb
MK
14892 * configure.in: Don't set and AC_SUBST SUBDIRS.
14893 * configure: Regenerated.
14894
72cfdc76
MK
14895 * configure.in: Remove code dealing with shared libraries.
14896 * Makefile.in: Remove HLDFLAGS and HLDENV.
14897 * configure: Regenerated.
14898
c8b8a898
AC
148992003-01-04 Andrew Cagney <ac131313@redhat.com>
14900
14901 * frame.c (deprecated_frame_xmalloc): New function.
14902 (deprecated_set_frame_saved_regs_hack): New function.
14903 (deprecated_set_frame_extra_info_hack): New function.
14904 * frame.h (deprecated_frame_xmalloc): Declare.
14905 (deprecated_set_frame_saved_regs_hack): Declare.
14906 (deprecated_set_frame_extra_info_hack): Declare.
14907
14abd0fb
MK
149082003-01-04 Mark Kettenis <kettenis@gnu.org>
14909
8ee53726
MK
14910 * configure.in: Move code that provides the --enable-gdbtk option
14911 right after the code that handles the --enable-tui option, and
14912 polish it somewhat.
14913 * configure: Regenerated.
14914
14abd0fb
MK
14915 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14916 AC_CHECK_FUNCS and remove the old check for pread64.
14917 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14918 * acconfig.h (_GNU_SOURCE): Add.
14919 (HAVE_PREAD64): Remove.
14920 * configure, aclocal.m4, config.in: Regenerated.
14921
b2fb4676
AC
149222003-01-03 Andrew Cagney <ac131313@redhat.com>
14923
14924 * alpha-tdep.c: Use get_frame_saved_regs.
14925 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14926 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14927 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14928 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14929 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14930
8dcde887
MK
149312003-01-03 Mark Kettenis <kettenis@gnu.org>
14932
14933 * configure.in: Remove all use of the SUBDIRS variable; add
14934 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14935 code providing the --enable-multi-ice option, and move it right in
14936 front of the code that checks whether gdbserver is supported.
14937 Polish that too.
14938 * configure: Regenerated.
14939 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14940 @SUBDIRS@.
14941
8ccd593b
AC
149422003-01-03 Andrew Cagney <cagney@redhat.com>
14943
14944 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14945 * avr-tdep.c, cris-tdep.c: Ditto.
14946 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14947 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14948
91151a06
MK
149492003-01-03 Mark Kettenis <kettenis@gnu.org>
14950
14951 * configure.in: Remove --enable-netrom option.
14952 * configure: Regenerated.
14953
8fe84d01
MK
149542003-01-03 Mark Kettenis <kettenis@gnu.org>
14955
14956 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14957 declaration for `struct re_pattern_buffer' instead.
14958 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14959
f0394be6
JB
149602003-01-03 J. Brobecker <brobecker@gnat.com>
14961
14962 * mdebugread.c (parse_symbol): Count until the stEnd matching
14963 the structure name.
14964
27e9bf90
MK
149652003-01-02 Mark Kettenis <kettenis@gnu.org>
14966
93d331ba
MK
14967 * configure.in: Remove --with-cpu option.
14968 subscripts. Remove evil changequotes here.
14969 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14970 * config.in, configure: Regenerated.
8ffd9b1b 14971
27e9bf90
MK
14972 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14973 * configure.in: Cleanup section that sources GDB and BFD configure
14974 subscripts. Remove evil changequotes here.
14975 * config.in, configure: Regenerated.
14976
50abf9e5
AC
149772003-01-02 Andrew Cagney <ac131313@redhat.com>
14978
14979 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14980 frame accessor methods.
14981 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14982 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14983 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14984 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14985 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14986 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14987 * z8k-tdep.c: Ditto.
8ffd9b1b 14988
287c1a40
MK
149892003-01-02 Mark Kettenis <kettenis@gnu.org>
14990
f5dbc56d
MK
14991 * configure.in: Remove UI_OUT configuration code.
14992 * ada-lang.c: Update assuming UI_OUT is always true.
14993 * Makefile.in (UIOUT_CFLAGS): Remove.
14994 * configure: Regenerated.
14995 * TODO: Remove blurb about elimination of -DUI_OUT.
14996
627af7ea
MK
14997 * configure.in: Move code that provides the --enable-gdbcli,
14998 --enable-gdbmi options right before the code that handles the
14999 --enable-tui option. Polish a bit.
15000 * configure: Regenerated.
15001
06825bd1
MK
15002 * configure.in: Rewrite check for GNU regex and the
15003 --without-included regex option, and move it into the "Checks for
15004 library functions" section. This makes us use the system regex
15005 again by default on systems with version 2 of the GNU C library.
15006 This was apparently broken.
15007 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15008 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15009 * config.in, configure: Regenerated.
15010
287c1a40
MK
15011 * configure.in: Move code that provides the --enable-tui option
15012 before the "Checks for libraries" section. Polish the code
15013 somewhat and set need_curses to yes if we build the TUI. Rewrite
15014 code that looks for a library providing termcap functionality to
15015 match more closely what's done in the Readline library, and move
15016 it into to the "Checks for libraries" section.
15017 * configure: Regenerated.
15018 * Makefile.in (TERMCAP): Remove variable.
15019 * config/i386/go32.mh (TERMCAP): Remove variable.
15020
684e56bf
AC
150212003-01-02 Andrew Cagney <ac131313@redhat.com>
15022
15023 * MAINTAINERS: Mention gdb_mbuild.sh.
15024 * gdb_mbuild.sh: Rewrite.
15025
e1ea1d75
MK
150262003-01-02 Mark Kettenis <kettenis@gnu.org>
15027
15028 * configure.in: Fix typo in last change.
15029 * config.in, configure: Regenerated.
15030
1b831c93
AC
150312003-01-02 Andrew Cagney <ac131313@redhat.com>
15032
15033 * valarith.c (value_binop): Delete obsolete code and comments.
15034 * configure.host: Ditto.
15035 * buildsym.h (make_blockvector): Ditto.
15036 * buildsym.c (make_blockvector): Ditto.
15037 * defs.h (enum language): Ditto.
15038 (chill_demangle): Ditto.
15039 * elfread.c (elf_symtab_read): Ditto.
15040 * dwarfread.c (CHILL_PRODUCER): Ditto.
15041 (set_cu_language): Ditto.
15042 (handle_producer): Ditto.
15043 * expprint.c (print_subexp): Ditto.
15044 * gdbtypes.c (chill_varying_type): Ditto.
15045 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15046 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15047 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15048 (chill_varying_type): Ditto.
15049 * language.h (_LANG_chill): Ditto.
15050 * language.c (binop_result_type, integral_type): Ditto.
15051 (character_type, string_type, structured_type): Ditto.
15052 (lang_bool_type, binop_type_check): Ditto.
15053 * stabsread.h (os9k_stabs): Ditto.
15054 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15055 (define_symbol, read_type, read_struct_fields): Ditto.
15056 (read_array_type, read_enum_type, read_huge_number): Ditto.
15057 (read_range_type, start_stabs): Ditto.
15058 * symfile.c (init_filename_language_table): Ditto.
15059 (add_psymbol_with_dem_name_to_list): Ditto.
15060 * symtab.c (symbol_init_language_specific): Ditto.
15061 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15062 * symtab.h (struct general_symbol_info): Ditto.
15063 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15064 * typeprint.c (typedef_print): Ditto.
15065 * utils.c (fprintf_symbol_filtered): Ditto.
15066 * valops.c (value_cast, search_struct_field, value_slice): Delete
15067 obsolete code.
15068 (varying_to_slice): Delete function.
15069 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15070 (varying_to_slice): Delete declaration.
15071 * MAINTAINERS: Update.
15072
8bb2c122
MK
150732003-01-02 Mark Kettenis <kettenis@gnu.org>
15074
97bf5e38
MK
15075 * configure.in: Reorganize "Checks for library functions section"
15076 a bit. Remove check for `btowc' and `isascii' functions.
15077 * configure: Regenerated.
15078
5ee754fc
MK
15079 * acconfig.h (_MSE_INT_H): Remove.
15080 * configure.in: Create "Checks for header files" section, and move
15081 appropriate tests there. Don't check for objlist.h, wchar.h,
15082 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15083 misdetection fix. Also add "Checks for types", "Checks for
15084 compiler characteristics" and "Checks for library functions"
15085 sections.
15086 * config.in, configure: Regenerated.
15087
8bb2c122
MK
15088 * configure.in: Create "Checks for programs" section, and move
15089 appropriate tests there.
15090
9a156167
MK
150912003-01-01 Mark Kettenis <kettenis@gnu.org>
15092
15093 * configure.in: Create "Checks for libraries" section, and move
15094 appropriate tests there. Cleanup check for wctype in libw. Use
15095 AC_SEARCH_LIBS to see whether we need libsocket.
15096 * configure: Regenerated.
15097
a80e2bcb 15098For older changes see ChangeLog-2002
c906108c
SS
15099\f
15100Local Variables:
15101mode: change-log
15102left-margin: 8
15103fill-column: 74
15104version-control: never
15105End:
This page took 1.140658 seconds and 4 git commands to generate.