Fia x comment typo.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
32edc941
JJ
12003-12-05 Jeff Johnston <jjohnstn@redhat.com>
2
3 * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
4 format to be the i387 extended float format which is used for
5 long doubles stored in memory.
6
2af2aeb0
MK
72003-12-05 Mark Kettenis <kettenis@gnu.org>
8
9 From Ulrich Weigand <weigand@informatik.uni-erlangen.de>:
10 * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
11 column instead of translating it.
12
362ff856
MC
132003-12-04 Michael Chastain <mec.gnu@mindspring.com>
14
15 Partial fix for PR c++/1465.
16 Fix for PR c++/1377.
17 * cp-support.h (cp_lookup_rtti_type): New function.
18 * cp-support.c (cp_lookup_rtti_type): New function.
19 * gnu-v2-abi.c: Update copyright years.
20 (gnuv2_rtti_type): Call cp_lookup_rtti_type.
21 * gnu-v3-abi.c: Update copyright years.
22 (gnuv3_rtti_type): Call cp_lookup_rtti_type.
23
149d821b
JB
242003-12-04 J. Brobecker <brobecker@gnat.com>
25
26 * stabsread.c (read_type): Save a reference to types that are defined
27 as cross references to other types.
28
77f091dd
RM
292003-12-02 Roland McGrath <roland@redhat.com>
30
31 * thread-db.c (enable_thread_event): Change return type to
32 td_err_e. Return TD_OK or error code.
33 (enable_thread_event_reporting): Update callers.
34
59659be2
ILT
352003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
36
37 * NEWS: Mention new C++ demangler code.
38
56d0d96a
AC
392003-12-03 Andrew Cagney <cagney@redhat.com>
40
41 * ppc-linux-nat.c (store_register, fetch_register): Convert
42 between ptrace and regcache's wordsize.
43 (ppc_register_u_addr): Use the ptrace wordsize.
44
251a3ae3
KB
452003-12-02 Kevin Buettner <kevinb@redhat.com>
46
47 * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
48
188dd5d6
DJ
492003-12-02 Daniel Jacobowitz <drow@mvista.com>
50
51 * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
52 (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
53 (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
54 (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
55 Delete.
56 (dwarf2_read_section): Remove offset and size arguments. Use
57 bfd_get_section_size_before_reloc and sectp->filepos.
58 (dwarf2_has_info): Clear section variables instead of offsets.
59 (dwarf2_locate_sections): Don't initialize the deleted variables.
60 (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
61 (dwarf2_build_psymtabs_easy): Likewise.
62 * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
63 (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
64 declarations.
65 (dwarf2_read_section): Update prototype.
66 (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
67 Use bfd_get_section_size_before_reloc instead of global size
68 variables.
69
013be872
MC
702003-12-01 Michael Chastain <mec.gnu@mindspring.com>
71
72 * dwarfread.c: Update documentation on the state of dwarf-1.
73
5994185b
AC
742003-12-01 Andrew Cagney <cagney@redhat.com>
75
0748d941
AC
76 Obsolete old MIPS SVr3 and SVr4 systems.
77 * NEWS: Mention obsoleted systems.
78 * configure.tgt: Mark mips*-*-sysv4* as obsolete.
79 * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
80 mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
81 obsolete.
82 * config/mips/decstation.mh: Mark as obsolete.
83 * config/mips/littlemips.mh: Mark as obsolete.
84 * config/mips/nm-mips.h: Mark as obsolete.
85 * config/mips/xm-mips.h: Mark as obsolete.
86 * config/mips/news-mips.mh: Mark as obsolete.
87 * config/mips/nm-news-mips.h: Mark as obsolete.
88 * config/mips/riscos.mh: Mark as obsolete.
89 * config/mips/nm-riscos.h: Mark as obsolete.
90 * config/mips/xm-riscos.h: Mark as obsolete.
91 * config/mips/mipsv4.mt: Mark as obsolete.
92 * config/mips/tm-mipsv4.h: Mark as obsolete.
93 * config/mips/xm-mipsv4.h: Mark as obsolete.
94
5994185b
AC
95 Obsolete old m68k systems.
96 * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
97 m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
98 m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
99 m680[01]0-sun-sunos3* as obsolete.
100 * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
101 m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
102 m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
103 * config/m68k/sun3os4.mh: Mark file obsolete.
104 * config/m68k/xm-sun3os4.h: Mark file obsolete.
105 * config/m68k/sun3os3.mh: Mark file obsolete.
106 * config/m68k/nm-sun3.h: Mark file obsolete.
107 * config/m68k/xm-sun3.h: Mark file obsolete.
108 * config/m68k/sun2os4.mh: Mark file obsolete.
109 * config/m68k/sun2os3.mh: Mark file obsolete.
110 * config/m68k/nm-sun2.h: Mark file obsolete.
111 * config/m68k/xm-sun2.h: Mark file obsolete.
112 * config/m68k/m68kv4.mh: Mark file obsolete.
113 * config/m68k/nm-sysv4.h: Mark file obsolete.
114 * config/m68k/xm-m68kv4.h: Mark file obsolete.
115 * config/m68k/m68klynx.mh: Mark file obsolete.
116 * config/m68k/nm-m68klynx.h: Mark file obsolete.
117 * config/m68k/dpx2.mh: Mark file obsolete.
118 * config/m68k/xm-dpx2.h: Mark file obsolete.
119 * config/m68k/nm-dpx2.h: Mark file obsolete.
120 * config/m68k/delta68.mh: Mark file obsolete.
121 * config/m68k/xm-delta68.h: Mark file obsolete.
122 * config/m68k/nm-delta68.h: Mark file obsolete.
123 * config/m68k/3b1.mh: Mark file obsolete.
124 * config/m68k/xm-3b1.h: Mark file obsolete.
125 * config/m68k/sun3os4.mt: Mark file obsolete.
126 * config/m68k/tm-sun3os4.h: Mark file obsolete.
127 * config/m68k/sun3os3.mt: Mark file obsolete.
128 * config/m68k/tm-sun3.h: Mark file obsolete.
129 * config/m68k/sun2os4.mt: Mark file obsolete.
130 * config/m68k/tm-sun2os4.h: Mark file obsolete.
131 * config/m68k/sun2os3.mt: Mark file obsolete.
132 * config/m68k/tm-sun2.h: Mark file obsolete.
133 * config/m68k/m68kv4.mt: Mark file obsolete.
134 * config/m68k/tm-m68kv4.h: Mark file obsolete.
135 * config/m68k/m68klynx.mt: Mark file obsolete.
136 * config/m68k/tm-m68klynx.h: Mark file obsolete.
137 * config/m68k/dpx2.mt: Mark file obsolete.
138 * config/m68k/tm-dpx2.h: Mark file obsolete.
139 * config/m68k/delta68.mt: Mark file obsolete.
140 * config/m68k/tm-delta68.h: Mark file obsolete.
141 * config/m68k/3b1.mt: Mark file obsolete.
142 * config/m68k/tm-3b1.h: Mark file obsolete.
143
720aa428
MK
1442003-11-29 Mark Kettenis <kettenis@gnu.org>
145
146 * x86-64-tdep.c (MAX_CLASSES): Remove macro.
147 (x86_64_reg_class): Remove enum.
148 (merge_classes, classify_argument, examine_argument): Remove
149 functions.
150 (INT_REGS, SSE_REGS): Remove macros.
151 (x86_64_push_arguments): Remove function.
152 (amd64_push_arguments): New function.
153 (x86_64_push_dummy_call): Call amd64_push_arguments instead of
154 x86_64_push_arguments.
155
35883a3f
MK
1562003-11-28 Mark Kettenis <kettenis@gnu.org>
157
158 * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
159 zero. Reorganize code a bit.
160
597684c5
MK
1612003-11-27 Mark Kettenis <kettenis@gnu.org>
162
3e74aeed
MK
163 * dwarf2-frame.c: Fix another comment.
164
efb1c01c
MK
165 * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
166 (x86_64_use_struct_convention, x86_64_extract_return_value,
167 x86_64_store_return_value): Remove.
168 (amd64_reg_class): New enum.
169 (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
170 amd64_return_value): New functions.
171 (x86_64_init_abi): Don't set extract_return_value,
172 store_return_value and use_struct_convention. Set return_value to
173 amd64_return_value.
174 * i387-tdep.h (i387_return_value): New prototype.
175 * i387-tdep.c (i387_return_value): New function.
176
e4e9607c
MK
177 * dwarf2-frame.c: Fix some comments and whitespace problems.
178
13739f4d
MK
179 * i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
180 "gdb_assert.h" and "gdb_string.h".
181 (i386nbsd_r_reg_offset): Rename from regmap.
182 (SIZEOF_STRUCT_REG): Remove.
183 (i386nbsd_supply_reg, fetch_core_registers,
184 fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
185 Remove.
186 (i386nbsd_aout_supply_regset,
187 i386nbsd_aout_regset_from_core_section): New functions.
188 (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
189 (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
190 TDEP->gregset_num_regs amd sizeof_gregset. Use ARRAY_SIZE to
191 initialize TDEP->sc_num_regs.
192 (i386nbsdaout_init_abi): New function.
193 (i386nbsdelf_init_abi): Remove initialization of
194 TDEP->num_xmm_regs. Don't set num_regs here.
195 (_initialize_i386nbsd_tdep): Don't call add_core_fns. Use
196 i386nbsd_aout_init to register NetBSD a.out OS/ABI.
197
597684c5
MK
198 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
199 .note.netbsdcore.procinfo section to recognize NetBSD core files.
200
37e79b6b
MC
2012003-11-26 Michael Chastain <mec.gnu@mindspring.com>
202
203 * cp-abi.c: Update copyright years.
204
24557e30
AC
2052003-11-25 Andrew Cagney <cagney@redhat.com>
206
207 * thread-db.c (enable_thread_event): New function. Ensure that BP
208 is a code address.
209 (enable_thread_event_reporting): Use enable_thread_event.
77f091dd 210
78c63a3b
MS
2112003-11-25 Michael Snyder <msnyder@redhat.com>
212
213 * mips-tdep.c (mips_o64_extract_return_value): Correct for
214 NUM_REGS (see changes 2003-06-21).
215 (mips_eabi_extract_return_value): Ditto.
216
aff6338a
AC
2172003-11-25 Andrew Cagney <cagney@redhat.com>
218
219 * infrun.c: Don't include "exec.h".
220 (handle_inferior_event): Pass current_target, instead of exec_ops,
221 to SOLIB_ADD. Add comments.
222 * Makefile.in (infrun.o): Update dependencies.
223
9e08b29b
DJ
2242003-11-24 Daniel Jacobowitz <drow@mvista.com>
225
226 * NEWS: Mention improved location expression support.
227
603942cc
AC
2282003-11-23 Andrew Cagney <cagney@redhat.com>
229
230 * Makefile.in (infrun.o): Update dependencies.
231 * infrun.c: Include "exec.h".
232 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
233
66c57289
AC
2342003-11-23 Andrew Cagney <cagney@redhat.com>
235
dd3ecc14
AC
236 * frame.c (frame_unwind_signed_register): Delete function.
237 * frame.h (frame_unwind_register_signed): Delete declaration.
238 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
239
eec1a560
AC
240 * arch-utils.h (generic_cannot_extract_struct_value_address):
241 Delete declaration.
242
cb137aa5
AC
243 * defs.h (DEPRECATED_STREQN): Rename STREQN.
244 (DEPRECATED_STREQ): Rename STREQ.
245 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
246 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
247 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
248 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
249 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
250 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
251 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
252 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
253 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 254
cb137aa5 255 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
256 * elfread.c (elf_symtab_read): Delete STREQ from comment.
257
29dfb2ac
AC
2582003-11-22 Andrew Cagney <cagney@redhat.com>
259
213cc0ad
AC
260 * frame.c (deprecated_frame_xmalloc): Delete function.
261 (deprecated_set_frame_extra_info_hack): Delete function.
262 (deprecated_set_frame_saved_regs_hack): Delete function.
263 * frame.h (deprecated_frame_xmalloc): Delete declaration.
264 (deprecated_set_frame_extra_info_hack): Delete declaration.
265 (deprecated_set_frame_saved_regs_hack): Delete declaration.
266 * mcore-tdep.c (analyze_dummy_frame): Instead of
267 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
268 and deprecated_set_frame_extra_info_hack use
269 deprecated_frame_xmalloc_with_cleanup.
270 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
271 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
272 deprecated_set_frame_saved_regs_hack.
273
35bb18ac
AC
274 * mips-tdep.c (mips_frame_chain): Delete call to
275 deprecated_inside_entry_file.
276
38a7ce4b
AC
277 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
278 (deprecated_set_frame_prev_hack): Delete declaration.
279 * frame.c (deprecated_set_frame_next_hack): Delete function.
280 (deprecated_set_frame_prev_hack): Delete function.
281 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
282 "deprecated_set_frame_next_hack" and
283 "deprecated_set_frame_prev_hack".
284 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
285
47ebcfbe
AC
286 * mips-tdep.c (mips_register_convertible): Delete function.
287 (mips_register_convert_to_virtual): Delete function.
288 (mips_register_convert_to_raw): Delete function.
289 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
290 "deprecated_register_convert_to_virtual", or
291 "deprecated_register_convert_to_raw".
292 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
293 32/64 cooked to raw register conversions.
294
2a9264f1 295 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 296 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
297 (struct frame_info): Delete member "context".
298 * frame.h (deprecated_get_frame_context): Delete declaration.
299 (deprecated_set_frame_context): Delete declaration.
300
7af6341f
AC
301 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
302 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
303 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
304 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
305
10a08821
AC
306 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
307 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
308 mips_regsize.
309 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
310 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
311 * config/mips/tm-irix5.h: Update copyright.
312 (SIGFRAME_REG_SIZE): Delete macro.
313
00d33403
AC
314 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
315 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
316 declaration.
317 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
318 * infcall.c (call_function_by_hand): Delete #ifdef
319 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
320 * infcmd.c (print_return_value): Ditto.
321
74da7425
AC
322 * mips-tdep.c (skip_prologue_using_sal): New function.
323 (mips32_skip_prologue, mips16_skip_prologue): Use
324 skip_prologue_using_sal to get an upper bound on the search.
325
369864a4
AC
326 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
327 #if 0'ed macro.
328 * infrun.c (step_into_function): Delete #ifdef
329 PROLOGUE_FIRSTLINE_OVERLAP code.
330 * symtab.c (find_function_start_sal): Ditto.
331
a5a12285
AC
332 * remote-rdp.c: Update copyright.
333 (rdp_init): #if 0 references to "target_byte_order".
334
29dfb2ac
AC
335 * mips-tdep.c (mips_o32_store_return_value): Delete function.
336 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
337 (mips_o32_extract_return_value): Delete function.
338 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
339 (mips_n32n64_extract_return_value): Delete function.
340 (mips_n32n64_store_return_value): Delete function.
341 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
342 instead of "store_return_value", "extract_return_value", and
343 "use_struct_convention".
344 (mips_n32n64_use_struct_convention): Delete function.
345
3a3da38c
KB
3462003-11-21 Kevin Buettner <kevinb@redhat.com>
347
348 * frv-tdep.c (frv_frame_this_id): Eliminate call to
349 inside_entry_func().
350
c5e656c1
MK
3512003-11-20 Mark Kettenis <kettenis@gnu.org>
352
353 * i386-tdep.c (i386_extract_return_value,
354 i386_store_return_value): Add gdbarch argument. Use it instead of
355 determining it from REGCACHE. Remove recursive call for
356 structures with a single member.
357 (i386_use_struct_convention): Remove.
358 (i386_reg_struct_return_p): New function.
359 (i386_return_value): New function.
360 (i386_gdbarch_init): Set return_value, don't set
361 extract_return_value, store_return_value and
362 use_struct_convention.
363 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
364
515cc92e
JB
3652003-11-20 Jim Blandy <jimb@redhat.com>
366
367 * osabi.c (_initialize_gdb_osabi): Don't return before registering
368 the 'set osabi' and 'show osabi' commands.
369
3f1d7f16
MK
3702003-11-19 Mark Kettenis <kettenis@gnu.org>
371
372 * frame.c (get_prev_frame): Use result from
373 get_frame_address_in_block instead of get_frame_pc as argument to
374 inside_main_func. Fixes PR backtrace/1435.
375
667e784f
AC
3762003-11-19 Andrew Cagney <cagney@redhat.com>
377
378 * stack.c (return_command): Handle "void", "legacy" and "unknown
379 location" return values separatly.
380 * values.c (using_struct_return): Return 0 for a "void" return
381 type. Mention "register_value_being_returned".
382 (register_value_being_returned): Mention "using_struct_return".
383
4cecd739
DJ
3842003-11-19 Daniel Jacobowitz <drow@mvista.com>
385
386 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
387 (frame_base_offset): Delete.
388 (read_func_scope): Delete call to decode_locdesc.
389 (decode_locdesc): Update comments. Don't set the removed variables.
390 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
391 DW_OP_fbreg support.
392
6b992462
DJ
3932003-11-18 Daniel Jacobowitz <drow@mvista.com>
394
395 * dwarf2read.c (optimized_out, islocal): Remove.
396 (decode_locdesc): Update comments. Don't set optimized_out
397 or islocal.
398
968d1cb4
JJ
3992003-11-17 Jeff Johnston <jjohnstn@redhat.com>
400 David Mosberger <davidm@hpl.hp.com>
401
402 * ia64-tdep.c: Include elf.h.
77f091dd 403 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
968d1cb4
JJ
404 libunwind-ia64.h.
405 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
406 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
407 (ia64_is_fpreg, ia64_access_reg): Ditto.
408 (ia64_access_fpreg, ia64_access_mem): Ditto.
409 (get_kernel_table): Ditto.
410 (ia64_find_unwind_table): Ditto.
411 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
412 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
413 (ia64_libunwind_frame_prev_register): Ditto.
414 (ia64_libunwind_frame_sniffer): Ditto.
415 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
77f091dd
RM
416 sniffer. Register libunwind functions needed by generic
417 libunwind frame code using libunwind_frame_set_descr().
968d1cb4 418
d29caefc
DJ
4192003-11-16 Daniel Jacobowitz <drow@mvista.com>
420
421 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
422 bp_shlib_disabled breakpoint if there is a shared library mapped
423 at its expected address.
424
691c0433
AC
4252003-11-16 Andrew Cagney <cagney@redhat.com>
426
96cb1c2f
AC
427 * configure.tgt: Delete mips*tx39*-elf*.
428 * config/mips/tm-tx39.h: Delete file.
429 * config/mips/tx39.mt: Delete file.
430 * config/mips/tx39.mt: Delete file.
431
691c0433
AC
432 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
433 * remote-mips.c (common_open): Instead of
434 "mips_read_register_type" and "mips_set_processor_type_command"
435 call "deprecated_mips_set_processor_regs_hack".
436 * config/mips/tm-mips.h (mips_read_processor_type): Delete
437 declaration.
438 (mips_set_processor_type_command): Delete declaration.
439 * mips-tdep.c (mips_gdbarch_init): Update comment.
440 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
441 (mips_set_processor_type): Delete function.
442 (NUM_MIPS_PROCESSOR_REGS): Define.
443 (mips_show_processor_type_command): Delete function.
444 (mips_set_processor_type_command): Delete function.
445 (tmp_mips_processor_type): Delete.
446 (mips_processor_type): Delete.
447 (mips_processor_type_table): Delete.
448 (mips_r3051_reg_names): Delete.
449 (mips_r3081_reg_names): Delete.
450 (mips_lsi33k_reg_names): Delete.
451 (mips_processor_reg_names): Delete.
452 (mips_read_processor_type): Delete function.
453 (deprecated_mips_set_processor_regs_hack): New function.
454 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
455 (mips_register_name): Get the processor names from the tdep.
456 (mips_tx39_reg_names): New array.
457 (mips_generic_reg_names): Wire to a standard set of names.
77f091dd 458 (mips_gdbarch_init): Set "mips_processor_reg_names".
691c0433
AC
459 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
460 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
461 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
462
56cea623
AC
4632003-11-16 Andrew Cagney <cagney@redhat.com>
464
465 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
466 (mips_fpa0_regnum, mips_regnum): New function.
467 (mips_gdbarch_init): Fill in the "regnum" fields.
468 * mips-tdep.h (struct mips_regnum): Define.
469 (mips_regnum): Declare.
470 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
471 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
472 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
473 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
474 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
475 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
476 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
477 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
478 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
479 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
480 * remote-mips.c: Include "mips-tdep.h". Update.
481 * mipsnbsd-tdep.c: Update.
482 * mipsv4-nat.c: Update.
483 * mips-tdep.c: Update.
484 * mips-nat.c: Update.
485 * mips-linux-tdep.c: Update.
486 * mips-linux-nat.c: Update.
487 * irix5-nat.c: Update.
488 * dve3900-rom.c: Include "mips-tdep.h". Update.
489 (ignore_packet): Supress GCC warning.
490 * config/mips/nm-riscos.h: Update.
491
719ec221
AC
4922003-11-16 Andrew Cagney <cagney@redhat.com>
493
494 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
495 register_size.
496 (mips_register_raw_size): Delete function.
497 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
498 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
499 Check and set "mips64_transfers_32bit_regs_p".
500 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
501 (mips_register_convertible): Check the architecture's
502 "mips64_transfers_32bit_regs_p".
503 (set_mips64_transfers_32bit_regs): New function.
504 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
505 "set remote-mips64-transfers-32bit-regs" command. Specify
506 set_mips64_transfers_32bit_regs as the set function.
56cea623 507 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 508
20187ed5
MK
5092003-11-16 Mark Kettenis <kettenis@gnu.org>
510
511 * i386-tdep.h (i386_supply_gregset): Provide prototype.
512 * i386-tdep.c (i386_supply_gregset): Make public.
513
6771c427
AC
5142003-11-16 Andrew Cagney <cagney@redhat.com>
515
516 * mips-tdep.c (mips_register_byte): Delete function.
517 (mips_gdbarch_init): Do not set "deprecated_register_byte".
518 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
519 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
520 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
521
c8048956
MK
5222003-11-16 Mark Kettenis <kettenis@gnu.org>
523
524 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
525
cc8a868a
AC
5262003-11-16 Andrew Cagney <cagney@redhat.com>
527
528 * config/mips/linux64.mt: Delete file.
529 * config/mips/tm-linux64.h: Delete file.
530 * config/mips/tm-mips64.h: Delete file.
531 * config/mips/embed64.mt: Delete file.
532 * config/djgpp/fnchange.lst: Update.
533 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
534 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
535 * config/mips/tm-irix6.h: Update copyright. Include
536 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
537 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
538 "OP_LDGPR".
539
5ef80fb0
AC
5402003-11-15 Andrew Cagney <cagney@redhat.com>
541
542 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
543 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
544 n32 registers 64 bit.
545 (mips_register_raw_size, mips_register_byte): For pseudo
546 registers, use the register's pseudo size and not the
547 corresponding raw register's size.
548 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
549 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
550 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
551 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
552
4246e332
AC
5532003-11-15 Andrew Cagney <cagney@redhat.com>
554
8fa9cfa1
AC
555 * mips-tdep.c (struct gdbarch_tdep): Delete member
556 gdb_target_is_mips64.
557 (GDB_TARGET_IS_MIPS64): Delete macro.
558 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
559 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
560 (mips_addr_bits_remove): Simplify.
561
c73e8f27
AC
562 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
563 register_size.
564
4246e332
AC
565 Replace MIPS_REGSIZE with mips_regsize.
566 * mips-tdep.c (mips_regsize): New function.
567 * mips-tdep.h (mips_regsize): Declare.
568 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
569 (SIZEOF_STRUCT_REG): Update.
570 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
571 (mipsnbsd_fill_reg): Update.
572 (mipsnbsd_supply_fpreg): Update.
573 (mipsnbsd_fill_fpreg): Update.
574 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
575 * mips-tdep.c (mips_register_raw_size): Update.
576 (mips_register_type): Update.
577 (SIGFRAME_BASE): Update.
578 (SIGFRAME_PC_OFF): Update.
579 (SIGFRAME_REGSAVE_OFF): Update.
580 (SIGFRAME_FPREGSAVE_OFF): Update.
581 (SIGFRAME_REG_SIZE): Update.
582 (mips32_heuristic_proc_desc): Update.
583 (print_gp_register_row): Update.
584 (mips_dump_tdep): Do not print MIPS_REGSIZE.
585 * irix5-nat.c (supply_gregset): Update.
586 (fetch_core_registers): Update.
587 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
588 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
589 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
590 (MIPS_REGISTER_BYTE): Update.
591 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
592
5e044b1e
AC
5932003-11-15 Andrew Cagney <cagney@redhat.com>
594
595 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
596 USE_REGISTER_NOT_ARG.
597 * stabsread.c (define_symbol): Update.
598
3a16a68c
AC
5992003-11-15 Andrew Cagney <cagney@redhat.com>
600
601 * bcache.h (deprecated_bcache): Declare.
602 (bcache): Make returned buffer constant.
603 * bcache.c (deprecated_bcache): New function.
604 (bcache_data): New function.
605 (bcache): Call bcache data.
606 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
607 (add_psymbol_with_dem_name_to_list): Ditto.
608
bb41a796
MK
6092003-11-15 Mark Kettenis <kettenis@gnu.org>
610
611 * glibc-tdep.h (struct gdbarch): Declare opaque.
612 (glibc_skip_solib_resolver): Adjust prototype.
613 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
614 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
615 (arm_linux_init_abi): Set skip_solib_resolver.
616 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
617 (i386_linux_init_abi): Set skip_solib_resolver.
618 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
619 (arm_linux_skip_solib_resolver): Remove prototype.
620 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
621 (i386_linux_skip_solib_resolver): Remove prototype.
622
4c8c40e6
MK
6232003-11-14 Mark Kettenis <kettenis@gnu.org>
624
625 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
626 function.
627 * gdbarch.c, gdbarch.h: Regenerate.
628 * infrun.c (handle_inferior_event): Call
629 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
630 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
631 definition.
632 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
633 prototype.
634
0e5d83e3
JJ
6352003-11-14 Jeff Johnston <jjohnstn@redhat.com>
636
637 * libunwind-frame.c: New file.
638 * libunwind-frame.h: New file.
639 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
640 * configure.in: Add --with-libunwind option support. Define
77f091dd 641 HAVE_LIBUNWIND if libunwind support selected / defaulted.
0e5d83e3
JJ
642 Also check for libunwind.h and libunwind-ia64.h headers.
643 * configure: Regenerated.
644 * Makefile.in: Add support for libunwind-frame.o.
645 * config.in: Regenerated.
646
287a334e 6472003-11-14 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 648
287a334e
JJ
649 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
650 set up the ia64 linux native target method for getting the kernel
651 unwind table.
652 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
653 * inftarg.c (child_xfer_partial): Enable section of code to
654 handle TARGET_OBJECT_UNWIND_TABLE.
655 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
656
140be7b8
ILT
6572003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
658
659 * config/arm/nbsd.mt (TM_FILE): Define.
660 * config/arm/tm-nbsd.h: New file.
661
0a90bcdd
AC
6622003-11-14 Andrew Cagney <cagney@redhat.com>
663
664 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
665 * ppc-sysv-tdep.c: Include "objfiles.h".
666 (ppc64_sysv_abi_push_dummy_call): Provide the
667 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
668
669 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
670 "name_of_malloc" to ".malloc".
671
087f1027
MK
6722003-11-13 Mark Kettenis <kettenis@gnu.org>
673
674 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
675
3882f37a
DC
6762003-11-13 David Carlton <carlton@kealia.com>
677
678 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
679
a8cf2722
AC
6802003-11-13 Andrew Cagney <cagney@redhat.com>
681
682 * arch-utils.h (selected_architecture_name): Declare.
683 (selected_byte_order): Declare.
684 * arch-utils.c (selected_byte_order): New function.
685 (selected_architecture_name): New function.
686 (target_architecture_auto): Make static.
687 (set_architecture_string): Make static.
688 (target_byte_order): Make static.
689 (target_byte_order_auto): Make static.
690 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
691 non-multi-arch definition.
692 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
693 (target_byte_order, target_architecture): Delete declaration.
694 (target_byte_order_auto, target_architecture_auto): Ditto.
695 * gdbarch.h: Re-generate.
696 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
697 "selected_byte_order".
77f091dd 698
475b6ddd
AC
6992003-11-13 Andrew Cagney <cagney@redhat.com>
700
701 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
702
a22286a9
JB
7032003-11-13 Jim Blandy <jimb@redhat.com>
704
705 * cp-namespace.c: Doc fix.
706
7bb11558
MS
7072003-11-12 Michael Snyder <msnyder@redhat.com>
708
39add00a
MS
709 * sh64_tdep.c: Regularize some names.
710 (sh_sh64_register_name): Rename to sh64_register_name.
711 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
712 (sh_sh64_register_byte): Rename to sh64_register_byte.
77f091dd 713 (sh_sh64_build_float_register_type):
39add00a 714 Rename to sh64_build_float_register_type.
77f091dd 715 (sh_sh64_register_convert_to_virtual):
39add00a 716 Rename to sh64_register_convert_to_virtual.
77f091dd 717 (sh_sh64_register_convert_to_raw):
39add00a
MS
718 Rename to sh64_register_convert_to_raw.
719
77f091dd
RM
720 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
721 sh64_media_reg_base_num, sh64_compact_reg_base_num,
2a314ed5 722 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd
RM
723 sh64_extract_return_value, sh64_show_media_regs,
724 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
2a314ed5 725 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
77f091dd 726 sh64_pseudo_register_read, sh64_pseudo_register_write,
2a314ed5
MS
727 sh64_do_pseudo_register, sh_compact_print_registers_info):
728 Delete unused variable 'tdep'.
729
7bb11558
MS
730 * sh64-tdep.c: Coding standard and spelling comment fixes.
731 (sh64_extract_return_value): Replace deprecated_store_floating
732 with store_typed_floating.
77f091dd 733 (sh_sh64_register_convert_to_raw): Replace
7bb11558
MS
734 deprecated_store_floating with store_typed_floating.
735 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
736 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
737 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
77f091dd 738 sh64_extract_struct_value_address, sh64_pop_frame,
7bb11558 739 sh64_extract_return_value, sh64_store_return_value,
77f091dd 740 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
7bb11558
MS
741 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
742 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
743 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
744 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
745 deprecated_register_virtual_type, deprecated_register_raw_size,
77f091dd 746 deprecated_max_register_raw_size, or
7bb11558
MS
747 deprecated_max_register_virtual_size. Instead, just set
748 gdbarch_register_type.
39add00a
MS
749 (sh_sh64_register_raw_size): Delete.
750 (sh_sh64_register_virtual_size): Delete.
7bb11558 751
e7c27a73
DJ
7522003-11-12 Daniel Jacobowitz <drow@mvista.com>
753
754 * dwarf2read.c (struct dwarf2_cu): New type.
755
756 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
757 dwarf2_cu structure to pass down.
758
759 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
760 (add_partial_enumeration, locate_pdi_sibling, process_die)
761 (read_file_scope, read_func_scope)
762 (read_lexical_block_scope, dwarf2_get_pc_bounds)
763 (dwarf2_add_field, dwarf2_attach_fields_to_type)
764 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
765 (read_structure_scope, read_enumeration, read_array_type)
766 (read_common_block, read_namespace, read_tag_pointer_type)
767 (read_tag_ptr_to_member_type, read_tag_reference_type)
768 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
769 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
770 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
771 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
772 (read_full_die. read_attribute_value, read_attribute)
773 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
774 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
775 (die_containing_type, type_at_offset, tag_type_to_type)
776 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
777 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
778
1640b821
DJ
7792003-11-12 Daniel Jacobowitz <drow@mvista.com>
780
781 PR breakpoints/1450
782 * breakpoint.c (insert_bp_location): Fix a logic error by returning
783 0 after a catchpoint fails.
784
d7891507
MC
7852003-11-11 Michael Chastain <mec.gnu@mindspring.com>
786
787 * mips-tdep.c (msymbol_size): Delete.
788
f594e5e9
MC
7892003-11-07 Michael Chastain <mec@shout.net>
790
791 * symtab.h (struct minimal_symbol): Add size.
792 * dbxread.c: Use it.
793 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
794 Rename to record_minimal_symbol.
795 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
796 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
797 (install_minimal_symbols): Ditto.
798 * objfiles.c (terminate_minimal_symbol_table): Ditto.
799 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
800 * m68hc11-tdep.c: Ditto.
801 * mips-tdep.c: Ditto.
802 * sh64-tdep.c: Ditto.
803
68e39e73
MC
8042003-11-10 Michael Chastain <mec.gnu@mindspring.com>
805
806 * MAINTAINERS: Change my e-mail address.
807
b60eb90d
AC
8082003-11-10 Andrew Cagney <cagney@redhat.com>
809
963e2bb7
AC
810 * gdbarch.sh (return_value): Replace "inval" and "outval" with
811 "readbuf" and "writebuf".
812 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
813 * d10v-tdep.c (d10v_return_value): Ditto.
814 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
815 (ppc_sysv_abi_broken_return_value): Ditto.
816 (ppc64_sysv_abi_return_value): Ditto.
817 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
818 (ppc_sysv_abi_return_value): Ditto.
819 (ppc_sysv_abi_broken_return_value): Ditto.
820 (ppc64_sysv_abi_return_value): Ditto.
821 * values.c (register_value_being_returned): Update call.
822 * stack.c (return_command): Update call.
823 * gdbarch.h, gdbarch.c: Re-generate.
824
8aa91c1e
AC
825 * target.h (struct target_ops): Order xfer buffer parameters "read
826 write" not "write read".
827 * bfd-target.c (target_bfd_xfer_partial): Update.
828 * remote.c (remote_xfer_partial): Update.
829 * inftarg.c (child_xfer_partial): Update.
830 * target.c (default_xfer_partial): Update.
831 (target_read_partial, target_write_partial): Update.
832 (debug_to_xfer_partial): Update.
833
100bcc3f
AC
834 * arch-utils.h, arch-utils.c: Fix typo in comment.
835
b60eb90d
AC
836 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
837 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
838 (set_gdbarch_from_file): Call
839 "deprecated_current_gdbarch_select_hack".
b60eb90d 840
bf922ad9
AC
8412003-11-09 Andrew Cagney <cagney@redhat.com>
842
ebdba546
AC
843 * arch-utils.c (gdbarch_update_p): New function.
844 * gdbarch.sh (gdbarch_update_p): Delete function.
845 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 846 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
847 * gdbarch.c: Re-generate.
848
7de2341d
AC
849 * gdbarch.sh (clear_gdbarch_swap): Delete function.
850 (swapout_gdbarch_swap): Delete function.
851 (swapin_gdbarch_swap): Delete function.
852 (init_gdbarch_swap): Delete function.
853 (initialize_non_multiarch): Delete function.
854 (current_gdbarch_swap_in_hack): New function.
855 (current_gdbarch_swap_out_hack): New function.
856 (current_gdbarch_swap_init_hack): New function.
857 * gdbarch.c: Re-generate.
858
db446970
AC
859 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
860 parameter to "current_gdbarch". Add comment explaining why.
861 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
862 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
863 * gdbarch.c: Re-generate.
77f091dd 864
341e3d11
AC
865 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
866 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
867 * config/s390/xm-linux.h: Delete file.
868 * config/m88k/xm-delta88v4.h: Delete stray.
869
bf922ad9
AC
870 * Makefile.in (arch-utils.o): Update dependencies.
871 * arch-utils.c: Include "osabi.h".
872 (gdbarch_info_fill): New function.
873 * arch-utils.h (gdbarch_info_fill): Declare.
874 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
875 * gdbarch.c: Re-generate.
876
a3640c75
MK
8772003-11-09 Mark Kettenis <kettenis@gnu.org>
878 David S. Miller <davem@redhat.com>
879
880 * glibc-tdep.c, glibc-tdep.h: New files.
881 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
882 * config/i386/linux.mt (TDEPFILES): Likewise.
883 * i386-linux-tdep.c (glibc-tdep.h): Include.
884 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
885 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
886 * arm-linux-tdep.c (glibc-tdep.h): Include.
887 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
888 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
889 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
890 (glibc_tdep_h): Define.
891 (glibc-tdep.o): Add dependencies.
892 (arm-linux-tdep.o): Update dependencies.
893 (i386-linux-tdep.o): Likewise.
894
e60e0ab2
AC
8952003-11-09 Andrew Cagney <cagney@redhat.com>
896
897 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
898 * config/mips/nm-irix6.h: Delete file.
899 * config/mips/nm-linux.h: Update copyright.
900 (MIPS_GNULINUX_TARGET): Delete macro.
901 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
902 * config/mips/xm-irix6.h: Delete file.
903 * config/mips/linux.mh (XM_FILE): Delete definition.
904 * config/mips/xm-linux.h: Delete file.
905
181555e9
AC
9062003-11-09 Andrew Cagney <cagney@redhat.com>
907
908 * d10v-tdep.c (d10v_return_value): New function.
909 (d10v_use_struct_convention): Delete function.
910 (d10v_store_return_value): Delete function.
911 (d10v_extract_struct_value_address): Delete function.
912 (d10v_gdbarch_init): Set "return_value" instead of
913 "extract_return_value", "store_return_value",
914 "extract_struct_value_address", and "use_struct_convention".
915 (RET1_REGNUM): Delete const.
916
dea0c52f
MK
9172003-11-09 Mark Kettenis <kettenis@gnu.org>
918
919 From David S. Miller <davem@redhat.com>:
920 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
921 * gdbarch.c, gdbarch.h: Regenerated.
922 * arch-utils.c (generic_skip_solib_resolver): New function.
923 * arch-utils.h (generic_skip_solib_resolver): New prototype.
924 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
925
6314a349
AC
9262003-11-07 Andrew Cagney <cagney@redhat.com>
927
928 * top.c (print_gdb_version): Replace STREQ with strcmp.
929 * valops.c (value_struct_elt_for_reference): Ditto.
930 (value_struct_elt_for_reference): Ditto.
931 * symtab.c (gdb_mangle_name): Ditto.
932 (find_line_symtab): Ditto.
933 * symmisc.c (maintenance_print_symbols): Ditto.
934 * symfile.c (symbol_file_command): Ditto.
935 * stabsread.c (define_symbol, read_type): Ditto.
936 (cleanup_undefined_types, scan_file_globals): Ditto.
937 * solib.c (solib_map_sections): Ditto.
938 * solib-svr4.c (bfd_lookup_symbol): Ditto.
939 * rs6000-tdep.c (skip_prologue): Ditto.
940 * p-valprint.c (pascal_value_print): Ditto.
941 (pascal_object_is_vtbl_ptr_type): Ditto.
942 * objfiles.c (in_plt_section): Ditto.
943 * minsyms.c (lookup_minimal_symbol): Ditto.
944 (compact_minimal_symbols): Ditto.
945 (find_solib_trampoline_target): Ditto.
946 * mdebugread.c (parse_type): Ditto.
947 * language.c (set_language_command): Ditto.
948 (set_type_command, set_range_command): Ditto.
949 * f-lang.c (add_common_block): Ditto.
950 (add_common_block): Ditto.
951 (find_first_common_named): Ditto.
952 (patch_all_commons_by_name): Ditto.
953 * elfread.c (elf_locate_sections): Ditto.
954 (elf_locate_sections): Ditto.
955 (elfstab_offset_sections): Ditto.
956 * dwarf2read.c (dwarf2_locate_sections): Ditto.
957 * dbxread.c (add_old_header_file): Ditto.
958 (find_corresponding_bincl_psymtab): Ditto.
959 (read_dbx_symtab, process_one_symbol): Ditto.
960 * coffread.c (patch_opaque_types): Ditto.
961 * cli/cli-decode.c (delete_cmd): Ditto.
962 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
963 * c-typeprint.c (c_type_print_base): Ditto.
964 * breakpoint.c (bpstat_stop_status): Ditto.
965 (clear_command, breakpoint_re_set_one): Ditto.
966
49df298f
AC
9672003-11-07 Andrew Cagney <cagney@redhat.com>
968
969 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
970 * bcache.c (struct bstring): Make "length" an unsigned short, add
971 "half_hash".
972 (struct bcache): Add "half_hash_error_count".
973 (bcache): Compute and save the "half_hash". Compare the
974 "half_hash" before comparing the length. Update
975 half_hash_error_count.
976
f168dd80
AC
9772003-11-07 Andrew Cagney <cagney@redhat.com>
978
979 * inftarg.c (child_xfer_partial): New function
980 (init_child_ops): Set "to_xfer_partial".
981
05580c65
AC
9822003-11-07 Andrew Cagney <cagney@redhat.com>
983
984 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
985 set "return_value" instead of "use_struct_convention".
986 (ppc_linux_use_struct_convention): Delete function.
987 (ppc_linux_return_value): New function.
988 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
989 (ppc_sysv_abi_broken_return_value): New function.
990 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
991 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
992 static.
993 (ppc_sysv_abi_extract_return_value): Delete function.
994 (ppc_sysv_abi_broken_extract_return_value): Delete function.
995 (ppc_sysv_abi_store_return_value): Delete function.
996 (ppc_sysv_abi_broken_store_return_value): Delete function.
997 (ppc_sysv_abi_use_struct_convention): Delete function.
998 (ppc64_sysv_abi_use_struct_convention): Delete function.
999 (ppc64_sysv_abi_extract_return_value): Delete function.
1000 (ppc64_sysv_abi_store_return_value): Delete function.
1001 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1002 (ppcnbsd_init_abi): Set "return_value", instead of
1003 "use_struct_convention", "extract_return_value", and
1004 "store_return_value".
1005 (ppcnbsd_use_struct_convention): Delete function.
1006 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1007 (ppc_sysv_abi_return_value): Declare.
1008 (ppc_sysv_abi_broken_return_value): Declare.
1009 (ppc_sysv_abi_use_struct_convention): Delete.
1010 (ppc_sysv_abi_store_return_value): Delete.
1011 (ppc_sysv_abi_extract_return_value): Delete.
1012 (ppc_sysv_abi_broken_store_return_value): Delete.
1013 (ppc_sysv_abi_broken_extract_return_value): Delete.
1014 (ppc64_sysv_abi_use_struct_convention): Delete.
1015 (ppc64_sysv_abi_extract_return_value): Delete.
1016 (ppc64_sysv_abi_store_return_value): Delete.
1017 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1018 set "return_value" instead of "extract_return_value",
1019 "store_return_value", and "use_struct_convention".
1020
1763fba4
MK
10212003-11-07 Mark Kettenis <kettenis@gnu.org>
1022
22c7ba1a
MK
1023 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1024
1763fba4
MK
1025 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1026 fscanf.
1027
fc07cc2d
MK
10282003-11-07 Mark Kettenis <kettenis@gnu.org>
1029
1030 * fbsd-proc.c: Fix formatting.
1031
6a748db6
KB
10322003-11-06 Kevin Buettner <kevinb@redhat.com>
1033
1034 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1035 Define.
1036 (new_variant): Set name for iacc0_regnum.
1037 (frv_register_name): Accommodate pseudo-registers.
1038 (frv_register_type): Add case for iacc0_regnum.
1039 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1040 (frv_gdbarch_init): Set number of pseudo registers. Establish
1041 pseudo-register read/write methods.
1042
bf896cb0
AC
10432003-11-06 Andrew Cagney <cagney@redhat.com>
1044
1045 * valops.c (destructor_name_p): Replace STREQN with strncmp.
1046 * top.c (command_line_input): Ditto.
1047 * objc-exp.y (yylex): Ditto.
1048 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1049 * jv-exp.y (yylex): Ditto.
1050 * f-exp.y (yylex): Ditto.
1051 * event-top.c (command_line_handler): Ditto.
1052 * environ.c (get_in_environ): Ditto.
1053 (set_in_environ): Ditto.
1054 * dwarfread.c (handle_producer): Ditto.
1055 * dbxread.c (process_one_symbol): Ditto.
1056 * c-typeprint.c (c_type_print_base): Ditto.
1057 * c-exp.y (yylex): Ditto.
1058
0b603eba
AC
10592003-11-06 Andrew Cagney <cagney@redhat.com>
1060 Jeff Johnston <jjohnstn@redhat.com>
1061
1062 * target.c (add_target): Only set "to_xfer_partial" when NULL.
1063 (init_dummy_target): Set "to_xfer_partial".
1064
9cedbfec
AC
10652003-11-06 Andrew Cagney <cagney@redhat.com>
1066
1067 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1068 REGISTER_CONVENTION.
1069
26bb91f3
DJ
10702003-11-06 Daniel Jacobowitz <drow@mvista.com>
1071
1072 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1073 static.
1074
0bde7532
DJ
10752003-11-06 Daniel Jacobowitz <drow@mvista.com>
1076
1077 * breakpoint.c (remove_breakpoint): Take an bp_location
1078 instead of a breakpoint argument. Check the bp_location's type.
1079 Fix a reversed condition for hardware breakpoints.
1080
1081 (insert_bp_location): Update call to remove_breakpoint.
1082 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
1083 (remove_hw_watchpoints): Likewise.
1084 (reattach_breakpoints): Likewise.
1085 (detach_breakpoints): Likewise.
1086 (delete_breakpoint): Likewise.
1087
075f6582
DJ
10882003-11-06 Daniel Jacobowitz <drow@mvista.com>
1089
1090 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1091 (beakpoint_init_inferior): Likewise.
1092 (breakpoint_here_p): Likewise. Only check addresses for software
1093 or hardware breakpoints.
1094 (breakpoint_inserted_here_p): Likewise.
1095 (breakpoint_thread_match): Likewise. Correct comment.
1096 (bpstat_have_active_hw_watchpoints): Likewise.
1097 (check_duplicates): Likewise.
1098
879bfdc2
DJ
10992003-11-06 Daniel Jacobowitz <drow@mvista.com>
1100
1101 * breakpoints.c (insert_bp_location): New function, broken out
1102 from insert_breakpoints. Work on an bp_location instead of a
1103 breakpoint.
1104 (insert_breakpoints): Use it.
1105
cf3a9e5b
DJ
11062003-11-06 Daniel Jacobowitz <drow@mvista.com>
1107
1108 * breakpoint.h (struct bp_location): Add section.
1109 (struct breakpoint): Remove section.
1110 * breakpoint.c (insert_breakpoints, remove_breakpoint)
1111 (breakpoint_here_p, breakpoint_inserted_here_p)
1112 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1113 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1114 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1115 section through loc.
1116
ffce0d52
DJ
11172003-11-06 Daniel Jacobowitz <drow@mvista.com>
1118
1119 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1120 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
1121
e049a4b5
DJ
11222003-11-06 Daniel Jacobowitz <drow@mvista.com>
1123
1124 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1125 arguments. Initialize owner and type for the new breakpoint
1126 location item.
1127 (set_raw_breakpoint): Update call to allocate_bp_location.
1128
7cc221ef
DJ
11292003-11-06 Daniel Jacobowitz <drow@mvista.com>
1130
1131 * breakpoint.h (struct bp_location): Add a chain pointer.
1132 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1133 macros.
1134 (bp_location_chain): New variable.
1135 (allocate_bp_location): New function.
1136 (set_raw_breakpoint): Use it.
1137 (delete_breakpoint): Remove ->loc from the bp_location_chain.
1138
5cab636d
DJ
11392003-11-06 Daniel Jacobowitz <drow@mvista.com>
1140
1141 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1142 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 1143 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
1144 * breakpoint.c (condition_command, read_memory_nobpt)
1145 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1146 (reattach_breakpoints, update_breakpoints_after_exec)
1147 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1148 (breakpoint_init_inferior, breakpoint_here_p)
1149 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1150 (breakpoint_thread_match, bpstat_stop_status)
1151 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1152 (describe_other_breakpoints, check_duplicates)
1153 (make_breakpoint_permanent, create_thread_event_breakpoint)
1154 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1155 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1156 (watch_command_1, print_one_exception_catchpoint)
1157 (clear_command, breakpoint_re_set_one): Adjust member accesses to
1158 use the breakpoint's ->loc.
1159 (set_raw_breakpoint): Likewise. Initialize ->loc.
1160 (delete_breakpoint): Likewise. Free ->loc.
1161
7be0c536
AC
11622003-11-05 Andrew Cagney <cagney@redhat.com>
1163
4c7d882e
AC
1164 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1165 macro.
1166 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1167 * config/i386/tm-cygwin.h
1168 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1169 * config/powerpc/tm-linux.h
1170 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1171 (at_subroutine_call_instruction_target): Delete declaration.
1172 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1173 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1174 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1175
7be0c536
AC
1176 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1177 "struct bfd_section" and "struct bfd".
1178 * target.h (struct section_table): Ditto.
1179 * rs6000-nat.c (xcoff_relocate_core): Ditto.
1180 * solib-svr4.c (elf_locate_base): Ditto.
1181 * pa64solib.c (dld_cache_t): Ditto.
1182 * objfiles.h (struct obj_section): Ditto.
1183 * objfiles.c (add_to_objfile_sections): Ditto.
1184 * exec.c (bfdsec_to_vmap): Ditto.
1185 (add_to_section_table): Ditto.
1186 (build_section_table): Ditto.
1187 * corelow.c (get_core_register_section): Ditto.
1188 * coffread.c (find_linenos): Ditto.
1189 * elfread.c (elf_interpreter): Delete #if0'd function.
1190
1191 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1192 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1193 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1194 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1195
1196 * arch-utils.h (generic_cannot_extract_struct_value_address):
1197 Delete declaration.
1198 * wince.c (_initialize_wince): Fix multi-line string.
1199 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1200
d8fe84e3
EZ
12012003-11-05 Elena Zannoni <ezannoni@redhat.com>
1202
1203 * top.c (execute_command): Fix broken logic for command execution
1204 while inferior is running in async mode.
1205
cbdfc7c0
MK
12062003-11-06 Mark Kettenis <kettenis@gnu.org>
1207
1208 * dwarf2-frame.c (execute_cfa_program): Mark register as
1209 REG_SAVED_REG for DW_CFA_register opcode.
1210
dac94105
MK
12112003-11-05 Mark Kettenis <kettenis@gnu.org>
1212
1213 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1214 %rsp, %rip and %eflags to match ABI-change.
1215
85bf2b91
JJ
12162003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1217
1218 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
77f091dd
RM
1219 (ia64_gdbarch_init): Don't bother calculating the os.
1220 Instead use the gdbarch_info struct and look at the osabi field.
1221 Also use gdbarch_list_lookup_by_info() to look for a
1222 candidate gdbarch.
85bf2b91 1223
cd31fb03
KB
12242003-11-05 Kevin Buettner <kevinb@redhat.com>
1225
1226 * frv-tdep.c (frv_register_byte): Delete.
1227 (frv_extract_return_value, frv_store_return_value)
1228 (frv_extract_struct_value_address): Don't call frv_register_byte().
1229 Convert to non-deprecated form.
1230 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1231 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1232 set_gdbarch_deprecated_store_return_value(), and
1233 set_gdbarch_deprecated_extract_struct_value_address() into
1234 non-deprecated forms.
1235
0a056982
AC
12362003-11-05 Andrew Cagney <cagney@redhat.com>
1237
1238 * mips-tdep.c (mips_dump_tdep): Do not print
1239 PRINT_EXTRA_FRAME_INFO.
1240 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1241 Rename PRINT_EXTRA_FRAME_INFO.
1242 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1243 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1244 (mips_print_extra_frame_info): Delete declaration.
1245 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1246
29e0a062
EZ
12472003-11-05 Elena Zannoni <ezannoni@redhat.com>
1248
1249 * coffread.c (coff_symtab_read): Remove passing of info parameter
1250 to prim_record_minimal_symbol_and_info.
1251
8af580fc
EZ
12522003-11-05 Elena Zannoni <ezannoni@redhat.com>
1253
1254 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1255 (decode_base_type): Delete ifdeffed out code.
1256
507836c0
AC
12572003-11-04 Andrew Cagney <cagney@redhat.com>
1258
1259 * symtab.c (find_active_alias): Delete function.
1260 (lookup_block_symbol): Delete alias code.
1261 * stabsread.c (resolve_live_range): Delete function.
1262 (add_live_range): Delete function.
1263 (resolve_symbol_reference): Delete function.
1264 (define_symbol): Delete live range and alias code.
1265 (scan_file_globals): Delete alias code.
1266 * symtab.h (SYMBOL_RANGES): Delete macro.
1267 (struct range_list): Delete structure.
1268 (struct symbol): Delete field "ranges".
1269 (SYMBOL_ALIASES): Delete macro.
1270 (struct alias_list): Delete structure.
1271 (struct symbol): Delete field "aliases".
1272
1083b3bc
MS
12732003-11-04 Michael Snyder <msnyder@redhat.com>
1274
77f091dd 1275 * MAINTAINERS: Remove myself as owner of breakpoints and
1083b3bc
MS
1276 of sparc/solaris.
1277
474e5826
CV
12782003-11-03 Corinna Vinschen <vinschen@redhat.com>
1279
1280 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1281 (sh_sh4al_dsp_register_name): Ditto.
1282 (sh4_nofpu_show_regs): Ditto.
1283 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1284 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1285
2160782c
AC
12862003-11-03 Andrew Cagney <cagney@redhat.com>
1287
1288 * bcache.c: Include "gdb_assert.h".
1289 (struct bcache): Add fields "expand_count" and
1290 "expand_hash_count".
1291 (expand_hash_table): Update the expand counts.
1292 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1293 on object sizes and hashes.
1294 * Makefile.in (bcache.o): Update dependencies.
1295
85302095
AC
12962003-11-03 Andrew Cagney <cagney@redhat.com>
1297
1298 * exec.c (xfer_memory): Eliminate xfer_fn.
1299
526eef89
KB
13002003-10-31 Kevin Buettner <kevinb@redhat.com>
1301
1302 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1303 (opcodes/frv-desc.h): Include.
1304 (iacc0h_regnum, iacc0l_regnum): Define.
1305 (last_spr_regnum, frv_num_regs): Update.
1306 (new_variant): Don't supply default names for holes in the SPRs.
1307 Supply names for iacc0h_regnum and iacc0l_regnum.
1308 (frv_register_type): Use symbolic constants first_fpr_regnum and
1309 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1310 builtin_type_int instead of builtin_type_int32.
1311 (frv_register_sim_regno): New function.
1312 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1313 * Makefile.in (gdb_sim_frv_h): Define.
1314 (frv-tdep.o): Update dependencies.
1315
9e815ec2
AC
13162003-10-31 Andrew Cagney <cagney@redhat.com>
1317
1318 * avr-tdep.c (avr_frame_this_id): Do not call
1319 deprecated_inside_entry_file.
1320 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1321 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1322 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1323 * arm-tdep.c (arm_prologue_this_id): Ditto.
1324 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1325
e372db49
JB
13262003-10-31 Jim Blandy <jimb@redhat.com>
1327
1328 * elfread.c (elf_symtab_read): Allocate correct number of tail
1329 elements to sectinfo structure. (Fix from Woody LaRue.)
1330
e8bcf01f
AC
13312003-10-31 Andrew Cagney <cagney@redhat.com>
1332
1333 * stack.c (return_command): Use get_frame_type, instead of
1334 CALL_DUMMY_HAS_COMPLETED.
1335 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1336 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1337
4c05fe53
MK
13382003-10-31 Mark Kettenis <kettenis@gnu.org>
1339
1340 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1341 explicitly specify size of array.
1342 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1343 TDEP->sc_num_regs.
1344
c8b91b89
AC
13452003-10-31 Andrew Cagney <cagney@redhat.com>
1346
1347 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1348 function.
1349 (s390_gdbarch_init): Set extract_struct_value_address.
1350 * arch-utils.c (generic_cannot_extract_struct_value_address):
1351 Delete function.
1352 * arch-utils.h (generic_cannot_extract_struct_value_address):
1353 Delete definition.
1354
fdfb6fc8
MK
13552003-10-31 Mark Kettenis <kettenis@gnu.org>
1356
1357 * i386-linux-nat.c (fetch_core_registers): Remove.
1358 (linux_elf_core_fns): Remove.
1359 (_initialize_i386_linux_nat): Remove.
1360
2f4950cd
AC
13612003-10-31 Andrew Cagney <cagney@redhat.com>
1362
1363 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1364 "exec.h".
1365 (exec_entry_point): New function.
1366 (enable_break): Create a "tmp_bfd_target", use that and
1367 entry_point_address when computing the relocation offset.
1368 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1369 * Makefile.in (solib-svr4.o): Update dependencies.
1370
bba2d28d
AC
13712003-10-31 Andrew Cagney <cagney@redhat.com>
1372
1373 * defs.h (XZALLOC): Define.
1374 * target.h (struct target_ops): Add "to_data";
1375 * bfd-target.h, bfd-target.c: New files.
1376 * Makefile.in (SFILES): Add "bfd-target.c".
1377 (COMMON_OBS): Add "bfd-target.o".
1378 (bfd-target.o): Specify dependencies.
1379 (bfd_target_h): Define.
1380 * defs.h (XZALLOC): Define.
1381
6066c3de
AC
13822003-10-31 Andrew Cagney <cagney@redhat.com>
1383
1384 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1385 adjust_breakpoint_address.
1386 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1387 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1388 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1389 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1390
4b8a223f
AC
13912003-10-31 Andrew Cagney <cagney@redhat.com>
1392
1393 * target.h (struct target_ops): Replace "to_read_partial" and
1394 "to_write_partial" with "to_xfer_partial". Update comments.
1395 * target.c (debug_to_write_partial): Delete function.
1396 (debug_to_xfer_partial): Replace debug_to_read_partial.
1397 (add_target, update_current_target, setup_target_debug): Set
1398 "to_xfer_partial" instead of "to_read_partial" and
1399 "to_write_partial".
1400 (default_xfer_partial): Replace "default_write_partial".
1401 (default_read_partial): Delete.
1402 (target_read_partial, target_write_partial): Call
1403 "to_xfer_partial".
1404 * remote.c (init_remote_ops): Set "to_xfer_partial".
1405 (init_remote_async_ops): Ditto.
1406 (remote_xfer_partial): Replace "remote_read_partial".
1407
66a72d25
MK
14082003-10-31 Mark Kettenis <kettenis@gnu.org>
1409
1410 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1411 registers in `fxsave' format.
1412 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1413
9a12a2a0
MK
14142003-10-30 Mark Kettenis <kettenis@gnu.org>
1415
e9f1aad5
MK
1416 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1417 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1418 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1419
bb489b3c
MK
1420 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1421 specify size of array.
1422 (i386_linux_init_abi): Remove initialization of
1423 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1424 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1425
da285bc4
MK
1426 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1427 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1428 core-regset.o.
1429
9a12a2a0
MK
1430 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1431 the ELF header.
1432
0e24ac5d
MK
14332003-10-29 Mark Kettenis <kettenis@gnu.org>
1434
6d6d8e9c
MK
1435 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1436 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1437 core-regset.o.
1438
25e60c9b
MK
1439 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1440
0e24ac5d
MK
1441 * corelow.c: Include "arch-utils.h", "regset.h" and
1442 "gdb_assert.h".
1443 (core_gdbarch): New variable.
1444 (sniff_core_bfd): Don't sniff if we have support for register sets
1445 in CORE_GDBARCH.
1446 (core_close): Reset CORE_GDBARCH.
1447 (core_open): Initialize CORE_GDBARCH.
1448 (get_core_register_section): Use register sets if they are
1449 supported by CORE_GDBARCH.
1450 (get_core_registers): Don't print error message if we have support
1451 for register sets in CORE_GDBARCH.
1452
0a0a4ac3
AC
14532003-10-29 Andrew Cagney <cagney@redhat.com>
1454
1455 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1456 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1457
7b097ae3
MK
14582003-10-29 Mark Kettenis <kettenis@gnu.org>
1459
1460 * objfiles.h (clear_objfile_data): New prototype.
1461 * objfiles.c (clear_objfile_data): New function.
1462 * symfile.c (reread_symbols): Clear per-objfile data.
1463
46f45a4a 14642003-10-28 Jeff Johnston <jjohnstn@redhat.com>
77f091dd 1465
46f45a4a
JJ
1466 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1467 printf_unfiltered instead of printf_filtered for output messages.
1468 (add_symbol_file_command): Ditto.
1469 (reread_symbols): Ditto.
1470 (overlay_auto_command): Ditto.
1471 (overlay_manual_command): Ditto.
1472 (overlay_off_command): Ditto.
1473
2b026650
MK
14742003-10-27 Mark Kettenis <kettenis@gnu.org>
1475
1476 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1477 (gdbarch_from_bfd): New function.
1478 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1479 deprecated_select_gdbarch_hack.
1480 * arch-utils.h (gdbarch_from_bfd): New prototype.
1481
0bcad584 14822003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1483
1484 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1485 arch_info. Use warning instead of fprintf_filtered. Do not use
1486 deprecated bfd_printable_arch_mach.
1487
7f398216
KB
14882003-10-26 Kevin Buettner <kevinb@redhat.com>
1489
1490 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1491 Delete.
1492 (frv_register_type): Rename from frv_register_virtual_type. Add
1493 ``struct gdbarch *'' parameter.
1494 (frv_gdbarch_init): Delete calls to the following functions:
1495 set_gdbarch_deprecated_size(),
1496 set_gdbarch_deprecated_register_bytes(),
1497 set_gdbarch_deprecated_register_raw_size(),
1498 set_gdbarch_deprecated_max_register_raw_size(),
1499 set_gdbarch_deprecated_register_virtual_size(),
1500 set_gdbarch_deprecated_max_register_virtual_size(),
1501 set_gdbarch_deprecated_register_virtual_size(),
1502 set_gdbarch_deprecated_register_virtual_type().
1503 Add call to function set_gdbarch_register_type().
1504
bcf48cc7
MK
15052003-10-26 Mark Kettenis <kettenis@gnu.org>
1506
6c7de422
MK
1507 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1508 FDOFF_REGNUM): Remove defines.
1509 * win32-nat.c (do_child_fetch_inferior_registers): Include
1510 "i387-tdep.h".
3e685d41 1511 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1512 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1513 undefine I387_ST0_REGNUM.
1514
f783586b
MK
1515 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1516 * x86-64-tdep.c (x86_64_store_return_value): Use
1517 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1518
bcf48cc7
MK
1519 Change register numbers to enumartion values.
1520 * i386-tdep.h (enum i386_regnum): New.
1521 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1522 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1523 I386_ST0_REGNUM): Remove defines.
1524 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1525 I386_EDI_REGNUM): Remove defines.
1526
b6591e8b
AC
15272003-10-24 Andrew Cagney <cagney@redhat.com>
1528
1529 * target.c: Include "gdbcore.h".
1530 (get_target_memory, get_target_memory_unsigned): New functions.
1531 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1532 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1533 Use get_target_memory_unsigned.
1534 * Makefile.in (target.o): Update dependencies.
1535
5f724446
AC
15362003-10-24 Andrew Cagney <cagney@redhat.com>
1537
ce2826aa
AC
1538 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1539 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1540 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1541 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1542 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1543
5f724446
AC
1544 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1545 (can_run_code_for): Use the OO term "singleton".
1546
fc70c2a0
AC
15472003-10-23 Andrew Cagney <cagney@redhat.com>
1548
1549 * Makefile.in (stack.o): Add $(regcache_h).
1550 * stack.c: Include "regcache.h"
1551 (return_command): Rewrite. Use get_frame_id and
1552 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1553 about unhandled return-values.
1554 * value.h (set_return_value): Delete declaration.
1555 * values.c (set_return_value): Delete function.
1556
4afcc598
JJ
15572003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1558
1559 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1560 (pseudo_regs): Add comment regarding register stack registers.
1561 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1562 (floatformat_valid): New static routine.
1563 (floatformat_ia64_ext): Add name field and set up is_valid routine
1564 to floatformat_valid().
1565 (examine_prologue): For the previous cfm, use
1566 frame_unwind_register()
1567 if the cfm is not stored in a register-stack register. Save the
1568 previous cfm value in the prev_cfm field. Add debug output.
1569 (ia64_frame_this_id): Use frame_id_build_special() to also register
1570 the bsp. Add debug output.
1571 (ia64_sigtramp_frame_this_id): Ditto.
1572 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1573 registers and also add some checks for framelessness before accepting
1574 current register values for fields such as return address. For cfm,
1575 use the cached prev_cfm field if available. Add comment to explain
1576 PSR logic. Add debug output.
1577 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1578 as part of initialization.
1579 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1580 calculated. Cache the bsp and cfm values.
1581 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1582 instead of using ia64_frame_prev_register() which doesn't expect most
1583 registers to be saved. The saved values for bsp and sp
1584 can be taken from the cache. Add debug output.
1585 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1586 the bsp.
1587
6cfae0bc
JB
15882003-10-23 Jim Blandy <jimb@redhat.com>
1589
1590 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1591 architecture the current arch can run code for --- but not if it's
1592 a superset.
1593 (can_run_code_for): New function.
1594
fcd182f9
JW
15952003-10-22 James E Wilson <wilson@specifixinc.com>
1596
1597 * MAINTAINERS: Move myself from paper trail section back to write
1598 after approval section.
1599
4646aa9d
AC
16002003-10-22 Andrew Cagney <cagney@redhat.com>
1601
1602 * exec.h: New file.
1603 * win32-nat.c: Include "exec.h".
1604 * solib.c: Include "exec.h".
1605 * target.h (build_section_table): Delete declaration.
1606 * somsolib.c: Include "exec.h".
1607 (exec_ops): Delete extern declaration.
1608 * rs6000-nat.c: Update copyright. Include "exec.h".
1609 (exec_ops): Delete extern declaration.
1610 * pa64solib.c: Update copyright. Include "exec.h".
1611 (exec_ops): Delete extern declaration.
1612 * exec.c: Update copyright. Include "exec.h".
1613 * corelow.c: Update dependencies. Include "exec.h".
1614 * Makefile.in (exec_h): Define.
1615 (exec.o, somsolib.o): Update dependencies.
1616 (pa64solib.o, corelow.o): Update dependencies.
1617
0088c768
AC
16182003-10-22 Andrew Cagney <cagney@redhat.com>
1619
1620 * target.c: Include "gdb_assert.h" (target_read): Call
1621 "target_read_partial", not "target_write_partial".
1622 (default_read_partial, default_write_partial): New function.
1623 (target_read_partial, target_write_partial): Simplify, assume that
1624 there is always a read/write method.
1625 (update_current_target, add_target): Always set "to_read_partial"
1626 and "to_write_partial".
1627 (target_write, target_read): Fail on a zero byte transfer.
1628 * Makefile.in (target.o): Update dependencies.
1629 * target.h: Update copyright date.
1630 (target_object): Fix typo.
1631
e2d0e7eb
AC
16322003-10-22 Andrew Cagney <cagney@redhat.com>
1633
1634 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1635 multi-arch method, add "targ" parameter.
77f091dd 1636 (struct target_ops): Declare.
e2d0e7eb
AC
1637 * gdbarch.h, gdbarch.c: Re-generate.
1638 * Makefile.in (c-valprint.o): Update dependencies.
1639 * arch-utils.h: Update copyright.
1640 (convert_from_func_ptr_addr_identity): Declare.
1641 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1642 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1643 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1644 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1645 * infcall.c (find_function_addr, call_function_by_hand): Update.
1646 * c-valprint.c: Include "target.h".
1647 (print_function_pointer_address): Update.
1648
f1c07ab0
AC
16492003-10-22 Andrew Cagney <cagney@redhat.com>
1650
1651 * target.c (target_close): New function.
1652 (debug_to_close): Use "target_close".
1653 (push_target): Use "target_close".
1654 (unpush_target): Use "target_close".
1655 (pop_target): Use "target_close".
1656 * target.h (struct target_ops): Add "to_xclose".
1657 (target_open): Delete macro. Move comment to "to_open".
1658 (target_close): Replace macro with function that takes a target.
1659 * top.c (quit_target): Pass "current_target" to "target_close".
1660
5520a790
EZ
16612003-10-21 Elena Zannoni <ezannoni@redhat.com>
1662
1663 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1664 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1665 * symtab.h (lookup_minimal_symbol_text): Update.
1666 * breakpoint.c (create_overlay_event_breakpoint,
1667 create_longjmp_breakpoint): Update callers.
1668 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1669 * symtab.c (find_pc_sect_line): Ditto.
1670
caa92b73
AC
16712003-10-21 Andrew Cagney <cagney@redhat.com>
1672
1673 * target.c (errno): Delete extern declaration.
1674
aa2a9a3c
JJ
16752003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1676
1677 * ia64-tdep.c: Change all occurrences of
1678 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1679 (ia64_frame_prev_register): Minor whitespace change.
1680
4beec2b7
MC
16812003-10-20 Michael Chastain <mec@shout.net>
1682
1683 * config/djgpp/fnchange.lst: Add lines for:
1684 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1685 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1686 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1687 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1688 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1689 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1690 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1691
92ad9cd9
AC
16922003-10-20 Andrew Cagney <cagney@redhat.com>
1693
1694 * values.c (register_value_being_returned): Update comments. Use
1695 "gdbarch_return_value" when available.
1696 (using_struct_return): Ditto.
1697 (set_return_value): Ditto. Use "gdbarch_return_value" when
1698 available.. Print a warning, and not an error, when an unhandled
1699 return type is encountered.
1700 * infcmd.c: Include "gdb_assert.h".
1701 (print_return_value): When gdbarch_return_value_p, and using
1702 struct return, assume that the value is not available.
1703 * defs.h (return_value_convention): Define.
1704 * gdbarch.sh (gdbarch_return_value): New predicate method.
1705 * gdbarch.h, gdbarch.c: Re-generate
1706 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1707
198beae2
AC
17082003-10-20 Andrew Cagney <cagney@redhat.com>
1709
1710 * symtab.c: Replace "struct sec" with "struct bfd_section".
1711 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1712
24d693a6 17132003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1714
1715 * config/djgpp/fnchange.lst: Add lines for:
1716 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1717 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1718 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1719
21ad8dc3
MK
17202003-10-19 Mark Kettenis <kettenis@gnu.org>
1721
1722 * amd64fbsd-nat.c (fetch_inferior_registers,
1723 store_inferior_registers): Remove functions.
1724 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1725
cced5e27
MK
17262003-10-18 Mark Kettenis <kettenis@gnu.org>
1727
1728 Add NetBSD/amd64 native configuration:
1729 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1730 * amd64nbsd-tdep.c: New file.
1731 * amd64nbsd-nat.c: New file.
1732 * amd64bsd-nat.c: New file.
1733 * config/i386/nbsd64.mh: New file.
1734 * config/i386/nbsd64.mt: New file.
1735 * configure.host: Add x86_64-*-netbsd*.
1736 * configure.tgt: Add x86_64-*-netbsd*.
1737 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1738 New targets.
1739 * NEWS (New native configurations): Mention NetBSD/amd64.
1740
666de3fd
MC
17412003-10-17 Michael Chastain <mec@shout.net>
1742
1743 * config/djgpp/fnchange.lst: Remove dead lines for:
1744 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1745 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1746 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1747 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1748 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1749 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1750 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1751 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1752 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1753 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1754 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1755 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1756 gdb/config/sparc/tm-sparclite.h,
1757 gdb/gdbtk/generic/ChangeLog-2001,
1758 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1759 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1760 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1761 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1762 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1763 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1764 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1765 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1766 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1767 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1768 itcl/iwidgets3.0.0/demos/fileselectionbox,
1769 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1770 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1771 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1772 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1773 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1774 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1775 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1776 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1777 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1778 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1779 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1780 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1781 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1782 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1783 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1784 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1785 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1786 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1787 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1788 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1789 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1790 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1791 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1792 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1793 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1794 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1795 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1796 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1797 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1798 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1799 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1800 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1801 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1802 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1803 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1804 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1805 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1806 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1807 itcl/iwidgets3.0.0/demos/scrolledframe,
1808 itcl/iwidgets3.0.0/demos/scrolledhtml,
1809 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1810 itcl/iwidgets3.0.0/demos/scrolledtext,
1811 itcl/iwidgets3.0.0/demos/selectionbox,
1812 itcl/iwidgets3.0.0/demos/selectiondialog,
1813 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1814 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1815 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1816 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1817 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1818 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1819 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1820 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1821 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1822 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1823 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1824 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1825 itcl/iwidgets3.0.0/doc/selectionbox.n,
1826 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1827 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1828 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1829 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1830 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1831 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1832 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1833 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1834 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1835 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1836 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1837 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1838 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1839 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1840 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1841 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1842 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1843 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1844 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1845 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1846 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1847 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1848 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1849 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1850 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1851 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1852 itcl/iwidgets3.0.0/tests/selectionbox.test,
1853 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1854 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1855 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1856 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1857 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1858 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1859 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1860 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1861 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1862 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1863 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1864 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1865 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1866 tk/mac/tkMacProjects.sit.hqx.
1867
1e3ff5ad
AC
18682003-10-17 Andrew Cagney <cagney@redhat.com>
1869
8db32d44
AC
1870 * target.c (target_section_by_addr): New function.
1871 (do_xfer_memory): Use "target_section_by_addr".
1872 * target.h (target_section_by_addr): Declare.
1873
1e3ff5ad
AC
1874 * target.h (struct target_ops): Add "to_read_partial" and
1875 "to_write_partial", delete "to_query".
1876 (target_read_partial, target_write_partial): Declare.
1877 (target_read, target_write): Declare.
1878 (target_query): Delete macro.
1879 * target.c (target_read_partial): New function.
1880 (target_write_partial, target_read, target_write): New function.
1881 (update_current_target): Delete inheritance of "to_query". Add
1882 comments about "to_read_partial" and "to_write_partial".
1883 (debug_to_partial_read, debug_to_partial_write): New functions.
1884 (debug_to_query): Delete function.
1885 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1886 instead of "to_query".
1887 * remote.c (remote_read_partial): Replace "remote_query".
1888 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1889 (init_remote_async_ops): Ditto.
1890 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1891 "target_read_partial" instead of "target_query".
1892 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1893 Use "target_read_partial" instead of "target_query".
1894
48c66725
JJ
18952003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1896
1897 * frame.h (struct frame_id): Add new field: special_addr.
1898 (frame_id_build_special): New prototype.
1899 * frame.c (frame_id_build_special): New function.
1900 (frame_id_build): Change to call frame_id_build_special().
77f091dd
RM
1901 (frame_id_eq): Change to also test special_addr field.
1902 (frame_id_inner): Update comment.
48c66725 1903
7998dfc3
AC
19042003-10-17 Andrew Cagney <cagney@redhat.com>
1905
1906 * target.c (update_current_target): Perform the target cleanup.
1907 Put the target stack beneath the squashed "current_target".
1908 (add_target): Delete disabled call to "cleanup_target".
1909 (cleanup_target): Delete function.
1910 (push_target, unpush_target): Do not call "cleanup_target".
1911
9c04404e 19122003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1913
1914 * target.c (target_stack): Change to a static target_ops.
1915 (update_current_target): Walk the "struct target_ops" stack.
1916 (pop_target, do_xfer_memory, target_info): Ditto.
1917 (find_target_beneath): Ditto.
1918 (push_target): Rewrite to use the "struct target_ops" stack.
1919 (unpush_target): Ditto.
1920 * target.h (struct target_stack_item): Delete definition.
1921 (target_stack): Delete declaration.
1922 (struct target_ops): Add field "beneath".
1923
c98a2b49 19242003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1925
1926 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1927 declaration.
1928 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1929 (h8300_examine_prologue): Use h8300_normal_mode flag
1930 (h8300_gdbarch_init): Set architecture info for normal mode
1931
506fb367
DJ
19322003-10-16 Daniel Jacobowitz <drow@mvista.com>
1933
1934 * remote.c (remote_protocol_vcont): New variable.
1935 (set_remote_protocol_vcont_packet_cmd): New function.
1936 (show_remote_protocol_vcont_packet_cmd): New function.
1937 (init_all_packet_configs): Handle remote_protocol_vcont.
1938 (remote_vcont_probe): New function.
1939 (remote_vcont_resume): New function.
1940 (remote_resume): Use it.
1941 (remote_async_resume): Call remote_resume.
1942 (_initialize_remote): Add verbose-resume packet commands.
1943
65815ea1
AC
19442003-10-16 Andrew Cagney <cagney@redhat.com>
1945
1946 * infrun.c (handle_inferior_event): Add comment about
1947 "frame_id_inner" being too weak.
1948
40324f1b
EZ
19492003-10-16 Elena Zannoni <ezannoni@redhat.com>
1950
1951 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1952 second parameter, which is always null. Remove
1953 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1954 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1955 accordingly.
1956 * somsolib.c (som_solib_create_inferior_hook,
1957 som_solib_desire_dynamic_linker_symbols): Update callers.
1958 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1959
19602003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1961
1962 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1963 debug interface, SDI (Scalable Debug Interface).
1964 * NEWS: Mention m32r SDI protocol was supported.
1965 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1966 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1967
51931cbb
JJ
19682003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1969
1970 * ia64-linux-tdep.c: Include gdbcore.h.
1971 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1972 (ia64_linux_sigcontext_register_addr): Find the address of the
1973 sigcontext area stored in the sigframe instead of using
77f091dd 1974 a magic offset constant.
51931cbb 1975
84e7fd53
AC
19762003-10-15 Andrew Cagney <cagney@redhat.com>
1977
1978 * remote.c (remote_search): Delete function.
1979 * target.h (target_search): Delete disabled macro.
1980 (struct target_ops): Delete disabled field "to_search".
1981
0f4d7c52
KB
19822003-10-14 Kevin Buettner <kevinb@redhat.com>
1983
1984 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1985 instead of deprecated_inside_entry_file().
1986
2e952408
CV
19872003-10-14 Corinna Vinschen <vinschen@redhat.com>
1988
1989 * sh-tdep.c: Fix copy/paste hangover in comment.
1990 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1991 mode.
1992 (sh3e_sh4_extract_return_value): Ditto.
1993
7e86466e
RH
19942003-10-13 Richard Henderson <rth@redhat.com>
1995
1996 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1997 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1998 match c_val_print a bit closer.
1999
46a16dba
KB
20002003-10-13 Kevin Buettner <kevinb@redhat.com>
2001
2002 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2003 (frv_gdbarch_adjust_breakpoint_address): New function.
2004 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2005 method.
2006
76897487
KB
20072003-10-13 Kevin Buettner <kevinb@redhat.com>
2008
2009 * breakpoint.h (struct breakpoint): Add new member
2010 ``requested_address''.
2011 * breakpoint.c (breakpoint_adjustment_warning)
2012 (adjust_breakpoint_address): New static functions.
2013 (print_it_typical): Issue warning if breakpoint's address is different
2014 from its requested address.
2015 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2016 (breakpoint_re_set_one): Set breakpoint's
2017 ``requested_address'' field. Set ``address'' field to the
2018 result of calling adjust_breakpoint_address() on the requested
2019 address.
2020
a1131521
KB
20212003-10-13 Kevin Buettner <kevinb@redhat.com>
2022
2023 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2024 * gdbarch.h, gdbarch.c: Regenerate.
2025
6ce6d90f
MK
20262003-10-11 Mark Kettenis <kettenis@gnu.org>
2027
155c1d33
MK
2028 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2029 TDEP->sc_num_regs.
2030
8a96bc77
MK
2031 * i386fbsd-tdep.c: New file.
2032 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2033 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2034 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2035 i386bsd-tdep.c.
2036 (_initialize_i386fbsd_tdep): New function.
2037 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2038 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2039 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2040 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
2041 TDEP->sc_num_regs.
2042 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2043 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2044 to initialize TDEP->sc_num_regs.
2045 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2046 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2047 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2048 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2049 FreeBSD ELF OS/ABI's here.
2050 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2051 (i386fbsd-tdep.o): New target.
2052 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2053 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
2054
477f40d1
MK
2055 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2056 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2057 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
2058 in initialization of TDEP->sc_num_regs.
2059
c6b33596
MK
2060 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2061 (x86_64_init_abi): Initialize regset_from_core_section if
2062 appropriate.
2063
8446b36a
MK
2064 * i386-tdep.c (i386_regset_from_core_section): New function.
2065 (i386_gdbarch_init): Initialize regset_from_core_section if
2066 appropriate.
2067 * i386-tdep.h (i386_regset_from_core_section): New declaration.
2068
c783cbd6
MK
2069 * i386-tdep.h (struct regset): Declare opaque.
2070
6ce6d90f
MK
2071 * gdbarch.sh (regset_from_core_section): New method.
2072 (struct regset): Declare opaque.
2073 * gdbarch.c, gdbarch.h: Regenerated.
2074
b98ed7be
AM
20752003-10-11 Alan Modra <amodra@bigpond.net.au>
2076
2077 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2078 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2079 Correct test for pc within section.
2080
f6214256
MK
20812003-10-11 Mark Kettenis <kettenis@gnu.org>
2082
2083 * gdbarch.sh: Remove trailing whitepsace from comments.
2084
a8f4cde1
RM
20852003-10-08 Roland McGrath <roland@redhat.com>
2086
2087 * gcore.c (make_mem_sec): Function removed, folded into ...
2088 (gcore_create_callback): ... here. To omit a section, clear its
2089 SEC_LOAD bit rather than zeroing its size.
2090 Omit read-only sections only if they correspond to a known disk file.
2091 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2092
74276724
MS
20932003-10-10 Michael Snyder <msnyder@redhat.com>
2094
2095 * d10v-tdep.c: Fix typo in comment.
2096
e754ae69
AC
20972003-10-10 Andrew Cagney <cagney@redhat.com>
2098
2099 * rs6000-tdep.c (e500_store_return_value): Delete function.
2100 (e500_extract_return_value): Delete function.
2101 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2102 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2103 "ppc_sysv_abi_restore_return_value" where applicable.
2104 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2105 (ppc_sysv_abi_extract_return_value): Declare.
2106 (ppc_sysv_abi_broken_store_return_value): Declare.
2107 (ppc_sysv_abi_broken_extract_return_value): Declare.
2108 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2109 * ppc-sysv-tdep.c (return_value_convention): Move definition to
2110 start of file.
2111 (do_ppc_sysv_return_value): New function.
2112 (ppc_sysv_abi_extract_return_value): New function.
2113 (ppc_sysv_abi_store_return_value): New function.
2114 (ppc_sysv_abi_broken_extract_return_value): New function.
2115 (ppc_sysv_abi_broken_store_return_value): New function.
2116 (ppc_sysv_abi_use_struct_convention): Call
2117 do_ppc_sysv_return_value.
2118
8d4ce20a
JB
21192003-10-10 J. Brobecker <brobecker@gnat.com>
2120
2121 * blockframe.c (inside_main_func): No longer use symbol_lookup()
2122 to lookup the main function symbol.
2123
afce3d2a
CV
21242003-10-10 Corinna Vinschen <vinschen@redhat.com>
2125
2126 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2127 types correctly.
2128 (sh_push_dummy_call_fpu): Fix argument passing rules.
2129 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2130 float types.
2131 (sh3e_sh4_store_return_value): Ditto.
2132
7fe958be
EZ
21332003-10-10 Elena Zannoni <ezannoni@redhat.com>
2134
2135 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2136 comment.
2137
3f997a97
CV
21382003-10-10 Corinna Vinschen <vinschen@redhat.com>
2139
2140 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2141 more readable code. Accomodate passing of bitfields.
2142
8be9034a
AC
21432003-10-10 Andrew Cagney <cagney@redhat.com>
2144
2145 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2146 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2147 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2148 * ppc-sysv-tdep.c: Include "gdb_assert.h".
2149 (ppc64_sysv_abi_push_dummy_call): New function.
2150 (ppc64_sysv_abi_broken_push_dummy_call): New function.
2151 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2152 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2153
85a453d5
KI
21542003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
2155
2156 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2157 * README: Ditto.
2158 * d10v-tdep.c: Ditto.
2159 * h8300-tdep.c: Ditto.
2160 * remote-e7000.c: Ditto.
2161 * remote-hms.c: Ditto.
2162 * ser-e7kpc.c: Ditto.
2163 * sh-stub.c: Ditto.
2164 * sh-tdep.c: Ditto.
2165 * sh-tdep.h: Ditto.
2166 * sh3-rom.c: Ditto.
2167 * sh64-tdep.c: Ditto.
2168 * top.c: Ditto.
2169 * wince.c: Ditto.
2170 * config/d10v/d10v.mt: Ditto.
2171 * config/sh/embed.mt: Ditto.
2172 * config/sh/linux.mt: Ditto.
2173 * config/sh/tm-linux.h: Ditto.
2174 * config/sh/tm-sh.h: Ditto.
2175 * config/sh/wince.mt: Ditto.
2176
221c12ff
AC
21772003-10-09 Andrew Cagney <cagney@redhat.com>
2178
2179 * ppc-tdep.h (struct type): Declare opaque.
2180 * x86-64-tdep.h (struct regcache): Declare opaque.
2181 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2182 coding style.
2183
ef5200c1
AC
21842003-10-09 Andrew Cagney <cagney@redhat.com>
2185
2186 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2187 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2188 (SOFTWARE_SINGLE_STEP_P): Ditto.
2189 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2190 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2191 (SOFTWARE_SINGLE_STEP_P): Ditto.
2192 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2193 software_single_step to rs6000_software_single_step.
a8f4cde1 2194
9644bbdd
AC
21952003-10-09 Andrew Cagney <cagney@redhat.com>
2196
2197 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2198
db72fa6b
MS
21992003-10-09 Michael Snyder <msnyder@redhat.com>
2200
f3efb16c
MS
2201 * frame.h: Fix typo in comment.
2202 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
2203 * d10v-tdep.c: Random whitespace/comment tweaks.
2204
9a5cef92
EZ
22052003-10-09 Elena Zannoni <ezannoni@redhat.com>
2206
2207 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 2208 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 2209 on stack.
a8f4cde1 2210
9a5cef92
EZ
2211 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2212 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2213 in detail.
a8f4cde1 2214
0f317a0c
DJ
22152003-10-09 Daniel Jacobowitz <drow@mvista.com>
2216
2217 * remote-mips.c (mips_initialize): Remove unneeded call to
2218 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2219
bbab2f46
DJ
22202003-10-09 Daniel Jacobowitz <drow@mvista.com>
2221
2222 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2223 a memory pointer.
2224
550950b8
JJ
22252003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2226
2227 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2228 for any lwp we resume.
2229 (running_callback): Add lwps that have pending status events
2230 against them to be considered running.
2231
15c69bc7
KI
22322003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2233
2234 * m32r-tdep.c : Include "dis-asm.h".
2235 * Makefile.in (m32r-tdep.o): Update dependencies.
2236
51065942
JB
22372003-10-06 J. Brobecker <brobecker@gnat.com>
2238
2239 * completer.h (get_gdb_completer_word_break_characters): Delete.
2240 * completer.c: include language.h.
2241 (gdb_completer_word_break_characters): Delete.
2242 (get_gdb_completer_word_break_characters): Delete.
2243 (location_completer): Use the word break characters of the current
2244 language.
2245 (complete_line): Likewise.
2246 (line_completion_function): Likewise.
2247 (skip_quoted_chars): Likewise.
2248 * Makefile.in (completer.o): Add dependency on language.h.
2249 * top.c (init_main): Set the readline word break characters
2250 to GDB's default word break characters.
2251
6084f43a
JB
22522003-10-06 J. Brobecker <brobecker@gnat.com>
2253
2254 * language.h (language_defn): new field, la_word_break_characters.
2255 * language.c (unknown_language_defn): Set new field to
2256 default_word_break_characters.
2257 (auto_language_defn): Likewise.
2258 (local_language_defn): Likewise.
2259 * ada-lang.c (ada_language_defn): Likewise.
2260 * c-lang.c (c_language_defn): Likewise.
2261 (cplus_language_defn): Likewise.
2262 (asm_language_defn): Likewise.
2263 (minimal_language_defn): Likewise.
2264 * f-lang.c (f_language_defn): Likewise.
2265 * jv-lang.c (java_language_defn): Likewise.
2266 * m2-lang.c (m2_language_defn): Likewise.
2267 * objc-lang.c (objc_language_defn): Likewise.
2268 * p-lang.c (pascal_language_defn): Likewise.
2269 * scm-lang.c (scm_language_defn): Likewise.
2270
944fcfab
AC
22712003-10-06 Andrew Cagney <cagney@redhat.com>
2272
2273 * ppc-sysv-tdep.c: Re-indent.
2274
9f0a5303
JB
22752003-10-06 J. Brobecker <brobecker@gnat.com>
2276
2277 * language.h (default_word_break_characters): Add prototype.
2278 * language.c (default_word_break_characters): New function.
2279
7270b6ed
AS
22802003-10-06 Andreas Schwab <schwab@suse.de>
2281
2282 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2283 with %eax.
2284
a5d61f66
AC
22852003-10-06 Andrew Cagney <cagney@redhat.com>
2286
2287 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2288 "h8500-tdep.c".
2289 (z8k-tdep.o): Delete custom build rule.
2290
28a86f5c
AC
22912003-10-06 Andrew Cagney <cagney@redhat.com>
2292
1bfd8a83
AC
2293 * Makefile.in: Update all dependencies.
2294
17144ef8
AC
2295 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2296 No longer list PA as as obsolete candidate. List m32r as
2297 broken instead of obsolete.
a8f4cde1 2298
a5679ae5
AC
2299 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2300 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2301 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2302 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2303 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2304 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2305 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2306 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2307 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2308 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2309 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2310 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2311 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2312 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2313 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2314 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2315 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2316 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2317 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2318 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2319 * config/z8k/z8k.mt: Ditto.
2320
4a8269c0
AC
2321 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2322 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2323 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2324 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2325 sparclite were removed.
2326 * configure.host, configure.tgt: Remove corresponding tuples.
2327
41989fcd
AC
2328 * breakpoint.c, breakpoint.h: Remove obsolete code.
2329 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2330 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2331 * stabsread.h, xcoffread.c: Ditto.
2332
28a86f5c
AC
2333 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2334 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2335 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2336 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2337
4efdaa0d
DL
23382003-10-06 David Lecomber <dsl@sources.redhat.com>
2339
2340 * f-valprint.c: Reformatting
2341
ae53de43
MK
23422003-10-06 Mark Kettenis <kettenis@gnu.org>
2343
a8bb57e7
MK
2344 * x86-64-tdep.c: Remove duplicate comment.
2345
ae53de43
MK
2346 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2347 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2348 names for return values. This fixes a bug since we looked at %rbx
2349 instead of %rdx.
2350
473f17b0
MK
23512003-10-05 Mark Kettenis <kettenis@gnu.org>
2352
2c261fae
MK
2353 * x86-64-tdep.c: Include "regset.h".
2354
473f17b0
MK
2355 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2356 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2357 sizeof_fpregset.
2358 * i386-tdep.c: Include "regset.h".
2359 (i386_supply_gregset): New function.
2360 (i386_supply_fpregset): New function.
2361 (i386_gdbarch_init): Initialze register set-related members of
2362 TDEP.
2363 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2364 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2365
afd48b75
AC
23662003-10-03 Andrew Cagney <cagney@redhat.com>
2367
2368 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2369 set extract_return_value, store_return_value and
2370 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2371 ppc64_sysv_abi_store_return_value and
2372 ppc64_sysv_abi_use_struct_convention.
2373 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2374 (ppc64_sysv_abi_store_return_value): Declare.
2375 (ppc64_sysv_abi_use_struct_convention): Declare.
2376 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2377 (ppc64_sysv_abi_extract_return_value): New function.
2378 (ppc64_sysv_abi_store_return_value): New function.
2379 (ppc64_sysv_abi_use_struct_convention): New function.
2380 (ppc64_sysv_abi_return_value): New function.
2381
9b540880
AC
23822003-10-03 Andrew Cagney <cagney@redhat.com>
2383
2384 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2385 convert a descriptor to a function when it's in the ".opd"
2386 section.
2387
8748518b
CV
23882003-10-03 Corinna Vinschen <vinschen@redhat.com>
2389
2390 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2391 reg_size to keep GCC silent.
2392
0fd85043
CV
23932003-10-03 Corinna Vinschen <vinschen@redhat.com>
2394
2395 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2396 base for DW_EH_PE_textrel encodings.
2397 (read_encoded_value): Add a DW_EH_PE_textrel case.
2398 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2399 section.
2400
37b517aa
MK
24012003-10-03 Mark Kettenis <kettenis@gnu.org>
2402
2403 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2404
12c266ea
AC
24052003-10-02 Andrew Cagney <cagney@redhat.com>
2406
2407 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2408 REGISTER_RAW_SIZE.
2409 * gdbarch.h, gdbarch.c: Re-generate.
2410 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2411 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2412 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2413 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2414 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2415 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2416 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2417 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2418 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2419 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2420 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2421 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2422 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2423 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2424 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2425 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2426
78ba4af6
JB
24272003-10-02 Jim Blandy <jimb@redhat.com>
2428
2429 * dwarf2read.c (struct die_info): Doc fix.
2430
617daa0e
CV
24312003-10-02 Corinna Vinschen <vinschen@redhat.com>
2432
2433 * sh-tdep.c: Running thru gdb_indent.sh.
2434
e5e33cd9
CV
24352003-10-02 Corinna Vinschen <vinschen@redhat.com>
2436
2437 * sh-tdep.c (sh_justify_value_in_reg): New function.
2438 (sh_stack_allocsize): Ditto.
2439 (flt_argreg_array): New array used for floating point argument
2440 passing.
2441 (sh_init_flt_argreg): New function.
a8f4cde1 2442 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2443 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2444 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2445 Fix argument passing strategy.
2446 (sh_push_dummy_call_nofpu): Ditto.
2447
5fe830e4
AC
24482003-10-01 Andrew Cagney <cagney@redhat.com>
2449
2450 * value.h (register_value_being_returned): Declare. Replace
2451 "value_being_returned".
2452 * infcall.c (call_function_by_hand): Use
2453 register_value_being_returned.
2454 * infcmd.c (print_return_value): Call
2455 "register_value_being_returned", handle struct return locally.
2456 * values.c (register_value_being_returned): New function. Replace
2457 "value_being_returned".
a8f4cde1 2458
5fe830e4 24592003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2460
2461 * linux-proc.c (linux_do_registers): New function.
2462 (linux_make_note_section): Use linux_do_registers in case of
2463 single threaded inferior programs.
2464
64f395bf
AC
24652003-10-01 Andrew Cagney <cagney@redhat.com>
2466
2467 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2468 use STRUCT_ADDR. When not using "struct return convention", pass
2469 "0" to "value_being_returned". Add FIXMEs.
2470 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2471 value_being_returned. Add comments.
2472 * values.c (value_being_returned): Add fixme.
2473 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2474 (hppa_value_returned_from_stack): Add FIXME.
2475
639d11d3
DC
24762003-09-30 David Carlton <carlton@kealia.com>
2477
2478 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2479 'has_children' and 'next' by 'child' and 'sibling'.
2480 (read_comp_unit): Rework algorithm, breaking body into
2481 read_die_and_children and read_die_and_siblings.
2482 (read_die_and_children, read_die_and_siblings): New.
2483 (read_full_die): Add 'has_children' argument; set it instead of
2484 the die's 'has_children' field. Minor formatting cleanup.
2485 (free_die_list): Use die->child and die->sibling instead of
2486 die->next.
2487 (dump_die_list): Ditto.
2488 (sibling_die): Use die->sibling.
2489 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2490 'has_children' and 'next' fields.
a8f4cde1
RM
2491 (process_die, read_file_scope, read_func_scope)
2492 (read_lexical_block_scope, read_structure_scope)
2493 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2494 (read_namespace, read_subroutine_type, dump_die): Ditto.
2495
5bffac25
AC
24962003-09-30 Andrew Cagney <cagney@redhat.com>
2497
2498 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2499 to 224, not 220.
2500
f30992d4
AC
25012003-09-30 Andrew Cagney <cagney@redhat.com>
2502
2503 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2504 REGISTER_VIRTUAL_SIZE.
2505 * gdbarch.h, gdbarch.c: Regenerate.
2506 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2507 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2508 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2509
2e092625
AC
25102003-09-29 Andrew Cagney <cagney@redhat.com>
2511
2512 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2513 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2514 * gdbarch.h, gdbarch.c: Regenerate.
2515 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2516 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2517
2518 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2519 * remote-vxmips.c (vx_read_register): Ditto.
2520 * remote-vx68.c (vx_read_register): Ditto.
2521 * gnu-nat.c (inf_validate_procs): Ditto.
2522
7a5dd6ee
JB
25232003-09-29 J. Brobecker <brobecker@gnat.com>
2524
2525 * infcall.c (call_function_by_hand): Fix build failure
2526 introduced in the previous change to this file.
2527
1fe43d45
AC
25282003-09-29 Andrew Cagney <cagney@redhat.com>
2529
2530 * NEWS: Mention Objective-C.
2531
e28a332c
JG
25322003-09-29 Jerome Guitton <guitton@act-europe.fr>
2533
2534 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2535 test if the register has been saved on the stack.
2536 (arm_scan_prologue_cache): When analysing the instruction
2537 "str lr, [sp, #-4]", save the address where lr has been stored.
2538
9ff63c35
AC
25392003-09-28 Andrew Cagney <cagney@redhat.com>
2540
7f5f525d
AC
2541 * frame.c (frame_read_unsigned_register): Delete function.
2542 * frame.h (frame_read_unsigned_register): Delete declaration.
2543 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2544 get_frame_register_unsigned.
2545 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2546 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2547 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2548
7f5f525d
AC
2549 * frame.h (frame_read_register): Delete declaration.
2550 * frame.c (frame_read_register): Delete function.
2551 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2552 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2553 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2554 * mips-tdep.c (mips_register_to_value): Ditto.
2555 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2556 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2557
2558 * frame.c (frame_read_signed_register): Delete function.
2559 (frame_read_unsigned_register): Update comments.
2560 * frame.h (frame_read_signed_register): Delete declaration.
2561 * h8300-tdep.c (h8300_print_register): Use
2562 get_frame_register_signed.
2563 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2564
9ff63c35
AC
2565 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2566 Rename VALUE_RETURNED_FROM_STACK.
2567 * infcmd.c (print_return_value): Update.
2568 * infcall.c (call_function_by_hand): Update.
2569
41d041d6
MK
25702003-09-28 Mark Kettenis <kettenis@gnu.org>
2571
2572 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2573 regcache argument and reverse the order of the other two
2574 arguments. Remove local regcache variable. Determine
2575 architecture from REGCACHE. Update comments.
2576 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2577 reverse the order of the other two arguments. Remove local
2578 regcache variable. Determine architecture from REGCACHE. Update
2579 comments.
2580 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2581 prototypes. Update comments.
2582 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2583 comment.
2584 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2585 Update.
2586 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2587 * i386-interix-nat.c (supply_fpregset): Update.
2588 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2589 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2590 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2591 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2592 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2593 Update.
2594 * i386obsd-tdep.c (fetch_core_registers): Update.
2595 * i386v4-nat.c (supply_fpregset): Update.
2596 * x86-64-linux-nat.c (supply_fpregset): Update.
2597 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2598
1cb97e17
MK
25992003-09-27 Mark Kettenis <kettenis@gnu.org>
2600
5716833c
MK
2601 * i386-tdep.h: Put opaque declarations in alphabetical
2602 order. Remove spurious whitespace.
2603 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2604 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2605 * i386-tdep.c (MM0_REGNUM): Remove define.
2606 (i386_mmx_regnum_p): Add gdbarch argument.
2607 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2608 Rewrite using new macro definitions for FPU/SSE registers.
2609 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2610 definitions from i387-tdep.h.
2611 (i386_register_name): Update.
2612 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2613 new macro definitions for FPU/SSE registers.
2614 (i386_extract_return_value): Determine whether floating-point
2615 registers are present by examining REGCACHE's architecture.
2616 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2617 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2618 FPU/SSE registers.
2619 (i386_register_type): Update.
2620 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2621 definitions for FPU registers. Use REGCACHE's architecture to
2622 determine the appropriate register numbers.
2623 (i386_pseudo_register_read, i386_pseudo_register_write,
2624 i386_register_reggroup_p): Update.
2625 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2626 TDEP->mm0_regnum.
2627 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2628 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2629 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2630 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2631 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2632 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2633 *' to `void *'.
2634 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2635 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2636 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2637 definitions for FPU/SSE registers.
2638 (FXSAVE_MXCSR_ADDR): New define.
2639 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2640 TDEP->mm0_regnum.
2641 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2642 (I387_ST0_REGNUM): Define.
2643
41d35cb0
MK
2644 * regcache.h (get_regcache_arch): New prototype.
2645 * regcache.c (get_regcache_arch): New function.
2646
54e74f72
MK
2647 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2648 whitespace.
2649
1cb97e17
MK
2650 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2651 Initialize using ARRAY_SIZE.
2652
0968aa8c
AC
26532003-09-27 Andrew Cagney <cagney@redhat.com>
2654
2655 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2656 "init_frame_pc_default".
2657 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2659 * vax-tdep.c (vax_gdbarch_init): Update.
2660 * v850-tdep.c (v850_gdbarch_init): Update.
2661 * sh64-tdep.c (sh64_gdbarch_init): Update.
2662 * s390-tdep.c (s390_gdbarch_init): Update.
2663 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2664 * mcore-tdep.c (mcore_gdbarch_init): Update.
2665 * h8300-tdep.c (h8300_gdbarch_init): Update.
2666 * cris-tdep.c (cris_gdbarch_init): Update.
2667 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2668
54c84734
MK
26692003-09-26 Mark Kettenis <kettenis@gnu.org>
2670
2671 * regset.h: New file.
2672 * Makefile.in (regset_h): Add.
2673
1b1d3794
AC
26742003-09-25 Andrew Cagney <cagney@redhat.com>
2675
2676 * frame.h (deprecated_frame_saved_regs): Rename
2677 get_frame_saved_regs.
2678 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2679 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2680 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2681 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2682 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2683
e6beb428
AC
26842003-09-25 Andrew Cagney <cagney@redhat.com>
2685
2686 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2687 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2688 and Java.
2689 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2690 arm*-*-* do not use the new frame code.
2691
710122da
DC
26922003-09-25 David Carlton <carlton@kealia.com>
2693
2694 * c-exp.y: Remove 'register' declarations.
2695 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2696
79c2c32d
DC
26972003-09-25 David Carlton <carlton@kealia.com>
2698
2699 * c-exp.y: Include cp-support.h. Add qualified_type.
2700 (yylex): Delete nested type hack; add comments.
2701 * cp-namespace.c (cp_lookup_nested_type): New function.
2702 * cp-support.h: Declare cp_lookup_nested_type.
2703 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2704 instead of value_struct_elt_for_reference.
2705 * valops.c: Include cp-support.h.
2706 (value_aggregate_elt): New function.
2707 (value_namespace_elt): Ditto.
2708 (value_struct_elt_for_reference): Make static.
2709 * value.h: Delete declaration of value_struct_elt_for_reference;
2710 add declaration for value_aggregate_elt.
2711 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2712 (valops.o): Ditto.
2713
898c62f5
DJ
27142003-09-25 Daniel Jacobowitz <drow@mvista.com>
2715
2716 * stack.c: Include "reggroups.h".
2717 (frame_info): Only display registers in all_reggroup.
2718 * Makefile.in (stack.o): Update dependencies.
2719
28cd8767
JG
27202003-09-25 Jerome Guitton <guitton@act-europe.fr>
2721
2722 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2723 "add ip, sp #n" in the prologue.
2724 (arm_scan_prologue): Ditto.
2725
a4ab2b5d
JG
27262003-09-25 Jerome Guitton <guitton@act-europe.fr>
2727
2728 * MAINTAINERS (write after approval): Add myself.
2729
3f244638
AS
27302003-09-25 Andreas Schwab <schwab@suse.de>
2731
2732 * m68k-tdep.c: Include "dwarf2-frame.h".
2733 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2734 * Makefile.in (m68k-tdep.o): Update dependencies.
2735
1c0159e0
CV
27362003-09-25 Corinna Vinschen <vinschen@redhat.com>
2737
2738 * sh-tdep.c (struct frame_extra_info): Remove.
2739 (struct sh_frame_cache): New structure.
2740 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2741 (GET_TARGET_REG): Ditto but target register.
2742 (GET_PUSHED_REG): Remove.
2743 (IS_MOV_ARG_TO_REG): New macro.
2744 (IS_MOV_ARG_TO_IND_R14): New macro.
2745 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2746 (IS_MOVW_PCREL_TO_REG): New macro.
2747 (IS_MOVL_PCREL_TO_REG): New macro.
2748 (IS_SUB_REG_FROM_SP): New macro.
2749 (IS_ARG_MOV): Remove.
2750 (IS_MOV_TO_R14): Remove.
2751 (IS_RESTORE_FP): New macro.
2752 (IS_RTS): New macro.
2753 (IS_LDS): New macro.
2754 (IS_MOV_FP_SP): New macro.
2755 (IS_ADD_REG_TO_FP): New macro.
2756 (IS_ADD_IMM_FP): New macro.
2757 (sh_skip_prologue_hard_way): Remove.
2758 (sh_saved_pc_after_call): Remove.
2759 (sh_frame_chain): Remove.
2760 (sh_find_callers_reg): Remove.
a8f4cde1 2761 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2762 (sh_fp_frame_init_saved_regs): Remove.
2763 (sh_init_extra_frame_info): Remove.
2764 (sh_analyze_prologue): New function.
2765 (sh_skip_prologue): Remove deprecated code. Rely on new function
2766 sh_analyze_prologue when after_prologue fails.
2767 (sh_frame_saved_pc): Remove.
2768 (sh_alloc_frame_cache): New function.
2769 (sh_frame_cache): Ditto.
2770 (sh_frame_prev_register): Ditto.
2771 (sh_frame_this_id): Ditto.
2772 (sh_frame_unwind): New structure defining the heuristic frame
2773 sniffer interface.
2774 (sh_frame_sniffer): New function.
2775 (sh_unwind_sp): Ditto.
2776 (sh_unwind_pc): Ditto.
2777 (sh_unwind_dummy_id): Ditto.
2778 (sh_frame_base_address): Ditto.
2779 (sh_frame_base): New structure defining new frame base code.
2780 (sh_in_function_epilogue_p): New function.
2781 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2782 code and to call all new code instead. Initialize dwarf2 and
2783 heuristic frame sniffer.
2784
5f9769d1
PH
27852003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2786
a8f4cde1
RM
2787 * parser-defs.h (struct exp_descriptor): New definition, containing
2788 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2789 evaluating expressions.
2790 (exp_descriptor_standard): Declare new variable.
2791 (print_subexp): Make global and declare here (from expprint.c).
2792 (dump_subexp): Ditto.
2793 (dump_subexp_body_standard): Declare.
2794 (operator_length_standard): Declare.
2795 (op_name_standard): Declare.
2796 (print_subexp): Declare.
2797 (print_subexp_standard): Declare.
2798
2799 * language.h (struct language_defn): Add la_exp_desc field to hold
2800 pointer to table for language-specific operators.
2801 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2802
2803 * parse.c (operator_length): Move most code to new
5f9769d1 2804 operator_length_standard function. Use language-specific information.
a8f4cde1 2805 (operator_length_standard): New function taking most code from
5f9769d1
PH
2806 operator_length.
2807 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2808
2809 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2810 and OP_EXTENDED_LAST.
a8f4cde1
RM
2811
2812 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2813 Make global; remove static declaration.
2814 Move most code to print_subexp_standard.
a8f4cde1 2815 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2816 print_subexp.
2817 (op_name): Add expression to argument signature.
a8f4cde1 2818 Use langauge-specific op_name.
5f9769d1
PH
2819 Move most code to op_name_standard.
2820 (op_name_standard): New function, containing code formerly in op_name.
2821 (dump_subexp): Use new version of op_name function.
2822 Use language-specific dump_subexp_body, and move most existing code to
2823 dump_subexp_body_standard.
2824 (dump_raw_expression): Use new op_name interface.
2825 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2826 (dump_subexp_body_standard): New function, containing code formerly
2827 in dump_subexp_body.
a8f4cde1 2828
5f9769d1
PH
2829 * language.c (unknown_language): Add default la_exp_desc field and
2830 remove evaluate_exp field.
2831 (auto_language): Ditto.
2832 (local_language): Ditto.
2833 * f-lang.c (f_language_defn): Ditto.
2834 * c-lang.c (c_language_defn): Ditto.
2835 (cplus_language_defn): Ditto.
2836 (asm_language_defn): Ditto.
2837 (minimal_language_defn): Ditto.
2838 * p-lang.c (pascal_language_defn): Ditto.
2839 * m2-lang.c (m2_language_defn): Ditto.
2840 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2841
2842 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2843 Java-specific expression evaluator.
2844 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2845 field.
a8f4cde1 2846 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2847 Scheme-specific expression evaluator.
2848 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2849 field.
2850 * objc-lang.c (print_object_command): Take evaluate_exp from the
2851 la_exp_desc field.
a8f4cde1 2852
5f9769d1 2853 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2854
2855 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2856 la_exp_desc's type.
2857 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2858
24daaebc
PH
28592003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2860
2861 * parser-defs.h (operator_length): Declare.
a8f4cde1 2862
24daaebc
PH
2863 * parse.c (length_of_subexp): Use operator_length to get operator
2864 lengths and arities for operators.
2865 Move most code to new operator_length function.
a8f4cde1 2866 (operator_length): New function absorbing most code from
24daaebc
PH
2867 length_of_subexp.
2868 (prefixify_subexp): Remove large case and use operator_length instead.
2869 (parse_exp_1): Use renamings:
a8f4cde1 2870 dump_prefix_expression => dump_raw_expression and
24daaebc 2871 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2872
24daaebc
PH
2873 * expression.h (dump_prefix_expression): Rename to ...
2874 (dump_raw_expression): New name.
2875 (dump_postfix_expression): Rename to ...
2876 (dump_prefix_expression): New name.
a8f4cde1 2877
24daaebc
PH
2878 * expprint.c (dump_subexp): Make global. Add comment.
2879 Move most existing code to dump_subexp_body.
2880 (dump_subexp_body): New function.
2881 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2882 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2883 work before the expression is prefixified.
2884 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2885 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2886 that's what it does.
a8f4cde1 2887 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2888 prefixified expression.
2889 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2890
8c2957c4
JB
28912003-09-22 Jim Blandy <jimb@redhat.com>
2892
2893 * dwarf2read.c (read_array_type): When building the type for an
2894 array of unspecified length, make sure to choose the upper bound
2895 so that the array's total length comes out to be zero --- that's
2896 how we represent such arrays.
2897
592e3010
MC
28982003-09-22 Michael Chastain <mec@shout.net>
2899
2900 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2901
365c70b1
JJ
29022003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2903
2904 * top.c (quit_force): Fix indirect call to quit_target so
2905 a struct qt_args pointer is passed.
2906
5d6eb653
AC
29072003-09-22 Andrew Cagney <cagney@redhat.com>
2908
2909 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2910 * arch-utils.c (init_frame_pc_noop): Delete function.
2911 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2912 "init_frame_pc".
2913 * mips-tdep.c (mips_gdbarch_init): Ditto.
2914 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2915 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2916 declaration.
2917 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2918 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2919 declaration.
2920 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2921
b222a67f
AG
29222003-09-22 Anthony Green <green@redhat.com>
2923
2924 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2925 declaration.
2926
d5b5ac79
AC
29272003-09-20 Andrew Cagney <cagney@redhat.com>
2928
deafb061
AC
2929 * breakpoint.c: Eliminate ARGSUSED.
2930 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2931 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2932 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2933 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2934 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2935 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2936 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2937 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2938 * wince.c, remote-vx.c: Ditto.
2939
d5b5ac79
AC
2940 * cli/cli-script.c: Remove "register" attributes.
2941 * config/pa/tm-hppa.h: Ditto.
2942 * cli/cli-decode.c: Ditto.
2943 * cli/cli-cmds.c: Ditto.
2944
c6316faa
AC
29452003-09-19 Andrew Cagney <cagney@redhat.com>
2946
2947 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2948 DEPRECATED_NPC_REGNUM.
2949 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2950
f4f99b11
CF
29512003-09-19 Christopher Faylor <cgf@redhat.com>
2952
2953 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2954
1708f284
JB
29552003-09-19 Jim Blandy <jimb@redhat.com>
2956
2957 * macrotab.c (macro_include): Use the correct comparison to find
2958 the appropriate place for this inclusion in the list.
2959
b9fbf434
AC
29602003-09-19 Andrew Cagney <cagney@redhat.com>
2961
2962 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2963 (DEPRECATED_HPUX_TEXT_END): Define.
2964 (deprecated_hpux_text_end): Declare.
2965 (struct target_ops): Declare opaque.
2966 * hppah-nat.c (text_end): Make static.
2967 (deprecated_hpux_text_end): New function.
2968 * exec.c (text_end): Delete global variable.
2969 (NEED_TEXT_START_END): Do not define.
2970 (exec_file_attach): Replace code computing "text_end" code with
2971 call to DEPRECATED_HPUX_TEXT_END.
2972
5b03f266
AC
29732003-09-19 Andrew Cagney <cagney@redhat.com>
2974
2975 * utils.c (align_up, align_down): New functions.
2976 * defs.h (align_up, align_down): Declare.
2977 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2978 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2979 and "align_down".
2980 (round_up, round_down): Delete functions.
2981 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2982 "align_down".
2983 (ROUND_DOWN, ROUND_UP): Delete macros.
2984 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2985 * h8300-tdep.c: Replace "round_up" and "round_down" with
2986 "align_up" and "align_down".
2987 (round_up, round_down): Delete macros.
2988 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2989 "align_down".
2990 (ROUND_UP, ROUND_DOWN): Delete macros.
2991
51db5742
JB
29922003-09-18 J. Brobecker <brobecker@gnat.com>
2993
2994 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2995 hard-coded constant. Use the proper machine name instead.
2996
77949794
AC
29972003-09-17 Andrew Cagney <cagney@redhat.com>
2998
2999 * sparc-tdep.c (legacy_register_name): Delete function.
3000 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3001 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3002 * infcmd.c (gdb_register_name): Delete variable.
3003 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3004 REGISTER_NAME and "tm.h".
3005 * gdbarch.h, gdbarch.c: Regenerate.
3006 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3007 REGISTER_NAMES in comments.
3008 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3009 * m68klinux-nat.c (regmap): Ditto.
3010
b55c33cc
JB
30112003-09-17 Jim Blandy <jimb@redhat.com>
3012
3013 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3014
957e27ac
AC
30152003-09-17 Andrew Cagney <cagney@redhat.com>
3016
3017 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3018 (ppcnbsd_init_abi): Set "use_struct_convention" to
3019 "ppcnbsd_use_struct_convention".
3020
192cb3d4
MK
30212003-09-17 Mark Kettenis <kettenis@gnu.org>
3022
3023 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3024 * gdbarch.h, gdbarch.c: Regenerate.
3025 (stabs_argument_has_addr): New architecture method.
3026 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3027 * arch-utils.c: Include "buildsym.h".
3028 (default_stabs_argument_has_addr): New function.
3029 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3030 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3031
efe59759
AC
30322003-09-17 Andrew Cagney <cagney@redhat.com>
3033
3034 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3035 * gdbarch.h, gdbarch.c: Regenerate.
3036 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3037 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3038 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3039 * sparcnbsd-tdep.c: Update.
a8f4cde1 3040
62700349
AC
30412003-09-17 Andrew Cagney <cagney@redhat.com>
3042
3043 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3044 * gdbarch.h, gdbarch.c: Regenerate.
3045 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3046 * d10v-tdep.c, frame.c: Update.
3047 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3048 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3049 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3050 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3051 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3052 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3053 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3054 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3055 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3056 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3057 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3058 * config/pa/nm-hppah.h: Update.
3059
b9ff3018
AC
30602003-09-16 Andrew Cagney <cagney@redhat.com>
3061
3062 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3063 "use_struct_convention" to "ppc_linux_use_struct_convention".
3064 (ppc_linux_use_struct_convention): New function.
3065 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3066 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3067 "rs6000_use_struct_convention".
3068 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3069 declaration.
3070 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3071 Delete function.
3072
aa1ee363
AC
30732003-09-16 Andrew Cagney <cagney@redhat.com>
3074
3075 * buildsym.c: Remove more occurances of "register".
3076 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3077 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3078 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3079 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3080 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3081 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3082 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3083 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3084
f2ea0907
CV
30852003-09-16 Corinna Vinschen <vinschen@redhat.com>
3086
3087 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
3088 numbers to enumeration values.
3089 * sh-tdep.c: Accomodate above change.
3090 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3091 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3092 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3093 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3094 (IS_FPUSH): Rename from IS_FMOV.
3095 (sh_extract_struct_value_address): Remove useless comment.
3096 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3097 instead of own local values.
3098 (sh_dump_tdep): Remove.
3099 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3100 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3101
1c704f11
AC
31022003-09-15 Andrew Cagney <cagney@redhat.com>
3103
3104 * doublest.c (convert_floatformat_to_doublest): No longer need to
3105 cast "exp_bias" to an int. Reverts 2002-12-04 change.
3106
ac79b88b
DJ
31072003-09-15 Daniel Jacobowitz <drow@mvista.com>
3108
3109 * values.c (unpack_double): Call floatformat_is_valid.
3110
1c671366
MK
31112003-09-15 Mark Kettenis <kettenis@gnu.org>
3112
de5227fb
MK
3113 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3114 ps_strings into a long.
3115
1c671366
MK
3116 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3117 _initialize_am64fbsd_nat.
3118
a604369a
KB
31192003-09-15 Kevin Buettner <kevinb@redhat.com>
3120
3121 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3122 associated with DW_AT_ranges attribute is out of bounds.
3123
b3cacbee
DL
31242003-09-15 David Lecomber <dsl@sources.redhat.com>
3125
3126 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3127
d0f37bb2
MC
31282003-09-14 Michael Chastain <mec@shout.net>
3129
3130 * config/m68k/nm-apollo68v.h: Delete.
3131 * config/m68k/xm-apollo68v.h: Delete.
3132
69517000
AC
31332003-09-14 Andrew Cagney <cagney@redhat.com>
3134
3135 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3136 * dcache.c: Update copyrights and descriptions.
3137 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3138
ef8b349d
AC
31392003-09-14 Andrew Cagney <cagney@redhat.com>
3140
3141 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3142 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3143
52f0bd74
AC
31442003-09-14 Andrew Cagney <cagney@redhat.com>
3145
3146 * alpha-nat.c: Remove some occurances of "register".
3147 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3148 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3149 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3150 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3151 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3152 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3153 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3154 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3155 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3156 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3157 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3158 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3159 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3160 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3161 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3162 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3163 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3164 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3165 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3166 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3167 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3168 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 3169
4a4b3fed
AC
31702003-09-13 Andrew Cagney <cagney@redhat.com>
3171
3172 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3173 * ppc-tdep.h (struct regcache): Declare opaque.
3174 * objfiles.h (struct objfile_data): Declare opaque.
3175 * cp-support.h (struct objfile): Declare opaque.
3176 * linux-nat.h (target_waitstatus): Declare opaque.
3177
2110b94f
MK
31782003-09-14 Mark Kettenis <kettenis@gnu.org>
3179
1c671366
MK
3180 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3181 (stabs_argument_has_addr): New architecture method.
3182 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3183 * arch-utils.c: Include "buildsym.h".
3184 (default_stabs_argument_has_addr): New function.
3185 * stabsread.c (define_symbol): Use stabs_argument_has_addr
3186 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3187
2110b94f
MK
3188 * cris-tdep.c (cris_gdbarch_init): Set
3189 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3190 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3191 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3192 * mips-tdep.c (mips_gdbarch_init): Likewise.
3193 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3194 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3195
48436ce6
AC
31962003-09-13 Andrew Cagney <cagney@redhat.com>
3197
3198 * values.c (using_struct_return): Delete "function" and "funcaddr"
3199 parameters.
3200 * value.h (using_struct_return): Update declaration.
3201 * infcmd.c (finish_command_continuation): Update.
3202 (finish_command): Update.
3203 * infcall.c (call_function_by_hand): Update.
3204 * eval.c (evaluate_subexp_standard): Update.
3205
403d9909
CF
32062003-09-13 Christopher Faylor <cgf@redhat.com>
3207
3208 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3209 SSE registers since gdb will not operate correctly without this.
3210 Restore include file ordering munged in previous change.
3211 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3212
ebf7d56b
MK
32132003-09-13 Mark Kettenis <kettenis@gnu.org>
3214
8e823e25
MK
3215 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3216 REG_STRUCT_HAS_ADDR.
3217 * gdbarch.c, gdbarch.h: Updated.
3218 * infcall.c (call_function_by_hand): Update.
3219 * stabsread.c (define_symbol): Updated.
a8f4cde1 3220
ebf7d56b
MK
3221 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3222
d3f13f72
CF
32232003-09-12 Christopher Faylor <cgf@redhat.com>
3224
3225 * win32-nat.c: Reorganize so that defines used by target headers are
3226 actually defined by the system headers.
3227 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3228 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3229
14f75137
JB
32302003-09-12 Jim Blandy <jimb@redhat.com>
3231
d646061f
JB
3232 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3233 the file has no .data, .bss, or .rodata sections. Instead wait
3234 until we see a variable alleged to live in one of those sections.
3235
2a13f9bc
JB
3236 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3237 .bss section, presume that any variables we find live in the
3238 .rodata section.
3239
4f49b26b
JB
3240 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3241 offsets for global and static variables.
3242
14f75137
JB
3243 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3244 symbol types are, by definition, in the .data section, so it is
3245 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3246 If there is no .data section, there should be no N_DATA or N_DATA
3247 | N_EXT symbols.
3248
212c460c
MK
32492003-09-12 Mark Kettenis <kettenis@gnu.org>
3250
3251 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3252 (amd64fbsd_sigcontext_addr): Rewrite.
3253 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3254 with correct values.
3255 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3256 (amd64fbsd_init_abi): Fix typo.
3257
68856ea3
AC
32582003-09-12 Andrew Cagney <cagney@redhat.com>
3259
3260 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3261 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3262
627b3ba2
AC
32632003-09-12 Andrew Cagney <cagney@redhat.com>
3264
3265 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3266 "entry_file_highpc". Update comments.
3267 * defs.h (deprecated_inside_entry_file): Rename
3268 "inside_entry_file".
3269 * blockframe.c (deprecated_inside_entry_file): Rename
3270 "inside_entry_file".
3271 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3272 * vax-tdep.c (vax_frame_chain): Update.
3273 * sh64-tdep.c (sh64_frame_chain): Update.
3274 * sh-tdep.c (sh_frame_chain): Update.
3275 * rs6000-tdep.c (rs6000_frame_chain): Update.
3276 * ns32k-tdep.c (ns32k_frame_chain): Update.
3277 * mips-tdep.c (mips_frame_chain): Update.
3278 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3279 * m32r-tdep.c (m32r_frame_this_id): Update.
3280 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3281 * frv-tdep.c (frv_frame_this_id): Update.
3282 * d10v-tdep.c (d10v_frame_this_id): Update.
3283 * cris-tdep.c (cris_frame_chain): Update.
3284 * blockframe.c (legacy_frame_chain_valid): Update.
3285 * avr-tdep.c (avr_frame_this_id): Update.
3286 * arm-tdep.c (arm_prologue_this_id): Update.
3287 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3288 * objfiles.c (objfile_relocate): Update.
3289 * mipsread.c (mipscoff_symfile_read): Update.
3290 (mipscoff_symfile_read): Update.
3291 * mdebugread.c (parse_partial_symbols): Update.
3292 * dwarfread.c (read_file_scope): Update.
3293 * dwarf2read.c (read_file_scope): Update.
3294 * dbxread.c (read_dbx_symtab): Update.
3295 (read_dbx_symtab): Update.
3296 * coffread.c (complete_symtab): Update.
3297
b0abbc58
JJ
32982003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3299
3300 * top.c (quit_target): New static helper function.
3301 (quit_force): Moved code to quit_target(). Call quit_target()
3302 via catch_errors() to catch errors during quit.
3303
a1632d59
DC
33042003-09-11 David Carlton <carlton@kealia.com>
3305
3306 * buildsym.c (finish_block): Use allocate_block to allocate the
3307 block.
3308 * mdebugread.c (new_block): Add FIXME.
3309
5c4e30ca
DC
33102003-09-11 David Carlton <carlton@kealia.com>
3311
3312 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3313 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3314 (recursive_dump_type): Ditto.
3315 * printcmd.c (print_formatted): Ditto.
3316 * typeprint.c (print_type_scalar): Ditto.
3317 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3318 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3319 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3320 maint_cplus_cmd_list.
3321 * cp-support.c: Make maint_cplus_cmd_list extern.
3322 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3323 command.h.
3324 (lookup_symbol_file): Look in possible namespace blocks when
3325 appropriate.
3326 (initialize_namespace_symtab): New.
3327 (get_possible_namespace_block, free_namespace_block)
3328 (check_possible_namespace_symbols)
3329 (check_possible_namespace_symbols_loop)
3330 (check_one_possible_namespace_symbol)
3331 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3332 (_initialize_cp_namespace): Ditto.
3333 * block.h: Declare allocate_block.
3334 * block.c (allocate_block): New.
3335 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3336 allocate_block.
3337 * symfile.h: Update declaration of add_psymbol_to_list.
3338 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3339 question.
3340 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3341 scan_partial_symbols_call.
3342 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3343 helper functions.
3344 (add_partial_symbol): If necessary, scan mangled names for names
3345 of namespaces.
3346 (add_partial_namespace): Add NAMESPACE argument; generate partial
3347 symbols associated to namespaces.
3348 (add_partial_enumeration): Add NAMESPACE argument.
3349 (new_symbol): Allow namespace syms.
3350 (read_namespace): Generate namespace syms.
3351 * objfiles.h: Add opaque declaration of struct symtab.
3352 (struct objfile): Add cp_namespace_symtab member.
3353 * objfiles.c (allocate_objfile): Set
3354 objfile->cp_namespace_symtab.
3355 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3356 dictionary_h, command_h.
3357
33a7c2fc
AC
33582003-09-11 Andrew Cagney <cagney@redhat.com>
3359
3360 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3361 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3362 near the function's end.
3363 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3364 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3365 regcache_raw_write_signed to set SP_REGNUM.
3366
63cd24fe
EZ
33672003-09-11 Elena Zannoni <ezannoni@redhat.com>
3368
3369 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3370 orig_addrs is set up properly.
3371
f27dd7fd
AC
33722003-09-11 Andrew Cagney <cagney@redhat.com>
3373
3374 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3375 * gdbarch.h, gdbarch.c: Re-generate.
3376 * infcall.c (call_function_by_hand): Update.
3377 * hppa-tdep.c (hppa_push_arguments): Update.
3378 * ada-lang.c (place_on_stack): Update.
3379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3380 * sparc-tdep.c (sparc_gdbarch_init): Update.
3381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3382 * hppa-tdep.c (hppa_gdbarch_init): Update.
3383 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3384 stack_align.
3385
f630a401
DJ
33862003-09-11 Daniel Jacobowitz <drow@mvista.com>
3387
3388 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3389 register do need a frame.
3390
0ddabb4c
AC
33912003-09-11 Andrew Cagney <cagney@redhat.com>
3392
3393 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3394 buildable since GDB 5.0.
3395 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3396 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3397 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3398 * irix4-nat.c: Delete file.
3399 * config/mips/irix4.mh: Delete file.
3400 * config/mips/irix3.mh: Delete file.
3401 * config/mips/irix3.mt: Delete file.
3402 * config/mips/tm-irix3.h: Delete file.
3403 * config/mips/nm-irix3.h: Delete file.
3404 * config/mips/xm-irix3.h: Delete file.
3405 * config/mips/nm-irix4.h: Delete file.
3406 * config/mips/xm-irix4.h: Delete file.
3407 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3408
fde2cceb
JB
34092003-09-10 J. Brobecker <brobecker@gnat.com>
3410
3411 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3412 * Makefile.in (hppa-tdep.o): Update dependencies.
3413
66f667f5
JW
34142003-09-10 James E Wilson <wilson@specifixinc.com>
3415
ef5fd69f
JW
3416 * MAINTAINERS: Change my e-mail address. Move to paper trail
3417 section.
66f667f5 3418
53e8aaea
KB
34192003-09-10 Kevin Buettner <kevinb@redhat.com>
3420
3421 * MAINTAINERS (frv): New ISA entry.
3422
dcc6aaff
KB
34232003-09-10 Kevin Buettner <kevinb@redhat.com>
3424
3425 * frv-tdep.c (dis-asm.h): Include.
3426 * Makefile.in (frv-tdep.o): Update dependencies.
3427
932644f0
JJ
34282003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3429
3430 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3431 Fix typo for high range of floating registers.
3432
91c24f0a
DC
34332003-09-09 David Carlton <carlton@kealia.com>
3434
3435 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3436 highpc initialization here out of scan_partial_symbols.
3437 (scan_partial_symbols): Restructure into a recursive version,
3438 calling add_partial_namespace and add_partial_enumeration when
3439 appropriate.
3440 (add_partial_namespace): New.
3441 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3442
c9263853
AC
34432003-09-09 Andrew Cagney <cagney@redhat.com>
3444
e56a0ecc
AC
3445 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3446 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3447 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3448 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3449
794a477a
AC
3450 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3451 (rs6000_push_dummy_call): Set the "TOC" register.
3452
c9263853
AC
3453 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3454 methods "max_register_raw_size", "max_register_virtual_size" or
3455 "register_virtual_size".
3456
afa7d0b2
ILT
34572003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3458
3459 * MAINTAINERS: Update my e-mail address.
3460
7a41266b
AC
34612003-09-09 Andrew Cagney <cagney@redhat.com>
3462
3463 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3464 (rs6000_push_dummy_call): Store the struct return address.
3465 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3466
77b2b6d4
AC
34672003-09-09 Andrew Cagney <cagney@redhat.com>
3468
3469 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3470 "ppc_sysv_abi_push_arguments".
3471 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3472 "ppc_sysv_abi_push_arguments".
3473 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3474 instead of "push_arguments".
3475 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3476
e8a7b686
AC
34772003-09-09 Andrew Cagney <cagney@redhat.com>
3478
3479 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3480 instead of CALL_DUMMY_ADDRESS.
3481
f86f5ca3
PH
34822003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3483
3484 * p-lang.c: Eliminate "register".
3485 * c-lang.c: Ditto.
3486 * expprint.c: Ditto.
3487 * f-lang.c: Ditto.
3488 * jv-lang.c: Ditto.
3489 * language.c: Ditto.
3490 * m2-lang.c: Ditto.
3491 * parse.c: Ditto.
3492 * scm-lang.c: Ditto.
3493 * objc-lang.c: Ditto.
3494
83ee270e
NC
34952003-09-09 Nick Clifton <nickc@redhat.com>
3496
3497 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3498
a89aa300
AC
34992003-09-04 Andrew Cagney <cagney@redhat.com>
3500
3501 * avr-tdep.c: Include "dis-asm.h".
3502 * cris-tdep.c: Include "dis-asm.h".
3503 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3504 instead of corresponding typedef.
3505 * h8300-tdep.c: Include "dis-asm.h".
3506 * ia64-tdep.c: Include "dis-asm.h".
3507 * i386-tdep.c: Include "dis-asm.h".
3508 (i386_print_insn): Use "struct disassemble_info" instead of
3509 corresponding typedef.
3510 * m68k-tdep.c: Include "dis-asm.h".
3511 * mcore-tdep.c: Include "dis-asm.h".
3512 * mips-tdep.c: Include "dis-asm.h".
3513 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3514 instead of corresponding typedef.
3515 * ns32k-tdep.c: Include "dis-asm.h".
3516 * s390-tdep.c: Include "dis-asm.h".
3517 * sparc-tdep.c: Include "dis-asm.h".
3518 * vax-tdep.c: Include "dis-asm.h".
3519 * v850-tdep.c: Include "dis-asm.h".
3520 * mn10300-tdep.c: Include "dis-asm.h".
3521 * rs6000-tdep.c: Include "dis-asm.h".
3522 * xstormy16-tdep.c: Include "dis-asm.h".
3523 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3524 print_insn_xstormy16.
3525 * Makefile.in (v850-tdep.o): Update dependencies.
3526 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3527 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3528 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3529 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3530 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3531 (gdbarch_h): Remove $(dis_asm_h).
3532 * disasm.c: Include "dis-asm.h".
3533 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3534 corresponding typedef.
3535 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3536 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3537 * gdbarch.sh: Do not include "dis-asm.h".
3538 (struct disassemble_info): Declare opaque.
3539 (TARGET_PRINT_INSN): Update declaration.
3540 * gdbarch.h, gdbarch.c: Re-generate.
3541
88a82a65
AC
35422003-09-08 Andrew Cagney <cagney@redhat.com>
3543
3544 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3545 CALL_DUMMY_ADDRESS, change to a predicate.
3546 * gdbarch.h, gdbarch.c: Re-generate.
3547 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3548 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3549 * infcall.c (call_function_by_hand): Ditto.
3550 * sparc-tdep.c (sparc_push_return_address): Ditto.
3551 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3552 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3553 CALL_DUMMY_ADDRESS with entry_point_address.
3554 * v850-tdep.c (v850_push_return_address): Ditto.
3555 * s390-tdep.c (s390_push_return_address): Ditto.
3556 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3557 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3558 * mcore-tdep.c (mcore_push_return_address): Ditto.
3559 * cris-tdep.c (cris_push_return_address): Ditto.
3560 * arm-tdep.c (arm_push_return_address): Ditto.
3561
3e2c4033
AC
35622003-09-08 Andrew Cagney <cagney@redhat.com>
3563
3564 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3565 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3566 and REG_UNMODIFIED to REG_SAME_VALUE.
3567 (execute_cfa_program): Update.
3568 (dwarf2_frame_cache): Update. Initialize table to
3569 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3570 location.
3571 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3572
39efb398
AC
35732003-09-08 Andrew Cagney <cagney@redhat.com>
3574
3575 * gnu-nat.c: Remove "inline" function attribute.
3576 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3577
f5cb5aca
KB
35782003-09-08 Kevin Buettner <kevinb@redhat.com>
3579
3580 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3581 target.
3582
1cb761c7
KB
35832003-09-08 Kevin Buettner <kevinb@redhat.com>
3584
3585 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3586 (frame_extra_info): Rename this struct to frv_unwind_cache.
3587 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3588 Add fields ``prev_sp'' and ``base''.
3589 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3590 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3591 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3592 Delete.
3593 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3594 Revise all callers. Fill in the unwind cache argument and make
3595 other adjustments to account for new frame mechanisms.
3596 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3597 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3598 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3599 (frv_frame_unwind, frv_frame_base): New structs.
3600 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3601 additional arguments expected by this method and adjust function
3602 body accordingly.
3603 (frv_gdbarch_init): Remove calls to the following functions:
3604 set_gdbarch_deprecated_init_frame_pc(),
3605 set_gdbarch_deprecated_saved_pc_after_call(),
3606 set_gdbarch_deprecated_frame_chain(),
3607 set_gdbarch_deprecated_frame_saved_pc(),
3608 set_gdbarch_deprecated_frame_init_saved_regs(),
3609 set_gdbarch_deprecated_push_arguments(),
3610 set_gdbarch_deprecated_push_return_address(),
3611 set_gdbarch_deprecated_pop_frame(),
3612 set_gdbarch_deprecated_call_dummy_words(),
3613 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3614 set_gdbarch_deprecated_init_extra_frame_info(),
3615 set_gdbarch_deprecated_dummy_write_sp(), and
3616 set_gdbarch_deprecated_pc_in_call_dummy().
3617 Add calls to the following functions:
3618 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3619 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3620 frame_base_set_default().
3621 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3622
68f6cf99
MK
36232003-09-09 Mark Kettenis <kettenis@gnu.org>
3624
3625 * dwarf2-frame.c (read_encoded_value): Add support for
3626 DW_EH_PE_aligned encoding.
3627
73b65bb0
DJ
36282003-09-08 Daniel Jacobowitz <drow@mvista.com>
3629
3630 * infrun.c (normal_stop): Don't print a message if the inferior
3631 has exited.
3632
7c8a5605
JB
36332003-09-08 Jim Blandy <jimb@redhat.com>
3634
3635 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3636 * dbxread.c: #include "gdb_assert.h".
3637 (read_dbx_symtab): If the objfile has no .data section, use the
3638 section index for the .bss section instead.
3639
7dd88986
DJ
36402003-09-08 Daniel Jacobowitz <drow@mvista.com>
3641
3642 * frame.c (deprecated_safe_get_selected_frame): New function.
3643 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3644 * findvar.c (read_var_value): Call it.
3645
55ff77ac
CV
36462003-09-08 Corinna Vinschen <vinschen@redhat.com>
3647
3648 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3649 (sh64-tdep.o): Add dependencies.
3650 * configure.tgt: Add FIXME to sh-*-linux*.
3651 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3652 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3653 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3654 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3655 * sh64-tdep.c: New file, containing all sh64 related code from
3656 sh-tdep.c.
3657 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3658 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3659 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3660 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3661 * config/sh/wince.mt (TDEPFILES): Ditto.
3662
bfb39158
DJ
36632003-09-07 Daniel Jacobowitz <drow@mvista.com>
3664
3665 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3666 (stop_wait_callback): Handle !lp->signalled also.
3667 (lin_lwp_has_pending, flush_callback): New functions.
3668 (lin_lwp_wait): Call flush_callback.
3669 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3670 (linux_proc_pending_signals): New function.
3671 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3672
9407de8e
DJ
36732003-09-07 Daniel Jacobowitz <drow@mvista.com>
3674
3675 From Nick Kelsey <nickk@ubicom.com>:
3676 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3677 when the stop PC is at the beginning of a function also.
3678
2ef47cd0
DJ
36792003-09-06 Daniel Jacobowitz <drow@mvista.com>
3680
3681 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3682 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3683
6f4492c8
MK
36842003-09-06 Mark Kettenis <kettenis@gnu.org>
3685
3686 * sol-thread.c: Include "gdb_string.h".
3687
d3420b2f
MK
36882003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3689
3690 * gcore.c: Reorder include files in alphabetical order. Include
3691 "gdb_assert.h". Various coding style fixes.
3692 (derive_stack_segment, derive_heap_segment): Replace check for
3693 non-null BOTTOM and TOP with gdb_assert.
3694 (derive_heap_segment): Replace check for successful creation of
3695 ZERO with gdb_assert.
3696 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3697
5220ea4c
AC
36982003-09-04 Andrew Cagney <cagney@redhat.com>
3699
3700 * thread-db.c (verbose_dlsym): New function.
3701 (thread_db_load): Use verbose_dlsym
3702 (thread_db_new_objfile): Print that libthread_db was loaded, and
3703 that thread debugging was enabled.
3704
6e8c2c06
AC
37052003-09-04 Andrew Cagney <cagney@redhat.com>
3706
3707 * configure.tgt: Add "mips64*-*-*" target. Delete
3708 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3709 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3710 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3711 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3712 mips*-sony-*, and mips64*-*-elf* targets.
3713 * config/mips/embedl.mt: Delete file.
3714 * config/mips/embedl64.mt: Delete file.
3715 * config/mips/mips.mt: Delete file.
3716 * config/mips/mips64.mt: Delete file.
3717 * config/mips/tm-embed.h: Delete file.
3718 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3719 * config/mips/embed64.mt: Delete out-of-date comment.
3720
3a3bc038
AC
37212003-09-04 Andrew Cagney <cagney@redhat.com>
3722
3723 * hppa-tdep.c (hppa_gdbarch_init): Set
3724 "have_nonsteppable_watchpoint".
3725 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3726 * mips-tdep.c (mips_dump_tdep): Do not print
3727 HAVE_NONSTEPPABLE_WATCHPOINT.
3728 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3729 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3730 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3731 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3732
a957e642
CV
37332003-09-04 Corinna Vinschen <vinschen@redhat.com>
3734
3735 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3736 unused code. Add comment.
3737
a6fbcf2f
CV
37382003-09-04 Corinna Vinschen <vinschen@redhat.com>
3739
3740 * breakpoint.c (watchpoint_check): Check for pc being in an
3741 epilogue if watchpoint frame couldn't be found.
3742
c14a44d5
AC
37432003-09-04 Andrew Cagney <cagney@redhat.com>
3744
3745 * Makefile.in: Re-generate all dependencies.
3746
f6c40618
AC
37472003-09-03 Andrew Cagney <cagney@redhat.com>
3748
3749 * arch-utils.h (legacy_print_insn): Delete declaration.
3750 * arch-utils.c (legacy_print_insn): Delete function.
3751 * disasm.c (deprecated_tm_print_insn_info): Delete.
3752 (_initialize_disasm): Delete function, contained code initializing
3753 deprecated_tm_print_insn_info.
3754 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3755 (deprecated_tm_print_insn_info): Delete.
3756 (TARGET_PRINT_INSN): Do not provide a default.
3757 * gdbarch.h, gdbarch.c: Re-generate.
3758
242e8be5
AC
37592003-09-03 Andrew Cagney <cagney@redhat.com>
3760
3761 * disasm.c (fprintf_disasm): New function.
3762 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3763 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3764 reverts 2003-08-14 change.
3765 (_initialize_disasm): Call "init_disassemble_info", instead of
3766 INIT_DISASSEMBLE_INFO_NO_ARCH.
3767
3ffc3dda
MS
37682003-09-03 Michael Snyder <msnyder@redhat.com>
3769
3770 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3771
52d16ba8
AC
37722003-09-03 Andrew Cagney <cagney@redhat.com>
3773
3774 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3775 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3776 * symfile.c (syms_from_objfile): Update.
3777 (reread_symbols): `Update
3778 * exec.c (exec_file_attach): Update.
3779 (exec_file_attach): Update.
3780 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3781 2003-08-29 change.
3782 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3783
eb5492fa
DJ
37842003-09-03 Daniel Jacobowitz <drow@mvista.com>
3785
3786 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3787 trad-frame.h.
3788 (arm_get_cache): Delete macro.
3789 (struct arm_prologue_cache): Update comments. Make saved_regs into
3790 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3791 to prev_sp.
3792 (thumb_scan_prologue): Update for cache changes. Don't call
3793 DEPRECATED_PC_IN_CALL_DUMMY.
3794 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3795 argument and use it in desperation search for our prologue. Do not
3796 search past the specified PC.
3797 (arm_make_prologue_cache): Simplify.
3798
3799 (arm_prologue_this_id, arm_prologue_prev_register)
3800 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3801 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3802 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3803 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3804 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3805
3806 (arm_frame_chain_valid, arm_find_callers_reg)
3807 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3808 (arm_pop_frame): Delete obsolete methods.
3809 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3810
3811 (arm_gdbarch_init): Update for new frame methods. Register prologue
3812 and sigtramp unwinders. Set the default frame base method.
3813
3814 * Makefile.in (arm-tdep.o): Update dependencies.
3815 * varobj.c (find_frame_addr_in_frame_chain): Call
3816 get_frame_base_address.
3817 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3818
24de872b
DJ
38192003-09-03 Daniel Jacobowitz <drow@mvista.com>
3820
3821 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3822 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3823 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3824 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3825 Take NEXT_FRAME and CACHE arguments. Call
3826 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3827 Set unwound_pc in CACHE instead of modifying the frame argument.
3828 Don't bother checking the frame type when looking for sigtramp
3829 frames.
3830 (arm_make_prologue_cache, arm_frame_chain)
3831 (arm_init_extra_frame_info): New functions.
3832
9b8d791a
DJ
38332003-09-03 Daniel Jacobowitz <drow@mvista.com>
3834
3835 * arm-tdep.c (arm_get_cache): Define.
3836 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3837 unwound_sp, unwound_pc, and saved_regs.
3838 (thumb_scan_prologue): Take a cache instead of the frame.
3839 (arm_scan_prologue): Likewise.
3840 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3841 instead of a temporary frame.
3842 (arm_init_extra_frame_info): Allocate and use a cache.
3843 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3844
7ee3275f
AC
38452003-09-03 Andrew Cagney <cagney@redhat.com>
3846
3847 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3848 * config/mips/wince.mt (TM_CLIBS): Ditto.
3849 * config/sh/wince.mt (TM_CLIBS): Ditto.
3850 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3851 * config/sparc/sp64.mt (CC): Delete.
3852
57b29be7
AC
38532003-09-03 Andrew Cagney <cagney@redhat.com>
3854
3855 * defs.h: Do not include "arch-utils.h".
3856 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3857 GDB_MULTI_ARCH_PURE.
3858 * configure.in (GDB_MULTI_ARCH): Do not define.
3859 * configure, config.in: Regenerate.
3860 * configure.tgt: Do not set variable "gdb_multi_arch".
3861 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3862 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3863 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3864 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3865 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3866 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3867 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3868 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3869 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3870 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3871 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3872 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3873 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3874 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3875 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3876 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3877 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3878 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3879
12e035e2
MC
38802003-08-30 Michael Chastain <mec@shout.net>
3881
3882 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3883 * config/m68k/nm-hp300hpux.h: Delete.
3884 * config/m68k/tm-hp300hpux.h: Delete.
3885 * config/m68k/xm-hp300hpux.h: Delete.
3886 * config/m68k/xm-hp300bsd.h: Delete.
3887 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3888 tm-hp300hpux.h, xm-hp300hpux.h.
3889 * somsolib.c: Remove comment about hp300 shared libraries.
3890
bda34dc2
MK
38912003-08-31 Mark Kettenis <kettenis@gnu.org>
3892
5bca7895
MK
3893 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3894 Only define PTRACE_GET_THREAD_AREA is not already defined.
3895 Various style fixes in code and comments and some additional
3896 spelling fixes in comments. Move after functions dealing with
3897 debug registers.
3898 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3899 Fix coding-style.
3900
bda34dc2
MK
3901 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3902 frame_unwind_register_unsigned instead of
3903 frame_unwind_unsigned_register.
3904
c890192f
MK
39052003-08-30 Mark Kettenis <kettenis@gnu.org>
3906
3907 * configure.in: Search for gethostbyname in libnsl.
3908 * configure: Regenerated.
3909
60fac5b8
MK
39102003-08-29 Mark Kettenis <kettenis@gnu.org>
3911
e294916c
MK
3912 * configure.in: Remove redundant AC_MSG_RESULT in check for
3913 uintptr_t in stdint.h.
3914 * configure: Regenerated.
3915
c40d267a
MK
3916 * amd64-nat.h (struct regcache): Add opaque declaration.
3917
60fac5b8
MK
3918 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3919 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3920 Change "register array" to "register cache" in comments.
3921 (x86_64_linux_gregset64_reg_offset): New variable.
3922 (GETREGS_SUPPLIES): Remove macro.
3923 (supply_gregset): Call amd64_supply_native_gregset instead of
3924 x86_64_linux_supply_gregset.
3925 (fill_gregset): Rename `regno' to `regnum'. Call
3926 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3927 (store_regs): Rename `regno' to `regnum'.
3928 (store_fpregs): Rename `regno' to `regnum'.
3929 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3930 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3931 Reorganize function a bit.
3932 (store_inferior_registers): Rename `regno' to `regnum'. Use
3933 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3934 Reorganize function a bit.
3935 (_initialize_x86_64_linux_nat): New function.
3936 * config/i386/x86-64linux.mh.
3937
546143b6
AC
39382003-08-29 Andrew Cagney <cagney@redhat.com>
3939
3940 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3941 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3942 (target_remove_watchpoint): Delete macro.
3943 (target_insert_watchpoint): Delete macro.
3944 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3945 (remote_mips_stopped_by_watchpoint): Delete declaration.
3946 (remote_mips_remove_watchpoint): Delete declaration.
3947 (remote_mips_set_watchpoint): Delete declaration.
3948 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3949 * remote-mips.c (_initialize_remote_mips): Set
3950 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3951 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3952 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3953 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3954 (mips_stopped_by_watchpoint): Rename
3955 remote_mips_stopped_by_watchpoint.
3956 (mips_can_hardware_watchpoint): Rename
3957 remote_mips_can_use_hardware_watchpoint, update function
3958 signature.
3959
7bace51b
MK
39602003-08-29 Mark Kettenis <kettenis@gnu.org>
3961
b0f5c6f2
MK
3962 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3963 USER_DS. We haven't given them a register number yet.
3964
2a6d284d
MK
3965 * amd64-nat.h: New file.
3966 * amd64-nat.c: New file.
3967 * amd64fbsd-nat.c: Include "amd64-nat.h".
3968 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3969 (amd64fbsd32_r_reg_offset): New variable.
3970 (supply_gregset): Simply call amd64_supply_native_gregset.
3971 (fill_gregset): Rename `regno' to `regnum'. Simply call
3972 amd64_collect_native_gregset.
3973 (fill_fpregset): Rename `regno' to `regnum'.
3974 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3975 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3976 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3977 `fpregset_t'. Call amd64_supply_native_gregset instead of
3978 supply_gregset. Call x86_64_supply_fxsave instead of
3979 supply_fpregset.
3980 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3981 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3982 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3983 `fpregset_t'. Call amd64_collect_native_gregset instead of
3984 fill_gregset. Call x86_64_collect_fxsave instead of
3985 fill_fpregset.
3986 (_initialize_am64fbsd_nat): Initialize
3987 amd64_native_gregset32_reg_offset and
3988 amd64_native_gregset64_reg_offset.
3989 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3990
a16d75cc
MK
3991 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3992 null pointer. Fix typo in comment.
3993
7bace51b
MK
3994 * regcache.c (supply_register): Reimplement to call
3995 regcache_raw_supply.
3996 (regcache_collect): Reimplement by calling regcache_raw_collect.
3997
9a661b68
MK
39982003-08-28 Mark Kettenis <kettenis@gnu.org>
3999
4000 * regcache.c (register_buffer): Consitify first argument.
4001 (regcache_raw_supply, regcache_raw_collect): New
4002 functions.
4003
e94cc8fa
DJ
40042003-08-28 Daniel Jacobowitz <drow@mvista.com>
4005
4006 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
4007 by Nathan J. Williams.
4008
c64bd0ce
DJ
40092003-08-28 Daniel Jacobowitz <drow@mvista.com>
4010
4011 * lin-lwp.c (wait_lwp): New function, copied from
4012 stop_wait_callback. Clean up.
4013 (stop_wait_callback): Use wait_lwp.
4014
e5ab0dce
AC
40152003-08-28 Andrew Cagney <cagney@redhat.com>
4016
4017 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4018 flavour and disassembler options.
4019 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4020 (mips_gdbarch_init): Set "print_insn". Delete initialization of
4021 deprecated_tm_print_insn_info.
a8f4cde1 4022
a788de9b
AC
40232003-08-27 Andrew Cagney <cagney@redhat.com>
4024
4025 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4026 Use target_read_memory.
4027 (s390_get_frame_info): Update. Do not reference
4028 deprecated_tm_print_insn_info.
4029 (s390_check_function_end, s390_is_sigreturn): Ditto.
4030
36482093
AC
40312003-08-27 Andrew Cagney <cagney@redhat.com>
4032
4033 * Makefile.in (cris-tdep.o): Update dependencies.
4034 * cris-tdep.c: Include "gdb_assert.h".
4035 (cris_gdbarch_init): Set print_insn.
4036 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4037 (cris_delayed_get_disassembler): Simplify, directly call the
4038 disassembler returned by cris_get_disassembler.
4039 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4040 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4041 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4042 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4043 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4044 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4045 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4046 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4047 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4048 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4049 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4050 (gdb_print_insn_sparc): Delete function.
4051 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4052 deprecated_tm_print_insn_info.
4053 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4054 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4055 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4057 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4058 * s390-tdep.c (gdb_print_insn_s390): Delete function.
4059 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4060 (s390_gdbarch_init): Set print_insn.
4061
0285512f
AC
40622003-08-27 Andrew Cagney <cagney@redhat.com>
4063
4064 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4065 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4066 * infcall.c (call_function_by_hand): Convert the entry point
4067 address into a code address.
4068
cdcd5552
AC
40692003-08-27 Andrew Cagney <cagney@redhat.com>
4070
4071 * dsrec.c: Include "gdb_string.h".
4072 * Makefile.in (dsrec.o): Update dependencies.
4073
e85cddad
MC
40742003-08-27 Michael Chastain <mec@shout.net>
4075
4076 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4077
8bbfbb23
AC
40782003-08-27 Andrew Cagney <cagney@redhat.com>
4079
4080 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4081 (alpha_osf1_init_abi): Do not set call_dummy_address.
4082
ba058b66
DC
40832003-08-27 David Carlton <carlton@kealia.com>
4084
4085 From Randolph Chung <tausq@debian.org>:
4086 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4087 compiles with -Wformat-nonliteral -Werror.
4088
87f84c9d
JB
40892003-08-26 Jim Blandy <jimb@redhat.com>
4090
4091 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4092 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4093 bfd_lookup_symbol, since we only want symbols in code sections.
4094 (look_for_base): Pass zero as the SECT_FLAGS argument to
4095 bfd_lookup_symbol, since we're not concerned about which section
4096 the symbol is in.
4097
102d615a
JJ
40982003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4099
4100 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 4101 we are frameless or the return address register is already known.
102d615a 4102
cc7ad3ea
AC
41032003-08-26 Andrew Cagney <cagney@redhat.com>
4104
4105 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4106 in size. Add comments.
4107
af8b88dd
JJ
41082003-08-26 Jeff Johnston <jjohnstn@redhat.com>
4109
4110 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 4111 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 4112
e0a4f5a1
JM
41132003-08-26 Jason Merrill <jason@redhat.com>
4114
4115 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4116 case out of #ifdef MIPS block.
4117
4ae9ee8e
DJ
41182003-08-25 Daniel Jacobowitz <drow@mvista.com>
4119
4120 PR java/1322
4121 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4122 available before calling SECT_OFF_TEXT.
3c164570 4123 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 4124
004d836a
JJ
41252003-08-25 Jeff Johnston <jjohnstn@redhat.com>
4126
a8f4cde1 4127 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
4128 bof, and nat0-nat127 as pseudo-registers.
4129 (ia64_frame_cache): New struct used to cache frame info.
4130 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 4131 register grouping so registers without names are still saved and
004d836a 4132 restored.
a8f4cde1 4133 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
4134 pseudo values.
4135 (ia64_pseudo_register_read): New routine to read pseudo-registers.
4136 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 4137 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
4138 ia64_frame_cache.
4139 (examine_prologue): Change prototype to add next_frame pointer.
4140 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 4141 current frame matches the cfm that should occur for the prologues
004d836a
JJ
4142 alloc insn and if equal, mark as not frameless. At end of routine,
4143 if not frameless, calculate registers for the previous frame and store
4144 in the cache, if a cache is provided.
4145 (ia64_skip_prologue): Use new prototype when calling examine_prologue
4146 and pass 0 for next_frame.
4147 (ia64_store_return_value): Change to use convert_typed_floating()
4148 instead of calling ia64_convert_to_raw().
4149 (ia64_extract_return_value): Change to use convert_typed_floating()
4150 instead of calling ia64_convert_to_virtual().
4151 (ia64_frame_cache): New routine to support new frame model.
4152 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4153 (ia64_frame_sniffer): Ditto.
4154 (ia64_sigtramp_frame_init_saved_regs): Ditto.
4155 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4156 (ia64_sigtramp_frame_prev_register): Ditto.
4157 (ia64_sigtramp_frame_sniffer): Ditto.
4158 (ia64_frame_base_address): Ditto.
4159 (ia64_extract_struct_value_address): Change to issue error message.
4160 (ia64_frame_align): New routine to align sp.
4161 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 4162 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
4163 ia64_push_dummy_call().
4164 (ia64_push_return_address): Ditto.
4165 (ia64_unwind_dummy_id): New function.
4166 (ia64_unwind_pc): Ditto.
4167 (ia64_convert_register_p): Ditto.
4168 (ia64_register_to_value): Ditto.
4169 (ia64_value_to_register): Ditto.
4170 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4171 (ia64_register_byte, ia64_register_raw_size): Ditto.
4172 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4173 (ia64_saved_pc_after_call): Ditto.
4174 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4175 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4176 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4177 (ia64_register_convert_to_raw): Ditto.
4178 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4179 (ia64_init_extra_frame_info): Ditto.
4180 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4181 (ia64_gdbarch_init): Remove registering of deprecated functions that
4182 are no longer used. Add registration of new gdbarch functions.
4183 Remove registering deprecated_write_sp. Replace
4184 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4185 Delete set_gdbarch_deprecated_register_convertible(),
4186 set_gdbarch_deprecated_register_convert_to_virtual(), and
4187 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
4188 set_gdbarch_deprecated_register_size(),
4189 set_gdbarch_deprecated_register_bytes(),
4190 set_gdbarch_pcregnum(),
4191 set_gdbarch_deprecated_register_byte(),
4192 set_gdbarch_deprecated_register_raw_size(),
4193 set_gdbarch_deprecated_max_register_raw_size(),
4194 set_gdbarch_deprecated_register_virtual_size(),
4195 and set_gdbarch_deprecated_max_register_virtual_size() calls.
4196 Replace set_gdbarch_deprecated_extract_return_value() with
4197 set_gdbarch_extract_return_value(). Remove calls to:
4198 set_gdbarch_deprecated_saved_pc_after_call();
4199 set_gdbarch_deprecated_frame_chain(),
4200 set_gdbarch_deprecated_frame_saved_pc(),
4201 set_gdbarch_deprecated_frame_init_saved_regs(),
4202 set_gdbarch_deprecated_get_saved_register(),
4203 set_gdbarch_deprecated_call_dummy_words(),
4204 set_gdbarch_deprecated_sizeof_call_dummy_words(),
4205 set_gdbarch_deprecated_init_extra_frame_info(),
4206 set_gdbarch_deprecated_frame_args_address(),
4207 set_gdbarch_deprecated_frame_locals_address(),
4208 and set_gdbarch_deprecated_dummy_write_sp().
4209 Add set_gdbarch_convert_register_p(),
4210 set_gdbarch_register_to_value(),
4211 set_gdbarch_value_to_register(),
4212 set_gdbarch_push_dummy_call(),
4213 set_gdbarch_frame_align(),
4214 set_gdbarch_unwind_dummy_id(),
4215 set_gdbarch_unwind_pc(),
4216 frame_unwind_append_sniffer(),
4217 frame_unwind_append_sniffer(),
4218 and frame_base_set_default().
4219
aede7613
CD
42202003-08-25 Chris Demetriou <cgd@broadcom.com>
4221
4222 * configure.tgt: Document need for special "mipsisa64" handling.
4223 (mipsisa64*-*-linux64): Handle as target linux64.
4224 (mipsisa64*-*-*): Handle as target embed64.
4225
43c3a82e
MC
42262003-08-18 Michael Chastain <mec@shout.net>
4227
4228 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4229 objfile bug.
4230
6564f77d
MK
42312003-08-24 Mark Kettenis <kettenis@gnu.org>
4232
2de139ba
MK
4233 * i387-tdep.h: Update copyright date.
4234 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4235
6564f77d
MK
4236 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4237 CFLAGS games to reflect reality.
4238
42cf1509
AC
42392003-08-24 Andrew Cagney <cagney@redhat.com>
4240
4241 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4242 GDB_MULTI_ARCH is always non-zero.
4243 * osabi.c (_initialize_gdb_osabi): Ditto.
4244 (gdbarch_init_osabi): Ditto.
4245 * sparc-tdep.c: Ditto for #if code.
4246
0485f6ad
MK
42472003-08-23 Mark Kettenis <kettenis@gnu.org>
4248
4249 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4250 Update comments.
4251 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4252 comments.
4253 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4254 x86_64_supply_fxsave.
4255 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4256 x86_64_supply_fxsave.
4257 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4258 x86_64_supply_fxsave.
4259
c7716133
AJ
42602003-08-23 Andreas Jaeger <aj@suse.de>
4261
4262 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4263 i387_supply_fxsave.
4264
ed504bdf
MK
42652003-08-23 Mark Kettenis <kettenis@gnu.org>
4266
4267 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4268 i387_supply_register.
4269 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4270 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4271 i387_supply_fsave.
4272 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4273 i387_supply_fxsave.
4274 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4275 i387_supply_fsave.
4276 * i386bsd-nat.c (supply_fpregset): Adjust call to
4277 i387_supply_fsave.
4278 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4279 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4280 supply_fpregset.
4281 (store_inferior_registers): Remove extraneous whitespace. Call
4282 i387_fill_fsave instead of fill_fpregset.
4283 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4284 (supply_fpregset): Likewise.
4285 * i386v4-nat.c (supply_fpregset): Adjust call to
4286 i387_supply_fsave.
4287 * i386-interix-nat.c (supply_fpregset): Adjust call to
4288 i387_supply_fsave.
4289 * i386-linux-nat.c (supply_fpregset): Adjust call to
4290 i387_supply_fsave.
4291 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4292 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4293 i387supply_fsave and i387_supply_fxsave.
4294 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4295 Incorporate code from `i387_supply_register.
4296 (i387_supply_register): Remove.
4297 (i387_supply_fxsave): Add `regnum' argument.
4298 Update comments.
4299 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4300 prototype.
4301 (i387_supply_register): remove prototype.
4302 Update comments.
a8f4cde1 4303
4be5d520
MC
43042003-08-22 Michael Chastain <mec@shout.net>
4305
4306 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4307 Add lines for files in gdb/testsuite/gdb.cp/* that are
4308 still not 8.3 unique.
4309
7ed85d26
DJ
43102003-08-22 Daniel Jacobowitz <drow@mvista.com>
4311
4312 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4313 TYPE_VPTR_FIELDNO is valid.
4314
eb0d3137
MK
43152003-08-19 Mark Kettenis <kettenis@gnu.org>
4316
4317 * utils.c (set_width_command): Remove prototypes.
4318 (set_screen_size): New prototype.
4319 (init_page_info): Simplify by fetching the screen size from
4320 Readline. Call set_screen_size.
4321 (set_screen_size): New function.
4322 (set_width): Add missing whitespace in comment.
4323 (set_width_command): Call set_screen_size.
4324 (set_height_command): New function.
4325 (initialize_utils): Fix formatting. Make "set height" command
4326 call set_height_command. Remove redundant code that turns off
4327 pagination if output isn't a terminal. Remove redundant call to
4328 set_width_command.
a8f4cde1 4329
7e6d0ac8
MK
43302003-08-22 Mark Kettenis <kettenis@gnu.org>
4331
3567a8ea
MK
4332 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4333 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4334 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4335 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4336 `case' keyword.
4337 (sparc64_register_info): Give the reister with number
4338 SPARC64_STATE_REGNUM a name.
4339 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4340 %asi and %ccr.
4341 (sparc64_push_dummy_call): Take BIAS into account when checking
4342 stcak alignment.
4343 (sparc_software_single_step): Remove assertions that check whether
4344 NPC and NNPC were zero.
4345 (sparc_supply_rwindow): Make public. Merge functionality with
4346 sparc64_supply_rwindow.
4347 (sparc_fill_rwindow): Make public. Merge functionality with
4348 sparc64_fill_rwindow.
4349 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4350 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4351 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4352 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4353 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4354
7e6d0ac8
MK
4355 * reggroups.c: Add whitespace after declarations of local
4356 variables in functions.
4357
72e5f484
MC
43582003-08-21 Michael Chastain <mec@shout.net>
4359
4360 * gdbtypes.h: Change array bound type from an int to enum.
4361
435ac228
AC
43622003-08-21 Andrew Cagney <cagney@redhat.com>
4363
4364 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4365 * config/sparc/tm-sparc.h: Ditto.
4366 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4367 unconditionally.
4368 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4369
0d0e1a63
MK
43702003-07-13 Mark Kettenis <kettenis@gnu.org>
4371
4372 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4373 (register_objfile_data, set_objfile_data, objfile_data): New
4374 prototypes.
4375 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4376 prototypes.
4377 (allocate_objfile): Call objfile_alloc_data.
4378 (free_objfile): Call objfile_free_data.
4379 (struct objfile_data): New.
4380 (struct objfile_data_registration): New.
4381 (struct objfile_data_registry): New.
4382 (objfile_data_registry): New variable.
4383 (register_objfile_data): New function.
4384 (objfile_alloc_data, objfile_free_data): New functions.
4385 (set_objfile_data, objfile_data): New functions.
4386 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4387 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4388 (_initialize_dwarf2_frame): New function and prototype.
4389
d90cf509
AC
43902003-08-21 Andrew Cagney <cagney@redhat.com>
4391
4392 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4393 a specific architecture.
4394 * arch-utils.h (set_architecture_from_arch_mach): Delete
4395 declaration.
4396 (target_architecture_hook): Delete declaration.
4397 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4398 (default_float_format): Assume GDB_MULTI_ARCH.
4399 (default_double_format): Assume GDB_MULTI_ARCH.
4400 (set_endian_from_file): Delete function.
4401 (arch_ok): Delete function.
4402 (set_arch): Delete function.
4403 (set_architecture_from_arch_mach): Delete function.
4404 (set_architecture_from_file): Delete function.
4405 (set_architecture): Assume GDB_MULTI_ARCH.
4406 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4407
8b39fe56
MK
44082003-08-21 Mark Kettenis <kettenis@gnu.org>
4409
4410 Rewrite FreeBSD/sparc64 native configuration.
4411 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4412 * sparc64fbsd-nat.c: New file.
4413 * sparc64fbsd-tdep.c: New file.
4414 * sparc64-tdep.c sparc64-tdep.h: New files.
4415 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4416 sparc64fbsd-tdep.o): New dependencies.
4417 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4418 and sparc64fbsd-tdep.c.
4419 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4420 * config/sparc/fbsd.mh: Remove copyright notice.
4421 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4422 sparcbsd-nat.o.
4423 * config/sparc/fbsd.mt: Remove copyright notice.
4424 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4425 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4426 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4427 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4428 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4429 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4430 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4431 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4432 "sparc/tm-sp64.h".
4433 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4434 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4435
a7f19c79
MC
44362003-08-21 Michael Chastain <mec@shout.net>
4437
4438 * symtab.h: Add doco on the space critical structures and
4439 some measurements of space usage.
4440
da08ea5b
MS
44412003-08-21 Michael Snyder <msnyder@redhat.com>
4442
4443 * tracepoint.c (trace_dump_command): Trace break address
4444 is subject to DECR_PC_AFTER_BREAK.
4445 (set_traceframe_context): Make "trace_line" an int.
4446 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4447
6df2bf50
MS
44482003-08-20 Michael Snyder <msnyder@redhat.com>
4449
4450 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4451 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4452 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4453 argument passing.
a8f4cde1 4454 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4455 functions, replace sh_push_dummy_call.
4456 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4457
0955bbf0
MC
44582003-08-20 Michael Chastain <mec@shout.net>
4459
4460 * gdbtypes.h (struct main_type): Rearrange to save space.
4461
260a4188
MS
44622003-08-20 Michael Snyder <msnyder@redhat.com>
4463
4464 * trad-frame.c: Comment typo fix.
4465
8baa6f92
KB
44662003-08-20 Michael Snyder <msnyder@redhat.com>
4467 Kevin Buettner <kevinb@redhat.com>
4468
4469 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4470 (frv_frame_init_saved_regs): Add declaration.
4471 (frame_extra_info): Add new field ``saved_regs''.
4472 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4473 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4474 Update frame related code.
4475 (frv_extract_struct_value_address): Adjust formatting.
4476 * Makefile.in (frv-tdep.o): Update dependencies.
4477 * config/frv/tm-frv.h (target_insert_watchpoint)
4478 (target_remove_watchpoint, target_insert_hw_breakpoint)
4479 (target_remove_hw_breakpoint): Delete these macros.
4480 (remote_insert_watchpoint, remote_remove_watchpoint)
4481 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4482 these declarations.
4483
87193939
MC
44842003-08-20 Michael Chastain <mec@shout.net>
4485
4486 * defs.h (ENUM_BITFIELD): New macro.
4487 * symtab.h (ENUM_BITFIELD): Use it.
4488 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4489
062103ba
SA
44902003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4491
4492 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4493
8b148df9
AC
44942003-08-18 Andrew Cagney <cagney@redhat.com>
4495
4496 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4497 * gdbarch.h, gdbarch.c: Re-generate.
4498 * infcall.c (call_function_by_hand): Adjust the SP by
4499 frame_red_zone_size before allocating any stack space.
4500 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4501 * x86-64-tdep.c (x86_64_frame_align): New function.
4502 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4503
4504 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4505 Remove code adjusting SP so that it skips over the Red Zone.
4506
954a4db8
MK
45072003-08-18 Mark Kettenis <kettenis@gnu.org>
4508
4509 * NEWS (New native configurations): Mention FreeBSD/amd64.
4510
1a241548
AC
45112003-08-18 Andrew Cagney <cagney@redhat.com>
4512
4513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4514 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4515 "m68k_frame_p".
4516 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4517
f82b2acd
MK
45182003-08-18 Mark Kettenis <kettenis@gnu.org>
4519
4520 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4521
4056d258
ML
45222003-08-18 Michal Ludvig <mludvig@suse.cz>
4523
4524 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4525 Define.
4526 * i386-linux-nat.c: Include "linux-nat.h".
4527 (child_post_startup_inferior): New function.
a8f4cde1 4528
99ab4326
MK
45292003-08-18 Mark Kettenis <kettenis@gnu.org>
4530
4531 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4532 at the start of a frameless function. This probably fixes PR
4533 backtrace/1338.
4534
c8d5f0d6
MC
45352003-08-17 Michael Chastain <mec@shout.net>
4536
4537 * symfile.c (find_sym_fns): Remove special case for apollo target.
4538
9016a515
DJ
45392003-08-17 Daniel Jacobowitz <drow@mvista.com>
4540
4541 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4542 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4543 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4544 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4545 (linux_supports_tracevforkdone): New function.
4546 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4547 TRACEVFORKDONE.
4548 (child_follow_fork): Handle vfork.
4549 (linux_handle_extended_wait): Likewise. Also handle exec.
4550 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4551 * NEWS: Mention fork tracing.
4552
c538c11c
DJ
45532003-08-17 Daniel Jacobowitz <drow@mvista.com>
4554
4555 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4556
4de4c07c
DJ
45572003-08-17 Daniel Jacobowitz <drow@mvista.com>
4558
4559 * Makefile.in (i386-linux-nat.o): Update dependencies.
4560 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4561 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4562 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4563 * i386-linux-nat.c: Include "linux-nat.h".
4564 (child_post_startup_inferior): New function.
4565 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4566 * infptrace.c (kill_inferior): Wrap in #ifdef.
4567 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4568 attaching to each LWP.
4569 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4570 (init_lin_lwp_ops): Fill in some more operations.
4571 * linux-nat.h (linux_enable_event_reporting)
4572 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4573 prototypes.
4574 * linux-nat.c (linux_enable_event_reporting): New function.
4575 (child_post_attach, linux_child_post_startup_inferior)
4576 (child_post_startup_inferior, child_follow_fork)
4577 (linux_handle_extended_wait, kill_inferior): New functions.
4578
7996bcec
AC
45792003-08-16 Andrew Cagney <cagney@redhat.com>
4580
4581 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4582 * gdbarch.h, gdbarch.c: Re-generate.
4583
3d48a7a0
MK
45842003-08-16 Mark Kettenis <kettenis@gnu.org>
4585
4586 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4587
7989c619
AC
45882003-08-16 Andrew Cagney <cagney@redhat.com>
4589
4590 * NEWS: Mention that "set prompt-escape-char" was deleted.
4591 * top.c (get_prompt_1): Delete function.
4592 (gdb_prompt_escape):
4593 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4594 prompt-escape-char" command.
4595 (MAX_PROMPT_SIZE): Delete macro.
4596 (get_prompt): Simplify, do not call get_prompt_1.
4597
07978cd8
AC
45982003-08-16 Andrew Cagney <cagney@redhat.com>
4599
4600 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4601 -Werror. -Wformat-nonliteral problems.
4602
3ff7cf9e
JB
46032003-08-15 J. Brobecker <brobecker@gnat.com>
4604
4605 Further multiarching work mostly for hppa64-*-hpux11:
4606 * hppa-tdep.h: New file.
4607 * hppa-tdep.c: #include hppa-tdep.c.
4608 (hppa32_num_regs): Renamed from hppa_num_regs.
4609 (hppa64_num_regs): New constant.
4610 (hppa64_call_dummy_breakpoint_offset): New constant.
4611 (hppa32_call_dummy_length): New constant.
4612 (hppa64_call_dummy_length): New constant.
4613 (hppa32_stack_align): Make name 32bit explicit.
4614 (hppa32_register_virtual_type): Likewise.
4615 (hppa32_extract_return_value): Likewise.
4616 (hppa32_use_struct_convention): Likewise.
4617 (hppa32_store_return_value): Likewise.
4618 (hppa64_register_virtual_type): New function.
4619 (hppa64_extract_return_value): New function.
4620 (hppa64_use_struct_convention): New function.
4621 (hppa64_store_return_value): New function.
4622 (hppa_frame_locals_address): Remove declaration, function does
4623 not exist anymore.
4624 (hppa_register_byte): Add support for PA64 ABI.
4625 (hppa_gdbarch_init): Add support for PA64 ABI.
4626 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4627 Make name 32bit explicit.
4628 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4629 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4630 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4631 (hppa64_hpux_frame_base_before_sigtramp): New function.
4632 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4633 * config/pa/tm-hppa64.h: Remove macros that are no longer
4634 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4635 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4636 * config/pa/tm-hppah.h: Update function calls in macros
4637 following the function renaming in hppa-hpux-tdep.c.
4638 * Makefile.in (hppa_tdep_h): New variable.
4639 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4640
5d05ca6d
MS
46412003-08-14 Michael Snyder <msnyder@redhat.com>
4642
4643 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4644
37ba2569
JB
46452003-08-13 J. Brobecker <brobecker@gnat.com>
4646
4647 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4648 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4649 routine.
4650
aed7f26a
MS
46512003-08-13 Michael Snyder <msnyder@redhat.com>
4652
4653 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4654 (frv_saved_pc_after_call): Use deprecated ftype.
4655 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4656 (frv_remote_translate_xfer_address): Remove.
4657 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4658
752d4ac1
JB
46592003-08-13 J. Brobecker <brobecker@gnat.com>
4660
4661 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4662 initialization after the common gdbarch initialization, not before.
4663
1426ac1d
JB
46642003-08-13 J. Brobecker <brobecker@gnat.com>
4665
4666 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4667 (ADDR_BITS_REMOVE): Remove, redundant.
4668
b6fbdd1d
JB
46692003-08-13 J. Brobecker <brobecker@gnat.com>
4670
4671 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4672 gdbarch method to clear the 2 low bits of text addresses.
4673
44160db3
AC
46742003-08-12 Andrew Cagney <cagney@redhat.com>
4675
4676 * Makefile.in (dsrec.o): Update dependencies.
4677 * dsrec.c: Include "gdb_assert.h".
4678 (make_srec): Use snprintf instead of sprintf, use a literal format
4679 string.
4680
bcf7d3ca
AC
46812003-08-12 Andrew Cagney <cagney@redhat.com>
4682
4683 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4684 FRAME_OBSTACK_ZALLOC.
4685
49ed40de
KB
46862003-08-12 Kevin Buettner <kevinb@redhat.com>
4687
4688 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4689 SSE registers.
4690
b246147c
MK
46912003-08-10 Mark Kettenis <kettenis@gnu.org>
4692
4693 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4694 amd64fbsd_sc_reg_offset): Add extern declarations.
4695 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4696 declarations.
4697
d95fdc0d
BE
46982003-08-11 Ben Elliston <bje@wasabisystems.com>
4699
4700 * MAINTAINERS (write after approval): Update my mail address.
4701
cf6a0e73
AC
47022003-08-10 Andrew Cagney <cagney@redhat.com>
4703
4704 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4705
f837910f
MK
47062003-08-10 Mark Kettenis <kettenis@gnu.org>
4707
e2dbbd2d
MK
4708 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4709 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4710 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4711 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4712 i386bsd_sc_reg_offset): Add extern declarations.
4713 * i386obsd-nat.c: Include "i386-tdep.h"
4714 (_initialize_i386obsd_nat): Remove extern declarations.
4715 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4716 declarations.
4717 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4718 declarations.
4719
f837910f
MK
4720 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4721 instead of frame_read_register.
4722 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4723 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4724 SP_REGNUM.
4725 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4726 instead of frame_unwind_unsigned_register. Use
4727 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4728 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4729 instead of read_register. Use builtin_type_void_data_ptr instead
4730 of builtin_type_void_func_ptr when extracting the address of the
4731 jmp_buf.
4732 (i386_extract_return_value, i386_store_return_value,
4733 i386_pseudo_register_read, i386_pseudo_register_write): Use
4734 register_size instead REGISTER_RAW_SIZE.
4735
edcf254d
AC
47362003-08-10 Andrew Cagney <cagney@redhat.com>
4737
4738 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4739 sprintf. Make "name" constant.
4740
26604a34
MK
47412003-08-10 Mark Kettenis <kettenis@gnu.org>
4742
192285c6
MK
4743 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4744 instead of frame_read_register.
f837910f
MK
4745 (i387_print_float_info): Use get_frame_register and
4746 get_frame_register_unsigned instead of frame_register_read.
192285c6 4747
f0925262
MK
4748 * i386fbsd-nat.c: Include "i386-tdep.h".
4749 (child_resume): Make `eflags' an ULONGEST. Use
4750 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4751 instead of register_read and register_write.
4752
a144416f
MK
4753 * i386bsd-nat.c (fetch_inferior_registers,
4754 store_inferior_registers): Don't use && at the end of a line.
4755 (_initialize_i386bsd_nat): Fix typo.
4756
fec74868
MK
4757 * frame.c (_initialize_frame): Add missing backslash.
4758
87232496
MK
4759 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4760 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4761 and supply_register instead of manipulating the register buffer
4762 directly.
4763
c9b9de0b
MK
4764 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4765 * config/i386/nm-i386sol2.h
4766 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4767
26604a34
MK
4768 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4769 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4770 instructions that GCC likes to mingle into the prologue. Fixes
4771 gdb/1253 and gdb/1255.
4772
25d29d70
AC
47732003-08-09 Andrew Cagney <cagney@redhat.com>
4774
4775 Fix GDB PR cli/926.
4776 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4777 * command.h (add_setshow_uinteger_cmd): Declare.
4778 * frame.c (set_backtrace_cmd): New function.
4779 (show_backtrace_cmd): New function.
4780 * frame.c (_initialize_frame): Replace "set/show
4781 backtrace-below-main" with "set/show backtrace past-main". Add
4782 command "set/show backtrace limit".
4783 (backtrace_past_main): Rename "backtrace_below_main".
4784 (backtrace_limit): New variable.
4785 (get_prev_frame): Update. Check the backtrace_limit.
4786
9ebf4acf
AC
47872003-08-09 Andrew Cagney <cagney@redhat.com>
4788
4789 * defs.h (xstrprintf): Declare.
4790 * utils.c (xstrprintf): New function.
4791 * breakpoint.c (insert_breakpoints): Replace sprintf and
4792 non-literal format strings, with xstrprintf and cleanups.
4793 (delete_breakpoint,breakpoint_re_set): Ditto.
4794 (commands_command, insert_breakpoints): Ditto.
4795 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4796 (break_at_finish_command_1): Ditto.
4797
3771659b
AC
47982003-08-09 Andrew Cagney <cagney@redhat.com>
4799
4800 * MAINTAINERS (language support): List Adam Fedor as Objective C
4801 maintainer.
4802
b4263afa
JB
48032003-08-08 J. Brobecker <brobecker@gnat.com>
4804
4805 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4806 are now multiarched.
4807
d84defb1
JB
48082003-08-08 J. Brobecker <brobecker@gnat.com>
4809
4810 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4811 longer necessary now that hppa64 is partially multiarch'ed.
4812
f786f615
AC
48132003-08-08 Andrew Cagney <cagney@redhat.com>
4814
4815 * interps.c (interp_set): Check for a NULL "old_interp".
4816
c938e9b0
L
48172003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4818
4819 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4820 (install-only): Support DESTDIR.
4821 (uninstall): Likewise.
4822 (install-gdbtk): Likewise.
4823
9a146a11
EZ
48242003-08-08 Elena Zannoni <ezannoni@redhat.com>
4825
4826 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4827 contains something meaningful at all times.
4828
4829Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4830
62599e99 4831 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4832
56296155
BC
4833Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4834
62599e99 4835 * MAINTAINERS (write after approval): Added self.
56296155 4836
9710e734
AC
48372003-08-07 Andrew Cagney <cagney@redhat.com>
4838
4839 * inferior.h (AT_SYMBOL): Define.
4840 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4841 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4842 * mips-tdep.c (mips_call_dummy_address): Delete function.
4843 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4844 set call_dummy_address.
4845
98b3ab73
AC
48462003-08-07 Andrew Cagney <cagney@redhat.com>
4847
4848 * language.c (op_error): Delete function.
4849 (binop_type_check): Delete function.
4850 * language.h (type_op_error, range_op_error): Delete macros.
4851 (op_error): Delete declaration.
4852
2fcf52f0
AC
48532003-08-07 Andrew Cagney <cagney@redhat.com>
4854
4855 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4856
abd4220e 48572003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4858
abd4220e 4859 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4860 (x86_64_push_arguments): Skip the red zone.
abd4220e 4861
9dd5f34f
AC
48622003-08-05 Andrew Cagney <cagney@redhat.com>
4863
4864 * reggroups.c (reggroup_next): Check for the final entry.
4865
e5e78edc
AC
48662003-08-04 Andrew Cagney <cagney@redhat.com>
4867
ab4e3d93
AC
4868 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4869 * cli/cli-script.c (define_command): Call query directly, instead
4870 of passing it a buffer.
4871 * ocd.c (ocd_error): Pass error a constant format string.
4872 * remote-mips.c (mips_error): Use fputs_filtered.
4873
1062ca82
AC
4874 * solib-svr4.c (_initialize_svr4_solib): Update
4875 register_gdbarch_data call.
4876 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4877
fcc1c85c
AC
4878 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4879 (register_gdbarch_data): Delete "free" parameter. Update
4880 comments.
4881 * gdbarch.h, gdbarch.c: Re-generate.
4882 * reggroups.c (_initialize_reggroup): Update.
4883 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4884 * frame-base.c (_initialize_frame_base): Update.
4885 * frame-unwind.c (_initialize_frame_unwind): Update.
4886 * user-regs.c (_initialize_user_regs): Update.
4887 * remote.c (_initialize_remote): Update.
4888 * regcache.c (_initialize_regcache): Update.
4889
116f06ea
AC
4890 * regcache.c (xfree_regcache_descr): Delete function.
4891 (_initialize_regcache): Update call to register_gdbarch_data.
4892 (init_regcache_descr, init_legacy_regcache_descr): Use
4893 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4894
e5e78edc
AC
4895 * remote.c (free_remote_state): Delete function.
4896 (_initialize_remote): Update register_gdbarch_data.
4897 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4898 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4899
6c7d17ba
AC
49002003-08-04 Andrew Cagney <cagney@redhat.com>
4901
4902 * reggroups.c (struct reggroup_el): Define.
4903 (struct reggroups): Delete field "nr_group". Replace array
4904 "group" with a "first" to "last" linked list.
4905 (reggroups_init): Update. Allocate using gdbarch's obstack.
4906 (reggroups_free): Delete function.
4907 (add_group): Update. Add "el" parameter.
4908 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4909 (default_groups): Update.
4910 (reggroup_next): Replace reggroups.
4911 (reggroups_dump): Update.
4912 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4913 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4914 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4915
89b7795b
DJ
49162003-08-04 Daniel Jacobowitz <drow@mvista.com>
4917
4918 * Makefile.in (tui-interp.o): Update dependencies.
4919
306d9ac5
DC
49202003-08-04 David Carlton <carlton@kealia.com>
4921
4922 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4923 to internal_error call.
4924 * source.c (forward_search_command): Add "%s" format argument.
4925 (reverse_search_command): Ditto.
4926 * top.c (quit_confirm): Ditto.
4927 * cli/cli-setshow.c (do_setshow_command): Ditto.
4928 * cp-valprint.c (cp_print_class_method): Replace
4929 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4930 (cp_print_class_member): Ditto.
4931 * event-top.c (command_line_handler): Ditto.
4932 * linux-proc.c (linux_info_proc_cmd): Ditto.
4933 * p-typeprint.c (pascal_type_print_base): Ditto.
4934 * p-valprint.c (pascal_object_print_class_method): Ditto.
4935 (pascal_object_print_class_member): Ditto.
4936 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4937 * remote.c (remote_cisco_section_offsets): Ditto.
4938 * top.c (command_line_input): Ditto.
4939 * utils.c (vwarning,error_stream,quit): Ditto.
4940 * valprint.c (print_floating,print_binary_chars)
4941 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4942
57bfe177
AC
49432003-08-04 Andrew Cagney <cagney@redhat.com>
4944
4945 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4946
e546b999
AC
49472003-08-02 Andrew Cagney <cagney@redhat.com>
4948
4949 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4950 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4951 amd64fbsd-nat.c.
4952
91092ee5
AC
49532003-08-02 Andrew Cagney <cagney@redhat.com>
4954
4955 * Makefile.in: Update all dependencies and definitions.
4956
889f28e2
AF
49572003-08-02 Adam Fedor <fedor@gnu.org>
4958
4959 * linespec.c (is_objc_method_format): New function
4960 (decode_line_1, locate_first_half): Use it.
4961 Fixes PR objc/1298
4962
880bc914
AC
49632003-08-01 Andrew Cagney <cagney@redhat.com>
4964
4965 * NEWS: Mention that m32r is multi-arch.
4966 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4967 * configure.tgt: Recognize m32r-*-*.
4968 * config/m32r/tm-m32r.h: Delete file.
4969 * config/m32r/m32r.mt: New file.
a8f4cde1 4970 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4971 gethostname succeeds, in order to avoid a compilation
4972 warning.
4973 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4974 compiler warning.
4975
19f59343
MS
49762003-08-01 Michael Snyder <msnyder@redhat.com>
4977
4978 * sh-tdep.c (sh_frame_align): New gdbarch method.
4979 (sh_gdbarch_init): Set up frame_align method.
4980
4e7d7511
MS
49812003-07-31 Michael Snyder <msnyder@redhat.com>
4982
4983 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4984 which is already covered by the new frames infrastructure.
4985
63022984
AC
49862003-07-31 Andrew Cagney <cagney@redhat.com>
4987
4988 * user-regs.c (struct user_reg): Add "next" link.
4989 (struct user_regs): Replace "user" with "first" and "last" links.
4990 (append_user_reg): Add pre-allocated "reg" parameter.
4991 (builtin_user_regs): Provide initial value for "last".
4992 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4993 (user_regs_init): Allocate memory from the gdbarch obstack.
4994 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4995 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4996 linked list.
4997 (usernum_to_user_reg): New function.
4998 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4999 (value_of_user_reg): Use usernum_to_user_reg.
5000 (user_regs_free): Delete function.
5001 (_initialize_user_regs): Update register_gdbarch_data call.
5002
7cf6e574
DJ
50032003-07-31 Daniel Jacobowitz <drow@mvista.com>
5004
5005 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5006
c48a845b
MS
50072003-07-30 Michael Snyder <msnyder@redhat.com>
5008
4e7d7511 5009 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 5010 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
5011 value_being_returned.
5012 * infcmd.c (print_return_value): Pass zero as struct_addr.
5013 * values.c (value_being_returned): If struct_addr is passed,
5014 use it instead of trying to recover it from the inferior.
5015
f0d8db19
KB
50162003-07-30 Kevin Buettner <kevinb@redhat.com>
5017
5018 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5019 the prologue analyzer won't need to attempt to extract the pc
5020 value from the woefully incomplete dummy frame.
5021 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5022 possible. Disable code which modifies the frame.
5023
e5c113a1
AC
50242003-07-28 Andrew Cagney <cagney@redhat.com>
5025
5026 * annotate.c (annotate_breakpoints_headers): Restrict annotation
5027 to level 2.
5028 (annotate_breakpoints_table, annotate_record): Ditto.
5029 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5030 (annotate_field_name_end, annotate_field_value): Ditto.
5031 (annotate_field_end, annotate_frame_source_begin): Ditto.
5032 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5033 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5034 (annotate_frame_begin, annotate_frame_function_name): Ditto.
5035 (annotate_frame_address_end, annotate_frame_address): Ditto.
5036 (annotate_frame_args, annotate_frame_end): Ditto.
5037 (annotate_frame_where, annotate_arg_begin): Ditto.
5038 (annotate_arg_name_end, annotate_arg_value): Ditto.
5039 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5040 (annotate_function_call, annotate_signal_name): Ditto.
5041 (annotate_signal_string, annotate_signal_name_end): Ditto.
5042 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5043 (annotate_value_begin, annotate_value_history_value): Ditto.
5044 (annotate_value_history_end, annotate_value_end): Ditto.
5045 (annotate_display_begin, annotate_display_number_end): Ditto.
5046 (annotate_display_format, annotate_display_expression): Ditto.
5047 (annotate_display_expression_end, annotate_display_value): Ditto.
5048 (annotate_display_end, annotate_array_section_begin): Ditto.
5049 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5050 (annotate_elt, annotate_array_section_end): Ditto.
5051
bb1db049
AC
50522003-07-28 Andrew Cagney <cagney@redhat.com>
5053
5054 * regcache.c (struct regcache_descr): Update comments on
5055 nr_raw_registers.
5056 (init_legacy_regcache_descr): Don't set nr_raw_registers or
5057 sizeof_raw_register_valid_p.
5058 (init_regcache_descr): Set nr_raw_registers and
5059 sizeof_raw_register_valid_p before calling
5060 init_legacy_regcache_descr.
5061
20e6603c
AC
50622003-07-28 Andrew Cagney <cagney@redhat.com>
5063
5064 * mips-tdep.c (print_gp_register_row): Print the GPR's register
5065 MOD NUM_REGS.
5066
db742940
DJ
50672003-07-28 Daniel Jacobowitz <drow@mvista.com>
5068
5069 * thread.c (info_threads_command): Use get_selected_frame ().
5070 Check that there is at least one non-sentinel frame.
5071
ce7f4371
SC
50722003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5073
5074 * m68hc11-tdep.c (struct frame_extra_info): Remove.
5075 (m68hc11_pop_frame): Remove.
5076 (m68hc11_frame_saved_pc): Remove.
5077 (m68hc11_frame_chain): Remove.
5078 (m68hc11_frame_init_saved_regs): Remove.
5079 (m68hc11_init_extra_frame_info): Remove.
5080 (m68hc11_store_struct_return): Remove.
5081 (m68hc11_saved_pc_after_call): Remove.
5082
1ea653ae
SC
50832003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5084
5085 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5086 frame unwind information.
5087 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5088 and adapted for frame unwinding.
5089 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5090 (m68hc11_unwind_pc): New function.
5091 (m68hc11_frame_unwind_cache): New function to analyze frames.
5092 (m68hc11_frame_this_id): New function to create new frame struct.
5093 (m68hc11_frame_prev_register): New function to unwind a register from
5094 the frame.
5095 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5096 (m68hc11_frame_p): New function for the above.
5097 (m68hc11_frame_base_address): New function to return fp of frame.
5098 (m68hc11_frame_args_address): Update for frame.
5099 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5100 (m68hc11_unwind_sp): New function.
5101 (m68hc11_unwind_dummy_id): New function.
5102 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5103 calls.
5104
c8a7f6ac
SC
51052003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5106
5107 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5108 (m68hc11_guess_from_prologue): Advance the pc and frame size only
5109 when we are beyond the current pc.
5110
3dc990bf
SC
51112003-07-27 Stephane Carrez <stcarrez@nerim.fr>
5112
5113 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5114 from m68hc11_push_arguments.
5115 (m68hc11_push_arguments): Remove.
5116 (m68hc11_push_return_address): Remove.
5117 (m68hc11_gdbarch_init): Install the above; remove above deprecated
5118 handlers; remove deprecated_extra_stack_alignment_needed.
5119
222e5d1d
AC
51202003-07-27 Andrew Cagney <cagney@redhat.com>
5121
5122 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5123 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5124 REAL_PC and not the pointer.
5125 * hppa-hpux-tdep.c: Include frame.h
5126
a7e9a47e
AC
51272003-07-27 Andrew Cagney <cagney@redhat.com>
5128
5129 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5130 GDB_MULTI_ACH_PARTIAL.
5131
7e3dd49e
AC
51322003-07-27 Andrew Cagney <cagney@redhat.com>
5133
5134 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5135 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5136 operator at start and not end of line.
5137 (decode_prologue): Ditto.
5138 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5139 frame_unwind_register_unsigned instead of
5140 frame_unwind_unsigned_register.
5141 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5142 read_register.
5143 (m32r_push_dummy_call): Use register_size instead of
5144 REGISTER_RAW_SIZE.
5145 (m32r_frame_sniffer): Replace m32r_frame_p.
5146 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5147 * m32r-rom.c (report_transfer_performance): Delete extern
5148 declaration.
5149 (m32r_load, m32r_upload_command): Use print_transfer_performance
5150 instead of report_transfer_performance.
5151 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5152 / add_show_from_set.
5153
0880807f
AC
51542003-07-26 Andrew Cagney <cagney@redhat.com>
5155
5156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5157 store_return_value and extract_struct_value_address.
5158
64ae9269
DJ
51592003-07-26 Daniel Jacobowitz <drow@mvista.com>
5160
5161 PR c++/1267
5162 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5163 NULL, default to the section containing PC.
5164
e286caf2
SC
51652003-07-24 Stephane Carrez <stcarrez@nerim.fr>
5166
5167 * NEWS: Mention "regs" deprecated for m68hc11 too.
5168
5169 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5170 (m68hc11_print_register): New function to print out one register.
5171 (m68hc11_print_registers_info): New function to print registers.
5172 (show_regs): Deprecate and use the above.
5173 (m68hc11_gdbarch_init): Install the print_registers_info.
5174
705b278b
JJ
51752003-07-24 Jeff Johnston <jjohnstn@redhat.com>
5176
5177 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5178 that we have a SIGTRAP before returning non-zero.
5179
63cd4198
EZ
51802003-07-23 Michal Ludvig <mludvig@suse.cz>
5181 Elena Zannoni <ezannoni@redhat.com>
5182
a8f4cde1 5183 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
5184 find_function_start_sal() returns empty record.
5185
6926787d
AS
51862003-07-23 Andreas Schwab <schwab@suse.de>
5187
5188 * ia64-tdep.c (ia64_print_insn): New function.
5189 (ia64_gdbarch_init): Set print_insn to it.
5190 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5191 deprecated_tm_print_insn_info.
5192
708cc1b6
MS
51932003-07-22 Michael Snyder <msnyder@redhat.com>
5194
5195 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5196 handle 8-bit returns (long long).
5197 (h8300h_extract_return_value): Ditto.
5198 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5199
aebd7893
AC
52002003-07-22 Andrew Cagney <cagney@redhat.com>
5201
5202 * gdbarch.c Include "gdb_obstack.h".
5203 (struct gdbarch): Add an "obstack".
5204 (alloc_gdbarch_data): Allocate the gdbarch data using
5205 GDBARCH_OBSTACK_CALLOC.
5206 (free_gdbarch_data): Delete function.
5207 (gdbarch_obstack_zalloc): New function.
5208 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5209 Assert that the architecture is not initialized.
5210 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5211 vector from the obstack.
5212 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5213 architecture obstack.
5214 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5215 (set_gdbarch_data): Assert that the data is not initialized.
5216 (struct gdbarch_data): Delete member "free".
5217 (register_gdbarch_data): Do not initialize "free".
5218 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5219
153721e6
AC
52202003-07-22 Andrew Cagney <cagney@redhat.com>
5221
5222 * configure.in (build_warnings): Add -Wformat-nonliteral.
5223 * configure: Re-generate.
5224
c193f044 52252003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5226
5227 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5228
c3228f12
EZ
52292003-07-22 Elena Zannoni <ezannoni@redhat.com>
5230
5231 * findvar.c (read_var_value): Remove case for thread local storage
5232 variables. It is now entirely handled by the dwarf2 location
5233 expression code.
5234 * printcmd.c (address_info): Ditto.
5235 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5236 enumeration value.
5237 (struct symbol): Remove objfile field, which was used by
5238 LOC_THREAD_LOCAL_STATIC only.
5239 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5240 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5241 usage of objfile pointer.
5242 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5243 thread local variables.
5244 Add include of objfiles.h.
5245 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5246 storage variables.
5247 * Makefile.in (dwarf2loc.o): Update dependencies.
5248
aef9bcd2
AC
52492003-07-22 Andrew Cagney <cagney@redhat.com>
5250
5251 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5252 get_frame_base.
5253 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5254 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5255 (struct value): Add opaque declaration.
5256 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5257
d95a8903
AC
52582003-07-21 Andrew Cagney <cagney@redhat.com>
5259
5260 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5261 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5262
4db73d49
SC
52632003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5264
a8f4cde1 5265 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5266 regcache_cooked_read_unsigned instead of read_register.
5267 (m68hc11_saved_pc_after_call): Likewise.
5268 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5269 instead of write_register.
5270 (m68hc11_register_type): New function.
5271 (m68hc11_register_virtual_type): Remove.
5272 (m68hc11_store_return_value): Convert to use the regcache.
5273 (m68hc11_extract_struct_value_address): Likewise.
5274 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5275 m68hc11_register_type; undeprecate store_return_value and
5276 extract_struct_value_address.
5277
ef2b8fcd
SC
52782003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5279
5280 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5281 and translate to use regcache.
5282 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5283
625b0b97
AC
52842003-07-18 Andrew Cagney <cagney@redhat.com>
5285
5286 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5287 * gdbarch.h, gdbarch.c: Re-generate.
5288 * i386-tdep.c (i386_gdbarch_init): Do not set
5289 DWARF2_BUILD_FRAME_INFO.
5290 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5291 unconditionally.
5292 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5293 DWARF2_BUILD_FRAME_INFO.
5294
22b0d388
AC
52952003-07-18 Andrew Cagney <cagney@redhat.com>
5296
5297 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5298 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5299
1ce5d6dd
AC
53002003-07-18 Andrew Cagney <cagney@redhat.com>
5301
5302 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5303 frame_unwind_address_in_block, instead of frame_pc_unwind.
5304 (dwarf2_frame_cache): Ditto.
5305
e6e5e94c
AC
53062003-07-18 Andrew Cagney <cagney@redhat.com>
5307
5308 * user-regs.h (struct gdbarch): Declare opaque.
5309 * ui-out.h (struct ui_file): Declare opaque.
5310 * dwarf2-frame.h (struct frame_info): Declare opaque.
5311
5483d879
KW
53122003-07-18 Kris Warkentin <kewarken@qnx.com>
5313
5314 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5315 #include "...".
5316 (procfs_meminfo): Change strerror to safe_strerror.
5317 (procfs_can_run): Remove K&R badness.
5318
278a7cf7
MS
53192003-07-17 Michael Snyder <msnyder@redhat.com>
5320
5321 * remote-sim.c: Comment typo fix.
5322
606e3b82
AC
53232003-07-17 Andrew Cagney <cagney@redhat.com>
5324
5325 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5326 configure.
5327 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5328 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5329 GDB_MULTI_ARCH_PARTIAL.
5330
c43af07c
EZ
53312003-07-17 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5334 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5335 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5336
3b85b0f1
TR
53372003-07-16 Theodore A. Roth <troth@openavr.org>
5338
5339 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5340 found.
5341 (avr_frame_unwind_cache): Don't unwind FP for main.
5342 Update a comment.
5343 Save the computed prev_sp.
5344 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5345 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5346 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5347
336d1bba
AC
53482003-07-16 Andrew Cagney <cagney@redhat.com>
5349
5350 * frame-base.h (frame_base_p_ftype): Delete definition.
5351 (frame_base_append_predicate): Delete declaration.
5352 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5353 (frame_unwind_append_predicate): Delete declaration.
5354 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5355 (append_predicate): Delete parameter "p".
5356 (frame_unwind_append_predicate): Delete function.
5357 (frame_unwind_append_sniffer): Update call to append_predicate.
5358 (frame_unwind_free): Delete function.
5359 (_initialize_frame_unwind): Pass NULL as "free" to
5360 register_gdbarch_data.
5361 (frame_unwind_init): Append the dummy_frame_sniffer.
5362 (frame_unwind_find_by_frame): Simplify.
5363 * frame-base.c (struct frame_base_table): Delete field "p".
5364 (append_predicate): Delete parameter "p".
5365 (frame_base_append_predicate): Delete function.
5366 (frame_base_append_sniffer): Update call to append_predicate.
5367 (frame_base_free): Delete function.
5368 (frame_base_find_by_frame): Simplify.
5369 (_initialize_frame_base): Pass NULL as "free" to
5370 register_gdbarch_data.
5371 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5372 (x86_64_sigtramp_frame_sniffer): Replace
5373 "x86_64_sigtramp_frame_p".
5374 (x86_64_init_abi): Set the frame unwind sniffers.
5375 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5376 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5377 (m68k_gdbarch_init): Set the frame unwind sniffers.
5378 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5379 "i386_sigtramp_frame_p".
5380 (i386_frame_sniffer): Replace "i386_frame_p".
5381 (i386_gdbarch_init): Set the frame unwind sniffers.
5382 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5383 (avr_gdbarch_init): Set the frame unwind sniffers.
5384 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5385 "alpha_sigtramp_frame_p"
5386 (alpha_heuristic_frame_sniffer): Replace
5387 "alpha_heuristic_frame_p".
5388 (alpha_gdbarch_init): Set the frame unwind sniffers.
5389 (alpha_dwarf2_init_abi): Ditto.
5390 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5391 "alpha_debug_frame_p".
5392 (alpha_mdebug_frame_base_sniffer): Replace
5393 "alpha_mdebug_frame_base_p".
5394 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5395 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5396 (d10v_gdbarch_init): Set the frame unwind sniffer.
5397 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5398 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5399 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5400 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5401 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5402 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5403
48db5a3c
CV
54042003-07-16 Michael Snyder <msnyder@redhat.com>
5405
5406 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5407 should go thru sh_dsp_register_sim_regno, else the dsp regs
5408 will not get the right values.
5409
54102003-07-16 Corinna Vinschen <vinschen@redhat.com>
5411
5412 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5413 deprecated_store_floating by call to store_typed_floating.
5414 (sh_sh4_register_convert_to_raw): Substitute call to
5415 deprecated_extract_floating by call to extract_typed_floating.
5416
54172003-07-16 Corinna Vinschen <vinschen@redhat.com>
5418
5419 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5420
54212003-07-16 Corinna Vinschen <vinschen@redhat.com>
5422
5423 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5424 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5425 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5426 as possible.
5427 (do_pseudo_register): Remove.
5428 (sh_push_dummy_code): New function.
5429 (sh64_store_struct_return): Rename from sh_store_struct_return.
5430 Only called for sh64 now.
5431 (sh_extract_struct_value_address): Regcache'ify.
5432 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5433 and accomodate new tasks.
5434 (sh64_push_return_address): Rename from sh_push_return_address.
5435 Only called for sh64 now.
5436 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5437 Regcache'ify.
5438 (sh3e_sh4_extract_return_value): Regcache'ify.
5439 (sh_default_store_return_value): Ditto.
5440 (sh3e_sh4_store_return_value): Ditto.
5441 (sh_default_register_byte): Remove.
5442 (sh_sh4_register_byte): Remove.
5443 (sh_default_register_raw_size): Remove.
5444 (sh_sh4_register_raw_size): Remove.
5445 (sh_register_virtual_size): Remove.
5446 (sh_sh3e_register_virtual_type): Remove.
5447 (sh_sh3e_register_type): New function.
5448 (sh_sh4_register_virtual_type): Remove.
5449 (sh_sh4_register_type): New function.
5450 (sh_default_register_virtual_type): Remove.
5451 (sh_default_register_type): New function.
5452 (do_fv_register_info): Add parameters to accomodate call from
5453 sh_print_registers_info.
5454 (do_dr_register_info): Ditto.
5455 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5456 Add parameters to accomodate call from sh_print_registers_info.
5457 (sh_do_fp_register): Ditto.
5458 (sh64_do_pseudo_register): Call do_dr_register_info,
5459 do_fv_register_info and sh_do_fp_register with default parameters.
5460 (sh_do_register): Add parameters to accomodate call from
5461 sh_print_registers_info.
5462 (sh_print_register): Ditto.
5463 (sh_print_registers_info): Rename from sh_do_registers_info.
5464 Add parameters to be used as gdbarch_print_registers_info
5465 implementation. Accomodate removed do_pseudo_register function
5466 pointer.
5467 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5468 function pointer. Call sh_print_register with default parameters.
5469 (sh64_do_registers_info): Call sh_print_registers_info instead of
5470 sh_do_registers_info.
5471 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5472 detection of deprecated vs. non-deprecated functionality.
5473 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5474 function pointer assignments by direct function calls.
5475
e8a89fe2
AC
54762003-07-15 Andrew Cagney <cagney@redhat.com>
5477
5478 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5479 (frame_register_unwind, create_new_frame): Ditto.
5480 (legacy_get_prev_frame, get_frame_type): Ditto.
5481 (get_frame_base_address): Use frame_base_find_by_frame.
5482 (get_frame_locals_address): Use frame_base_find_by_frame.
5483 (get_frame_args_address): Use frame_base_find_by_frame.
5484 * frame-base.h (frame_base_sniffer_ftype): Declare.
5485 (frame_base_append_sniffer): Declare.
5486 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5487 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5488 (frame_base_append_sniffer): New function.
5489 (frame_base_append_predicate): Add a NULL sniffer.
5490 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5491 (struct frame_base_table): Add "sniffer".
5492 (frame_base_free): Free the "sniffer" table.
5493 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5494 (frame_unwind_append_sniffer): Declare.
5495 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5496 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5497 (struct frame_unwind_table): Add "sniffer", delete "middle".
5498 (append_predicate): Add "sniffer" parameter, append the sniffer.
5499 (frame_unwind_init): Update append_predicate call.
5500 (frame_unwind_append_sniffer): New function.
5501 (frame_unwind_append_predicate): Update append_predicate call.
5502 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5503
0714963c
AC
55042003-07-15 Andrew Cagney <cagney@redhat.com>
5505
5506 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5507 before code inhibiting repeated unwind attempts. Add to
5508 commentary on that test's problems.
5509 * blockframe.c (inside_main_func): Look for "main" in the minimal
5510 symbol table.
5511 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5512 identical.
5513
d9170e22
AC
55142003-07-15 Andrew Cagney <cagney@redhat.com>
5515
5516 * complaints.c (struct explanation): Define.
5517 (struct complaints): Change type of "explanation" to "struct
5518 explanation".
5519 (symfile_explanations): Convert to a "struct explanation" table.
5520 (vcomplaint): Update.
5521
eba29c8c
ML
55222003-07-15 Michal Ludvig <mludvig@suse.cz>
5523
5524 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5525 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5526 x86_64_linux_(fill,supply)_gregset functions.
5527 * x86-64-linux-tdep.c (USER_*): New defines.
5528 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5529 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5530 New functions.
5531 (fetch_core_registers): Ditto.
5532 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5533 * x86-64-linux-tdep.h: New file.
5534 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5535 and core-regset.o.
5536 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5537
68cc0bfb
MK
55382003-07-13 Mark Kettenis <kettenis@gnu.org>
5539
88a115f7
MK
5540 * x86-64-tdep.c (x86_64_store_return_value): Use
5541 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5542
68cc0bfb
MK
5543 * configure.host: Add x86_64-*-freebsd*.
5544 * configure.tgt: Add x86_64-*-freebsd*.
5545 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5546 * amd64fbsd-nat.c: New file.
5547 * amd64fbsd-tdep.c: New file.
5548 * config/i386/nm-fbsd64.h: New file.
5549 * config/i386/fbsd64.mh: New file.
5550 * config/i386/fbsd64.mt: New file.
5551
138e7be5
MK
55522003-07-11 Mark Kettenis <kettenis@gnu.org>
5553
5554 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5555 `sc_regs_offset' and `sc_fpregs_offset'.
5556 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5557 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5558 (alpha_sigtramp_register_address): Rewrite to use new members of
5559 `struct gdbarch_tdep'.
5560 (alpha_gdbarch_init): Initialize new members of struct
5561 gdbarch_tdep'.
5562 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5563 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5564 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5565 (alphafbsd_pc_in_sigtramp): Implement.
5566 (alphafbsd_sigtramp_offset): New function.
5567 (alphafbsd_sigcontext_addr): New function.
5568 (alphafbsd_init_abi): Initialize signal trampoline related members
5569 of `struct gdbarch_tdep'.
5570 (_initialize_alphafbsd_tdep): Add prototype.
5571
95303a68
TR
55722003-07-11 Theodore A. Roth <troth@openavr.org>
5573
ba292e4c
TR
5574 * Makefile.in (install-only): Quote sed expression when generating
5575 transformed_name.
95303a68 5576
6896c0c7
RH
55772003-07-11 Richard Henderson <rth@redhat.com>
5578
5579 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5580 * dwarf2-frame.c: Include complaints.h.
5581 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5582 variable initialization; return NULL on error.
5583 (decode_frame_entry): New.
5584
8edd5d01
AC
55852003-07-11 Andrew Cagney <cagney@redhat.com>
5586
c4a09524
AC
5587 * frame.h (frame_address_in_block): Delete declaration.
5588 * blockframe.c (frame_address_in_block): Delete function.
5589 (get_frame_block): Use get_frame_address_in_block.
5590 (block_innermost_frame): Ditto.
5591 * stack.c (print_frame, backtrace_command_1): Ditto.
5592
8edd5d01
AC
5593 * frame.h (get_frame_address_in_block): Declare.
5594 (frame_unwind_address_in_block): Declare.
5595 * frame.c (frame_unwind_address_in_block): New function.
5596 (get_frame_address_in_block): New function.
5597
f7968451
AC
55982003-07-10 Andrew Cagney <cagney@redhat.com>
5599
5600 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5601 pre-default. Note: re-generate has no effect.
a8f4cde1 5602
ae99b398
AC
56032003-07-10 Andrew Cagney <cagney@redhat.com>
5604
5605 * gdbarch.sh: When a variable, but not a function, compare against
5606 0. Fix problem in previous patch.
5607 * gdbarch.c: Re-generate.
a8f4cde1 5608
956ac328
AC
56092003-07-10 Andrew Cagney <cagney@redhat.com>
5610
5611 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5612 functions against NULL, not 0.
5613 * gdbarch.c: Re-generate.
a8f4cde1 5614
287c3240
FF
56152003-07-10 Fred Fish <fnf@ninemoons.com>
5616
5617 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5618 null string instead of a null pointer.
5619 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5620
32f63c4b
MS
56212003-07-09 Michael Snyder <msnyder@redhat.com>
5622
5623 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5624
402ecd56
MK
56252003-07-09 Mark Kettenis <kettenis@gnu.org>
5626
5627 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5628 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5629 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5630 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5631 * x86-64-tdep.c: ... from here.
5632
c481dac7
AS
56332003-07-09 Andreas Schwab <schwab@suse.de>
5634
5635 * m68k-tdep.h (enum struct_return): Define.
5636 (struct gdbarch_tdep): Add struct_return.
5637 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5638 bytes are padded to the right, not to the left. Pass struct value
5639 address in register %a1, not on stack.
5640 (m68k_use_struct_convention): New function.
5641 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5642 struct_return in tdep to pcc_struct_return.
5643 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5644 reg_struct_return.
5645
a8f4cde1 56462003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5647
a8f4cde1 5648 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5649
96a4ee76
AC
56502003-07-09 Andrew Cagney <cagney@redhat.com>
5651
5652 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5653 Add comments about the checks.
5654
1517c6d1
AC
56552003-07-08 Andrew Cagney <cagney@redhat.com>
5656
5657 * Makefile.in: Make dependency section headers consistent.
5658 (config_h): Move to $BUILD headers section.
5659 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5660 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5661 (ada-exp.tab.c): Move to YACC/LEX section.
5662 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5663 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5664
dc5dd1eb
KW
56652003-07-08 Kris Warkentin <kewarken@qnx.com>
5666
5667 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5668 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5669 of strerror with safe_strerror, use ISO C function definitions,
5670 and replace instances of sprintf with snprintf.
dc5dd1eb 5671
612dde91
AC
56722003-07-07 Andrew Cagney <cagney@redhat.com>
5673
5674 * frame.c (get_prev_frame): Enable check for identical frames.
5675 Update comments. Update error messages.
5676
492c11d3
JB
56772003-07-07 Joel Brobecker <brobecker@gnat.com>
5678
5679 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5680
376a5a49
JB
56812003-07-07 Joel Brobecker <brobecker@gnat.com>
5682
5683 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5684 sort_symtab_syms, no longer necessary.
5685
22b4a9ad
JB
56862003-07-07 Joel Brobecker <brobecker@gnat.com>
5687
5688 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5689
5bbcb741
JB
56902003-07-07 Joel Brobecker <brobecker@gnat.com>
5691
5692 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5693 (mips_register_byte): Likewise.
5694
c139e7d9
DJ
56952003-07-07 Daniel Jacobowitz <drow@mvista.com>
5696
5697 * Makefile.in (sparc_tdep_h): New.
5698 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5699 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5700 * sparc-linux-nat.c: Include "sparc-tdep.h".
5701 * sparc-nat.c: Likewise.
5702 * sparc-tdep.c: Likewise.
5703 * sparc64nbsd-nat.c: Likewise.
5704 * sparcnbsd-nat.c: Likewise.
5705 * sparcnbsd-tdep.c: Likewise.
5706 * sparc-tdep.h: New file.
5707 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5708 and sparc_npc_regnum.
5709
fd8f87c5
DJ
57102003-07-07 Daniel Jacobowitz <drow@mvista.com>
5711
5712 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5713 (mips_linux_cannot_store_register): List supported instead of
5714 unsupported registers.
5715
13adf674
DJ
57162003-07-07 Daniel Jacobowitz <drow@mvista.com>
5717
5718 * disasm.c (dump_insns): Separate instructions from addresses.
5719
8de307e0
AS
57202003-07-07 Andreas Schwab <schwab@suse.de>
5721
5722 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5723 dependencies.
5724 * m68k-tdep.c (NUM_FREGS): Delete.
5725 (SIG_PC_FP_OFFSET): Delete.
5726 (TARGET_M68K): Delete.
5727 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5728 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5729 P_MOVEL_SP, P_MOVEML_SP): Define.
5730 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5731 P_TRAP): Delete.
5732 (m68k_register_raw_size): Delete.
5733 (m68k_register_virtual_size): Delete.
5734 (m68k_register_type): Renamed from m68k_register_virtual_type and
5735 add gdbarch argument.
5736 (m68k_store_struct_return): Delete.
5737 (m68k_deprecated_extract_return_value): Delete.
5738 (m68k_deprecated_extract_struct_value_address): Delete.
5739 (m68k_frame_chain): Delete.
5740 (m68k_frame_saved_pc): Delete.
5741 (m68k_fix_call_dummy): Delete.
5742 (m68k_push_dummy_frame): Delete.
5743 (m68k_pop_frame): Delete.
5744 (m68k_extract_return_value): New function.
5745 (m68k_store_return_value): Rewrite using regcache.
5746 (m68k_extract_struct_value_address): Rewrite using regcache.
5747 (m68k_push_dummy_call): New function.
5748 (struct m68k_frame_cache): Define.
5749 (m68k_alloc_frame_cache): New function.
5750 (m68k_analyze_frame_setup): New function.
5751 (m68k_analyze_register_saves): New function.
5752 (m68k_analyze_prologue): New function.
5753 (m68k_skip_prologue): Rewrite using above functions.
5754 (m68k_unwind_pc): New function.
5755 (m68k_frame_cache): New function.
5756 (m68k_frame_this_id): New function.
5757 (m68k_frame_prev_register): New function.
5758 (m68k_frame_unwind): New variable.
5759 (m68k_frame_p): New function.
5760 (m68k_sigtramp_frame_cache): New function.
5761 (m68k_sigtramp_frame_this_id): New function.
5762 (m68k_sigtramp_frame_prev_register): New function.
5763 (m68k_sigtramp_frame_unwind): New variable.
5764 (m68k_sigtramp_frame_p): New function.
5765 (m68k_frame_base_address): New function.
5766 (m68k_frame_base): New function.
5767 (m68k_unwind_dummy_id): New function.
5768 (fill_gregset): Use regcache_collect.
5769 (fill_fpregset): Likewise.
5770 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5771 defined.
5772 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5773 deprecated_init_frame_pc, deprecated_store_struct_return,
5774 deprecated_extract_return_value, deprecated_store_return_value,
5775 deprecated_frame_chain, deprecated_frame_saved_pc,
5776 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5777 deprecated_register_virtual_size,
5778 deprecated_max_register_raw_size,
5779 deprecated_max_register_virtual_size,
5780 deprecated_register_virtual_type, deprecated_register_size,
5781 deprecated_register_byte, deprecated_register_bytes,
5782 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5783 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5784 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5785 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5786 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5787 deprecated_push_dummy_frame, deprecated_pop_frame,
5788 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5789 only if SYSCALL_TRAP is defined. Set extract_return_value,
5790 store_return_value, extract_struct_value_address, register_type,
5791 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5792 predicates.
5793 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5794 M68K_MAX_REGISTER_SIZE): Define.
5795 (struct m68k_sigtramp_info): Define.
5796 (struct gdbarch_tdep): Add get_sigtramp_info.
5797 * m68klinux-nat.c (fetch_register): Use register_size instead of
5798 REGISTER_RAW_SIZE. Don't put assignment in if.
5799 (store_register): Likewise.
5800 (fetch_inferior_registers): Likewise.
5801 (store_inferior_registers): Likewise.
5802 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5803 (m68k_linux_frame_saved_pc): Delete.
5804 (m68k_linux_sigcontext_reg_offset,
5805 m68k_linux_ucontext_reg_offset): Define.
5806 (m68k_linux_get_sigtramp_info): New function.
5807 (m68k_linux_extract_return_value): Rewrite using regcache.
5808 (m68k_linux_store_return_value): Likewise.
5809 (m68k_linux_extract_struct_value_address): Likewise.
5810 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5811 Don't set deprecated_frame_saved_pc,
5812 deprecated_extract_return_value, deprecated_store_return_value,
5813 deprecated_extract_struct_value_address. Set
5814 extract_return_value, store_return_value,
5815 extract_struct_value_address.
5816
eb8bc282
AC
58172003-07-07 Andrew Cagney <cagney@redhat.com>
5818
5819 * expprint.c: Include "user-regs.h" instead of "frame.h".
5820 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5821 frame_map_regnum_to_name.
5822 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5823 (frame_map_name_to_regnum): Simplify, call
5824 user_reg_map_name_to_regnum.
5825 (frame_map_regnum_to_name): Simplify, call
5826 user_reg_map_regnum_to_name.
5827 (frame_register_unwind): Update.
5828 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5829 (_initialize_frame_reg): Call user_reg_add_builtin.
5830 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5831 (value_of_register): Use value_of_user_reg.
5832 * eval.c (evaluate_subexp_standard): Update.
5833 * parse.c (write_dollar_variable): Update.
5834 * d10v-tdep.c (d10v_print_registers_info): Update.
5835 * infcmd.c (registers_info): Update.
5836 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5837 (builtin_regs_h): Delete macro.
5838 (user_regs_h): Define.
5839 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5840 (builtin-regs.o): Delete target.
5841 (user-regs.o): Specify dependencies.
5842 (expprint.o): Update dependencies.
5843 (findvar.o): Update dependencies.
5844 (frame.o): Update dependencies.
5845 (std-regs.o): Update dependencies.
5846
9f476a01
CF
58472003-07-06 Christopher Faylor <cgf@redhat.com>
5848
5849 * win32-nat.c (solib_symbols_add): Use one variable for all section
5850 address stuff. Pass variable rather than address of variable to
5851 safe_symbol_file_add.
5852
a731b831
AS
58532003-07-06 Andreas Schwab <schwab@suse.de>
5854
5855 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5856
9f83329d
JB
58572003-07-04 Joel Brobecker <brobecker@gnat.com>
5858
5859 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5860
27e28cc5
KW
58612003-07-04 Kris Warkentin <kewarken@qnx.com>
5862
5863 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5864
58652003-07-04 Kris Warkentin <kewarken@qnx.com>
5866
5867 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5868 * config/i386/nto.mh: New file.
5869 * config/i386/nm-nto.h: New file.
5870 * configure.host: Add i[3456]86-*-nto*.
5871
100f2e98
JB
58722003-07-03 Joel Brobecker <brobecker@gnat.com>
5873
5874 * remote-vx.c (vx_add_symbols): Fix compilation error.
5875
e23457df
AC
58762003-07-03 Andrew Cagney <cagney@redhat.com>
5877
5878 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5879 * gdbarch.h, gdbarch.c: Re-generate.
5880 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5881 (legacy_register_name): Declare.
5882 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5883 (REGISTER_NAME): Define.
5884 * sparc-tdep.c (legacy_register_name): New function.
5885 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5886 (REGISTER_NAME): Define.
5887 (hppa64_register_name): Declare.
5888 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5889 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5890 (hppa64_register_name): New function.
5891 (hppa_register_name): New function.
5892 * arch-utils.c (legacy_register_name): Delete.
5893 * arch-utils.h (legacy_register_name): Delete.
5894
38caaeec
DJ
58952003-07-03 Daniel Jacobowitz <drow@mvista.com>
5896
5897 * cli/cli-interp.c (cli_interpreter_resume): Update the
5898 cli_uiout's stream to gdb_stdout.
5899
dadd712e
AC
59002003-07-03 Andrew Cagney <cagney@redhat.com>
5901
5902 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5903 predicate.
5904 * gdbarch.h, gdbarch.c: Re-generate.
5905 * regcache.c (init_regcache_descr): Use legacy code when either
5906 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5907
c7f1390e
DJ
59082003-07-02 Daniel Jacobowitz <drow@mvista.com>
5909
5910 * NEWS: Move "set logging" entry into GDB 6.0 section.
5911
4bc8c588
JB
59122003-07-02 Jim Blandy <jimb@redhat.com>
5913
a9dd42f1
JB
5914 * s390-tdep.c (struct frame_extra_info): new member:
5915 'stack_bought_valid'.
5916 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5917 initialize fextra_info->stack_bought.
5918 (s390_frameless_function_invocation): Don't trust the value of
5919 fextra_info_ptr->stack_bought unless
5920 fextra_info->stack_bought_valid is set.
5921
4bc8c588
JB
5922 New S390 prologue analyzer.
5923 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5924 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5925 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5926 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5927 compute_x_addr, s390_on_stack, s390_store,
5928 s390_get_signal_frame_info): New functions.
5929 (S390_NUM_SPILL_SLOTS): New macro.
5930 (s390_get_frame_info): Rewritten.
5931 (is_arg_reg): Deleted.
5932
5933 Break out the decoding of S/390 instructions into separate
5934 functions, to make it more legible, and easier to check
5935 against the spec.
5936 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5937 is_rx, is_rxe): New functions.
5938 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5939 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5940 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5941 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5942 enums for opcode values. (Is this an improvement?)
5943
fd13a04a
AC
59442003-07-02 Andrew Cagney <cagney@redhat.com>
5945
5946 * i386-tdep.c: Revert change committed as part of trad-frame code
5947 below.
5948
3f8091c1
DJ
59492003-07-02 Daniel Jacobowitz <drow@mvista.com>
5950
5951 * breakpoint.c (insert_catchpoint): Make static.
5952
8dd5115e
AS
59532003-07-02 Andreas Schwab <schwab@suse.de>
5954
5955 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5956 former ia64_push_arguments and ia64_push_return_address, and use
5957 regcache functions instead of read/write_register.
5958 (ia64_gdbarch_init): Set push_dummy_call instead of
5959 deprecated_push_arguments and deprecated_push_return_address.
5960
a2229c23
AJ
59612003-07-01 Andreas Jaeger <aj@suse.de>
5962
5963 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5964 before the call.
5965 Set %rax only to number of SSE registers used.
5966
3b3850e8
AC
59672003-07-01 Andrew Cagney <cagney@redhat.com>
5968
5969 * trad-frame.h: Update comments, a -1 .addr is reserved.
5970 (trad_frame_value_p, trad_frame_addr_p): Declare.
5971 (trad_frame_reg_p): Declare.
5972 (trad_frame_set_value): Rename trad_frame_register_value.
5973 (trad_frame_set_unknown): Declare.
5974 * trad-frame.c (trad_frame_realreg_p): New function.
5975 (trad_frame_addr_p, trad_frame_value_p): New function.
5976 (trad_frame_set_unknown): New function.
5977 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5978 (trad_frame_prev_register): Use trad_frame_realreg_p,
5979 trad_frame_addr_p and trad_frame_value_p.
5980 (trad_frame_set_value): Rename trad_frame_register_value.
5981 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5982 and trad_frame_set_value.
a2229c23 5983
4d819d0e
JB
59842003-06-30 Jim Blandy <jimb@redhat.com>
5985
5986 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5987 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5988 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5989 for 16 registers, and then 32 more bytes.
5990 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5991 New macros.
5992 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5993 Move up in the file, since it's now used by is_simple_arg.
5994 (is_simple_arg): Don't assume registers are four bytes long.
5995 Exclude all double arguments. Extended floats are not simple
5996 args.
5997 (is_power_of_two): New function.
5998 (pass_by_copy_ref): Call is_power_of_two, and check that the
5999 length fits in a register, rather than listing all the acceptable
6000 sizes. Extended floats are not passed by reference.
6001 (s390_push_arguments): Don't assume registers are four bytes long.
6002 Reserve an argument register to point to the buffer for structures
6003 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
6004 S390_STACK_FRAME_OVERHEAD.
6005
1ad828f1
AS
60062003-06-30 Andreas Schwab <schwab@suse.de>
6007
6008 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6009 format error message.
6010
39b00981
JB
60112003-06-30 Joel Brobecker <brobecker@gnat.com>
6012
6013 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6014
b2a7f303
DC
60152003-06-30 David Carlton <carlton@kealia.com>
6016
6017 Band-aid for PR c++/1245.
6018 * Makefile.in (cp-support.o): Depend on complaints_h.
6019 * cp-support.c: Include complaints.h. Add declaration for
6020 find_last_component.
6021 (cp_find_first_component): Separate code into
6022 cp_find_first_component_aux.
6023 (cp_find_first_component_aux): Call demangled_name_complaint.
6024 (demangled_name_complaint): New.
6025
a257b5bb
AC
60262003-06-30 Andrew Cagney <cagney@redhat.com>
6027
6028 * remote.c (remote_write_bytes): Explicitly compute and then use
6029 the payload size. Update comments to reflect. Fixes problem of
6030 GDB not sending small packets as found by Fred Fish.
6031
0a2cfde4
AC
60322003-06-30 Andrew Cagney <cagney@redhat.com>
6033
6034 * remote.c (remote_async_wait): Fix -Wformat problem.
6035
3fcb8548
AC
60362003-06-29 Andrew Cagney <cagney@redhat.com>
6037
6038 * remote.c (remote_wait): Call error, and not warning, when the
6039 packet is corrupt.
6040 (remote_async_wait): Ditto.
6041
9f9970a3
DJ
60422003-06-29 Daniel Jacobowitz <drow@mvista.com>
6043
6044 * sparc-tdep.c (sparc_y_regnum): Make external again.
6045
83a8ccca
DJ
60462003-06-29 Daniel Jacobowitz <drow@mvista.com>
6047
6048 * cli/cli-logging.c (pop_output_files): Add void to function
6049 definition.
6050
d2cf594a
AC
60512003-06-29 Andrew Cagney <cagney@redhat.com>
6052
6053 * frame.c (frame_register_unwind): Use unsigned char when dumping
6054 the buffer contents.
6055
0fac0b41
DJ
60562003-06-28 Daniel Jacobowitz <drow@mvista.com>
6057
6058 * cli/cli-logging.c: New file.
6059 * cli-out.c (struct ui_out_data): Add original_stream.
6060 (cli_redirect): New function.
6061 (cli_ui_out_impl): Add cli_redirect.
6062 (cli_out_new): Initialize original_stream.
6063 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6064 (uo_redirect, ui_out_redirect): New.
6065 * ui-out.h (struct ui_out_impl): Add redirect member.
6066 (redirect_ftype): New.
6067 (ui_out_redirect): Add prototype.
6068 * Makefile.in: Add rules for cli-logging.c.
6069 * NEWS: Mention "set logging".
6070
88a07d7c
EZ
60712003-06-27 Elena Zannoni <ezannoni@redhat.com>
6072
6073 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6074
4eb58876
AC
60752003-06-27 Andrew Cagney <cagney@redhat.com>
6076
6077 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6078 (m68hc11_gdbarch_init): Do not set call_dummy_address.
6079 * avr-tdep.c (avr_call_dummy_address): Delete function.
6080 (avr_gdbarch_init): Do not set call_dummy_address.
6081
1549f619
EZ
60822003-06-27 Elena Zannoni <ezannoni@redhat.com>
6083
6084 * symfile.c (syms_from_objfile): Move variables to inner block.
6085 Move the checks for the non-mainline case a bit earlier to avoid
6086 doing some useless computations.
6087
3cb3398d
EZ
60882003-06-27 Elena Zannoni <ezannoni@redhat.com>
6089
6090 * dwarfread.c (decode_modified_type): Gag new compiler warning.
6091
3799ccc6
EZ
60922003-06-26 Elena Zannoni <ezannoni@redhat.com>
6093
6094 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6095 sections.
6096
ce1f6491
MC
60972003-06-26 Michael Chastain <mec@shout.net>
6098
6099 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6100 gdb/testsuite/gdb.c++/pr-1210.exp.
6101
d958dfd0
AC
61022003-06-26 Andrew Cagney <cagney@redhat.com>
6103
6104 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6105 altivec_expression.h and altivec_registers.h.
6106
d31431ed
AC
61072003-06-26 Andrew Cagney <cagney@redhat.com>
6108
6109 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6110 info->mach when MIPS16. Patch suggested by Fred Fish.
6111
714b1282
AC
61122003-06-26 Andrew Cagney <cagney@redhat.com>
6113
6114 * utils.c (internal_vproblem): Print the problem to a reason
6115 buffer and then pass to query. Make the msg variable more local.
6116
42efa47a
AC
61172003-06-26 Andrew Cagney <cagney@redhat.com>
6118
6119 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
6120 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
6121 * gdbarch.h, gdbarch.c: Re-generate.
6122 * frame-base.c (default_frame_args_address): Update. Use
6123 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6124 not available.
6125 (default_frame_locals_address): Ditto for
6126 DEPRECATED_FRAME_LOCALS_ADDRESS.
6127 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6128 (vax_frame_num_args): Update.
6129 (vax_gdbarch_init): Update.
6130 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6131 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6132 * mcore-tdep.c (mcore_gdbarch_init): Update.
6133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6134 * ia64-tdep.c (ia64_gdbarch_init): Update.
6135 * symtab.h (address_class): Update comments.
6136 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6137 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6138 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6139 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6140 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6141 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6142 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6143 * alpha-mdebug-tdep.c: Update.
6144 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6145
8ffd9b1b
AJ
61462003-06-26 Andreas Jaeger <aj@suse.de>
6147
6148 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6149 of SSE registers so that varargs functions work. Rework handling
6150 of passing arguments on the stack.
6151 (x86_64_store_return_value): Return double and float values in SSE
6152 register.
6153
e8ac10a6
MC
61542003-06-24 Michael Chastain <mec@shout.net>
6155
6156 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6157 the "constructor breakpoints ignored" bug.
6158
986af8e6
DC
61592003-06-25 David Carlton <carlton@kealia.com>
6160
6161 * MAINTAINERS: Update e-mail address.
6162
d64558a5
JB
61632003-06-24 Jim Blandy <jimb@redhat.com>
6164
e538d2d7
JB
6165 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6166
02631ec0
JB
6167 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6168 function.
6169 (ppc_linux_init_abi): Register it as the
6170 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6171
e716d87a
JB
6172 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6173 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6174 method.
6175
d64558a5
JB
6176 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6177 (ppc64_standard_linkage_target): Use it.
6178
449a5da4
AC
61792003-06-23 Andrew Cagney <cagney@redhat.com>
6180
6181 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6182 for 0 "int0" and 4 "int32" sized registers.
6183 * gdbtypes.c (builtin_type_int0): Define.
6184 (build_gdbtypes): Initialize builtin_type_int0.
6185 * gdbtypes.h (builtin_type_int0): Declare.
6186
b2a02dda
SC
61872003-06-23 Stephane Carrez <stcarrez@nerim.fr>
6188
6189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6190 as characters are unsigned.
6191
fba3138e
DJ
61922003-06-22 Daniel Jacobowitz <drow@mvista.com>
6193
6194 PR gdb/1179
6195 * dwarfread.c (struct_type): Skip static fields without crashing.
6196
f6c8180b
AC
61972003-06-22 Andrew Cagney <cagney@redhat.com>
6198
6199 GDB 6.0 branch created.
f2c06f52
AC
6200 * README: Update.
6201 * PROBLEMS: Update. Empty.
6202 * NEWS: Update.
f6c8180b 6203
ae822768
DJ
62042003-06-22 Daniel Jacobowitz <drow@mvista.com>
6205
6206 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6207 Suggested by Nick Hibma <n_hibma@webweaving.org>.
6208
261de166
AC
62092003-06-22 Andrew Cagney <cagney@redhat.com>
6210
6211 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6212 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6213 Velikov.
6214
30e94205
DJ
62152003-06-22 Daniel Jacobowitz <drow@mvista.com>
6216
6217 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6218 compilers.
6219
9e14d721
DJ
62202003-06-21 Daniel Jacobowitz <drow@mvista.com>
6221
6222 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6223 argument of val_print.
6224 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6225 to the address argument of baseclass_offset or target_read_memory.
6226 Do add it to the argument of cp_print_value_fields.
6227
a4b8ebc8
AC
62282003-06-21 Andrew Cagney <cagney@redhat.com>
6229
6230 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6231 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6232 instead of 0..NUM_REGS.
6233 (mips_register_reggroup_p): New function.
6234 (mips_pseudo_register_write): New function.
6235 (mips_pseudo_register_read): New function.
6236 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6237 based on the register's type.
6238 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6239 cooked.
6240 (mips_get_saved_register): Simplify. Assert that REGNO is a
6241 pseudo / cooked.
6242 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6243 (mips_register_type): Replace mips_register_virtual_type. Map
6244 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6245 when available.
6246 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6247 that the register is cooked / virtual.
6248 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6249 Only get the extra info when needed.
6250 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6251 (mips32_heuristic_proc_desc): Fetch the cooked register.
6252 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6253 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6254 (mips_print_register): Use gdbarch_register_type, instead of
6255 REGISTER_VIRTUAL_TYPE.
6256 (print_gp_register_row): Use gdbarch_register_type, instead of
6257 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6258 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6259 Print the pseudo / cooked registers.
6260 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6261 Print the pseudo / cooked registers.
6262 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6263 REG_NUM is pseudo / cooked.
6264 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6265 (mips_n32n64_xfer_return_value): Ditto.
6266 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6267 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6268 (mips_register_sim_regno): New function.
6269 (mips_gdbarch_init): Set deprecated_register_byte,
6270 register_group_p, pseudo_register_write, pseudo_register_read,
6271 register_sim_regno, and num_pseudo_regs. Set register_type,
6272 instead of register_virtual_type.
6273 * Makefile.in (mips-tdep.o): Update dependencies.
6274 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6275 REGISTER_VIRTUAL_TYPE.
6276 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6277 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6278 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6279 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6280 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6281
325ed089
DJ
62822003-06-21 Daniel Jacobowitz <drow@mvista.com>
6283
6284 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6285 * cli/cli-cmds.c: Include "gdb_vfork.h".
6286 (shell_escape): Use vfork.
6287
f0e7d0e8
AC
62882003-06-21 Andrew Cagney <cagney@redhat.com>
6289
c57bb9fa
AC
6290 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6291 32 bit floating-point register saves.
6292
6e51443a
AC
6293 * frame.h (deprecated_unwind_get_saved_register): Delete.
6294 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6295 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6296 and deprecated_get_next_frame_hack instead of
6297 deprecated_unwind_get_saved_register.
6298
ed183c7c
AC
6299 * mips-tdep.c (mips_dump_tdep): Do not print
6300 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6301
f0e7d0e8
AC
6302 * frame.c (get_frame_register): New function.
6303 (frame_unwind_register_signed): New function.
6304 (get_frame_register_signed): New function.
6305 (frame_unwind_register_unsigned): New function.
6306 (get_frame_register_unsigned): New function.
6307 * frame.h: Add comments on naming schema.
6308 (get_frame_register, frame_unwind_register_signed): Declare.
6309 (get_frame_register_signed, get_frame_register_signed): Declare.
6310 (frame_unwind_register_unsigned): Declare.
6311 (get_frame_register_unsigned): Declare.
6312
2224d941
TR
63132003-06-20 Theodore A. Roth <troth@openavr.org>
6314
6315 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6316
8619218d
TR
63172003-06-20 Theodore A. Roth <troth@openavr.org>
6318
6319 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6320 (avr_read_sp): Ditto.
6321
0b1b50c0
DJ
63222003-06-20 Daniel Jacobowitz <drow@mvista.com>
6323
6324 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6325 * config/arm/nm-linux.h: Likewise.
6326 * config/arm/tm-linux.h: Likewise.
6327 * config/ia64/nm-linux.h: Likewise.
6328 * config/ia64/tm-ia64.h: Likewise.
6329 * config/s390/tm-linux.h: Likewise.
6330 * config/s390/tm-s390.h: Likewise.
6331 * s390-nat.c: Likewise.
6332 * s390-tdep.c: Likewise.
6333
6334 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6335 * config/ia64/linux.mt: Likewise.
6336 * config/m68k/linux.mh: Likewise.
6337 * config/mips/linux.mt: Likewise.
6338 * config/powerpc/linux.mh: Likewise.
6339 * config/sh/linux.mt: Likewise.
6340
c8c18e65
KW
63412003-06-19 Kris Warkentin <kewarken@qnx.com>
6342
6343 * solib.c (solib_open): Change tests for whether to search
6344 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6345 comments.
6346
dcccef2e
TR
63472003-06-19 Theodore A. Roth <troth@openavr.org>
6348
6349 * avr-tdep.c (avr_frame_address): Delete function.
6350 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6351 set_gdbarch_frame_args_address.
6352
5861a190
AC
63532003-06-19 Andrew Cagney <cagney@redhat.com>
6354
6355 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6356 (REGISTER_CONVERT_FROM_TYPE): Delete.
6357 (mips_register_convert_to_type): Delete declaration.
6358 (mips_register_convert_from_type): Delete declaration.
6359 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6360 kernel/.
6361
0274a8ce
MS
63622003-06-19 Michael Snyder <msnyder@redhat.com>
6363
6364 * linux-nat.h: New file.
6365 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6366 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6367 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6368 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6369 (linux_make_note_section): Iterate over lwps instead of threads.
6370 (linux_do_thread_registers): Use lwp instead of merged pid.
6371 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6372 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6373 Add dependency on linux_nat_h.
6374
adf5f719
TR
63752003-06-19 Theodore A. Roth <troth@openavr.org>
6376
6377 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6378
6766a268
DJ
63792003-06-19 Daniel Jacobowitz <drow@mvista.com>
6380
6381 * varobj.c (get_type, get_target_type): Use check_typedef.
6382
1171114a
DJ
63832003-06-19 Daniel Jacobowitz <drow@mvista.com>
6384
6385 * breakpoint.c (insert_catchpoint): Call internal_error.
6386
adcf68a2
TR
63872003-06-19 Theodore A. Roth <troth@openavr.org>
6388
6389 * avr-tdep.c (avr_push_dummy_code): Delete function.
6390 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6391
ea67f13b
DJ
63922003-06-19 Daniel Jacobowitz <drow@mvista.com>
6393
6394 * arch-utils.c (default_prepare_to_proceed): Remove.
6395 (generic_prepare_to_proceed): Remove.
6396 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6397 (generic_prepare_to_proceed): Remove prototype.
6398 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6399 * gdbarch.c: Regenerate.
6400 * gdbarch.h: Regenerate.
6401 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6402 * hppah-nat.c (hppa_switched_threads): Remove.
6403 * infrun.c (prepare_to_proceed): New static function, copied from
6404 generic_prepare_to_proceed. Remove select_it argument.
6405 (proceed): Call prepare_to_proceed.
6406 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6407 variables.
6408 (ptrace_wait): Don't set the removed variables.
6409 (hppa_switched_threads): Remove.
6410 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6411 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6412 (lin_lwp_prepare_to_proceed): Remove prototype.
6413 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6414 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6415
4add8633
TR
64162003-06-18 Theodore A. Roth <troth@openavr.org>
6417
6418 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6419 trad-frame.h.
6420 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6421 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6422 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6423 (AVR_PROLOGUE_*): Enumerate prologue types.
6424 (struct frame_extra_info): Remove.
6425 (struct avr_unwind_cache): Define.
6426 (avr_write_sp): Delete function.
6427 (avr_read_fp): Ditto.
6428 (avr_init_extra_frame_info): Ditto.
6429 (avr_pop_frame): Ditto.
6430 (avr_frame_saved_pc): Ditto.
6431 (avr_saved_pc_after_call): Ditto.
6432 (avr_push_return_address): Ditto.
6433 (avr_frame_chain): Ditto.
6434 (avr_store_struct_return): Ditto.
6435 (avr_push_arguments): Ditto.
6436 (avr_scan_prologue): Update comments. Changed to set up the info for
6437 cache unwinding. Now returns end of prologue PC.
6438 (avr_skip_prologue): Better handling of functions lacking a prologue
6439 by using avr_scan_prologue.
6440 (avr_scan_arg_moves): New function.
6441 (avr_saved_regs_unwinder): Ditto.
6442 (avr_frame_unwind_cache): Ditto.
6443 (avr_unwind_pc): Ditto.
6444 (avr_frame_this_id): Ditto.
6445 (avr_frame_prev_register): Ditto.
6446 (avr_frame_p): Ditto.
6447 (avr_frame_base_address ): Ditto.
6448 (avr_unwind_dummy_id): Ditto.
6449 (avr_push_dummy_code): Ditto.
6450 (push_stack_item): Ditto.
6451 (pop_stack_item): Ditto.
6452 (avr_push_dummy_call): Ditto.
6453 (struct stack_item): Define.
6454 (avr_frame_unwind): Declare structure.
6455 (avr_frame_base): Ditto.
6456 (avr_gdbarch_init): Remove calls to
6457 set_gdbarch_deprecated_init_frame_pc,
6458 set_gdbarch_deprecated_target_read_fp,
6459 set_gdbarch_deprecated_dummy_write_sp,
6460 set_gdbarch_deprecated_fp_regnum,
6461 set_gdbarch_deprecated_push_arguments,
6462 set_gdbarch_deprecated_push_return_address,
6463 set_gdbarch_deprecated_pop_frame,
6464 set_gdbarch_deprecated_store_struct_return,
6465 set_gdbarch_deprecated_frame_init_saved_regs,
6466 set_gdbarch_deprecated_init_extra_frame_info,
6467 set_gdbarch_deprecated_frame_chain,
6468 set_gdbarch_deprecated_frame_saved_pc,
6469 set_gdbarch_deprecated_saved_pc_after_call.
6470 Add calls to set_gdbarch_push_dummy_call,
6471 set_gdbarch_push_dummy_code,
6472 frame_unwind_append_predicate,
6473 frame_base_set_default,
6474 set_gdbarch_unwind_dummy_id,
6475 set_gdbarch_unwind_pc.
6476 Wrap a long line.
6477
7be04a68
MS
64782003-06-18 Corinna Vinschen <vinschen@redhat.com>
6479
6480 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6481 registers for H8/300S.
6482 (h8300_print_registers_info): Ditto.
8ffd9b1b 6483 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6484
ae087d01
DJ
64852003-06-18 Daniel Jacobowitz <drow@mvista.com>
6486
6487 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6488 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6489 (lin_lwp_wait): Likewise. Update comments.
6490 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6491 (pull_pid_from_list, linux_record_stopped_pid): New.
6492
07d8f827
SC
64932003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6494
6495 * ada-lang.c (scan_discrim_bound): Name first argument.
6496 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6497 declared by ALL_BLOCK_SYMBOLS.
6498
7cb47b14
SC
64992003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6500
6501 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6502 ("regcache.h"): Include it.
6503 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6504
6ad8ae5c
DJ
65052003-06-17 Daniel Jacobowitz <drow@mvista.com>
6506
6507 * NEWS: Mention gdbserver detach change and "disconnect" command.
6508 * infcmd.c (disconnect_command): New function.
6509 (_initialize_infcmd): Add ``disconnect'' command.
6510 * remote.c (remote_async_detach): Delete.
6511 (remote_detach): Merge remote_async_detach.
6512 (remote_disconnect): New.
6513 (init_remote_ops): Set to_disconnect.
6514 (init_remote_cisco_ops): Likewise.
6515 (init_remote_async_ops): Likewise. Use remote_detach.
6516 * target.c (cleanup_target): Default to_disconnect.
6517 (update_current_target): Inherit to_disconnect.
6518 (target_disconnect, debug_to_disconnect): New functions.
6519 (setup_target_debug): Set to_disconnect.
6520 * target.h (struct target_ops): Add to_disconnect.
6521 (target_disconnect): Add prototype.
6522
687595f9
DJ
65232003-06-17 Daniel Jacobowitz <drow@mvista.com>
6524
6525 * breakpoint.c (insert_catchpoint): New function.
6526 (insert_breakpoints): Use catch_exceptions to call
6527 insert_catchpoint. Disable catchpoints if they fail to insert.
6528
29239a8f
DJ
65292003-06-17 Daniel Jacobowitz <drow@mvista.com>
6530
6531 * symfile.c (reread_symbols): Clear sym_private.
6532
2cdf3c63
AC
65332003-06-17 Andrew Cagney <cagney@redhat.com>
6534
6535 * trad-frame.h (struct frame_info): Add opaque declaration.
6536 * remote-fileio.h (struct cmd_list_element): Add opaque
6537 declaration.
6538 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6539 comments.
6540
cf0e1e0d
DJ
65412003-06-17 Daniel Jacobowitz <drow@mvista.com>
6542
6543 * remote.c (remote_prepare_to_store): Replace call to
6544 deprecated_read_register_bytes with multiple regcache_raw_read
6545 calls.
6546
192cdb19
KW
65472003-06-17 Kris Warkentin <kewarken@qnx.com>
6548
6549 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6550 (nto_find_and_open_solib): Likewise.
6551 (nto_init_solib_absolute_prefix): Likewise.
6552 (_initialize_nto_tdep): Fix indentation.
6553
89929b45
KW
65542003-06-17 Kris Warkentin <kewarken@qnx.com>
6555
6556 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6557
46019f27
KW
65582003-06-17 Kris Warkentin <kewarken@qnx.com>
6559
6560 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6561
1a38736e
JB
65622003-06-17 Jim Blandy <jimb@redhat.com>
6563
6564 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6565
3605c34a
TR
65662003-06-16 Theodore A. Roth <troth@openavr.org>
6567
6568 * avr-tdep.c (avr_extract_return_value): New function.
6569 (avr_gdbarch_init): Set extract_return_value method.
6570
870b3035
AC
65712003-06-16 Andrew Cagney <cagney@redhat.com>
6572
6573 * frame.h (deprecated_get_next_frame_hack): Declare.
6574 * frame.c (legacy_saved_regs_prev_register): Only require
6575 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6576 there are always saved regs.
6577 (deprecated_generic_get_saved_register): Do not require
6578 DEPRECATED_FRAME_INIT_SAVED_REGS.
6579 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6580 use frame ID unwind instead.
6581 (deprecated_get_next_frame_hack): New function.
6582
63d47a7d
CV
65832003-06-16 Corinna Vinschen <vinschen@redhat.com>
6584
6585 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6586 (h8300_push_dummy_call): ...this function. Some minor optimization.
6587 (h8300_push_return_address): Remove.
6588 (h8300_gdbarch_init): Remove calls to
6589 set_gdbarch_deprecated_dummy_write_sp,
6590 set_gdbarch_deprecated_push_arguments and
6591 set_gdbarch_deprecated_push_return_address.
6592 Add call to set_gdbarch_push_dummy_call.
6593
4bb1dc5e
CV
65942003-06-16 Corinna Vinschen <vinschen@redhat.com>
6595
6596 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6597 (E_PSEUDO_EXR_REGNUM): Ditto.
6598 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6599 registers into safe registers.
4bb1dc5e
CV
6600 (h8300_skip_prologue): Check for stm instruction to push registers
6601 used for register variables onto stack.
6602 (gdb_print_insn_h8300): Remove.
6603 (h8300_examine_prologue): Add a comment.
6604 (h8300_register_name): Take pseudo registers into account.
6605 (h8300s_register_name): Ditto.
6606 (h8300sx_register_name): Ditto.
6607 (h8300_print_register): Ditto.
6608 (h8300_print_registers_info): Define "nice" printing order.
6609 (h8300_saved_pc_after_call): Take pseudo registers into account.
6610 (h8300_register_type): Ditto. Return type used for remote connection
6611 when requesting real CCR or EXR register, return actual type when
6612 requesting pseudo CCR or EXR.
6613 (h8300_pseudo_register_read): New function.
6614 (h8300_pseudo_register_write): Ditto.
6615 (h8300_dbg_reg_to_regnum): Ditto.
6616 (h8300s_dbg_reg_to_regnum): Ditto.
6617 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6618 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6619 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6620 set_gdbarch_print_insn architecture dependent.
6621 Call set_gdbarch_pseudo_register_read and
6622 set_gdbarch_pseudo_register_write.
6623 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6624
a59fe496
AC
66252003-06-16 Andrew Cagney <cagney@redhat.com>
6626
6627 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6628 * gdbarch.h, gdbarch.c: Re-generate.
6629 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6630 * s390-tdep.c (s390_gdbarch_init): Update.
6631 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6632 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6633 * mips-tdep.c (mips_gdbarch_init): Update.
6634 * mcore-tdep.c (mcore_gdbarch_init): Update.
6635 * cris-tdep.c (cris_gdbarch_init): Update.
6636 * infcall.c (call_function_by_hand): Update.
6637 * ia64-tdep.c (ia64_push_arguments): Update comment.
6638 * frame.c (legacy_get_prev_frame): Do not assume
6639 SAVE_DUMMY_FRAME_TOS_P.
6640 * dummy-frame.c (find_dummy_frame): Update comment.
6641
6f4e5a41
AC
66422003-06-16 Andrew Cagney <cagney@redhat.com>
6643
6644 * regcache.c (do_cooked_read): Do not use register_valid_p.
6645
72fab697
TR
66462003-06-15 Theodore A. Roth <troth@openavr.org>
6647
6648 * avr-tdep.c (avr_register_type): Remove a blank line.
6649 (avr_scan_prologue): Correct some comments.
6650
e3d8b004
TR
66512003-06-15 Theodore A. Roth <troth@openavr.org>
6652
6653 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6654 prologue types.
8ffd9b1b 6655 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6656 option.
6657 Add code to scan -mcall-prologues for mega devices.
6658
866b76ea
TR
66592003-06-15 Theodore A. Roth <troth@openavr.org>
6660
6661 * avr-tdep.c (avr_register_byte): Delete function.
6662 (avr_register_raw_size): Delete function.
6663 (avr_register_virtual_size): Delete function.
6664 (avr_register_virtual_type): Delete function.
6665 (avr_register_type): New function.
6666 (avr_address_to_pointer): Remove unused code.
6667 (avr_read_fp): Need to read FP as two separate bytes due to change to
6668 avr_register_type() usage.
6669 (avr_gdbarch_init): Don't set deprecated_register_size.
6670 Don't set deprecated_register_bytes.
6671 Don't set deprecated_register_byte.
6672 Don't set deprecated_register_raw_size.
6673 Don't set deprecated_max_register_raw_size.
6674 Don't set deprecated_register_virtual_size.
6675 Don't set deprecated_max_register_virtual_size.
6676 Don't set deprecated_register_virtual_type.
6677 Set register_type method.
6678
3993f6b1
DJ
66792003-06-15 Daniel Jacobowitz <drow@mvista.com>
6680
6681 * Makefile.in (linux-nat.o): Add rule.
6682 * linux-nat.c: New file.
6683 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6684 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6685 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6686 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6687 * config/arm/linux.mh (NATDEPFILES): Likewise.
6688 * config/i386/linux.mh (NATDEPFILES): Likewise.
6689 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6690 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6691 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6692 * config/mips/linux.mh (NATDEPFILES): Likewise.
6693 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6694 * config/s390/s390.mh (NATDEPFILES): Likewise.
6695 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6696
786a90bb
MK
66972003-06-15 Mark Kettenis <kettenis@gnu.org>
6698
6699 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6700 replace out-of-date comment.
6701
3bd3f01e
AC
67022003-06-15 Andrew Cagney <cagney@redhat.com>
6703
6704 * rdi-share/host.h (Fail): Change to a varargs function.
6705 * remote-rdi.c (Fail): Update.
8ffd9b1b 6706
de5b9bb9
MK
67072003-06-15 Mark Kettenis <kettenis@gnu.org>
6708
6709 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6710 (i386_convert_register_p, i386_register_to_value,
6711 i386_register_from_value): Handle types longer than 8 bytes.
6712
d532c08f
MK
67132003-06-15 Mark Kettenis <kettenis@gnu.org>
6714
6715 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6716 Move floating-point code to new function in i387-tdep.c.
6717 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6718 New functions containing code moved here from i386-tdep.c.
6719 * i387-tdep.h: Add opaque declaration for `struct type'.
6720 (i387_register_to_value, i387_value_to_register): New prototypes.
6721 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6722 (x86_64_init_abi): Set convert_register_p, register_to_value and
6723 value_to_register here.
8ffd9b1b 6724
42c466d7
AC
67252003-06-14 Andrew Cagney <cagney@redhat.com>
6726
6727 * mips-tdep.c (mips_register_to_value): Make static.
6728 (mips_value_to_register): Make static.
6729 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6730 * ia64-tdep.c (ia64_register_raw_size): Make static.
6731 (ia64_register_virtual_size): Make static.
6732 (ia64_register_byte): Make static.
6733 * i387-tdep.c: Include "i387-tdep.h".
6734 (print_387_control_word): Delete function.
6735 (print_387_status_word): Delete function.
6736 (print_387_status_bits): Delete function.
6737 (print_387_control_bits): Delete function.
6738 * Makefile.in (i387-tdep.o): Update dependencies.
6739 * rdi-share/host.h (Fail): Declare.
6740 * remote-rdi.c (Fail): Update to match declaration.
6741
2a9cda49
AC
67422003-06-14 Andrew Cagney <cagney@redhat.com>
6743
6744 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6745 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6746 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6747 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6748 * README: Delete reference to remote-array.
6749 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6750 (remote-array.o): Delete target.
6751 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6752 * remote-array.c: Delete file.
6753
ff2e87ac
AC
67542003-06-14 Andrew Cagney <cagney@redhat.com>
6755 Mark Kettenis <kettenis@gnu.org>
6756
6757 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6758 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6759 parameter with "frame".
6760 * gdbarch.h, gdbarch.c: Re-generate.
6761 * frame.h (put_frame_register): Declare.
6762 * frame.c (put_frame_register): New function.
6763 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6764 (legacy_register_to_value): Rewrite, use "frame" to get the
6765 register value.
6766 (legacy_value_to_register): Rewrite, use "frame" to find the
6767 register's location before storing.
6768 * arch-utils.h (legacy_convert_register_p): Update.
6769 (legacy_register_to_value, legacy_value_to_register): Update.
6770 * findvar.c (value_from_register): Rewrite, eliminate use of
6771 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6772 "frame" to REGISTER_TO_VALUE.
6773 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6774 lval_reg_frame_relative + lval_register branch of the switch. Do
6775 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6776 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6777 I386_EDI_REGNUM): New defines.
6778 (i386_next_regnum, i386_convert_register_p,
6779 i386_register_to_value, i386_value_to_register): New functions.
6780 (i386_register_convertible, i386_register_convert_to_virtual,
6781 i386_convert_to_raw): Remove functions.
6782 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6783 value_to_register instead of register_convertible,
6784 register_convert_to_virtual and register_convert_to_raw.
6785 * mips-tdep.c (mips_convert_register_p): New function.
6786 (mips_value_to_register): Replace mips_register_convert_from_type.
6787 (mips_register_to_value): Replace mips_register_convert_to_type.
6788 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6789 register_to_value.
6790 * alpha-tdep.c (alpha_convert_register_p): Update.
6791 (alpha_value_to_register): Update, store the register.
6792 (alpha_register_to_value): Update, fetch the register.
6793
98be1e77
TR
67942003-06-14 Theodore A. Roth <troth@openavr.org>
6795
6796 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6797 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6798 Don't set deprecated_call_dummy_words.
6799 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6800 Don't set remote_translate_xfer_address.
6801 (avr_io_reg_read_command): Remove commented out debug printf.
6802 Wrap a long line.
6803
57bc6122
TR
68042003-06-14 Theodore A. Roth <troth@openavr.org>
6805
6806 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6807 causes gdb to seg fault.
6808
eb01fc62
DJ
68092003-06-14 Daniel Jacobowitz <drow@mvista.com>
6810
6811 * sparc-nat.c (fetch_inferior_registers): Correct
6812 a reference to "registers".
6813
3b3e6bee
DJ
68142003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6815
6816 * Makefile.in (exc_request_U_h): Define
6817 (exc_request_S_h): Likewise.
6818 (msg_reply_S_h): Likewise.
6819 (msg_U_h): Likewise.
6820 (notify_S_h): Likewise.
6821 (process_reply_S_h): Likewise.
6822 (gnu-nat.o): Depend on gdb_obstack_h
6823 * gnu-nat.c: Include "gdb_obstack.h".
6824
b8de8283
AC
68252003-06-13 Andrew Cagney <cagney@redhat.com>
6826
6827 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6828 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6829
f3be58bc
AC
68302003-06-13 Andrew Cagney <cagney@redhat.com>
6831
6832 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6833 when deprecated REGISTER macros can be deleted.
6834 * gdbarch.h, gdbarch.c: Re-generate.
6835
4c0122c8
JB
68362003-06-13 Jim Blandy <jimb@redhat.com>
6837
6838 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6839 Linux entry point symbols for _dl_debug_state, too.
6840
3e210248
AC
68412003-06-13 Andrew Cagney <cagney@redhat.com>
6842
6843 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6844 available, do not use the FP register, and always save the TOS.
6845 * dummy-frame.c (dummy_frame_this_id): Do not assert
6846 SAVE_DUMMY_FRAME_TOS.
6847 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6848 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6849 (i386_push_dummy_call): Add 8 to the returned SP.
6850 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6851 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6852 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6853 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6854 (x86_64_push_dummy_call): Return "sp + 16".
6855 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6856 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6857 save_dummy_frame_tos.
6858
0b65af49
JB
68592003-06-13 Jim Blandy <jimb@redhat.com>
6860
6861 * frv-tdep.c (frv_use_struct_convention): Delete static
6862 declaration for function deleted in my change of 2003-06-12.
6863
4ea2465e
TR
68642003-06-13 Theodore A. Roth <troth@openavr.org>
6865
6866 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6867 (avr_pointer_to_address): Shift code addrs left 1 bit.
6868 (avr_convert_from_func_ptr_addr): Delete function since operation is
6869 better handled by avr_address_to_pointer and avr_pointer_to_address.
6870 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6871
1581182a
MK
68722003-06-13 Mark Kettenis <kettenis@gnu.org>
6873
6874 From Kelley Cook <kelleycook@wideopenwest.com>:
6875 * configure.host: Accept i[34567]86 variants.
6876 * configure.tgt: Likewise.
6877 * nlm/configure.in: Likewise.
6878 * nlm/configure: Regenerated.
6879
7aa1783e
RE
68802003-06-13 Richard Earnshaw <rearnsha@arm.com>
6881
6882 * arm-tdep.c (solib-svr4.h): Dont' include it.
6883 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6884 * arm-linux-tdep.c: ... here. Make static.
6885 (arm_linux_init_abi): Register it.
6886 (solib-svr4.h): Include it.
6887 * Makefile.in: Update dependencies.
6888 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6889 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6890
0261a0d0
CV
68912003-06-13 Corinna Vinschen <vinschen@redhat.com>
6892
6893 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6894 indicate registers used for return values.
6895 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6896 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6897 members.
6898 (h8300_init_extra_frame_info): Ditto.
6899 (h8300_frame_locals_address): Removed.
6900 (h8300_frame_args_address): Removed.
6901 (h8300_extract_return_value): Use new regcache structure. Only care
6902 for 16 bit CPUs.
6903 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6904 (h8300_store_return_value): Use new regcache structure. Only care
6905 for 16 bit CPUs.
6906 (h8300h_store_return_value): Same function for 32 bit CPUs.
6907 (h8300_store_struct_return): Removed.
6908 (h8300_extract_struct_value_address): Use new regcache structure.
6909 (h8300h_extract_struct_value_address): Removed.
6910 (h8300_push_dummy_code): New function.
6911 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6912 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6913 set_gdbarch_store_return_value architecture dependent.
6914 Call set_gdbarch_push_dummy_code and
6915 set_gdbarch_extract_struct_value_address.
6916 Remove calls to set_gdbarch_frame_args_address,
6917 set_gdbarch_frame_locals_address,
6918 set_gdbarch_deprecated_store_struct_return,
6919 set_gdbarch_deprecated_extract_return_value,
6920 set_gdbarch_deprecated_extract_struct_value_address,
6921 set_gdbarch_deprecated_call_dummy_words and
6922 set_gdbarch_deprecated_sizeof_call_dummy_words.
6923
055c394a
CV
69242003-06-13 Corinna Vinschen <vinschen@redhat.com>
6925
6926 * h8300-tdep.c (h8300_register_byte): Remove.
6927 (h8300h_register_byte): Remove.
6928 (h8300_register_virtual_type): Remove. Substitute by...
6929 (h8300_register_type): New function.
6930 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6931 (h8300h_extract_struct_value_address): Ditto.
6932 (h8300_gdbarch_init): Drop calls to
6933 set_gdbarch_deprecated_register_byte and
6934 set_gdbarch_deprecated_register_virtual_type.
6935 Add call to set_gdbarch_register_type.
6936
9c04cab7
AC
69372003-06-13 Andrew Cagney <cagney@redhat.com>
6938
6939 * gdbarch.sh: Update comments on registers.
6940 (deprecated_register_byte): Rename register_byte.
6941 (deprecated_register_raw_size): Rename register_raw_size.
6942 (deprecated_register_virtual_size): Rename register_virtual_size.
6943 (deprecated_register_virtual_type): Rename register_virtual_type.
6944 * gdbarch.h, gdbarch.c: Re-generate.
6945 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6946 * vax-tdep.c (vax_gdbarch_init): Update.
6947 * v850-tdep.c (v850_gdbarch_init): Update.
6948 * sparc-tdep.c (sparc_gdbarch_init): Update.
6949 * sh-tdep.c (sh_gdbarch_init): Update.
6950 * s390-tdep.c (s390_gdbarch_init): Update.
6951 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6952 * ns32k-tdep.c: Update.
6953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6954 * mips-tdep.c (mips_gdbarch_init): Update.
6955 * mcore-tdep.c (mcore_gdbarch_init): Update.
6956 * m68k-tdep.c (m68k_gdbarch_init): Update.
6957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6958 * ia64-tdep.c (ia64_gdbarch_init): Update.
6959 * hppa-tdep.c (hppa_gdbarch_init): Update.
6960 * h8300-tdep.c (h8300_gdbarch_init): Update.
6961 * frv-tdep.c (frv_gdbarch_init): Update.
6962 * cris-tdep.c (cris_gdbarch_init): Update.
6963 * avr-tdep.c (avr_gdbarch_init): Update.
6964 * alpha-tdep.c (alpha_gdbarch_init): Update.
6965 * arm-tdep.c (arm_gdbarch_init): Update.
6966
b060cbea
AC
69672003-06-13 Andrew Cagney <cagney@redhat.com>
6968
6969 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6970 mips_o32_use_struct_convention with always_use_struct_convention.
6971
0fc9922a
DC
69722003-06-12 David Carlton <carlton@kealia.com>
6973
6974 * cp-namespace.c (cp_set_block_scope): Comment out
6975 processing_has_namespace_info branch.
6976
1fd35568
JB
69772003-06-12 Jim Blandy <jimb@redhat.com>
6978
f470a70a
JB
6979 Recognize and skip 64-bit PowerPC Linux linkage functions.
6980 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6981 insn_pattern, insns_match_pattern, d_field, ds_field): New
6982 functions, macros, and types for working with PPC instructions.
6983 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6984 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6985 ppc64_skip_trampoline_code): New functions, variables, and macros
6986 for recognizing and skipping linkage functions.
6987 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6988 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6989
49ff75ad
JB
6990 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6991 register offsets for both the 32- and 64-bit interfaces.
6992
bd918c83
JB
6993 Actually finish the job started by my change of 2003-05-29.
6994 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6995 other #definition of this.
6996 (ppc_linux_skip_trampoline_code): Remove declaration.
6997 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6998 static.
6999 (ppc_linux_init_abi): Register it as the skip_trampoline_code
7000 method for GDBARCH.
7001
7002 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7003 'long' on ppc64-*-linux*.
7004
f8c59253
JB
7005 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7006 isn't #defined, assume the register doesn't exist: act as if
7007 tdep->ppc_mq_regnum were -1.
7008
8fbb30b1
JB
7009 * configure.host, configure.tgt: Add entries for
7010 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7011 powerpc/linux.mt.
7012 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7013 New files.
7014
1fd35568
JB
7015 * arch-utils.c (always_use_struct_convention): New function.
7016 * arch-utils.h (always_use_struct_convention): New prototype.
7017 * alpha-tdep.c (alpha_use_struct_convention): Delete.
7018 (alpha_gdbarch_init): Register always_use_struct_convention,
7019 instead of alpha_use_struct_convention.
7020 * cris-tdep.c (cris_use_struct_convention): Delete.
7021 (cris_gdbarch_init): Register always_use_struct_convention,
7022 instead of cris_use_struct_convention.
7023 * frv-tdep.c (frv_use_struct_convention): Delete.
7024 (frv_gdbarch_init): Register always_use_struct_convention,
7025 instead of frv_use_struct_convention.
7026 * h8300-tdep.c (h8300_use_struct_convention): Delete.
7027 (h8300_gdbarch_init): Register always_use_struct_convention,
7028 instead of h8300_use_struct_convention.
e3305dd9 7029 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
7030 (mips_o32_gdbarch_init): Register always_use_struct_convention,
7031 instead of mips_o32_use_struct_convention.
7032
e14e6e9c
AC
70332003-06-12 Andrew Cagney <cagney@redhat.com>
7034
7035 * wince.c: Include "mips-tdep.h".
7036 * mips-tdep.h (mips_next_pc): Declare.
7037 * mcore-tdep.c: Make more local functions static.
7038 * Makefile.in (wince.o): Update dependencies.
7039
2335f48e
DC
70402003-06-12 David Carlton <carlton@kealia.com>
7041
7042 * symtab.c (lookup_symbol_aux_minsyms): Replace
7043 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7044 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7045 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7046 SYMBOL_NATURAL_NAME.
7047
f70a7d61
AS
70482003-06-12 Andreas Schwab <schwab@suse.de>
7049
7050 * Makefile.in (tuiDisassem.o): Update dependencies.
7051
b6429628
DC
70522003-06-12 David Carlton <carlton@bactrian.org>
7053
7054 * symtab.h: Delete declaration of make_symbol_overload_list.
7055 Add declaration of lookup_partial_symbol.
7056 * symtab.c (remove_params): Move to cp-support.c.
7057 (overload_list_add_symbol, make_symbol_overload_list)
7058 (sym_return_val_size, sym_return_val_index): Ditto.
7059 (lookup_partial_symbol): Make extern.
7060 * cp-support.h: Add declaration of make_symbol_overload_list.
7061 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7062 symtab.h, and block.h.
7063 (remove_params): Move here from symtab.c.
7064 (overload_list_add_symbol, make_symbol_overload_list)
7065 (sym_return_val_size, sym_return_val_index): Ditto.
7066 * valops.c: Include cp-support.h.
7067 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7068 frame_h, and block_h.
7069 (valops.o): Depend on cp_support_h.
7070
084edea5
CV
70712003-06-12 Corinna Vinschen <vinschen@redhat.com>
7072
7073 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7074 substitute by NUM_REGS throughout.
7075 (h8300_register_name): Only care for H8/300 and H8/300H registers.
7076 (h8300s_register_name): New function for H8S registers.
7077 (h8300sx_register_name): Ditto for H8SX registers.
7078 (h8300_print_register): Revise register printing, avoid depending
7079 on 32 bit long.
0261a0d0 7080 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
7081 (h8300h_register_byte): New function for any other architecture.
7082 (h8300_register_raw_size): Remove.
7083 (h8300_register_virtual_type): Revise to return actually useful
7084 type.
7085 (h8300_extract_struct_value_address): Only care for H8/300 registers.
7086 (h8300h_extract_struct_value_address): New function for any other
7087 architecture.
7088 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
7089 set_gdbarch_register_name, set_gdbarch_register_byte,
7090 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7091 Remove calls to set_gdbarch_deprecated_register_size,
7092 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7093 set_gdbarch_deprecated_max_register_raw_size,
7094 set_gdbarch_register_virtual_size and
7095 set_gdbarch_deprecated_max_register_virtual_size entirely.
7096 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7097 set_gdbarch_long_double_bit.
7098
06194148
JJ
70992003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7100
8ffd9b1b
AJ
7101 * doublest.c (convert_doublest_to_floatformat): When dealing
7102 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
7103 processing a full 32 bits of mantissa.
7104
de4f826b
DC
71052003-06-11 David Carlton <carlton@bactrian.org>
7106
7107 * dictionary.h: New.
7108 * dictionary.c: New.
7109 * block.h: Add opaque declaration for struct dictionary.
7110 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7111 'sym' members.
7112 (BLOCK_DICT): New macro.
7113 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7114 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7115 BLOCK_SHOULD_SORT.
7116 (ALL_BLOCK_SYMBOLS): Update definition.
7117 * Makefile.in (SFILES): Add dictionary.c.
7118 (dictionary_h): New.
7119 (COMMON_OBS): Add dictionary.o.
7120 (dictionary.o): New.
7121 (ada-lang.o): Depend on dictionary_h.
7122 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7123 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7124 (mi-cmd-stack.o): Ditto.
7125 (gdbtk-cmds.o): Update dependencies.
7126 (gdbtk-stack.o): Ditto.
7127 * ada-lang.c: Include dictionary.h.
7128 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7129 (fill_in_ada_prototype, debug_print_block): Ditto.
7130 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7131 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
7132 'is_sorted'.
7133 * mdebugread.c: Include dictionary.h.
7134 (struct parse_stack): Delete 'maxsyms' member.
7135 (parse_symbol): Update calls to new_block. Delete calls to
7136 shrink_block. Use dictionary methods.
7137 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7138 Update calls to new_symtab. Don't maintain maxsyms data.
7139 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7140 (add_symbol): Just call dict_add_symbol.
7141 (new_symtab): Delete 'maxsyms' argument.
7142 (new_symtab): Update calls to new_block.
7143 (new_block): Delete 'maxsyms' argument; add 'function' argument.
7144 (shrink_block): Delete function.
7145 (fixup_sigtramp): Update call to new_block. Add symbol via
7146 dict_add_symbol.
7147 * jv-lang.c: Include dictionary.h.
7148 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7149 appropriately. Set class_symtab->free_func. Make sure the
7150 blockvector is big enough to hold two blocks.
7151 (add_class_symtab_symbol): Use dictionary methods.
7152 (free_class_block): New function.
7153 (type_from_class): Replace explicit iteration by
7154 ALL_BLOCK_SYMBOLS.
7155 * symtab.h (struct symtab): Replace 'free_ptr' method by
7156 'free_func'.
7157 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7158 sort_symtab_syms.
7159 * dwarfread.c (psymtab_to_symtab_1): Delete call to
7160 sort_symtab_syms.
7161 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7162 Include dictionary.h.
7163 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7164 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7165 sort_symtab_syms.
7166 * objfiles.c: Include dictionary.h.
7167 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7168 * buildsym.c: Include dictionary.h.
7169 (finish_block): Use dictionary methods.
7170 (end_symtab): Set free_func to NULL, not free_ptr.
7171 * tracepoint.c: Include dictionary.h.
7172 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7173 (scope_info): Ditto.
7174 * stack.c: Include dictionary.h.
7175 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7176 (print_block_frame_labels, print_frame_arg_vars)
7177 (print_frame_args): Ditto.
7178 * symmisc.c (free_symtab_block): Use dictionary methods.
7179 (dump_symtab): Ditto.
7180 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7181 Include dictionary.h.
7182 * symfile.h: Delete declarations of sort_block_syms,
7183 sort_symtab_syms.
7184 * symfile.c (sort_block_syms): Delete.
7185 (sort_symtab_syms): Delete.
7186 * symtab.c: Include dictionary.h.
7187 (lookup_block_symbol): Use dictionary iterators.
7188 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7189 (search_symbols, make_symbol_completion_list): Ditto.
7190 (make_symbol_overload_list): Ditto.
7191 * valops.c (value_of_local): Use dict_empty.
7192 Include dictionary.h.
7193
a31f978c
JB
71942003-06-11 J. Brobecker <brobecker@gnat.com>
7195
7196 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7197
526e70c0
DC
71982003-06-11 David Carlton <carlton@bactrian.org>
7199
7200 * block.h (BLOCK_SHOULD_SORT): Delete.
7201 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7202 blocks.
7203 * ada-lang.c (ada_add_block_symbols): Ditto.
7204 * symfile.c (sort_block_syms): Delete.
7205 (sort_symtab_syms): Ditto.
7206 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7207 declarations.
7208 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7209 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7210 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7211 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7212 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7213 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7215
33c08150
JJ
72162003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7217
8ffd9b1b 7218 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7219 bits to 128.
7220
781a750d
AC
72212003-06-11 Andrew Cagney <cagney@redhat.com>
7222
7223 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7224 REGISTER_CONVERTIBLE.
7225 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7226 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7227 * gdbarch.h, gdbarch.c: Re-generate.
7228 * arch-utils.h (deprecated_register_convertible_not): Rename
7229 generic_register_convertible_not.
7230 * arch-utils.c (deprecated_register_convertible_not): Rename
7231 generic_register_convertible.
7232 (legacy_convert_register_p, legacy_register_to_value): Update.
7233 * sh-tdep.c (sh64_push_arguments): Update.
7234 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7235 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7236 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7237 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7238 * arch-utils.c (legacy_value_to_register): Update.
7239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7240 (rs6000_register_convert_to_raw): Make parameter "from" const.
7241 * mips-tdep.c (mips_gdbarch_init): Update.
7242 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7243 * infcmd.c (default_print_registers_info): Update.
7244 * ia64-tdep.c (ia64_gdbarch_init): Update.
7245 (ia64_register_convert_to_raw): Make parameter "from" const.
7246 * i386-tdep.c (i386_gdbarch_init): Update.
7247 (i386_register_convert_to_raw): Update.
7248
cd90e54f
AC
72492003-06-11 Andrew Cagney <cagney@redhat.com>
7250
7251 * remote-fileio.c: Include "remote-fileio.h".
7252 * Makefile.in (remote-fileio.o): Update dependencies.
7253 (remote_fileio_h): Fix typo.
7254
a78f21af
AC
72552003-06-11 Andrew Cagney <cagney@redhat.com>
7256
7257 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7258 (xstormy16_save_dummy_frame_tos): Make static.
7259 (_initialize_xstormy16_tdep): Add declaration.
7260 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7261 * v850-tdep.c: Make local functions static.
7262 (_initialize_v850_tdep): Add declaration.
7263 * sparc-tdep.c: Make local functions static.
7264 (_initialize_sparc_tdep): Add declaration.
7265 * sh-tdep.c: Make local functions static.
7266 (_initialize_sh_tdep): Add declaration.
7267 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7268 * s390-tdep.c: Make local functions static.
7269 (_initialize_s390_tdep): Add declaration.
7270 * dbxread.c (find_stab_function_addr): Make static.
7271 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7272 * ocd.c (_initialize_remote_ocd): Add declaration.
7273 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7274 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7275 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7276 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7277 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7278 * remote-array.c (_initialize_array): Add declaration.
7279 (_initialize_remote_monitors): Add declaration.
7280 * remote-mips.c: Make local functions static.
7281 (_initialize_remote_mips): Add declaration.
7282 * mcore-tdep.c: Make all local functions static.
7283 (_initialize_mcore_tdep): Add declaration.
7284 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7285 * abug-rom.c (_initialize_abug_rom): Add declaration.
7286 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7287 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7288 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7289 * remote-est.c (_initialize_est): Add declaration.
7290 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7291 (m68hc11_call_dummy_address): Make static.
7292 * ia64-tdep.c: Make local functions static.
7293 (_initialize_ia64_tdep): Add declaration.
7294 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7295 * monitor.c (monitor_wait_filter): Make static.
7296 (_initialize_remote_monitors): Add declaration.
7297 * remote-hms.c (_initialize_remote_hms): Add declaration.
7298 * remote-e7000.c (fetch_regs_from_dump): Make static.
7299 (expect_n): Make static.
7300 (_initialize_remote_e7000): Add declaration.
7301 * ser-e7kpc.c: Always include "defs.h".
7302 (_initialize_ser_e7000pc): Add declaration.
7303 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7304 * cris-tdep.c: Make all but one function static.
7305 (_initialize_cris_tdep): Add declaration.
7306 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7307 * solib.c (update_solib_list): Make static.
7308 (_initialize_solib): Add declaration.
7309 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7310 (_initialize_avr_tdep): Add declaration.
7311 * remote-rdi.c (voiddummy): Make static.
7312 (_initialize_remote_rdi): Add declaration.
7313 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7314 * remote-rdp.c (send_rdp): Make static.
7315 (_initialize_remote_rdp): Add declaration.
7316 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7317
cbcdb1f5
CV
73182003-06-11 Corinna Vinschen <vinschen@redhat.com>
7319
7320 * remote-fileio.c: Make ari happy.
7321
a191ea8d
JB
73222003-06-10 J. Brobecker <brobecker@gnat.com>
7323
7324 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7325 fetching the trailing bytes of the buffer we are about to write.
7326
0ef75e11
AC
73272003-06-10 Andrew Cagney <cagney@redhat.com>
7328
7329 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7330 * Makefile.in (remote-fileio.o): Update dependencies.
7331 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7332 include <setjmp.h>, or <sys/types.h> conditional on USG.
7333 (remote_fio_jmp_buf): Delete global variable.
7334
449092f6 73352003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7336 Martin M. Hunt <hunt@redhat.com>
449092f6 7337
559fa028
AC
7338 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7339 (SFILES): Add remote-fileio.c.
7340 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7341 dependencies for building remote.o.
449092f6
CV
7342 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7343 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7344 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7345 static storage class.
7346 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7347 'F' packet.
7348 (_initialize_remote): Call initialize_remote_fileio().
7349 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7350 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7351 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7352 (captured_main): Initialize new ui_files.
7353 * ui-file.c: Add read and fgets input functions.
7354 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7355 (null_file_read): New function.
7356 (ui_file_read): New function.
7357 (set_ui_file_read): New function.
7358 (stdio_file_read): New function.
7359 * ui-file.h: New type ui_file_read_ftype.
7360 (set_ui_file_read): Declare.
7361 (ui_file_read): Declare.
7362
248de703
AC
73632003-06-09 Andrew Cagney <cagney@redhat.com>
7364
7365 * frame.h (deprecated_unwind_get_saved_register): Rename
7366 generic_unwind_get_saved_register, update comments.
7367 * mips-tdep.c (mips_get_saved_register): Update.
7368 * frame.c (deprecated_unwind_get_saved_register): Update.
7369
0ed8aa57
AC
73702003-06-09 Andrew Cagney <cagney@redhat.com>
7371
7372 * vax-tdep.c (vax_frame_locals_address): Delete function.
7373 (vax_gdbarch_init): Do not set frame_locals_address.
7374 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7375 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7376 * s390-tdep.c (s390_frame_args_address): Delete function.
7377 (s390_gdbarch_init): Do not set frame_args_address or
7378 frame_locals_address.
7379 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7380 (ns32k_gdbarch_init): Do not set frame_locals_address.
7381 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7382 (hppa_frame_locals_address): Delete function.
7383 (hppa_gdbarch_init): Do not set frame_args_address, or
7384 frame_locals_address.
7385 * arm-tdep.c (arm_frame_args_address): Delete.
7386 (arm_frame_locals_address): Delete.
7387 (arm_gdbarch_init): Do not set frame_args_address, or
7388 frame_locals_address.
7389
983a287a
AC
73902003-06-09 Andrew Cagney <cagney@redhat.com>
7391
7392 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7393 * gdbarch.h, gdbarch.c: Re-generate.
7394 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7395 * arch-utils.c (frame_num_args_unknown): Delete function.
7396 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7397 (frame_info): Use FRAME_NUM_ARGS_P.
7398 * arm-tdep.c (arm_frame_num_args): Delete function.
7399 (arm_gdbarch_init): Do not set frame_num_args.
7400 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7401 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7402 (hppa_gdbarch_init): Do not set frame_num_args.
7403 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7405 frame_num_args to default frame_num_args_unknown.
7406 * v850-tdep.c (v850_gdbarch_init): Ditto.
7407 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7408 * sh-tdep.c (sh_gdbarch_init): Ditto.
7409 * s390-tdep.c (s390_gdbarch_init): Ditto.
7410 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7411 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7412 * mips-tdep.c (mips_gdbarch_init): Ditto.
7413 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7414 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7416 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7417 * i386-tdep.c (i386_gdbarch_init): Ditto.
7418 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7419 * frv-tdep.c (frv_gdbarch_init): Ditto.
7420 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7421 * cris-tdep.c (cris_gdbarch_init): Ditto.
7422 * avr-tdep.c (avr_gdbarch_init): Ditto.
7423 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7424
8d3b0994
AC
74252003-06-09 Andrew Cagney <cagney@redhat.com>
7426
7427 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7428 (print_frame_args): Moved to "stack.c".
7429 * stack.c: Include "gdb_assert.h".
7430 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7431 (print_frame_args): Moved from "printcmd.c".
7432 * frame.h (print_frame_args): Delete declaration.
7433 * Makefile.in (stack.o): Update dependencies.
7434
25e3a86b
AC
74352003-06-08 Andrew Cagney <cagney@redhat.com>
7436
7437 * frame.c (get_prev_frame): Remove reference to
7438 frame_args_address_correct in comments.
7439 * frame-base.c (default_frame_args_address): Delete code
7440 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7441 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7442 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7443 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7444 (vax_frame_args_address_correct): Delete declaration.
7445
a9e5fdc2
AC
74462003-06-08 Andrew Cagney <cagney@redhat.com>
7447
7448 * gdbarch.sh (UNWIND_SP): Add.
7449 * gdbarch.h, gdbarch.c: Re-generate.
7450 * frame.c (frame_sp_unwind): New function.
7451 (get_frame_sp): New function.
7452 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7453 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7454 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7455 value.
7456 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7457 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7458
8983bd83
AC
74592003-06-08 Andrew Cagney <cagney@redhat.com>
7460
7fec2c59
AC
7461 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7462 REMOTE_BREAKPOINT.
7463 * remote.c: Update.
7464 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7465 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7466 * config/m68k/tm-sun3.h: Update.
7467 * config/m68k/tm-m68klynx.h: Update.
7468 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7469
8983bd83
AC
7470 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7471 trad_frame". Update comments.
7472 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7473 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7474 (trad_frame_register_value, trad_frame_prev_register): Update.
7475
b9362cc7
AC
74762003-06-08 Andrew Cagney <cagney@redhat.com>
7477
7478 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7479 from GCC's acinclude.m4.
7480 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7481 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7482 * main.c (error_init): Delete declaration.
7483 * defs.h (error_init): Declare.
7484 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7485 (rs6000_convert_from_func_ptr_addr): Make static.
7486 (_initialize_rs6000_tdep): Add declaration.
7487 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7488 (show_commands, set_verbose, show_history): Delete declaration.
7489 * top.h (set_verbose): Add declaration.
7490 (show_history, set_history, show_commands): Add declaration.
7491 (do_restore_instream_cleanup): Add declaration.
7492 * objc-lang.c (specialcmp): Make static.
7493 (print_object_command): Make static.
7494 (find_objc_msgsend): Make static.
7495 (find_objc_msgcall_submethod_helper): Make static.
7496 (find_objc_msgcall_submethod): Make static.
7497 (_initialize_objc_language): Add declaration.
7498 (find_implementation_from_class): Make static.
7499 (find_implementation): Make static.
7500 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7501 * objc-lang.h (lookup_struct_typedef): Add declaration.
7502 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7503 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7504 (do_restore_user_call_depth): Make static.
7505 (do_restore_instream_cleanup): Delete declaration.
7506 (dont_repeat): Delete declaration.
7507 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7508 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7509 * reggroups.c (_initialize_reggroup): Add declaration.
7510 * cp-support.c (_initialize_cp_support): Add declaration.
7511 * cp-abi.c (_initialize_cp_abi): Add declaration.
7512 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7513 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7514 (_initialize_gnu_v3_abi): Add declaration.
7515 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7516 (_initialize_gnu_v2_abi): Add declaration.
7517 * frame-base.c (_initialize_frame_base): Add declaration.
7518 * doublest.c (floatformat_from_length): Make static.
7519 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7520 * frame.c (create_sentinel_frame): Make static.
7521 (_initialize_frame): Add declaration.
7522 * top.c (do_catch_errors): Make static.
7523 (gdb_rl_operate_and_get_next_completion): Make static.
7524 * typeprint.c: Include "typeprint.h".
7525 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7526 (sentinel_frame_this_id): Make static.
7527 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7528 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7529 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7530 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7531 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7532 * maint.c (maintenance_print_architecture): Make static.
7533 * signals/signals.c (_initialize_signals): Add declaration.
7534 * std-regs.c (_initialize_frame_reg): Add declaration.
7535 * jv-exp.y (push_variable): ISO C definition.
7536 (push_qualified_expression_name): Ditto.
7537 * memattr.c (_initialize_mem): Add declaration.
7538 * remote.c (remote_check_watch_resources): Make static.
7539 (remote_stopped_by_watchpoint): Make static.
7540 (remote_stopped_data_address): Make static.
7541 * d10v-tdep.c (nr_dmap_regs): Make static.
7542 (a0_regnum): Make static.
7543 (d10v_frame_unwind_cache): Make static.
7544 (d10v_frame_p): Make static.
7545 * osabi.c (show_osabi): Make static.
7546 (_initialize_gdb_osabi): Add extern declaration.
7547 * gdbtypes.c (make_qualified_type): Make static.
7548 (safe_parse_type): Make static.
7549 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7550 * macrotab.c (macro_bcache_free): Make static.
7551 * interps.c (interp_set_quiet): Make static.
7552 (interpreter_exec_cmd): Make static.
7553 * stack.h (select_frame_command): New file.
7554 * stack.c: Include "stack.h".
7555 (select_frame_command_wrapper): Delete function.
7556 (select_frame_command): Make global.
7557 * infcall.c: Include "infcall.h".
7558 * linespec.c: Include "linespec.h".
7559 * symfile.c (sections_overlap): Make static.
7560 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7561 * charset.c (_initialize_charset): Add missing prototype.
7562 * regcache.c (init_legacy_regcache_descr): Make static.
7563 (do_regcache_xfree): Make static.
7564 (regcache_xfer_part): Make static.
7565 (_initialize_regcache): Add missing prototype.
7566 * breakpoint.c (parse_breakpoint_sals): Make static.
7567 (breakpoint_sals_to_pc): Make static.
7568 * interps.h (clear_interpreter_hooks): ISO C declaration.
7569 * Makefile.in (stack_h): Define.
7570 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7571 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7572
a0f267c7
AC
75732003-06-08 Andrew Cagney <cagney@redhat.com>
7574
7575 * Makefile.in (d10v-tdep.o): Update dependencies.
7576 (SFILES): Add trad-frame.c.
7577 (trad_frame_h): Define.
7578 (COMMON_OBS): Add trad-frame.o.
7579 (trad-frame.o): Specify dependencies.
7580 * d10v-tdep.c: Include "trad-frame.h".
7581 (saved_regs_unwinder): Delete function.
7582 (d10v_frame_prev_register): Use trad_frame_prev_register.
7583 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7584 trad_frame", delete "regs" and "prev_sp".
7585 (prologue_find_regs): Use trad-frame.
7586 * trad-frame.h, trad-frame.c: New files.
7587
4538b4f4
MK
75882003-06-08 Mark Kettenis <kettenis@gnu.org>
7589
7590 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7591
a0273b2f
AF
75922003-06-07 Adam Fedor <fedor@gnu.org>
7593
7594 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7595 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7596 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7597 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7598 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7599 Use it.
7600
3a6c3343
AC
76012003-06-07 Andrew Cagney <cagney@redhat.com>
7602
7603 * symfile.h: Re-indent, clean up comments.
7604
b46e02f6
AC
76052003-06-07 Andrew Cagney <cagney@redhat.com>
7606
7607 * inferior.h (deprecated_write_sp): Replace
7608 generic_target_write_sp.
7609 * regcache.c (deprecated_write_sp): Replace
7610 generic_target_write_sp.
7611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7612 * vax-tdep.c (vax_gdbarch_init): Update.
7613 * v850-tdep.c (v850_gdbarch_init): Update.
7614 * sparc-tdep.c (sparc_gdbarch_init): Update.
7615 * sh-tdep.c (sh_gdbarch_init): Update.
7616 * s390-tdep.c (s390_gdbarch_init): Update.
7617 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7618 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7619 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7620 * mcore-tdep.c (mcore_gdbarch_init): Update.
7621 * m68k-tdep.c (m68k_gdbarch_init): Update.
7622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7623 * ia64-tdep.c (ia64_gdbarch_init): Update.
7624 * h8300-tdep.c (h8300_gdbarch_init): Update.
7625 * frv-tdep.c (frv_gdbarch_init): Update.
7626 * cris-tdep.c (cris_gdbarch_init): Update.
7627 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7628
a42e117c
AC
76292003-06-07 Andrew Cagney <cagney@redhat.com>
7630
7631 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7632 Assert that PC_REGNUM is valid.
7633 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7634
bd1ce8ba
AC
76352003-06-07 Andrew Cagney <cagney@redhat.com>
7636
7637 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7638 * gdbarch.h, gdbarch.c: Regenerate.
7639 * mn10300-tdep.c: Include "gdb_assert.h".
7640 (mn10300_read_fp): New function.
7641 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7642 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7643 * ia64-tdep.c: Include "gdb_assert.h".
7644 (ia64_read_fp): New function.
7645 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7646 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7647 * regcache.c (generic_target_read_sp): Delete function.
7648 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7649 * inferior.h (generic_target_read_sp): Delete declaration.
7650 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7651 generic_target_read_sp.
7652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7653 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7654 * sh-tdep.c (sh_gdbarch_init): Ditto.
7655 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7656 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7657
ec5cbaec
AC
76582003-06-07 Andrew Cagney <cagney@redhat.com>
7659
7660 * gdbarch.sh: Comment each field of startup_gdbarch.
7661 * gdbarch.h, gdbarch.c: Re-generate.
7662
cde9ea48
AC
76632003-06-07 Andrew Cagney <cagney@redhat.com>
7664
7665 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7666 * gdbarch.h, gdbarch.c: Re-generate.
7667 * regcache.c: Update comments on read_pc et.al.
7668 (generic_target_read_pc): Delete function.
7669 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7670 * inferior.h (generic_target_read_pc): Delete declaration.
7671 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7672 generic_target_read_pc.
7673 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7674 * sh-tdep.c (sh_gdbarch_init): Ditto.
7675 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7677
9a90a780
AC
76782003-06-07 Andrew Cagney <cagney@redhat.com>
7679
7680 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7681 "index" with "special_local_sect". Use strcmp instead of STREQ.
7682 Append period to coments.
7683
a39a16c4
MM
76842003-06-06 Mark Mitchell <mark@codesourcery.com>
7685
7686 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7687 (elfstab_offset_sections): Likewise.
7688 * gdb-stabs.h (stab_section_info): Likewise.
7689 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7690 * objfiles.c (objfile_relocate): Likewise.
7691 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7692 * remote.c (get_offsets): Likewise.
7693 (remote_cisco_objfile_relocate): Likewise.
7694 * somread.c (som_symfile_offsets): Likewise.
7695 * symfile.c (alloc_section_addr_info): New function.
7696 (build_section_addr_info_from_section_tab): Use it.
7697 (free_section_addr_info): Adjust.
7698 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7699 (syms_from_objfile): Allocate local_addr dynamically.
7700 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7701 dynamically.
7702 (add_symbol_file_command): Allocate sect_opts dynamically.
7703 (reread_symbols): Avoid use of SECT_OFF_MAX.
7704 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7705 (alloc_section_addr_info): Declare it.
7706 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7707 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7708 dynamically.
7709 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7710
20c6c2f8
AC
77112003-06-06 Andrew Cagney <cagney@redhat.com>
7712
7713 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7714 (d10v_frame_unwind_cache): Do not set "return_pc".
7715
884a26c8
MS
77162003-06-06 Michael Snyder <msnyder@redhat.com>
7717
7718 * h8300-tdep.c: Make tidy (long lines).
7719
088ce440
ML
77202003-06-06 Michal Ludvig <mludvig@suse.cz>
7721
8ffd9b1b 7722 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7723 to regcache_collect().
7724
7d773d96
JB
77252003-06-05 J. Brobecker <brobecker@gnat.com>
7726
7727 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7728 pc_in_sigtramp multiarch method.
7729 (hppa_hpux_som_init_abi): Use it.
7730 (hppa_hpux_elf_init_abi): Likewise.
7731 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7732 macro has been multiarched.
7733 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7734 macro here, as hppa64 isn't multiarched yet.
7735
1df6926e
AC
77362003-06-05 Andrew Cagney <cagney@redhat.com>
7737
7738 * Makefile.in (value_h): Add $(frame_h).
7739 * value.h: Include "frame.h".
7740 (struct value): Replace "frame_addr" with "frame_id".
7741 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7742 * values.c (allocate_value): Use VALUE_FRAME_ID.
7743 (value_copy): Use VALUE_FRAME_ID.
7744 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7745 * valops.c (value_assign): Update. Use frame_find_by_id.
7746
6b53acc6
ML
77472003-06-05 Michal Ludvig <mludvig@suse.cz>
7748
7749 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7750 in each pass.
7751
4d9850d3
JJ
77522003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7753
7754 * thread-db.c (check_event): For create/death event breakpoints,
7755 loop through all messages to ensure that we read the message
7756 corresponding to the breakpoint we are at.
7757
8efca6ba
MS
77582003-06-04 Michael Snyder <msnyder@redhat.com>
7759
7760 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7761
0912c7f2
MK
77622003-06-04 Mark Kettenis <kettenis@gnu.org>
7763
7764 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7765 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7766 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7767 when handling .eh_frame sections.
7768
4e370325
JB
77692003-06-04 J. Brobecker <brobecker@gnat.com>
7770
7771 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7772 prepare_to_proceed procedure instead of the hppa-specific one.
7773 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7774
b757528f 77752003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7776
b757528f
JJ
7777 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7778 * config.in: Regenerated.
7779 * configure.in: Add test for syscall function and check for
7780 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7781 * configure: Regenerated.
7782 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7783 <sys/syscall.h>.
7784 (kill_lwp): New function that uses tkill syscall or
7785 uses kill, depending on whether threading model is nptl or not.
7786 All callers of kill() changed to use kill_lwp().
7787 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7788 see if all threads have already exited in the nptl model.
7789 (stop_and_resume_callback): New callback function used by the
7790 lin_lwp_wait thread exit handling code.
7791 (stop_wait_callback): Check for threads already having exited and
7792 delete such threads fromt the lwp list when discovered.
7793 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7794
b757528f
JJ
7795 Roland McGrath <roland@redhat.com>
7796 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7797 nptl libthread_db.
7798
087779b1
RH
77992003-06-03 Richard Henderson <rth@redhat.com>
7800
b21fd293
RH
7801 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7802 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7803 (alpha_sigtramp_frame_prev_register): Likewise.
7804 (alpha_heuristic_frame_prev_register): Likewise.
7805 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7806
8ffd9b1b 7807 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7808 alpha-specific register id names.
7809 (alpha_mdebug_frame_unwind_cache): Likewise.
7810 (alpha_mdebug_frame_prev_register): Likewise.
7811
baa490c4
RH
78122003-06-03 Richard Henderson <rth@redhat.com>
7813
7814 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7815 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7816 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7817 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7818 unwind routines.
7819 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7820 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7821 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7822
7823 * alpha-linux-tdep.c: Remove unnecessary includes.
7824 * Makefile.in (alpha-linux-tdep.o): Update.
7825
78262003-06-03 Richard Henderson <rth@redhat.com>
7827
7828 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7829 (alphabsd_fill_fpreg): Likewise.
7830
f534e522
JB
78312003-06-03 J. Brobecker <brobecker@gnat.com>
7832
7833 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7834 references to struct frame_info fields by calls to the equivalent
7835 accessors. Necessary now that frame_info is opaque.
7836
4035536b
JB
78372003-06-03 J. Brobecker <brobecker@gnat.com>
7838
7839 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7840 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7841 structure, field no longer exists.
7842
0bd79c5c
JB
78432003-06-03 J. Brobecker <brobecker@gnat.com>
7844
7845 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7846 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7847
37bb6d9f
JB
78482003-06-03 J. Brobecker <brobecker@gnat.com>
7849
7850 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7851 references to struct frame_info fields by calls to the equivalent
7852 accessors. Necessary now that frame_info is opaque.
7853
852ee05c
JB
78542003-06-03 J. Brobecker <brobecker@gnat.com>
7855
7856 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7857 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7858 structure, field no longer exists.
7859
7d58c67d
TR
78602003-06-03 Theodore A. Roth <troth@openavr.org>
7861
8ffd9b1b 7862 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7863 accumulation of the size of all registers instead of blindly using
7864 DEPRECATED_REGISTER_BYTES.
7865
0a48e7e8
MS
78662003-06-03 Michael Snyder <msnyder@redhat.com>
7867
7868 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7869 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7870 for h8300sx.
7871
9798ab0d
JB
78722003-06-03 J. Brobecker <brobecker@gnat.com>
7873
7874 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7875 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7876
00b037e2
AC
78772003-06-03 Andrew Cagney <cagney@redhat.com>
7878
7879 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7880 (sparc_convert_to_raw): Delete function.
7881 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7882 register_convert_to_virtual.
7883
043b2f77
JJ
78842003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7885
7886 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7887 layer if not dealing with a statically-linked threaded program.
7888
f43caff8
KW
78892003-06-03 Kris Warkentin <kewarken@qnx.com>
7890
7891 * solib.c (solib_open): Update comment to reflect actual search order.
7892
ae1e7417
AC
78932003-06-03 Andrew Cagney <cagney@redhat.com>
7894
7895 * frame.c (get_frame_memory_signed): New function.
7896 (get_frame_memory, get_frame_memory_unsigned): New function.
7897 (get_frame_arch): New function.
7898 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7899 (get_frame_memory, get_frame_unsigned_memory): Declare.
7900 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7901 get_frame_memory_unsigned and get_frame_arch.
7902 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7903
cb123844
RG
79042003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7905
7906 * MAINTAINERS (write after approval): Add myself.
7907
1bb792e9
JB
79082003-06-03 Jim Blandy <jimb@redhat.com>
7909
7910 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7911 elements of gregset_t are 64 bits each, but access registers
7912 are still 32 bits, so they're packed two per gregset_t
7913 element. Unpack/pack them properly.
7914
aee8d8ba
DC
79152003-06-02 David Carlton <carlton@bactrian.org>
7916
7917 * linespec.c (find_methods): Break out code into
7918 add_matching_methods and add_constructors.
7919 (add_matching_methods): New.
7920 (add_constructors): Ditto.
7921
bf7488d2
AC
79222003-06-02 Andrew Cagney <cagney@redhat.com>
7923
bf7488d2
AC
7924 * sparc-tdep.c (sparc_print_registers): Delete call to
7925 REGISTER_CONVERTIBLE.
7926 (sparc_gdbarch_init): Do not set register_convertible.
7927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7928 * frv-tdep.c (frv_gdbarch_init): Ditto.
7929 * cris-tdep.c (cris_gdbarch_init): Ditto.
7930
adedef68
EZ
79312003-06-02 Elena Zannoni <ezannoni@redhat.com>
7932
8ffd9b1b 7933 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7934 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7935 (syms_from_objfile): Ditto.
7936
650fcc91
AS
79372003-06-03 Andreas Schwab <schwab@suse.de>
7938
7939 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7940 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7941
df4a182b
RH
79422003-06-02 Richard Henderson <rth@redhat.com>
7943
7944 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7945 a member of all_reggroup.
7946
c483c494
RH
79472003-06-02 Richard Henderson <rth@redhat.com>
7948
7949 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7950 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7951 (alpha_lds, alpha_sts): New.
7952 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7953 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7954 restructure and fail for type sizes other than 4 or 8.
7955 (alpha_value_to_register): Similarly.
7956 (alpha_extract_return_value): Use alpha_sts.
7957 (alpha_store_return_value): Use alpha_lds.
7958 (alpha_gdbarch_init): Update hooks.
7959
b38b6be2
RH
79602003-06-02 Richard Henderson <rth@redhat.com>
7961
7962 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7963 regnum identifiers.
7964 (alpha_sigtramp_register_address): Likewise.
7965
98a8e1e5
RH
79662003-06-02 Richard Henderson <rth@redhat.com>
7967
7968 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7969 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7970 * alpha-tdep.h: Declare them.
7971
7972 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7973 Remove zerobuf. Don't error on UNIQUE.
7974 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7975 (ALPHA_REGSET_UNIQUE): Provide default.
7976 (supply_gregset): Use alpha_supply_int_regs.
7977 (fill_gregset): Use alpha_fill_int_regs.
7978 (supply_fpregset): Use alpha_supply_fp_regs.
7979 (fill_fpregset): Use alpha_fill_fp_regs.
7980 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7981 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7982 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7983 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7984 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7985 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7986
67dfac52
RH
79872003-06-02 Richard Henderson <rth@redhat.com>
7988
f75d70cc
RH
7989 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7990
67dfac52
RH
7991 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7992 (alpha_store_return_value): Likewise.
7993
0cf566ec
DC
79942003-06-02 David Carlton <carlton@math.stanford.edu>
7995
7996 * block.c (contained_in): Add 'const' to arguments.
7997 (block_function): Ditto.
7998 * block.h: Update declarations for block_function and
7999 contained_in.
8000
cdef89d0
DC
80012003-06-02 David Carlton <carlton@math.stanford.edu>
8002
8003 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8004 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8005 * p-valprint.c (pascal_val_print): Ditto.
8006 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8007
72667056
RH
80082003-06-02 Richard Henderson <rth@redhat.com>
8009
98a8e1e5
RH
8010 * alpha-tdep.c (alpha_push_dummy_call): Use
8011 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 8012
8ffd9b1b 8013 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
8014 sign-extension of 32-bit values.
8015 (alpha_store_return_value): Similarly.
0ede8eca 8016
98a8e1e5
RH
8017 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8018 (alpha_extract_return_value): Likewise.
8019 (alpha_store_return_value): Likewise.
7b5e1cb3 8020
98a8e1e5
RH
8021 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8022 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 8023
98a8e1e5
RH
8024 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8025 (alpha_extract_struct_value_address): Likewise.
8026 (alpha_store_return_value): Likewise.
8027 (alpha_store_struct_return): Remove.
8028 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 8029
98a8e1e5
RH
8030 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8031 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8032 macros where appropriate.
8033 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
8034 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 8035
98a8e1e5
RH
8036 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8037 for SP, GP; void_func_ptr for PC; non-language-specific types
8038 for all others.
8039 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 8040
6dd77b81
RH
80412003-06-02 Richard Henderson <rth@redhat.com>
8042
8043 * top.h (lim_at_start): Declare.
8044 * main.c (captured_main): Set it.
8045 * top.c (lim_at_start): Define.
8046 (command_loop): Use it instead of &environ.
8047 * event-top.c (command_handler): Likewise.
8048
f4dbdb54
JT
80492003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
8050
8051 * mipsnbsd-tdep.c: Update copyright years.
8052 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8053
8f285956
RH
80542003-06-01 Richard Henderson <rth@redhat.com>
8055
98a8e1e5
RH
8056 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8057 (alpha-linux-tdep.o): Update dependencies.
8058 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8059 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 8060
615967cb
RH
80612003-06-01 Richard Henderson <rth@redhat.com>
8062
98a8e1e5
RH
8063 * alpha-tdep.c (alpha_register_reggroup_p): New.
8064 (alpha_gdbarch_init): Register it.
615967cb 8065
b59661bd
AC
80662003-06-02 Andrew Cagney <cagney@redhat.com>
8067
8068 * dwarfread.c: Eliminate "register"
8069 (decode_die_type): Eliminate assignment within "if".
8070 (struct_type, decode_array_element_type): Ditto.
8071 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8072 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8073 (decode_modified_type, completedieinfo): Ditto.
8074 * block.c: Eliminate "register".
8075 (blockvector_for_pc_sect): Eliminate assignment within "if".
8076 * cp-support.h (struct symbol): Opaque declaration.
8077 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8078
5ef165c2
RH
80792003-06-01 Richard Henderson <rth@redhat.com>
8080
98a8e1e5
RH
8081 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8082 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 8083
143985b7
AF
80842003-06-01 Adam Fedor <fedor@gnu.org>
8085
8086 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8087 * gdbarch.[ch]: Regenerate.
8088 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8089 (hppa_gdbarch_init): Set it in the gdbarch vector.
8090 * i386-tdep.c (i386_fetch_pointer_argument): New
8091 (i386_gdbarch_init): Set it into gdbarch.
8092 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8093 (rs6000_gdbarch_init): Set it in gdbarch.
8094 * sparc-tdep.c (sparc_fetch_pointer_argument): New
8095 (sparc_gdbarch_init): Set it in gdbarch.
8096
ae0167b9
AC
80972003-06-01 Andrew Cagney <cagney@redhat.com>
8098
7c0b4a20
AC
8099 * defs.h (extract_address): Delete declaration.
8100 * findvar.c (extract_address): Delete function.
8101 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8102 extract_address with the inline equivalent,
8103 extract_unsigned_integer.
8104 (xstormy16_extract_struct_value_address): Ditto.
8105 (xstormy16_pointer_to_address): Ditto.
8106 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8107 * v850-tdep.c (v850_push_arguments): Ditto.
8108 (v850_extract_return_value): Ditto.
8109 (v850_extract_struct_value_address): Ditto.
8110 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8111 (sparcnbsd_get_longjmp_target_64): Ditto.
8112 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8113 (get_longjmp_target): Ditto.
8114 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8115 (sh64_extract_struct_value_address): Ditto.
8116 (sh_push_arguments): Ditto.
8117 (sh64_push_arguments): Ditto.
8118 * remote-vxsparc.c (vx_read_register): Ditto.
8119 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8120 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8121 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8122 * mipsv4-nat.c (get_longjmp_target): Ditto.
8123 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8124 * mips-nat.c (get_longjmp_target): Ditto.
8125 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8126 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8127 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8128 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8129 * irix5-nat.c (get_longjmp_target): Ditto.
8130 * irix4-nat.c (get_longjmp_target): Ditto.
8131 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8132 (ia64_push_arguments): Ditto.
8133 * hpux-thread.c (hpux_thread_store_registers): Ditto.
8134 * h8300-tdep.c (h8300_push_arguments): Ditto.
8135 (h8300_store_return_value): Ditto.
8136 (h8300_extract_struct_value_address): Ditto.
8137 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8138 (frv_push_arguments): Ditto.
8139 * avr-tdep.c (avr_pointer_to_address): Ditto.
8140 (avr_push_arguments): Ditto.
8141 * arm-tdep.c (arm_push_dummy_call): Ditto.
8142 (arm_get_longjmp_target): Ditto.
8143 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8144 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8145 (alpha_get_longjmp_target): Ditto.
8146
ae0167b9
AC
8147 * solib-irix.c (extract_mips_address): Inline extract_address,
8148 replacing it with extract_signed_integer.
8149 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8150 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8151 (first_link_map_member, open_symbol_file_object): Ditto.
8152 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8153 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8154 (LM_NEXT, LM_NAME): Ditto.
8155
44d88583
RH
81562003-06-01 Richard Henderson <rth@redhat.com>
8157
98a8e1e5
RH
8158 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8159 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8160 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8161 (alpha_cannot_store_register): Likewise.
8162 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8163 * alpha-nat.c (supply_gregset): Likewise.
8164 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 8165
310e9b6a
AC
81662003-06-01 Andrew Cagney <cagney@redhat.com>
8167
8168 * infcall.c (call_function_by_hand): Update comment on
8169 DEPRECATED_DUMMY_WRITE_SP.
8170
8171 * mips-tdep.c (mips_gdbarch_init): Do not set
8172 deprecated_dummy_write_sp.
8173 (mips_eabi_push_dummy_call): Set the SP register.
8174 (mips_o64_push_dummy_call): Set the SP register.
8175 (mips_o32_push_dummy_call): Set the SP register.
8176 (mips_n32n64_push_dummy_call): Set the SP register.
8177
5ab84872
RH
81782003-06-01 Richard Henderson <rth@redhat.com>
8179
98a8e1e5
RH
8180 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8181 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8182 (supply_gregset): Likewise.
8183 * alpha-tdep.c (alpha_store_return_value): Likewise.
8184 (alpha_get_longjmp_target): Likewise.
8185 (alpha_register_name): Constify array.
8186 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8187 deprecated_register_size, deprecated_register_bytes,
8188 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8189 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8190 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 8191
09cc52fd
RH
81922003-06-01 Richard Henderson <rth@redhat.com>
8193
8194 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
8195 from arg_reg_buffer to regcache to avoid double conversion.
8196
c7f16359
MK
81972003-06-01 Mark Kettenis <kettenis@gnu.org>
8198
8199 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8200 SP_REGNUM.
8201 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8202 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8203
7131cb6e
RH
82042003-06-01 Richard Henderson <rth@redhat.com>
8205
98a8e1e5
RH
8206 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8207 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 8208
f3e0f90b
RH
82092003-06-01 Richard Henderson <rth@redhat.com>
8210
98a8e1e5
RH
8211 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8212 not overlapping PC_REGNUM.
f3e0f90b 8213
c88e30c0
RH
82142003-06-01 Richard Henderson <rth@redhat.com>
8215
98a8e1e5
RH
8216 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8217 alpha_push_arguments. Don't dump argument register data to
8218 the target stack. Fix float and 128-bit long double semantics.
8219 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8220 (alpha_fix_call_dummy): Remove.
8221 (alpha_call_dummy_words): Remove.
8222 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8223
f1a559ae
RH
82242003-06-01 Richard Henderson <rth@redhat.com>
8225
8226 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8227
5e045346
AC
82282003-06-01 Andrew Cagney <cagney@redhat.com>
8229
95404a3e
AC
8230 * mips-tdep.c (is_mips16_addr): New function.
8231 (make_mips16_addr, unmake_mips16_addr): New functions.
8232 (pc_is_mips16, mips_fetch_instruction): Use.
8233 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8234 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8235 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8236 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8237 TARGET_MIPS.
8238 * config/mips/tm-mips.h: Update copyright.
8239 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8240 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8241 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8242 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8243 (TM_PRINT_INSN_MACH): Delete.
8244 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8245
5e045346
AC
8246 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8247 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8248 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8249 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8250 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8251 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8252 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8253 mips*-*-riscos* and mips*-*-sysv* onto mips.
8254 * config/mips/mips64.mt: New file.
8255 * config/mips/mips.mt: New file.
8256 * config/mips/littlemips.mt: Delete file.
8257 * config/mips/decstation.mt: Delete file.
8258 * config/mips/vr4300el.mt: Delete file.
8259 * config/mips/vr5000el.mt: Delete file.
8260 * config/mips/vr5000.mt: Delete file.
8261 * config/mips/vr4100.mt: Delete file.
8262 * config/mips/vr4xxxel.mt: Delete file.
8263 * config/mips/vr4300.mt: Delete file.
8264 * config/mips/vr4xxx.mt: Delete file.
8265 * config/mips/bigmips.mt: Delete file.
8266 * config/mips/bigmips64.mt: Delete file.
8267 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8268 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8269 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8270 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8271 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8272 "tm-bigmips.h".
8273 * config/mips/tm-irix3.h: Ditto.
8274 * config/mips/tm-mipsv4.h: Ditto.
8275 * config/mips/tm-embed.h: Ditto.
8276 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8277 "tm-bigmips64.h".
8278 * config/mips/tm-vr5000el.h: Delete file.
8279 * config/mips/tm-tx39l.h: Delete file.
8280 * config/mips/tm-vr4300el.h: Delete file.
8281 * config/mips/tm-vr4xxxel.h: Delete file.
8282 * config/mips/tm-vr4300.h: Delete file.
8283 * config/mips/tm-vr4100.h: Delete file.
8284 * config/mips/tm-vr4xxx.h: Delete file.
8285 * config/mips/tm-vr5000.h: Delete file.
8286 * config/mips/tm-embedl64.h: Delete file.
8287 * config/mips/tm-embedl.h: Delete file.
8288 * config/mips/tm-embed64.h: Delete file.
8289 * config/mips/tm-bigmips64.h: Delete file.
8290 * config/mips/tm-bigmips.h: Delete file.
8291
2473a4a9
MK
82922003-06-01 Mark Kettenis <kettenis@gnu.org>
8293
97a5b208
MK
8294 Fix gdb/1216.
8295 * shnbsd-nat.c: Include "sh-tdep.h".
8296
2473a4a9
MK
8297 From Richard Henderson <rth@redhat.com>:
8298 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8299
e0f7ec59
AC
83002003-05-31 Andrew Cagney <cagney@redhat.com>
8301
8302 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8303 forward declaration.
8304 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8305 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8306 (mips_find_saved_regs): Use set_reg_offset.
8307 (mips_frame_init_saved_regs): Delete function.
8308 (mips_pop_frame): Call mips_find_saved_regs instead of
8309 DEPRECATED_FRAME_INIT_SAVED_REGS.
8310
68dcc709
AC
83112003-05-31 Andrew Cagney <cagney@redhat.com>
8312
8313 * mips-tdep.c (mips_gdbarch_init): Do not set
8314 deprecated_max_register_raw_size, register_virtual_size, and
8315 deprecated_max_register_virtual_size.
8316
cfc14b3a
MK
83172003-05-31 Mark Kettenis <kettenis@gnu.org>
8318
6405b0a6
MK
8319 * i386-tdep.c: Include "dwarf2-frame.h".
8320 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8321 * Makefile.in (i386-tdep.o): Update dependencies.
8322
cfc14b3a
MK
8323 * dwarf2-frame.c, dwarf2-frame.h: New files.
8324 * Makefile.in (SFILES): Add dwarf2-frame.c.
8325 (dwarf2_frame_h): Define.
8326 (COMMON_OBS): Add dwarf2-frame.o.
8327 (dwarf2-frame.o): Add dependencies.
8328
6a2751d2
AJ
83292003-05-31 Andreas Jaeger <aj@suse.de>
8330
8331 * x86-64-linux-nat.c: Fix comment.
8332
1c3545ae
MK
83332003-05-31 Mark Kettenis <kettenis@gnu.org>
8334
10f93086
MK
8335 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8336 function signature.
8337
1c3545ae
MK
8338 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8339 have a sigcontext_addr handler.
8340 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8341 sigcontext_addr handler.
8342
e11c53d2
AC
83432003-05-31 Andrew Cagney <cagney@redhat.com>
8344
8345 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8346 (print_fp_register_row): Replace do_fp_register_row.
8347 (mips_print_fp_register): Add "file" and "frame" parameters.
8348 (mips_print_register): Add "file" and "frame" parameters.
8349 (mips_print_registers_info): Replace mips_do_registers_info.
8350 (mips_gdbarch_init): Set print_registers_info instead of
8351 deprecated_do_registers_info.
8352 (mips_read_fp_register_single): Add "frame" parameter.
8353 (mips_read_fp_register_double): Add "frame" parameter.
8354
a3386186
MK
83552003-05-31 Mark Kettenis <kettenis@gnu.org>
8356
70913449
MK
8357 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8358 Fixes a bug where GDB would print the wrong register names for
8359 targets without SSE.
8360
2b5e0749
MK
8361 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8362 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8363 registers.
8364
8365 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8366 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8367 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8368 TDEP->sc_sp_offset.
8369
a3386186
MK
8370 From Michal Ludvig <mludvig@suse.cz>:
8371 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8372 and `sc_num_regs'.
8373 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8374 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8375 I386_ST0_REGNUM): Move here from...
8376 * i386-tdep.c: ... here.
8377 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8378 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8379 registers if possible.
8380 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8381 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8382 Remove variables.
8383 (i386bsd_sc_reg_offset): New variable.
8384 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8385 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8386 TDEP->sc_sp_offset.
8387 (i386fbsd_sc_reg_offset): New variable.
8388 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8389 TDEP->sc_num_regs.
8390 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8391 variables.
8392 (i386fbsd4_sc_reg_offset): New variable.
8393 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8394 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8395 TDEP->sc_sp_offset.
8396 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8397 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8398 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8399 Remove variables.
8400 (i386nbsd_sc_reg_offset): New variable.
8401 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8402 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8403 TDEP->sc_sp_offset.
8404 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8405 Remove variables.
8406 (i386obsd_sc_reg_offset): New variable.
8407 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8408 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8409 TDEP->sc_sp_offset.
8410 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8411 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8412 for frame pointer offset in `struct sigcontext'.
8413
25ab4790
AC
84142003-05-31 Andrew Cagney <cagney@redhat.com>
8415
8416 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8417 architecture methods call_dummy_words, sizeof_call_dummy_words,
8418 push_return_address, store_struct_return, and fix_call_dummy. Set
8419 push_dummy_call instead of deprecated_push_arguments.
8420 (mips_store_struct_return): Delete function.
8421 (mips_fix_call_dummy): Delete function.
8422 (mips_push_return_address): Delete function.
8423 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8424 RA_REGNUM and T9_REGNUM.
8425 (mips_n32n64_push_dummy_call): Ditto for
8426 mips_n32n64_push_arguments.
8427 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8428 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8429
6a65450a
AC
84302003-05-31 Andrew Cagney <cagney@redhat.com>
8431
8432 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8433 "dummy_addr" to "bp_addr".
8434 * infcall.c (call_function_by_hand): Pass "funaddr" to
8435 gdbarch_push_dummy_call.
8436 * gdbarch.h, gdbarch.c: Re-generate.
8437 * i386-tdep.c (i386_push_dummy_call): Update.
8438 * arm-tdep.c (arm_push_dummy_call): Update.
8439 * d10v-tdep.c (d10v_push_dummy_call): Update.
8440
c4f35dd8
MK
84412003-05-31 Mark Kettenis <kettenis@gnu.org>
8442
8443 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8444 variable declarations.
8445 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8446 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8447 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8448 x86_64_init_frame_pc, x86_64_init_frame_pc,
8449 x86_64_function_has_prologue): Remove prototypes.
8450 (X86_64_NUM_GREGS): New define.
8451 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8452 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8453 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8454 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8455 XMM1_REGNUM): Remove defines.
8456 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8457 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8458 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8459 X86_64_XMM1_REGNUM): New defines.
8460 (struct x86_64_register_info): Renamed from `struct
8461 register_info'. Remove `size' member.
8462 (x86_64_register_info_table): Remove variable.
8463 (x86_64_register_info): New variable.
8464 (X86_64_NUM_REGS): New define.
8465 (X86_64_NUM_GREGS): Remove define.
8466 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8467 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8468 Remove variables.
8469 (x86_54_dwarf2_reg_to_regnum): Remove function.
8470 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8471 (x86_64_dwarf_reg_to_regnum): New function.
8472 (x86_64_register_name): Rewrite.
8473 (x86_64_register_raw_size): Remove function.
8474 (x86_64_register_byte_table): Remove variable.
8475 (x86_64_register_byte): Remove function.
8476 (x86_64_register_virtual_type): Remove function.
8477 (x86_64_register_type): New function.
8478 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8479 x86_64_register_convert_to_raw): Remove functions.
8480 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8481 (x86_64_use_struct_convention): Make static. Adjust for renamed
8482 defines.
8483 (x86_64_frame_init_saved_regs): Remove function.
8484 (x86_64_push_arguments): Make static. Change to accept a regcache
8485 as argument.
8486 (x86_64_store_return_value, x86_64_extract_return_value): Make
8487 static. Rewrite based on i386 counterparts.
8488 (x86_64_push_dummy_call): New function.
8489 (X86_64_NUM_SAVED_REGS): New define.
8490 (x86_64_register_number): Remove function.
8491 (x86_64_store_struct_return): Remove function.
8492 (x86_64_frameless_function_invocation,
8493 x86_64_function_has_prologue): Remove functions.
8494 (PROLOG_BUFSIZE): Remove define.
8495 (struct x86_64_frame_cache): New structure.
8496 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8497 x86_64_frame_cache, x86_64_frame_this_id,
8498 x86_64_frame_prev_register, x86_64_frame_p,
8499 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8500 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8501 functions.
8502 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8503 variables.
8504 (x86_64_skip_prologue): Rewrite in terms of
8505 x86_64_analyze_prologue.
8506 (x86_64_frame_base_address): New function.
8507 (x86_64_frame_base): New variable.
8508 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8509 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8510 set deprecated_fp_regnum, deprecated_register_size,
8511 deprecated_register_bytes, register_raw_size, register_byte,
8512 register_virtual_type, register_convertiable,
8513 register_convert_to_virtual, convert_to_raw,
8514 deprecated_get_saved_register, deprecated_target_read_fp,
8515 deprecated_push_arguments, deprecated_push_return_address,
8516 deprecated_pop_frame, deprecated_store_struct_return,
8517 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8518 frameless_function_invocation, deprecated_frame_saved_pc,
8519 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8520 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8521 deprecated_init_frame_pc and virtual_frame_pointer. Call
8522 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8523 and x86_64_frame_p. Call frame_base_set_default to register
8524 x86_64_frame_base.
8525 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8526 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8527 (_initialize_x86_64_tdep): Remove function.
8528 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8529 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8530 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8531 define.
8532 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8533 (x86_64_linux_sigcontext_addr): Rewrite.
8534 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8535 x86_64_linux_frame_saved_pc): Remove functions.
8536 (x86_64_linux_pc_in_sigtramp): Renamed from
8537 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8538 trampoline.
8539 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8540 Remove_functions.
8541 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8542 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8543 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8544 (x86_64_regmap): Rename to regmap.
8545 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8546 x86_64_num_gregs.
8547 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8548 x86_64_regmap.
8549 (x86_64_fxsave_offset): Remove function.
8550 (supply_fpregset): Simply call x86_64_supply_fxsave.
8551 (fill_fpregset): Simply call x86_64_fill_fxsave.
8552 (fetch_inferior_registers, store_inferior_registers): Avoid
8553 asignment in if-statement.
8554 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8555 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8556 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8557 (fetch_core_registers): Remove function.
8558 (linux_elf_core_fns): Remove.
8559 (offsetoff): Don't define.
8560 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8561 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8562 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8563 add core-regset.o.
8564 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8565 protection against multiple includes instead of NM_X86_64_h. Add
8566 various comments. Include "config/nm-linux.h". Don't include
8567 <signal.h>.
8568 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8569 GET_THREAD_SIGNALS): Remove defines.
8570 (x86_64_register_u_addr, kernel_u_size,
8571 lin_thread_get_thread_signals): Remove prototypes.
8572 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8573 [HAVE_LINK_H]: Don't include "solib.h".
8574 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8575 * config/i386/tm-x86-64linux.h: Fix comments.
8576 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8577 x86-64-tdep.o): Update dependencies.
8578
c25083af
AC
85792003-05-30 Andrew Cagney <cagney@redhat.com>
8580
c8f55a7b
AC
8581 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8582 Change parameter type to a "struct regcache *".
8583
c25083af
AC
8584 * gdbarch.sh: Regardless of the multi-arch level, always define
8585 the macro when not already defined.
8586 * gdbarch.h, gdbarch.c: Re-generate.
8587
fbe586ae
RH
85882003-05-30 Richard Henderson <rth@redhat.com>
8589
8590 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8591 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8592 (alpha_mdebug_frame_this_id): Likewise.
8593 (alpha_mdebug_frame_prev_register): Likewise.
8594 (alpha_mdebug_frame_base_address): Likewise.
8595 (alpha_mdebug_frame_locals_address): Likewise.
8596 (alpha_mdebug_frame_args_address): Likewise.
8597 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8598 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8599 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8600 loop increment.
8601 (alpha_heuristic_frame_this_id): Make static.
8602 (alpha_heuristic_frame_prev_register): Likewise.
8603 (alpha_heuristic_frame_base_address): Likewise.
8604 * alpha-tdep.h: Update.
8605
acd5c798
MK
86062003-05-30 Mark Kettenis <kettenis@gnu.org>
8607
8608 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8609 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8610 defenitions.
8611 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8612 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8613 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8614 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8615 I386_ST0_REGNUM): New defines.
8616 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8617 codestream_get): Remove define.
8618 (codestream_next_addr, condestream_addr, condestream_buf,
8619 codestream_off, codestream_cnt): Remove variables.
8620 (codestream_fill, codestream_seek, codestream_read): Remove
8621 functions.
8622 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8623 functionality.
8624 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8625 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8626 i386_frame_saved_pc, i386_saved_pc_after_call,
8627 i386_frame_num_args, i386_frame_init_saved_regs,
8628 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8629 i386_push_arguments): Remove functions.
8630 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8631 functionality. Use i386_analyze_prologue instead of
8632 i386_get_frame_setup.
8633 (I386_NUM_SAVED_REGS): New define.
8634 (struct i386_frame_cache): New structure.
8635 (i386_alloc_frame_cache, i386_analyze_struct_return,
8636 i386_skip_probe, i386_analyze_frame_setup,
8637 i386_analyze_register_saves, i386_analyze_prologue,
8638 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8639 i386_frame_prev_register, i386_sigtramp_frame_cache,
8640 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8641 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8642 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8643 New functions.
8644 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8645 New variables.
8646 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8647 I386_EAX_REGNUM and I386_EDX_REGNUM.
8648 (i386_extract_return_value, i386_store_return_value): Use
8649 I386_ST0_REGNUM where appropriate.
8650 (i386_extract_struct_value_address): Rewrite to use extract_address.
8651 (i386_svr4_pc_in_sigtramp): Add comment.
8652 (i386_svr4_sigcontext_addr): Rewrite.
8653 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8654 TDEP->sc_sp_offset.
8655 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8656 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8657 of new defines. Set push_dummy_call, don't set
8658 deprecated_push_arguments, deprecated_push_return_address,
8659 deprecated_pop_frame. Don't set parm_boundary. Don't set
8660 deprecated_frame_chain, deprecated_frame_saved_pc,
8661 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8662 save_dummy_frame_tos, unwind_pc. Call
8663 frame_unwind_append_predicate and frame_base_set_default. Don't
8664 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8665 Don't set frameless_function_invocation. Don't set
8666 deprecated_register_bytes, deprecated_register_size,
8667 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8668 * i386-linux-tdep.c: Fix formatting in some comments.
8669 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8670 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8671 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8672 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8673 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8674 redundant parentheses.
8675 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8676 (i386_linux_sigcontext_addr): Use it. Rewrite.
8677 (find_minsym_and_objfile): Change name of second argument.
8678 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8679 changed. Use frame_pc_unwind instead of
8680 DEPRECATED_SAVED_PC_AFTER_CALL.
8681 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8682 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8683 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8684 unwinder.
8685 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8686 "dummy-frame.h".
8687 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8688 (_initialize_i386_cygwin_tdep): New prototype.
8689 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8690 deprecated_frame_chain_valid.
8691 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8692 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8693 Rely on the SVR4 defaults.
8694 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8695 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8696
c89b70f1
AC
86972003-05-30 Andrew Cagney <cagney@redhat.com>
8698
8699 * infcall.c (call_function_by_hand): Always call
8700 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8701
85b32d22
RH
87022003-05-30 Richard Henderson <rth@redhat.com>
8703
c89b70f1
AC
8704 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8705 increment.
85b32d22 8706
bfe51b1e
JB
87072003-05-29 Jim Blandy <jimb@redhat.com>
8708
8709 Use gdbarch methods for solib stuff on PowerPC Linux.
8710 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8711 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8712 show through.
8713 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8714 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8715 giving the same effect as the #definitions above.
8716
1abf022c
AF
87172003-05-29 Adam Fedor <fedor@gnu.org>
8718
8719 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8720 (find_implementation_from_class): Replace it with the standard
8721 case i.e. do nothing.
8722
d2427a71
RH
87232003-05-29 Richard Henderson <rth@redhat.com>
8724
8725 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8726 (alpha_linux_sigtramp_offset): Use it. Make static.
8727 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8728 update for new frame model.
8729 * alpha-mdebug-tdep.c: New file.
8730 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8731 (alpha_osf1_init_abi): Install it.
8732 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8733 (linked_proc_desc_table): Remove.
8734 (alpha_frame_past_sigtramp_frame): Remove.
8735 (alpha_dynamic_sigtramp_offset): Remove.
8736 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8737 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8738 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8739 (push_sigtramp_desc): Remove.
8740 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8741 (alpha_cannot_store_register): Likewise.
8742 (alpha_sigcontext_addr): Remove.
8743 (alpha_find_saved_regs): Remove.
8744 (alpha_frame_init_saved_regs): Remove.
8745 (alpha_init_frame_pc_first): Remove.
8746 (read_next_frame_reg): Remove.
8747 (alpha_frame_saved_pc): Remove.
8748 (alpha_saved_pc_after_call): Remove.
8749 (temp_proc_desc, temp_saved_regs): Remove.
8750 (alpha_about_to_return): Remove.
8751 (cached_proc_desc): Remove.
8752 (alpha_frame_chain): Remove.
8753 (alpha_print_extra_frame_info): Remove.
8754 (alpha_init_extra_frame_info): Remove.
8755 (alpha_frame_locals_address): Remove.
8756 (alpha_frame_args_address): Remove.
8757 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8758 (alpha_push_dummy_frame): Remove.
8759 (alpha_pop_frame): Remove.
8760 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8761 (alpha_read_insn): New.
8762 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8763 for different insn encodings.
8764 (alpha_in_lenient_prologue): Remove.
8765 (struct alpha_sigtramp_unwind_cache): New.
8766 (alpha_sigtramp_frame_unwind_cache): New.
8767 (alpha_sigtramp_register_address): New.
8768 (alpha_sigtramp_frame_this_id): New.
8769 (alpha_sigtramp_frame_prev_register): New.
8770 (alpha_sigtramp_frame_unwind): New.
8771 (alpha_sigtramp_frame_p): New.
8772 (struct alpha_heuristic_unwind_cache): New.
8773 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8774 don't count nop insns that occur between functions.
8775 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8776 heuristic_proc_desc, but without the mdebug wrapping.
8777 (alpha_heuristic_frame_this_id): New.
8778 (alpha_heuristic_frame_prev_register): New.
8779 (alpha_heuristic_frame_unwind): New.
8780 (alpha_heuristic_frame_p): New.
8781 (alpha_heuristic_frame_base_address): New.
8782 (alpha_heuristic_frame_base): New.
8783 (alpha_unwind_dummy_id): New.
8784 (alpha_unwind_pc): New.
8785 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8786 frame related deprecated initializations; install replacements.
8787 (alpha_dump_tdep): Remove.
8788 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8789 (alpha_read_insn, alpha_after_prologue,
8790 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8791 alpha_heuristic_frame_prev_register,
8792 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8793 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8794 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8795 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8796
93ec1121
AC
87972003-05-29 Andrew Cagney <cagney@redhat.com>
8798
8799 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8800 dependant on the availability of ASSERT_FUNCTION.
8801 (ASSERT_FUNCTION): Do not define when there is no function name.
8802
98f08d3d
KB
88032003-05-29 Kevin Buettner <kevinb@redhat.com>
8804
8805 From Jimi X <jimix@watson.ibm.com>:
8806 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8807
0897f59b
JB
88082003-05-28 Jim Blandy <jimb@redhat.com>
8809
8810 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8811 argument to ptrace to int; the system headers should give it the
8812 right type, and pointers don't fit in ints on powerpc64-*-*.
8813
14898363
L
88142003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8815
8816 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8817 DW_TAG_catch_block.
8818
a7a48797
EZ
88192003-05-26 Elena Zannoni <ezannoni@redhat.com>
8820
8821 * stabsread.c (dbx_lookup_type): Make static.
8822 (read_type): Ditto.
8823 (add_undefined_type): Ditto.
8824 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8825 not export.
8826
f5479e9c
EZ
88272003-05-26 Elena Zannoni <ezannoni@redhat.com>
8828
8829 * hpread.c (hpread_has_name): Make static.
8830 (hpread_psymtab_to_symtab): Ditto.
8831 (file_exists): Ditto.
8832 (hpread_call_pxdb): Ditto.
8833 (hpread_pxdb_needed): Ditto.
8834 (hpread_quick_traverse): Ditto.
8835 (hpread_get_header): Ditto.
8836 (hpread_get_lntt): Ditto.
8837 (hpread_get_slt): Ditto.
8838 (class_of): Ditto.
8839
eb2e12d7
AS
88402003-05-25 Andreas Schwab <schwab@suse.de>
8841
78bf922a
AS
8842 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8843 stack_align and deprecated_extra_stack_alignment_needed.
8844 (m68k_stack_align): Delete.
8845
eb2e12d7
AS
8846 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8847 (m68k_register_virtual_size): Likewise.
8848 (altos_skip_prologue): Remove obsolete function.
8849 (isi_frame_num_args): Likewise.
8850 (news_frame_num_args): Likewise.
8851 (m68k_fix_call_dummy): Make static.
8852 (m68k_push_dummy_frame): Likewise.
8853 (m68k_pop_frame): Likewise.
8854 (m68k_skip_prologue): Likewise.
8855 (m68k_frame_init_saved_regs): Likewise.
8856 (m68k_saved_pc_after_call): Likewise.
8857 (m68k_get_longjmp_target): Make multi-arch.
8858 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8859 structure. Register m68k_get_longjmp_target if enabled.
8860 * m68k-tdep.h (struct gdbarch_tdep): Define.
8861 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8862
8863 * Makefile.in (config.status): Also depend on configure.tgt
8864 and configure.host.
8865 (m68klinux-tdep.o): Update dependencies.
8866 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8867 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8868 (M68K_LINUX_JB_PC): Define.
8869 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8870 and take additional parameter.
8871 (m68k_linux_sigtramp_saved_pc): Update.
8872 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8873 m68k_linux_pc_in_sigtramp, in_plt_section,
8874 find_solib_trampoline_target.
8875 * config/m68k/tm-linux.h: Don't include any tm headers.
8876 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8877 (JB_ELEMENT_SIZE): Likewise.
8878 (JB_PC): Likewise.
8879 (GET_LONGJMP_TARGET): Likewise.
8880 (IN_SIGTRAMP): Likewise.
8881 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8882
eb2c22dc
MK
88832003-05-25 Mark Kettenis <kettenis@gnu.org>
8884
8885 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8886 (sparc32_push_arguments): Re-implement by calling
8887 sparc32_do_push_arguments.
8888
44b7b84e
MK
88892003-05-25 Mark Kettenis <kettenis@gnu.org>
8890
8891 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8892 SPARC_O1_REGNUM): New defines.
8893 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8894 (sparc32_store_return_value): New function.
8895 (sparc_extract_struct_value_address): Rewrite to operate on a
8896 regcache.
8897 (sparc_gdbarch_init): Don't set
8898 deprecated_extract_struct_value_address. Set
8899 extract_struct_value_address instead. Don't set
8900 deprecated_extract_return_value and deprecated_store_return_value
8901 for 32-bit targets. Set extract_return_value and
8902 store_return_value instead.
8903 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8904 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8905 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8906 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8907 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8908 (sparc_store_return_value): Remove prototype.
8909 (sparc32_store_return_value): New prototype.
8910 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8911 Adjust prototypes.
8912
f6ad61e3
MK
89132003-05-24 Mark Kettenis <kettenis@gnu.org>
8914
8915 * sparcnbsd-tdep.c: Include "gdb_string.h".
8916
b276f1bb
AC
89172003-05-23 Andrew Cagney <cagney@redhat.com>
8918
8919 * p-valprint.c (pascal_val_print): Replace extract_address with
8920 the inline equivalent extract_unsigned_integer.
8921 * jv-valprint.c (java_value_print): Ditto.
8922 * ada-valprint.c (ada_val_print_1): Ditto.
8923 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8924
e76c5fcc
TR
89252003-05-23 Theodore A. Roth <troth@openavr.org>
8926
8927 * blockframe.c (frameless_look_for_prologue): Remove unused
8928 after_prologue variable.
8929
2cdd89cb
MK
89302003-05-23 Mark Kettenis <kettenis@gnu.org>
8931
8932 * blockframe.c (get_pc_function_start): Rewrite to avoid
8933 asignments in if-statements.
8934
182d43bc
EZ
89352003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8936
8937 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8938 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8939 files, don't relocate absolute symbols (and do use mst_abs).
8940
e8f3fcdd
AC
89412003-05-23 Andrew Cagney <cagney@redhat.com>
8942
8943 * objc-lang.c: Include "gdb_assert.h".
8944 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8945 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8946 (gdb_check, gdb_check_fatal): Delete functions.
8947 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8948 gdb_assert.
8949 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8950 * Makefile.in (objc-lang.o): Update dependencies.
8951
3c23e6fb
ILT
89522003-05-22 Ian Lance Taylor <ian@airs.com>
8953
8954 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8955 with fprintf_filtered, not fprintf_unfiltered.
8956
af1342ab
AC
89572003-05-22 Andrew Cagney <cagney@redhat.com>
8958
8959 * stack.c (frame_info): Inline extract_address, replacing it with
8960 extract_unsigned_integer.
8961 * findvar.c (unsigned_pointer_to_address): Ditto.
8962 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8963 * dwarf2expr.c (dwarf2_read_address): Ditto.
8964 * frame.c (frame_pc_unwind): Update comment.
8965 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8966
47e242ec
JJ
89672003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8968
8969 * infptrace.c (detach): Call print_sys_errmsg rather than
8970 perror_with_name to issue warning message when errno is non-zero
8971 after calling ptrace detach.
8972
e2ac8128
JB
89732003-05-21 J. Brobecker <brobecker@gnat.com>
8974
8975 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8976 macro definitions from here...
8977 * hppa-tdep.c: ...to there.
8978
92b3541e
KB
89792003-05-20 Kevin Buettner <kevinb@redhat.com>
8980
8981 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8982 register_ptrace_addr(). Fix all callers.
8983
55809acb
AS
89842003-05-21 Andreas Schwab <schwab@suse.de>
8985
8986 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8987 dependencies.
8988 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8989 end.
8990 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8991 (_initialize_m68k_linux_tdep): New function.
8992 (m68k_linux_frame_saved_pc): Make static.
8993 (m68k_linux_extract_return_value): Likewise.
8994 (m68k_linux_store_return_value): Likewise.
8995 (m68k_linux_extract_struct_value_address): Likewise.
8996 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8997 Remove.
8998 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8999 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9000 (DEPRECATED_FRAME_SAVED_PC): Remove.
9001
0fbc10f7
KW
90022003-05-20 Kris Warkentin <kewarken@qnx.com>
9003
9004 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9005 regset numbering rather than our own.
9006
58da2eb2
DC
90072003-05-19 David Carlton <carlton@bactrian.org>
9008
9009 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9010
1fcb5155
DC
90112003-05-19 David Carlton <carlton@bactrian.org>
9012
9013 Partial fix for PR c++/827.
9014 * cp-support.h: Include symtab.h.
9015 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9016 * cp-namespace.c: Update contributors.
9017 (cp_lookup_symbol_nonlocal): New.
9018 (lookup_namespace_scope, cp_lookup_symbol_namespace)
9019 (lookup_symbol_file): Ditto.
9020 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9021 * block.h: Declare block_scope, block_using, block_global_block.
9022 * block.c (block_scope): New.
9023 (block_using, block_global_block): Ditto.
9024 * Makefile.in (cp_support_h): Depend on symtab_h.
9025 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9026
5f9a71c3
DC
90272003-05-19 David Carlton <carlton@bactrian.org>
9028
9029 * language.h (struct language_defn): Add 'la_value_of_this'
9030 and 'la_lookup_symbol_nonlocal' members.
9031 * symtab.h: Declare basic_lookup_symbol_nonlocal,
9032 lookup_symbol_static, lookup_symbol_global,
9033 lookup_symbol_aux_block.
9034 * symtab.c (lookup_symbol_aux): Call language hooks to determine
9035 if we should search fields of this and how to do static/global
9036 lookup.
9037 (lookup_symbol_aux_block): Make extern.
9038 (basic_lookup_symbol_nonlocal): New.
9039 (lookup_symbol_static, lookup_symbol_global): Ditto.
9040 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9041 'la_lookup_symbol_nonlocal' members.
9042 * c-lang.c (c_language_defn, cplus_language_defn)
9043 (asm_language_defn, minimal_language_defn): Ditto.
9044 * jv-lang.c (java_language_defn): Ditto.
9045 * language.c (unknown_language_defn, auto_language_defn)
9046 (local_language_defn): Ditto.
9047 * m2-lang.c (m2_language_defn): Ditto.
9048 * objc-lang.c (objc_language_defn): Ditto.
9049 * scm-lang.c (scm_language_defn): Ditto.
9050 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9051 * p-lang.c (pascal_language_defn): Ditto for both.
9052 * Makefile.in (f-lang.o): Depend on value_h.
9053 (p-lang.o): Ditto.
9054
89a9d1b1
DC
90552003-05-19 David Carlton <carlton@bactrian.org>
9056
9057 * block.h: Declare block_static_block.
9058 * block.c (block_static_block): New.
9059 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9060 lookup_symbol_aux_local, calling block_static_block instead.
9061 (lookup_symbol_aux_local): Delete 'static_block' argument.
9062
eed3f8ab
DC
90632003-05-19 David Carlton <carlton@bactrian.org>
9064
9065 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9066
a09d8bda
ML
90672003-05-19 Michal Ludvig <mludvig@suse.cz>
9068
9069 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9070 register numbers mapping.
9071
69636828
AF
90722003-05-18 Adam Fedor <fedor@gnu.org>
9073
9074 * symtab.c (completion_list_objc_symbol): New function.
9075 (make_symbol_completion_list): Use it to add ObjC symbols
9076 when looking though the list.
9077 (language_search_unquoted_string): New function.
9078 (make_file_symbol_completion_list): Use it.
9079
55baeb84
AS
90802003-05-18 Andreas Schwab <schwab@suse.de>
9081
d0b45d99
AS
9082 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9083 dependencies.
9084 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9085 as m68k_linux_extract_return_value.
9086 (DEPRECATED_STORE_RETURN_VALUE): Define as
9087 m68k_linux_store_return_value.
9088 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9089 m68k_linux_extract_struct_value_address.
9090 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9091 get_next_frame, get_frame_base, get_frame_pc.
9092 (m68k_linux_frame_saved_pc): Use get_frame_base.
9093 (m68k_linux_extract_return_value): New function.
9094 (m68k_linux_store_return_value): New function.
9095 (m68k_linux_extract_struct_value_address): New function.
9096 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9097
55baeb84
AS
9098 * c-exp.y (typebase): Remove duplicate occurence of
9099 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 9100 of lookup_signed_typename.
55baeb84 9101
b6b08ebf
MK
91022003-05-18 Mark Kettenis <kettenis@gnu.org>
9103
9104 * dwarf2loc.c (find_location_expression): Change type of second
9105 argument to `size_t *'.
9106 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9107 for size variable.
9108
5ad1c190
DC
91092003-05-18 David Carlton <carlton@bactrian.org>
9110
9111 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9112 'linkage_name'. Add comment.
9113 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9114 'linkage_name'.
9115 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9116 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9117 (lookup_block_symbol): Ditto.
9118
b8b527c5
AC
91192003-05-16 Andrew Cagney <cagney@redhat.com>
9120
9121 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9122 * gdbarch.h, gdbarch.c: Re-generate.
9123 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9124 * TODO (REGISTER_BYTES): Delete reference.
9125 * alpha-tdep.c (alpha_gdbarch_init): Update.
9126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9127 * x86-64-tdep.c (x86_64_init_abi): Update.
9128 * vax-tdep.c (vax_gdbarch_init): Update.
9129 * v850-tdep.c (v850_gdbarch_init): Update.
9130 * sparc-tdep.c (sparc_gdbarch_init): Update.
9131 * sh-tdep.c (sh_gdbarch_init): Update.
9132 * s390-tdep.c (s390_gdbarch_init): Update.
9133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9134 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9135 (ns32k_gdbarch_init_32382): Update.
9136 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9137 * mcore-tdep.c (mcore_gdbarch_init): Update.
9138 * m68k-tdep.c (m68k_gdbarch_init): Update.
9139 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9140 * ia64-tdep.c (ia64_gdbarch_init): Update.
9141 * i386-tdep.c (i386_gdbarch_init): Update.
9142 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9143 * hppa-tdep.c (hppa_gdbarch_init): Update.
9144 * h8300-tdep.c (h8300_gdbarch_init): Update.
9145 * frv-tdep.c (frv_gdbarch_init): Update.
9146 * cris-tdep.c (cris_gdbarch_init): Update.
9147 * avr-tdep.c (avr_gdbarch_init): Update.
9148 * arm-tdep.c (arm_gdbarch_init): Update.
9149 * sparc-tdep.c (sparc_pop_frame): Update.
9150 * rs6000-tdep.c (rs6000_pop_frame): Update.
9151 * remote.c (init_remote_state): Update.
9152 (remote_prepare_to_store): Update.
9153 * remote-vx.c (vx_prepare_to_store): Update.
9154 * remote-sds.c (sds_fetch_registers): Update.
9155 (sds_prepare_to_store): Update.
9156 * remote-array.c: Update.
9157 * regcache.c (init_legacy_regcache_descr): Update.
9158 (init_regcache_descr): Update.
9159 * mips-tdep.c (mips_eabi_extract_return_value): Update.
9160 (mips_o64_extract_return_value): Update.
9161 * irix5-nat.c (fetch_core_registers): Update.
9162 * irix4-nat.c (fetch_core_registers): Update.
9163 * i386-tdep.h: Update.
9164 * hppa-tdep.c (pa_do_registers_info): Update.
9165 (pa_do_strcat_registers_info): Update.
9166 * cris-tdep.c (cris_register_bytes_ok): Update.
9167 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9168 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9169 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9170 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9171 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9172 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9173 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9174 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9175 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9176 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9177 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9178 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9179 (REGISTER_BYTES_OK): Update.
9180 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9181 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9182
ee2842e2
ILT
91832003-05-16 Ian Lance Taylor <ian@airs.com>
9184
9185 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9186 (vax_print_insn, print_insn_arg): Remove static functions.
9187 (vax_gdbarch_init): Call set_gdbarch_print_insn with
9188 print_insn_vax from opcodes library.
9189 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9190
973177d3
AC
91912003-05-15 Andrew Cagney <cagney@redhat.com>
9192
aaab4dba
AC
9193 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9194 * target.h (memory_breakpoint_from_pc): Delete declaration.
9195 * mem-break.c (memory_breakpoint_from_pc): Delete function.
9196 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9197 * monitor.c (monitor_insert_breakpoint): Use
9198 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9199 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9200 * gdbarch.h, gdbarch.c: Re-generate.
9201 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9202 (sparc_gdbarch_init): Set breakpoint_from_pc to
9203 sparc_breakpoint_from_pc.
9204 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9205 (BREAKPOINT_FROM_PC): Define.
9206 (sparc_breakpoint_from_pc): Declare.
9207 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9208 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9209 (BREAKPOINT_FROM_PC): Define.
9210 (BREAKPOINT): Delete macro.
9211 * target.h: Update comment.
9212 * s390-tdep.c (s390_gdbarch_init): Update comments.
9213 * remote.c: Update comments.
9214 * remote-mips.c: Update comments.
9215 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9216 * mem-break.c: Update comment.
9217 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9218 (ia64_memory_insert_breakpoint): Update.
9219 * config/sparc/tm-sparc.h: Update comment.
9220 * config/pa/tm-hppa64.h: Update comment.
9221 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9222 (rs6000_breakpoint_from_pc): Update.
9223 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9224 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9225 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9226 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9227 (mips_breakpoint_from_pc): Update.
9228 (mips_dump_tdep): Update.
9229
e06963ff
AC
9230 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9231 * minsyms.c (lookup_minimal_symbol): Inline
9232 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9233
973177d3
AC
9234 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9235 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9236 * p-lang.c (pascal_printstr): Ditto.
9237 * objc-lang.c (objc_printstr): Ditto.
9238 * m2-lang.c (m2_printstr): Ditto.
9239 * jv-valprint.c (java_print_value_fields): Ditto.
9240 * f-lang.c (f_printstr): Ditto.
9241 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9242 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9243 for repeat_count_threshold.
9244 * Makefile.in (cp-valprint.o): Update dependencies.
9245
5ea2bd7f 92462003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9247
5ea2bd7f
JJ
9248 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9249 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9250 they start with mov r2,r12. Support skipping over indirect stores
9251 of the input registers. Upon hitting a non-nop branch instruction
9252 or predicated instruction, bail out by setting lim_pc to the current
9253 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9254 beyond our calculated value and we have trust_limit set,
9255 use the lim_pc value.
9256
cc8c88f3
AC
92572003-05-15 Andrew Cagney <cagney@redhat.com>
9258
9259 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9260 generic_find_dummy_frame.
9261 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9262 (deprecated_generic_find_dummy_frame): Update.
9263 (deprecated_read_register_dummy): Update.
9264 * frame.c (deprecated_generic_get_saved_register): Update.
9265
909cd28e
TR
92662003-05-15 Theodore A. Roth <troth@openavr.org>
9267
9268 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9269 (avr_gdbarch_init): Set breakpoint_from_pc method.
9270
b923b08d
AC
92712003-05-15 Andrew Cagney <cagney@redhat.com>
9272
9273 * regcache.c (build_regcache): Set deprecated_register_valid
9274 directly.
9275 (deprecated_grub_regcache_for_register_valid): Delete function.
9276 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9277 declaration.
9278
ae2f03ac 92792003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9280
9281 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9282 * symtab.c (lookup_symbol_aux): Delete calls to
9283 lookup_symbol_aux_minsyms.
9284 (lookup_symbol_aux_minsyms): Comment out function and
9285 prototype. Delete lookup by mangled name.
ae2f03ac 9286
18ec9831
KB
92872003-05-14 Kevin Buettner <kevinb@redhat.com>
9288
9289 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9290 correctly indicate an empty stack and ``stack_allocated'' to the
9291 indicate the number of elements initially allocated.
9292 (dwarf_expr_grow_stack): Simplify method for computing new
9293 stack size. Don't loop infinitely if ``stack_len'' is zero.
9294 (execute_stack_op): Move ``ctx->in_reg'' initialization
9295 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9296 be used in conjuction with DW_OP_piece. Revise error message
9297 accordingly.
9298
de18ac1f
TR
92992003-05-14 Theodore A. Roth <troth@openavr.org>
9300
9301 * MAINTAINERS: Update my email address.
9302 * avr-tdep.c: Ditto.
9303
176620f1
EZ
93042003-05-14 Elena Zannoni <ezannoni@redhat.com>
9305
9306 * symtab.h (enum domain_enum): Rename from namespace_enum.
9307 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9308 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9309 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9310 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9311 TYPES_NAMESPACE, METHODS_NAMESPACE.
9312 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9313 (struct symbol, struct partial_symbol): Rename field
9314 'namespace_enum namespace' to 'domain_enum domain'.
9315 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9316 Delete old define kludge for namespace.
9317
9318 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9319 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9320 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9321 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9322 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9323 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9324 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9325 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9326 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9327 occurrences of the above.
9328
b7f31508
ILT
93292003-05-14 Ian Lance Taylor <ian@airs.com>
9330
9331 * Makefile.in (install-only): Use $(SHELL) when running
9332 mkinstalldirs.
9333
2fdbdd39
ILT
93342003-05-13 Ian Lance Taylor <ian@airs.com>
9335
a208d82c
ILT
9336 * MAINTAINERS (write after approval): Add myself.
9337
2fdbdd39
ILT
9338 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9339 second and third arguments.
9340 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9341 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9342
fbd9dcd3
AC
93432003-05-13 Andrew Cagney <cagney@redhat.com>
9344
9345 * defs.h (store_address): Delete declaration.
9346 findvar.c (store_address): Delete function.
9347 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9348 store_unsigned_integer.
9349 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9350 * v850-tdep.c (v850_push_arguments): Ditto.
9351 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9352 * sh-tdep.c (sh64_get_saved_register): Ditto.
9353 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9354 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9355 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9356 (mips_get_saved_register): Ditto.
9357 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9358 (find_func_descr, ia64_push_arguments): Ditto.
9359 * i386-tdep.c (i386_push_arguments): Ditto.
9360 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9361 * frv-tdep.c (frv_push_arguments): Ditto.
9362 * frame.c (legacy_saved_regs_prev_register): Ditto.
9363 (deprecated_generic_get_saved_register): Ditto.
9364 * findvar.c (unsigned_address_to_pointer): Ditto.
9365 * dwarf2read.c (dwarf2_const_value): Ditto.
9366 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9367 * alpha-tdep.c (alpha_push_arguments): Ditto.
9368
6760f9e6
JB
93692003-05-12 J. Brobecker <brobecker@gnat.com>
9370
9371 * NEWS: Mention that the hppa-hpux port has been partially
9372 multiarched (32bit ABIT only, so far).
9373
30e221b4
AC
93742003-05-11 Andrew Cagney <cagney@redhat.com>
9375
9376 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9377 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9378 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9379 sim/testsuite/sim/arm/misaligned2.ms, and
9380 sim/testsuite/sim/arm/misaligned3.ms.
9381 * disasm.h (struct ui_file): Add opaque struct declaration.
9382 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9383 * frame.h (struct ui_file): Ditto.
9384
dea7f9ba
MK
93852003-05-11 Mark Kettenis <kettenis@gnu.org>
9386
9387 * value.h: Pretty print.
9388
01986c48
MK
93892003-05-10 Mark Kettenis <kettenis@gnu.org>
9390
9391 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9392
123a958e
AC
93932003-05-08 Andrew Cagney <cagney@redhat.com>
9394
9395 * regcache.h (max_register_size): Delete declaration.
9396 * regcache.c (max_register_size): Delete function.
9397 (struct regcache_descr): Delete field "max_register_size".
9398 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9399 registers fit in MAX_REGISTER_SIZE.
9400 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9401 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9402 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9403 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9404 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9405 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9406 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9407 * dve3900-rom.c, hppa-tdep.c: Ditto.
9408
eb294659
DC
94092003-05-08 David Carlton <carlton@math.stanford.edu>
9410
9411 * valops.c (push_word): Fix typo.
9412
d9d9c31f
AC
94132003-05-08 Andrew Cagney <cagney@redhat.com>
9414
9415 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9416 * gdbarch.h: Re-generate.
9417 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9418 (legacy_max_register_raw_size): Delete declaration.
9419 * regcache.c (legacy_max_register_raw_size): Delete function.
9420 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9421 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9422 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9423 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9424 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9425 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9426 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9427 * findvar.c, dwarf2cfi.c: Ditto.
9428
22540ece
AC
94292003-05-08 Andrew Cagney <cagney@redhat.com>
9430
9431 * mips-tdep.c (read_signed_register): New function, moved to here
9432 from "regcache.c".
9433 (read_signed_register_pid): Ditto.
9434 * regcache.c (read_signed_register_pid): Delete function, moved to
9435 "mips-tdep.c".
9436 (read_signed_register): Ditto.
9437 * regcache.h (read_signed_register): Delete declaration.
9438 (read_signed_register_pid): Delete declaration.
9439
0c92afe8
AC
94402003-05-08 Andrew Cagney <cagney@redhat.com>
9441
9442 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9443 * gdbarch.h: Re-generate.
9444 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9445 (legacy_max_register_virtual_size): Delete declaration.
9446 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9447 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9448 * tracepoint.c (memrange_sortmerge): Ditto.
9449 * sparc-tdep.c (sparc_print_registers): Ditto.
9450 * regcache.c (legacy_max_register_virtual_size): Delete function.
9451
6037b830
JB
94522002-05-08 J. Brobecker <brobecker@gnat.com>
9453
9454 * fork-child.c (escape_bang_in_quoted_argument): New function.
9455 (fork_inferior): Escape '!' characters in quoted arguments
9456 only when needed.
9457
5d62c8b1
JB
94582003-05-08 J. Brobecker <brobecker@gnat.com>
9459
9460 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9461 the language of the CU is not currently supported by GDB.
9462
20a0e81d
JB
94632003-05-08 J. Brobecker <brobecker@gnat.com>
9464
9465 * defs.h (language): Add language_minimal enum value.
9466 * c-lang.c (minimal_language_defn): New language definition.
9467 (_initialize_c_language): Add the new minimal language to the list
9468 of languages known to GDB.
9469
710ee10a
KB
94702003-05-08 Kevin Buettner <kevinb@redhat.com>
9471
9472 * frame.c (get_frame_type): Don't attempt to lazily initialize
9473 frame's unwinder for legacy frames.
9474
1750fa04
AC
94752003-05-07 Andrew Cagney <cagney@redhat.com>
9476
9477 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9478 and "regcache" parameters.
9479 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9480
ddf9f258 94812003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9482
9483 * dwarf2read.c (dwarf_decode_lines): Only use output of
9484 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9485 the current address.
9486
87767c29
AC
94872003-05-07 Andrew Cagney <cagney@redhat.com>
9488
9489 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9490 code.
9491
5e7b2f39
JB
94922003-05-07 Jim Blandy <jimb@redhat.com>
9493
9494 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9495 'maint info symtabs' and 'maint info psymtabs'.
9496 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9497 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9498 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9499 Declarations updated.
9500 * maint.c (maintenance_list_command): Delete.
9501 (_initialize_maint_cmds): Update calls to add_cmd.
9502 * gdbcmd.h (maintenancelistlist): Delete declaration.
9503 * cli/cli-cmds.c (maintenancelistlist): Delete.
9504 (init_cmd_lists): Don't initialize it.
9505 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9506
f6684c31
AC
95072003-05-07 Andrew Cagney <cagney@redhat.com>
9508
9509 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9510 "regcache".
9511 (d10v_print_registers_info): Update.
9512 (d10v_dmap_register, d10v_imap_register): Delete functions.
9513 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9514 and "imap_register".
9515 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9516 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9517 * arch-utils.c (generic_remote_translate_xfer_address): Add
9518 "regcache" and "gdbarch" parameters.
9519 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9520 parameter. Change class to multi-arch.
9521 * gdbarch.h, gdbarch.c: Re-generate.
9522 * remote.c (remote_xfer_memory): Use
9523 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9524
e4846b08
JJ
95252003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9526
9527 * infrun.c (prev_pc): Move declaration ahead of proceed().
9528 (proceed): Refresh prev_pc value before resuming.
9529 (stop_stepping): Remove code to refresh prev_pc.
9530
6b71b8ac
KW
95312003-05-06 Kris Warkentin <kewarken@qnx.com>
9532
9533 * nto-tdep.c: Removed stray comment.
9534
47979a4b
KW
95352003-05-06 Kris Warkentin <kewarken@qnx.com>
9536
9537 * i386-nto-tdep.c: Fix old K&R function definitions.
9538 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9539 Also change add_show_from_set() call to add_setshow_cmd().
9540 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9541
00905d52
AC
95422003-05-05 Andrew Cagney <cagney@redhat.com>
9543
9544 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9545 (fprint_dummy_frames): New function.
9546 (maintenance_print_dummy_frames): New function.
9547 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9548 * frame.c (fprint_frame_id): Make global.
9549 * frame.h (fprint_frame_id): Declare.
9550 * Makefile.in (dummy-frame.o): Update dependencies.
9551
b1e29e33
AC
95522003-05-05 Andrew Cagney <cagney@redhat.com>
9553
9554 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9555 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9556 SIZEOF_CALL_DUMMY_WORDS.
9557 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9558 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9559 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9560 CALL_DUMMY_BREAKPOINT_OFFSET.
9561 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9562 CALL_DUMMY_START_OFFSET.
9563 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9564 * gdbarch.h, gdbarch.c: Re-generate.
9565 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9566 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9567 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9568 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9569 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9570 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9571 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9572 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9573 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9574 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9575 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9576 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9577 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9578 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9579 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9580
95812003-05-05 Kris Warkentin <kewarken@qnx.com>
9582
9583 * configure.tgt: Add i[3456]86-*-nto*.
9584 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9585 * nto-tdep.c: New file. Neutrino target support routines.
9586 * nto-tdep.h: New file. Neutrino target header.
9587 * config/tm-qnxnto.h: New file.
9588 * config/i386/i386nto.mt: New file.
9589 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9590
0ce3d317
AC
95912003-05-04 Andrew Cagney <cagney@redhat.com>
9592
9593 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9594 (load_infrun_state): Ditto.
9595 (struct thread_info): Drop "prev_func_name" field.
9596 * thread.c (load_infrun_state): Update.
9597 (save_infrun_state): Update.
9598 * infrun.c (prev_func_name): Delete variable.
9599 (init_wait_for_inferior): Do not clear prev_func_name.
9600 (stop_stepping, keep_going, context_switch): Do not swap
9601 prev_func_name.
9602 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9603 instead of PC_IN_SIGTRAMP.
9604
46654a5b
AC
96052003-05-04 Andrew Cagney <cagney@redhat.com>
9606
9607 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9608 REGISTER_BYTE with register_offset_hack.
9609 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9610 that REGISTER_BYTE is consistent with the regcache.
9611 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9612 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9613
14b08c1b
MK
96142003-05-04 Mark Kettenis <kettenis@gnu.org>
9615
04c8243f
MK
9616 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9617 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9618
14b08c1b
MK
9619 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9620
c7a11e01
JB
96212003-05-03 J. Brobecker <brobecker@gnat.com>
9622
9623 From Thierry Schneider <tpschneider1@yahoo.com>
9624 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9625 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9626 (mi-cmd-symbol.o): Add rule.
9627
7043d8dc
AC
96282003-05-03 Andrew Cagney <cagney@redhat.com>
9629
9630 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9631 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9632 * gdbarch.h, gdbarch.c: Re-generate.
9633 * d10v-tdep.c (d10v_push_dummy_code): New function.
9634 (d10v_gdbarch_init): Set push_dummy_code.
9635 * infcall.c (legacy_push_dummy_code): New function.
9636 (generic_push_dummy_code): New function.
9637 (push_dummy_code): New function.
9638 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9639 instead of dummy_addr, to push_dummy_call. Move call to
9640 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9641 switch.
9642 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9643
92bf2b80
AC
96442003-05-03 Andrew Cagney <cagney@redhat.com>
9645
9646 * disasm.h (print_insn): Declare.
9647 * disasm.c (init_gdb_disassemble_info): New function.
9648 (gdb_disassembly): Call init_gdb_disassemble_info.
9649 (gdb_print_insn): New function.
9650 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9651 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9652 * mcore-tdep.c: Include "disasm.h"
9653 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9654 * d10v-tdep.c: Include "disasm.h".
9655 (display_trace): Call gdb_print_insn, instead of print_insn.
9656 (print_insn): Delete function.
9657 * printcmd.c: Include "disasm.h".
9658 (print_insn): Delete function.
9659 (print_formatted): Call gdb_print_insn, instead of print_insn.
9660 * Makefile.in (printcmd.o): Update dependencies.
9661 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9662
27d94c49
AC
96632003-05-02 Andrew Cagney <cagney@redhat.com>
9664
82de1e5b
AC
9665 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9666 PC_REGNUM, re-indent.
9667 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9668 PC_REGNUM isn't set.
9669
27d94c49
AC
9670 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9671 * gdbarch.h, gdbarch.c: Re-generate.
9672 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9673 register_virtual_size, pc_regnum, or register_bytes.
9674 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9675 (d10v_register_type): Use D10V_PC_REGNUM.
9676 (d10v_print_registers_info, d10v_read_pc): Ditto.
9677 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9678 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9679
a9c0dc7f
DC
96802003-05-02 David Carlton <carlton@bactrian.org>
9681
9682 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9683 the name with mstrsave.
9684
e33d66ec
EZ
96852003-05-02 Elena Zannoni <ezannoni@redhat.com>
9686
9687 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9688 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9689 (host_charset_name, target_charset_name): New vars for use by
9690 set/show commands.
9691 (host_charset_enum, target_charset_enum): New enums for set/show
9692 commands.
9693 (set_charset_sfunc, set_host_charset_sfunc,
9694 set_target_charset_sfunc): New functions.
9695 (set_host_charset, set_target_charset): Make static.
9696 (list_charsets, set_host_charset_command,
9697 set_target_charset_command): Delete functions.
9698 (show_charset_command): Rewrite as....
9699 (show_charset): Hook this up with the set/show command mechanism.
9700 (_initialize_charset): Change names of charsets to match the
9701 set/show enums. Use host_charset_name and target_charset_name.
9702 Use set/show mechanism for charset, host-charset, target-charset
9703 commands. Do not make 'show host-charset' and 'show
9704 target-charset' be aliases of 'show charset'.
9705
9706 * charset.h (set_host_charset, set_target_charset): Don't export,
9707 they are not used outside the file.
9708
2b6fd0d8
AC
97092003-05-01 Andrew Cagney <cagney@redhat.com>
9710
9711 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9712 (gdb_disassembly): Make "di" non static, always initialize and
9713 cleanup. Always use dis_asm_read_memory.
9714 (gdb_dis_asm_read_memory): Delete function.
9715
6ae2f580
AC
97162003-05-01 Andrew Cagney <cagney@redhat.com>
9717
9718 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9719 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9720
810ecf9f
AC
97212003-04-30 Andrew Cagney <cagney@redhat.com>
9722
9723 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9724 "tm_print_insn_info".
9725 (TARGET_PRINT_INSN_INFO): Delete macro.
9726 (dis_asm_read_memory): Delete function declaration.
9727 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9728 (tm_print_insn_info): Delete variable definition.
9729 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9730 * gdbarch.h, gdbarch.c: Re-generate.
9731 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9732 "deprecated_tm_print_insn_info".
9733 * mcore-tdep.c (mcore_dump_insn): Ditto.
9734 * mips-tdep.c (mips_gdbarch_init): Ditto.
9735 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9736 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9737 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9738 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9739 instead of TARGET_PRINT_INSN_INFO, add comment.
9740 * s390-tdep.c (s390_get_frame_info): Instead of
9741 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9742 (s390_check_function_end, s390_is_sigreturn): Ditto.
9743 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9744 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9745 * disasm.c: Include "gdbcore.h".
9746 (_initialize_disasm): New function, initialize
9747 "deprecated_tm_print_insn_info".
9748 (deprecated_tm_print_insn_info): New variable.
9749 (dis_asm_read_memory): Moved from "corefile.c", made static.
9750 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9751 * Makefile.in (disasm.o): Update dependencies.
9752
07020390
AC
97532003-04-30 Andrew Cagney <cagney@redhat.com>
9754
9755 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9756
a9fa03de
AF
97572003-04-29 Adam Fedor <fedor@gnu.org>
9758
9759 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9760 * infcall.c (find_function_addr): Make non-static.
9761 * infcall.h (find_function_addr): Declare.
9762 * Makefile.in (eval.o): Update dependencies.
9763
1bae87b9
AF
97642003-04-28 Adam Fedor <fedor@gnu.org>
9765
9766 * symtab.c (symbol_find_demangled_name): Check for and demangle
9767 ObjC symbols.
9768 (symbol_init_demangled_name): Init for language_objc as well.
9769
0ba6dca9
AC
97702003-04-28 Andrew Cagney <cagney@redhat.com>
9771
9772 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9773 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9774 * gdbarch.h, gdbarch.c: Re-generate.
9775 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9776 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9777 * inferior.h (deprecated_read_fp): Rename read_fp.
9778 (generic_target_read_fp): Delete declaration.
9779 * regcache.c (generic_target_read_fp): Delete function.
9780 (deprecated_read_fp): Replace read_fp, use
9781 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9782 * d10v-tdep.c (d10v_read_fp): Delete function.
9783 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9784
9785 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9786 deprecated_target_read_fp to generic_target_read_fp.
9787 * sh-tdep.c (sh_gdbarch_init): Ditto.
9788 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9790 * frv-tdep.c (frv_gdbarch_init): Ditto.
9791
9792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9793 deprecated_fp_regnum.
9794 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9795 * vax-tdep.c (vax_gdbarch_init): Ditto.
9796 * v850-tdep.c (v850_gdbarch_init): Ditto.
9797 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9798 * sh-tdep.c (sh_gdbarch_init): Ditto.
9799 * s390-tdep.c (s390_gdbarch_init): Ditto.
9800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9802 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9803 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9805 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9806 * i386-tdep.c (i386_gdbarch_init): Ditto.
9807 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9808 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9809 * frv-tdep.c (frv_gdbarch_init): Ditto.
9810 * cris-tdep.c (cris_gdbarch_init): Ditto.
9811 * avr-tdep.c (avr_gdbarch_init): Ditto.
9812 * arm-tdep.c (arm_gdbarch_init): Ditto.
9813 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9814
9815 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9816 * v850-tdep.c (v850_gdbarch_init): Ditto.
9817 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9818 * sh-tdep.c (sh_gdbarch_init): Ditto.
9819 * s390-tdep.c (s390_gdbarch_init): Ditto.
9820 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9821 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9822 * mips-tdep.c (mips_gdbarch_init): Ditto.
9823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9824 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9825 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9826 * frv-tdep.c (frv_gdbarch_init): Ditto.
9827 * avr-tdep.c (avr_gdbarch_init): Ditto.
9828 * arm-tdep.c (arm_gdbarch_init): Ditto.
9829
9830 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9831 DEPRECATED_FP_REGNUM.
9832 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9833 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9834 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9835 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9836 (sparc32_register_virtual_type): Ditto.
9837 * sh-tdep.c (sh64_frame_chain): Ditto.
9838 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9839 (sh_nofp_frame_init_saved_regs): Ditto.
9840 (sh64_nofp_frame_init_saved_regs): Ditto.
9841 (sh_fp_frame_init_saved_regs): Ditto.
9842 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9843 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9844 * procfs.c (procfs_fetch_registers): Ditto.
9845 (procfs_store_registers): Ditto.
9846 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9847 (store_inferior_registers, fetch_core_registers): Ditto.
9848 (fetch_kcore_registers, clear_regs): Ditto.
9849 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9850 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9851 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9852 * nlm/i386.c (do_status): Ditto.
9853 * mipsv4-nat.c (supply_gregset): Ditto.
9854 * mips-tdep.c: Ditto for comments.
9855 * mips-nat.c (fetch_inferior_registers): Ditto.
9856 (store_inferior_registers, fetch_core_registers): Ditto.
9857 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9858 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9859 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9860 (i386_do_pop_frame, i386_register_type): Ditto.
9861 * hppa-tdep.c (hppa_frame_chain): Ditto.
9862 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9863 (hppa_pop_frame, hppa_read_fp): Ditto.
9864 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9865 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9866 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9867 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9868 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9869 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9870 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9871 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9872 * blockframe.c: Ditto for comments.
9873 * arch-utils.h: Ditto for comments.
9874 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9875 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9876 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9877 * alpha-tdep.h: Ditto for comments.
9878 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9879 (alpha_cannot_store_register): Ditto.
9880 (alpha_push_dummy_frame): Ditto.
9881 * alpha-nat.c (supply_gregset): Ditto.
9882
9883 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9884 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9885 * config/sparc/tm-sparc.h: Update comment.
9886
9887 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9888 deprecated_read_fp instead of TARGET_READ_FP.
9889 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9890 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9891 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9892 deprecated_read_fp instead of read_fp.
9893 * s390-tdep.c (s390_push_arguments): Ditto.
9894 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9895 * frame.h: Ditto in comments.
9896 * frame.c (legacy_get_prev_frame): Ditto.
9897 * dummy-frame.c (dummy_frame_this_id): Ditto.
9898 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9899
d7a27068
AC
99002003-04-28 Andrew Cagney <cagney@redhat.com>
9901
9902 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9903 * gdbarch.h, gdbarch.c: Re-generate.
9904 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9905 * vax-tdep.c (_initialize_vax_tdep): Update.
9906 * v850-tdep.c (_initialize_v850_tdep): Update.
9907 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9908 * s390-tdep.c (_initialize_s390_tdep): Update.
9909 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9910 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9911 * mips-tdep.c (_initialize_mips_tdep): Update.
9912 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9913 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9914 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9915 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9916 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9917 * frv-tdep.c (_initialize_frv_tdep): Update.
9918 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9919 (_initialize_cris_tdep): Update.
9920 * arch-utils.c (legacy_print_insn): Update.
9921 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9922
d2630e69
AF
99232003-04-26 Adam Fedor <fedor@gnu.org>
9924
9925 * linespec.c (decode_objc): New function to decode ObjC calls
9926 (decode_line_1): Check for ObjC calls (using decode_objc)
9927 * Makefile (linespec.o): Update dependencies.
9928
3086aeae
DJ
99292003-04-26 Daniel Jacobowitz <drow@mvista.com>
9930
9931 * breakpoint.h (struct breakpoint_ops): New.
9932 (struct breakpoint): Add ops member.
9933
9934 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9935 (mention): Use new breakpoint ops member.
9936 (set_raw_breakpoint): Initialize ops field to NULL.
9937 (print_exception_catchpoint, print_one_exception_catchpoint)
9938 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9939 (gnu_v3_exception_catchpoint_ops): New.
9940 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9941
1fbec6c3
AF
99422003-04-25 Adam Fedor <fedor@gnu.org>
9943
9944 * Makefile.in (COMMON_OBS): Add objc-lang.o
9945
0ef21242
AC
99462003-04-25 Andrew Cagney <cagney@redhat.com>
9947
9948 * d10v-tdep.c (print_insn): Delete function.
9949 (display_trace): Use TARGET_PRINT_INSN.
9950 (_initialize_d10v_tdep): Do not set tm_print_insn.
9951 (d10v_gdbarch_init): Set print_insn.
9952
f75493ed
AC
99532003-04-25 Andrew Cagney <cagney@redhat.com>
9954
9955 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9956 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9957 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9958 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9959 (nr_dmap_regs, a0_regnum): ... new functions.
9960 (d10v_print_registers_info): Use a0_regnum, use register_size.
9961 (d10v_register_byte): Delete function.
9962 (d10v_register_raw_size): Delete function.
9963 (d10v_register_type): Use a0_regnum.
9964 (d10v_print_registers_info): Use a0_regnum.
9965 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9966 (d10v_gdbarch_init): Do not set register_byte or
9967 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9968 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9969 extract_address.
9970 (trace_command): Use XCALLOC.
9971 (print_insn): Delete reference to tm_print_insn.
9972 (saved_regs_unwinder): Use store_unsigned_integer instead of
9973 store_address.
9974 * frame.h (FRAME_OBSTACK_CALLOC): Define
9975
2202b100
DC
99762003-04-25 David Carlton <carlton@bactrian.org>
9977
9978 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9979
4e45ca2e
AF
99802003-04-24 Adam Fedor <fedor@gnu.org>
9981
9982 * objc-lang.c: Include "valprint.h"
9983 * Makefile.in (objc-lang.o): Update dependencies.
9984
93de3e7f
AF
99852003-04-24 Adam Fedor <fedor@gnu.org>
9986
8ffd9b1b 9987 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9988 architecture dependant compilation and mark as unimplemented
9989 (until they get put in the gdbarch vector).
9990
0f20eeea
DC
99912003-04-23 David Carlton <carlton@bactrian.org>
9992
9993 * cp-support.c (cp_find_first_component): Accept 'operator' in
9994 more locations.
9995
74cfe982
AC
99962003-04-23 Andrew Cagney <cagney@redhat.com>
9997
9998 * infcall.c (call_function_by_hand): Eliminate redundant
9999 indentation. Move "saved_async" and "old_cleanups" to where they
10000 are needed.
8ffd9b1b 10001
52557533
AC
100022003-04-23 Andrew Cagney <cagney@redhat.com>
10003
10004 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10005 and "buffer". Move the "name" code to where it is needed.
10006
158775de
AC
100072003-04-23 Andrew Cagney <cagney@redhat.com>
10008
10009 * infcall.c (call_function_by_hand): Move variables "start_sp",
10010 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10011 code to ON_STACK switch branch.
8ffd9b1b 10012
ebc7896c
AC
100132003-04-23 Andrew Cagney <cagney@redhat.com>
10014
10015 * infcall.c (call_function_by_hand): Make declaration of "i",
10016 "sal", "bpt" and "old_sp" more local to their use. Delete #if
10017 lint.
10018
d727590f
AC
100192003-04-23 Andrew Cagney <cagney@redhat.com>
10020
10021 * infcall.c (call_function_by_hand): Delete variable
10022 "n_method_args". Localize "param_type"'s declaration to the loop
10023 that it is used. Reinstate code assigning to said variable -
10024 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
10025 Rationalize code using "param_type".
10026
d585e13a
AC
100272003-04-22 Andrew Cagney <cagney@redhat.com>
10028
10029 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10030 compute the breakpoint address. Only call FIX_CALL_DUMMY when
10031 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
10032 to DEPRECATED_PUSH_RETURN_ADDRESS.
10033
051caad9
KB
100342003-04-22 Kevin Buettner <kevinb@redhat.com>
10035
10036 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10037 on the DWARF2 register number prior to fetching a register.
10038
77296879
JB
100392003-04-22 J. Brobecker <brobecker@gnat.com>
10040
10041 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10042 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 10043 this macro was always set to 0.
77296879
JB
10044 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10045 considering the fact that this macro was always set to 0.
10046 * hppa-tdep.h (hppa_store_return_value): Likewise.
10047 (hppa_extract_return_value): Likewise.
10048
4252f1df
JB
100492003-04-22 J. Brobecker <brobecker@gnat.com>
10050
10051 * config/pa/tm-hppa.h: Remove obsolete code, was used by
10052 the hppa-pro target only.
10053
14604c6b
JB
100542003-04-21 J. Brobecker <brobecker@gnat.com>
10055
10056 Ongoing multi-arch conversion effort for HP/UX:
10057 * config/pa/tm-hppa.h: Move all macro that are no longer
10058 defined now that GDB_MULTI_ARCH is now set to 1 from here...
10059 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10060
77eb01d1
JB
100612003-04-21 J. Brobecker <brobecker@gnat.com>
10062
10063 * config/pa/tm-hppa.h: Obsolete a section that was only used
10064 for hppa-pro.
10065
61995b3b
JB
100662003-04-21 J. Brobecker <brobecker@gnat.com>
10067
10068 Ongoing multi-arch conversion for HP/UX.
10069 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10070 if already defined (allows hppa64 to stay non-multiarched for now).
10071 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10072
4aa79dcc
AC
100732003-04-21 Andrew Cagney <cagney@redhat.com>
10074
10075 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10076
0f751ff2
AC
100772003-04-21 Andrew Cagney <cagney@redhat.com>
10078
10079 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10080 "i386_num_mmx_regs".
10081
04714b91
AC
100822003-04-21 Andrew Cagney <cagney@redhat.com>
10083
10084 * infcall.c: New file.
10085 * infcall.h: New file.
10086 * valarith.c: Include "infcall.h".
10087 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10088 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10089 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10090 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10091 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10092 (SFILES): Add "infcall.c"
10093 (COMMON_OBS): Add "infcall.o".
10094 (infcall.o): Specify dependencies.
10095 * value.h (call_function_by_hand): Delete declaration.
10096 * inferior.h (run_stack_dummy): Delete declaration.
10097 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10098 (run_stack_dummy): Move to "infcall.c", merged into
10099 call_function_by_hand.
10100 * valops.c (call_function_by_hand): Moved to "infcall.c".
10101 (find_function_addr, value_arg_coerce): Ditto.
10102 (unwindonsignal_p, coerce_float_to_double): Ditto.
10103 (_initialize_valops): Move "set/show coerce-float-to-double", and
10104 "set/show unwindonsignal" commands to "infcall.c".
10105 * v850-tdep.c, target.h: Update comments.
10106 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10107 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10108 (sh64_init_extra_frame_info): Update comments.
10109 * mn10300-tdep.c: Update comments.
10110 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10111 * config/sparc/tm-sparc.h: Update comments.
10112 * breakpoint.h: Update comments.
10113 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10114 * arm-tdep.c: Update comment.
10115
f9d3c2a8
MK
101162003-04-19 Mark Kettenis <kettenis@gnu.org>
10117
c40e1eab
MK
10118 * i386-tdep.c (i386_num_register_names): New variable.
10119 (i386_num_mmx_regs): Renamed from mmx_num_regs.
10120 (MM0_REGNUM): Remove redundant parentheses in define.
10121 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10122 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10123 i386_mxcsr_regnum_p): Remove redundant parentheses.
10124 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 10125
94ea66b3
MK
10126 * i386-tdep.c (i386_extract_return_value,
10127 i386_store_return_value): Correct check for availability of
10128 floating-point registers.
10129
54299a1d
MK
10130 * i386-tdep.c (i386_frame_num_args): Remove function.
10131 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10132
c86c27af
MK
10133 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10134 mmx_regnum_to_fp_regnum. Adjust all callers.
10135
f9d3c2a8
MK
10136 * i386-tdep.c (i386_get_longjmp_target): Use
10137 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10138 and TARGET_CHAR_BIT. Use extract_typed_address instead of
10139 extract_address.
10140
94ba74a9
MK
101412003-04-19 Mark Kettenis <kettenis@gnu.org>
10142
10143 * core-regset.c: Update comments to reflect reality. Re-order
10144 includes.
10145 (fetch_core_registers): Use switch instead of if. Remove
10146 redundant prototype.
10147
4074e13c
JB
101482003-04-18 Jim Blandy <jimb@redhat.com>
10149
10150 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 10151 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 10152
e3ab4aba
RH
101532003-04-17 Richard Henderson <rth@redhat.com>
10154
10155 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10156
627bf7c1
EZ
101572003-04-17 Michael Snyder <msnyder@redhat.com>
10158 Karen Bennet <bennet@redhat.com>
10159
10160 Committed by Elena Zannoni <ezannoni@redhat.com>
10161 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 10162
514621a9
EZ
101632003-04-17 Elena Zannoni <ezannoni@redhat.com>
10164
10165 * values.c (value_being_returned): Don't fetch the return
fbe586ae 10166 value if the return type is void.
514621a9 10167
b4acd559
JJ
101682003-04-17 Jeff Johnston <jjohnstn@redhat.com>
10169
10170 * thread-db.c: Reindented.
8ffd9b1b 10171
530b167e 101722003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
10173
10174 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10175 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
10176 as types.
10177
0a48e7e8
MS
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
8ffd9b1b 10201
ab9fe00e
KB
102022003-04-16 Kevin Buettner <kevinb@redhat.com>
10203
610a3745 10204 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
10205 the size of ``long double'' to 16, instead of 8.
10206
e64a344c
MK
102072003-04-16 Mark Kettenis <kettenis@gnu.org>
10208
10209 * i386-linux-nat.c: Add some whitespace to make things more
10210 readable.
10211 (fetch_register, store_register, fetch_inferior_registers,
10212 store_inferior_registers): Get rid of assignment in if-statement.
10213 (store_register): Fix typo in error message.
10214
25d41031
AC
102152003-04-16 Andrew Cagney <cagney@redhat.com>
10216
10217 * utils.c (xmmalloc): Always allocate something, matches
10218 libiberty/xmalloc's semantics.
10219 (xmrealloc, xmcalloc): Ditto.
10220
c50901fd
AC
102212003-04-16 Andrew Cagney <cagney@redhat.com>
10222
10223 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10224 update comments.
10225 (get_frame_type): Initialize unwind and type when needed.
10226 (get_frame_id, frame_register_unwind): Ditto.
10227
f81824a9
AC
102282003-04-16 Andrew Cagney <cagney@redhat.com>
10229
10230 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10231 obsolete.
10232 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10233 * sparcl-stub.c: Obsolete file.
10234 * config/sparc/tm-sparclet.h: Obsolete file.
10235 * sparclet-stub.c: Obsolete file.
10236 * sparclet-rom.c: Obsolete file.
10237 * sparcl-tdep.c: Obsolete file.
10238 * config/sparc/tm-sparclite.h: Obsolete file.
10239 * config/sparc/sparclite.mt: Obsolete file.
10240 * config/sparc/sparclet.mt: Obsolete file.
10241 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10242 sparc86x-*-* obsolete.
10243
9219021c
DC
102442003-04-15 David Carlton <carlton@math.stanford.edu>
10245
10246 * Makefile.in (SFILES): Add cp-namespace.c.
10247 (COMMON_OBS): Add cp-namespace.o.
10248 (block.o): Depend on gdb_obstack_h and cp_support_h.
10249 (buildsym.o): Depend on cp_support_h.
10250 (cp-namespace.o): New.
10251 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10252 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10253 (dwarf2read.o): Depend on cp_support_h.
10254 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10255 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10256 processing_current_namespace.
10257 (read_namespace): Update processing_current_namespace; check for
10258 anonymous namespaces.
10259 (dwarf2_name): New function.
10260 (dwarf2_extension): Ditto.
10261 * cp-support.h: Update copyright, contributors.
10262 Add inclusion guards.
10263 Add opaque declaration for structs obstack, block, symbol.
10264 (struct using_direct): New struct.
10265 Add declarations for cp_find_first_component,
10266 cp_entire_prefix_len, processing_has_namespace_info,
10267 processing_current_namespace, cp_is_anonymous,
10268 cp_add_using_directive, cp_initialize_namespace,
10269 cp_finalize_namespace, cp_set_block_scope,
10270 cp_scan_for_anonymous_namespaces.
10271 * cp-namespace.c: New file.
10272 * cp-support.c: Update copyright.
10273 Include ctype.h, gdb_assert.h, gdbcmd.h.
10274 New variable maint_cplus_cmd_list.
10275 (cp_find_first_component): New function.
10276 (cp_entire_prefix_len, maint_cplus_command)
10277 (first_component_command, _initialize_cp_support): Ditto.
10278 * buildsym.c: Include cp-support.h.
10279 New variable using_list.
10280 (add_symbol_to_list): Check for anonymous namespaces.
10281 (finish_block): Set block's scope.
10282 (start_symtab): Initialize C++ namespace support.
10283 (end_symtab): Finalize C++ namespace support.
10284 * block.h: Add opaque declarations for structs
10285 block_namespace_info, using_direct, and obstack.
10286 Add declarations for block_set_scope and block_set_using.
10287 (struct block): Add 'language_specific' member.
10288 (BLOCK_NAMESPACE): New macro.
10289 * block.c: Include gdb_obstack.h and cp-support.h.
10290 (struct block_namespace_info): New struct.
10291 (block_set_scope): New function.
10292 (block_set_using, block_initialize_namespace): Ditto.
10293
d5a921c9
KB
102942003-04-14 Kevin Buettner <kevinb@redhat.com>
10295
10296 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10297 (locate_base): Return early if there aren't any link map offsets.
10298 (svr4_solib_create_inferior_hook): Warn if shared library support
10299 is unavailable.
10300
d2a52b27
DC
103012003-04-14 David Carlton <carlton@math.stanford.edu>
10302
10303 * symtab.c (symbol_set_names): Add prefix when storing Java names
10304 in hash table. Fix for PR java/1039.
10305
980cae7a
DC
103062003-04-14 David Carlton <carlton@math.stanford.edu>
10307
10308 * symtab.c (symbol_set_names): Rename 'name' arg to
10309 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10310 * symtab.h: Change 'name' argument in declaration of
10311 symbol_set_names to 'linkage_name'.
10312 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10313
e227b13c
AC
103142003-04-14 Andrew Cagney <cagney@redhat.com>
10315
10316 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10317 return the fully sign-extended register value.
10318 (get_frame_pointer): Ditto.
10319 (mips_pop_frame): Initialize "proc_desc" after checking for a
10320 dummy frame.
10321
36712a20
AC
103222003-04-14 Andrew Cagney <cagney@redhat.com>
10323
10324 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10325 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10326 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10327 (mips_push_register): Delete function.
10328 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10329 PUSH_FP_REGNUM.
10330
44ea7b70
JB
103312003-04-14 Jim Blandy <jimb@redhat.com>
10332
10333 * symmisc.c: #include "gdb_regex.h".
10334 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10335 functions.
10336 * maint.c (maintenance_list_command): New function.
10337 (_initialize_maint_cmds): Register the above as commands.
10338 * symtab.h (maintenance_list_symtabs,
10339 maintenance_list_psymtabs): New declarations.
10340 * cli/cli-cmds.c (maintenancelistlist): New variable.
10341 (init_cmd_lists): Initialize it.
10342 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10343 * gdbcmd.h (maintenancelistlist): New declaration.
10344 * Makefile.in (symmisc.o): Update dependencies.
10345
2d0c7962
EZ
103462003-04-14 Elena Zannoni <ezannoni@redhat.com>
10347
10348 * s390-nat.c: Include asm/types.h for addr_t.
10349
1947a811
CV
103502003-04-14 Corinna Vinschen <vinschen@redhat.com>
10351
10352 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10353 actually incoming type.
10354
adb616d7
AC
103552003-04-13 Andrew Cagney <cagney@redhat.com>
10356
10357 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10358 get_next_frame and get_frame_saved_regs.
10359
9b5e151c
AC
103602003-04-13 Andrew Cagney <cagney@redhat.com>
10361
10362 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10363 of gdbarch_num_regs.
10364
ef6e7e13
AC
103652003-04-13 Andrew Cagney <cagney@redhat.com>
10366
10367 * frame.h: Mention what replaced what in "struct frame_info".
10368 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10369 deprecated_update_frame_base_hack and
10370 deprecated_update_frame_pc_hack.
10371 * hppa-tdep.c: Ditto.
10372
61fbb938
DJ
103732003-04-13 Daniel Jacobowitz <drow@mvista.com>
10374
10375 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10376 to read_reg and update its comment. Remove regnum member.
10377 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10378 Don't call read_reg when setting in_reg. Call read_reg to get
10379 the frame base if it's in a register. Return the register number
10380 on the stack instead of in the context. Remove extra arguments
10381 to read_reg.
10382 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10383 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10384 the register number on the expression stack.
10385 (needs_frame_read_reg): Remove extra arguments.
10386
0d53c4c4
DJ
103872003-04-13 Daniel Jacobowitz <drow@mvista.com>
10388
10389 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10390 made non-static.
10391 (execute_stack_op): All callers updated.
10392 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10393 * dwarf2loc.c (find_location_expression): New function.
10394 (dwarf_expr_frame_base): Call it.
10395 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10396 (dwarf2_tracepoint_var_ref): New function, broken out from
10397 locexpr_tracepoint_var_ref.
10398 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10399 Make static.
10400 (loclist_read_variable, loclist_read_needs_frame): New functions.
10401 (loclist_describe_location, loclist_tracepoint_var_ref): New
10402 functions.
10403 (dwarf2_loclist_funcs): New struct location_funcs.
10404 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10405 (struct dwarf2_locexpr_baton): Add comments.
10406 (dwarf2_loclist_funcs): New extern.
10407 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10408 base_address and base_known.
10409 (dwarf_loc_buffer): New variable.
10410 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10411 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10412 (dwarf2_has_info): Initialize dwarf_loc_offset.
10413 (dwarf2_build_psymtabs): Read in .debug_loc.
10414 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10415 DWARF_LOC_SIZE.
10416 (psymtab_to_symtab_1): Likewise. Move base address calculation
10417 here, from...
10418 (dwarf2_get_pc_bounds): ... here. Use the base address from
10419 cu_header.
10420 (dwarf2_symbol_mark_computed): Handle location lists.
10421
6aca59a3
DJ
104222003-04-13 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10425 if the linkage name demangled successfully.
10426
aca1fcd0
MK
104272003-04-13 Mark Kettenis <kettenis@gnu.org>
10428
97095916
MK
10429 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10430 disassmbly_flavour): Removed.
10431
aca1fcd0
MK
10432 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10433
562a961f
MK
104342003-04-13 Mark Kettenis <kettenis@gnu.org>
10435
10436 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10437
bd013d54
AC
104382003-04-12 Andrew Cagney <cagney@redhat.com>
10439
10440 * frame.h (struct frame_info): Move definition from here ...
10441 * frame.c (struct frame_info): ... to here.
10442
167ef8b1
AC
104432003-04-12 Andrew Cagney <cagney@redhat.com>
10444
10445 * gdbthread.h (save_infrun_state): Delete parameter
10446 "prev_func_start".
10447 (struct thread_info): Delete field "prev_func_start".
10448 (load_infrun_state): Ditto.
10449 * thread.c (load_infrun_state, save_infrun_state): Update.
10450 * infrun.c (prev_func_start): Delete variable.
10451 (context_switch, init_wait_for_inferior): Update.
10452 (stop_stepping, keep_going): Update.
10453
da3331ec
AC
104542003-04-12 Andrew Cagney <cagney@redhat.com>
10455
10456 * gdbarch.sh: Add missing opaque declarations.
10457 * gdbarch.h: Regnerate.
10458 * symtab.h: Add missing opaque declarations.
10459 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10460 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10461 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10462 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10463 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10464 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10465 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10466 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10467 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10468 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10469 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10470 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10471 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10472
18adea3f
AC
104732003-04-11 Andrew Cagney <cagney@redhat.com>
10474
10475 * frame.c (get_frame_id): Return this frame's "id".
10476 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10477 function start.
10478 (legacy_saved_regs_this_id): Replace function body with
10479 internal-error.
10480 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10481 FRAME_OBSTACK_ZALLOC.
10482 (create_new_frame): Mark the frame ID as valid.
10483
2252e863
AO
104842003-04-11 Alexandre Oliva <aoliva@redhat.com>
10485
10486 * Makefile.in (libbfd_h): Added missing setting.
10487 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10488 according to the selected ABI.
10489
a8245ab8
JJ
104902003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10491
10492 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10493
6913c89a
AC
104942003-04-11 Andrew Cagney <cagney@redhat.com>
10495
10496 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10497 SAVED_PC_AFTER_CALL.
10498 * gdbarch.h, gdbarch.c: Regenerate.
10499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10500 * x86-64-tdep.c (x86_64_init_abi): Update.
10501 * vax-tdep.c (vax_gdbarch_init): Update.
10502 * v850-tdep.c (v850_gdbarch_init): Update.
10503 * sparc-tdep.c (sparc_gdbarch_init): Update.
10504 * sh-tdep.c (sh_gdbarch_init): Update.
10505 * s390-tdep.c (s390_gdbarch_init): Update.
10506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10507 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10508 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10509 * mips-tdep.c (mips_gdbarch_init): Update.
10510 * mcore-tdep.c (mcore_gdbarch_init): Update.
10511 * m68k-tdep.c (m68k_gdbarch_init): Update.
10512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10513 * ia64-tdep.c (ia64_gdbarch_init): Update.
10514 (ia64_saved_pc_after_call): Update declaration.
10515 * i386ly-tdep.c (i386lynx_init_abi): Update.
10516 * i386-tdep.c (i386_gdbarch_init): Update.
10517 * hppa-tdep.c (hppa_gdbarch_init): Update.
10518 * h8300-tdep.c (h8300_gdbarch_init): Update.
10519 * frv-tdep.c (frv_gdbarch_init): Update.
10520 * cris-tdep.c (cris_gdbarch_init): Update.
10521 * avr-tdep.c (avr_gdbarch_init): Update.
10522 * arm-tdep.c (arm_gdbarch_init): Update.
10523 * alpha-tdep.c (alpha_gdbarch_init): Update.
10524 * ns32knbsd-nat.c (frame_num_args): Update.
10525 * ns32k-tdep.c (umax_frame_num_args): Update.
10526 * mips-tdep.c (mips_init_frame_pc_first): Update.
10527 * infrun.c (step_over_function): Update.
10528 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10529 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10530 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10531 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10532 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10533 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10534 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10535 * arch-utils.c (init_frame_pc_default): Update.
10536 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10537 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10538 declaration.
8ffd9b1b 10539
38edeab8
AC
105402003-04-11 Andrew Cagney <cagney@redhat.com>
10541
10542 * i387-tdep.c: Update copyright.
10543 (i387_to_double): Delete function.
10544 (double_to_i387): Delete function.
10545
81f8a206
AC
105462003-04-10 Andrew Cagney <cagney@redhat.com>
10547
10548 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10549 frame's function's address. Simplify.
10550 (d10v_frame_unwind_cache): Check that the frame's function is
10551 non-zero.
10552
6e691f7a
JB
105532003-04-10 Jim Blandy <jimb@redhat.com>
10554
10555 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10556 call to set_gdbarch_deprecated_push_arguments.
10557
7f78e237
AC
105582003-04-10 Andrew Cagney <cagney@redhat.com>
10559
10560 * frame.c (fprint_frame_id): New function.
10561 (fprint_frame_type, fprint_frame): New function.
10562 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10563 (create_sentinel_frame, get_frame_id): Ditto.
10564 (frame_id_p, frame_id_eq): Ditto.
10565 (frame_id_inner, create_new_frame): Ditto.
10566 (legacy_get_prev_frame, get_prev_frame): Ditto.
10567 (deprecated_update_frame_pc_hack): Ditto.
10568 (frame_register_unwind): Ditto.
10569 (deprecated_update_frame_base_hack): Ditto.
10570
f870b49b
CV
105712003-04-10 Corinna Vinschen <vinschen@redhat.com>
10572
10573 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10574 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10575 frame_chain function.
10576 * Makefile.in: Add dependencies due to above change.
10577
7c86889b
CV
105782003-04-10 Corinna Vinschen <vinschen@redhat.com>
10579
10580 * blockframe.c (legacy_frame_chain_valid): Move call to
10581 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10582 inside_entry_file.
10583
d0a55772
AC
105842003-04-09 Andrew Cagney <cagney@redhat.com>
10585
10586 * frame.h (struct frame_id): Replace "pc" and "base" with
10587 "stack_addr" and "code_addr". Update comments.
10588 (frame_id_build): Update parameter names and comment.
10589 (struct frame_info): Replace "id_p" and "id" with "this_id".
10590 * dummy-frame.c (dummy_frame_this_id): Update.
10591 * breakpoint.c (print_one_breakpoint): Update.
10592 * frame.c (get_frame_id): Update.
10593 (get_frame_base, frame_id_build): Update.
10594 (create_sentinel_frame, legacy_get_prev_frame): Update.
10595 (deprecated_update_frame_base_hack): Update.
10596 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10597 (frame_id_inner): Ditto.
10598
ac16bf07
AC
105992003-04-09 Andrew Cagney <cagney@redhat.com>
10600
10601 * defs.h (gdb_print_host_address): Make "addr" parameter a
10602 pointer constant.
10603 * utils.c (gdb_print_host_address): Update.
10604
366cfc9e
KB
106052003-04-09 Kevin Buettner <kevinb@redhat.com>
10606
10607 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10608 register number for R0 is 0.
10609
cd983b5c
JB
106102003-04-09 J. Brobecker <brobecker@gnat.com>
10611
10612 * frame.h (struct gdbarch): Add opaque structure definition
10613 to avoid a compilation warning on LynxOS 4.0.
10614
d1340264
AC
106152003-04-09 Andrew Cagney <cagney@redhat.com>
10616
10617 * frame.h (struct frame_info): Delete field "pc". Replace
10618 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10619 structure.
10620 * frame.c (frame_pc_unwind): Update.
10621 (create_sentinel_frame): Do not set "pc".
10622 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10623 (get_frame_pc): Call frame_pc_unwind.
10624 (deprecated_update_frame_pc_hack): Update.
10625 (create_new_frame): Use "pc" not "->pc".
10626
90a6fffb
AC
106272003-04-09 Andrew Cagney <cagney@redhat.com>
10628
10629 * frame.c (get_frame_id): Eliminate code updating "frame".
10630 (legacy_get_prev_frame): Ditto.
10631 (get_frame_base): Return id.base directly.
10632 (deprecated_update_frame_base_hack): Update "id.base".
10633 * frame.h (struct frame_info): Delete field "frame".
10634
2fbce691
AC
106352003-04-09 Andrew Cagney <cagney@redhat.com>
10636
10637 * NEWS: Mention that the "Sequent family" is obsolete.
10638 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10639 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10640 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10641 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10642 * config/i386/tm-ptx4.h: Obsolete file.
10643 * config/i386/tm-ptx.h: Obsolete file.
10644 * symm-tdep.c: Obsolete file.
10645 * config/i386/symmetry.mt: Obsolete file.
10646 * config/i386/tm-symmetry.h: Obsolete file.
10647 * symm-nat.c: Obsolete file.
10648 * config/i386/nm-symmetry.h: Obsolete file.
10649 * config/i386/xm-symmetry.h: Obsolete file.
10650 * config/i386/symmetry.mh: Obsolete file.
10651 * config/i386/nm-ptx4.h: Obsolete file.
10652 * config/i386/ptx4.mh: Obsolete file.
10653 * config/i386/ptx.mt: Obsolete file.
10654 * config/i386/ptx.mh: Obsolete file.
10655 * config/i386/xm-ptx4.h: Obsolete file.
10656 * config/i386/xm-ptx.h: Obsolete file.
10657
78c43945
AC
106582003-04-09 Andrew Cagney <cagney@redhat.com>
10659
10660 Obsolete mips*-*-mach3*.
10661 * NEWS: Mention that mips*-*-mach3* is obsolete.
10662 * m3-nat.c: Obsolete file.
10663 * config/nm-m3.h: Obsolete file.
10664 * config/mips/tm-mipsm3.h: Obsolete file.
10665 * config/mips/mipsm3.mt: Obsolete file.
10666 * config/mips/mipsm3.mh: Obsolete file.
10667 * config/mips/xm-mipsm3.h: Obsolete file.
10668 * mipsm3-nat.c: Obsolete file.
10669 * configure.host: Obsolete mips-dec-mach3*.
10670 * configure.tgt: Obsolete mips*-*-mach3*.
10671
f1908289
AC
106722003-04-09 Andrew Cagney <cagney@redhat.com>
10673
10674 * doublest.h: Update copyright.
10675 (deprecated_store_floating, deprecated_extract_floating): Rename
10676 store_floating and extract_floating. Update comments.
10677 * doublest.c: Update copyright.
10678 (extract_floating_by_length): Replace extract_floating.
10679 (store_floating_by_length): Replace store_floating.
10680 (deprecated_extract_floating): New function.
10681 (deprecated_store_floating): New function.
10682 (extract_typed_floating): Call extract_floating_by_length.
10683 (store_typed_floating): Call store_floating_by_length.
10684 * x86-64-tdep.c (x86_64_store_return_value): Update.
10685 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10686 (sh64_extract_return_value): Update.
10687 (sh_sh4_register_convert_to_virtual): Update.
10688 (sh_sh64_register_convert_to_virtual): Update.
10689 (sh_sh4_register_convert_to_raw): Update.
10690 (sh_sh64_register_convert_to_raw): Update.
10691 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10692 (rs6000_register_convert_to_raw): Update.
10693 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10694 (ia64_register_convert_to_raw): Update.
10695 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10696 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10697 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10698 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10699 (alpha_register_convert_to_raw): Update.
10700
4443bd83
AC
107012003-04-08 Andrew Cagney <cagney@redhat.com>
10702
10703 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10704 * gdbarch.h, gdbarch.c: Re-generate.
10705 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10706 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10707 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10708 conditionally, use frame_pc_unwind as an alternative. Add
10709 comments.
10710 * arch-utils.c (init_frame_pc_default): Only call
10711 SAVED_PC_AFTER_CALL when available.
10712
c0236d92
EZ
107132003-04-08 Elena Zannoni <ezannoni@redhat.com>
10714
fbe586ae 10715 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10716 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10717 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10718 (start_remote): Ditto.
10719 (handle_inferior_event): Ditto.
10720 (save_inferior_status): Ditto.
10721 (restore_inferior_status): Ditto.
10722 * infcmd.c (attach_command): Ditto.
10723 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10724 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10725 * alpha-tdep.c (heuristic_proc_start): Ditto.
10726 * mips-tdep.c (heuristic_proc_start): Ditto.
10727 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10728 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10729 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10730 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10731 * remote-vx.c (vx_create_inferior): Ditto.
10732
107332003-04-08 Elena Zannoni <ezannoni@redhat.com>
10734
10735 * infrun.c (stop_soon_quietly): Make it an enum, to better
10736 override the default behavior of handle_inferior_event.
10737 (clear_proceed_status): Update uses of stop_soon_quietly to
10738 reflect that it is now an enum.
10739 (start_remote): Ditto.
10740 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10741 is set to handle the new GNU/Linux kernel behavior for
10742 attach/sigstop. Update uses of stop_soon_quietly.
10743 * inferior.h (enum stop_kind): New enum.
10744 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10745 Reset normal handle_inferior_event behavior, afterwards.
10746 * fork-child.c (startup_inferior): Update.
10747 * alpha-tdep.c (heuristic_proc_start): Update.
10748 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10749 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10750 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10751 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10752 * remote-vx.c (vx_create_inferior): Update.
10753 * mips-tdep.c (heuristic_proc_start): Update.
10754
1211bce3
EZ
107552003-04-07 Elena Zannoni <ezannoni@redhat.com>
10756
10757 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10758 be freed more than once, causing wild memory corruptions.
1211bce3 10759 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10760 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10761 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10762 with the "core" target.
1211bce3 10763
f0ef6b29
KB
107642003-04-07 Kevin Buettner <kevinb@redhat.com>
10765
10766 * mips-tdep.c (mips_print_fp_register): New function, created from
10767 do_fp_register_row(). Registers are now (also) printed as hex.
10768 Only one register is printed per row.
10769 (mips_print_register, do_fp_register_row): Print floating point
10770 registers with mips_print_fp_register().
10771
8cf71652
AC
107722003-04-06 Andrew Cagney <cagney@redhat.com>
10773
5e488a7b
AC
10774 * valprint.h (inspect_it): Add extern declaration.
10775 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10776 (selectors_info, classes_info): Ditto.
10777 (find_objc_msgcall): Fix indentation.
10778 (objc_printstr): Delete extern declarations.
10779
8cf71652
AC
10780 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10781
e6ba3bc9
AC
107822003-04-06 Andrew Cagney <cagney@redhat.com>
10783
10784 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10785 Update comment.
10786 * frame.c (legacy_saved_regs_this_id): Update.
10787 (legacy_get_prev_frame): Update.
10788 * xstormy16-tdep.c: Update comment.
10789 * sparc-tdep.c (sparc_frame_chain): Update comment.
10790 * blockframe.c (legacy_frame_chain_valid): Update.
10791
55e1d7e7
AC
107922003-04-06 Andrew Cagney <cagney@redhat.com>
10793
996179ee
AC
10794 * valprint.c (val_print_type_code_int): Delete #ifdef
10795 PRINT_TYPELESS_INTEGER code.
10796
55e1d7e7
AC
10797 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10798 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10799 multi-arch definition.
10800 * gdbarch.h: Re-generate.
10801
43bd9a9e
AC
108022003-04-05 Andrew Cagney <cagney@redhat.com>
10803
10804 Eliminate FRAME_FIND_SAVED_REGS.
10805 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10806 Change FSR parameter to a pointer.
10807 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10808 Assume FSR parameter is a pointer.
10809 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10810 Make fsr a pointer.
10811 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10812 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10813 saved_regs a pointer.
10814 (hppa_frame_saved_pc): Ditto.
10815 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10816 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10817 pointer.
10818 (restore_pc_queue): Make fsr a pointer.
10819 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10820 (hppa_frame_chain): Make saved_regs a pointer, call
10821 hppa_frame_init_saved_regs.
10822 * sparc-tdep.c: Include "gdb_assert.h".
10823 (sparc_frame_find_saved_regs): Replace internal_error with
10824 gdb_assert.
10825 * remote-vxsparc.c (vx_read_register): Delete reference to
10826 FRAME_FIND_SAVED_REGS.
10827 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10828 * gdbarch.h: Regenerate.
10829 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10830 (deprecated_get_frame_saved_regs): Delete declaration.
10831 (struct frame_saved_regs): Delete definition.
10832 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10833 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10834 (hppa_frame_find_saved_regs): Delete declaration.
10835 (FRAME_FIND_SAVED_REGS): Delete macro.
10836 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10837 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10838 FRAME_FIND_SAVED_REGS in comment.
10839
be41e9f4
AC
108402003-04-05 Andrew Cagney <cagney@redhat.com>
10841
10842 * frame.c (frame_func_unwind, get_frame_func): New functions.
10843 * frame.h (get_frame_func, frame_func_unwind): Declare.
10844 (struct frame_info): Add field "prev_func" for caching the
10845 previous frame's function address.
10846 * arm-tdep.c (arm_frameless_function_invocation): Combine
10847 get_pc_function_start and get_frame_pc into get_frame_func.
10848 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10849 (sh64_nofp_frame_init_saved_regs): Ditto.
10850 * s390-tdep.c (s390_function_start): Ditto.
10851 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10852 (rs6000_frameless_function_invocation): Ditto.
10853 (rs6000_frame_saved_pc): Ditto.
10854 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10855 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10856 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10857 (i386_frame_init_saved_regs): Ditto.
10858 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10859 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10860 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10861 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10862 * blockframe.c (frameless_look_for_prologue): Ditto.
10863
a01dd7cc
AC
108642003-04-05 Andrew Cagney <cagney@redhat.com>
10865
10866 * frame.c (legacy_get_prev_frame): Link prev to next at the
10867 function start. Update comments.
10868
5e5592e6
AC
108692003-04-05 Andrew Cagney <cagney@redhat.com>
10870
10871 * frame.c (get_frame_id): Update comment.
10872 (legacy_get_prev_frame): Update comment.
10873 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10874 * gdbarch.h: Regenerate.
10875 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10876 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10877
6fba5002
AC
108782003-04-05 Andrew Cagney <cagney@redhat.com>
10879
10880 * stack.c (print_frame_info): Use get_frame_pc.
10881
7df05f2b
AC
108822003-04-04 Andrew Cagney <cagney@redhat.com>
10883
10884 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10885 the frame's type from the unwinder.
10886 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10887 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10888 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10889 (get_frame_base_address): Use get_frame_type.
10890 (get_frame_locals_address, get_frame_args_address): Ditto.
10891 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10892 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10893 (struct frame_info): Add comment explaining why the frame contains
10894 a "type" field.
10895 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10896 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10897 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10898 NORMAL_FRAME.
10899 * frame-unwind.h: Include "frame.h".
10900 (struct frame_unwind): Add "type" field.
10901 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10902
11889732
AC
109032003-04-04 Andrew Cagney <cagney@redhat.com>
10904
10905 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10906 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10907 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10908 get_frame_base.
10909 (d10v_unwind_dummy_id): Use frame_id_build.
10910 * frame.c (find_frame_sal): Use get_frame_pc.
10911 (create_new_frame): Use deprecated_update_frame_pc_hack and
10912 deprecated_update_frame_base_hack.
10913 (create_sentinel_frame): Add comment about ->pc going away.
10914 (get_prev_frame): Add comment about ->pc going away.
10915 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10916 frame_id_build, deprecated_update_frame_pc_hack and
10917 deprecated_update_frame_base_hack.
10918 (select_frame): Use get_frame_pc.
10919 (legacy_saved_regs_this_id): Use frame_id_build.
10920
50c46a0d
EZ
109212003-04-04 Elena Zannoni <ezannoni@redhat.com>
10922
fbe586ae
RH
10923 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10924 signed integer case.
10925 (classify_argument): Handle enumerations and references.
50c46a0d 10926
50bbdbd9
AC
109272003-04-04 Andrew Cagney <cagney@redhat.com>
10928
10929 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10930 ID to NULL.
10931
36018d2e
AF
109322003-04-01 Adam Fedor <fedor@gnu.org>
10933
10934 * gdb/objc-lang.c (selectors_info): Replace calls to
10935 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10936 SYMBOL_NATURAL_NAME.
10937 (classes_info, find_methods): Likewise.
10938
35cec841
KB
109392003-04-03 Kevin Buettner <kevinb@redhat.com>
10940
10941 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10942 ``mach'' to the value determined by bfd_default_set_arch_mach().
10943
43136899
BR
109442003-04-02 Bob Rossi <bob_rossi@cox.net>
10945
10946 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10947 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10948 (mi-cmd-file.o): Update dependencies.
10949
040b99fd
KB
109502003-04-01 Kevin Buettner <kevinb@redhat.com>
10951
10952 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10953 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10954
9a3d7dfd
AF
109552003-04-01 Adam Fedor <fedor@gnu.org>
10956
10957 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10958 * language.h (struct language_defn): Add la_demangle.
10959 (language_demangle): Declare.
10960 * language.c (language_demangle): New function.
10961 (unk_lang_demangle): Likewise.
10962 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10963 Add ukn_lang_demangle.
9a3d7dfd 10964 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10965 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10966 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10967 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10968 * jv-lang.c (java_demangle): New function
10969 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10970 * objc-lang.c (objc_demangle): Add options argument
10971 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10972 * maint.c (maintenance_demangle): Replace switch with
10973 call to language_demangle.
10974 * utils.c (fprintf_symbol_filtered): Likewise.
10975
5e074003
AC
109762003-04-01 Andrew Cagney <cagney@redhat.com>
10977
10978 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10979 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10980 PRINT_TYPELESS_INTEGER.
10981 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10982 PUSH_RETURN_ADDRESS.
10983
270cb5d6
AC
109842003-04-01 Andrew Cagney <cagney@redhat.com>
10985
10986 * Makefile.in (d10v-tdep.o): Update dependencies.
10987 * d10v-tdep.c: Include "frame-base.h".
10988 (d10v_frame_unwind): Make constant.
10989 (d10v_frame_base_address): New function.
10990 (d10v_frame_base): New variable.
10991 (d10v_gdbarch_init): Set frame_base default.
10992 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10993 comment for base.
10994 (d10v_frame_unwind_cache): Set and use "prev_sp".
10995 (d10v_frame_this_id): Use the previous frame's inner most stack
10996 address and this frame's func address for the frame ID. Use
10997 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10998
6bfb3e36
AC
109992003-04-01 Andrew Cagney <cagney@redhat.com>
11000
11001 * frame.h (get_frame_locals_address, get_frame_args_address):
11002 Refer to the base address, instead of the address of the first
11003 local or parameter.
8ffd9b1b 11004
da62e633
AC
110052003-04-01 Andrew Cagney <cagney@redhat.com>
11006
11007 Add frame debug info addresses:
11008 * frame-base.c: New file.
11009 * frame-base.h: New file.
11010 * frame.h (struct frame_base): Add opaque declaration.
11011 (get_frame_base): Update comment.
11012 (get_frame_base_address): Declare.
11013 (get_frame_locals_address): Declare.
11014 (get_frame_args_address): Declare.
11015 (struct frame_info): Add "base" and "base_cache". Update
11016 comments on the unwinder.
11017 * frame.c: Include "frame-base.h".
11018 (get_frame_locals_address): New function.
11019 (get_frame_base_address): New function.
11020 (get_frame_args_address): New function.
11021 * findvar.c (read_var_value): Use get_frame_locals_address and
11022 get_frame_args_address.
11023 * stack.c (frame_info): Use get_frame_locals_address and
11024 get_frame_args_address.
11025 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11026 moved to "frame-base.c".
11027 * printcmd.c (print_frame_nameless_args): Ditto.
11028 * symtab.h (address_class): Update comments.
11029 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11030 get_frame_base_address.
11031 * dwarf2expr.c (execute_stack_op): Ditto.
11032 * Makefile.in (frame_base_h): Define.
11033 (frame.o): Update dependencies.
11034 (frame-base.o): Add dependencies.
11035 (SFILES): Add frame-base.c.
11036 (COMMON_OBS): Add frame-base.o.
11037
3d30e9c2
AC
110382003-04-01 Andrew Cagney <cagney@redhat.com>
11039
11040 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11041 CALL_DUMMY_LENGTH): Ditto.
11042 * gdbarch.c: Re-generate.
11043 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11044 (CALL_DUMMY_LENGTH): Delete macro.
11045 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11046 * arm-tdep.c (arm_gdbarch_init): Ditto.
11047 * avr-tdep.c (avr_gdbarch_init): Ditto.
11048 * cris-tdep.c (cris_gdbarch_init): Ditto.
11049 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11050 * frv-tdep.c (frv_gdbarch_init): Ditto.
11051 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11052 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11053 * i386-tdep.c (i386_gdbarch_init): Ditto.
11054 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11057 * mips-tdep.c (mips_gdbarch_init): Ditto.
11058 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11059 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11060 * s390-tdep.c (s390_gdbarch_init): Ditto.
11061 * sh-tdep.c (sh_gdbarch_init): Ditto.
11062 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11063 * v850-tdep.c (v850_gdbarch_init): Ditto.
11064 * vax-tdep.c (vax_gdbarch_init): Ditto.
11065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11066
ce0c7262
CV
110672003-04-01 Corinna Vinschen <vinschen@redhat.com>
11068
11069 * frame.c (get_prev_frame): Disable call to inside_entry_file().
11070
73dd234f
AC
110712003-04-01 Andrew Cagney <cagney@redhat.com>
11072
11073 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11074 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11075 * gdbarch.h, gdbarch.c: Re-generate.
11076 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11077 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11078 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11079 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11080 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11081 * infcmd.c (run_stack_dummy): Simplify assuming
11082 CALL_DUMMY_BREAKPOINT_OFFSET_P.
11083 * infrun.c (handle_inferior_event): Ditto.
11084 * alpha-tdep.c (alpha_gdbarch_init): Do not set
11085 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11086 * arm-tdep.c (arm_gdbarch_init): Ditto.
11087 * avr-tdep.c (avr_gdbarch_init): Ditto.
11088 * cris-tdep.c (cris_gdbarch_init): Ditto.
11089 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11090 * frv-tdep.c (frv_gdbarch_init): Ditto.
11091 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11092 * i386-tdep.c (i386_gdbarch_init): Ditto.
11093 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11095 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11096 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11097 * mips-tdep.c (mips_gdbarch_init): Ditto.
11098 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11099 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11100 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11101 * s390-tdep.c (s390_gdbarch_init): Ditto.
11102 * sh-tdep.c (sh_gdbarch_init): Ditto.
11103 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11104 * v850-tdep.c (v850_gdbarch_init): Ditto.
11105 * vax-tdep.c (vax_gdbarch_init): Ditto.
11106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11107
97606a13
DJ
111082003-04-01 Daniel Jacobowitz <drow@mvista.com>
11109
11110 * symfile.c (symfile_relocate_debug_section): Update call to
11111 bfd_simple_get_relocated_section_contents.
11112
e8ab51f7
AC
111132003-03-31 Andrew Cagney <cagney@redhat.com>
11114
11115 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11116 * gdbarch.h, gdbarch.c: Regenerate.
11117 * inferior.h (FIX_CALL_DUMMY): Delete macro.
11118 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11119 available.
11120 * frame.h (generic_fix_call_dummy): Delete declaration.
11121 * dummy-frame.h: Update comment.
11122 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11124 fix_call_dummy.
11125 * sh-tdep.c (sh_gdbarch_init): Ditto.
11126 * s390-tdep.c (s390_gdbarch_init): Ditto.
11127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11128 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11130 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11131 * i386-tdep.c (i386_gdbarch_init): Ditto.
11132 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11133 * frv-tdep.c (frv_gdbarch_init): Ditto.
11134 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11135 * cris-tdep.c (cris_gdbarch_init): Ditto.
11136 * avr-tdep.c (avr_gdbarch_init): Ditto.
11137 * arm-tdep.c (arm_gdbarch_init): Ditto.
11138
018d1b48
JB
111392003-03-31 J. Brobecker <brobecker@gnat.com>
11140
11141 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11142 (INIT_FRAME_AP): Likewise.
11143 (EXTRA_FRAME_INFO): Likewise.
11144
e9a2674e
AC
111452003-03-31 Andrew Cagney <cagney@redhat.com>
11146
11147 * gdbarch.sh: Include "symfile.h".
11148 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11149 * gdbarch.h, gdbarch.c: Re-generate.
11150 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11152 call_dummy_address, the default is at entry_point_address.
11153 * v850-tdep.c (v850_gdbarch_init): Ditto.
11154 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11155 * sh-tdep.c (sh_gdbarch_init): Ditto.
11156 * s390-tdep.c (s390_gdbarch_init): Ditto.
11157 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11158 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11160 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11161 * i386-tdep.c (i386_gdbarch_init): Ditto.
11162 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11163 * frv-tdep.c (frv_gdbarch_init): Ditto.
11164 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11165 * cris-tdep.c (cris_gdbarch_init): Ditto.
11166 * arm-tdep.c (arm_gdbarch_init): Ditto.
11167
e8a8712a
AC
111682003-03-31 Andrew Cagney <cagney@redhat.com>
11169
11170 * gdbarch.sh (CALL_DUMMY_P): Delete.
11171 * gdbarch.h, gdbarch.c: Re-generate.
11172 * inferior.h (CALL_DUMMY_P): Delete macro.
11173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11174 * vax-tdep.c (vax_gdbarch_init): Update.
11175 * v850-tdep.c (v850_gdbarch_init): Update.
11176 * sparc-tdep.c (sparc_gdbarch_init): Update.
11177 * sh-tdep.c (sh_gdbarch_init): Update.
11178 * s390-tdep.c (s390_gdbarch_init): Update.
11179 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11180 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11181 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11182 * mips-tdep.c (mips_gdbarch_init): Update.
11183 * mcore-tdep.c (mcore_gdbarch_init): Update.
11184 * m68k-tdep.c (m68k_gdbarch_init): Update.
11185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11186 * ia64-tdep.c (ia64_gdbarch_init): Update.
11187 * i386-tdep.c (i386_gdbarch_init): Update.
11188 * h8300-tdep.c (h8300_gdbarch_init): Update.
11189 * frv-tdep.c (frv_gdbarch_init): Update.
11190 * d10v-tdep.c (d10v_gdbarch_init): Update.
11191 * cris-tdep.c (cris_gdbarch_init): Update.
11192 * breakpoint.c (deprecated_frame_in_dummy): Update.
11193 * avr-tdep.c (avr_gdbarch_init): Update.
11194 * alpha-tdep.c (alpha_gdbarch_init): Update.
11195 * arm-tdep.c (arm_gdbarch_init): Update.
11196 * dummy-frame.c (dummy_frame_this_id): Update comments.
11197 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11198 * frame.c (legacy_get_prev_frame): Ditto.
11199 * valops.c (call_function_by_hand): Delete function.
11200 (hand_function_call): Rename to call_function_by_hand
11201
ed234cf8
AC
112022003-03-30 Andrew Cagney <cagney@redhat.com>
11203
11204 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 11205 * value.h (struct value): Update comment.
ed234cf8 11206
06c77151
AC
112072003-03-30 Andrew Cagney <cagney@redhat.com>
11208
6c2b5168
AC
11209 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11210 D10V_FP_REGNUM.
11211 (d10v_gdbarch_init): Do not set fp_regnum.
11212
06c77151
AC
11213 * frame.c (get_frame_base): Force ID initialization.
11214 (get_prev_frame): Move computation of the frame ID from here ...
11215 (get_frame_id): ... to here.
11216 (legacy_get_prev_frame): Mark the frame ID as valid.
11217 * frame.h (struct frame_info): Add field "id_p".
11218
97a1a11c
MK
112192003-03-30 Mark Kettenis <kettenis@gnu.org>
11220
11221 * i386-tdep.c (i386_store_struct_return): Removed.
11222 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11223
6c0e89ed
AC
112242003-03-30 Andrew Cagney <cagney@redhat.com>
11225
11226 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11227 * gdbarch.h, gdbarch.c: Regenerate.
11228 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11230 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11231 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11232 * i386-tdep.c (i386_gdbarch_init): Ditto.
11233 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11234 * cris-tdep.c (cris_gdbarch_init): Ditto.
11235 * vax-tdep.c (vax_gdbarch_init): Ditto.
11236 * s390-tdep.c (s390_gdbarch_init): Ditto.
11237 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11238 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11239 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11240 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11241 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11242 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11243 * sparc-tdep.c (sparc_gdbarch_init): Update.
11244 * sh-tdep.c (sh_gdbarch_init): Update.
11245 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11246 * mips-tdep.c (mips_gdbarch_init): Update.
11247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11248 * ia64-tdep.c (ia64_gdbarch_init): Update.
11249 * frv-tdep.c (frv_gdbarch_init): Update.
11250 * avr-tdep.c (avr_gdbarch_init): Update.
11251 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11252 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11253 instead of when push_dummy_call is not available.
8ffd9b1b 11254
f7dd6af2
AC
112552003-03-30 Andrew Cagney <cagney@redhat.com>
11256
11257 * infttrace.c: Include "gdbthread.h".
11258 (parent_attach_all): Fix function signature.
11259 (call_ptrace): Update call.
11260 * Makefile.in (infttrace.o): Update dependencies.
11261
28f617b3
AC
112622003-03-30 Andrew Cagney <cagney@redhat.com>
11263
11264 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11265 PUSH_RETURN_ADDRESS.
11266 * gdbarch.h, gdbarch.c: Regenerate.
11267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11268 * x86-64-tdep.c (x86_64_init_abi): Update.
11269 * v850-tdep.c (v850_gdbarch_init): Update.
11270 * sparc-tdep.c (sparc_gdbarch_init): Update.
11271 * sh-tdep.c (sh_gdbarch_init): Update.
11272 * s390-tdep.c (s390_gdbarch_init): Update.
11273 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11275 * mips-tdep.c (mips_gdbarch_init): Update.
11276 * mcore-tdep.c (mcore_gdbarch_init): Update.
11277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11278 * ia64-tdep.c (ia64_gdbarch_init): Update.
11279 * i386-tdep.c (i386_gdbarch_init): Update.
11280 * h8300-tdep.c (h8300_gdbarch_init): Update.
11281 * frv-tdep.c (frv_gdbarch_init): Update.
11282 * cris-tdep.c (cris_gdbarch_init): Update.
11283 * avr-tdep.c (avr_gdbarch_init): Update.
11284 * arm-tdep.c (arm_gdbarch_init): Update.
11285 * valops.c (hand_function_call): Update.
11286
4d628cd7
AC
112872003-03-29 Andrew Cagney <cagney@redhat.com>
11288
11289 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11290 sizeof_call_dummy_words.
11291 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11292 define.
11293 * gdbarch.h: Regenerate.
8ffd9b1b 11294
65e82032
AC
112952003-03-29 Andrew Cagney <cagney@redhat.com>
11296
11297 * infttrace.h: New file.
11298 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11299 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11300 (hpread_read_doc_function_type): Detect an initialized type1.
11301 (hpread_quick_traverse): Initialize mod_name_string.
11302 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11303 (som_solib_get_solib_by_pc): Declare.
11304 (so_lib_thread_start_addr): Declare.
11305 (no_shared_libraries): Declare.
11306 * somread.c (init_import_symbols): Make static. Add forward
11307 declaration.
11308 * config/pa/nm-hppah.h: Include "infttrace.h" for
11309 parent_attach_all.
11310 (hppa_insert_hw_watchpoint): Declare.
11311 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11312 * hppah-nat.c: Include "gdb_string.h".
11313 (parent_attach_all): Delete extern declaration, moved to
11314 "infttrace.h".
11315 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11316 int.
11317 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11318 * Makefile.in (infttrace_h): Define.
11319 (hpread.o): Update dependencies.
11320 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11321 * hppa-hpux-tdep.c: Include "gdb_string.h".
11322 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11323 * infrun.c (handle_inferior_event): Always initialize
11324 stepped_after_stopped_by_watchpoint. Add default and remove
11325 fallthrough in switch statement.
11326 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11327 parameter to int.
11328 (hppa_remove_hw_watchpoint): Ditto.
11329
2c3bbe77
AC
113302003-03-29 Andrew Cagney <cagney@redhat.com>
11331
11332 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11333 offset.
11334
2dd604e7
RE
113352003-03-29 Richard Earnshaw <rearnsha@arm.com>
11336
11337 * arm-tdep.c (arm_push_arguments): Delete.
11338 (struct stack_item): New type.
11339 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11340 (arm_store_struct_return): Delte.
11341 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11342 arm_push_arguments or arm_store_struct_return.
11343
e8933a55
AC
113442003-03-28 Andrew Cagney <cagney@redhat.com>
11345
11346 * Makefile.in (d10v-tdep.o): Update dependencies.
11347 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11348 * d10v-tdep.c: Include "remote.h".
11349 (target_resume_hook): Delete extern declaration.
11350 (target_wait_loop_hook): Ditto.
11351 (tdisassemble_command): Eliminate assignment in "if" conditional.
11352 (d10v_ts2_register_sim_regno): Eliminate call to
11353 legacy_register_sim_regno.
11354 (d10v_ts3_register_sim_regno): Ditto.
11355
6949171e
JJ
113562003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11357
11358 * thread.c: Reindented.
11359 * lin-lwp.c: Ditto.
11360 * linux-proc.c: Ditto.
11361
98c7071f
BR
113622003-03-28 Bob Rossi <bob_rossi@cox.net>
11363
fbe586ae 11364 * MAINTAINERS (write after approval): Add myself.
98c7071f 11365
5edc9ca6
TR
113662003-03-27 Theodore A. Roth <troth@openavr.org>
11367
11368 * objc-exp.y: Add missing semi-colons.
11369
378bfd1b
AC
113702003-03-27 Andrew Cagney <cagney@redhat.com>
11371
11372 * regcache.c (write_sp): Delete function and references.
11373 * inferior.h (write_sp): Delete declaration.
11374 * valops.c (hand_function_call): Replace write_sp with
11375 TARGET_WRITE_SP.
11376 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11377 (sparc_pop_frame): Ditto.
8ffd9b1b 11378
56056df7
AC
113792003-03-27 Andrew Cagney <cagney@redhat.com>
11380
11381 * NEWS: Mention removal of support for hppa*-*-bsd* and
11382 hppa*-*-osf* natives, and hppa*-*-pro* target.
11383 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11384 * config/pa/xm-pa.h: Obsolete file.
11385 * config/pa/xm-hppab.h: Obsolete file.
11386 * config/pa/nm-hppab.h: Obsolete file.
11387 * config/pa/tm-hppab.h: Obsolete file.
11388 * config/pa/tm-hppao.h: Obsolete file.
11389 * config/pa/nm-hppao.h: Obsolete file.
11390 * config/pa/tm-pro.h: Obsolete file.
11391 * config/pa/hppaosf.mt: Obsolete file.
11392 * config/pa/hppaosf.mh: Obsolete file.
11393 * config/pa/hppapro.mt: Obsolete file.
11394 * config/pa/hppabsd.mt: Obsolete file.
11395 * config/pa/hppabsd.mh: Obsolete file.
11396 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11397 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11398 hppa*-*-osf*.
11399
5873a88d
AC
114002003-03-27 Andrew Cagney <cagney@redhat.com>
11401
11402 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11403 push_arguments. Don't set push_return_address or write_sp.
11404 (d10v_push_dummy_call): Replace d10v_push_arguments.
11405 (d10v_push_return_address, d10v_write_sp): Delete function,
11406 handled by push_dummy_call.
11407
b81774d8
AC
114082003-03-26 Andrew Cagney <cagney@redhat.com>
11409
11410 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11411 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11412 regcache and dummy_addr parameters.
11413 * gdbarch.h, gdbarch.c: Re-generate.
11414 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11415 available; assume it will handle stack alignment and return
11416 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11417 legacy_push_arguments.
11418 (legacy_push_arguments): Rename default_push_arguments.
11419 * value.h (legacy_push_arguments): Rename default_push_arguments.
11420 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11421 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11422 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11423 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11424 * config/i386/tm-symmetry.h: Update.
11425 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11426 * x86-64-tdep.c (x86_64_init_abi): Update.
11427 * v850-tdep.c (v850_gdbarch_init): Update.
11428 * sparc-tdep.c (sparc_gdbarch_init): Update.
11429 * sh-tdep.c (sh_gdbarch_init): Update.
11430 * s390-tdep.c (s390_gdbarch_init): Update.
11431 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11432 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11433 * mips-tdep.c (mips_gdbarch_init): Update.
11434 * mcore-tdep.c (mcore_gdbarch_init): Update.
11435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11436 * ia64-tdep.c (ia64_gdbarch_init): Update.
11437 * i386-tdep.c (i386_gdbarch_init): Update.
11438 * hppa-tdep.c (hppa_gdbarch_init): Update.
11439 * h8300-tdep.c (h8300_gdbarch_init): Update.
11440 * frv-tdep.c (frv_gdbarch_init): Update.
11441 * d10v-tdep.c (d10v_gdbarch_init): Update.
11442 * cris-tdep.c (cris_gdbarch_init): Update.
11443 * avr-tdep.c (avr_gdbarch_init): Update.
11444 * arm-tdep.c (arm_gdbarch_init): Update.
11445 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11446 * alpha-tdep.c (alpha_gdbarch_init): Update.
11447
f541410f
DJ
114482003-03-26 Daniel Jacobowitz <drow@mvista.com>
11449
11450 * signals/signals.c (do_target_signal_to_host): Correct realtime
11451 signal range test.
11452
69f567ae
DJ
114532003-03-26 Daniel Jacobowitz <drow@mvista.com>
11454
11455 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11456 (struct sal_chain, map_catch_names): Remove.
11457 (catch_exception_command_1): Don't call
11458 handle_gnu_4_16_catch_command.
11459
d5d14a5a
DJ
114602003-03-26 Daniel Jacobowitz <drow@mvista.com>
11461
11462 From Mark Dettinger <dettinge@de.ibm.com>:
11463 * dwarf2cfi.c (read_2u): Increment pointer by two.
11464
bdd73e22
DJ
114652003-03-26 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * signals/signals.c: Fix typos in last change.
11468
960cb555
DJ
114692003-03-26 Daniel Jacobowitz <drow@mvista.com>
11470
11471 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11472 not already defined. Use __SIGRTMIN if available.
11473 (target_signal_from_host): Remove SIGRTMIN block.
11474 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11475 the signal is within the realtime range.
11476
f636b87d
AF
114772003-03-25 Adam Fedor <fedor@gnu.org>
11478
11479 * Makefile.in (infrun.o): Add $(language_h)
11480 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11481 for language specific trampolines.
11482 * language.h (struct language_defn): Add skip_trampoline.
11483 (skip_language_trampoline): Declare.
11484 * language.c (unk_lang_trampoline, skip_language_trampoline):
11485 New functions.
11486 (unknown_language_defn, auto_language_defn, local_language_defn):
11487 Add ukn_lang_trampoline.
11488 * ada-lang.c (ada_language_defn): Add NULL for language
11489 specific skip_trampoline.
11490 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11491 scm-lang.c: Likewise.
11492 * objc-lang.c (objc_skip_trampoline): New function.
11493 (objc_language_defn): Add objc_skip_trampoline.
11494
28f617b3 114952003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11496
11497 * frame.c (get_prev_frame): Delay validating a frame's ID -
11498 non-NULL, didn't go backwards - until an attempt to unwind it to
11499 the previous frame.
11500
f933a9c5
AC
115012003-03-25 Andrew Cagney <cagney@redhat.com>
11502
11503 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11504 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11505 * gdbarch.h, gdbarch.c: Re-generate.
11506 * config/sparc/tm-sparc.h
11507 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11508 * sparc-tdep.c (sparc_gdbarch_init): Set
11509 deprecated_extra_stack_alignment_needed.
11510 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11512 extra_stack_alignment_needed.
11513 * v850-tdep.c (v850_gdbarch_init): Ditto.
11514 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11515 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11516 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11517 * cris-tdep.c (cris_gdbarch_init): Ditto.
11518 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11520
4183d812
AC
115212003-03-25 Andrew Cagney <cagney@redhat.com>
11522
11523 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11524 STORE_STRUCT_RETURN.
11525 * gdbarch.h, gdbarch.c: Regenerate.
11526 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11527 (d10v_push_arguments): Set the struct return register.
11528 (d10v_gdbarch_init): Update.
11529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11530 * x86-64-tdep.c (x86_64_init_abi): Update.
11531 * vax-tdep.c (vax_gdbarch_init): Update.
11532 * v850-tdep.c (v850_gdbarch_init): Update.
11533 * sparc-tdep.c (sparc_gdbarch_init): Update.
11534 * sh-tdep.c (sh_gdbarch_init): Update.
11535 * s390-tdep.c (s390_gdbarch_init): Update.
11536 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11537 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11539 * mips-tdep.c (mips_gdbarch_init): Update.
11540 * mcore-tdep.c (mcore_gdbarch_init): Update.
11541 * m68k-tdep.c (m68k_gdbarch_init): Update.
11542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11543 * ia64-tdep.c (ia64_gdbarch_init): Update.
11544 * i386-tdep.c (i386_gdbarch_init): Update.
11545 * hppa-tdep.c (hppa_gdbarch_init): Update.
11546 * h8300-tdep.c (h8300_gdbarch_init): Update.
11547 * frv-tdep.c (frv_gdbarch_init): Update.
11548 * cris-tdep.c (cris_gdbarch_init): Update.
11549 * avr-tdep.c (avr_gdbarch_init): Update.
11550 * arm-tdep.c (arm_gdbarch_init): Update.
11551 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11552
1bf6d5cc
AC
115532003-03-25 Andrew Cagney <cagney@redhat.com>
11554
11555 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11556 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11557 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11558 * gdbarch.h, gdbarch.c: Regenerate.
11559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11560 call_dummy_stack_adjust_p.
11561 * vax-tdep.c (vax_gdbarch_init): Ditto.
11562 * v850-tdep.c (v850_gdbarch_init): Ditto.
11563 * sh-tdep.c (sh_gdbarch_init): Ditto.
11564 * s390-tdep.c (s390_gdbarch_init): Ditto.
11565 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11566 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11568 * mips-tdep.c (mips_gdbarch_init): Ditto.
11569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11570 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11572 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11573 * i386-tdep.c (i386_gdbarch_init): Ditto.
11574 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11575 * frv-tdep.c (frv_gdbarch_init): Ditto.
11576 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11577 * cris-tdep.c (cris_gdbarch_init): Ditto.
11578 * avr-tdep.c (avr_gdbarch_init): Ditto.
11579 * arm-tdep.c (arm_gdbarch_init): Ditto.
11580 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11581 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11582 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11583 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11584 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11585 call_dummy_stack_adjust_p.
11586 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11587 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11588 * sparc-tdep.c (sparc32_push_arguments): Update.
11589 * valops.c (hand_function_call): Update.
11590
71c08af0
CV
115912003-03-25 Corinna Vinschen <vinschen@redhat.com>
11592
11593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11594 set_gdbarch_char_signed.
11595
30757f90
RE
115962003-03-25 Richard Earnshaw <rearnsha@arm.com>
11597
11598 PR cli/548
11599 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11600
03d48a7d
RE
116012003-03-25 Richard Earnshaw <rearnsha@arm.com>
11602
11603 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11604 (_initialize_arm_tdep): Don't set tm_print_insn.
11605
2cf6873c
AF
116062003-03-24 Adam Fedor <fedor@gnu.org>
11607
11608 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11609 * objc-lang.h: Add multiple inclusion protection.
11610 (start_msglist, add_msglist, end_msglist): Additional declarations.
11611
17c0759e
RE
116122003-03-24 Richard Earnshaw <rearnsha@arm.com>
11613
11614 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11615 value was renamed to ARM_FLOAT_SOFT_FPA.
11616
618ce49f
AC
116172003-03-23 Andrew Cagney <cagney@redhat.com>
11618
11619 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11620 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11621 * gdbarch.h, gdbarch.c: Regenerate.
11622 * valops.c (hand_function_call): Update.
11623 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11624 * frame.c (legacy_saved_regs_this_id): Update.
11625 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11626 * dummy-frame.h: Update.
11627 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11628 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11629 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11630 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11631 * config/m68k/tm-sun3.h: Update.
11632 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11634 * x86-64-tdep.c (x86_64_init_abi): Update.
11635 * vax-tdep.c (vax_gdbarch_init): Update.
11636 * v850-tdep.c (v850_gdbarch_init): Update.
11637 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11638 * sh-tdep.c (sh_gdbarch_init): Update.
11639 * s390-tdep.c (s390_gdbarch_init): Update.
11640 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11641 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11642 (frame_get_saved_regs): Update.
11643 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11644 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11645 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11646 * mips-tdep.c (mips_gdbarch_init): Update.
11647 * mcore-tdep.c (mcore_gdbarch_init): Update.
11648 * m68k-tdep.c (m68k_gdbarch_init): Update.
11649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11650 * ia64-tdep.c (ia64_gdbarch_init): Update.
11651 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11652 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11653 (i386_interix_back_one_frame): Update.
11654 * hppa-tdep.c (hppa_gdbarch_init): Update.
11655 (hppa_init_extra_frame_info): Update.
11656 * h8300-tdep.c (h8300_gdbarch_init): Update.
11657 * frv-tdep.c (frv_gdbarch_init): Update.
11658 * cris-tdep.c (cris_gdbarch_init): Update.
11659 * avr-tdep.c (avr_gdbarch_init): Update.
11660 * arm-tdep.c (arm_gdbarch_init): Update.
11661 * alpha-tdep.c (alpha_gdbarch_init): Update.
11662
fd50bc42
RE
116632003-03-22 Richard Earnshaw <rearnsha@arm.com>
11664
11665 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11666 (arm_get_fp_model): Declare.
11667 * arm-tdep.c (fp_model_strings): New string array.
11668 (arm_fp_model, current_fp_model): New variables.
11669 (arm_get_fp_model): New function.
11670 (arm_set_fp): New function.
11671 (set_fp_model_sfunc): New function.
11672 (show_fp_model): New function.
11673 (_initialize_arm_tdep): Add new command to set/show the FPU.
11674 (arm_extract_return_value): Use arm_get_fp_model.
11675 (arm_store_return_value): Likewise.
11676 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11677 to initialize the floating-point data types.
11678 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11679 model is FPA.
11680
26304000
RE
116812003-03-22 Richard Earnshaw <rearnsha@arm.com>
11682
11683 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11684 the current setting of each value.
11685 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11686 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11687 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11688 commands and add new version as subcommands of "set/show arm".
11689
afd7eef0
RE
116902003-03-22 Richard Earnshaw <rearnsha@arm.com>
11691
11692 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11693 (set_arm_command, show_arm_command): New functions.
11694 (_initialize_arm_tdep): Add them.
11695 (num_disassembly_options): Renamed from num_flavor_options.
11696 (valid_disassembly_styles): Renamed from valid_flavors.
11697 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11698 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11699 set_disassembly_flavor_sfunc.
11700 (set_disassembly_style): Renamed from set_disassembly_flavor.
11701 (arm_othernames): Updated.
11702 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11703 command. Add "set/show arm disassembly" commands. Deprecate
11704 "othernames" command.
11705
299a7944
RE
117062003-03-22 Richard Earnshaw <rearnsha@arm.com>
11707
11708 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11709 (arm-tdep.o): Depend on elf_arm_h.
11710
c1dac9e6
RE
117112003-03-22 Richard Earnshaw <rearnsha@arm.com>
11712
11713 * Makefile.in (coff_internal_h): Define.
11714 (arm-tdep.o): Update dependencies.
11715
2702d96c
RE
117162003-03-22 Richard Earnshaw <rearnsha@arm.com>
11717
11718 * arm-tdep.c (prologue_cache): Delete.
11719 (check_prologue_cache, save_prologue_cache): Delete.
11720 (arm_scan_prologue): Don't check or update the prologue_cache.
11721 (arm_gdb_arch_init): Don't initialize it.
11722 (_initialize_arm_tdep): Likewise.
11723
27d5d74b
SC
117242003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11725
11726 * MAINTAINERS (tui): Maintainer of tui code.
11727
1762d96d
CV
117282003-03-21 Corinna Vinschen <vinschen@redhat.com>
11729
11730 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11731 (i386-cygwin-tdep.o): Add dependencies.
11732 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11733 * i386-cygwin-tdep.c: New file.
11734 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11735 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11736
4c2e2391
AC
117372003-03-20 Andrew Cagney <cagney@redhat.com>
11738
f20d38b7
AC
11739 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11740 (handle_inferior_event): Remove code calling
11741 DYNAMIC_TRAMPOLINE_NEXTPC.
11742
0022b738
AC
11743 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11744 already has a full path.
11745
864dbc90
AC
11746 * main.c (gdb_main): Return 1.
11747 (captured_main): Call error to report an invalid interpreter.
11748
4c2e2391
AC
11749 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11750 * alpha-osf1-tdep.c: Include "gdb_string.h".
11751
5ef7553b
JB
117522003-03-19 J. Brobecker <brobecker@gnat.com>
11753
11754 Continuing work to convert the hppa targets to multiarch partial.
11755
11756 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11757 method, now that hppa_push_dummy_frame has a conformant prototype.
11758 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11759 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11760 for the switch to multiarch partial.
11761
7bde8967
KB
117622003-03-19 Kevin Buettner <kevinb@redhat.com>
11763
11764 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11765 when iss is issNull.
11766
b006a9e9
KB
117672003-03-18 Kevin Buettner <kevinb@redhat.com>
11768
11769 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11770 NUM_REGS bounds check.
11771
5e2e9765
KB
117722003-03-18 Kevin Buettner <kevinb@redhat.com>
11773
11774 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11775 * mips-tdep.c (gdb_assert.h): Include.
11776 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11777 (mips_register_name): Handle integer registers explicitly. Add
11778 bounds checking.
11779 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11780 (mips_lsi33k_reg_names): Don't list integer registers; they're
11781 handled by mips_register_name() now.
11782 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11783 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11784 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11785 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11786 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11787
a2867626
AC
117882003-03-18 Andrew Cagney <cagney@redhat.com>
11789
11790 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11791 a void pointer.
11792 * gdbtypes.h (print_scalar_formatted): Update declaration.
11793 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11794
06600e06
JB
117952003-03-18 J. Brobecker <brobecker@gnat.com>
11796
11797 * infrun.c (observer.h): Add #include.
11798 (normal_stop): Add call to observer_notify_normal_stop.
11799 * Makefile.in (infrun.o): Add dependency on observer.h.
11800
7daf4f5b
JB
118012003-03-18 J. Brobecker <brobecker@gnat.com>
11802
11803 Continuing work to convert the hppa targets to multiarch partial.
11804 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11805 parameter. Reformat comment.
11806 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11807 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11808 to match new profile.
11809
3371ccc0
JB
118102003-03-18 J. Brobecker <brobecker@gnat.com>
11811
11812 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11813 appear to be working in any case.
11814
4fbe891e
JB
118152003-03-18 J. Brobecker <brobecker@gnat.com>
11816
11817 * observer.c (observer_test_first_observer): New static variable.
11818 (observer_test_second_observer): Likewise.
11819 (observer_test_third_observer): Likewise.
11820 (observer_test_first_notification_function): New static function.
11821 (observer_test_second_notification_function): Likewise.
11822 (observer_test_third_notification_function): Likewise.
11823
a7ff40e7
JB
118242003-03-17 J. Brobecker <brobecker@gnat.com>
11825
11826 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11827 * somsolib.c (gdb_assert.h): Likewise.
11828 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11829 (somsolib.o): Likewise.
11830
26ca4152
AC
118312003-03-17 Andrew Cagney <cagney@redhat.com>
11832
11833 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11834 BFD. Simplify setting of di.endian.
11835
0a613259
AC
118362003-03-17 Andrew Cagney <cagney@redhat.com>
11837
11838 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11839 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11840
11841 From Elena Zannoni <ezannoni@redhat.com>
11842 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11843 vector and floating-point parameters.
11844 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11845 convention.
11846 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11847
1132738f
FN
118482003-03-17 Fernando Nasser <fnasser@redhat.com>
11849
11850 * MAINTAINERS: Remove my name from several maintainership roles.
11851
6dc42492
AC
118522003-03-17 Andrew Cagney <cagney@redhat.com>
11853
11854 Fix frame off-by-one bug.
11855 * frame-unwind.h (frame_this_id_ftype): Replace
11856 frame_unwind_id_ftype.
11857 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11858 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11859 with "prev_register".
11860 * frame-unwind.c (frame_unwind_find_by_pc): Return
11861 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11862 comment.
11863 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11864 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11865 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11866 (dummy_frame_unwind): Update.
11867 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11868 sentinel_frame_register_unwind.
11869 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11870 (sentinel_frame_unwinder): Update.
11871 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11872 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11873 * frame.c (create_sentinel_frame): Update. Initialize
11874 "prologue_cache" instead of "unwind_cache".
11875 (frame_register_unwind): Call this frame's prev_register with the
11876 next frame and this frame's prologue cache.
11877 (get_prev_frame): Simplify. Always call prev frame's this_id with
11878 this frame and prev frame's prologue cache. Document that this
11879 call is shifted one to the left when compared to the
11880 frame_register_unwind call.
11881 (legacy_saved_regs_prev_register): Replace
11882 frame_saved_regs_register_unwind.
11883 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11884 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11885 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11886 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11887 (d10v_frame_unwind): Update.
11888 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11889 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11890 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11891 "saved_regs" with "this_saved_regs".
11892
efd710d6
AC
118932003-03-16 Andrew Cagney <cagney@redhat.com>
11894
11895 * frame.c (frame_pop): Don't call target_store_registers. Fix
11896 problem reported by Mark Kettenis.
11897
4e259f09
MK
118982003-03-16 Mark Kettenis <kettenis@gnu.org>
11899
11900 * i386-tdep.c (i386_register_type): Renamed from
11901 i386_register_virtual_type. Adjust function signature.
11902 (i386_gdbarch_init): Set register_type instead of
11903 deprecated_max_register_raw_size,
11904 deprecated_max_register_virtual_size and register_virtual_type.
11905
055bb976
AC
119062003-03-14 Andrew Cagney <cagney@redhat.com>
11907
11908 * frame.c (get_prev_frame): When a legacy frame, always call
11909 legacy_get_prev_frame. Simplify unwind code using assumption that
11910 the unwinder is new.
11911 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11912 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11913 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11914
ac2adee5
AC
119152003-03-14 Andrew Cagney <cagney@redhat.com>
11916
11917 * frame.c (get_saved_register): Delete function.
11918 * frame.h (get_saved_register): Delete declaration.
11919 * xstormy16-tdep.c: Update comment.
11920 * regcache.h: Update comments.
11921 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11922 get_saved_register and extract_address, use
11923 frame_read_unsigned_register.
11924 (sparc_frame_saved_pc): Ditto.
11925 (sparc_get_saved_register): Instead of get_saved_register, use
11926 frame_register.
11927 (sparc_pop_frame): Ditto.
11928 * findvar.c: Update comments.
11929 (value_of_register): Call frame_register instead of
11930 get_saved_register.
11931 (value_from_register): Ditto.
11932 * config/sparc/tm-sparc.h: Update comment.
11933 * breakpoint.c: Update comment.
11934
129c1cd6
AC
119352003-03-14 Andrew Cagney <cagney@redhat.com>
11936
11937 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11938 GET_SAVED_REGISTER.
11939 * gdbarch.h, gdbarch.c: Re-generate.
11940 * frame.h: Update comments.
11941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11942 * x86-64-tdep.c (x86_64_init_abi): Update.
11943 * sparc-tdep.c (sparc_gdbarch_init): Update.
11944 * sh-tdep.c (sh_gdbarch_init): Update.
11945 * mips-tdep.c (mips_gdbarch_init): Update.
11946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11947 * cris-tdep.c (cris_gdbarch_init): Update.
11948 * ia64-tdep.c (ia64_gdbarch_init): Update.
11949 * frame.c (frame_register): Update.
11950 (get_saved_register): Update.
11951 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11952
749b82f6
AC
119532003-03-13 Andrew Cagney <cagney@redhat.com>
11954
11955 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11956 * gdbarch.h, gdbarch.c: Regenerate.
11957 * valops.c (hand_function_call): Update comment.
11958 * stack.c (return_command): Update comment.
11959 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11960 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11962 * x86-64-tdep.c (x86_64_init_abi): Update.
11963 * vax-tdep.c (vax_gdbarch_init): Update.
11964 * v850-tdep.c (v850_gdbarch_init): Update.
11965 * sparc-tdep.c (sparc_gdbarch_init): Update.
11966 * sh-tdep.c (sh_gdbarch_init): Update.
11967 * s390-tdep.c (s390_gdbarch_init): Update.
11968 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11969 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11970 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11971 * mips-tdep.c (mips_gdbarch_init): Update.
11972 * mcore-tdep.c (mcore_gdbarch_init): Update.
11973 * m68k-tdep.c (m68k_gdbarch_init): Update.
11974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11975 * ia64-tdep.c (ia64_gdbarch_init): Update.
11976 * i386-tdep.c (i386_gdbarch_init): Update.
11977 * hppa-tdep.c (hppa_gdbarch_init): Update.
11978 * h8300-tdep.c (h8300_gdbarch_init): Update.
11979 * frv-tdep.c (frv_gdbarch_init): Update.
11980 * cris-tdep.c (cris_gdbarch_init): Update.
11981 * avr-tdep.c (avr_gdbarch_init): Update.
11982 * arm-tdep.c (arm_gdbarch_init): Update.
11983 * alpha-tdep.c (alpha_gdbarch_init): Update.
11984
1594fa56
AC
119852003-03-13 Andrew Cagney <cagney@redhat.com>
11986
11987 * frame.c (legacy_frame_p): New function.
11988 (get_prev_frame): Use legacy_frame_p.
11989 * frame.h (legacy_frame_p): Declare.
11990
7717fda3
V
119912003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11992
fbe586ae 11993 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11994 listing corrected.
11995
0c67cbe9
V
119962003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11997
fbe586ae 11998 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11999
03febf99
AC
120002003-03-12 Andrew Cagney <cagney@redhat.com>
12001
12002 * frame.c (get_prev_frame): Rename the frame parameter to
12003 "this_frame".
12004 (get_next_frame, legacy_get_prev_frame): Ditto.
12005
0a1e1ca1
AC
120062003-03-12 Andrew Cagney <cagney@redhat.com>
12007
12008 * frame.c (get_current_frame): Check target_has_registers before
12009 checking target_has_stack.
12010 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12011 instead of deprecated_selected_frame.
12012 * findvar.c (value_of_register): Pass "frame", not
12013 deprecated_selected_frame, to value_of_builtin_reg.
12014
a66a9c23
AC
120152003-03-12 Andrew Cagney <cagney@redhat.com>
12016
12017 * regcache.c (regcache_cooked_write_signed): New function.
12018 (regcache_cooked_write_unsigned): New function.
12019 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12020 (regcache_cooked_read_signed): Fix regnum in range assertion.
12021 * regcache.h (regcache_cooked_write_signed): Declare.
12022 (regcache_cooked_write_unsigned): Declare.
12023
8bedc050
AC
120242003-03-12 Andrew Cagney <cagney@redhat.com>
12025
12026 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12027 * gdbarch.h, gdbarch.c: Re-generate.
12028 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12029 * x86-64-tdep.h: Update.
12030 * x86-64-tdep.c (x86_64_init_abi): Update.
12031 * v850-tdep.c (v850_gdbarch_init): Update.
12032 * sparc-tdep.c (sparc_gdbarch_init): Update.
12033 * sh-tdep.c (sh_gdbarch_init): Update.
12034 * s390-tdep.c (s390_gdbarch_init): Update.
12035 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12036 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12037 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12038 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12039 * mips-tdep.c (mips_gdbarch_init): Update.
12040 * mcore-tdep.c (mcore_gdbarch_init): Update.
12041 * m68k-tdep.c (m68k_gdbarch_init): Update.
12042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12043 * ia64-tdep.c (ia64_gdbarch_init): Update.
12044 * i386-tdep.c (i386_gdbarch_init): Update.
12045 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12046 * hppa-tdep.c (hppa_gdbarch_init): Update.
12047 * h8300-tdep.c (h8300_gdbarch_init): Update.
12048 * frv-tdep.c (frv_gdbarch_init): Update.
12049 * cris-tdep.c (cris_gdbarch_init): Update.
12050 * avr-tdep.c (avr_gdbarch_init): Update.
12051 * arm-tdep.c (arm_gdbarch_init): Update.
12052 * alpha-tdep.c (alpha_gdbarch_init): Update.
12053 * sh-tdep.c (sh_init_extra_frame_info): Update.
12054 (sh64_init_extra_frame_info): Update.
12055 * ns32knbsd-nat.c (frame_num_args): Update.
12056 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12057 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12058 (xstormy16_frame_chain_valid): Update.
12059 * vax-tdep.c (vax_saved_pc_after_call): Update.
12060 * v850-tdep.c (v850_frame_chain): Update.
12061 (v850_pop_frame): Update.
12062 (v850_init_extra_frame_info): Update.
12063 * sparc-tdep.c (setup_arbitrary_frame): Update.
12064 * ns32k-tdep.c (umax_frame_num_args): Update.
12065 * s390-tdep.c (s390_pop_frame_regular): Update.
12066 * mn10300-tdep.c (mn10300_frame_chain): Update.
12067 (mn10300_pop_frame_regular): Update.
12068 (mn10300_init_extra_frame_info): Update.
12069 * mips-tdep.c (mips_init_frame_pc_first): Update.
12070 (mips_frame_chain): Update.
12071 (mips_pop_frame): Update.
12072 * mcore-tdep.c (mcore_frame_chain): Update.
12073 (mcore_pop_frame): Update.
12074 (mcore_init_extra_frame_info): Update.
12075 * arch-utils.c (init_frame_pc_default): Update.
12076 * m68k-tdep.c (isi_frame_num_args): Update.
12077 (delta68_frame_num_args): Update.
12078 (news_frame_num_args): Update.
12079 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12080 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12081 (alpha_frame_chain): Update.
12082 (alpha_pop_frame): Update.
12083 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12084 (hppa_init_extra_frame_info): Update.
12085 (hppa_frame_chain): Update.
12086 (hppa_frame_chain_valid): Update.
12087 * cris-tdep.c (cris_init_extra_frame_info): Update.
12088 * avr-tdep.c (avr_init_extra_frame_info): Update.
12089 * arm-tdep.c (arm_frame_chain_valid): Update.
12090 (arm_init_extra_frame_info): Update.
12091 (arm_pop_frame): Update.
12092 * frame.c (frame_pc_unwind): Update.
12093 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12094 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12095 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12096 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12097 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12098 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12099
7a25a7c1
AC
121002003-03-12 Andrew Cagney <cagney@redhat.com>
12101
12102 Eliminate the need for POP_FRAME.
12103 * frame.c (do_frame_unwind_register): New function.
12104 (frame_pop): When no POP_FRAME, pop the frame using register
12105 unwind and a scratch regcache.
12106 (frame_saved_regs_pop): Delete function.
12107 (trad_frame_unwinder): Update.
12108 * d10v-tdep.c (d10v_frame_pop): Delete function.
12109 (d10v_frame_unwind): Update.
12110 * sentinel-frame.c (sentinel_frame_pop): Delete function.
12111 (sentinel_frame_unwinder): Update.
12112 * dummy-frame.c (dummy_frame_pop): Delete function.
12113 (dummy_frame_unwind): Update.
12114 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12115 (struct frame_unwind): Update.
12116
2f38ef89
KB
121172003-03-11 Kevin Buettner <kevinb@redhat.com>
12118
12119 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12120 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12121 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12122 Do range checks on register number obtained from debugging info.
12123 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12124 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
12125 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12126 mapping function.
12127 (do_fp_register_row): Fix typo which caused double type to be
12128 used when attempting to unpack a float.
12129
552f4abf
JB
121302003-03-11 J. Brobecker <brobecker@gnat.com>
12131
12132 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12133
e0d2ae16
AC
121342003-03-11 Andrew Cagney <cagney@redhat.com>
12135
12136 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12137 frame. Problem found by Corinna Vinschen.
12138
ddbfdd06
PM
121392003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
12140
12141 * doublest.c (floatformat_from_length): Accept also
12142 the real size of 'long double' type.
12143
088b2ddc 121442003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 12145
088b2ddc 12146 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
12147 * breakpoint.c (bpstat_copy): Copy the command lines as well
12148 as the old value, to match what is freed in bpstat_clear.
12149
f56f77c1
DC
121502003-03-10 David Carlton <carlton@math.stanford.edu>
12151
12152 * minsyms.c (add_minsym_to_hash_table): Replace
12153 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12154 (compare_minimal_symbols, compact_minimal_symbols)
12155 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12156 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12157 of DEPRECATED_SYMBOL_MATCHES_NAME.
12158 (lookup_minimal_symbol_solib_trampoline): Ditto.
12159
5602984a
AC
121602003-03-10 Andrew Cagney <cagney@redhat.com>
12161
12162 * regcache.h (regcache_cooked_read_ftype): Define.
12163 (regcache_save, regcache_restore): Add a cooked_read parameter.
12164 * regcache.c (regcache_save, regcache_restore): Update.
12165 (do_cooked_read): New function.
12166 (regcache_cpy): Pass do_cooked_read to regcache_save and
12167 regcache_restore.
12168
8bedc050
AC
121692003-03-10 Andrew Cagney <cagney@redhat.com>
12170
12171 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12172 * gdbarch.h, gdbarch.c: Re-generate.
12173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12174 * x86-64-tdep.h: Update.
12175 * x86-64-tdep.c (x86_64_init_abi): Update.
12176 * v850-tdep.c (v850_gdbarch_init): Update.
12177 * sparc-tdep.c (sparc_gdbarch_init): Update.
12178 * sh-tdep.c (sh_gdbarch_init): Update.
12179 * s390-tdep.c (s390_gdbarch_init): Update.
12180 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12181 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12184 * mips-tdep.c (mips_gdbarch_init): Update.
12185 * mcore-tdep.c (mcore_gdbarch_init): Update.
12186 * m68k-tdep.c (m68k_gdbarch_init): Update.
12187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12188 * ia64-tdep.c (ia64_gdbarch_init): Update.
12189 * i386-tdep.c (i386_gdbarch_init): Update.
12190 * i386-interix-tdep.c (i386_interix_init_abi): Update.
12191 * hppa-tdep.c (hppa_gdbarch_init): Update.
12192 * h8300-tdep.c (h8300_gdbarch_init): Update.
12193 * frv-tdep.c (frv_gdbarch_init): Update.
12194 * cris-tdep.c (cris_gdbarch_init): Update.
12195 * avr-tdep.c (avr_gdbarch_init): Update.
12196 * arm-tdep.c (arm_gdbarch_init): Update.
12197 * alpha-tdep.c (alpha_gdbarch_init): Update.
12198 * sh-tdep.c (sh_init_extra_frame_info): Update.
12199 (sh64_init_extra_frame_info): Update.
12200 * ns32knbsd-nat.c (frame_num_args): Update.
12201 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12202 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12203 (xstormy16_frame_chain_valid): Update.
12204 * vax-tdep.c (vax_saved_pc_after_call): Update.
12205 * v850-tdep.c (v850_frame_chain): Update.
12206 (v850_pop_frame): Update.
12207 (v850_init_extra_frame_info): Update.
12208 * sparc-tdep.c (setup_arbitrary_frame): Update.
12209 * ns32k-tdep.c (umax_frame_num_args): Update.
12210 * s390-tdep.c (s390_pop_frame_regular): Update.
12211 * mn10300-tdep.c (mn10300_frame_chain): Update.
12212 (mn10300_pop_frame_regular): Update.
12213 (mn10300_init_extra_frame_info): Update.
12214 * mips-tdep.c (mips_init_frame_pc_first): Update.
12215 (mips_frame_chain): Update.
12216 (mips_pop_frame): Update.
12217 * mcore-tdep.c (mcore_frame_chain): Update.
12218 (mcore_pop_frame): Update.
12219 (mcore_init_extra_frame_info): Update.
12220 * arch-utils.c (init_frame_pc_default): Update.
12221 * m68k-tdep.c (isi_frame_num_args): Update.
12222 (delta68_frame_num_args): Update.
12223 (news_frame_num_args): Update.
12224 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12225 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12226 (alpha_frame_chain): Update.
12227 (alpha_pop_frame): Update.
12228 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12229 (hppa_init_extra_frame_info): Update.
12230 (hppa_frame_chain): Update.
12231 (hppa_frame_chain_valid): Update.
12232 * cris-tdep.c (cris_init_extra_frame_info): Update.
12233 * avr-tdep.c (avr_init_extra_frame_info): Update.
12234 * arm-tdep.c (arm_frame_chain_valid): Update.
12235 (arm_init_extra_frame_info): Update.
12236 (arm_pop_frame): Update.
12237 * frame.c (frame_pc_unwind): Update.
12238 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12239 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12240 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12241 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12242 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12243 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12244
12cc2063
AC
122452003-03-10 Andrew Cagney <cagney@redhat.com>
12246
12247 * gdbarch.sh (gdbarch_unwind_pc): New method.
12248 * gdbarch.h, gdbarch.c: Regenerate.
12249 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12250 but use read_pc and FRAME_SAVED_PC as fall backs.
12251 (frame_saved_regs_pc_unwind): Delete function.
12252 (trad_frame_unwinder): Update.
12253 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12254 (struct frame_unwind): Update.
12255 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12256 (dummy_frame_unwind): Update.
12257 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12258 (sentinel_frame_unwinder): Update.
12259 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12260 (d10v_frame_unwind): Update.
12261 (d10v_unwind_pc): New function.
12262 (d10v_gdbarch_init): Set unwind_pc.
12263
ef840a37
AC
122642003-03-10 Andrew Cagney <cagney@redhat.com>
12265
a2ce2e56
AC
12266 * gdbarch.h: Re-generate.
12267
ef840a37
AC
12268 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12269 PC.
12270 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12271 the PC register.
12272
08f3424b
MK
122732003-03-08 Mark Kettenis <kettenis@gnu.org>
12274
12275 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12276
1248ede2
AC
122772003-03-08 Andrew Cagney <cagney@redhat.com>
12278
12279 * cli-out.c: Update copyright.
12280 (cli_out_data): Define typedef. Use instead of ui_out_data.
12281
f49bacc8
AC
122822003-03-08 Andrew Cagney <cagney@redhat.com>
12283
12284 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12285 the result.
12286
9b05f993
AC
122872003-03-07 Andrew Cagney <cagney@redhat.com>
12288
12289 * gdbarch.sh: Don't generate two macro definitions when an
12290 undefined macro taking no arguments.
12291 * gdbarch.h: Regenerate.
8ffd9b1b 12292
166f4c7b
ML
122932002-03-07 Michal Ludvig <mludvig@suse.cz>
12294
12295 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12296 (x86_64_unwind_dummy_id): New functions.
12297 (x86_64_init_abi): Register these two new functions.
12298
6d686a84
ML
122992003-03-07 Michal Ludvig <mludvig@suse.cz>
12300
12301 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12302 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12303 separate function.
12304 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12305
6314f104
AC
123062003-03-05 Andrew Cagney <cagney@redhat.com>
12307
12308 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12309 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12310 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12311 to use unwind_dummy_id when a dummy frame.
12312 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12313 predicate.
12314 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12315
ceea5145
AC
123162003-03-05 Andrew Cagney <cagney@redhat.com>
12317
12318 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12319 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12320 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12321 values.
12322
0d843116
AC
123232003-03-05 Andrew Cagney <cagney@redhat.com>
12324
12325 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12326 (struct d10v_unwind_cache): Delete field "frameless". Replace
12327 "next_addr" with "sp_offset". Add "r11_offset".
12328 (d10v_frame_unwind_cache): Update.
12329 (prologue_find_regs): Update. When "mv r11, sp", save the
12330 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12331 RN was saved in r11_offset.
12332
b2579786
AC
123332003-03-05 Andrew Cagney <cagney@redhat.com>
12334
12335 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12336 cached PC value in the next frame.
12337
218e5956
AC
123382003-03-05 Andrew Cagney <cagney@redhat.com>
12339
12340 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12341 "id_unwind_cache" with "id".
12342 (frame_id_unwind): Delete declaration.
12343 * frame.c (frame_id_unwind): Delete function.
12344 (get_prev_frame): Call the frame id unwind method directly. Store
12345 the returned next frame's ID value in NEXT_FRAME. Note that there
12346 is a problem with the wrong unwind ID being called with the wrong
12347 unwind cache.
12348
ed363b1b
DJ
123492003-03-05 Daniel Jacobowitz <drow@mvista.com>
12350
12351 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12352
fe1f4a5e
DJ
123532003-03-05 James Ingham <jingham@apple.com>
12354 Daniel Jacobowitz <drow@mvista.com>
12355
12356 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12357 (auto_cp_abi): New variable.
12358 (current_cp_abi, num_cp_abis): Make static.
12359 (CP_ABI_MAX): Define.
12360 (cp_abis): Turn into an array.
12361 (value_virtual_fn_field): Fix formatting.
12362 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12363 takes a pointer.
12364 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12365 (list_cp_abis, _initialize_cp_abi): New functions.
12366 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12367 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12368 switch_to_cp_abi. Update prototype for register_cp_abi.
12369 * Makefile.in (cp-abi.o): Update dependencies.
12370 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12371 instead of switch_to_cp_abi.
12372 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12373 register_cp_abi.
12374 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12375 register_cp_abi.
12376 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12377
e4adbba9
DJ
123782003-03-05 Daniel Jacobowitz <drow@mvista.com>
12379
12380 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12381 * dwarf2loc.c: Include "regcache.h".
12382 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12383 register_size.
12384 * Makefile.in (dwarf2loc.o): Update dependencies.
12385
91ccbfc1
TR
123862003-03-04 Theodore A. Roth <troth@openavr.org>
12387
12388 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12389 number of io registers reported by remote target is not a multiple of
12390 step.
12391
3d4e8fd2
DC
123922003-03-04 David Carlton <carlton@math.stanford.edu>
12393
12394 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12395 (lookup_symbol_aux_psymtabs): Update call to
12396 lookup_partial_symbol.
12397 (lookup_transparent_type, find_main_psymtab)
12398 (make_symbol_overload_list): Ditto.
12399
ed42d87b
KH
124002003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12401
12402 * MAINTAINERS (Write after approval): Update my email address.
12403
a0ed5532
AC
124042003-03-03 Andrew Cagney <cagney@redhat.com>
12405
12406 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12407 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12408 predicate. Replace MAX_REGISTER_RAW_SIZE.
12409 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12410 MAX_REGISTER_VIRTUAL_SIZE.
12411 * regcache.c (legacy_max_register_raw_size): New function.
12412 (legacy_max_register_virtual_size): New function.
12413 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12414 (MAX_REGISTER_RAW_SIZE): Define.
12415 (legacy_max_register_raw_size): Declare.
12416 (legacy_max_register_virtual_size): Declare.
12417 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12418 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12419 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12420 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12421 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12422 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12423 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12424 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12425 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12427 * vax-tdep.c (vax_gdbarch_init): Update.
12428 * v850-tdep.c (v850_gdbarch_init): Update.
12429 * sparc-tdep.c (sparc_gdbarch_init): Update.
12430 * sh-tdep.c (sh_gdbarch_init): Update.
12431 * s390-tdep.c (s390_gdbarch_init): Update.
12432 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12433 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12434 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12435 * mips-tdep.c (mips_gdbarch_init): Update.
12436 * mcore-tdep.c (mcore_gdbarch_init): Update.
12437 * m68k-tdep.c (m68k_gdbarch_init): Update.
12438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12439 * ia64-tdep.c (ia64_gdbarch_init): Update.
12440 * i386-tdep.c (i386_gdbarch_init): Update.
12441 * hppa-tdep.c (hppa_gdbarch_init): Update.
12442 * h8300-tdep.c (h8300_gdbarch_init): Update.
12443 * frv-tdep.c (frv_gdbarch_init): Update.
12444 * cris-tdep.c (cris_gdbarch_init): Update.
12445 * avr-tdep.c (avr_gdbarch_init): Update.
12446 * arm-tdep.c (arm_gdbarch_init): Update.
12447 * alpha-tdep.c (alpha_gdbarch_init): Update.
12448 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12449 max_register_raw_size or max_register_virtual_size.
12450
8e437497
DC
124512003-03-03 David Carlton <carlton@math.stanford.edu>
12452
12453 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12454 SYMBOL_MATCHES_NAME, add comment.
12455 (SYMBOL_MATCHES_NATURAL_NAME): New.
12456 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12457 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12458 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12459 * symtab.c (lookup_partial_symbol): Use
12460 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12461 unhelpful comment.
12462 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12463 SYMBOL_MATCHES_NAME.
12464 Fix for PR c++/33.
12465
25120b0d
DC
124662003-03-03 David Carlton <carlton@math.stanford.edu>
12467
12468 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12469 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12470 by regexp matching against SYMBOL_NATURAL_NAME.
12471
78a11fb4
DC
124722003-03-03 David Carlton <carlton@math.stanford.edu>
12473
12474 * linespec.c (find_method): Extract code into collect_methods.
12475 (collect_methods): New.
12476
645dd519
MK
124772003-03-02 Mark Kettenis <kettenis@gnu.org>
12478
b4700d91
MK
12479 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12480 get_frame_base.
12481
645dd519
MK
12482 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12483 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12484
0aa7e1aa
SC
124852003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12486
8ffd9b1b 12487 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12488 and not regnum when summing the size of all registers up to regnum.
12489
f30ee0bc
AC
124902003-03-01 Andrew Cagney <cagney@redhat.com>
12491
12492 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12493 FRAME_INIT_SAVED_REGS.
12494 * gdbarch.h, gdbarch.c: Regenerate.
12495 * stack.c (frame_info): Update.
12496 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12497 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12498 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12499 * ns32k-tdep.c (ns32k_pop_frame): Update.
12500 * mips-tdep.c (mips_pop_frame): Update.
12501 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12502 * ia64-tdep.c (ia64_frame_chain): Update.
12503 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12504 (ia64_frameless_function_invocation): Update.
12505 (ia64_init_extra_frame_info): Update.
12506 (ia64_pop_frame_regular): Update.
12507 * frame.h (struct frame_info): Update comment.
12508 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12509 * frame.c (frame_saved_regs_register_unwind): Update.
12510 (frame_saved_regs_register_unwind): Update.
12511 (deprecated_generic_get_saved_register): Update.
12512 * cris-tdep.c: Update comment.
12513 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12514 Rename macro.
12515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12516 * x86-64-tdep.c (x86_64_init_abi): Update.
12517 * vax-tdep.c (vax_gdbarch_init): Update.
12518 * v850-tdep.c (v850_gdbarch_init): Update.
12519 * sparc-tdep.c (sparc_gdbarch_init): Update.
12520 * sh-tdep.c (sh_gdbarch_init): Update.
12521 * s390-tdep.c (s390_gdbarch_init): Update.
12522 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12523 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12524 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12525 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12526 * mips-tdep.c (mips_gdbarch_init): Update.
12527 * mcore-tdep.c (mcore_gdbarch_init): Update.
12528 * m68k-tdep.c (m68k_gdbarch_init): Update.
12529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12530 * ia64-tdep.c (ia64_gdbarch_init): Update.
12531 * i386-tdep.c (i386_gdbarch_init): Update.
12532 * frv-tdep.c (frv_gdbarch_init): Update.
12533 * avr-tdep.c (avr_gdbarch_init): Update.
12534 * arm-tdep.c (arm_gdbarch_init): Update.
12535 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12536
42fa7c0f
AC
125372003-03-01 Andrew Cagney <cagney@redhat.com>
12538
12539 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12540 option enum and switch. When no windows, set the interpreter to
12541 INTERP_CONSOLE.
8ffd9b1b 12542
49c7e338
AC
125432003-03-01 Andrew Cagney <cagney@redhat.com>
12544
12545 * main.c (captured_main): Replace magic option characters with an
12546 enum.
12547
e9582e71
AC
125482003-03-01 Andrew Cagney <cagney@redhat.com>
12549
12550 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12551 INIT_EXTRA_FRAME_INFO.
12552 * gdbarch.h, gdbarch.c: Regenerate.
12553 * arm-tdep.c: Update comments.
12554 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12555 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12556 * frame.h, avr-tdep.c: Ditto.
12557 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12558 (create_new_frame, legacy_get_prev_frame): Ditto.
12559 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12560 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12562 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12563 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12564 * v850-tdep.c (v850_gdbarch_init): Ditto.
12565 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12566 * sh-tdep.c (sh_gdbarch_init): Ditto.
12567 * s390-tdep.c (s390_gdbarch_init): Ditto.
12568 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12569 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12570 * mips-tdep.c (mips_gdbarch_init): Ditto.
12571 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12574 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12575 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12576 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12577 * frv-tdep.c (frv_gdbarch_init): Ditto.
12578 * cris-tdep.c (cris_gdbarch_init): Ditto.
12579 * avr-tdep.c (avr_gdbarch_init): Ditto.
12580 * arm-tdep.c (arm_gdbarch_init): Ditto.
12581 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12582 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12583
35cac7cf
AC
125842003-03-01 Andrew Cagney <cagney@redhat.com>
12585
12586 * gdbarch.sh (register_type): New function with predicate.
12587 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12588 * gdbarch.h, gdbarch.c: Re-generate.
12589 * arch-utils.c (generic_register_byte): Use generic_register_size.
12590 (generic_register_size): When available, use
12591 gdbarch_register_type.
12592 * regcache.c (init_regcache_descr): When available, initialize the
12593 register type array using gdbarch_register_type. If the
12594 architecture supplies gdbarch_register_type, do not use the legacy
12595 regcache layout.
12596 * d10v-tdep.c (d10v_register_type): Replace
12597 d10v_register_virtual_type.
12598 (d10v_gdbarch_init): Set register_type instead of
12599 register_virtual_type.
12600
7b83296f
AC
126012003-03-01 Andrew Cagney <cagney@redhat.com>
12602
12603 * Makefile.in (ax-gdb.o): Update dependencies.
12604 * ax-gdb.c: Include "regcache.h".
12605 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12606 * findvar.c (value_of_register): Ditto.
12607 * infcmd.c (default_print_registers_info): Ditto.
12608
eadc1c87
MK
126092003-03-01 Mark Kettenis <kettenis@gnu.org>
12610
12611 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12612 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12613
14143612
MK
126142003-03-01 Mark Kettenis <kettenis@gnu.org>
12615
12616 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12617 of STREQ.
12618
a55cc764
DJ
126192003-02-28 Daniel Jacobowitz <drow@mvista.com>
12620
12621 * Makefile.in (dwarf2loc.o): Update dependencies.
12622 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12623 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12624 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12625 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12626 (locexpr_tracepoint_var_ref): New function.
12627 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12628
08a617da
AC
126292003-02-28 Andrew Cagney <cagney@redhat.com>
12630
12631 * regcache.c (register_size): New function.
12632 * regcache.h (register_size): Declare
12633 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12634 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12635
4224873a
DC
126362003-02-28 David Carlton <carlton@math.stanford.edu>
12637
12638 * linespec.c (decode_compound): Extract code into find_method.
12639 (find_method): New.
12640
ccdc5d7f
JB
126412003-02-28 J. Brobecker <brobecker@gnat.com>
12642
12643 * Makefile.in: Add rules to build and link in observer.o.
12644
974e8ced
JB
126452003-02-27 J. Brobecker <brobecker@gnat.com>
12646
12647 * observer.c: Minor comments edits.
12648
7a28f973
JB
126492003-02-27 J. Brobecker <brobecker@gnat.com>
12650
12651 * observer.h, observer.c: New file.
12652
27cddce2
AC
126532003-02-27 Andrew Cagney <cagney@redhat.com>
12654
12655 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12656
b94a41a1
SC
126572003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12658
12659 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12660 (M6812_OP_STS_EXT): Likewise.
12661 (m6811_prologue): Use the above to recognize prologue.
12662 (m6812_prologue): Likewise.
12663
c8be8951
DC
126642003-02-27 David Carlton <carlton@math.stanford.edu>
12665
12666 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12667 SYMBOL_PRINT_NAME.
12668 (compare_psymbols): Ditto.
12669 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12670
d05bb1fc
MS
126712003-02-27 Michael Snyder <msnyder@redhat.com>
12672
4e845cd3
MS
12673 * f-lang.c (build_fortran_types): New function.
12674 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12675 * doublest.c (extract_floating): Fix warning text.
12676
f3824013
AC
126772003-02-27 Andrew Cagney <cagney@redhat.com>
12678
12679 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12680 predicate. Replaces PUSH_DUMMY_FRAME.
12681 * gdbarch.h, gdbarch.c: Regnerate.
12682 * valops.c (hand_function_call): Update. Call
12683 generic_push_dummy_frame directly.
12684 * vax-tdep.c (vax_gdbarch_init): Update.
12685 * sparc-tdep.c (sparc_gdbarch_init): Update.
12686 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12687 * m68k-tdep.c (m68k_gdbarch_init): Update.
12688 * hppa-tdep.c (hppa_gdbarch_init): Update.
12689 * alpha-tdep.c (alpha_gdbarch_init): Update.
12690 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12691 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12692 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12694 push_dummy_frame to generic_push_dummy_frame.
12695 * v850-tdep.c (v850_gdbarch_init): Ditto.
12696 * sh-tdep.c (sh_gdbarch_init): Ditto.
12697 * s390-tdep.c (s390_gdbarch_init): Ditto.
12698 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12699 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12700 * mips-tdep.c (mips_gdbarch_init): Ditto.
12701 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12703 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12704 * i386-tdep.c (i386_gdbarch_init): Ditto.
12705 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12706 * frv-tdep.c (frv_gdbarch_init): Ditto.
12707 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12708 * cris-tdep.c (cris_gdbarch_init): Ditto.
12709 * avr-tdep.c (avr_gdbarch_init): Ditto.
12710 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12711
ad188201
KB
127122003-02-26 Kevin Buettner <kevinb@redhat.com>
12713
12714 * mips-tdep.c (show_mips_abi): New function.
12715 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12716 command ``show mips abi''.
12717
6b37567a 127182003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12719
6b37567a 12720 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12721 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12722 more sline entries have been seen for the function.
12723
d3e0a5bf
MC
127242003-02-26 Michael Chastain <mec@shout.net>
12725
12726 * configure: Regenerate with autoconf 000227.
12727
18972eea
MC
127282003-02-26 Michael Chastain <mec@shout.net>
12729
12730 Close PR build/660.
12731 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12732 for old libc5/glibc.
12733 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12734
0bbde931
KW
127352003-02-26 Kris Warkentin <kewarken@qnx.com>
12736
12737 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12738 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12739
27ca5dad
MC
127402003-02-26 Michael Chastain <mec@shout.net>
12741
12742 * configure.in: New variable HAVE_UINTPTR_T.
12743 * configure, config.in: Regenerated.
12744
6f88d630
DJ
127452003-02-26 Daniel Jacobowitz <drow@mvista.com>
12746
12747 Fix PR build/1097.
12748 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12749
b14185ce
AC
127502003-02-25 Andrew Cagney <cagney@redhat.com>
12751
12752 * frame.c (get_prev_frame): Add comment on check for
12753 inside_entry_func. Only check for inside_entry_file when not a
12754 dummy and not a sentinel. Check that the new frame is not inner
12755 to the old frame.
12756
ac2bd0a9
AC
127572003-02-25 Andrew Cagney <cagney@redhat.com>
12758
12759 * frame.c (frame_debug): New variable.
12760 (_initialize_frame): Add "set/show debug frame" command.
12761 (get_prev_frame): When frame_debug, print reason why unwind
12762 failed.
12763
b18a0fd2
MC
127642003-02-25 Michael Chastain <mec@shout.net>
12765
12766 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12767 to avoid uintptr_t definition problems.
12768
22abf04a
DC
127692003-02-25 David Carlton <carlton@math.stanford.edu>
12770
12771 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12772 (SYMBOL_LINKAGE_NAME): Ditto.
12773 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12774 SYMBOL_LINKAGE_NAME.
12775 (struct general_symbol_info): Expand comment.
12776 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12777 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12778 (SYMBOL_MATCHES_REGEXP): Ditto.
12779 * symtab.c (symbol_natural_name): New function.
12780 * objfiles.h: Replace all uses of SYMBOL_NAME by
12781 DEPRECATED_SYMBOL_NAME.
12782 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12783 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12784 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12785 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12786 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12787 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12788 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12789 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12790 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12791 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12792 * ada-exp.y: Ditto.
12793 * ada-exp.y: Update copyright.
12794 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12795 * cp-valprint.c: Ditto.
12796
1a5848f6
JJ
127972003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12798
12799 * infptrace.c (detach): Do not flag error if ptrace detach fails
12800 and errno is set to ESRCH.
12801
7343d46a
AC
128022003-02-24 Andrew Cagney <cagney@redhat.com>
12803
12804 * infptrace.c (udot_info): Change type of udot_off to long. Use
12805 paddr when printing udot_off's value.
12806
49fa1dc2
DC
128072003-02-24 David Carlton <carlton@math.stanford.edu>
12808
12809 * symtab.c (make_symbol_overload_list): Only read in partial
12810 symtabs containing a matching partial symbol.
12811
0fe19209
DC
128122003-02-24 David Carlton <carlton@math.stanford.edu>
12813
12814 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12815 do the comparison, not strcmp.
12816 * symfile.c (compare_psymbols): Ditto.
12817 * defs.h: Declare strcmp_iw_ordered.
12818 * utils.c (strcmp_iw_ordered): New function.
12819
8e3ee7b5
JB
128202003-02-24 Jim Blandy <jimb@redhat.com>
12821
12822 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12823 support, shared libs): Remove my name from here, to better reflect
12824 reality.
12825
7df1a324
KW
128262003-02-24 Kris Warkentin <kewarken@qnx.com>
12827
12828 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12829 (target_ops): Add to_have_continuable_watchpoint.
12830 * target.c (update_current_target): Add INHERIT line for
12831 to_have_continuable_watchpoint.
12832 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12833 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12834 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12835 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12836
d1c76907
EZ
128372003-02-24 Elena Zannoni <ezannoni@redhat.com>
12838
12839 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12840 maintainership.
12841
2610b0bf
KW
128422003-02-24 Kris Warkentin <kewarken@qnx.com>
12843
f46169db
KW
12844 * solib.c (solib_open): Call target defined search function after
12845 failing with solib-search-path.
12846 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12847 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12848
9a3c34fe
KW
128492003-02-24 Kris Warkentin <kewarken@qnx.com>
12850
f46169db 12851 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12852
2417dd25
SC
128532003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12854
12855 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12856
b631436b
SC
128572003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12858
12859 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12860 (m68hc11_add_reggroups): New function.
12861 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12862 (m68hc11_gdbarch_init): Install the reggroups.
12863 (_initialize_m68hc11_tdep): Initialize them.
12864
0aa8c1e4
JW
128652003-02-21 James E Wilson <wilson@tuliptree.org>
12866
12867 * MAINTAINERS: Update my email address.
12868
50ceaba5
DC
128692003-02-21 David Carlton <carlton@math.stanford.edu>
12870
12871 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12872
4c2df51b
DJ
128732003-02-21 Daniel Jacobowitz <drow@mvista.com>
12874
12875 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12876 * symtab.h: Add opaque declarations of struct axs_value and
12877 struct agent_expr.
12878 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12879 (struct location_funcs): New type.
12880 (struct symbol): Add "loc" to aux_value.
12881 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12882 * dwarf2read.c: Include "dwarf2expr.h".
12883 (dwarf2_symbol_mark_computed): New function.
12884 (read_func_scope): Use it.
12885 (var_decode_location): New function.
12886 (new_symbol): Use it.
12887 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12888
12889 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12890 (dwarf2expr_h, dwarf2loc_h): New variables.
12891 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12892 (dwarf2expr.o, dwarf2loc.o): New rules.
12893 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12894 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12895 LOC_COMPUTED_ARG.
12896 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12897 * m2-exp.y (yylex): Likewise.
12898 * printcmd.c (address_info, print_frame_args): Likewise.
12899 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12900 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12901 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12902 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12903 * symtab.c (lookup_block_symbol): Likewise.
12904
5784d15e
AF
129052003-02-20 Adam Fedor <fedor@gnu.org>
12906
12907 * symtab.h: Remove objc_specific struct
12908 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12909 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12910 Have language_objc use cplus_specific struct.
12911
d4cad8db
TT
129122003-02-20 Tom Tromey <tromey@redhat.com>
12913
12914 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12915 TYPE_NAME, when printing a String value. PR java/1075.
12916
2f9a90b4
AF
129172003-02-20 Adam Fedor <fedor@gnu.org>
12918
d38074a8 12919 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12920 * objc-lang.c (find_methods): Make static.
2f9a90b4 12921
6f17862b
CF
129222003-02-20 Christopher Faylor <cgf@redhat.com>
12923
12924 * win32-nat.c (get_image_name): Check return value from
12925 ReadProcessMemory.
12926 (child_xfer_memory): Ditto.
12927
715d1656
AO
129282003-02-20 Alexandre Oliva <aoliva@redhat.com>
12929
12930 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12931 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12932 '${exec_prefix}' (in addition to the expansion thereof) as
12933 relocatable.
12934 * configure: Rebuilt.
12935
b1262a02
DC
129362003-02-20 David Carlton <carlton@math.stanford.edu>
12937
12938 * symtab.c (search_symbols): Revert the search_symbols part of my
12939 2002-12-23 patch. Add comment.
12940
7134143f
DJ
129412002-02-20 Daniel Jacobowitz <drow@mvista.com>
12942
12943 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12944 * dbxread.c (elfstab_build_psymtabs): Don't call
12945 install_minimal_symbols.
12946 (stabsect_build_psymtabs): Likewise.
12947 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12948 earlier.
12949 * somread.c (som_symfile_read): Call install_minimal_symbols
12950 and do_cleanups earlier.
12951 * nlmread.c (nlm_symfile_read): Likewise.
12952 * mdebugread.c (elfmdebug_build_psymtabs): Call
12953 install_minimal_symbols and make appropriate cleanups.
12954
cf466558
KB
129552003-02-20 Kevin Buettner <kevinb@redhat.com>
12956
12957 * solib.c (reload_shared_libraries): New function.
12958 (_initialize_solib): Add callbacks for ``set solib-search-path''
12959 and ``set solib-absolute-prefix''.
12960
de5ad195
DC
129612003-02-20 David Carlton <carlton@math.stanford.edu>
12962
12963 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12964 expand comment.
12965 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12966 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12967 * ada-typeprint.c (ada_typedef_print): Ditto.
12968 * ax-gdb.c (gen_var_ref): Ditto.
12969 * breakpoint.c (print_one_breakpoint): Ditto.
12970 * buildsym.c (finish_block): Ditto.
12971 * c-valprint.c (c_val_print): Ditto.
12972 * expprint.c (print_subexp): Ditto.
12973 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12974 * infcmd.c (jump_command): Ditto.
12975 * linespec.c (decode_line_2, decode_compound): Ditto.
12976 * maint.c (maintenance_translate_address): Ditto.
12977 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12978 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12979 Ditto.
8ffd9b1b
AJ
12980 * p-valprint.c (pascal_val_print): Ditto.
12981 * stabsread.c (define_symbol): Ditto.
de5ad195 12982 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12983 (print_frame_arg_vars, return_command): Ditto.
12984 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12985 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12986 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12987 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12988 (rbreak_command): Ditto.
12989 * tracepoint.c (tracepoints_info): Ditto.
12990 * typeprint.c (typedef_print): Ditto.
12991 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12992 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12993 * ada-typeprint.c: Update Copyright.
12994 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12995 * tracepoint.c, cli/cli-cmds.c: Ditto.
12996
f796e4be
KB
129972003-02-20 Kevin Buettner <kevinb@redhat.com>
12998
12999 * frame.c (generic_unwind_get_saved_register): Make non-static.
13000 * frame.h (generic_unwind_get_saved_register): Declare.
13001 * mips-tdep.c (read_next_frame_reg): Fetch register from
13002 current regcache when frame is NULL.
13003 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13004 that must be NULL.
13005 (mips_get_saved_register): Call generic_unwind_get_saved_register()
13006 instead of frame_register_unwind().
13007
836cc9f4
AC
130082003-02-20 Andrew Cagney <ac131313@redhat.com>
13009
13010 * remote-sim.c (gdbsim_insert_breakpoint)
13011 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13012 code.
13013
501eef12
AC
130142003-02-20 Andrew Cagney <ac131313@redhat.com>
13015
13016 * remote.c (_initialize_remote): Add commands "set/show remote
13017 hardware-watchpoint-limit" and "set/show remote
13018 hardware-breakpoint-limit".
13019 (remote_hw_watchpoint_limit): Initialize to -1.
13020 (remote_hw_breakpoint_limit): Ditto.
13021 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13022
1b6bc7e0
CF
130232003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
13024
13025 * coff-pe-read.c: New file - support reading of minimal symbols from a
13026 portable executable using the export table.
13027 * coff-pe-read.h: New file.
13028 * coffread.c: Include coff-pe-read.h.
13029 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13030 debugging symbols found.
13031 * Makefile.in (SFILES): Add coff-pe-read.o.
13032 (coff_pe_read_h): Define.
13033 (COMMON_OBS): Add coff-pe-read.o.
13034 (coffread.o): Add coff_pe_read_h dependency.
13035 (coff-pe-read.o): New target.
13036
fe898f56
DC
130372003-02-19 David Carlton <carlton@math.stanford.edu>
13038
13039 * Makefile.in (SFILES): Add block.c.
13040 (block_h): New.
13041 (COMMON_OBS): Add block.o.
13042 (block.o): New.
13043 (x86-64-tdep.o): Add $(block_h).
13044 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13045 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13046 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13047 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13048 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13049 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13050 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13051 * value.h: Add opaque declaration for struct block.
13052 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13053 * ada-lang.h: Ditto.
13054 * x86-64-tdep.c: #include "block.h"
13055 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13056 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13057 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13058 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13059 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13060 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13061 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13062 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13063 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13064 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13065 * symtab.c (block_function): Ditto.
13066 (contained_in): Ditto.
13067 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13068 block.h. Add opaque declaration for struct block.
13069 * symtab.h: Move block_function and contained_in declarations to
13070 block.h. Add opaque declarations for struct block, struct
13071 blockvector.
13072 (struct block): Move to block.h.
13073 (struct blockvector): Ditto.
13074 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13075 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13076 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13077 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13078 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13079 Ditto.
13080 * block.c: New file.
13081 * block.h: New file.
13082
173345b5
TR
130832003-02-19 Theodore A. Roth <troth@openavr.org>
13084
13085 * avr-tdep.c (avr_extract_return_value): Remove function.
13086 (avr_store_return_value): Remove function.
13087 (avr_extract_struct_value_address): Remove function.
13088 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13089
338ef23d
AC
130902003-02-19 Andrew Cagney <ac131313@redhat.com>
13091
13092 * rs6000-tdep.c: Include "gdb_assert.h".
13093 (registers_e500): Add "acc" and "spefscr".
13094 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13095 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13096 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
13097 really is "r0".
13098 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13099
5412f5f3
KS
131002003-02-18 Keith Seitz <keiths@redhat.com>
13101
13102 * Makefile.in: Add gdbtk-interps.c.
13103
881324eb
KB
131042003-02-18 Kevin Buettner <kevinb@redhat.com>
13105
13106 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13107 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13108
6a2f5abf
AC
131092003-02-18 Andrew Cagney <cagney@redhat.com>
13110
13111 * symtab.h (struct objfile): Add opaque declaration.
13112
54c7009d
EZ
131132003-02-18 Elena Zannoni <ezannoni@redhat.com>
13114
13115 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
13116 * dbxread.c (process_one_symbol): Use last_function_start rather
13117 than function_start_offset to find the real beginning of the
13118 current function. The latter is just the text section offset on
13119 some systems, the former is always the real function start.
54c7009d 13120
7ee6d7eb
AC
131212003-02-17 Andrew Cagney <cagney@redhat.com>
13122
13123 * configure.in: Revert ${target} != ${host}.
13124
2846da9b
AC
131252003-02-17 Andrew Cagney <ac131313@redhat.com>
13126
13127 * configure.in (Makefile): Use the test ${target} != ${host},
13128 instead of the absence of the "nm.h" file, to determine of the
13129 configuration non-native.
13130 * configure: Regenerate.
8ffd9b1b 13131
3b27aeea
EZ
131322003-02-14 Elena Zannoni <ezannoni@redhat.com>
13133
fbe586ae 13134 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
13135
13136 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13137 conditionalize tui_active test.
13138 (lookup_cmd_1): Ditto.
13139
b0b1c2c0
MK
131402003-02-14 Mark Kettenis <kettenis@gnu.org>
13141
13142 * configure.in: Add check for _etext.
13143 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13144 available.
13145 * config.in, configure: regenerated.
13146
8f05cde5
DJ
131472003-02-14 Daniel Jacobowitz <drow@mvista.com>
13148
13149 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13150
021e7609
AC
131512003-02-14 Andrew Cagney <ac131313@redhat.com>
13152
13153 * main.c (tui_version): Delete variable.
13154 (captured_main): When --tui, set interpreter_p to "tui" instead of
13155 enabling tui_version.
13156 * printcmd.c (display_command) [TUI]: Test tui_active instead of
13157 tui_version.
13158 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13159 * cli/cli-cmds.c (disassemble_command): Ditto.
13160 * defs.h (tui_version): Delete declaration.
13161 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13162 (tui-interp.o): Add rules.
13163 (SUBDIR_TUI_OBS): Add "tui-interp.o".
13164
e325dcec
CF
131652003-02-14 Christopher Faylor <cgf@redhat.com>
13166
36ffb041 13167 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
13168 just-loaded dll.
13169
c4f90d87
JM
131702003-02-12 Jason Molenda (jmolenda@apple.com)
13171
fbe586ae
RH
13172 * symmisc.c (print_objfile_statistics): Include information about
13173 the number of psymtabs and symtabs in each object file.
c4f90d87 13174
e46e5ccd
KS
131752003-02-13 Keith R Seitz <keiths@redhat.com>
13176
13177 * main.h (struct captured_main_args): Add interpreter_p.
13178 * main.c (captured_main): Initialize interpreter_p from context.
13179 * gdb.c (main): Set interpreter_p argument.
13180 * Makefile.in (gdb.o): Add dependency for interps.h.
13181
fe97fe9c
AC
131822003-02-12 Andrew Cagney <ac131313@redhat.com>
13183
13184 * event-top.c (cli_command_loop): Delete declaration.
13185 (_initialize_event_loop): Delete function setting event_loop_hook.
13186 * event-top.h (cli_command_loop): Declare. Update copyright.
13187 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
13188 * interps.c (current_interp_command_loop): When event_loop_p, call
13189 cli_command_loop.
13190
1cdac4ef
AC
131912003-02-12 Andrew Cagney <ac131313@redhat.com>
13192
13193 * interps.h (interp_command_loop_ftype): Change return type to
13194 void.
13195
48037ead
ML
131962003-02-12 Michal Ludvig <mludvig@suse.cz>
13197
13198 * x86-64-tdep.c (x86_64_extract_return_value)
13199 (x86_64_store_return_value): Use regcache instead of regbuf.
13200 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13201 * x86-64-linux-nat.c (fill_gregset): Use regcache.
13202
033afc63
AC
132032003-02-11 Andrew Cagney <ac131313@redhat.com>
13204
13205 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13206 * aclocal.m4: Regenerate.
13207 * configure: Regenerate.
13208
13209 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13210 TCL_LD_SEARCH_FLAGS.
13211
40d02bca
ML
132122003-02-10 Michal Ludvig <mludvig@suse.cz>
13213
13214 * dwarf2cfi.c: Reindented.
13215
11308a41
AC
132162003-02-09 Andrew Cagney <ac131313@redhat.com>
13217
13218 * interps.c (clear_interpreter_hooks): Convert function definition
13219 to ISO C.
13220
e1c1c0f6
DC
132212003-02-07 David Carlton <carlton@math.stanford.edu>
13222
13223 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13224
ab5d3da6
KB
132252003-02-07 Kevin Buettner <kevinb@redhat.com>
13226
13227 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13228 (struct type): ...to here.
13229 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13230 field.
13231 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13232 (replace_type): Set length on all type variants for a given type.
13233
b8a92b82
AC
132342003-02-07 Andrew Cagney <ac131313@redhat.com>
13235
13236 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13237 <sys/stat.h>.
13238 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13239
5cb316ef
AC
132402003-02-06 Andrew Cagney <ac131313@redhat.com>
13241
2555fe1a
AC
13242 * Makefile.in (symm-nat.o): Update dependencies.
13243 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13244 (lynx-nat.o, ia64-linux-nat.): Ditto.
13245 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13246 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13247 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13248
44270758
AC
13249 * Makefile.in (inflow_h): Define.
13250 (procfs.o, inflow.o, procfs.o): Update dependencies.
13251 * inftarg.c (child_stop): Delete extern declaration of
13252 inferior_process_group. Include "inflow.h".
13253 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13254 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13255 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13256 (our_process_group, inferior_process_group): Extern declarations.
13257
df8f7274
AC
13258 * procfs.c: Include "gdb_assert.h".
13259
5cb316ef
AC
13260 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13261 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13262 * jv-typeprint.c (java_type_print_base): Ditto.
13263 * typeprint.c (typedef_print): Eliminate STREQ.
13264 * cli/cli-script.c (define_command, define_command): Ditto.
13265 * main.c (captured_main): Ditto.
13266 * values.c (lookup_internalvar): Ditto.
13267 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13268 within `if' conditional.
13269 * linespec.c (decode_line_2): Ditto.
13270 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13271 (bfd_openw_with_cleanup): Ditto.
13272
2a28ccea
MK
132732003-02-07 Mark Kettenis <kettenis@gnu.org>
13274
13275 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13276 legacy_extract_return_value and store_return_value to
13277 legacy_return_value.
13278
786b8124
CF
132792003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13280
13281 * win32-nat.c (get_relocated_section_addrs): New function. Find
13282 section load addresses for symbol handling in relocated DLLs.
13283 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13284
b871e4ec
FF
132852003-02-05 Fred Fish <fnf@intrinsity.com>
13286
13287 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13288 '=' and '!='.
13289 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13290 with '&' and '=='.
13291 (angel_RDI_info): Ditto.
13292 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13293 with '&' and '!='.
13294 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13295
4389a95a 132962003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13297 Keith Seitz <keiths@redhat.com>
13298 Elena Zannoni <ezannoni@redhat.com>
13299 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13300
13301 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13302 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13303 (SUBDIR_MI_OBS): Add "mi-interp.o".
13304 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13305 (SFILES): Add "interps.c".
13306 (COMMON_OBS): Add "interps.o".
13307 (interps_h, mi_main_h): Define.
13308 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13309 (mi-main.o, main.o, event-top.o): Update dependencies.
13310 * cli/cli-interp.c: New file.
13311 * interps.h, interps.c: New files.
13312 * top.c: (gdb_init): Don't install the default interpreter, handed
13313 by captured_main.
13314 * main.c: Include "interps.h".
13315 (interpreter_p): Note that it should malloc'ed.
13316 (captured_command_loop): Call current_interp_command_loop.
13317 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13318 xfree and xstrdup when updating interpreter_p. Install the
13319 default interpreter. Add hack to stop mi1's copyright notice
13320 being encoded.
13321 * event-top.h (gdb_setup_readline): Declare.
13322 (gdb_disable_readline): Declare.
13323 * event-top.c: Include "interps.h".
13324 (display_gdb_prompt): Call current_interp_display_prompt_p.
13325 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13326 gdb_stdlog, and gdb_stdtarg.
13327 (_initialize_event_loop): Don't call gdb_setup_readline.
13328 * cli-out.c (cli_out_set_stream): New function.
13329 * cli-out.h (cli_out_set_stream): Declare.
13330
ff3b5810
MK
133312003-02-06 Mark Kettenis <kettenis@gnu.org>
13332
13333 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13334 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13335 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13336 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13337 config/i386/i386v42mp.mt: Removed.
13338
5b729aa5
MK
133392003-02-05 Mark Kettenis <kettenis@gnu.org>
13340
13341 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13342 GDB_OSABI_SOLARIS.
13343
8cc15142
MC
133442003-02-05 Michael Chastain <mec@shout.net>
13345
13346 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13347 2.12.1 and earlier versions.
13348
5aa5d4b9
AC
133492003-02-05 Andrew Cagney <ac131313@redhat.com>
13350
13351 Remove orphaned hosts, targets and files.
13352 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13353 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13354 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13355 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13356 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13357 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13358 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13359 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13360 * config/sparc/tm-sp64sim.h: Delete.
13361 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13362 hosts.
13363 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13364 mips*-dec-mach3* targets.
13365
b68767c1
MC
133662003-02-04 Michael Chastain <mec@shout.net>
13367
13368 * NEWS: Fix typo: sepcifying -> specifying.
13369
5ae7ca1d
MC
133702003-02-04 Michael Chastain <mec@shout.net>
13371
13372 * dwarfread.c: Add documentation on the state of dwarf-1,
13373 looking towards obsoletion.
13374
d08a4280
MC
133752003-02-03 Michael Chastain <mec@shout.net>
13376
13377 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13378 gdb/testsuite/gdb.c++/pr-1023.exp.
13379
e9be73e4
AC
133802003-02-04 Andrew Cagney <ac131313@redhat.com>
13381
13382 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13383 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13384
13385 * utils.c (init_page_info): Delete reference to MPW in comments.
13386 * main.c (captured_main): Delete #ifdef MPW.
13387
05d57f6f
AC
133882003-02-04 Andrew Cagney <ac131313@redhat.com>
13389
8ffd9b1b 13390 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13391 * monitor.c (monitor_expect): Obsolete reference to m32r.
13392 * configure.tgt: Mark m32r-*-elf* as obsolete.
13393 * MAINTAINERS: Mark m32k as obsolete.
13394 * m32r-rom.c: Obsolete file.
13395 * config/m32r/m32r.mt: Obsolete file.
13396 * config/m32r/tm-m32r.h: Obsolete file.
13397 * m32r-stub.c: Obsolete file.
13398 * m32r-tdep.c: Obsolete file.
13399
8b0e5691
AC
134002003-02-04 Andrew Cagney <ac131313@redhat.com>
13401
13402 * NEWS: Mention that the z8k-zilog-none is obsolete.
13403 * MAINTAINERS: Mark z8k as obsolete.
13404 * configure.tgt: Obsolete the z8k-*-coff* target.
13405 * config/z8k/z8k.mt: Obsolete file.
13406 * config/z8k/tm-z8k.h: Obsolete file.
13407 * z8k-tdep.c: Obsolete file.
13408
67f16606
AC
134092003-02-04 Andrew Cagney <ac131313@redhat.com>
13410
13411 * NEWS: Mention that the mn10200-elf is obsolete.
13412 * configure.tgt: Obsolete mn10200-*-* target.
13413 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13414 mention that the mn10200 is obsolete.
13415 * breakpoint.h: Ditto.
13416 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13417 * config/mn10200/mn10200.mt: Obsolete file.
13418 * config/mn10200/tm-mn10200.h: Obsolete file.
13419 * mn10200-tdep.c: Obsolete file.
13420
fd2299bd
AC
134212003-02-04 Andrew Cagney <ac131313@redhat.com>
13422
13423 * MAINTAINERS: Mark h8500 as obsolete.
13424 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13425 * findvar.c (value_from_register): Ditto.
13426 * h8500-tdep.c: Mark file as obsolete.
13427 * config/h8500/h8500.mt: Ditto.
13428 * config/h8500/tm-h8500.h: Ditto.
13429 * NEWS: Mention that h8500 is obsolete.
13430
eb9a305d
DC
134312003-02-04 David Carlton <carlton@math.stanford.edu>
13432
13433 * objfiles.c (allocate_objfile): Always set name. Add comment at
13434 start of function.
13435 * jv-lang.c (get_dynamics_objfile): Add comment.
13436
406fc7fb
DC
134372003-02-04 David Carlton <carlton@math.stanford.edu>
13438
13439 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13440 * printcmd.c (build_address_symbolic): Replace uses of
13441 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13442 SYMBOL_NAME, and asm_demangle.
13443 Update copyright.
13444
93d91629
DC
134452003-02-04 David Carlton <carlton@math.stanford.edu>
13446
13447 * linespec.c (decode_compound): Extract code into
13448 lookup_prefix_sym.
13449 (lookup_prefix_sym): New function.
13450
1c5cb38e
DC
134512003-02-04 David Carlton <carlton@math.stanford.edu>
13452
13453 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13454 FLOAT_COERCION_BADNESS.
13455 * gdbtypes.c (rank_one_type): Replace all uses of
13456 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13457
0cf824c9
JB
134582003-02-04 Jim Blandy <jimb@redhat.com>
13459
13460 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13461 section, let dwarf_macinfo_section point to it, not
13462 dwarf_loc_section.
13463
a2d356b0
DJ
134642003-02-04 Daniel Jacobowitz <drow@mvista.com>
13465
13466 Pointed out by Anton Blanchard <anton@samba.org>.
13467 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13468 (ppc_linux_at_sigtramp_return_path): Use it.
13469
2de7ced7
DJ
134702003-02-04 Daniel Jacobowitz <drow@mvista.com>
13471
13472 * defs.h (streq): Add prototype.
13473 * utils.c (streq): New function.
13474
13475 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13476 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13477 * mdebugread.c (new_symbol): Likewise.
13478 * stabsread.c (define_symbol): Likewise.
13479 * coffread.c (process_coff_symbol): Likewise.
13480 * dwarfread.c (new_symbol): Likewise.
13481
13482 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13483 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13484 here.
13485 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13486 SYMBOL_INIT_DEMANGLED_NAME.
13487 * objfiles.c: Include "hashtab.h".
13488 (allocate_objfile): Call htab_set_functions_ex for the
13489 demangled_names_hash.
13490 (free_objfile): Call htab_delete for the demangled_names_hash.
13491 * objfiles.h (struct htab): Add declaration.
13492 (struct objfile): Add demangled_names_hash.
13493 * symfile.c: Include "hashtab.h".
13494 (reread_symbols): Call htab_delete for the demangled_names_hash.
13495 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13496 SYMBOL_NAME in the bcache.
13497 * symtab.c: Include "hashtab.h". Update comments.
13498 (create_demangled_names_hash, symbol_set_names): New functions.
13499 (symbol_find_demangled_name): New function, broken out from
13500 symbol_init_demangled_names.
13501 (symbol_init_demangled_names): Use it.
13502 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13503 (SYMBOL_SET_NAMES): New macro.
13504 (symbol_set_names): Add prototype.
13505
15831452
JB
135062003-02-03 Jim Blandy <jimb@redhat.com>
13507
13508 Use a single, consistent representation for an empty minimal
13509 symbol table in an objfile.
13510 * objfiles.c (terminate_minimal_symbol_table): New function.
13511 (allocate_objfile): Call it.
13512 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13513 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13514 non-NULL.
15831452
JB
13515 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13516 objfile has minimal symbols, compare minimal_symbol_count to zero,
13517 instead of comparing msymbols with NULL.
13518 * objfiles.c (have_minimal_symbols): Same.
13519 * solib-sunos.c (solib_add_common_symbols): Call
13520 terminate_minimal_symbol_table.
13521 * symfile.c (reread_symbols): Same.
8ffd9b1b 13522
ffc65945
KB
135232003-02-03 Kevin Buettner <kevinb@redhat.com>
13524
13525 * s390-tdep.c (s390_address_class_type_flags)
13526 (s390_address_class_type_flags_to_name)
13527 (s390_address_class_name_to_type_flags): New functions.
13528 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13529 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13530
f211c6d4
MS
135312003-02-03 Michael Snyder <msnyder@redhat.com>
13532
13533 * arm-tdep.c: Fix spell-o in comment.
13534
659b0389
ML
135352003-02-03 Michal Ludvig <mludvig@suse.cz>
13536
13537 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13538 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13539 error messages to contain BFD filename.
659b0389 13540
3b31d625
EZ
135412003-02-02 Elena Zannoni <ezannoni@redhat.com>
13542
997b089a 13543 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13544 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13545 (do_mixed_source_and_assembly): Use
13546 make_cleanup_ui_out_tuple_begin_end and
13547 make_cleanup_ui_out_tuple_begin_end.
13548 (do_mixed_source_and_assembly): Ditto.
13549 * thread.c (do_captured_list_thread_ids): Ditto.
13550 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13551 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13552 ui_out_tuple_end): Delete prototypes.
13553 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13554 ui_out_list_end, ui_out_tuple_end): Delete.
13555
13556 From Kevin Buettner <kevinb@redhat.com>:
13557 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13558 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13559 (do_cleanup_table_end): New functions.
13560 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13561 Use cleanups to invoke_ui_out_tuple_end().
13562 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13563 * cli/cli-setshow.c (cmd_show_list): Use
13564 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13565
5b181d62
AC
135662003-02-02 Andrew Cagney <ac131313@redhat.com>
13567
13568 * frame.c (frame_unwind_register): New function.
13569 (frame_unwind_unsigned_register): Use.
13570 (frame_unwind_signed_register): Use.
13571 (frame_read_register): New function.
13572 * frame.h (frame_unwind_register): Declare.
13573 (frame_read_register): Declare.
13574
13575 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13576 and frame_unwind_register instead of read_memory, write_register
13577 and deprecated_write_register_bytes.
13578
5f601589
AC
135792003-02-02 Andrew Cagney <ac131313@redhat.com>
13580
13581 * frame.h: Note that namelen can be negative.
13582 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13583 NAME's length.
13584
13585 * NEWS: Mention that the d10v's `regs' command is deprecated.
13586 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13587 (d10v_print_registers_info): New function.
13588 (show_regs): Call d10v_print_registers_info.
13589 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13590
6a3fe0a4
MK
135912003-02-02 Mark Kettenis <kettenis@gnu.org>
13592
13593 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13594 lost in the previous patch.
13595
075559bc
AC
135962003-02-01 Andrew Cagney <ac131313@redhat.com>
13597
13598 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13599 * stack.c (print_frame_info_base): Output complete FRAME tuple
13600 for synthesized frames.
075559bc 13601
6789195b
AC
136022003-02-02 Andrew Cagney <ac131313@redhat.com>
13603
13604 * mips-nat.c (zerobuf): Delete.
13605 (fetch_inferior_registers): Alloc local zerobuf.
13606 (fetch_core_registers): Alloc local zerobuf.
13607 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13608 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13609 * thread-db.c (thread_db_store_registers): Ditto.
13610 * sh-tdep.c (sh_do_register): Ditto.
13611 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13612 * remote-sim.c (gdbsim_store_register): Ditto.
13613 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13614 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13615 * monitor.c (monitor_supply_register): Ditto.
13616 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13617 * mips-nat.c (fetch_inferior_registers): Ditto.
13618 * m68klinux-nat.c (fetch_register): Ditto.
13619 * lynx-nat.c (fetch_inferior_registers): Ditto.
13620 (fetch_inferior_registers): Ditto.
13621 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13622 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13623 (hpux_thread_store_registers): Ditto.
13624 * hppah-nat.c (fetch_register): Ditto.
13625 * hppab-nat.c (fetch_register): Ditto.
13626 * hppa-tdep.c (pa_register_look_aside): Ditto.
13627 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13628 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13629
e669114a
AC
136302003-02-01 Andrew Cagney <ac131313@redhat.com>
13631
13632 * gdbarch.sh: Explictly specify all method levels. When a
13633 variable with an empty level, provide a non-multi-arch default.
13634 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13635 * gdbarch.h: Re-generate.
13636 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13637 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13638
9a043c1d
AC
136392003-02-01 Andrew Cagney <ac131313@redhat.com>
13640
13641 * defs.h (host_pointer_to_address): Delete declaration.
13642 (address_to_host_pointer): Delete declaration.
13643 * utils.c (host_pointer_to_address): Delete function.
13644 (address_to_host_pointer): Delete function.
13645 * procfs.c (procfs_address_to_host_pointer): New function.
13646 * procfs.c (proc_set_watchpoint): Use.
13647 (procfs_can_use_hw_breakpoint): Update comments.
13648 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13649 (som_solib_add): Use.
13650 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13651 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13652
7ca9f392
AC
136532003-02-01 Andrew Cagney <ac131313@redhat.com>
13654
94bbfd30
AC
13655 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13656 strlen d_name.
13657
7ca9f392
AC
13658 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13659 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13660 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13661 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13662 (define_symbol): Update.
13663 * symfile.c (generic_load): Remove references to nindy.
13664 * symtab.c: Remove references to nindy.
13665
31a85ea2
AC
136662003-02-01 Andrew Cagney <ac131313@redhat.com>
13667
13668 * infcmd.c (print_float_info): Delete code conditional on
13669 FLOAT_INFO.
13670 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13671 * config/m68k/nm-apollo68b.h: Ditto.
13672 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13673 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13674 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13675
f6e85fc8
MK
136762003-02-01 Mark Kettenis <kettenis@gnu.org>
13677
6015b6a0
MK
13678 * config/i386/tm-i386os9k.h: Removed.
13679
f7a30bdf
MK
13680 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13681 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13682 they're identical to i[3456]86-*-sysv* now.
13683 * config/i386/i386v32.mh: Removed.
13684 * config/i386/xm-i386v32.h: Removed.
13685 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13686
28d52111
MK
13687 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13688
4d3f6bce
MK
13689 * config/i386/i386dgux.mh: Removed.
13690 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13691
f6e85fc8
MK
13692 * configure.in: Fix typo.
13693 * configure: Regenerated.
13694
53955967
DC
136952003-01-31 David Carlton <carlton@math.stanford.edu>
13696
13697 * dwarf2read.c (dwarf2_locate_sections): Set
13698 dwarf_ranges_section.
13699
b1364885
AC
137002003-01-31 Andrew Cagney <ac131313@redhat.com>
13701
8dbb1c65
AC
13702 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13703 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13704
8731e58e
AC
13705 * utils.c: Re-indent.
13706
b1364885
AC
13707 * config/djgpp/fnchange.lst: Delete nindy files.
13708 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13709 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13710 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13711 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13712 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13713 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13714 * Makefile.in (init.c): Remove nindy references.
13715 (saber_gdb): Delete rule.
13716 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13717 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13718 and a68v-nat.c.
13719 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13720 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13721 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13722 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13723 nindy-share/stop.h.
13724 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13725 * saber.suppress: Delete file.
13726
086df311
DJ
137272003-01-31 Daniel Jacobowitz <drow@mvista.com>
13728
13729 * dbxread.c (stabs_data): New static variable.
13730 (fill_symbuf): Support an in-memory buffer for stabs data.
13731 (stabs_seek): New function.
13732 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13733 (read_ofile_symtab): Use stabs_seek.
13734 (elfstab_build_psymtabs): Take an asection* instead of
13735 an offset and size. Relocate the stabs data if necessary.
13736 Save the section* for dbx_psymtab_to_symtab.
13737 * dwarf2read.c: Add section variables for each debug section.
13738 (dwarf2_locate_sections): Fill them in.
13739 (dwarf2_read_section): Take an asection* argument.
13740 Relocate the section contents if necessary.
13741 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13742 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13743 it to dwarf2_read_section.
13744 (dwarf2_build_frame_info): Update callers.
13745 * elfread.c (elf_symfile_read): Update call to
13746 elfstab_build_psymtabs.
13747 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13748 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13749 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13750 * symfile.c (symfile_dummy_outputs): New function.
13751 (symfile_relocate_debug_section): New function.
13752 * symfile.h (symfile_relocate_debug_section): Add prototype.
13753
87d1b352
RH
137542003-01-31 Richard Henderson <rth@redhat.com>
13755
13756 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13757 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13758 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13759 * alpha-tdep.c (alpha_register_name): Add "unique".
13760 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13761 (ALPHA_UNIQUE_REGNUM): New.
13762 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13763
c48861fb
AC
137642003-01-31 Andrew Cagney <ac131313@redhat.com>
13765
13766 * README: Remove reference to Ericsson 1800 monitor.
13767 * Makefile.in (remote-es.o): Delete rule.
13768 (ALLDEPFILES): Delete remote-es.c.
13769 * remote-es.c: Delete file.
13770 * config/m68k/es1800.mt: Delete file.
13771 * config/djgpp/fnchange.lst: Update.
13772 * configure.tgt: Delete m68*-ericsson-* target.
13773
d764a824
AF
137742003-01-31 Adam Fedor <fedor@gnu.org>
13775
13776 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13777 Remove duplicate/shadowing variable of same name.
13778
fe36c4f4
JB
137792003-01-30 Jim Blandy <jimb@redhat.com>
13780
13781 * symfile.c (find_separate_debug_file): Assert that the objfile's
13782 directory name we compute ends with a slash, and then assume that
13783 that's so everywhere we use it.
13784
cb741690
DJ
137852003-01-30 Daniel Jacobowitz <drow@mvista.com>
13786
13787 * valops.c (value_assign): Flush frame cache after stores to memory
13788 also.
13789
96ee5227
AC
137902003-01-30 Andrew Cagney <ac131313@redhat.com>
13791
13792 * Makefile.in (mon960-rom.o): Delete rule.
13793 * mon960-rom.c: Delete file.
13794
7f6104a9
AC
137952003-01-30 Andrew Cagney <ac131313@redhat.com>
13796
13797 * d10v-tdep.c: Include "frame-unwind.h".
13798 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13799 list.
13800 (next_addr, uses_frame): Delete.
13801 (struct d10v_unwind_cache): Define.
13802 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13803 Use info instead of next_addr and uses_frame globals.
13804 (d10v_frame_init_saved_regs): Delete function.
13805 (d10v_init_extra_frame_info): Delete function.
13806 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13807 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13808 init_frame_pc or frame_saved_pc.
13809 (d10v_pop_frame): Delete function.
13810 (do_d10v_pop_frame): Delete function.
13811 (d10v_frame_chain): Delete function.
13812 (d10v_frame_chain_valid): Delete function.
13813 (d10v_frame_pc_unwind): New function.
13814 (d10v_frame_id_unwind): New function.
13815 (saved_regs_unwinder): New function.
13816 (d10v_frame_register_unwind): New function.
13817 (d10v_frame_pop): New function.
13818 (d10v_frame_unwind): New variable.
13819 (d10v_frame_p): New function.
13820 (d10v_frame_saved_pc): Delete function.
13821 * Makefile.in (d10v-tdep.o): Update dependencies.
13822
cad2e848
JB
138232003-01-30 J. Brobecker <brobecker@gnat.com>
13824
13825 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13826 causing some regressions due to a change in the default value
13827 for this macro.
13828
af34e669
DJ
138292003-01-29 Richard Henderson <rth@redhat.com>
13830 Elena Zannoni <ezannoni@redhat.com>
13831 Daniel Jacobowitz <drow@mvista.com>
13832
13833 Fix PR gdb/961.
8ffd9b1b 13834 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13835 variables.
13836 (RANGES_SECTION): New.
13837 (dwarf_ranges_buffer): New variable.
13838 (struct comp_unit_head): Add member "die".
13839 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13840 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13841 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13842 (dwarf2_locate_sections): Likewise.
13843 (dwarf2_build_psymtabs): Read .debug_ranges.
13844 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13845 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13846 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13847 Look for DW_AT_ranges and return the bounding box.
13848
baa93fa6
CF
138492003-01-29 Brian Ford <ford@vss.fsi.com>
13850
13851 * win32-nat.c (cygwin_pid): Removed as unused.
13852 (child_attach): Try fall back to Cygwin pid.
13853
c63f977f
JB
138542003-01-29 Jim Blandy <jimb@redhat.com>
13855
13856 * objfiles.h (struct objfile): Doc fix.
13857
d62d1979
AC
138582003-01-29 Andrew Cagney <ac131313@redhat.com>
13859
13860 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13861 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13862 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13863 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13864 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13865 (FRAME_SAVED_PC): Change to a function with predicate.
13866 * gdbarch.h, gdbarch.c: Re-generate.
13867
1ae18a04
AC
138682003-01-28 Andrew Cagney <ac131313@redhat.com>
13869
52287340
AC
13870 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13871
1ae18a04
AC
13872 * complaints.c (complain): Delete function.
13873 * complaints.h (struct deprecated_complaint): Delete definition.
13874 (complain): Delete declaration.
13875
f2c16bd6
KB
138762003-01-28 Kevin Buettner <kevinb@redhat.com>
13877
13878 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13879 dummy frames.
13880
a94dd1fd
AC
138812003-01-27 Andrew Cagney <ac131313@redhat.com>
13882
13883 * sentinel-frame.h, sentinel-frame.c: New files.
13884 * Makefile.in (frame.o): Update dependencies.
13885 (SFILES): Add sentinel-frame.c.
13886 (sentinel_frame_h): Define.
13887 (COMMON_OBS): Add sentinel-frame.o.
13888 (sentinel-frame.o): Specify dependencies.
13889 * frame.c: Include "sentinel-frame.h".
13890 (frame_register_unwind): Rewrite assuming that there is always a a
13891 ->next frame.
13892 (frame_register, generic_unwind_get_saved_register): Ditto.
13893 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13894 (create_sentinel_frame, unwind_to_current_frame): New functions.
13895 (get_current_frame): Rewrite using create_sentinel_frame and
13896 unwind_to_current_frame. When possible, always create a frame.
13897 (create_new_frame): Set next to the sentinel frame.
13898 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13899 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13900 ID cache when necessary.
13901 (frame_saved_regs_id_unwind): Use frame_relative_level.
13902 (deprecated_generic_get_saved_register): Use frame_relative_level,
13903 get_frame_saved_regs, get_frame_pc, get_frame_base and
13904 get_next_frame.
13905 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13906 frame_register.
13907
5378adc4
DJ
139082003-01-27 Daniel Jacobowitz <drow@mvista.com>
13909
13910 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13911
51ee2ddc
DJ
139122003-01-27 Daniel Jacobowitz <drow@mvista.com>
13913
13914 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13915 (maintenance_set_profile_cmd): Use error () instead of warning ().
13916
d9feb4e7
DJ
139172003-01-27 Daniel Jacobowitz <drow@mvista.com>
13918
13919 * configure.in: Check that -pg works if using --enable-profiling.
13920 Check for monstartup and _mcleanup regardless of --enable-profiling.
13921 * maint.c: Check for monstartup and _mcleanup before using them.
13922 * config.in: Regenerated.
13923 * configure: Regenerated.
13924
2d188dd3
NC
139252003-01-24 Nick Clifton <nickc@redhat.com>
13926
13927 * Add sh2e support:
13928
13929 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13930
13931 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13932 (sh2e_show_regs): New.
13933 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13934 * config/sh/tm-sh.h: Added sh2e to comments.
13935
cb3c37b2
JB
139362003-01-23 Jim Blandy <jimb@redhat.com>
13937
13938 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13939 symbols found)" message here; we haven't checked for a separate
13940 debug info file yet, so we don't know yet.
13941 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13942 we've looked everywhere. Also, there's no need to print a special
13943 message when we're loading the separate debug info file: the one
13944 symbol_file_add prints is fine.
13945
5b5d99cf
JB
139462003-01-23 Alexander Larsson <alexl@redhat.com>
13947 Jim Blandy <jimb@redhat.com>
13948
13949 Add support for executables whose debug info has been separated
13950 out into a separate file, leaving only a link behind.
13951 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13952 and separate_debug_objfile_backlink.
13953 (put_objfile_before): New declaration.
13954 * symfile.c: #include "filenames.h".
13955 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13956 debug info in a separate file, read that, too. Save the addrs
13957 argument, so we can use it again to read the separated debug info;
13958 syms_from_objfile modifies the table we pass it.
13959 (reread_symbols): After re-reading an objfile, call
13960 reread_separate_symbols to refresh its separate debug info
13961 objfile, if it has one.
13962 (reread_separate_symbols, find_separate_debug_file,
13963 get_debug_link_info, separate_debug_file_exists): New functions.
13964 (debug_file_directory): New global var.
13965 (_initialize_symfile): Initialize debug_file_directory, and
13966 provide the new `set debug-file-directory' command to let the user
13967 change it.
13968 * objfiles.c (free_objfile): If this objfile has its debug info in
13969 a separate objfile, free that one too. If this is itself a
13970 separate debug info objfile, clear our parent's backlink.
13971 (put_objfile_before): New function.
13972 * utils.c (gnu_debuglink_crc32): New function.
13973 * defs.h (gnu_debuglink_crc32): New declaration.
13974 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13975 * configure.in: Handle --with-separate-debug-dir config option.
13976 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13977 * acconfig.h (DEBUGDIR): New macro.
13978 * configure, aclocal.m4, config.in: Regenerated.
13979
7e8580c1
JB
139802003-01-22 Jim Blandy <jimb@redhat.com>
13981
7904e09f
JB
13982 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13983 like the old symbol_file_add, but taking new arguments: you can
13984 now pass in either a `struct section_addr_info' list to say where
13985 each section is loaded, or a `struct section_offsets' table. Pass
13986 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13987 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13988 with the appropriate quiescent values for the new arguments.
13989
7e8580c1
JB
13990 * symfile.c: #include "gdb_assert.h".
13991 (syms_from_objfile): Add the ability to pass in a section offset
13992 table directly, as an alternative to the section_addr_info table.
13993 Document arguments better.
13994 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13995 * symfile.h (syms_from_objfile): Update declaration.
13996 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13997 syms_from_objfile.
13998 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13999
d28f9cdf
DJ
140002003-01-22 Daniel Jacobowitz <drow@mvista.com>
14001
14002 Original patch by Tom Tromey <tromey@cygnus.com> and
14003 Jason Molenda <jmolenda@apple.com>.
14004 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14005 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14006 * NEWS: Mention profiling.
14007 * configure.in (--enable-gdbtk): Fix typo.
14008 (--enable-profiling): New. Set PROFILE_CFLAGS.
14009 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14010 Fill in function.
14011 (profiling_state): New variable.
14012 (mcleanup_wrapper): New function.
14013 (_initialize_maint): Remove NOTYET, fix call to
14014 add_setshow_boolean_cmd for "maint set profile".
14015 * configure: Regenerated.
14016
df21e465
MH
140172003-01-21 Martin M. Hunt <hunt@redhat.com>
14018
14019 * Makefile.in (install-gdbtk): Install PNG images too.
14020
73c1f219
AC
140212003-01-21 Andrew Cagney <ac131313@redhat.com>
14022
14023 * exec.c (text_start): Delete global variable.
14024 (exec_file_attach): Make text_start local to the function.
14025 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14026 * valops.c (hand_function_call): Delete code that handles
14027 BEFORE_TEXT_END and AFTER_TEXT_END.
14028 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14029 of CALL_DUMMY_LOCATION.
14030 * gdbarch.c: Regenerate.
14031 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14032 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14033 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14034 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14035 (text_end): Delete extern declaration.
14036
eb4f72c5
AC
140372003-01-21 Andrew Cagney <ac131313@redhat.com>
14038
14039 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14040 * blockframe.c (backtrace_below_main): Move to "frame.c".
14041 (frame_chain_valid): Delete check for backtrace_below_main.
14042 (_initialize_blockframe): Delete initialization, move ``set
14043 backtrace-below-main'' command to "frame.c".
14044 (do_flush_frames_sfunc): Delete function.
14045 * frame.c: Include "command.h" and "gdbcmd.h".
14046 (frame_type_from_pc): New function.
14047 (create_new_frame): Use frame_type_from_pc.
14048 (legacy_get_prev_frame): New function.
14049 (get_prev_frame): Rewrite. When an old style frame, call
14050 legacy_get_prev_frame. Otherwize, unwind the PC first.
14051 (_initialize_frame): Add ``set backtrace-below-main'' command.
14052 * Makefile.in (frame.o): Update dependencies.
14053
778ce8cc
AC
140542003-01-19 Andrew Cagney <ac131313@redhat.com>
14055
14056 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14057 DEPRECATED_REGISTERS_INFO.
14058
01c193c8
AC
140592003-01-19 Andrew Cagney <ac131313@redhat.com>
14060
14061 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14062 Maintainers'. Update `Various Maintainers'.
14063
dedc2a2b
AC
140642003-01-19 Andrew Cagney <ac131313@redhat.com>
14065
14066 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14067 * gdbarch.sh (POP_FRAME): Change to function with predicate.
14068 Suppress actual parameters when `-'.
14069 * gdbarch.h, gdbarch.c: Regenerate.
14070
b7261c70
AC
140712003-01-19 Andrew Cagney <ac131313@redhat.com>
14072
14073 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14074 code handling dummy frames.
14075
dbe9fe58
AC
140762003-01-19 Andrew Cagney <ac131313@redhat.com>
14077
14078 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14079 (struct frame_unwind): Add field pop.
14080 * frame.h (frame_pop): Declare.
14081 * frame.c (frame_saved_regs_pop): New function.
14082 (trad_frame_unwinder): Add frame_saved_regs_pop.
14083 (frame_pop): New function.
14084 * dummy-frame.c (dummy_frame_pop): New function.
14085 (discard_innermost_dummy): New function.
14086 (generic_pop_dummy_frame): Use discard_innermost_dummy.
14087 (dummy_frame_unwind): Add dummy_frame_pop.
14088 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14089 * valops.c (hand_function_call): Ditto.
14090 * stack.c (return_command): Ditto.
14091
570b8f7c
AC
140922003-01-18 Andrew Cagney <ac131313@redhat.com>
14093
14094 * cris-tdep.c: Fix function declaration indentation.
14095 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14096 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14097 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14098 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14099 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14100 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14101
141022003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
14103
14104 * README (Unpacking and Installation -- quick overview):
14105 Warn against ".../gdb-5.3/gdb/configure".
14106
494cca16
AC
141072003-01-18 Andrew Cagney <ac131313@redhat.com>
14108
14109 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14110 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14111 (struct frame_unwind): Declare opaque.
14112 (dummy_frame_p): Declare function.
14113 * dummy-frame.c (dummy_frame_id_unwind): Make static.
14114 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14115 * dummy-frame.c: Include "frame-unwind.h".
14116 (dummy_frame_p): New function.
14117 (dummy_frame_unwind): New variable.
14118 * frame.c: Include "frame-unwind.h".
14119 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14120 to use the new unwind field.
14121 (set_unwind_by_pc): Delete function.
14122 (create_new_frame, get_prev_frame): Set unwind field using
14123 frame_unwind_find_by_pc.
14124 (trad_frame_unwind, trad_frame_unwinder): New variables.
14125 * frame.h (trad_frame_unwind): Declare variable.
14126 (frame_id_unwind_ftype): Delete declaration.
14127 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14128 (struct frame_unwind): Declare opaque.
14129 (struct frame_info): Replace the fields id_unwind, pc_unwind and
14130 register_unwind with a single unwind pointer.
14131 * frame-unwind.h, frame-unwind.c: New files.
14132 * Makefile.in (SFILES): Add frame-unwind.c.
14133 (frame_unwind_h): Define.
14134 (COMMON_OBS): Add frame-unwind.o.
14135 (frame-unwind.o): Specify dependencies.
14136 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 14137
4efb68b1
AC
141382003-01-18 Andrew Cagney <ac131313@redhat.com>
14139
14140 * ada-valprint.c: Eliminate PTR.
14141 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14142 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14143 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14144 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14145 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14146 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14147 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 14148
a84d24ee
AC
141492003-01-17 Andrew Cagney <ac131313@redhat.com>
14150
762f08a3
AC
14151 * main.c (captured_main): Don't use PTR.
14152 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14153 * gdbtypes.c (lookup_primitive_typename): Ditto.
14154 (lookup_struct_elt_type): Ditto.
14155 * f-valprint.c (info_common_command): Ditto.
14156 (list_all_visible_commons): Ditto.
14157 * jv-typeprint.c (java_type_print_base): Ditto.
14158
a84d24ee
AC
14159 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14160 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14161 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
14162 i386-interix-nat.c and i386-interix-tdep.c. Rename
14163 m68klinux-nat.c and m68klinux-tdep.c. Rename
14164 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
14165 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
14166 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14167 * main.c (captured_main): Use xfree, not free.
14168
c170fb60
AC
141692003-01-16 Andrew Cagney <ac131313@redhat.com>
14170
14171 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14172 ID back using a parameter.
14173 * frame.c (frame_id_unwind): Update call.
14174 (frame_saved_regs_id_unwind): Update.
14175 * dummy-frame.c (dummy_frame_id_unwind): Update function.
14176 * dummy-frame.h (struct frame_id): Add opaque declaration.
14177 (dummy_frame_id_unwind): Update declaration.
14178
867f3898
AC
141792003-01-15 Andrew Cagney <ac131313@redhat.com>
14180
14181 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14182
40622be8 141832003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 14184
40622be8 14185 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 14186
ae66c1fc
EZ
141872003-01-14 Elena Zannoni <ezannoni@redhat.com>
14188
997b089a 14189 Fix PR gdb/898
ae66c1fc
EZ
14190 * breakpoint.c (until_break_command): Add new argument. Use it to
14191 decide whether to stop only at the current frame or not.
14192 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 14193 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
14194 call.
14195 (advance_command): New function.
14196 (_initialize_infcmd): Update help string for 'until' command.
14197 Add new 'advance' command.
14198
a04257e6
DC
141992003-01-14 David Carlton <carlton@math.stanford.edu>
14200
14201 * linespec.c (decode_line_1): Normalize comments.
14202 (set_flags): Ditto.
14203 (locate_first_half): Ditto.
14204 (decode_compound): Ditto.
14205 (symtab_from_filename): Ditto.
14206 (decode_all_digits): Ditto.
14207 (decode_dollar): Ditto.
14208 (find_methods): Ditto.
14209 (find_toplevel_char): Ditto.
14210
1bac305b
AC
142112003-01-13 Andrew Cagney <ac131313@redhat.com>
14212
14213 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14214 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14215 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14216 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14217 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14218 * language.c, language.h, m32r-tdep.c: Update copyright.
14219 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14220 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14221 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14222 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14223 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14224 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14225
25caa7a8
EZ
142262003-01-13 Elena Zannoni <ezannoni@redhat.com>
14227
14228 * stabsread.h (process_later, resolve_cfront_continuation):
14229 Obsolete.
14230 Update copyright years.
14231 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14232 Update copyright year.
14233 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14234 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14235 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14236 Update copyright year.
14237 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14238 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14239 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14240 (parse_partial_symbols): Obsolete cfront support.
14241 * stabsread.c
14242 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14243 macros.
14244 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14245 read_cfront_baseclasses, read_cfront_member_functions,
14246 resolve_cfront_continuation,read_cfront_static_fields,
14247 copy_cfront_struct_fields): Obsolete functions.
14248 (define_symbol, read_one_struct_field): Obsolete cfront support.
14249 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14250 Update Copyright year.
14251
7789c6f5
EZ
142522003-01-13 Elena Zannoni <ezannoni@redhat.com>
14253
14254 * stack.c (print_frame_info, print_stack_frame_base_stub,
14255 print_stack_frame_base, show_and_print_stack_frame_stub,
14256 show_and_print_stack_frame, print_only_stack_frame_stub,
14257 print_only_stack_frame): Delete functions.
14258 (print_stack_frame_stub): Call print_frame_info instead of
14259 print_frame_info_base.
14260 (print_frame_info_base): Rename to print_frame_info.
14261 (backtrace_command_1): Call print_frame_info, instead of
14262 print_frame_info_base.
14263 (current_frame_command): Call print_stack_frame, instead of
14264 print_only_stack_frame.
14265 (frame_command): Call print_stack_frame, instead of
14266 show_and_print_stack_frame.
14267 (up_command): Ditto.
14268 (down_command): Ditto.
14269 * frame.h (print_only_stack_frame): Delete prototype.
14270 * infrun.c (normal_stop): Call print_stack_frame, instead of
14271 show_and_print_stack_frame.
14272 * thread.c (info_threads_command): Call print_stack_frame, instead
14273 of print_only_stack_frame.
14274
3f5a3016
AC
142752003-01-13 Andrew Cagney <ac131313@redhat.com>
14276
d99ba314
AC
14277 * README (Graphical interface to GDB): Update URL. Point at
14278 gdb/links/.
14279
3f5a3016
AC
14280 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14281 version match.
14282
083ae935
DJ
142832003-01-13 Daniel Jacobowitz <drow@mvista.com>
14284
14285 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14286 lines.
14287
5365276c
DJ
142882003-01-13 Daniel Jacobowitz <drow@mvista.com>
14289
14290 * thread-db.c (attach_thread): Prototype.
14291 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14292 thread information (ti), and valid flags (th_valid, ti_valid).
14293 (attach_thread): Move target_pid_to_str call to after the thread
14294 is added to GDB's list. Initialize the cache.
14295 (thread_get_info_callback, thread_db_map_id2thr)
14296 (thread_db_get_info): New functions.
14297 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14298 (thread_db_store_registers, thread_db_thread_alive)
14299 (thread_db_get_thread_local_address): Use them.
14300 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14301 of calling error() for threads in unknown state.
14302
14303 (clear_lwpid_callback): New function.
14304 (thread_db_resume): Use it to clear the cache.
14305
9fc30b6b
DJ
143062003-01-13 Daniel Jacobowitz <drow@mvista.com>
14307
14308 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14309 (resume_callback): Remove dead code.
14310
8f871025
AC
143112003-01-13 Andrew Cagney <ac131313@redhat.com>
14312
14313 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14314 predicate.
14315 * gdbarch.h, gdbarch.c: Regenerate.
14316 * stack.c (frame_info): Only initialize the saved registers when
14317 FRAME_INIT_SAVED_REGS_P.
14318 * frame.c (frame_saved_regs_register_unwind): Assert
14319 FRAME_INIT_SAVED_REGS_P.
14320 (deprecated_generic_get_saved_register): Ditto.
14321
3f565f1e
DJ
143222003-01-13 Daniel Jacobowitz <drow@mvista.com>
14323
14324 * source.c (openp): Squelch warning about "filename".
14325
072b1022
DJ
143262003-01-13 Daniel Jacobowitz <drow@mvista.com>
14327
14328 * source.c (openp): If the file does not exist don't necessarily
14329 search the path.
14330
973ccf8b
DJ
143312003-01-13 Daniel Jacobowitz <drow@mvista.com>
14332
14333 Fix PR gdb/872.
14334 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14335 (integer_types_same_name_p): New function.
14336 (rank_one_type): Use it.
14337 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14338
030292b7
DJ
143392003-01-13 Daniel Jacobowitz <drow@mvista.com>
14340
14341 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14342 variables.
14343 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14344 * configure.in: Add --with-sysroot.
14345 * configure: Regenerated.
14346 * main.c (gdb_sysroot): New variable.
14347 (captured_main): Initialize gdb_sysroot.
14348 * defs.h (gdb_sysroot): New extern declaration.
14349 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14350
afb5d334
MC
143512003-01-12 Michael Chastain <mec@shout.net>
14352
14353 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14354
751ceeb4
MC
143552003-01-12 Michael Chastain <mec@shout.net>
14356
14357 * top.c (print_gdb_version): Bump copyright year to 2003.
14358
94cd26f8
DC
143592003-01-12 David Carlton <carlton@bactrian.org>
14360
14361 * linespec.c (symtab_from_filename): Rename variable 's' to
14362 'file_symtab'.
14363
1ce79225
AC
143642003-01-12 Andrew Cagney <ac131313@redhat.com>
14365
14366 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14367 dummy frame.
14368 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14369
fa1fd571
AC
143702003-01-12 Andrew Cagney <ac131313@redhat.com>
14371
14372 * d10v-tdep.c: Include "gdb_assert.h".
14373 (d10v_store_return_value): Rewrite to match current interface.
14374 (d10v_extract_struct_value_address): Ditto.
14375 (d10v_extract_return_value): Ditto.
14376 (d10v_gdbarch_init): Set store_restore_value,
14377 extract_struct_value_address and extract_return_value.
14378
68b8d23e
JB
143792003-01-12 J. Brobecker <brobecker@gnat.com>
14380
14381 * hpread.c (set_namestring): New procedure replacing the
14382 SET_NAMESTRING macro.
14383 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14384 by calls to set_namestring.
14385
143862003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14387
14388 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14389 a compilation warning.
14390 (hpread_process_one_debug_symbol): Likewise.
14391
88d262ca
DC
143922003-01-10 David Carlton <carlton@math.stanford.edu>
14393
14394 * linespec.c (decode_line_1): Rename variable 's' to
14395 'file_symtab'.
14396 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14397 (decode_dollar): Ditto.
14398 (decode_variable): Ditto.
14399 (symbol_found): Ditto.
14400
86669319
MC
144012003-01-09 Michael Chastain <mec@shout.net>
14402
14403 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14404
616a9dc4
CV
144052003-01-07 Corinna Vinschen <vinschen@redhat.com>
14406
14407 * win32-nat.c (set_process_privilege): New function.
14408 (child_attach): Call set_process_privilege() to enable the
14409 SE_DEBUG_NAME user privilege if available in process token.
14410
3269bcfa
JB
144112003-01-10 J. Brobecker <brobecker@gnat.com>
14412
14413 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14414 compilation error in the previous revision.
14415
2b0ee454
DC
144162003-01-09 David Carlton <carlton@math.stanford.edu>
14417
14418 * linespec.c: Update copyright.
14419
b3ba1b44
DJ
144202003-01-09 Daniel Jacobowitz <drow@mvista.com>
14421
14422 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14423 than inferior_ptid.
14424 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14425
4ef3f3be
AC
144262003-01-09 Andrew Cagney <ac131313@redhat.com>
14427
479ab5a0
AC
14428 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14429 Update comments.
14430 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14431 (frame_saved_regs_zalloc): Update.
14432 (frame_saved_regs_register_unwind): Update.
14433 (create_new_frame): Update.
14434 (get_prev_frame): Update.
14435 (frame_extra_info_zalloc): Update.
14436 (deprecated_get_frame_saved_regs): Update.
14437 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14438 * cris-tdep.c: Update comment.
14439
bde58177
AC
14440 * somsolib.h: Fix function indentation.
14441 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14442 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14443 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14444 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14445 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14446
4ef3f3be
AC
14447 * infrun.c (follow_fork): Use ISO C definition.
14448 * expprint.c (print_subexp): Use xfree instead of free.
14449 * charset.c: Include "gdb_string.h" instead of <string.h>.
14450 (register_iconv_charsets): Use ISO C definition.
14451 (host_charset, target_charset): Ditto.
14452 * Makefile.in (charset.o): Update dependencies.
14453 (mi-cmd-env.o): Update dependencies.
14454
1c615f7a
AC
144552003-01-08 Andrew Cagney <cagney@redhat.com>
14456
14457 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14458 get_frame_base.
14459
c9a1dc08
AC
144602003-01-08 Andrew Cagney <ac131313@redhat.com>
14461
14462 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14463 build directories. Save edited gdb output in Mbuild.log. If a
14464 build fails, remove any final GDB executable.
14465
dbad9d94
AC
144662003-01-08 Andrew Cagney <ac131313@redhat.com>
14467
14468 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14469 replacing hex constants with function names and stripping leading
14470 file name directory prefixes.
14471
8d357cca
AC
144722003-01-08 Andrew Cagney <cagney@redhat.com>
14473
14474 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14475 get_frame_base.
14476
bca02a8a
DC
144772003-01-08 David Carlton <carlton@math.stanford.edu>
14478
14479 * linespec.c (decode_line_1): Move code into decode_variable.
14480 (decode_variable): New function.
14481
7f8ab3a0
AC
144822003-01-08 Andrew Cagney <ac131313@redhat.com>
14483
14484 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14485
7b5849cc
AC
144862003-01-08 Andrew Cagney <cagney@redhat.com>
14487
14488 * cris-tdep.c (cris_frame_init_saved_regs): Use
14489 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14490 saved_regs buffer.
14491 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14492 (sh64_nofp_frame_init_saved_regs): Ditto.
14493 (sh_fp_frame_init_saved_regs): Ditto.
14494 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14495 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14496 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14497 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14498
72a5efb3
DJ
144992003-01-08 Daniel Jacobowitz <drow@mvista.com>
14500
14501 * minsyms.c (lookup_minimal_symbol): Update comment.
14502 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14503 (lookup_minimal_symbol_solib_trampoline): Likewise.
14504
11c02a10
AC
145052003-01-08 Andrew Cagney <cagney@redhat.com>
14506
aab3ea25
AC
14507 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14508 frame_relative_level.
14509
da50a4b7
AC
14510 * alpha-tdep.c: Use get_frame_extra_info.
14511 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14512 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14513 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14514 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14515
11c02a10
AC
14516 * alpha-tdep.c: Use get_next_frame.
14517 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14518 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14519 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14520 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14521 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14522 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14523 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14524
1e2330ba
AC
145252003-01-07 Andrew Cagney <cagney@redhat.com>
14526
14527 * alpha-tdep.c: Use get_frame_base.
14528 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14529 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14530 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14531 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14532 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14533 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14534 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14535 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14536
2d75187b
AC
145372003-01-07 Andrew Cagney <cagney@redhat.com>
14538
14539 * frame.c (deprecated_get_frame_context): New function.
14540 (deprecated_set_frame_context): New function.
14541 * frame.h (deprecated_get_frame_context): Declare.
14542 (deprecated_set_frame_context): Declare.
14543 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14544 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14545
483d36b2
AC
145462003-01-07 Andrew Cagney <cagney@redhat.com>
14547
14548 * frame.c (deprecated_set_frame_next_hack): New function.
14549 (deprecated_set_frame_prev_hack): New function.
14550 * frame.h (deprecated_set_frame_next_hack): Declare.
14551 (deprecated_set_frame_prev_hack): Declare.
14552 * mcore-tdep.c (analyze_dummy_frame): Use
14553 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14554 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14555
14e91ac5
DC
145562003-01-07 David Carlton <carlton@math.stanford.edu>
14557
14558 * linespec.c (decode_line_1): Move code into decode_dollar.
14559 (decode_dollar): New function.
14560
b0c6b05c
AC
145612003-01-07 Andrew Cagney <cagney@redhat.com>
14562
14563 * arm-tdep.c (arm_init_extra_frame_info): Use
14564 deprecated_update_frame_base_hack.
14565 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14566 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14567 (fix_frame_pointer): Ditto.
14568 (mn10300_analyze_prologue): Ditto.
14569
a00a19e9
AC
145702003-01-07 Andrew Cagney <cagney@redhat.com>
14571
14572 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14573 extra_info using frame_extra_info_zalloc.
14574 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14575 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14576 (sh64_init_extra_frame_info): Ditto.
14577 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14578 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14579 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14580 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14581 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14582 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14583 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14584 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14585 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14586 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14587 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14588 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14589
14590 * mn10300-tdep.c (analyze_dummy_frame): Use
14591 deprecated_set_frame_extra_info_hack.
14592 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14593
1fb4c65b
JB
145942003-01-07 J. Brobecker <brobecker@gnat.com>
14595
14596 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14597 class is not scText. These do not define "real" procedures.
14598 (parse_partial_symbols): Likewise.
14599
9fe7d6bf
MS
146002003-01-06 Michael Snyder <msnyder@redhat.com>
14601
14602 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14603
f6c609c4
AC
146042003-01-06 Andrew Cagney <ac131313@redhat.com>
14605
14606 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14607 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14608 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14609 deprecated_frame_xmalloc_with_cleanup.
14610 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14611 deprecated_frame_xmalloc.
14612 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14613 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14614
d995ff4b
AC
146152003-01-06 Andrew Cagney <cagney@redhat.com>
14616
84dc46cb
AC
14617 * x86-64-linux-tdep.c: Include "osabi.h".
14618 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14619
d995ff4b
AC
14620 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14621
66140c26
AC
146222003-01-06 Andrew Cagney <cagney@redhat.com>
14623
14624 * MAINTAINERS (Target Instruction Set Architectures): Update
14625 arm-elf. Can be built with -Werror, has been multiarched.
14626
14627 * value.h (unpack_long): Make buffer parameter constant.
14628 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14629 * scm-lang.h (scm_parse): Ditto.
14630 * defs.h (extract_typed_address, extract_address): Ditto.
14631 (extract_long_unsigned_integer): Ditto.
14632 * inferior.h (unsigned_pointer_to_address): Ditto.
14633 (signed_pointer_to_address): Ditto.
14634 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14635 * gdbarch.h, gdbarch.c: Regenerate.
14636 * findvar.c (extract_long_unsigned_integer): Update.
14637 (extract_address): Update.
14638 (extract_typed_address): Update.
14639 (unsigned_pointer_to_address): Update.
14640 * values.c (unpack_long): Update.
14641 (unpack_double): Update.
14642 (unpack_pointer): Update.
14643 (unpack_field_as_long): Update.
14644 * d10v-tdep.c (d10v_pointer_to_address): Update.
14645 * avr-tdep.c (avr_pointer_to_address): Update.
14646 * scm-lang.c (scm_unpack): Update.
14647 * findvar.c (signed_pointer_to_address): Update.
14648
b089b3da
ML
146492003-01-06 Michal Ludvig <mludvig@suse.cz>
14650
8ffd9b1b 14651 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14652 since it is in i386-tdep.c.
14653
aff87235
JB
146542003-01-06 J. Brobecker <brobecker@gnat.com>
14655
14656 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14657 failure introduced in the previous change.
14658
34f5e845
MC
146592003-01-05 Michael Chastain <mec@shout.net>
14660
14661 * README: Remove references to deleted remote-*.c files:
14662 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14663 remote-nrom.c, remote-os9k.c, remote-udi.c.
14664
28bcfd30
MK
146652003-01-05 Mark Kettenis <kettenis@gnu.org>
14666
14667 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14668 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14669 i386_get_longjmp_target.
14670
15a5b3ee
AC
146712003-01-05 Andrew Cagney <ac131313@redhat.com>
14672
14673 * arm-tdep.c (prologue_cache): Change to a pointer.
14674 (_initialize_arm_tdep): Allocate prologue_cache.
14675 (check_prologue_cache): Update.
14676 (save_prologue_cache): Update.
14677 (arm_gdbarch_init): Update.
14678
c263362b
DJ
146792003-01-04 Daniel Jacobowitz <drow@mvista.com>
14680
14681 * stabsread.c (update_method_name_from_physname): Call complaint()
14682 instead of error.
14683
51603483
DJ
146842003-01-04 Daniel Jacobowitz <drow@mvista.com>
14685
14686 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14687 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14688 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14689
14690 * blockframe.c: Include "gdbcmd.h" and "command.h".
14691 (backtrace_below_main): New variable.
14692 (file_frame_chain_valid, func_frame_chain_valid)
14693 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14694 (generic_func_frame_chain_valid): Remove functions.
14695 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14696 (_initialize_blockframe): New function.
14697 * Makefile.in (blockframe.o): Update dependencies.
14698 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14699 comment. Call frame_chain_valid ().
14700 * frame.h: Remove old prototypes. Add prototype for
14701 frame_chain_valid and update comments to match.
14702 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14703 Remove old comment.
14704 * gdbarch.h: Regenerated.
14705 * gdbarch.c: Regenerated.
14706
14707 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14708 set_gdbarch_frame_chain_valid.
14709 * avr-tdep.c (avr_gdbarch_init): Likewise.
14710 * cris-tdep.c (cris_gdbarch_init): Likewise.
14711 * frv-tdep.c (frv_gdbarch_init): Likewise.
14712 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14713 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14714 (i386_nw_init_abi): Likewise.
14715 (i386_gdbarch_init): Likewise.
14716 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14718 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14719 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14720 * mips-tdep.c (mips_gdbarch_init): Likewise.
14721 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14722 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14723 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14724 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14725 * s390-tdep.c (s390_gdbarch_init): Likewise.
14726 * sh-tdep.c (sh_gdbarch_init): Likewise.
14727 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14728 * v850-tdep.c (v850_gdbarch_init): Likewise.
14729 * vax-tdep.c (vax_gdbarch_init): Likewise.
14730 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14731
14732 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14733 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14734 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14735 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14736 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14737 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14738 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14739 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14740
b00a8037
DJ
147412002-01-04 Daniel Jacobowitz <drow@mvista.com>
14742
14743 * Makefile.in (acconfig_h): Remove incorrect macro.
14744 (config_h): Define.
14745 (osabi.o): Update dependencies.
14746 * configure.tgt: Set gdb_osabi based on target triplet.
14747 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14748 * configure: Regenerated.
14749 * config.in: Regenerated.
14750 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14751 (GDB_OSABI_DEFAULT): Define if not already defined.
14752 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14753 (set_osabi_string): New variables.
14754 (gdbarch_register_osabi): Add new OS ABI to
14755 gdb_osabi_available_names.
14756 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14757 (set_osabi, show_osabi): New functions.
14758 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14759
4be87837
DJ
147602003-01-04 Daniel Jacobowitz <drow@mvista.com>
14761
14762 * arch-utils.c (gdbarch_info_init): Set osabi to
14763 GDB_OSABI_UNINITIALIZED.
14764 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14765 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14766 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14767 * gdbarch.c: Regenerated.
14768 * gdbarch.h: Regenerated.
14769 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14770 there's no BFD.
14771 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14772 * osabi.h (enum gdb_osabi): Move to defs.h.
14773 (gdbarch_init_osabi): Update prototype.
14774 * defs.h (enum gdb_osabi): Moved here.
14775 * Makefile.in: Update dependencies.
14776
14777 * alpha-tdep.h: Don't include "osabi.h".
14778 (struct gdbarch_tdep): Remove osabi member.
14779 * alpha-tdep.c: Include "osabi.h".
14780 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14781 iterate over arches. Update call to gdbarch_init_osabi.
14782 (alpha_dump_tdep): Don't dump osabi.
14783 * alpha-linux-tdep.c: Include "osabi.h".
14784 * alpha-osf1-tdep.c: Include "osabi.h".
14785 * alphafbsd-tdep.c: Include "osabi.h".
14786 * alphanbsd-tdep.c: Include "osabi.h".
14787
14788 * arm-tdep.h: Don't include "osabi.h".
14789 (struct gdbarch_tdep): Remove osabi member.
14790 * arm-tdep.c: Include "osabi.h".
14791 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14792 iterate over arches. Update call to gdbarch_init_osabi.
14793 (arm_dump_tdep): Don't dump osabi.
14794 * arm-linux-tdep.c: Include "osabi.h".
14795 * armnbsd-tdep.c: Include "osabi.h".
14796
14797 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14798 Update call to gdbarch_init_osabi.
14799
14800 * i386-tdep.h: Don't include "osabi.h".
14801 (struct gdbarch_tdep): Remove osabi member.
14802 * i386-tdep.c: Include "osabi.h".
14803 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14804 iterate over arches. Update call to gdbarch_init_osabi.
14805 (i386_dump_tdep): Don't dump osabi.
14806 * i386-linux-tdep.c: Include "osabi.h".
14807 * i386-sol2-tdep.c: Include "osabi.h".
14808 * i386bsd-tdep.c: Include "osabi.h".
14809 * i386gnu-tdep.c: Include "osabi.h".
14810 * i386ly-tdep.c: Include "osabi.h".
14811 * i386nbsd-tdep.c: Include "osabi.h".
14812 * i386obsd-tdep.c: Include "osabi.h".
14813
14814 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14815 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14816 check osabi when iterating over arches. Update call to
14817 gdbarch_init_osabi.
14818 (mips_dump_tdep): Don't dump osabi.
14819
14820 * ns32k-tdep.h: Don't include "osabi.h".
14821 (struct gdbarch_tdep): Remove.
14822 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14823 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14824 allocate tdep. Update call to gdbarch_init_osabi.
14825 (ns32k_dump_tdep): Remove.
14826 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14827 * ns32knbsd-tdep.c: Include "osabi.h".
14828
14829 * ppc-tdep.h: Don't include "osabi.h".
14830 (struct gdbarch_tdep): Remove osabi member.
14831 * rs6000-tdep.c: Include "osabi.h".
14832 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14833 osabi when iterating over arches. Update call to
14834 gdbarch_init_osabi.
14835 (rs6000_dump_tdep): Don't dump osabi.
14836 * ppc-linux-tdep.c: Include "osabi.h".
14837 * ppcnbsd-tdep.c: Include "osabi.h".
14838
14839 * sh-tdep.h: Don't include "osabi.h".
14840 (struct gdbarch_tdep): Remove osabi member.
14841 * sh-tdep.c: Include "osabi.h".
14842 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14843 iterate over arches. Update call to gdbarch_init_osabi.
14844 (sh_dump_tdep): Don't dump osabi.
14845 * shnbsd-tdep.c: Include "osabi.h".
14846
14847 * sparc-tdep.c: Include "osabi.h".
14848 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14849 iterate over arches. Update call to gdbarch_init_osabi.
14850 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14851 tdep structure.
14852
14853 * vax-tdep.h: Don't include "osabi.h".
14854 (struct gdbarch_tdep): Remove.
14855 * vax-tdep.c: Include "osabi.h".
14856 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14857 iterate over arches. Don't allocate tdep. Update call
14858 to gdbarch_init_osabi.
14859 (vax_dump_tdep): Remove.
14860 (_initialize_vax_tdep): Update call to gdbarch_register.
14861
a881cf8e
DJ
148622003-01-04 Daniel Jacobowitz <drow@mvista.com>
14863
14864 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14865 entirely.
14866 (breakpoint_re_set_one): Don't fetch the value for a disabled
14867 watchpoint.
14868
1e698235
DJ
148692003-01-04 Daniel Jacobowitz <drow@mvista.com>
14870
14871 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14872 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14873 (COERCE_FLOAT_TO_DOUBLE): Remove.
14874 * gdbarch.c: Regenerate.
14875 * gdbarch.h: Regenerate.
14876 * Makefile.in: Remove value_h from gdbarch_h.
14877 * valops.c (coerce_float_to_double): New variable.
14878 (default_coerce_float_to_double): Remove.
14879 (standard_coerce_float_to_double): Remove.
14880 (value_arg_coerce): Use coerce_float_to_double.
14881 (_initialize_valops): Add "set coerce-float-to-double".
14882 * value.h (default_coerce_float_to_double): Remove prototype.
14883 (standard_coerce_float_to_double): Remove prototype.
14884
14885 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14886 prototyped.
14887 * mdebugread.c (parse_symbol): Likewise.
14888 * stabsread.c (define_symbol): Mark all functions as prototyped.
14889
14890 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14891 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14892 set_gdbarch_coerce_float_to_double.
14893 * arm-tdep.c (arm_gdbarch_init): Likewise.
14894 * frv-tdep.c (frv_gdbarch_init): Likewise.
14895 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14896 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14897 * mips-tdep.c (mips_gdbarch_init): Likewise.
14898 (mips_coerce_float_to_double): Remove.
14899 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14900 (rs6000_coerce_float_to_double): Remove.
14901 * s390-tdep.c (s390_gdbarch_init): Likewise.
14902 * sh-tdep.c (sh_gdbarch_init): Likewise.
14903 (sh_coerce_float_to_double): Remove.
14904 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14905 (sparc_coerce_float_to_double): Remove.
14906 * v850-tdep.c (v850_gdbarch_init): Likewise.
14907 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14908 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14909 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14910 (hppa_coerce_float_to_double): Remove prototype.
14911 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14912
f436a26a
DJ
149132003-01-04 Daniel Jacobowitz <drow@mvista.com>
14914
14915 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14916
248f8055
DJ
149172003-01-04 Daniel Jacobowitz <drow@mvista.com>
14918
14919 Suggested by Stewart Brown <sb24@avaya.com>:
14920 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14921 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14922 (c_type_print_varspec_suffix): Likewise.
14923
72cfdc76
MK
149242003-01-04 Mark Kettenis <kettenis@gnu.org>
14925
bfd260bb
MK
14926 * configure.in: Don't set and AC_SUBST SUBDIRS.
14927 * configure: Regenerated.
14928
72cfdc76
MK
14929 * configure.in: Remove code dealing with shared libraries.
14930 * Makefile.in: Remove HLDFLAGS and HLDENV.
14931 * configure: Regenerated.
14932
c8b8a898
AC
149332003-01-04 Andrew Cagney <ac131313@redhat.com>
14934
14935 * frame.c (deprecated_frame_xmalloc): New function.
14936 (deprecated_set_frame_saved_regs_hack): New function.
14937 (deprecated_set_frame_extra_info_hack): New function.
14938 * frame.h (deprecated_frame_xmalloc): Declare.
14939 (deprecated_set_frame_saved_regs_hack): Declare.
14940 (deprecated_set_frame_extra_info_hack): Declare.
14941
14abd0fb
MK
149422003-01-04 Mark Kettenis <kettenis@gnu.org>
14943
8ee53726
MK
14944 * configure.in: Move code that provides the --enable-gdbtk option
14945 right after the code that handles the --enable-tui option, and
14946 polish it somewhat.
14947 * configure: Regenerated.
14948
14abd0fb
MK
14949 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14950 AC_CHECK_FUNCS and remove the old check for pread64.
14951 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14952 * acconfig.h (_GNU_SOURCE): Add.
14953 (HAVE_PREAD64): Remove.
14954 * configure, aclocal.m4, config.in: Regenerated.
14955
b2fb4676
AC
149562003-01-03 Andrew Cagney <ac131313@redhat.com>
14957
14958 * alpha-tdep.c: Use get_frame_saved_regs.
14959 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14960 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14961 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14962 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14963 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14964
8dcde887
MK
149652003-01-03 Mark Kettenis <kettenis@gnu.org>
14966
14967 * configure.in: Remove all use of the SUBDIRS variable; add
14968 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14969 code providing the --enable-multi-ice option, and move it right in
14970 front of the code that checks whether gdbserver is supported.
14971 Polish that too.
14972 * configure: Regenerated.
14973 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14974 @SUBDIRS@.
14975
8ccd593b
AC
149762003-01-03 Andrew Cagney <cagney@redhat.com>
14977
14978 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14979 * avr-tdep.c, cris-tdep.c: Ditto.
14980 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14981 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14982
91151a06
MK
149832003-01-03 Mark Kettenis <kettenis@gnu.org>
14984
14985 * configure.in: Remove --enable-netrom option.
14986 * configure: Regenerated.
14987
8fe84d01
MK
149882003-01-03 Mark Kettenis <kettenis@gnu.org>
14989
14990 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14991 declaration for `struct re_pattern_buffer' instead.
14992 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14993
f0394be6
JB
149942003-01-03 J. Brobecker <brobecker@gnat.com>
14995
14996 * mdebugread.c (parse_symbol): Count until the stEnd matching
14997 the structure name.
14998
27e9bf90
MK
149992003-01-02 Mark Kettenis <kettenis@gnu.org>
15000
93d331ba
MK
15001 * configure.in: Remove --with-cpu option.
15002 subscripts. Remove evil changequotes here.
15003 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15004 * config.in, configure: Regenerated.
8ffd9b1b 15005
27e9bf90
MK
15006 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15007 * configure.in: Cleanup section that sources GDB and BFD configure
15008 subscripts. Remove evil changequotes here.
15009 * config.in, configure: Regenerated.
15010
50abf9e5
AC
150112003-01-02 Andrew Cagney <ac131313@redhat.com>
15012
15013 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15014 frame accessor methods.
15015 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15016 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15017 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15018 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15019 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15020 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15021 * z8k-tdep.c: Ditto.
8ffd9b1b 15022
287c1a40
MK
150232003-01-02 Mark Kettenis <kettenis@gnu.org>
15024
f5dbc56d
MK
15025 * configure.in: Remove UI_OUT configuration code.
15026 * ada-lang.c: Update assuming UI_OUT is always true.
15027 * Makefile.in (UIOUT_CFLAGS): Remove.
15028 * configure: Regenerated.
15029 * TODO: Remove blurb about elimination of -DUI_OUT.
15030
627af7ea
MK
15031 * configure.in: Move code that provides the --enable-gdbcli,
15032 --enable-gdbmi options right before the code that handles the
15033 --enable-tui option. Polish a bit.
15034 * configure: Regenerated.
15035
06825bd1
MK
15036 * configure.in: Rewrite check for GNU regex and the
15037 --without-included regex option, and move it into the "Checks for
15038 library functions" section. This makes us use the system regex
15039 again by default on systems with version 2 of the GNU C library.
15040 This was apparently broken.
15041 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15042 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15043 * config.in, configure: Regenerated.
15044
287c1a40
MK
15045 * configure.in: Move code that provides the --enable-tui option
15046 before the "Checks for libraries" section. Polish the code
15047 somewhat and set need_curses to yes if we build the TUI. Rewrite
15048 code that looks for a library providing termcap functionality to
15049 match more closely what's done in the Readline library, and move
15050 it into to the "Checks for libraries" section.
15051 * configure: Regenerated.
15052 * Makefile.in (TERMCAP): Remove variable.
15053 * config/i386/go32.mh (TERMCAP): Remove variable.
15054
684e56bf
AC
150552003-01-02 Andrew Cagney <ac131313@redhat.com>
15056
15057 * MAINTAINERS: Mention gdb_mbuild.sh.
15058 * gdb_mbuild.sh: Rewrite.
15059
e1ea1d75
MK
150602003-01-02 Mark Kettenis <kettenis@gnu.org>
15061
15062 * configure.in: Fix typo in last change.
15063 * config.in, configure: Regenerated.
15064
1b831c93
AC
150652003-01-02 Andrew Cagney <ac131313@redhat.com>
15066
15067 * valarith.c (value_binop): Delete obsolete code and comments.
15068 * configure.host: Ditto.
15069 * buildsym.h (make_blockvector): Ditto.
15070 * buildsym.c (make_blockvector): Ditto.
15071 * defs.h (enum language): Ditto.
15072 (chill_demangle): Ditto.
15073 * elfread.c (elf_symtab_read): Ditto.
15074 * dwarfread.c (CHILL_PRODUCER): Ditto.
15075 (set_cu_language): Ditto.
15076 (handle_producer): Ditto.
15077 * expprint.c (print_subexp): Ditto.
15078 * gdbtypes.c (chill_varying_type): Ditto.
15079 * gdbtypes.h (builtin_type_chill_bool): Ditto.
15080 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15081 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15082 (chill_varying_type): Ditto.
15083 * language.h (_LANG_chill): Ditto.
15084 * language.c (binop_result_type, integral_type): Ditto.
15085 (character_type, string_type, structured_type): Ditto.
15086 (lang_bool_type, binop_type_check): Ditto.
15087 * stabsread.h (os9k_stabs): Ditto.
15088 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15089 (define_symbol, read_type, read_struct_fields): Ditto.
15090 (read_array_type, read_enum_type, read_huge_number): Ditto.
15091 (read_range_type, start_stabs): Ditto.
15092 * symfile.c (init_filename_language_table): Ditto.
15093 (add_psymbol_with_dem_name_to_list): Ditto.
15094 * symtab.c (symbol_init_language_specific): Ditto.
15095 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15096 * symtab.h (struct general_symbol_info): Ditto.
15097 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15098 * typeprint.c (typedef_print): Ditto.
15099 * utils.c (fprintf_symbol_filtered): Ditto.
15100 * valops.c (value_cast, search_struct_field, value_slice): Delete
15101 obsolete code.
15102 (varying_to_slice): Delete function.
15103 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15104 (varying_to_slice): Delete declaration.
15105 * MAINTAINERS: Update.
15106
8bb2c122
MK
151072003-01-02 Mark Kettenis <kettenis@gnu.org>
15108
97bf5e38
MK
15109 * configure.in: Reorganize "Checks for library functions section"
15110 a bit. Remove check for `btowc' and `isascii' functions.
15111 * configure: Regenerated.
15112
5ee754fc
MK
15113 * acconfig.h (_MSE_INT_H): Remove.
15114 * configure.in: Create "Checks for header files" section, and move
15115 appropriate tests there. Don't check for objlist.h, wchar.h,
15116 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
15117 misdetection fix. Also add "Checks for types", "Checks for
15118 compiler characteristics" and "Checks for library functions"
15119 sections.
15120 * config.in, configure: Regenerated.
15121
8bb2c122
MK
15122 * configure.in: Create "Checks for programs" section, and move
15123 appropriate tests there.
15124
9a156167
MK
151252003-01-01 Mark Kettenis <kettenis@gnu.org>
15126
15127 * configure.in: Create "Checks for libraries" section, and move
15128 appropriate tests there. Cleanup check for wctype in libw. Use
15129 AC_SEARCH_LIBS to see whether we need libsocket.
15130 * configure: Regenerated.
15131
a80e2bcb 15132For older changes see ChangeLog-2002
c906108c
SS
15133\f
15134Local Variables:
15135mode: change-log
15136left-margin: 8
15137fill-column: 74
15138version-control: never
15139End:
This page took 1.904649 seconds and 4 git commands to generate.