]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
2004-11-09 Andrew Cagney <cagney@gnu.org>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-09 Andrew Cagney <cagney@gnu.org>
2
3 * values.c: Rename to ...
4 * value.c: ..., new file.
5 * Makefile.in: Update.
6
7 2004-11-09 Daniel Jacobowitz <dan@debian.org>
8
9 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
10 size.
11
12 2004-11-09 Andrew Cagney <cagney@gnu.org>
13
14 * TODO: Delete.
15
16 * value.h (struct value): Delete field bfd_section.
17 (VALUE_BFD_SECTION): Delete macro.
18 (COERCE_REF): Update.
19 (value_at, value_at_lazy): Delete asection parameter.
20 * printcmd.c (print_formatted, x_command): Update.
21 (do_examine): Delete asection parameter.
22 (next_section): Delete variable.
23 * valops.c (value_cast, value_at, value_at_lazy)
24 (value_coerce_function, value_addr, value_ind, value_string)
25 (find_rt_vbase_offset, value_full_object): Update.
26 * hpacc-abi.c (hpacc_virtual_fn_field)
27 (hpacc_value_rtti_type): Update.
28 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
29 (gnuv3_baseclass_offset): Update.
30 * f-valprint.c (f_val_print): Update.
31 * c-valprint.c (c_val_print): Update.
32 * p-valprint.c (pascal_val_print): Update.
33 * jv-valprint.c (java_value_print): Update.
34 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
35 * ada-lang.c (ada_value_primitive_packed_val)
36 (ada_evaluate_subexp): Update.
37 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
38 * expprint.c (print_subexp_standard): Update.
39 * infcall.c (call_function_by_hand): Update.
40 * valarith.c (value_add): Update.
41 * eval.c (evaluate_subexp_standard): Update.
42 * values.c (allocate_value, value_copy, value_static_field): Update.
43 * findvar.c (read_var_value, locate_var_value): Update.
44
45 2004-11-09 Andrew Cagney <cagney@gnu.org>
46
47 * i386-linux-tdep.c: Include "dwarf2-frame.h".
48 * Makefile.in: Update all dependencies.
49
50 2004-11-08 Andrew Cagney <cagney@gnu.org>
51
52 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
53 (sentinel_frame_unwinder): Add the prev_pc method.
54 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
55 available. Do not handle the sentinel-frame case.
56 * frame-unwind.h (frame_prev_register_ftype): Define.
57 (struct frame_unwind): Add prev_pc;
58
59 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
60
61 * configure.in: Check for ncurses/term.h.
62 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
63 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
64 * tui/tui.c: Don't include term.h.
65 * configure, config.in: Rebuilt.
66
67 2004-11-08 Mark Kettenis <kettenis@gnu.org>
68
69 * m68kbsd-nat.c: Include "inf-ptrace.h".
70 (_initialize_m68kbsd_nat): Fix pasto.
71 * Makefile.in (m68kbsd-nat.o): Update dependencies.
72
73 2004-11-08 Randolph Chung <tausq@debian.org>
74
75 * infrun.c (debug_infrun): New variable.
76 (resume, proceed, wait_for_inferior): Annotate with debug messages.
77 (handle_inferior_event, keep_going): Likewise.
78 (_initialize_infrun): Register "set debug infrun" command.
79
80 2004-11-08 Andreas Schwab <schwab@suse.de>
81
82 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
83 PTRACE_EVENT_VFORKDONE.
84 (child_follow_fork): Adjust.
85
86 2004-11-08 Andrew Cagney <cagney@gnu.org>
87
88 * README: Refer to 6.3, not 6.2, update directory listing droppng
89 references to intl/ and mmalloc/.
90 * PROBLEMS: Refer to 6.3 not 6.2.
91
92 * PROBLEMS: Delete no-longer applicable problems.
93
94 2004-11-07 Andrew Cagney <cagney@redhat.com>
95 Daniel Jacobowitz <dan@debian.org>
96 Roland McGrath <roland@redhat.com>
97
98 * Makefile.in (symfile-mem.o): Update dependencies.
99 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
100 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
101 * inf-ptrace.c (inf_ptrace_attach): Call
102 observer_notify_inferior_created.
103 * inftarg.c (child_attach): Likewise.
104 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
105 (symbol_file_add_from_memory): Take NAME argument. Use it for
106 the new BFD's filename.
107 (add_symbol_file_from_memory_command): Update call to
108 symbol_file_add_from_memory.
109 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
110 (symbol_file_add_from_memory_wrapper): New.
111 (_initialize_symfile_mem): Register add_vsyscall_page as an
112 inferior_created observer.
113
114 2004-11-07 Mark Kettenis <kettenis@gnu.org>
115
116 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
117 fetch_inferior_registers. Make static.
118 (m68kbsd_store_inferior_registers): Rename from
119 store_inferior_registers. Make static.
120 (_initialize_m68kbsd_nat): Construct and add target vector.
121 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
122 inftarg.o. Add inf-ptrace.o.
123 (NAT_FILE): Set to tm-solib.h.
124 (LOADLIBES): New variable.
125 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
126 inftarg.o. Add inf-ptrace.o.
127 (NAT_FILE): Delete variable.
128 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
129 inftarg.o. Add inf-ptrace.o.
130 (NAT_FILE): Set to tm-solib.h.
131 * config/m68k/nm-nbsdaout.h: Remove file.
132
133 2004-11-07 Daniel Jacobowitz <dan@debian.org>
134
135 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
136 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
137 (dwarf2_signal_frame_unwind): New.
138 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
139 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
140
141 2004-11-07 Mark Kettenis <kettenis@gnu.org>
142
143 * Makefile.in (mips64obsd-tdep.o): Fix typo.
144
145 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
146 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
147 to only include the structure members we actually need.
148 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
149 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
150 only include the structure members we actually need.
151 (mipsnbsd_init_abi): Update.
152
153 * mips64obsd-nat.c: Include "mips-tdep.h".
154 (MIPS64OBSD_NUM_REGS): Remove define.
155 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
156 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
157 floating-point registers correctly.
158 * Makefile.in (mips64obsd-nat.o): Update dependencies.
159
160 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
161 "gdb_assert.h".
162 (mips64obsd_sigframe_init): New function.
163 (mips64obsd_sigframe): New variable.
164 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
165 unwinder.
166 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
167
168 2004-11-06 Joel Brobecker <brobecker@gnat.com>
169
170 * alpha-mdebug-tdep.c: #include mdebugread.h.
171 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
172 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
173
174 2004-11-05 Andrew Cagney <cagney@gnu.org>
175
176 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
177 CFI and the init_reg method leave the register unspecified.
178 Include the register name in the "Incomplete CFI data" complaint.
179 Supress leading zeros in the address.
180
181 2004-11-05 Mark Kettenis <kettenis@gnu.org>
182
183 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
184 skipping a personality routine in a CIE augmentation.
185
186 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
187
188 * defs.h (fatal, vfatal): New function prototypes.
189 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
190 via catch_errors.
191 (backtrace_command): Change to call backtrace_command_stub via
192 catch_errors instead of calling backtrace_command_1 directly.
193 (backtrace_full_command): Ditto.
194 * utils.c (error_stream_1): New static function.
195 (verror): Change to call error_stream_1 instead of error_stream.
196 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
197 (vfatal, fatal): New functions.
198
199 2004-11-05 Andrew Cagney <cagney@gnu.org>
200
201 * stack.c (parse_frame_specification_1): Clear selected_frame_p
202 when not using selected frame.
203
204 2004-11-05 Mark Kettenis <kettenis@jive.nl>
205
206 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
207 personality routine in a CIE augmentation.
208
209 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
210
211 * stack.c (set_current_sal_from_frame): New function.
212 (print_args_stub): Use it.
213 (print_frame_info): Don't set sal here.
214
215 2004-11-04 Mark Kettenis <kettenis@gnu.org>
216
217 * dwarf2-frame.c (read_encoded_value): Change type of third
218 argument to `unsigned char *'. Add support for LEB128 encodings.
219
220 2004-11-04 Jim Blandy <jimb@redhat.com>
221
222 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
223 prevent cross-objfile references.
224 (make_cv_type): Doc fix. Don't create cross-objfile references,
225 even for stub types.
226 (replace_type): Add assertion to prevent cross-objfile references.
227 (check_typedef): Never resolve a stub type by copying over a type
228 from another file.
229
230 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
231
232 * Makefile.in (m32r-tdep.o): Update dependencies.
233 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
234 ABI-specific overrides.
235
236 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
237
238 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
239 unnecessary parallel execution bit.
240 (m32r_memory_remove_breakpoint): Ditto.
241 (m32r_breakpoint_from_pc): Update.
242
243 2004-11-03 Randolph Chung <tausq@debian.org>
244
245 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
246 frame_func_unwind to locate the unwind entry.
247 (hppa_frame_this_id): Likewise.
248
249 2004-11-03 Andrew Cagney <cagney@gnu.org>
250
251 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
252 packet, obsolete configurations, end-of-life deprecated_registers.
253
254 2004-11-02 Mark Kettenis <kettenis@gnu.org>
255
256 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
257 encodings as well as unsigned encodings.
258
259 2004-11-02 Andrew Cagney <cagney@gnu.org>
260
261 * value.h (COERCE_VARYING_ARRAY): Delete.
262 * valops.c (value_cast, value_slice): Delete use.
263 * valarith.c (value_subscript, value_concat): Delete use.
264
265 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
266
267 * NEWS: GDB understands GNAT Ada.
268
269 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
270
271 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
272 (amd64-sol2-tdep.o): Add dependencies.
273 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
274 config/i386/sol2-64.mt: New files.
275 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
276 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
277 (supply_gregset): Correct order of arguments to
278 amd64_supply_native_gregset.
279 (fill_gregset): Correct order of arguments to
280 amd64_collect_native_gregset.
281 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
282 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
283 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
284 for definition of NEW_PROC_API.
285 * configure: Regenerate.
286
287 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
288
289 * MAINTAINERS (Write After Approval): Add myself.
290
291 2004-11-01 Andrew Cagney <cagney@gnu.org>
292
293 * configure.tgt: Mark d10v-*-* as obsolete.
294 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
295
296 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
297
298 * values.c (modify_field): Correct handling of bit-fields that
299 don't fit in 32 bits. Use unsigned operations throughout and
300 simplify the code a bit. Document preconditions.
301
302 2004-10-31 Andrew Cagney <cagney@gnu.org>
303
304 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
305 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
306 (in_plt_section): Delete.
307
308 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
309 (mips_gdbarch_init): Do not set same.
310
311 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
312 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
313
314 * gdbarch.sh (in_solib_call_trampoline): Delete.
315 * gdbarch.h, gdbarch.c: Re-generate.
316
317 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
318 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
319 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
320 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
321 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
322
323 2004-10-31 Mark Kettenis <kettenis@gnu.org>
324
325 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
326 (mipsnbsd_fetch_inferior_registers): Rename from
327 fetch_inferior_registers. Make static.
328 (mipsnbsd_store_inferior_registers): Rename from
329 store_inferior_registers. Make static.
330 (_initialize_mipsnbsd_nat): New function and prototype.
331 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
332 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
333 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
334 inf-ptrace.o.
335
336 2004-10-31 Andrew Cagney <cagney@gnu.org>
337
338 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
339 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
340 delete corresponding unused function.
341 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
342 in_solib_call_trampoline.
343 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
344 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
345 * config/mips/tm-nbsd.h: Ditto.
346 * config/arm/tm-linux.h: Ditto.
347 * config/mips/tm-linux.h: Ditto.
348
349 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
350 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
351 in_solib_call_trampoline, delete corresponding unused function.
352 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
353 (vaxnbsd_aout_init_abi): Ditto.
354 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
355 (sparc32nbsd_aout_init_abi): Ditto.
356 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
357 (ppc_linux_init_abi): Ditto.
358 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
359 (ns32knbsd_init_abi_aout): Ditto.
360 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
361 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
362 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
363 (m68kbsd_aout_init_abi): Ditto.
364 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
365 (i386_cygwin_init_abi): Ditto.
366 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
367 (i386bsd_init_abi): Ditto.
368
369 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
370 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
371 isn't used by this architecture.
372 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
373 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
374 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
375 * s390-tdep.c (s390_gdbarch_init): Ditto.
376 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
377 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
378 * i386-tdep.c (i386_svr4_init_abi): Ditto.
379 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
380 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
381 * amd64-tdep.c (amd64_init_abi): Ditto.
382
383 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
384 in_solib_call_trampoline to its default value of
385 generic_in_solib_call_trampoline.
386 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
387 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
388 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
389 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
390 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
391 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
392
393 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
394
395 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
396
397 * config/mips/tm-mips.h: Delete file.
398 * remote-mips.c: Delete tm-mips.h from comment.
399 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
400 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
401 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
402 * config/mips/tm-linux.h: Don't include tm-mips.h.
403 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
404 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
405 * config/mips/tm-wince.h: Don't include.
406
407 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
408 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
409 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
410 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
411
412 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
413 * mdebugread.c (ecoff_relocate_efi): Delete function.
414 * objfiles.c (objfile_relocate): Delete #ifdef
415 MDEBUG_EFI_SYMBOL_NAME code.
416
417 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
418 Andrew Cagney <cagney@gnu.org>
419
420 * gdbarch.sh (single_step_through_delay): Add.
421 * gdbarch.h, gdbarch.c: Re-generate.
422 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
423 (mips_step_skips_delay): Delete.
424 * mips-tdep.c (mips_single_step_through_delay): Replace
425 mips_step_skips_delay.
426 (mips_gdbarch_init): Set single_step_through_delay.
427 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
428
429 2004-10-31 Mark Kettenis <kettenis@gnu.org>
430
431 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
432 from TRAMP_FRAME frame type.
433
434 2004-10-31 Andrew Cagney <cagney@gnu.org>
435
436 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
437
438 * mips-tdep.c (mips_ignore_helper): Delete.
439 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
440 * infrun.c (handle_inferior_event): Delete #ifdef
441 DEPRECATED_IGNORE_HELPER_CALL code.
442
443 * config/mips/tm-mips.h (RA_REGNUM): Delete.
444
445 2004-10-31 Mark Kettenis <kettenis@gnu.org>
446
447 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
448 (fill_fpregset): Do not compile for 64-bit systems.
449 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
450 * Makefile.in (i386-sol2-nat.o): Update dependencies.
451 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
452
453 2004-10-30 Andrew Cagney <cagney@gnu.org>
454
455 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
456 (struct mdebug_extra_func_info): Define.
457 * config/alpha/tm-alpha.h: Delete same.
458 * config/mips/tm-mips.h: Delete same.
459 * mdebugread.c: Delete same.
460 * Makefile.in: Update dependencies.
461 * mips-mdebug-tdep.c: Include "mdebugread.h".
462
463 * objfiles.c: Include "mdebugread.h".
464 * mdebugread.c: Include "mdebugread.h".
465 (ecoff_relocate_cfi): Delete.
466 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
467 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
468 * mdebugread.h (ecoff_relocate_efi): New file.
469 * Makefile.in: Update dependencies.
470
471 * mips-tdep.c (struct frame_extra_info): Delete.
472 (temp_proc_desc): Delete.
473
474 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
475 MIPS_EFI_SYMBOL_NAME.
476 (mips_extra_func_info_t, mips_extra_func_info): Delete.
477 (struct mdebug_extra_func_info): Replace struct
478 alpha_extra_func_info and alpha_extra_func_info_t.
479 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
480 MIPS_EFI_SYMBOL_NAME.
481 (struct mdebug_extra_func_info): Replace struct
482 alpha_extra_func_info and alpha_extra_func_info_t.
483 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
484 * mdebugread.c, alpha-mdebug-tdep.c:
485
486 Suggested by Mark Kettenis.
487 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
488 fields frame_adjust and high_addr.
489 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
490 (non_heuristic_proc_desc): Delete references.
491
492 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
493 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
494 * mips-tdep.c: Update.
495
496 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
497 (MIPS_LAST_EMBED_REGNUM): Add.
498 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
499 (LAST_EMBED_REGNUM): Delete.
500 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
501
502 * config/mips/tm-mips.h (PS_REGNUM): Delete.
503 * mips-tdep.h (MIPS_PS_REGNUM): Add.
504 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
505 * mips-linux-nat.c: Update.
506
507 * mips-tdep.h: Add comments on registers.
508 (MIPS_UNUSED_REGNUM): Define.
509 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
510 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
511 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
512 * mips-linux-nat.c, remote-mips.c: Update.
513
514 * config/mips/tm-mips.h (t_insn): Delete.
515 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
516 Replace t_insn with ULONGEST.
517
518 2004-10-30 Mark Kettenis <kettenis@gnu.org>
519
520 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
521 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
522 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
523 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
524 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
525 (mipsnbsd_core_osabi_sniffer): New function.
526 (mipsnbsd_init_abi): Set regset_from_core_section.
527 (_initialize_mipsnbsd_tdep): Remove calls to
528 deprecated_add_core_fns.
529 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
530 (mipsnbsd_regset_from_core_section): New functions.
531 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
532 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
533
534 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
535 Remove optimization for DEPRECATED_FP_REGNUM.
536
537 2004-10-30 Andrew Cagney <cagney@gnu.org>
538
539 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
540 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
541 (alpha_setup_arbitrary_frame): Delete.
542 * mips-tdep.c (setup_arbitrary_frame): Delete.
543 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
544 (setup_arbitrary_frame): Delete.
545 * stack.c (parse_frame_specification_1): When specified, call
546 create_new_frame with two parameters. Delete #ifdef
547 SETUP_ARBITRARY_FRAME.
548
549 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
550 (MIPS_INSTLEN): Delete.
551 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
552 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
553 * remote-mips.c, mips-tdep.c: Update.
554
555 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
556 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
557 * mips-tdep.c (mips_mdebug_frame_cache)
558 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
559 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
560 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
561 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
562 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
563 (mips_gdbarch_init): Do not append mdebug sniffers.
564 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
565 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
566 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
567 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
568 * Makefile.in: Update dependencies.
569
570 * mips-tdep.h (mips_abi_regsize): Declare.
571 * mips-tdep.c (mips_abi_regsize): Make non-static.
572
573 * mips-tdep.c (gdb_print_insn_mips): Simplify.
574 (make_mips16_addr): Delete.
575
576 2004-10-30 Mark Kettenis <kettenis@gnu.org>
577
578 * i386-sol2-nat.c: New file.
579 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
580 i386-sol2-tdep.c.
581 (i386-sol2-nat.o): Update dependencies.
582 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
583 i386-sol2-nat.o.
584
585 2004-10-30 Andrew Cagney <cagney@gnu.org>
586
587 Total breakage identified by Joel Brobecker.
588 * mips-tdep.c (after_prologue): Delete.
589 (mips_skip_prologue): Use skip_prologue_using_sal.
590 (heuristic_proc_desc): Delete, unused.
591
592 2004-10-30 Mark Kettenis <kettenis@gnu.org>
593
594 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
595 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
596 Cleanup coding style.
597
598 2004-10-30 Andrew Cagney <cagney@gnu.org>
599
600 * mips-tdep.h (mips_pc_is_mips16): Declare.
601 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
602 non-static. Update calls.
603
604 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
605 * command.h (add_setshow_enum_cmd): Declare.
606 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
607
608 * mips-tdep.c (_initialize_mips_tdep): Use
609 add_setshow_zinteger_cmd.
610
611 * mips-tdep.c (mips_eabi_extract_return_value)
612 (mips_o64_extract_return_value, mips_o64_store_return_value)
613 (return_value_location, mips_eabi_reg_struct_has_addr)
614 (mips_eabi_use_struct_convention)
615 (mips_eabi_store_return_value): Delete.
616 (mips_eabi_store_return_value): New function.
617 (mips_eabi_return_value): New function.
618 (mips_gdbarch_init): For O64 and EABI, delete
619 extract_return_value, store_return_value, use_struct_convention
620 and reg_struct_has_addr, add return_value.
621
622 * mips-tdep.c (read_signed_register): Use
623 regcache_cooked_read_signed.
624
625 2004-10-30 Mark Kettenis <kettenis@gnu.org>
626
627 * mipsread.c: Cleanup coding style.
628 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
629 (mipscoff_symfile_finish): Remove prototypes.
630
631 2004-10-29 Mark Kettenis <kettenis@gnu.org>
632
633 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
634 (mips_mdebug_frame_cache, mips16_scan_prologue)
635 (mips32_scan_prologue, mips_stub_frame_cache)
636 (heuristic_proc_start, heuristic_proc_desc)
637 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
638 (mips_n32n64_return_value, mips_o32_push_dummy_call)
639 (mips_o32_return_value, mips_o64_push_dummy_call)
640 (mips_step_skips_delay, mips_skip_trampoline_code)
641 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
642 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
643 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
644 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
645 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
646 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
647 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
648 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
649 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
650 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
651 ZERO_REGNUM.
652 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
653 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
654 ZERO_REGNUM.
655 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
656 A0_REGNUM.
657 * mipsnbsd-nat.c: Include "mips-tdep.h".
658 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
659 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
660
661 2004-10-29 Andrew Cagney <cagney@gnu.org>
662
663 * stack.c (parse_frame_specification_1): New function based on
664 parse_frame_specification. Add message and selected_frame_p
665 paramters. Truely always return non-NULL.
666 (parse_frame_specification): Call parse_frame_specification_1.
667 (frame_info): Update. Eliminate target_has_stack check.
668 (select_frame_command): Update.
669
670 2004-10-29 Andrew Cagney <cagney@gnu.org>
671
672 * frame.h (get_selected_frame): Add message parameter.
673 * frame.c (get_selected_frame): Add and use message parameter.
674 * stack.c (current_frame_command, return_command, locals_info)
675 (catch_info, args_info, up_silently_base, down_silently_base): Use
676 get_selected_frame with an explicit message.
677 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
678 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
679 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
680 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
681 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
682 * breakpoint.c: Update.
683
684 2004-10-29 Andrew Cagney <cagney@gnu.org>
685
686 * trad-frame.c (trad_frame_get_prev_register): Use
687 frame_unwind_register instead of frame_register_unwind, do not
688 recurse the register's location.
689 * xstormy16-tdep.c (xstormy16_frame_prev_register):
690 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
691 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
692 * sh-tdep.c (sh_frame_prev_register): Ditto.
693 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
694 * i386-tdep.c (i386_frame_prev_register): Ditto.
695 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
696 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
697
698 2004-10-28 Mark Kettenis <kettenis@jive.nl>
699
700 * proc-events.c: Fix several coding-style issues. Consistently
701 use #ifdef instead of #if defined().
702 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
703 ARRAY_SIZE.
704 (_initialize_proc_events): New prototype.
705
706 * proc-why.c: Fix several coding-style issues.
707 (proc_prettyfprint_why): Use ARRAY_SIZE.
708
709 2004-10-27 Jim Blandy <jimb@redhat.com>
710
711 * remote.c (fetch_register_using_p): Construct 'p' packet in a
712 manner independent of the host byte order.
713
714 2004-10-27 Mark Kettenis <kettenis@gnu.org>
715
716 * mips-tdep.c (id_delayed): Remove prototype.
717
718 2004-10-26 Mark Kettenis <kettenis@gnu.org>
719
720 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
721 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
722 to enum with register numbers.
723 (enum mips_insn_size): New enum.
724
725 2004-10-26 Andrew Cagney <cagney@gnu.org>
726
727 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
728 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
729 (mips_gdbarch_init): Update.
730 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
731
732 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
733 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
734 IN_SOLIB_RETURN_TRAMPOLINE.
735 * mips-tdep.c (mips_dump_tdep): Do not print
736 IN_SOLIB_RETURN_TRAMPOLINE.
737 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
738 (mips_gdbarch_init): Update.
739
740 * mips-tdep.h (mips_software_single_step): Move to here ...
741 * config/mips/tm-mips.h: ... from here.
742 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
743 (SOFTWARE_SINGLE_STEP): Delete.
744 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
745
746 2004-10-25 Andrew Cagney <cagney@gnu.org>
747
748 * NEWS: Add Changes since GDB 6.3 section.
749
750 2004-10-23 Andreas Schwab <schwab@suse.de>
751
752 * ada-lang.c (grow_vect): Return the new array instead of
753 expecting pointer to pointer to avoid violation of aliasing rules.
754 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
755
756 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
757
758 * s390-tdep.c (enum pv_boolean): Remove.
759 (pv_is_array_ref): Remove.
760 (s390_on_stack): Remove.
761 (S390_NUM_SPILL_SLOTS): Remove.
762 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
763 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
764 (s390_store): Track all stores of orginal incoming registers to the
765 stack constant offsets relative to the CFA, instead of only tracking
766 stores into specific spill slots.
767 (s390_load): Likewise.
768 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
769 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
770 defined as call-saved by the ABI.
771 (s390_push_dummy_call): Use bottom of dummy call argument save area
772 as return value, not the top. Do not store to the called function's
773 register save area.
774 (s390_unwind_dummy_id): Adapt accordingly.
775
776 2004-10-23 Andrew Cagney <cagney@gnu.org>
777
778 * objfiles.h (struct objfile): Rename obj_private to
779 deprecated_obj_private, sym_private to deprecated_sym_private, and
780 sym_stab_info to deprecated_sym_stab_info.
781 * gdb-stabs.h: Update.
782 * elfread.c: Update.
783 * dbxread.c: Update.
784 * coffread.c: Update.
785 * xcoffread.c: Update.
786 * symfile.c: Update.
787 * somread.c: Update.
788 * nlmread.c: Update.
789 * mdebugread.c: Update.
790 * hpread.c: Update.
791 * coffread.c: Update.
792
793 2004-10-23 Mark Kettenis <kettenis@gnu.org>
794
795 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
796 * configure.host: Add mips64*-*-openbsd*.
797 * configure.tgt: Add mips64*-*-openbsd*.
798 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
799 mips64obsd-tdep.c.
800 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
801 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
802
803 2004-10-21 Joel Brobecker <brobecker@gnat.com>
804
805 * symtab.c (symbol_search_name): Minor reformatting.
806
807 2004-10-20 Joel Brobecker <brobecker@gnat.com>
808
809 * symtab.h: Fix typo in comment.
810
811 2004-10-19 Mark Kettenis <kettenis@gnu.org>
812
813 * dwarf2read.c (struct comp_unit_head): Fix coding style.
814 (dwarf_decode_line_header): Likewise.
815
816 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
817
818 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
819
820 2004-10-19 Andrew Cagney <cagney@gnu.org>
821
822 GDB 6.3 branch created.
823 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
824
825 2004-10-15 Joel Brobecker <brobecker@gnat.com>
826
827 * dwarf2read.c (set_cu_language): Set language to Ada for
828 DW_LANG_Ada83 and DW_LANG_Ada95.
829
830 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
831
832 From Andreas Schwab <schwab@suse.de>:
833 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
834 for xmalloc and xrealloc.
835
836 2004-10-15 Andrew Cagney <cagney@gnu.org>
837
838 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
839 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
840 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
841 Update dependencies.
842
843 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
844
845 * ada-lang.c (ada_lookup_symbol): Correct comment.
846 (ada_evaluate_subexp): Change error message for
847 OP_FUNCALL case so as not to indicate an internal error.
848
849 2004-10-15 Joel Brobecker <brobecker@gnat.com>
850
851 Committed by Paul Hilfinger.
852 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
853 type sizes in XVE/XVU types, and emit a warning when that happens,
854 instead of rounding up the size of the resulting type.
855 Some minor reformatting.
856 (ada_is_aligner_type): Do not consider a type as an aligner type
857 if there is a corresponding XVS type as well.
858 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
859 have several levels of pointer indirection to the array.
860
861 2004-10-15 Jerome Guitton <guitton@gnat.com>
862
863 Committed by Paul Hilfinger.
864 * ada-lang.c (check_size): New function.
865 (coerce_unspec_val_to_type): call check_size to make sure
866 that the object size is reasonable.
867 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
868 Implements the case when we get a reference when we evaluate
869 the expression of one of the bounds of the slice.
870 (ada_value_struct_elt): when a packed array field is
871 a reference, use ada_coerce_ref to dereference it; use
872 ada_value_ind only if it is a pointer.
873
874 2004-10-15 Joel Brobecker <brobecker@gnat.com>
875
876 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
877 a bit to avoid the necessity of an advance declaration. Remove
878 declaration.
879 (set_reg_offset): Move implemenation up.
880 (mips16_get_imm): Likewise.
881 (mips16_scan_prologue): Likewise.
882 (reset_saved_regs): Likewise.
883 (mips32_scan_prologue): Likewise.
884
885 2004-10-14 Joel Brobecker <brobecker@gnat.com>
886
887 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
888 Remove sp as a parameter, compute it internally instead. Move
889 prologue scanning limit from heuristic_proc_desc to here.
890 (mips16_scan_prologue): Likewise.
891 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
892 by call to mips16_scan_prologue.
893 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
894 by call to mips32_scan_prologue.
895 (heuristic_proc_desc): Remove code that's no longer necessary.
896 Update calls to mips16_scan_prologue and mips32_scan_prologue.
897 (mips_skip_prologue): Update calls to mips16_scan_prologue
898 and mips32_scan_prologue.
899
900 2004-10-14 Joel Brobecker <brobecker@gnat.com>
901
902 * mips-tdep.c (mips16_scan_prologue): Merge code from
903 mips16_skip_prologue. Now return the address of the first
904 instruction past the function prologue.
905 (mips16_skip_prologue): Remove, no longer necessary.
906 (mips_skip_prologue): Replace call to mips16_skip_prologue
907 by call to mips16_scan_prologue.
908
909 2004-10-14 Joel Brobecker <brobecker@gnat.com>
910
911 * mips-tdep.c (mips32_scan_prologue): Merge code from
912 mips32_skip_prologue. Now return the address of the first
913 instruction past the function prologue.
914 (mips32_skip_prologue): Remove. No longer necessary.
915 (mips16_skip_prologue): Add parameter end_pc instead of
916 computing it.
917 (mips_skip_prologue): Compute the upper limit for the
918 prologue scanning. Update call to mips16_skip_prologue.
919 Replace call to mips32_skip_prologue by call to
920 mips32_scan_prologue.
921
922 2004-10-14 Mark Kettenis <kettenis@gnu.org>
923
924 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
925 NetBSD system call stubs that store %rp in the ERP slot of the
926 stack frame.
927
928 * source.c: Always define O_BINARY to 0 if not defined already.
929 (openp): Unconditionally use O_BINARY.
930
931 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
932 * event-top.c (gdb_readline2): Likewise.
933
934 2004-10-14 Orjan Friberg <orjanf@axis.com>
935
936 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
937 deprecated_add_core_fns which was removed by mistake.
938
939 2004-10-13 Kevin Buettner <kevinb@redhat.com>
940
941 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
942 references to deprecated_registers[] with equivalent code.
943
944 2004-10-13 Kevin Buettner <kevinb@redhat.com>
945
946 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
947 ``deprecated_registers'' with equivalent code. Use gdb_assert()
948 instead of explicit test and print statement.
949
950 2004-10-12 Mark Kettenis <kettenis@gnu.org>
951
952 * sparc-nat.c: Include "inf-ptrace.h".
953 (sparc_target): New function.
954 * sparc-nat.h: Update copyright year.
955 (sparc_target): New prototype.
956 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
957 (_initialize_sparcnbsd_nat): Construct and add target vector.
958 * sparc64nbsd-nat.c: Include "target.h".
959 (_initialize_sparc64nbsd_nat): Construct and add target vector.
960 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
961 Update dependencies.
962 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
963 inftarg.o, add inf-ptrace.o.
964 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
965 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
966 (NAT_FILE): Set to nm-bsd.h.
967 (LOADLIBES): New variable.
968 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
969 infarg.o, add inf-ptrace.o.
970 * config/sparc/nm-nbsdaout.h: Remove file.
971 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
972 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
973 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
974
975 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
976 "fopen-same.h". Update comment.
977
978 2004-10-11 Mark Kettenis <kettenis@gnu.org>
979
980 * i386gnu-nat.c: Include "gdb_string.h".
981 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
982 registers when the floating-point state isn't initialized.
983 * Makefile.in (i386gnu-nat.o): Update dependencies.
984
985 2004-10-11 David Anderson <davea@sgi.com>
986
987 * regcache.c (regcache_raw_read): Comment was missing "to".
988 Extraneous ' removed.
989 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
990 comment now describes use.
991
992 2004-10-11 Orjan Friberg <orjanf@axis.com>
993
994 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
995 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
996 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
997 (cris_sigtramp_frame_sniffer): New functions.
998 (cris_gdbarch_init): Hook in signal trampoline unwinder.
999 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1000 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1001 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1002 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1003 command.
1004 (cris_version_update): Remove, replace with ...
1005 (set_cris_version): New function.
1006 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1007 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1008 (_initialize_cris_tdep): Remove CRIS mode command.
1009 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1010 cris-fpless-backtrace command.
1011 (cris_scan_prologue): Fix prologue scanning limit.
1012 (cris_register_type): Update to reflect actual registers.
1013 (cris_register_bytes_ok) Remove.
1014 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1015 Remove set_gdbarch_deprecated_register_size,
1016 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1017
1018 2004-10-10 Andrew Cagney <cagney@gnu.org>
1019
1020 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1021 comment.
1022
1023 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1024
1025 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1026
1027 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1028
1029 * mips-tdep.c (mips16_scan_prologue): Renames
1030 mips16_heuristic_proc_desc. Update comment.
1031 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1032 (heuristic_proc_desc): Update calls to the 2 functions above.
1033
1034 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1035
1036 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1037 Update comments. Also immediately return empty cache when the start
1038 address of our function could not be found.
1039 (mips_insn32_frame_cache): Likewise.
1040
1041 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1042
1043 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1044 (mips_insn16_frame_cache): Pass frame cache in call to
1045 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1046 Remove code that became redundant as a consequence.
1047 (mips32_heuristic_proc_desc): No longer compute a fake
1048 procedure descriptor. Compute the full frame cache instead.
1049 Some minor comment reformatting.
1050
1051 2004-10-10 Jim Blandy <jimb@redhat.com>
1052
1053 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1054 reader, tracing bytecode stuff): Remove self.
1055
1056 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1057
1058 * sparc64-linux-tdep.c: Update copyright year. Don't include
1059 "solib-svr4.h".
1060 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1061 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1062 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1063
1064 * sparc-linux-tdep.c: Update copyright year.
1065 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1066 to struct frame_info *. Use safe_frame_unwind_memory instead of
1067 deprecated_read_memory_nobpt.
1068 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1069 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1070 changed signature of sparc_linux_sigtramp_start.
1071 (sparc32_linux_pc_in_sigtramp): Remove function.
1072 (sparc32_linux_sigtramp_p): New function.
1073 (sparc32_linux_sigtramp_frame_sniffer): Use
1074 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1075
1076 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1077 Remove function.
1078 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1079
1080 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1081 (decode_packed_array_type, value_subscript_packed)
1082 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1083 argument in call to lim_warning.
1084
1085 * configure.in: Really disable the TUI if an enhanced curses
1086 library isn't found.
1087 * configure: Regenerate.
1088
1089 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1090
1091 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1092 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1093 * config/i386/nm-nbsdaout.h: Remove file.
1094 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1095 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1096 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1097 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1098 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1099 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1100 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1101 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1102 (ldd, ld_un, ld_2): Remove defines.
1103 * config/i386/nm-obsd.h: Likewise.
1104
1105 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1106
1107 * ada-lex.l: Remove useless rule whose right-context clause
1108 causes unreferenced static function warning for yyrealloc.
1109 (ada_flex_use): Remove the artificial reference to yyrealloc.
1110
1111 2004-10-08 Andrew Cagney <cagney@gnu.org>
1112
1113 * target.h (struct target_ops): Rename to_xfer_memory to
1114 deprecated_xfer_memory.
1115 * target.c: Update.
1116 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1117 * wince.c: Update.
1118 * win32-nat.c: Update.
1119 * v850ice.c: Update.
1120 * uw-thread.c: Update.
1121 * thread-db.c: Update.
1122 * sol-thread.c: Update.
1123 * remote.c: Update.
1124 * remote-vx.c: Update.
1125 * remote-st.c: Update.
1126 * remote-sim.c: Update.
1127 * remote-sds.c: Update.
1128 * remote-rdp.c: Update.
1129 * remote-rdi.c: Update.
1130 * remote-mips.c: Update.
1131 * remote-m32r-sdi.c: Update.
1132 * remote-e7000.c: Update.
1133 * procfs.c: Update.
1134 * ppc-bdm.c: Update.
1135 * nto-procfs.c: Update.
1136 * monitor.c: Update.
1137 * linux-nat.c: Update.
1138 * inftarg.c: Update.
1139 * hpux-thread.c: Update.
1140 * go32-nat.c: Update.
1141 * gnu-nat.c: Update.
1142 * exec.c: Update.
1143 * corelow.c: Update.
1144 * bsd-kvm.c: Update.
1145 * aix-thread.c: Update.
1146
1147 2004-10-08 Andrew Cagney <cagney@gnu.org>
1148
1149 * target.c (debug_target): Move to near start of file.
1150 (target_stopped_data_address_p): Re-org logic, add casts.
1151
1152 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1153
1154 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1155 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1156 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1157 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1158 New defines.
1159
1160 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1161
1162 * target.h (to_stopped_data_address): Change prototype to
1163 take a CORE_ADDR pointer and return an int.
1164 * target.c (update_current_target): Change to_stopped_data_address
1165 to match new prototype.
1166 (debug_to_stopped_data_address): Change appropriately.
1167 * breakpoint.c (bpstat_stop_status): Change call to
1168 target_stopped_data_address to use new prototype.
1169 * frv-tdep.c (frv_have_stopped_data_address): New function.
1170 (frv_stopped_data_address): Change to new prototype and
1171 functionality.
1172 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1173 prototype and functionality.
1174 (ia64_stopped_by_watchpoint): New function.
1175 * i386-nat.c (i386_stopped_data_address): Change to new
1176 prototype and functionality.
1177 (i386_stopped_by_watchpoint): New function.
1178 * remote.c (remote_stopped_data_address): Change to new prototype
1179 and functionality.
1180 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1181 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1182 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1183 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1184 new i386_stopped_by_watchpoint function.
1185 (i386_stopped_by_watchpoint): New prototype.
1186 (i386_stoppped_data_address): Change to new prototype.
1187 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1188 new ia64_stopped_by_watchpoint function.
1189 (ia64_stopped_by_watchpoint): New prototype.
1190 (ia64_stopped_data_address): Ditto.
1191
1192 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1193
1194 * ada-typeprint.c (ada_print_type): Use int_string for printing
1195 modulus of modular type.
1196 * ada-lang.h (ada_modulus): Change return type to unsigned.
1197 * ada-lang.c (ada_language_arch_info): Correct type of
1198 string_char_type.
1199 (ada_modulus): Return unsigned result.
1200 (ada_lookup_symbol): Remove user disambiguation and modify comment
1201 accordingly.
1202
1203 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1204
1205 Committed by Paul Hilfinger.
1206 * ada-lang.c (decode_packed_array): On big-endian targets,
1207 left-justify the value if it comes with a modular type.
1208
1209 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1210
1211 Committed by Paul Hilfinger.
1212 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1213 (is_name_suffix): Add support for "___JM" suffixes.
1214 (ada_check_typedef): Renames ada_completed_type.
1215 Update all users of CHECK_TYPEDEF, check_typedef, and
1216 ada_complete_type to call ada_check_typedef.
1217 * ada-typeprint.c: Likewise.
1218 * ada-valprint.c: Likewise.
1219
1220 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1221
1222 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1223
1224 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1225
1226 * MAINTAINERS: Update e-mail address.
1227
1228 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1229
1230 From Maciej W. Rozycki <macro@mips.com>:
1231 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1232 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1233
1234 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1235
1236 * m32r-tdep.c (decode_prologue): Support functions written
1237 in assembler language. Recognize trap instructions as the
1238 end of prologue.
1239 (m32r_frame_unwind_cache): Ditto.
1240 (m32r_skip_prologue): Extend search limit. Quit analyzing
1241 prologue if pc's location is not readable.
1242
1243 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1244
1245 * Makefile.in (.l.c): Do conversions of names of alloc and free
1246 functions that are done for .y.c files, plus special one
1247 for yy_flex_realloc. Also, correct missing-file tests here.
1248 * ada-lex.l (malloc, free): Remove macros.
1249 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1250 xrealloc.
1251 (ada_flex_use): Dummy definition to remove warnings about unused
1252 functions.
1253 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1254 to suppress warning.
1255
1256 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1257
1258 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1259 RETURN_VALUE.
1260 (sh_return_value_fpu): Ditto for CPUs with FPU.
1261 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1262 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1263 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1264 RETURN_VALUE functions.
1265
1266 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1267
1268 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1269 (sh_pseudo_register_write): Ditto.
1270
1271 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1272
1273 * sh-tdep.c (IS_MACL_STS): New define.
1274 (IS_MOVI20): Ditto.
1275 (IS_MACL_LDS): Ditto.
1276 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1277 instructions in prologue.
1278 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1279 instructions in epilogue.
1280
1281 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1282
1283 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1284 (sh_sh_register_name): Add eight empty register names.
1285 (sh_sh3_register_name): Ditto.
1286 (sh_sh3e_register_name): Ditto.
1287 (sh_sh2e_register_name): Ditto.
1288 (sh_sh2a_register_name): New function, defining SH2A register set.
1289 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1290 in nofpu case.
1291 (sh_sh_dsp_register_name): Add eight empty register names.
1292 (sh_sh3_dsp_register_name): Ditto.
1293 (sh_sh4_register_name): Ditto.
1294 (sh_sh4_nofpu_register_name): Ditto.
1295 (sh_sh4al_dsp_register_name): Ditto.
1296 (sh2a_show_regs): New function.
1297 (sh2a_nofpu_show_regs): New function.
1298 (sh_sh2a_register_type): New function.
1299 (do_bank_register_info): New function.
1300 (sh_print_pseudo_register): Call do_bank_register_info.
1301 Call sh_print_pseudo_register for valid "bank" register.
1302 (sh_sh2a_register_sim_regno): New function.
1303 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1304 Increment pseudo register count by one for all sh variants with
1305 pseudo registers to accomodate pseudo bank register.
1306 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1307 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1308 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1309 Increment pseudo register numbers.
1310
1311 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1312
1313 * dwarf2read.c (read_subroutine_type): Call make_function_type
1314 instead of lookup_function_type.
1315
1316 2004-10-05 Jim Blandy <jimb@redhat.com>
1317
1318 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1319 (Previous change missed some uses.)
1320
1321 2004-10-05 Andrew Cagney <cagney@gnu.org>
1322
1323 * target.h (deprecated_child_ops): Rename child_ops.
1324 * wince.c: Update copyright. Rename child_ops.
1325 * win32-nat.c: Rename child_ops.
1326 * target.c: Rename child_ops.
1327 * rs6000-nat.c: Rename child_ops.
1328 * linux-nat.c: Rename child_ops.
1329 * infttrace.c: Rename child_ops.
1330 * inftarg.c: Rename child_ops.
1331 * infptrace.c: Rename child_ops.
1332 * hppah-nat.c: Update copyright. Rename child_ops.
1333 * hpux-thread.c: Update copyright. Rename child_ops.
1334
1335 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1336
1337 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1338
1339 2004-10-05 Andrew Cagney <cagney@gnu.org>
1340
1341 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1342
1343 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1344
1345 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1346 (die_ref_table): Remove.
1347 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1348 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1349 the usage of this type.
1350 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1351 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1352 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1353 (dwarf2_create_include_psymtab): Update comment.
1354 (find_partial_die): Remove third argument. Remove unreachable call
1355 to error ().
1356 (dwarf2_find_containing_comp_unit): Update comments. Change one
1357 assertion to an error. Remove an unreachable error.
1358 (dwarf2_find_comp_unit): Update comments.
1359 (type_at_offset): Remove dead code.
1360 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1361 (store_in_ref_table): Add CU argument.
1362 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1363 inter-compilation-unit references.
1364 (load_full_comp_unit, process_full_comp_unit): New functions, based
1365 on psymtab_to_symtab_1.
1366 (psymtab_to_symtab_1): Use them.
1367 (dwarf2_add_dependence): New function.
1368 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1369 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1370 (partial_die_parent_scope, guess_structure_name): Update for changes
1371 to find_partial_die.
1372 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1373 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1374 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1375 (read_die_and_children): Update call to store_in_ref_table.
1376 (do_free_die_list_cleanup): Remove.
1377 (fixup_partial_die): Update for changes to find_partial_die.
1378 (read_full_die): Handle queueing absolute references.
1379 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1380 (dwarf2_attr, die_specification, die_type)
1381 (die_containing_type, dwarf2_extension): Update calls to
1382 follow_die_ref.
1383 (dump_die): Update DW_FORM_ref* handling.
1384 (dwarf2_get_ref_die_offset): Likewise.
1385 (free_one_comp_unit): Release the dies list.
1386 (dwarf2_mark_helper): New function.
1387 (dwarf2_mark): Use it.
1388
1389 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1390
1391 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1392 when writing to memory.
1393
1394 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1395
1396 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1397 (m32r_extract_struct_value_address): Delete function.
1398 (m32r_return_value): New function.
1399 (m32r_gdbarch_init): Instead of store_return_value,
1400 extract_return_value, deprecated_extract_struct_value_address
1401 and deprecated_use_struct_convention, set return_value.
1402
1403 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1404
1405 * dwarf2read.c (read_subrange_type): Add comment for variable
1406 sized arrays.
1407
1408 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1409
1410 * Makefile.in (.l.c): Modify rule for compatibility with recent
1411 versions of flex, and remove most command-line options.
1412 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1413 options.
1414
1415 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1416
1417 Turn on initial Ada support (mainly expression evaluation).
1418
1419 * Makefile.in (SFILES): Remove ada-tasks.c.
1420 (HFILES_NO_SRCDIR): Add ada-lang.h.
1421 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1422 (YYOBJ): Add ada-exp.o.
1423 (rule .l.c): Generalize to not mention ada.
1424 * symtab.c: Include ada-lang.h.
1425 (symbol_natural_name, symbol_demangled_name)
1426 (symbol_search_name): Add Ada case.
1427
1428 2004-10-01 Andrew Cagney <cagney@gnu.org>
1429
1430 * Makefile.in (COMMON_OBS): Add inf-child.o.
1431 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1432 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1433 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1434 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1435 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1436 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1437 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1438 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1439 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1440 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1441 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1442 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1443 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1444
1445 * target.c (xfer_using_stratum): Change return type to LONGEST.
1446 On each iteration offset, readbuf and writebuf.
1447 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1448 partial_length, and read/modify/write predicate, update comments.
1449 Pass buffer.word to ptrace write.
1450
1451 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1452
1453 * symfile.c (init_filename_language_table): Add extensions for
1454 Ada.
1455 * defs.h (enum language): Add language_ada.
1456 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1457 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1458 (add_symbols_from_enclosing_procs): Make a no-op for now.
1459 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1460 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1461 (find_line_in_linetable, find_next_line_in_linetable)
1462 (read_all_symtabs, is_plausible_func_for_line)
1463 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1464 (is_runtime_sym_defined, check_size): Remove declaration.
1465 (function_name_from_pc, ada_translate_error_message)
1466 (ada_lookup_minimal_symbol): Remove definition.
1467 (ada_add_block_symbols): Remove useless label.
1468 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1469 useless declaration.
1470 (ada_is_exception_sym): Likewise.
1471
1472 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1473
1474 Add m32r-linux support.
1475 * configure.tgt: Add m32r*-*-linux*.
1476 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1477 and m32r-linux-tdep.c.
1478 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1479 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1480 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1481 m32r-linux-tdep.c.
1482 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1483 config/m32r/linux.mh, config/m32r/linux.mt,
1484 config/m32r/nm-linux.h: New files.
1485
1486 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1487
1488 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1489 (mips32_fetch_instruction): Remove, unused.
1490
1491 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1492
1493 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1494 conditions that will always be true.
1495
1496 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1497
1498 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1499 (vaxbsd_fetch_inferior_registers): Rename from
1500 fetch_inferior_registers. Make static.
1501 (vaxbsd_store_inferior_registers): Rename from
1502 store_inferior_registers. Make static.
1503 (_initialize_vaxbsd_nat): Construct and add target vector.
1504 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1505 inftarg.o. Add inf-child.o and inf-ptrace.o.
1506 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1507 inftarg.o. Add inf-child.o and inf-ptrace.o.
1508 (NAT_FILE): Remove.
1509 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1510 inftarg.o. Add inf-child.o and inf-ptrace.o.
1511 (NAT_FILE): Remove.
1512 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1513
1514 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1515 (m88kbsd_fetch_inferior_registers): Rename from
1516 fetch_inferior_registers. Make static.
1517 (m88kbsd_store_inferior_registers): Rename from
1518 store_inferior_registers. Make static.
1519 (_initialize_m88kbsd_nat): New prototype and function.
1520 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1521 inftarg.o. Add inf-child.o and inf-ptrace.o.
1522 (NAT_FILE): Remove.
1523 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1524
1525 2004-09-30 Andrew Cagney <cagney@gnu.org>
1526
1527 * target.c (target_xfer_partial): New function.
1528 (target_read_memory_partial, target_write_memory_partial)
1529 (default_xfer_partial, target_read_partial, target_write_partial)
1530 (xfer_using_stratum): Use.
1531 (debug_to_xfer_partial): Delete function.
1532 (setup_target_debug): Do not override to_xfer_partial.
1533
1534 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1535
1536 * fork-child.c: Update copyright year. Fix coding style.
1537
1538 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1539
1540 * defs.h (msavestring, mstrsave): Remove prototypes.
1541 * utils.c (msavestring, mstrsave): Remove functions.
1542 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1543 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1544 of mstrsave.
1545 * source.c (find_and_open_source): Use xstrdup instead of
1546 mstrsave.
1547
1548 2004-09-30 Andrew Cagney <cagney@gnu.org>
1549
1550 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1551 (inf_ptrace_xfer_memory): Delete.
1552 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1553 (target_read_memory, target_write_memory): Use xfer_using_stratum
1554 when target_xfer_partial_p.
1555 (debug_target): Move to start of file.
1556 (target_read_memory_partial, target_write_memory_partial): Use
1557 to_xfer_partial when target_xfer_partial_p.
1558
1559 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1560 inf_ptrace_xfer_memory with equivalent code.
1561 * inftarg.c (child_xfer_partial): When performing a write, pass
1562 writebuf to child_xfer_memory.
1563
1564 * target.c (target_read_string): Use target_read_memory instead of
1565 target_xfer_memory.
1566
1567 2004-09-29 Andrew Cagney <cagney@gnu.org>
1568
1569 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1570 the address of status.
1571
1572 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1573 (kill_inferior): Inline ptrace_wait call.
1574 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1575 * inftarg.c (child_wait): Inline ptrace_wait call.
1576
1577 * target.h (struct target_ops): Delete field to_post_wait.
1578 (target_post_wait): Delete macro.
1579 (child_post_wait): Delete declaration.
1580 * target.c (update_current_target, update_current_target)
1581 (debug_to_post_wait, setup_target_debug): Delete functions and
1582 references.
1583 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1584 * inftarg.c (child_post_wait): Delete.
1585 (init_child_ops): Do not set to_post_wait.
1586 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1587 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1588 * inf-child.c (inf_child_post_wait): Delete.
1589 (inf_child_target): Do not set to_post_wait.
1590 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1591 (inf_ptrace_target): Do not set to_post_wait.
1592
1593 * wince.c (child_ops): Delete.
1594 * win32-nat.c (child_ops): Delete.
1595
1596 * inftarg.c (inftarg_set_find_memory_regions)
1597 (inftarg_set_make_corefile_notes): Delete functions.
1598 (_initialize_linux_nat): Inline calls.
1599
1600 * target.h (child_ops): Declare.
1601 * inftarg.c (child_ops): Move from here ...
1602 * target.c (child_ops): ... to here.
1603 * wince.c (child_ops): Delete extern declaration.
1604 * win32-nat.c (child_ops): Delete extern declaration.
1605 * linux-nat.c (child_ops): Delete extern declaration.
1606 * hpux-thread.c (child_ops): Delete extern declaration.
1607
1608 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1609
1610 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1611
1612 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1613
1614 * configure.in: Only set host_makefile_frag when building a native
1615 debugger.
1616 * configure: Regenerate.
1617
1618 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1619 for OpenBSD ELF.
1620
1621 2004-09-28 Andrew Cagney <cagney@gnu.org>
1622
1623 Problem identified by Paul Hilfinger.
1624 * Makefile.in (ada_lex_c): Define.
1625 (ada-lex.o): Delete rule.
1626
1627 * linux-proc.c: Delete file.
1628 * Makefile.in: Update.
1629 * config/sparc/linux64.mh (NATDEPFILES):
1630 * config/sparc/linux.mh (NATDEPFILES): Update.
1631 * config/s390/s390.mh (NATDEPFILES): Update.
1632 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1633 * config/powerpc/linux.mh (NATDEPFILES): Update.
1634 * config/pa/linux.mh (NATDEPFILES): Update.
1635 * config/mips/linux.mh (NATDEPFILES): Update.
1636 * config/m68k/linux.mh (NATDEPFILES): Update.
1637 * config/ia64/linux.mh (NATDEPFILES): Update.
1638 * config/i386/linux64.mh (NATDEPFILES): Update.
1639 * config/i386/linux.mh (NATDEPFILES): Update.
1640 * config/arm/linux.mh (NATDEPFILES): Update.
1641 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1642 * linux-nat.c: Update copyright. Include <sys/param.h>,
1643 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1644 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1645 (O_LARGEFILE): Possibly define.
1646 (_initialize_linux_nat, linux_proc_pending_signals)
1647 (add_line_to_sigset, linux_proc_xfer_memory)
1648 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1649 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1650 (struct linux_corefile_thread_data)
1651 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1652 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1653
1654 2004-09-16 Andrew Cagney <cagney@gnu.org>
1655
1656 * lin-lwp.c: Delete file.
1657 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1658 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1659 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1660 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1661 (linux_nat_attach, detach_callback, linux_nat_detach)
1662 (resume_callback, resume_clear_callback, linux_nat_resume)
1663 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1664 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1665 (status_callback, running_callback, count_events_callback)
1666 (select_singlestep_lwp_callback, select_event_lwp_callback)
1667 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1668 (child_wait, stop_and_resume_callback, linux_nat_wait)
1669 (kill_callback, kill_wait_callback, linux_nat_kill)
1670 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1671 (linux_nat_xfer_memory, linux_nat_thread_alive)
1672 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1673 (_initialize_linux_nat): New functions.
1674 * Makefile.in: Update all dependencies.
1675 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1676 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1677 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1678 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1679 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1680 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1681 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1682 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1683 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1684 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1685 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1686 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1687 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1688
1689 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1690
1691 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1692 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1693
1694 * configure.in: Don't comment out NATDEPFILES in the generated
1695 Makefile if NAT_FILE is unset.
1696 * configure: Regenerate.
1697
1698 2004-09-27 Andrew Cagney <cagney@gnu.org>
1699
1700 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1701 (insert_step_resume_breakpoint): Delete.
1702 (insert_step_resume_breakpoint_at_frame): New function.
1703 (insert_step_resume_breakpoint_at_sal): New function.
1704 (handle_inferior_event, step_into_function)
1705 (insert_step_resume_breakpoint): Simplify by using same.
1706
1707 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1708
1709 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1710
1711 * fbsd-proc.c: Remove file.
1712 * Makefile.in (fbsd-proc.o): Remove dependency.
1713
1714 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1715 code together.
1716
1717 * config/i386/nm-fbsd64.h: Remove file.
1718 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1719
1720 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1721
1722 * amd64-nat.h: Update copyright year.
1723 (amd64bsd_target): New prototype.
1724 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1725 (amd64bsd_target): New function.
1726 (amd64bsd_fetch_inferior_registers): Rename from
1727 fetch_inferior_registers. Make static.
1728 (amd64bsd_store_inferior_registers): Rename from
1729 store_inferior_registers. Make static.
1730 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1731 (_initialize_amd64fbsd_nat): Construct and add target vector.
1732 * amd64nbsd-nat.o: Include "target.h".
1733 (_initialize_amd64nbsd_nat): Construct and add target vector.
1734 * amd64obsd-nat.c: Include "target.h".
1735 (_initialize_amd64obsd_nat): Construct and add target vector.
1736 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1737 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1738 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1739 fbsd-nat.o.
1740 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1741 Remove infptrace.o and inftarg.o. Add inf-child.o and
1742 inf-ptrace.o.
1743 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1744 (amd64obsd-nat.o): Update dependencies.
1745
1746 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1747
1748 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1749 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1750 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1751 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1752 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1753
1754 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1755 Inline attach call.
1756 (inf_ptrace_detach): Inline detach call.
1757
1758 * configure.in: Check for waddstr instead of mvwaddstr when
1759 searching for curses library. Check for wborder.
1760 * configure, config.in: Regenerate.
1761 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1762 available.
1763
1764 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1765
1766 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1767
1768 Committed by Andrew Cagney.
1769 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1770 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1771 configuration.
1772 (fetch_register_using_p): Implement 'p' packet. Based on code by
1773 Fernando Nasser.
1774 (remote_fetch_registers): Call fetch_register_using_p.
1775 (init_all_packet_configs, show_remote_cmd)
1776 (_initialize_remote): Add p-packet.
1777
1778 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1779
1780 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1781 instead of call_ptrace. Call wait directly instead of
1782 ptrace_wait.
1783 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1784 (inf_ptrace_wait): Inline ptrace_wait call.
1785
1786 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1787
1788 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1789 rolled back instead.
1790
1791 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1792
1793 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1794 the new argument order.
1795
1796 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1797
1798 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1799 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1800 (struct gdbarch_tdep): Remove.
1801 (struct xstormy16_frame_cache): New frame cache structure.
1802 (xstormy16_register_byte, xstormy16_register_raw_size)
1803 (xstormy16_reg_virtual_type, xstormy16_register_type)
1804 (xstormy16_push_arguments, xstormy16_push_return_address)
1805 (xstormy16_pop_frame, xstormy16_store_struct_return)
1806 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1807 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1808 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1809 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1810 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1811 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1812 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1813 (xstormy16_extract_return_value, xstormy16_store_return_value):
1814 Regcachify. Drop useless struct convention handling.
1815 (xstormy16_register_type, xstormy16_return_value)
1816 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1817 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1818 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1819 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1820 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1821 (xstormy16_unwind_dummy_id) : New functions.
1822 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1823 of xstormy16_scan_prologue.
1824 (xstormy16_frame_unwind): New frame_unwind structure.
1825 (xstormy16_frame_base): New frame_base structure.
1826 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1827 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1828
1829 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1830
1831 * language.c (language_gdbarch_post_init): Fix off-by one error.
1832
1833 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1834
1835 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1836 (struct dwarf2_offset_and_type): New.
1837 (set_die_type, reset_die_and_siblings_types, get_die_type)
1838 (offset_and_type_hash, offset_and_type_eq): New functions.
1839 (read_structure_type, read_enumeration_type, read_array_type)
1840 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1841 (read_tag_reference_type, read_tag_const_type)
1842 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1843 (read_typedef, read_base_type, read_subrange_type): Use
1844 set_die_type.
1845
1846 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1847
1848 * Makefile.in (dwarf2read.o): Update dependencies.
1849 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1850 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1851 and read_in_chain.
1852 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1853 mark, and has_form_ref_addr.
1854 (struct dwarf2_per_cu_data): New.
1855 (dwarf2_max_cache_age): New.
1856 (dwarf2_build_psymtabs_hard): Free cached compilation units
1857 after loading. Create and manage the list of compilation units.
1858 Remove unnecessary NULL initialization. Fix indentation.
1859 (psymtab_to_symtab_1): Initialize all of CU.
1860 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1861 (find_partial_die): Use dwarf2_find_containing_comp_unit
1862 and load_comp_unit.
1863 (free_stack_comp_unit): Update comments. Clear the per-cu
1864 pointer. Handle aging.
1865 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1866 (age_cached_comp_units, free_one_cached_comp_unit)
1867 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1868 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1869 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1870 (show_dwarf2_cmd): New.
1871 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1872 and "maint show dwarf2 max-cache-age".
1873 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1874 externs.
1875 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1876 global.
1877
1878 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1879
1880 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1881 and dwarf2_cu struct pointer as arguments. Change function to use
1882 obstack if provided and use dwarf2_cu to determine language-specific
1883 separator.
1884 (partial_die_parent_scope): Change comment to include java. Use
1885 new version of typename_concat instead of obconcat.
1886 (partial_die_full_name): Use typename_concat.
1887 (read_namespace): Ditto.
1888 (read_enumeration_type): Use typename_concat instead of obconcat.
1889 (new_symbol): Ditto.
1890 (add_partial_symbol): Enhance tests for C++ to also test for Java.
1891 (guess_structure_name): Ditto.
1892 (read_subroutine_type): Ditto.
1893 (read_structure_type): Ditto.
1894 (is_vtable_name): Add Java support.
1895 (determine_class_name): Switch to new typename_concat call.
1896 (determine_prefix): Switch to new typename_concat call.
1897 * jv-exp.y (FuncStart): New pattern.
1898 (MethodInvocation): Add support for simple function calls. Change
1899 warning message for other forms of inferior call currently not
1900 supported.
1901 * valarith.c (value_subscript): Treat an array with upper-bound
1902 of -1 as unknown size.
1903
1904 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1905
1906 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
1907 (lookup_partial_symtab): Use symtab_to_fullname.
1908
1909 2004-09-19 Jim Blandy <jimb@redhat.com>
1910
1911 * minsyms.c (lookup_minimal_symbol): Doc fix.
1912
1913 2004-09-20 Andrew Cagney <cagney@gnu.org>
1914
1915 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
1916 CHILD_RESUME.
1917 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
1918 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
1919 KILL_INFERIOR.
1920 * infptrace.c: Update.
1921
1922 2004-09-19 Daniel Jacobowitz <dan@debian.org>
1923
1924 * symtab.c (output_source_filename): Mark first argument as const.
1925 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
1926 for "info sources" output.
1927
1928 2004-09-20 Mark Kettenis <kettenis@gnu.org>
1929
1930 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
1931 <machine/vmparam.h>.
1932 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
1933 (register_u_addr): Remove prototype.
1934
1935 2004-09-19 Mark Kettenis <kettenis@gnu.org>
1936
1937 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
1938 (i386bsd_fetch_inferior_registers): Rename from
1939 fetch_inferior_registers. Make static.
1940 (i386bsd_store_inferior_registers): Rename from
1941 store_inferior_registers. Make static.
1942 (i386bsd_target): New function.
1943 * i386bsd-nat.h: New file.
1944 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
1945 "i386bsd-nat.h".
1946 (i386fbsd_resume): Rename from child_resume. Make static.
1947 (_initialize_i386fbsd_nat): Construct and add target vector.
1948 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1949 (_initialize_i386nbsd_nat): Construct and add target vector.
1950 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1951 Remove defines.
1952 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1953 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1954 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1955 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1956 (LOADLIBES): New variable.
1957 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1958 inf-ptrace.o. Remove inftarg.o.
1959 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1960 inf-ptrace.o. Remove inftarg.o.
1961 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1962 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1963 (LOADLIBES): New variable.
1964 * Makefile.in (i386bsd_nat_h): New variable.
1965 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1966 dependencies.
1967
1968 * sparc64nbsd-tdep.c: Include "objfiles.h".
1969 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1970 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1971 svr4_lp64_fetch_link_map_offsets.
1972 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1973 "nbsd-tdep.h".
1974 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1975 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1976 svr4_lp64_fetch_link_map_offsets.
1977 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1978 dependencies.
1979
1980 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1981 * fbsd-nat.h: New file.
1982 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1983 (fbsd_nat_h): New variable.
1984 (fbsd-nat.o): New dependency.
1985
1986 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1987 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1988
1989 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1990 comment.
1991
1992 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1993
1994 * ada-exp.y (type_int): New function to add layer of abstraction
1995 around references to expression types.
1996 (type_long): Ditto.
1997 (type_long_long): Ditto.
1998 (type_float): Ditto.
1999 (type_double): Ditto.
2000 (type_long_double): Ditto.
2001 (type_char): Ditto.
2002 (type_system_address): Ditto.
2003 (simple_exp): Use type_* functions in place of builtin_*
2004 variables.
2005 (exp): Ditto.
2006 (write_var_from_name): Ditto.
2007 (write_object_renaming): Ditto.
2008 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2009 declaration.
2010 (build_ada_types): Remove, replacing with...
2011 (ada_language_arch_info): New function to initialize primitive
2012 type vector in language_arch_info.
2013 (ada_array_length): Remove use of builtin_type_ada_int.
2014 (value_pos_atr): Ditto.
2015 (ada_evaluate_subexp): Ditto.
2016 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2017 builtin_type_ada_long_long, builtin_type_ada_char,
2018 builtin_type_ada_float, builtin_type_ada_double,
2019 builtin_type_ada_long_double, builtin_type_ada_natural,
2020 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2021 (ada_builtin_types): Remove.
2022 (ada_language_defn): Remove entries for la_builtin_type_vector and
2023 string_char_type and use ada_language_arch_info.
2024 (_initialize_ada_language): Do type-vector initialization along
2025 the lines of c-lang.c.
2026 (ada_create_fundamental_type): Break up line.
2027 (ada_dump_symtab): Remove unused function.
2028 (enum ada_primitive_types): Define.
2029 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2030 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2031 builtin_type_ada_float, builtin_type_ada_double,
2032 builtin_type_ada_long_double, builtin_type_ada_natural,
2033 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2034 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2035 (processInt): Ditto.
2036 (processReal): Ditto.
2037 (name_lookup): Ditto.
2038 * ada-typeprint.c (print_range): Use builtin_type_int, not
2039 builtin_type_ada_int.
2040
2041 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2042
2043 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2044
2045 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2046 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2047 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2048 * configure.in: Improve checks for curses library by checking for
2049 mvwaddstr instead of initscr. Drop HP curses in favour of
2050 standard curses on HP-UX.
2051 * configure: Regenerated.
2052
2053 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2054
2055 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2056 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2057 Minor formatting changes.
2058 (empty_array): Slight rewrite for formatting.
2059 (emit_char,parse,ada_language_defn,build_ada_types,
2060 ada_is_exception_sym, _initialize_ada_language): Move
2061 definitions around.
2062 (ada_dump_symtab): Remove unused definition.
2063 (ada_maybe_exception_partial_symbol): Remove unused definition.
2064
2065 2004-09-16 Andrew Cagney <cagney@gnu.org>
2066
2067 * inf-child.c: Include "gdb_string.h".
2068 (inf_child_core_file_to_sym_file): Delete.
2069 (inf_child_target): Set to_fetch_registers and to_store_registers.
2070 * inf-ptrace.c: Include "gdb_string.h".
2071 * Makefile.in: Update all dependencies.
2072
2073 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2074 problem.
2075
2076 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2077
2078 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2079 call to heuristic_proc_desc. Remove code that became redundant
2080 as a consequence.
2081 (read_next_frame_reg): Remove special case for SP_REGNUM.
2082 (set_reg_offset): Fix small typo.
2083 (reset_saved_regs): New procedure.
2084 (mips32_heuristic_proc_desc): No longer compute a fake
2085 procedure descriptor. Compute the full frame cache instead.
2086 Some minor comment reformatting.
2087
2088 2004-09-14 Andrew Cagney <cagney@gnu.org>
2089
2090 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2091 maintainer.
2092
2093 * thread-db.c (thread_db_new_objfile): Assume that there is a
2094 child process.
2095
2096 2004-09-13 Jim Blandy <jimb@redhat.com>
2097
2098 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2099 so that its storage isn't referenced after its lifetime ends.
2100
2101 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2102 and never assigned to. Delete it, and the 'if (use_buffer)'
2103 clauses. Delete 'raw_buffer', since it is now unused.
2104
2105 2004-09-13 Andrew Cagney <cagney@gnu.org>
2106
2107 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2108 * configure: Re-generate.
2109 * nlm/Makefile.in (TAGS): Update.
2110 * Makefile.in (TAGS): Update.
2111 * config/vax/nbsd.mt (TM_FILE): Update.
2112 * config/sparc/vxworks.mt (TM_FILE): Update.
2113 * config/sparc/sol2.mt (TM_FILE): Update.
2114 * config/sparc/sol2-64.mt (TM_FILE): Update.
2115 * config/sparc/obsd64.mt (TM_FILE): Update.
2116 * config/sparc/obsd.mt (TM_FILE): Update.
2117 * config/sparc/nbsd64.mt (TM_FILE): Update.
2118 * config/sparc/nbsd.mt (TM_FILE): Update.
2119 * config/sparc/linux64.mt (TM_FILE): Update.
2120 * config/sparc/linux.mt (TM_FILE): Update.
2121 * config/sparc/fbsd.mt (TM_FILE): Update.
2122 * config/sh/wince.mt (TM_FILE): Update.
2123 * config/sh/nbsd.mt (TM_FILE): Update.
2124 * config/sh/linux.mt (TM_FILE): Update.
2125 * config/sh/embed.mt (TM_FILE): Update.
2126 * config/s390/s390.mt (TM_FILE): Update.
2127 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2128 * config/rs6000/rs6000.mt (TM_FILE): Update.
2129 * config/rs6000/aix4.mt (TM_FILE): Update.
2130 * config/powerpc/vxworks.mt (TM_FILE): Update.
2131 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2132 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2133 * config/powerpc/obsd.mt (TM_FILE): Update.
2134 * config/powerpc/nbsd.mt (TM_FILE): Update.
2135 * config/powerpc/linux.mt (TM_FILE): Update.
2136 * config/powerpc/aix.mt (TM_FILE): Update.
2137 * config/pa/obsd.mt (TM_FILE): Update.
2138 * config/pa/linux.mt (TM_FILE): Update.
2139 * config/pa/hppahpux.mt (TM_FILE): Update.
2140 * config/pa/hppa64.mt (TM_FILE): Update.
2141 * config/pa/hppa.mt (TM_FILE): Update.
2142 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2143 * config/mips/wince.mt (TM_FILE): Update.
2144 * config/mips/vxmips.mt (TM_FILE): Update.
2145 * config/mips/nbsd.mt (TM_FILE): Update.
2146 * config/mips/linux.mt (TM_FILE): Update.
2147 * config/mips/irix6.mt (TM_FILE): Update.
2148 * config/mips/irix5.mt (TM_FILE): Update.
2149 * config/mips/embed.mt (TM_FILE): Update.
2150 * config/m68k/vxworks68.mt (TM_FILE): Update.
2151 * config/m68k/st2000.mt (TM_FILE): Update.
2152 * config/m68k/os68k.mt (TM_FILE): Update.
2153 * config/m68k/obsd.mt (TM_FILE): Update.
2154 * config/m68k/nbsd.mt (TM_FILE): Update.
2155 * config/m68k/monitor.mt (TM_FILE): Update.
2156 * config/m68k/linux.mt (TM_FILE): Update.
2157 * config/m68k/cisco.mt (TM_FILE): Update.
2158 * config/ia64/linux.mt (TM_FILE): Update.
2159 * config/ia64/aix.mt (TM_FILE): Update.
2160 * config/ia64/ia64.mt (TM_FILE): Update.
2161 * config/i386/vxworks.mt (TM_FILE): Update.
2162 * config/i386/obsd64.mt (TM_FILE): Update.
2163 * config/i386/obsd.mt (TM_FILE): Update.
2164 * config/i386/nto.mt (TM_FILE): Update.
2165 * config/i386/nbsd64.mt (TM_FILE): Update.
2166 * config/i386/nbsd.mt (TM_FILE): Update.
2167 * config/i386/linux64.mt (TM_FILE): Update.
2168 * config/i386/linux.mt (TM_FILE): Update.
2169 * config/i386/i386sol2.mt (TM_FILE): Update.
2170 * config/i386/i386lynx.mt (TM_FILE): Update.
2171 * config/i386/fbsd64.mt (TM_FILE): Update.
2172 * config/i386/fbsd.mt (TM_FILE): Update.
2173 * config/i386/cygwin.mt (TM_FILE): Update.
2174 * config/h8300/h8300.mt (TM_FILE): Update.
2175 * config/frv/frv.mt (TM_FILE): Update.
2176 * config/cris/cris.mt (TM_FILE): Update.
2177 * config/arm/wince.mt (TM_FILE): Update.
2178 * config/arm/nbsd.mt (TM_FILE): Update.
2179 * config/arm/linux.mt (TM_FILE): Update.
2180 * config/arm/embed.mt (TM_FILE): Update.
2181 * config/alpha/nbsd.mt (TM_FILE): Update.
2182 * config/alpha/fbsd.mt (TM_FILE): Update.
2183 * config/alpha/alpha.mt (TM_FILE): Update.
2184 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2185 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2186
2187 Eliminate event_loop_p, always has the value 1.
2188 * defs.h (event_loop_p): Delete macro.
2189 * breakpoint.c (until_break_command): Simplify.
2190 * utils.c (prompt_for_continue): Simplify.
2191 * tracepoint.c (read_actions): Simplify.
2192 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2193 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2194 (set_prompt, init_main): Simplify.
2195 (init_signals, disconnect): Delete, unused.
2196 * remote.c (remote_async_resume)
2197 (extended_remote_async_create_inferior): Simplify.
2198 * mi/mi-interp.c (mi_input): Delete, unused.
2199 (mi_interpreter_resume, mi_command_loop): Simplify.
2200 * interps.c (current_interp_command_loop): Simplify.
2201 * infrun.c (proceed): Simplify.
2202 * infcmd.c (run_command, continue_command, step_1, jump_command)
2203 (until_command, advance_command, finish_command)
2204 (interrupt_target_command): Simplify.
2205 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2206
2207 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2208 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2209 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2210 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2211 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2212 * mips-tdep.c (mips_dump_tdep): Do not print same.
2213
2214 2004-09-12 Andrew Cagney <cagney@gnu.org>
2215
2216 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2217 const.
2218 * Makefile.in (valprint.o): Delete explict rule.
2219
2220 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2221 reported by Dave Anderson.
2222
2223 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2224
2225 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2226
2227 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2228 Andrew Cagney <cagney@gnu.org>
2229
2230 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2231 (mi_cmd_data_list_register_values)
2232 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2233 the register number computation.
2234
2235 2004-09-12 Andrew Cagney <cagney@gnu.org>
2236
2237 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2238 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2239 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2240 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2241 target.
2242 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2243 inf-ptrace.o and inf-child.o.
2244 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2245 * Makefile.in: Update dependencies.
2246
2247 2004-09-11 Andrew Cagney <cagney@gnu.org>
2248
2249 * language.c (hex_string, hex_string_custom): Move from here ...
2250 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2251 (CELLSIZE): Increase to 50.
2252 * language.h (hex_string, hex_string_custom): Move from here ...
2253 * defs.h: ... to here.
2254 * Makefile.in: Update all dependencies.
2255
2256 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2257
2258 * language.c (local_hex_format_custom): Remove.
2259 (local_hex_string): Rename to hex_string, use C format, and move to
2260 utils.c
2261 (local_hex_string_custom): Rename to hex_string_custom and change
2262 interface. Now uses C format. Move to utils.c
2263 (local_octal_format_custom): Remove.
2264 (local_decimal_format_custom): Remove.
2265 (unknown_language_defn): Remove language-specific number
2266 formatting entries.
2267 (auto_language_defn): Ditto.
2268 (local_language_defn): Ditto.
2269 * language.h (struct language_format_info): Delete declaration.
2270 (struct language_defn): Remove language_format_info fields
2271 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2272 (local_binary_format): Remove macro.
2273 (local_binary_format_prefix): Remove macro.
2274 (local_binary_format_specifier): Remove macro.
2275 (local_binary_format_suffix): Remove macro.
2276 (local_octal_format): Remove macro.
2277 (local_octal_format_prefix): Remove macro.
2278 (local_octal_format_specifier): Remove macro.
2279 (local_octal_format_suffix): Remove macro.
2280 (local_decimal_format): Remove macro.
2281 (local_decimal_format_prefix): Remove macro.
2282 (local_decimal_format_specifier): Remove macro.
2283 (local_decimal_format_suffix): Remove macro.
2284 (local_hex_format): Remove macro.
2285 (local_hex_format_prefix): Remove macro.
2286 (local_hex_format_specifier): Remove macro.
2287 (local_hex_format_suffix): Remove macro.
2288 (local_decimal_format_custom): Remove.
2289 (local_octal_format_custom): Remove.
2290 (local_hex_format_custom): Remove.
2291 (local_hex_string): Rename to hex_string and move to defs.h.
2292 (local_hex_string_custom): Rename to hex_string_custom, change
2293 interface, and move to defs.h.
2294 * utils.c: (int_string): New function.
2295 (hex_string): New function (from language.c).
2296 (hex_string_custom): New function (from language.c).
2297 (octal2str): New function.
2298 (decimal2str): Add width parameter.
2299 (paddr_u): Use new decimal2str interface.
2300 (paddr_d): Ditto.
2301 * defs.h (hex_string): Declare.
2302 (hex_string_custom): Declare.
2303 (int_string): Declare.
2304 * printcmd.c (print_scalar_formatted): Remove localized binary
2305 formatting.
2306 * valprint.c (print_longest): Use int_string.
2307 (print_floating): Use C hex format.
2308 (print_hex_chars): Ditto.
2309 (print_binary_chars): Remove language-specific formatting.
2310 (print_octal_chars): Use C octal format.
2311 (print_decimal_chars): Delocalize format.
2312 (print_decimal): Remove.
2313 * ada-lang.c (ada_language_defn): Remove language-specific number
2314 formatting entries.
2315 * p-lang.c (pascal_language_defn): Ditto.
2316 * c-lang.c (c_language_defn): Ditto.
2317 (cplus_language_defn): Ditto.
2318 (asm_language_defn): Ditto.
2319 (minimal_language_defn): Ditto.
2320 * f-lang.c (f_language_defn): Ditto.
2321 * jv-lang.c (java_language_defn): Ditto.
2322 * m2-lang.c (m2_language_defn): Ditto.
2323 * scm-lang.c (scm_language_defn): Ditto.
2324 * objc-lang.c (objc_language_defn): Ditto.
2325 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2326 new interface.
2327 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2328 * ui-out.c (ui_out_field_core_addr): Ditto.
2329 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2330 * exec.c (print_section_info): Ditto.
2331 * i387-tdep.c (print_i387_status_word): Ditto.
2332 (print_i387_control_word): Ditto.
2333 (i387_print_float_info): Ditto.
2334 * maint.c (maint_print_section_info): Ditto.
2335 * solib.c (info_sharedlibrary_command): Ditto.
2336 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2337 * symtab.c (print_msymbol_info): Ditto.
2338 * tracepoint.c (tracepoints_info): Ditto.
2339 * solib-frv.c (lm_base): Ditto.
2340 (frv_current_sos): Ditto.
2341 (enable_break2): Ditto.
2342 (enable_break): Ditto.
2343 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2344 (process_one_symbol): Ditto.
2345 * infcmd.c (program_info): Ditto.
2346 * mdebugread.c (parse_partial_symbols): Ditto.
2347 * symfile.c (add_symbol_file_command): Ditto.
2348 * cli/cli-cmds.c (edit_command): Ditto.
2349 (list_command): Ditto.
2350 * infcall.c (call_function_by_hand): Ditto.
2351 * remote-vx.c (vx_run_files_info): Ditto.
2352 (vx_wait): Ditto.
2353 (vx_attach): Ditto.
2354 (vx_detach): Ditto.
2355 (vx_kill): Ditto.
2356 * aix-thread.c (pdc_symbol_addrs): Ditto.
2357 (pdc_read_regs): Ditto.
2358 (pdc_write_regs): Ditto.
2359 (pdc_read_data): Ditto.
2360 (pdc_write_data): Ditto.
2361 * d10v-tdep.c (display_trace): Ditto.
2362 * rs6000-nat.c (find_toc_address): Ditto.
2363 * aix-thread.c: Don't include language.h.
2364 * buildsym.c: Ditto.
2365 * dbxread.c: Ditto.
2366 * mdebugread.c: Ditto.
2367 * rs6000-nat.c: Ditto.
2368 * buildsym.c (make_blockvector): Use renamed hex_string.
2369
2370 2004-09-10 Jason Molenda (jmolenda@apple.com)
2371
2372 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2373 chars after 'if' or 'while' commands in user-defined commands.
2374
2375 2004-09-08 Jim Blandy <jimb@redhat.com>
2376
2377 Fix bug reported and analyzed by Olivier Crete:
2378 * symfile.c (copy_section_addr_info): New function.
2379 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2380 original set of address arguments, instead of handwritten code
2381 that uses one length to allocate and a different length to
2382 initialize. Use make_cleanup_free_section_addr_info.
2383 * symfile.h (copy_section_addr_info): New declaration.
2384 * utils.c: #include "symfile.h".
2385 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2386 New functions.
2387 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2388 * Makefile.in (utils.o): Update dependencies.
2389
2390 2004-09-08 Andrew Cagney <cagney@gnu.org>
2391
2392 * thread-db.c (keep_thread_db): Delete.
2393 (thread_db_new_objfile, thread_db_create_inferior)
2394 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2395
2396 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2397
2398 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2399 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2400 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2401 (i386_frameless_signal_p): Remove prototype.
2402 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2403 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2404 I386_SSE_NUM_REGS.
2405 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2406 instead of FP0_REGNUM.
2407 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2408 of FP0_REGNUM and FPC_REGNUM.
2409
2410 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2411 (sunos_solib_create_inferior_hook): Don't call
2412 sunos_relocate_main_executable.
2413
2414 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2415 solib_svr4_fetch_link_map_offsets to
2416 svr4_ilp32_fetch_link_map_offsets.
2417 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2418 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2419 svr4_ilp32_fetch_link_map_offsets.
2420 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2421
2422 2004-09-07 Jim Blandy <jimb@redhat.com>
2423
2424 * frame.h (frame_register): Doc fix.
2425
2426 2004-09-07 Andrew Cagney <cagney@gnu.org>
2427
2428 * vx-share/wait.h: Delete #ifdef USG.
2429 * utils.c (request_quit): Ditto.
2430 * tui/tui.c (tui_reset): Ditto.
2431 * remote.c: Ditto.
2432 * remote-sds.c: Ditto.
2433 * remote-rdi.c: Ditto.
2434 * mdebugread.c: Ditto.
2435 * m68klinux-nat.c: Ditto.
2436 * infttrace.c: Ditto.
2437 * infptrace.c: Ditto.
2438 * i386v-nat.c: Ditto.
2439 * exec.c: Ditto.
2440 * dbxread.c: Ditto.
2441 * core-aout.c: Ditto.
2442
2443 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2444
2445 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2446 heuristic_proc_desc.
2447 (mips_insn32_frame_cache): Likewise.
2448
2449 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2450
2451 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2452 left behind by error.
2453
2454 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2455
2456 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2457 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2458
2459 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2460
2461 * config/rs6000/xm-aix4.h: Remove this file.
2462 * config/rs6000/aix4.mh (XM_FILE): Delete.
2463
2464 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2465
2466 * config/rs6000/xm-rs6000.h: Remove this file.
2467 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2468
2469 2004-09-03 Andrew Cagney <cagney@gnu.org>
2470
2471 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2472 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2473 only use.
2474
2475 * mips-tdep.c (temp_saved_regs): Delete.
2476 (set_reg_offset): Replace saved_regs parameter with this_cache.
2477 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2478 (mips32_heuristic_proc_desc): Add this_cache parameter.
2479 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2480 (after_prologue): Pass a NULL this_cache.
2481
2482 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2483 non-kernel trap prologues.
2484
2485 * mips-tdep.c (find_proc_desc): Delete function.
2486 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2487 simplify.
2488 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2489 mips_insn32_frame_cache.
2490
2491 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2492 Simplify as NEXT_FRAME is NULL.
2493 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2494
2495 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2496 local variable.
2497 (mips_skip_prologue): Update.
2498
2499 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2500 "cur_frame" parameter.
2501 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2502 (mips_insn32_frame_cache, find_proc_desc): Update
2503
2504 * config/vax/nm-obsd.h: Delete file.
2505 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2506 * config/vax/nm-nbsd.h: Delete file.
2507 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2508 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2509 * config/sh/nm-nbsd.h: Delete file.
2510 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2511 * config/rs6000/nm-rs6000ly.h: Delete file.
2512 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2513 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2514 * config/powerpc/nm-obsd.h: Delete file.
2515 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2516 * config/powerpc/nm-nbsd.h: Delete file.
2517 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2518 * config/pa/nm-obsd.h: Delete file.
2519 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2520 * config/mips/nm-nbsd.h: Delete file.
2521 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2522 * config/m88k/nm-obsd.h: Delete file.
2523 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2524 * config/m68k/nm-nbsd.h: Delete file.
2525 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2526 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2527 * config/i386/nm-nbsd.h: Delete file.
2528 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2529 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2530 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2531 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2532 * config/i386/nm-i386lynx.h: Delete file.
2533 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2534 * config/arm/nm-nbsd.h: Delete file.
2535 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2536 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2537
2538 * config/i386/tm-fbsd.h: Delete file.
2539 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2540 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2541
2542 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2543 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2544 * config/rs6000/aix4.mt (TM_FILE): Set to
2545 config/rs6000/tm-rs6000.h.
2546 * config/powerpc/tm-ppc-aix.h: Delete file.
2547 * config/powerpc/aix.mt (TM_FILE): Set to
2548 config/rs6000/tm-rs6000.h.
2549 * config/m68k/tm-linux.h: Delete file.
2550 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2551 * config/i386/tm-linux64.h: Delete file.
2552 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2553 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2554
2555 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2556 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2557 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2558 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2559 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2560 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2561 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2562 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2563 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2564
2565 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2566 gdb_host_cpu.
2567
2568 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2569
2570 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2571 Minor reformatting. Some code factoring.
2572
2573 2004-09-02 Andrew Cagney <cagney@gnu.org>
2574
2575 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2576 * config/vax/tm-nbsd.h: Delete file.
2577 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2578 * config/sparc/tm-vxworks.h: Delete file.
2579 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2580 * config/sparc/tm-nbsd.h: Delete file.
2581 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2582 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2583 * config/sparc/tm-linux.h: Delete file.
2584 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2585 * config/s390/tm-linux.h: Delete file.
2586 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2587 * config/pa/tm-bsd.h: Delete file.
2588 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2589 * config/m68k/tm-obsd.h: Delete file.
2590 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2591 * config/m68k/tm-nbsd.h: Delete file.
2592 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2593 * config/i386/tm-vxworks.h: Delete file.
2594 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2595 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2596 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2597 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2598 * config/i386/tm-nbsd.h: Delete file.
2599 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2600 * config/i386/tm-i386lynx.h: Delete file.
2601 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2602 * config/cris/tm-cris.h: Delete file.
2603
2604 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2605 * configure: Re-generate.
2606 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2607 * config/arm/tm-nbsd.h: Delete file.
2608
2609 * config/powerpc/tm-ppcle-sim.h: Delete.
2610 * config/powerpc/tm-ppcle-eabi.h: Delete.
2611 * config/powerpc/tm-nbsd.h: Delete.
2612 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2613 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2614 tm-ppcle-eabi.h.
2615
2616 * config/i386/nto.mh (NAT_FILE): Delete.
2617 * config/i386/nm-nto.h: Delete.
2618
2619 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2620 * config/m68k/tm-os68k.h: Ditto.
2621 * config/m68k/tm-monitor.h: Ditto.
2622 * config/m68k/tm-cisco.h: Ditto.
2623 * config/m68k/st2000.mt (TM_FILE): Delete.
2624 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2625 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2626 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2627 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2628
2629 * config/m68k/tm-st2000.h: Delete.
2630 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2631 * config/sparc/fbsd.mt (TM_FILE): Delete.
2632 * config/sparc/tm-fbsd.h: Delete.
2633
2634 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2635 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2636 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2637
2638 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2639 GDB_TM_FILE and GDB_XM_FILE.
2640 * gdbarch.c: Re-generate.
2641 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2642 quotes in macro definition.
2643 * configure.in: Re-generate.
2644
2645 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2646 validating architecture methods.
2647 * gdbarch.c: Re-generate.
2648
2649 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2650 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2651 GDB_MULTI_ARCH_PARTIAL.
2652 * gdbarch.h: Re-generate.
2653
2654 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2655 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2656 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2657 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2658 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2659 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2660 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2661 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2662 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2663 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2664 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2665 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2666
2667 2004-09-01 Andrew Cagney <cagney@gnu.org>
2668
2669 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2670 and main_func_highpc.
2671 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2672 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2673 * nlmread.c (nlm_symfile_read): Update.
2674
2675 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2676
2677 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2678 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2679 (find_proc_desc): Remove dead code.
2680
2681 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2682
2683 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2684
2685 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2686
2687 * observer.sh: Add struct so_list declaration.
2688 * Makefile.in: Add dependencies on observer.h for solib.c and
2689 breakpoint.c.
2690 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2691 function.
2692 (_initialize_breakpoint): Register
2693 disable_breakpoints_in_unloaded_shlib as an observer of the
2694 "solib unloaded" observation event.
2695 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2696 call decode_line_1 so unfound breakpoint errors are silent.
2697 * solib.c (update_solib_list): When a solib is discovered to have
2698 been unloaded by the program, notify all observers of the
2699 "solib unloaded" observation event.
2700
2701 2004-09-01 Andrew Cagney <cagney@gnu.org>
2702
2703 * frame.c: Include "objfiles.h".
2704 (inside_main_func): New function.
2705 (get_prev_frame): Use new inside_main_func.
2706 * Makefile.in (frame.o): Update dependencies.
2707 * defs.h (inside_main_func): Delete declaration.
2708 * blockframe.c (inside_main_func): Delete function.
2709
2710 2004-08-31 Jim Blandy <jimb@redhat.com>
2711
2712 * dwarf2read.c (is_vtable_name): New function, based on logic from
2713 read_structure_type, but passing the correct length to strncmp,
2714 and using 'sizeof' instead of 'strlen'.
2715 (read_structure_type): Call it.
2716
2717 2004-08-31 Joel Brobecker <brobecker@gnat.com>
2718
2719 * config/powerpc/aix.mh: Add comment.
2720
2721 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2722
2723 * MAINTAINERS: Add self to Write-After-Approval.
2724
2725 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2726
2727 * MAINTAINERS: Add self to Write-After-Approval.
2728
2729 2004-08-30 Andrew Cagney <cagney@gnu.org>
2730
2731 Fix PR breakpoints/1757.
2732 * infrun.c (struct execution_control_state): Replace
2733 remove_breakpoints_on_following_step with
2734 step_after_step_resume_breakpoint.
2735 (init_execution_control_state): Update.
2736 (handle_inferior_event): For signals, when stepping off a
2737 breakpoint, set step_after_step_resume_breakpoint. When
2738 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2739 (keep_going): Delete code handling
2740 remove_breakpoints_on_following_step.
2741
2742 2004-08-29 David Lecomber <david@streamline-computing.com>
2743
2744 Fix PR gdb/648
2745 * language.h (enum array_ordering): New enum.
2746 * language.h (struct language_defn): New la_array_ordering
2747 attribute.
2748 * language.c (unknown_language_defn, auto_language_defn)
2749 (local_language_defn): Ditto.
2750 * ada-lang.c (ada_language_defn): Ditto.
2751 * c-lang.c (c_language_defn, cplus_language_defn)
2752 (asm_language_defn, minimal_language_defn): Ditto.
2753 * f-lang.c (f_language_defn): Ditto.
2754 * jv-lang.c (java_language_defn): Ditto.
2755 * m2-lang.c (f_language_defn): Ditto.
2756 * objc-lang.c (objc_language_defn): Ditto.
2757 * p-lang.c (pascal_language_defn): Ditto.
2758 * scm-lang.c (scm_language_defn): Ditto.
2759 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2760 oriented large to small in type structure.
2761 * dwarf2read.c (read_array_order): New function.
2762 (read_array_type): Use read_array_order to check row/column
2763 major ordering.
2764
2765 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2766
2767 * target.c (target_resize_to_sections): Check
2768 current_target.to_sections for an old value when updating.
2769
2770 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2771
2772 * procfs.c (dbx_link_bpt_addr): New static global variable.
2773 (dbx_link_shadow_contents): New static global variable.
2774 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2775 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2776 if we just hit it.
2777 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2778 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2779 from run to run.
2780 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2781 after the inferior has been forked.
2782 (remove_dbx_link_breakpoint): New function.
2783 (dbx_link_addr): New function.
2784 (insert_dbx_link_bpt_in_file): New function.
2785 (insert_dbx_link_bpt_in_region): New function.
2786 (insert_dbx_link_breakpoint): New function.
2787 (proc_trace_syscalls_1): New function, extracted from
2788 proc_trace_syscalls.
2789 (proc_trace_syscalls): Replace extract code by call to
2790 proc_trace_syscalls_1.
2791 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2792 is no longer valid.
2793
2794 2004-08-25 Jim Blandy <jimb@redhat.com>
2795
2796 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2797
2798 2004-08-25 Andrew Cagney <cagney@gnu.org>
2799
2800 * infrun.c (struct execution_control_state): Delete field
2801 "stepping_through_sigtramp".
2802 (init_execution_control_state): Do not set same.
2803 (context_switch): Do not pass same to save_infrun_state and
2804 load_infrun_state.
2805 * gdbthread.h (struct thread_info): Delete field
2806 stepping_through_sigtramp.
2807 (save_infrun_state, load_infrun_state): Delete parameter
2808 stepping_through_sigtramp.
2809 * thread.c (load_infrun_state, save_infrun_state): Update.
2810
2811 * infrun.c: Re-indent. Move expression operators to the beginning
2812 of the line. Remove long disabled #if 0 code.
2813
2814 2004-08-24 Andrew Cagney <cagney@gnu.org>
2815
2816 * doublest.h (floatformat_ieee_quad): Rename
2817 floatformat_ia64_quad.
2818 * doublest.c (floatformat_ieee_quad): Rename
2819 floatformat_ia64_quad.
2820 (_initialize_doublest): Update.
2821
2822 2004-08-24 Jim Blandy <jimb@redhat.com>
2823
2824 * dwarf2expr.h (struct dwarf_expr_context): New members
2825 'num_pieces' and 'pieces', for returning the result of an
2826 expression that uses DW_OP_piece.
2827 (struct dwarf_expr_piece): New struct type.
2828 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2829 pieces.
2830 (free_dwarf_expr_context): Free pieces, if any.
2831 (add_piece): New function.
2832 (execute_stack_op): Implement DW_OP_piece.
2833 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2834 expression is a list of pieces, print an error message.
2835 (dwarf2_loc_desc_needs_frame): If the expression yields
2836 pieces, and any piece is in a register, then we need a frame.
2837
2838 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2839 the stack until we've decided what sort of result the evaluation
2840 has produced. Use separate variables, with more specific names.
2841
2842 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2843
2844 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2845 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2846 (arm_netbsd_init_abi_common): Register them.
2847
2848 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2849
2850 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2851
2852 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2853 safe_frame_unwind_memory instead of target_read_memory.
2854
2855 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2856 Reorder includes.
2857 (fetch_register, store_register): Remove prototypes.
2858 (child_resume): Reorganize code and comments such that it is
2859 grouped a bit more logically.
2860 (attach): Explicitly compare errno against 0.
2861 (detach): Likewise. Use perror_with_name instead of
2862 print_sys_errmsg.
2863 * Makefile.in (infptrace.o): Update dependencies.
2864
2865 * ia64-linux-nat.c: Update copyright year.
2866 (fetch_debug_register, store_debug_register)
2867 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2868 PTRACE_TYPE_ARG3.
2869 * config/ia64/nm-linux.h: Update copyright year.
2870 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2871
2872 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2873 from CORE_ADDR to struct frame_info *. Use
2874 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2875 (amd64_linux_sigtramp_p): Adjust for changed signature of
2876 and64_linux_sigtramp_start
2877
2878 * gdb_ptrace.h: GNU/Linux.
2879
2880 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2881 Remove defines.
2882
2883 * infptrace.c: Include "gdb_assert.h".
2884 (PTRACE_XFER_TYPE): Remove define.
2885 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2886 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2887 Tweak comment.
2888 (fetch_inferior_registers, store_inferior_registers): Remove
2889 redundant culry braces. Tweak comment. s/regno/regnum.
2890 * Makefile.in (infptrace.o): Update dependencies.
2891
2892 * configure.in: Change test for return type of ptrace to default
2893 to `long' instead of `int'.
2894 * configure: Regenerate.
2895
2896 2004-08-21 Mark Kettenis <kettenis@gnu.org>
2897
2898 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
2899
2900 * configure.in: Check for ttrace function.
2901 * configure, config.in: Regenerate.
2902
2903 * gdb_ptrace.h: New file.
2904 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
2905 <sys/ptrace.h>.
2906 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
2907 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
2908 (attach): Don't define PT_ATTACH.
2909 (detach): Don't define PT_DETACH.
2910 * Makefile.in (gdb_ptrace_h): New variable.
2911 (infptrace.o): Update dependencies.
2912
2913 2004-08-16 Mark Kettenis <kettenis@gnu.org>
2914
2915 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
2916 instead of `int' if not already defined.
2917 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
2918 PTRACE_TYPE_ARG3.
2919 * infptrace.c (call_ptrace): Revert change that replaced
2920 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2921
2922 2004-08-15 Mark Kettenis <kettenis@gnu.org>
2923
2924 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2925 Remove defines.
2926
2927 * linux-nat.c (kill_inferior): Add missing third and fourth
2928 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
2929
2930 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
2931 PTRACE_TYPE_RET.
2932
2933 * proc-why.c (proc_prettyfprint_why): Fix format string.
2934
2935 * solib-osf.c (osf_current_sos): Remove unsused label.
2936
2937 * configure.in: Add <ncurses/ncurses.h> to the list of possible
2938 curses headers.
2939 * configure, config.in: Regenerate.
2940 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
2941 <ncurses/ncurses.h>.
2942
2943 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
2944 * config/nm-nbsd.h: Update copyright year.
2945 (PTRACE_ARG3_TYPE): Remove define.
2946
2947 * sparc-nat.c (fetch_inferior_registers)
2948 (store_inferior_registers, sparc_xfer_wcookie):
2949 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2950
2951 * alphabsd-nat.c (fetch_inferior_registers):
2952 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2953 PTRACE_TYPE_ARG3.
2954 * amd64bsd-nat.c (fetch_inferior_registers)
2955 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2956 PTRACE_TYPE_ARG3.
2957 * armnbsd-nat.c: Update copyright year.
2958 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2959 (store_register, store_regs, store_fp_register, store_fp_regs):
2960 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2961 * hppabsd-nat.c (fetch_inferior_registers)
2962 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2963 PTRACE_TYPE_ARG3.
2964 * i386bsd-nat.c (fetch_inferior_registers)
2965 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2966 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2967 * m68kbsd-nat.c (fetch_inferior_registers)
2968 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2969 PTRACE_TYPE_ARG3.
2970 * m88kbsd-nat.c (fetch_inferior_registers)
2971 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2972 PTRACE_TYPE_ARG3.
2973 * mipsnbsd-nat.c: Update copyright year.
2974 (fetch_inferior_registers, store_inferior_registers):
2975 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2976 * ns32knbsd-nat.c: Update copyright year.
2977 (fetch_inferior_registers, store_inferior_registers):
2978 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2979 * ppcnbsd-nat.c (fetch_inferior_registers):
2980 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2981 PTRACE_TYPE_ARG3.
2982 * ppcobsd-nat.c (fetch_inferior_registers):
2983 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2984 PTRACE_TYPE_ARG3.
2985 * shnbsd-nat.c: Update copyright year.
2986 (fetch_inferior_registers, store_inferior_registers):
2987 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2988 * vaxbsd-nat.c (fetch_inferior_registers)
2989 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2990 PTRACE_TYPE_ARG3.
2991
2992 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2993 PTRACE_TYPE_ARG3.
2994 * infptrace.c (call_ptrace, child_resume, attach, detach)
2995 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2996 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2997 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2998 PTRACE_TYPE_ARG3.
2999
3000 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3001
3002 * defs.h: Remove out-of-date comment.
3003 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3004 [!GETENV_PROVIDED] (getenv): Remove prototype.
3005
3006 * standalone.c: Remove file.
3007 * Makefile.in (standalone.o): Remove dependency.
3008
3009 * i386-linux-nat.c (dummy_sse_values): Remove function and
3010 prototype.
3011 (i386_linux_dr_get): Fix typo in comment.
3012 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3013
3014 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3015
3016 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3017 from declaration.
3018 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3019 from definition.
3020
3021 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3022
3023 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3024 parenthesis in definition.
3025 * configure: Regenerated.
3026
3027 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3028
3029 * PROBLEMS: Mention build/1411.
3030
3031 2004-08-09 Robert Millan <robertmh@gnu.org>
3032
3033 Committed by Nathanael Nerode.
3034 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3035 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3036
3037 2004-08-12 Andrew Cagney <cagney@gnu.org>
3038
3039 * NEWS: Mention fixes in GDB 6.2.1.
3040 * PROBLEMS: Remove mention of mips-irix.
3041
3042 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3043
3044 * config/powerpc/xm-aix.h: Delete.
3045 * config/powerpc/aix.mh (MH_FILE): Remove.
3046 * config/powerpc/aix432.mh (MH_FILE): Remove.
3047
3048 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3049
3050 * config/powerpc/aix.mh: Remove obsolete comment.
3051 * config/powerpc/aix432.mh: Likewise.
3052
3053 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3054
3055 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3056
3057 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3058
3059 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3060 this file is now empty.
3061 * config/xm-aix4.h: Remove, this file is no longer included
3062 anywhere.
3063
3064 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3065
3066 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3067 that file is now empty.
3068 (termdef): Remove prototype, function no longer used.
3069
3070 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3071
3072 * doc/gdbint.texinfo (Host Definition): Remove documentation
3073 for USE_O_NOCTTY, no longer used.
3074 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3075 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3076
3077 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3078
3079 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3080 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3081 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3082
3083 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3084
3085 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3086 instead of FIVE_ARG_PTRACE.
3087
3088 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3089 (new_tty): Use O_NOCTTY unconditionally.
3090
3091 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3092
3093 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3094 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3095 fflush on stdout.
3096
3097 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3098
3099 * xcoff_symfile_finish: Replace last call to xmfree by call
3100 to xfree.
3101
3102 2004-08-10 Andrew Cagney <cagney@gnu.org>
3103
3104 * main.c (captured_main): Delete call to init_malloc.
3105 * defs.h (init_malloc): Delete declaration.
3106 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3107 (init_malloc): Delete functions.
3108
3109 * defs.h (xmfree): Delete.
3110 * utils.c (xmfree): Delete function.
3111 (xfree): Inline calls to xmfree and mfree.
3112 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3113 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3114 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3115 * somread.c (som_symfile_finish): Ditto.
3116 * objfiles.c (allocate_objfile, free_objfile):
3117 * nlmread.c (nlm_symfile_finish): Ditto.
3118 * hpread.c (hpread_symfile_finish): Ditto.
3119 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3120 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3121 * coffread.c (coff_symfile_finish): Ditto.
3122
3123 * defs.h (xmcalloc): Delete declaration.
3124 * utils.c (xmcalloc): Delete.
3125 (xcalloc): Inline calls to xmcalloc and mcalloc.
3126 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3127 xcalloc and xfree.
3128 * symtab.c (create_demangled_names_hash): Ditto.
3129
3130 * defs.h (xmrealloc): Delete.
3131 * utils.c (xmrealloc): Delete.
3132 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3133 * symmisc.c (extend_psymbol_list): Use xrealloc.
3134 * source.c (find_source_lines): Ditto.
3135 * hpread.c (hpread_lookup_type): Ditto.
3136 * dbxread.c (add_bincl_to_list): Ditto.
3137
3138 * utils.c (xmmalloc): Delete.
3139 (xmalloc): Inline xmmalloc and mmalloc calls.
3140 (msavestring): Use xmalloc.
3141 * defs.h (xmmalloc): Delete declaration.
3142 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3143 xmmalloc.
3144 * symmisc.c (extend_psymbol_list): Ditto.
3145 * symfile.c (init_psymbol_list): Ditto.
3146 * source.c (find_source_lines): Ditto.
3147 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3148 * elfread.c (elf_symtab_read): Ditto.
3149 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3150 * coffread.c (coff_symfile_init): Ditto.
3151
3152 2004-08-10 David Carlton <carlton@bactrian.org>
3153
3154 * MAINTAINERS: Remove David Carlton from c++ testsuite
3155 maintainers.
3156
3157 2004-08-10 Jerome Guitton <guitton@gnat.com>
3158
3159 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3160 print a line feed before the prompt.
3161
3162 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3163
3164 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3165
3166 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3167
3168 General cleanup of the AIX xm include file:
3169 * config/xm-aix4.h (fd_set): Remove undefine.
3170 Remove include of <sys/select.h>.
3171 (HAVE_TERMIO): Remove define.
3172 (USG): Likewise.
3173 (NULL): Remove redefine.
3174 (alloca): Remove #pragma.
3175 (vfork): Remove define.
3176 (termdef): Remove.
3177 (SIGWINCH_HANDLER): Remove.
3178 (SIGWINCH_HANDLER_BODY): Remove.
3179
3180 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3181
3182 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3183 GDB_OSABI_OPENBSD_ELF.
3184
3185 2004-08-07 Robert Millan <robertmh@gnu.org>
3186
3187 * bsd-kvm.c: Check for nlist.h before including it.
3188
3189 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3190
3191 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3192 sigcontext' offset consistency checks for ancient BSD.
3193
3194 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3195
3196 * configure.in: Check for <sys/types.h>. Check return and
3197 argument types of ptrace.
3198 * configure, config.in: Regenerate.
3199
3200 2004-08-09 Jim Blandy <jimb@redhat.com>
3201
3202 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3203 rs6000_register_sim_regno): Doc fixes.
3204
3205 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3206
3207 * mips-tdep.c: Include "floatformat.h".
3208 (n32n64_floatformat_always_valid): New function.
3209 (floatformat_n32n64_long_double_big): New constant.
3210 (mips_gdbarch_init): Set size and format of long double
3211 for N32 and N64 ABIs.
3212 * Makefile.in (mips-tdep.o): Update dependencies.
3213
3214 2004-08-08 Andrew Cagney <cagney@gnu.org>
3215
3216 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3217 print. Improve script's error messages.
3218 * gdbarch.h: Re-generate.
3219
3220 * gdbarch.sh (pformat): New function.
3221 (float_format, double_format, long_double_format): List with bit
3222 members. Use pformat when printing.
3223 * gdbarch.c, gdbarch.h: Re-generate.
3224
3225 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3226
3227 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3228 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3229 (ppcnbsd_supply_pcb): New function.
3230 (_initialize_ppcnbsd_nat): New prototype and function.
3231 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3232 (LOADLIBES): New variable.
3233 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3234
3235 2004-08-08 Andrew Cagney <cagney@gnu.org>
3236
3237 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3238 (builtin_type_ieee_double, builtin_type_ia64_quad)
3239 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3240 BE/LE floating-point types.
3241 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3242 (builtin_type_ieee_double, builtin_type_ia64_quad)
3243 (builtin_type_ia64_spill): Declare.
3244 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3245 (floatformat_ieee_double, floatformat_arm_ext)
3246 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3247 of LE/BE floatformats.
3248 * doublest.h: (struct floatformat, floatformat_ieee_single)
3249 (floatformat_ieee_double, floatformat_arm_ext)
3250 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3251
3252 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3253
3254 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3255
3256 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3257 instead of regcache_raw_supply when storing the registers.
3258
3259 * i386gnu-nat.c: Update copyright year.
3260 (gnu_store_registers): Don't use deprecated_registers and
3261 deprecated_registers_valid. Use regcache_valid_p and
3262 regcache_raw_supply instead.
3263
3264 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3265 frame_pc_unwind.
3266
3267 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3268 variables. Incapitalized "process".
3269
3270 * configure.in: Add cursesX to the list of possible curses libs.
3271 Add cursesX.h to the list of possible curses headers.
3272 * configure, config.in: Regenerate.
3273
3274 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3275
3276 * configure.in: Test for struct lwp in <sys/lwp.h>.
3277 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3278 the offset of l_addr in struct lwp.
3279
3280 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3281
3282 * bsd-kvm.c: Include "gdbcore.h"
3283 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3284
3285 2004-08-07 Andrew Cagney <cagney@gnu.org>
3286
3287 * gdbtypes.c (build_flt, build_complex): New functions.
3288 (gdbtypes_post_init): Use.
3289
3290 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3291
3292 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3293 through to builtin_type_uint128.
3294
3295 * c-exp.y: Use builtin_type function to obtain builtin types.
3296
3297 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3298 builtin_uint128.
3299 * gdbtypes.c (gdbtypes_post_init): Update.
3300 (build_gdbtypes): Move initialization of builtin_type_int0
3301 through to builtin_type_uint128 from here ...
3302 (_initialize_gdbtypes): ... to here.
3303 * d10v-tdep.c (d10v_register_type): Update.
3304
3305 * doublest.c: Update copyright.
3306 (floatformat_from_length): Call error when floatformat is NULL.
3307 (extract_floating_by_length): Remove NULL fmt check.
3308 (store_floating_by_length): Ditto.
3309
3310 2004-08-07 Andrew Cagney <cagney@gnu.org>
3311
3312 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3313 that the register is valid.
3314
3315 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3316
3317 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3318 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3319 struct frame_info *. Use safe_frame_unwind_memory instead of
3320 deprecated_read_memory_nobpt.
3321 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3322 changed signature of i386_linux_sigtramp_start and
3323 i386_linux_rt_sigtramp_start.
3324
3325 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3326 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3327 instead of deprecated_read_memory_nobpt.
3328 (i386nbsd_sigtramp_p): Adjust for changed signature of
3329 i386nbsd_sigtramp_offset.
3330
3331 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3332 safe_frame_unwind_memory instead of target_read_memory.
3333
3334 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3335 !NO_SYS_FILE.
3336 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3337 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3338 (_initialize_kernel_u_addr): Remove prototype and function.
3339 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3340 !NO_SYS_FILE.
3341 * xcoffread.c: Likewise.
3342
3343 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3344
3345 * vax-nat.c: New file.
3346 * vaxbsd-nat.c: Tweak comment.
3347 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3348 vaxnbsd-tdep.c.
3349 (vax-nat.o): New dependency.
3350 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3351 (vax-*-ultrix2*): Remove.
3352 * config/vax/vax.mh: New file.
3353 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3354 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3355 (vax_register_u_addr): New prototype.
3356 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3357 * config/vax/vaxult2.mh: Remove file.
3358 * config/vax/vaxult.mh: Remove file.
3359 * config/vax/vaxbsd.mh: Remove file.
3360 * config/vax/vax.mt (TM_FILE): Remove.
3361 * config/vax/tm-vaxbsd.h: Remove file.
3362
3363 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3364
3365 * aix-thread.c (get_signaled_thread): New function.
3366 (iter_trap): Delete, no longer used.
3367 (iter_tid): New function.
3368 (pd_update): Find the thread that received the SIGTRAP signal
3369 by first locating the kernel thread, and then finding its
3370 associated thread.
3371
3372 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3373
3374 * lin-lwp.c (child_wait): Continue inferior after processing
3375 PTRACE_EVENT_CLONE event.
3376
3377 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3378
3379 * MAINTAINERS: Add self to Write-After-Approval.
3380
3381 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3382
3383 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3384 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3385
3386 2004-08-05 Andrew Cagney <cagney@gnu.org>
3387
3388 * config/xm-sysv4.h: Delete file.
3389 * config/mips/xm-irix5.h: Delete file.
3390 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3391 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3392 * config/ia64/xm-aix.h: Delete file.
3393 * config/ia64/aix.mh (XM_FILE): Delete.
3394 * config/pa/xm-hppah.h: Delete file.
3395 * config/pa/hpux11w.mh (XM_FILE): Delete.
3396 * config/pa/hpux11.mh (XM_FILE): Delete.
3397 * config/pa/hpux1020.mh (XM_FILE): Delete.
3398 * config/pa/hppahpux.mh (XM_FILE): Delete.
3399
3400 * config/alpha/xm-alphalinux.h: Delete file.
3401 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3402 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3403 * config/alpha/xm-alphaosf.h: Delete file.
3404 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3405 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3406 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3407 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3408
3409 * config/i386/xm-i386v.h: Delete file.
3410 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3411 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3412 * config/i386/xm-i386sco.h: Delete file.
3413 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3414 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3415 * config/i386/xm-i386v4.h: Delete file.
3416 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3417 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3418 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3419 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3420
3421 * config/vax/xm-vax.h: Delete file.
3422 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3423 * config/vax/xm-vaxult2.h: Delete file.
3424 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3425 * config/vax/vaxult2.mh (XM_FILE): Delete.
3426 * config/vax/xm-vaxult.h: Delete file.
3427 * config/vax/vaxult.mh (XM_FILE): Delete.
3428 * config/vax/xm-vaxbsd.h: Delete file.
3429 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3430
3431 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3432 * gdbarch.h, gdbarch.c: Re-generate.
3433 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3434 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3435 * frame.h: Delete deprecated_read_fp from comments.
3436 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3437 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3438
3439 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3440
3441 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3442 trampoline in OpenBSD 3.5-current.
3443
3444 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3445 SSE registers.
3446
3447 * Makefile.in: Remove embedded page breaks.
3448
3449 2004-08-04 Jim Blandy <jimb@redhat.com>
3450
3451 * regcache.c (regcache_raw_read): Assert that, after calling
3452 target_fetch_registers, the register we're reading is cached.
3453
3454 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3455 a call to 'internal_error', with a more helpful error message.
3456 * rs6000-tdep.c (e500_pseudo_register_read,
3457 e500_pseudo_register_write, rs6000_store_return_value): Same.
3458
3459 2004-08-04 Andrew Cagney <cagney@gnu.org>
3460
3461 * Makefile.in: Update dependencies.
3462
3463 2004-08-04 Jim Blandy <jimb@redhat.com>
3464
3465 Change the layout of the PowerPC E500 raw register cache to allow
3466 the lower 32-bit halves of the GPRS to be their own raw registers,
3467 not pseudoregisters.
3468 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3469 add ppc_ev0_upper_regnum flag.
3470 * rs6000-tdep.c: #include "reggroups.h".
3471 (spe_register_p): Recognize the ev upper half registers as SPE
3472 registers.
3473 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3474 registers.
3475 (e500_move_ev_register): New function.
3476 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3477 vector registers are the pseudo-registers now, formed by splicing
3478 together the gprs and the upper-half registers.
3479 (e500_register_reggroup_p): New function.
3480 (P): Macro deleted.
3481 (P8, A4): New macro.
3482 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3483 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3484 macros.
3485 (registers_e500): Rearrange register set so that the raw register
3486 set contains 32-bit GPRs and upper-half registers, and the SPE
3487 vector registers become pseudo-registers.
3488 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3489 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3490 register numbers are now the same for the E500 as they are for
3491 other PowerPC variants. Register e500_register_reggroup_p as the
3492 register group function for the E500.
3493 * Makefile.in (rs6000-tdep.o): Update dependencies.
3494
3495 Adapt PPC E500 native support to the new raw regcache layout.
3496 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3497 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3498 (fetch_spe_register, store_spe_register): Handle fetching/storing
3499 all the SPE registers at once, if regno == -1. These now take
3500 over the job of fetch_spe_registers and store_spe_registers.
3501 (fetch_spe_registers, store_spe_registers): Deleted.
3502 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3503 unconditionally; they're always raw. Fetch/store SPE upper half
3504 registers, if present, instead of ev registers.
3505 (fetch_register, store_register): Remove sanity checks: gprs are
3506 never pseudo-registers now, so we never need to even mention any
3507 registers that are ever pseudoregisters.
3508
3509 Use a fixed register numbering when communicating with the PowerPC
3510 simulator.
3511 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3512 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3513 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3514 New functions.
3515 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3516 init_sim_regno_table.
3517 * Makefile.in (gdb_sim_ppc_h): New variable.
3518 (rs6000-tdep.o): Update dependencies.
3519
3520 2004-08-02 Andrew Cagney <cagney@gnu.org>
3521
3522 * cris-tdep.c (cris_register_size): Restore function, still used
3523 locally.
3524
3525 * gdbarch.sh (deprecated_target_read_fp)
3526 (deprecated_frame_locals_address, deprecated_frame_args_address)
3527 (deprecated_frame_chain_valid, deprecated_frame_chain)
3528 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3529 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3530 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3531 * gdbarch.h, gdbarch.c: Re-generate.
3532 * regcache.c (deprecated_read_fp): Do not call
3533 DEPRECATED_TARGET_READ_FP_P.
3534 * infcmd.c (default_print_registers_info): Do not call
3535 DEPRECATED_DO_REGISTERS_INFO.
3536 * frame-base.c (default_frame_locals_address): Do not call
3537 DEPRECATED_FRAME_LOCALS_ADDRESS.
3538 (default_frame_args_address): Do not call
3539 DEPRECATED_FRAME_ARGS_ADDRESS.
3540
3541 * gdbarch.sh (deprecated_register_raw_size)
3542 (deprecated_register_virtual_size:int): Delete.
3543 * gdbarch.h, gdbarch.c: Re-generate.
3544 * cris-tdep.c (cris_register_size): Delete.
3545 (cris_gdbarch_init): Update.
3546 * alpha-tdep.c (alpha_register_raw_size)
3547 (alpha_register_virtual_size): Delete.
3548 (alpha_gdbarch_init): Update.
3549
3550 * gdbarch.sh (deprecated_register_virtual_type)
3551 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3552 (deprecated_dummy_write_sp): Delete.
3553 * gdbarch.h, gdbarch.c: Re-generate.
3554
3555 * gdbarch.sh (deprecated_register_bytes): Delete.
3556 * gdbarch.h, gdbarch.c: Re-generate.
3557 * regcache.c (deprecated_register_bytes): New function.
3558 * regcache.h (deprecated_register_bytes): Declare.
3559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3560 * v850-tdep.c (v850_gdbarch_init): Update.
3561 * sh64-tdep.c (sh64_gdbarch_init): Update.
3562 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3563 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3564 * mcore-tdep.c (mcore_gdbarch_init): Update.
3565 * cris-tdep.c (cris_gdbarch_init): Update.
3566 * arm-tdep.c (arm_gdbarch_init): Update.
3567 * remote.c (init_remote_state): Update.
3568 * remote-vx.c (vx_prepare_to_store): Update.
3569 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3570 * irix5-nat.c (fetch_core_registers): Update.
3571 * cris-tdep.c (cris_register_bytes_ok): Update.
3572 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3573
3574 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3575 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3576 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3577 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3578 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3579 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3580 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3581 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3582 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3583 with mips_insn16 and mips_insn32.
3584
3585 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3586 * rs6000-tdep.c (rs6000_push_dummy_call)
3587 (rs6000_extract_return_value): Use register_size.
3588 * xstormy16-tdep.c (xstormy16_get_saved_register)
3589 (xstormy16_extract_return_value): Ditto.
3590 * valops.c (value_assign): Ditto.
3591 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3592 * v850-tdep.c (v850_extract_return_value): Ditto.
3593 * tracepoint.c (collect_symbol): Ditto.
3594 * target.c (debug_print_register): Ditto.
3595 * stack.c (frame_info): Ditto.
3596 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3597 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3598 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3599 (store_register_using_P): Ditto.
3600 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3601 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3602 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3603 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3604 * regcache.c (deprecated_read_register_bytes)
3605 (deprecated_write_register_bytes, read_register)
3606 (write_register): Ditto.
3607 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3608 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3609 * monitor.c (monitor_supply_register, monitor_fetch_register)
3610 (monitor_store_register): Ditto.
3611 * mn10300-tdep.c (mn10300_pop_frame_regular)
3612 (mn10300_print_register): Ditto.
3613 * mipsv4-nat.c (fill_fpregset): Ditto.
3614 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3615 (mips64_fill_fpregset): Ditto.
3616 * mi/mi-main.c (register_changed_p, get_register)
3617 (mi_cmd_data_write_register_values): Ditto.
3618 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3619 * irix5-nat.c (fill_gregset, fetch_core_registers):
3620 * infrun.c (write_inferior_status_register): Ditto.
3621 * infptrace.c (fetch_register, store_register): Ditto.
3622 * infcmd.c (default_print_registers_info): Ditto.
3623 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3624 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3625 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3626 * hpux-thread.c (hpux_thread_fetch_registers)
3627 (hpux_thread_store_registers): Ditto.
3628 * hppah-nat.c (store_inferior_registers, fetch_register):
3629 * findvar.c (value_from_register): Ditto.
3630 * dve3900-rom.c (fetch_bitmapped_register):
3631 * cris-tdep.c (cris_gdbarch_init): Ditto.
3632 * alpha-tdep.h: Ditto.
3633 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3634
3635 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3636 DEPRECATED_REGISTER_RAW_SIZE from comments.
3637 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3638 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3639 DEPRECATED_REGISTER_RAW_SIZE.
3640 * findvar.c (value_of_register): Simplify by assuming that the
3641 registers raw and virtual sizes are identical.
3642 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3643 comment.
3644 * arch-utils.c (generic_register_size): Simplify by assuming
3645 register_type.
3646
3647 * regcache.c (legacy_read_register_gen, real_register)
3648 (legacy_write_register_gen): Delete, not used.
3649
3650 * regcache.c (struct regcache_descr): Delete legacy_p.
3651 (init_legacy_regcache_descr): Delete function.
3652 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3653 Do not use deprecated register functions.
3654 (regcache_raw_read, deprecated_write_register_gen):
3655 (deprecated_read_register_gen, regcache_raw_write): Delete code
3656 predicated on legacy_p.
3657 (register_size): Delete check against register raw size.
3658
3659 * cris-tdep.c (cris_register_type): Replace
3660 cris_register_virtual_type.
3661 (cris_gdbarch_init): Update, set register_type.
3662
3663 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3664 * gdbarch.h, gdbarch.c: Re-generate.
3665 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3666 (arm_gdbarch_init) Do not set frameless function invocation.
3667 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3668 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3669 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3670 (frv_gdbarch_init): Do not set frameless function invocation.
3671 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3672 * sh-tdep.c (sh_gdbarch_init): Ditto.
3673 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3674 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3675 * avr-tdep.c (avr_gdbarch_init): Ditto.
3676
3677 * blockframe.c (legacy_frame_chain_valid): Delete function.
3678
3679 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3680 and pc. Update comments.
3681 (pc_in_dummy_frame): Delete function.
3682 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3683 use the "id".
3684 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3685 call_hi, top and pc, use the id.
3686 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3687
3688 * dummy-frame.c: Include "gdb_string.h".
3689 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3690 (generic_save_dummy_frame_tos): Delete.
3691 (dummy_frame_push): New function, replaces above.
3692 * dummy-frame.h: Update copyright.
3693 (dummy_frame_push): Declare.
3694 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3695 (generic_save_call_dummy_addr): Delete declarations.
3696 * infcall.c: Include "dummy-frame.h".
3697 (call_function_by_hand): Add locals caller_regcache,
3698 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3699 with call to frame_save_as_regcache plus cleanup. Delete calls to
3700 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3701 Move clear_proceed_status to just before the resume, add call to
3702 dummy_frame_push (discard cleanup).
3703 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3704 (dummy-frame.o): Add $(gdb_string_h).
3705
3706 2004-08-01 Andrew Cagney <cagney@gnu.org>
3707
3708 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3709 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3710 * dummy-frame.c (find_dummy_frame): Delete.
3711 (struct dummy_frame_cache, dummy_frame_sniffer)
3712 (dummy_frame_prev_register, dummy_frame_this_id)
3713 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3714 frame unwinder using a dummy_frame_cache.
3715
3716 2004-08-01 Andrew Cagney <cagney@gnu.org>
3717
3718 * frame.h (frame_save_as_regcache): Declare.
3719 * frame.c (frame_save_as_regcache): New function.
3720 (do_frame_read_register): Replace do_frame_unwind_register.
3721 (frame_pop): Use frame_save_as_regcache.
3722 * dummy-frame.c (generic_push_dummy_frame): Use
3723 frame_save_as_regcache.
3724
3725 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3726
3727 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3728 file as included until we record the first line in the linetable.
3729
3730 2004-08-01 Andrew Cagney <cagney@gnu.org>
3731
3732 * frame.h (deprecated_pop_dummy_frame)
3733 (deprecated_read_register_dummy)
3734 (deprecated_generic_find_dummy_frame): Delete.
3735 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3736 (deprecated_read_register_dummy)
3737 (deprecated_find_dummy_frame_regcache)
3738 (discard_innermost_dummy)
3739 (deprecated_pop_dummy_frame): Delete.
3740 (dummy_frame_this_id): Simplify.
3741 (struct dummy_frame): Delete "fp" and "sp".
3742 (find_dummy_frame): Simplify.
3743 (generic_push_dummy_frame): Do not set "fp" or "sp".
3744 (fprint_dummy_frames): Do not print "fp" and "sp"
3745
3746 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3747
3748 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3749 (struct i386_insn): New structure.
3750 (i386_match_insn): New function.
3751 (i386_frame_setup_skip_insns): New variable.
3752 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3753 array i386_frame_setup_insns of instructions that should be
3754 skipped inside the frame setup sequence.
3755
3756 2004-08-01 Andrew Cagney <cagney@gnu.org>
3757
3758 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3759 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3760 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3761 * stack.c (frame_info): Delete references to
3762 DEPRECATED_FRAME_INIT_SAVED_REGS and
3763 deprecated_get_frame_saved_regs.
3764 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3765 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3766 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3767 (frame_unwind_register_signed)
3768 (frame_unwind_register_unsigned)
3769 (frame_unwind_unsigned_register): Use register_size.
3770 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3771 (deprecated_frame_xmalloc_with_cleanup)
3772 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3773 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3774
3775 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3776 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3777 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3778 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3779
3780 * infcall.c (call_function_by_hand): Do not use
3781 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3782 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3783 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3784 DEPRECATED_STACK_ALIGN.
3785
3786 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3787
3788 Committed by Andrew Cagney.
3789 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3790
3791 2004-08-01 Andrew Cagney <cagney@gnu.org>
3792
3793 * mips-tdep.c (mips16_frame_cache)
3794 (mips16_frame_this_id, mips16_frame_prev_register)
3795 (mips16_frame_unwind, mips16_frame_sniffer)
3796 (mips16_frame_base_address, mips16_frame_base)
3797 (mips16_frame_base_sniffer, mips32_frame_cache)
3798 (mips32_frame_this_id, mips32_frame_prev_register)
3799 (mips32_frame_unwind, mips32_frame_sniffer)
3800 (mips32_frame_base_address, mips32_frame_base)
3801 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3802 separate heuristic mips16 and mips32 unwinders.
3803 (mips_stub_frame_cache, mips_stub_frame_this_id)
3804 (mips_stub_frame_prev_register)
3805 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3806 (mips_stub_frame_base_address, mips_stub_frame_base)
3807 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3808 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3809 match true mdebug frames.
3810 (non_heuristic_proc_desc): Add forward declaration.
3811
3812 2004-08-01 Andrew Cagney <cagney@gnu.org>
3813
3814 * config/mips/tm-irix6.h: Delete file.
3815 * config/mips/tm-irix5.h: Delete file.
3816 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3817 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3818
3819 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3820 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3821 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3822 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3823 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3824 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3825 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3826 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3827 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3828 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3829 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3830 (TARGET_SIGNAL_RAW_VALUES): Delete.
3831 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3832 Delete.
3833 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3834 (TARGET_HW_WATCH_LIMIT): Delete.
3835 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3836 * minimon.h: Delete file.
3837
3838 * trad-frame.c (trad_frame_get_this_base)
3839 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3840 functions.
3841 * trad-frame.h (trad_frame_set_this_base)
3842 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3843
3844 2004-07-31 Andrew Cagney <cagney@gnu.org>
3845
3846 * trad-frame.c (trad_frame_get_prev_register): Rename
3847 trad_frame_get_prev_register.
3848 * vax-tdep.c (vax_frame_prev_register): Update.
3849 * trad-frame.h: Update.
3850 * trad-frame.c (trad_frame_get_register): Update.
3851 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3852 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3853 Update.
3854 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3855 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3856 Update.
3857 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3858 Update.
3859 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3860 Update.
3861 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3862 Update.
3863 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3864 Update.
3865 * s390-tdep.c (s390_frame_prev_register)
3866 (s390_stub_frame_prev_register)
3867 (s390_sigtramp_frame_prev_register): Update.
3868 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3869 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3870 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3871 * m88k-tdep.c (m88k_frame_prev_register)
3872 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3873 * m32r-tdep.c (m32r_frame_prev_register): Update.
3874 * hppa-tdep.c (hppa_frame_prev_register_helper)
3875 * frv-tdep.c (frv_frame_prev_register): Update.
3876 * d10v-tdep.c (d10v_frame_prev_register): Update.
3877 * cris-tdep.c (cris_frame_prev_register): Update.
3878 * avr-tdep.c (avr_frame_prev_register): Update.
3879 * arm-tdep.c (arm_prologue_prev_register)
3880 (arm_sigtramp_prev_register): Update.
3881
3882 2004-07-31 Andrew Cagney <cagney@gnu.org>
3883
3884 * frame.h (legacy_saved_regs_unwind)
3885 (legacy_frame_chain_valid, legacy_frame_p)
3886 (enum frame_type): Delete UNKNOWN_FRAME.
3887 * dummy-frame.c (dummy_frame_this_id): Simplify.
3888 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3889 * frame.c (struct frame_info): Delete the field "type".
3890 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
3891 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
3892 (legacy_saved_regs_unwind, legacy_frame_p)
3893 (frame_type_from_pc): Delete.
3894 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
3895 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
3896
3897 2004-07-31 Mark Kettenis <kettenis@gnu.org>
3898
3899 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
3900 indentation.
3901
3902 * mips-nat.c: Remove file.
3903 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
3904 (mips-nat.o): Remove dependency.
3905
3906 * infptrace.c: Update copyright year.
3907 (fetch_register): Pass NULL in regcache_raw_supply call instead of
3908 explicitly setting the buffer to all zeroes.
3909
3910 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
3911 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
3912
3913 2004-07-30 Andrew Cagney <cagney@gnu.org>
3914
3915 * GDB 6.2 released from gdb_6_2-branch.
3916
3917 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
3918
3919 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
3920
3921 * exec.c (exec_file_attach):
3922 * nto-tdep.c (nto_find_and_open_solib):
3923 * pa64solib.c (pa64_solib_sizeof_symbol_table):
3924 * solib.c (solib_open):
3925 * somsolib.c (som_solib_sizeof_symbol_table):
3926 * source.c (is_regular_file, openp, open_source_file):
3927 * symfile.c (symfile_bfd_open):
3928 * wince.c (upload_to_device): Differentiate between the search for
3929 binary and source files.
3930
3931 2004-07-30 Andrew Cagney <cagney@gnu.org>
3932
3933 * complaints.c (_initialize_complaints): Pass NULL to
3934 add_setshow_zinteger_cmd for help_doc.
3935 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
3936
3937 2004-07-30 Andrew Cagney <cagney@gnu.org>
3938
3939 Fix PR i18n/761.
3940 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
3941 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
3942 $(PACKAGE).pot and update-po.
3943 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
3944 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
3945 (update-po): New rules.
3946 (localedir): Define using autoconf.
3947 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3948 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3949 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3950 * configure.in: Generate CATALOGS and LINGUAS from contents of
3951 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3952 * configure: Re-generate.
3953 * po/gdbtext: New file
3954
3955 2004-07-30 Jerome Guitton <guitton@gnat.com>
3956
3957 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3958 order.
3959
3960 2004-07-30 David Lecomber <dsl@sources.redhat.com>
3961
3962 * dwarf2read.c (read_file_scope): Set producer if attribute
3963 present.
3964 (struct dwarf2_cu): Added new member producer.
3965
3966 2004-07-30 Jerome Guitton <guitton@gnat.com>
3967
3968 * inflow.c (kill_command): release file handles in BFD.
3969 * exec.c (exec_file_attach): Ditto.
3970 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3971
3972 2004-07-29 Andrew Cagney <cagney@gnu.org>
3973
3974 * PROBLEMS (mips-irix): Note that it is broken.
3975
3976 2004-07-29 Andrew Cagney <cagney@gnu.org>
3977
3978 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3979 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3980
3981 * config/xm-nbsd.h: Delete file.
3982 * config/arm/xm-nbsd.h: Delete file.
3983 * config/i386/xm-nbsd.h: Delete file.
3984 * config/ns32k/xm-nbsd.h: Delete file.
3985 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3986 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3987 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3988 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3989 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3990
3991 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3992 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3993 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3994 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3995 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3996 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3997
3998 * config/powerpc/xm-linux.h: Delete empty file.
3999 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4000 * config/powerpc/linux.mh (XM_FILE): Delete.
4001 * config/m68k/xm-linux.h: Delete empty file.
4002 * config/m68k/linux.mh (XM_FILE): Delete.
4003 * config/ia64/xm-linux.h: Delete empty file.
4004 * config/ia64/linux.mh (XM_FILE): Delete.
4005 * config/arm/xm-linux.h: Delete empty file.
4006 * config/arm/linux.mh (XM_FILE): Delete.
4007
4008 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4009 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4010 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4011 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4012 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4013 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4014 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4015 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4016
4017 * config/m68k/xm-m68k.h: Delete file.
4018 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4019 copyright.
4020 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4021 * config/pa/xm-linux.h: Delete empty file.
4022 * config/pa/linux.mh (XM_FILE): Delete.
4023 * config/i386/xm-i386.h: Delete empty file.
4024 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4025 "i386/xm-i386.h".
4026 * config/i386/obsdaout.mh (XM_FILE): Delete.
4027 * config/i386/obsd64.mh (XM_FILE): Delete.
4028 * config/i386/fbsd64.mh (XM_FILE): Delete.
4029 * config/i386/nto.mh (XM_FILE): Delete.
4030 * config/i386/obsd.mh (XM_FILE): Delete.
4031 * config/i386/linux64.mh (XM_FILE): Delete.
4032 * config/i386/linux.mh (XM_FILE): Delete.
4033 * config/i386/i386sol2.mh (XM_FILE): Delete.
4034 * config/i386/i386gnu.mh (XM_FILE): Delete.
4035 * config/i386/fbsd.mh (XM_FILE): Delete.
4036 * config/i386/nbsd64.mh (XM_FILE): Delete.
4037
4038 2004-07-29 Andrew Cagney <cagney@gnu.org>
4039
4040 * config/pa/xm-linux.h: Do not include "floatformat.h".
4041 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4042 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4043 * config/i386/xm-i386.h: Do not include "floatformat.h".
4044 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4045 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4046 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4047 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4048 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4049 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4050 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4051 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4052 * configure, config.in: Regenerate.
4053 * configure.host (gdb_host_float_format, gdb_host_double_format)
4054 (gdb_host_long_double_format): Set according to the host.
4055
4056 2004-07-29 Andrew Cagney <cagney@gnu.org>
4057
4058 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4059
4060 2004-07-28 Andrew Cagney <cagney@gnu.org>
4061
4062 * PROBLEMS: Mention threads/1650.
4063 * NEWS: Mention the NPTL fix.
4064
4065 2004-07-28 Andrew Cagney <cagney@gnu.org>
4066
4067 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4068 (add_setshow_cmd_full): Make static.
4069 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4070 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4071 * cli/cli-decode.c (add_setshow_filename_cmd)
4072 (add_setshow_string_cmd): New functions.
4073 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4074 * mips-tdep.c (_initialize_mips_tdep): Update.
4075 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4076 * cli/cli-logging.c (_initialize_cli_logging): Update.
4077 * complaints.c (_initialize_complaints): Update.
4078 * remote.c (_initialize_remote): Update.
4079
4080 2004-07-28 Andrew Cagney <cagney@gnu.org>
4081
4082 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4083 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4084 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4085 print parameters. Make string parameters constant.
4086 * command.h: Update. Update copyright.
4087 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4088 * observer.c (_initialize_observer): Ditto.
4089 * frame.c (_initialize_frame): Ditto.
4090 * complaints.c (_initialize_complaints): Ditto.
4091 * maint.c (_initialize_maint_cmds): Ditto.
4092 * target.c (initialize_targets): Ditto.
4093 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4094 * infcall.c (_initialize_infcall): Ditto.
4095 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4096 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4097 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4098 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4099 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4100
4101 2004-07-28 Andrew Cagney <cagney@gnu.org>
4102
4103 * gdbtypes.c (lookup_primitive_typename): Delete function.
4104 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4105 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4106 * gdbtypes.c (lookup_typename): Ditto.
4107 * f-exp.y (yylex): Ditto.
4108 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4109
4110 * scm-lang.c (c_builtin_types): Delete extern declaration.
4111 (scm_language_defn): Replace
4112 string_char_type and primitive_type_vector with
4113 la_language_arch_info.
4114 * jv-lang.c (java_language_defn): Replace
4115 string_char_type and primitive_type_vector with
4116 la_language_arch_info.
4117 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4118 c_builtin_types in comment.
4119 * c-lang.h (struct language_arch_info): Declare opaque.
4120 (c_language_arch_info): Declare.
4121 (c_builtin_types): Delete declaration.
4122 * c-lang.c (c_language_arch_info): Set string_char_type to
4123 builtin_char, not builtin_true_char. Make global.
4124 (c_builtin_types): Delete array.
4125 (asm_language_defn, minimal_language_defn): Replace
4126 string_char_type and primitive_type_vector with
4127 la_language_arch_info.
4128
4129 2004-07-28 Andrew Cagney <cagney@gnu.org>
4130
4131 * gdbtypes.h (struct builtin_type): Rename true_char to
4132 builtin_true_char.
4133 * gdbtypes.c (gdbtypes_post_init): Update.
4134 * c-lang.c (arch_info): New function.
4135 (enum c_primitive_types): New enum.
4136 (c_language_defn): Instead of string_char_type and
4137 primitive_type_vector set la_language_arch_info.
4138
4139 2004-07-28 Andrew Cagney <cagney@gnu.org>
4140
4141 * language.h (struct language_arch_info): Fix typo
4142 s/primative/primitive/.
4143 * gdbtypes.c (lookup_primitive_typename): Ditto.
4144 * language.c (language_lookup_primitive_type_by_name)
4145 (unknown_language_arch_info): Ditto.
4146
4147 2004-07-27 Andrew Cagney <cagney@gnu.org>
4148
4149 * defs.h (enum language): Add nr_languages.
4150 * language.h (struct language_arch_info): Define.
4151 (struct language_defn): Add la_language_arch_info.
4152 (language_lookup_primative_type_by_name): Declare.
4153 (language_string_char_type): Declare.
4154 * language.c (_initialize_language, language_gdbarch_post_init)
4155 (struct language_gdbarch, language_gdbarch_data): Implement
4156 per-architecture language information.
4157 (unknown_language_arch_info, language_string_char_type)
4158 (language_lookup_primative_type_by_name): New functions.
4159 (unknown_language_defn, auto_language_defn)
4160 (local_language_defn): Set la_language_arch_info to
4161 unknown_language_arch_info.
4162 (unknown_builtin_types): Delete.
4163 * gdbtypes.c (lookup_primitive_typename): Use
4164 language_lookup_primative_type_by_name.
4165 (create_string_type): Use language_string_char_type.
4166 * values.c (value_from_string): Use language_string_char_type.
4167 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4168 * p-lang.c (pascal_language_defn): Ditto.
4169 * m2-lang.c (m2_language_defn): Ditto.
4170 * jv-lang.c (java_language_defn): Ditto.
4171 * objc-lang.c (objc_language_defn): Ditto.
4172 * f-lang.c (f_language_defn): Ditto.
4173 * c-lang.c (c_language_defn, cplus_language_defn)
4174 (asm_language_defn, minimal_language_defn): Ditto.
4175
4176 2004-07-27 Andrew Cagney <cagney@gnu.org>
4177
4178 * gdbtypes.h (struct builtin_type): Declare.
4179 (builtin_type): Declare.
4180 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4181 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4182 (gdbtypes_post_init): New function.
4183 (builtin_type): New function.
4184
4185 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4186
4187 * remote-m32r-sdi.c: Fix breakpoint bug.
4188 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4189 recv_char_data, recv_long_data): New functions to replace communication
4190 sequences.
4191
4192 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4193
4194 Document PR threads/1650.
4195 * PROBLEMS (Threads): Document problem with many threads
4196
4197 2004-07-26 Andrew Cagney <cagney@gnu.org>
4198
4199 * gdb-mi.el: Move from here ...
4200 * mi/gdb-mi.el: ... to here.
4201
4202 2004-07-26 Andrew Cagney <cagney@gnu.org>
4203
4204 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4205 * main.c (captured_main): When in batch mode always detach.
4206
4207 2004-07-26 Andrew Cagney <cagney@gnu.org>
4208
4209 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4210 and h8300 as broken.
4211 * NEWS: END-OF-LIFE frame compatibility module.
4212 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4213 specific comments.
4214
4215 2004-07-26 Andrew Cagney <cagney@gnu.org>
4216
4217 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4218 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4219 * wince.c (_initialize_wince): Update.
4220 * win32-nat.c (_initialize_win32_nat): Update.
4221 * varobj.c (_initialize_varobj): Update.
4222 * valops.c (_initialize_valops): Update.
4223 * utils.c (initialize_utils, initialize_utils): Update.
4224 * tui/tui-win.c (_initialize_tui_win): Update.
4225 * top.c (init_main): Update.
4226 * symfile.c (_initialize_symfile): Update.
4227 * source.c (_initialize_source): Update.
4228 * somsolib.c (_initialize_som_solib): Update.
4229 * solib.c (_initialize_solib): Update.
4230 * solib-frv.c (_initialize_frv_solib): Update.
4231 * serial.c (_initialize_serial): Update.
4232 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4233 * remote.c (_initialize_remote, _initialize_remote): Update.
4234 * remote-vx.c (_initialize_vx): Update.
4235 * remote-utils.c (_initialize_sr_support): Update.
4236 * remote-sds.c (_initialize_remote_sds): Update.
4237 * remote-mips.c (_initialize_remote_mips): Update.
4238 * remote-e7000.c (_initialize_remote_e7000): Update.
4239 * proc-api.c (_initialize_proc_api): Update.
4240 * printcmd.c: Update.
4241 * parse.c (_initialize_parse): Update.
4242 * pa64solib.c (_initialize_pa64_solib): Update.
4243 * p-valprint.c (_initialize_pascal_valprint): Update.
4244 * monitor.c (_initialize_remote_monitors): Update.
4245 * mips-tdep.c (_initialize_mips_tdep): Update.
4246 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4247 * maint.c (_initialize_maint_cmds): Update.
4248 * lin-lwp.c (_initialize_lin_lwp): Update.
4249 * language.c (_initialize_language): Update.
4250 * kod.c (_initialize_kod): Update.
4251 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4252 * i386-tdep.c (_initialize_i386_tdep): Update.
4253 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4254 * gdbarch.sh: Update.
4255 * gdbarch.c: Re-generate.
4256 * gdb-events.sh: Update.
4257 * gdb-events.c: Re-generate.
4258 * frame.c (_initialize_frame): Update.
4259 * exec.c: Update.
4260 * demangle.c (_initialize_demangler): Update.
4261 * dcache.c (_initialize_dcache): Update.
4262 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4263 * cp-valprint.c (_initialize_cp_valprint): Update.
4264 * corefile.c (_initialize_core): Update.
4265 * command.h: Update.
4266 * cli/cli-decode.h: Update.
4267 * cli/cli-cmds.c (init_cli_cmds): Update.
4268 * charset.c (_initialize_charset): Update.
4269 * breakpoint.c (_initialize_breakpoint): Update.
4270 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4271 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4272 * aix-thread.c (_initialize_aix_thread): Update.
4273
4274 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4275
4276 Partial fix for PR backtrace/1718.
4277 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4278 that GCC migrates into the prolugue. Don't handle any
4279 instructions that clobber %ebx.
4280
4281 2004-07-23 Andrew Cagney <cagney@gnu.org>
4282
4283 Use regcache_raw_collect instead of regcache_collect.
4284 * regcache.h (regcache_collect): Delete declaration.
4285 * regcache.c (regcache_colect): Delete function.
4286 * win32-nat.c (do_child_store_inferior_registers): Update.
4287 * sol-thread.c (sol_thread_store_registers): Update.
4288 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4289 * rs6000-nat.c (store_register): Update.
4290 * remote.c (store_register_using_P, remote_store_registers): Update.
4291 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4292 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4293 (fill_vrregset, store_spe_registers, fill_gregset)
4294 (fill_gregset): Update.
4295 * nto-procfs.c (procfs_store_registers): Update.
4296 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4297 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4298 * m68klinux-nat.c (store_register, fill_gregset): Update.
4299 * m68k-tdep.c (fill_gregset): Update.
4300 * infptrace.c (store_register): Update.
4301 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4302 * i386-linux-nat.c (store_register, fill_gregset): Update.
4303 * hppa-linux-nat.c (fill_gregset): Update.
4304 * go32-nat.c (store_register): Update.
4305 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4306 (store_fp_regs): Update.
4307 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4308 (store_nwfpe_extended, store_fpregister, store_fpregs)
4309 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4310 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4311 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4312 (store_regs_user_thread, store_regs_kernel_thread): Update.
4313
4314 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4315
4316 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4317 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4318 encoding.
4319 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4320 member of `struct comp_unit'.
4321
4322 2004-07-23 Andrew Cagney <cagney@gnu.org>
4323
4324 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4325 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4326
4327 2004-07-23 Martin Hunt <hunt@redhat.com>
4328 Kevin Buettner <kevinb@redhat.com>
4329
4330 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4331 alignment was being added to the offset instead of multiplied.
4332
4333 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4334
4335 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4336 changed signal trampoline in OpenBSD 3.5-current.
4337
4338 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4339 <machine/pcb.h> and "bsd-kvm.h".
4340 (sparc64nbsd_supply_pcb): New function.
4341 (_initialize_sparc64nbsd_nat): Renamed from
4342 _initialize_sparcnbsd_nat. Enable libkvm interface.
4343 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4344 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4345 (LOADLIBES): New variable.
4346
4347 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4348
4349 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4350
4351 2004-07-21 Andrew Cagney <cagney@gnu.org>
4352
4353 Use regcache_raw_supply instead of supply_register.
4354 * regcache.h (supply_register): Delete declaration.
4355 * regcache.c (supply_register): Delete function.
4356 * wince.c (do_child_fetch_inferior_registers): Update.
4357 * win32-nat.c (do_child_fetch_inferior_registers)
4358 (fetch_elf_core_registers): Update.
4359 * v850ice.c (v850ice_fetch_registers): Update.
4360 * thread-db.c (thread_db_store_registers): Update.
4361 * sol-thread.c (sol_thread_store_registers): Update.
4362 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4363 * rs6000-nat.c (fetch_register): Update.
4364 * rom68k-rom.c (rom68k_supply_one_register): Update.
4365 * remote.c (remote_wait, remote_async_wait): Update.
4366 * remote-st.c (get_hex_regs): Update.
4367 * remote-sim.c (gdbsim_fetch_register): Update.
4368 * remote-sds.c (sds_fetch_registers): Update.
4369 * remote-rdp.c (remote_rdp_fetch_register): Update.
4370 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4371 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4372 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4373 * remote-hms.c (init_hms_cmds): Update.
4374 * remote-est.c (init_est_cmds): Update.
4375 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4376 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4377 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4378 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4379 (fetch_register, supply_vrregset, supply_vrregset)
4380 (fetch_spe_registers): Update.
4381 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4382 * monitor.c (monitor_supply_register): Update.
4383 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4384 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4385 (mipsnbsd_supply_fpreg): Update.
4386 * mips-nat.c (fetch_inferior_registers)
4387 (fetch_core_registers): Update.
4388 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4389 (supply_fpregset, mips64_supply_gregset)
4390 (mips64_supply_fpregset): Update.
4391 * m68klinux-nat.c (fetch_register, supply_gregset)
4392 (supply_fpregset): Update.
4393 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4394 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4395 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4396 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4397 * infptrace.c (fetch_register): Update.
4398 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4399 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4400 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4401 (gnu_fetch_registers, gnu_store_registers): Update.
4402 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4403 * i386-linux-nat.c (fetch_register, supply_gregset)
4404 (dummy_sse_values): Update.
4405 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4406 * hppah-nat.c (fetch_register): Update.
4407 * hppa-linux-nat.c (fetch_register, supply_gregset)
4408 (supply_fpregset): Update.
4409 * go32-nat.c (fetch_register): Update.
4410 * dve3900-rom.c (fetch_bitmapped_register)
4411 (_initialize_r3900_rom): Update.
4412 * cris-tdep.c (supply_gregset): Update.
4413 * abug-rom.c (init_abug_cmds): Update.
4414 * core-aout.c (fetch_core_registers): Update.
4415 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4416 (fetch_register, fetch_fp_register): Update.
4417 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4418 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4419 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4420 * alphanbsd-tdep.c (fetch_core_registers): Update.
4421 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4422 * alpha-nat.c (fetch_osf_core_registers)
4423 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4424 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4425 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4426
4427 2004-07-21 Andrew Cagney <cagney@gnu.org>
4428
4429 * PROBLEMS: Mention breakpoints/1702.
4430 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4431 that is known to work.
4432
4433 2004-07-21 Andrew Cagney <cagney@gnu.org>
4434
4435 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4436 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4437 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4438 (handle_inferior_event): Wrap call to deprecated
4439 IGNORE_HELPER_CALL in #ifdef.
4440 * config/mips/tm-nbsd.h: Update.
4441
4442 2004-07-20 Jim Blandy <jimb@redhat.com>
4443
4444 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4445 bfd_mach_ppc has no segment registers.
4446
4447 Include PowerPC SPR numbers for special-purpose registers.
4448 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4449 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4450 new member in initializer.
4451 (S, S4, SN4, S64): New macros for defining special-purpose
4452 registers.
4453 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4454 registers_403, registers_403GC, registers_505, registers_860,
4455 registers_601, registers_602, registers_603, registers_604,
4456 registers_750, registers_e500): Use them.
4457
4458 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4459 replace references with expression used to initialize variable.
4460
4461 2004-07-20 Andrew Cagney <cagney@gnu.org>
4462
4463 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4464 read_memory_nobpt.
4465 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4466 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4467 (s390_sigtramp_frame_sniffer): Update.
4468 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4469 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4470 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4471 (mips32_fetch_instruction): Update.
4472 * mcore-tdep.c (get_insn): Update.
4473 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4474 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4475 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4476 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4477 (i386_linux_rt_sigtramp_start): Update.
4478 * i386-linux-nat.c (child_resume): Update.
4479 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4480 * hppa-linux-tdep.c (insns_match_pattern): Update.
4481 * gdbcore.h: Update.
4482 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4483 * frame.c (safe_frame_unwind_memory): Update.
4484 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4485 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4486 * alpha-tdep.c (alpha_read_insn): Update.
4487
4488 2004-07-20 Andrew Cagney <cagney@gnu.org>
4489
4490 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4491 containing both bytes and mask. Add "frame_type".
4492 * tramp-frame.c (tramp_frame_start): Update.
4493 (tramp_frame_prepend_unwinder): Update.
4494 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4495 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4496 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4497 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4498
4499 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4500
4501 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4502 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4503 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4504 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4505
4506 2004-07-17 Andrew Cagney <cagney@gnu.org>
4507
4508 * NEWS, PROBLEMS: Update for 6.2.
4509
4510 * README: Update to 6.2.
4511
4512 * utils.c (xvasprintf): Call xstrvprintf.
4513
4514 * parse.c: Update copyright.
4515 (null_post_parser): Eliminate ARGSUSED.
4516
4517 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4518 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4519 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4520
4521 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4522 * ppc-linux-nat.c: Use "Linux kernel".
4523 * hppa-linux-tdep.c: Use GNU/Linux.
4524 * hppa-linux-nat.c: Use GNU/Linux.
4525 * dwarfread.c: Add [sic] to use of Linux.
4526
4527 * hppa-linux-nat.c: Do not include <string.h>.
4528 (supply_fpregset): Remove "register" attribute.
4529
4530 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4531
4532 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4533
4534 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4535 * configure, config.in: Regenerated.
4536
4537 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4538 "bsd-kvm.h".
4539 (vaxbsd_supply_pcb): New function.
4540 (_initialize_vaxbsd_nat): New prototype and function.
4541 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4542 solib-sunos.o.
4543 (LOADLIBES): New variable.
4544 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4545 (LOADLIBES): New variable.
4546 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4547 (LOADLIBES): New variable.
4548 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4549
4550 2004-07-16 Andrew Cagney <cagney@gnu.org>
4551
4552 * defs.h (event_loop_p): Replace variable declaration with macro,
4553 always 1.
4554 * main.c (captured_main): Delete options "-async" and "-noasync".
4555 (event_loop_p): Delete variable.
4556 * NEWS: Mention that "-async" and "-noasync" were removed.
4557
4558 2004-07-16 Andrew Cagney <cagney@gnu.org>
4559
4560 * remote-m32r-sdi.c: Re-indent.
4561
4562 2004-07-16 Jim Blandy <jimb@redhat.com>
4563
4564 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4565 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4566 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4567 missing MPC823 SPRs.
4568 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4569 incorrect. (This was corrected in GDB's register name tables on
4570 2004-07-14.)
4571
4572 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4573 should be "esasrr" ("ESA Save and Restore Register").
4574
4575 2004-07-16 Andrew Cagney <cagney@gnu.org>
4576
4577 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4578 calls, no longer applicable. Update comments and rename parameter
4579 "step_frame" to "return_frame".
4580
4581 2004-07-16 Andrew Cagney <cagney@gnu.org>
4582
4583 * frame.c (fprint_field): New function.
4584 (fprint_frame_id): Use fprint_field.
4585
4586 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4587
4588 * ada-lang.c (ada_language_defn): Remove commented out code.
4589
4590 2004-07-15 Jim Blandy <jimb@redhat.com>
4591
4592 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4593 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4594
4595 2004-07-14 Jim Blandy <jimb@redhat.com>
4596
4597 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4598
4599 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4600
4601 * ppc-tdep.h (ppc_num_srs): New enum constant.
4602
4603 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4604 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4605 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4606 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4607 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4608 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4609 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4610 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4611 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4612 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4613 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4614 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4615 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4616 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4617 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4618 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4619 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4620 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4621 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4622 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4623 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4624 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4625 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4626 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4627 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4628 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4629 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4630 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4631 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4632 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4633 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4634 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4635 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4636 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4637 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4638 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4639 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4640 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4641 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4642 special-purpose register numbers.
4643
4644 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4645 manual mentions 'md_twb', but many mention 'm_twb', and at that
4646 point in the register list.)
4647
4648 2004-07-14 Andrew Cagney <cagney@gnu.org>
4649
4650 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4651 instead of "internal-error".
4652
4653 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4654
4655 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4656 that was inserted inside a comment.
4657
4658 2004-07-10 Randolph Chung <tausq@debian.org>
4659
4660 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4661 function.
4662 (hppa_hpux_push_dummy_code): New function.
4663 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4664 Set find_global_pointer method.
4665
4666 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4667
4668 * NEWS: Mention BSD libkvm interface.
4669
4670 2004-07-10 Michael Snyder <msnyder@redhat.com>
4671
4672 * symfile.c (generic_load): Comment typo.
4673 * stack.c (get_selected_block): Ditto.
4674 * regcache.c (regcache_cooked_read): Ditto.
4675 * monitor.c (monitor_debug): Ditto.
4676 * mips-tdep.c (mips_read_pc): Ditto.
4677 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4678 * gdb_mbuild.sh: Ditto.
4679 * gdbarch.sh: Ditto.
4680 * gdbarch.h: Ditto.
4681
4682 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4683
4684 * ada-tasks.c: Remove file.
4685
4686 Remove ARI problems:
4687
4688 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4689 beginning of line.
4690
4691 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4692 Add comment.
4693 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4694 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4695 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4696 (UMIN_OF_SIZE): Remove.
4697 (max_of_type): New function to replace orphan macro in gdbtypes.h
4698 (min_of_type): Ditto.
4699 (discrete_type_high_bound): Use max_of_type.
4700 (discrete_type_low_bound): Use min_of_type.
4701 (possible_user_operator_p): Move operator to beginning of line.
4702 (ada_is_variant_part): Ditto.
4703 (ensure_lval): Rewrite to avoid deprecated operations.
4704 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4705 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4706 (ada_enum_name): Remove assignments in 'if' statements.
4707 (build_ada_types): Add gdbarch parameter.
4708 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4709 with gdbarch_data_register_post_init.
4710 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4711 add_show_from_set.
4712
4713 * ada-valprint.c (inspect_it): Remove declaration.
4714 (repeat_count_threshold): Remove declaration.
4715 (ada_print_floating): Remove assignments in 'if' statements.
4716 (print_str): Move operator to beginning of line.
4717
4718 2004-07-08 Jim Blandy <jimb@redhat.com>
4719
4720 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4721
4722 2004-07-08 Bob Rossi <bob@brasko.net>
4723
4724 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4725
4726 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4727
4728 * language.h (struct_language_defn): Add new function pointer:
4729 la_class_name_from_physname. Also add new prototype for
4730 language_class_name_from_physname.
4731 * language.c (language_class_name_from_physname): New function.
4732 (unk_lang_class_name): Ditto.
4733 (unknown_language_defn, auto_language_defn): Change
4734 to add unk_lang_class_name function pointer for
4735 la_class_name_from_physname.
4736 (local_language_defn): Ditto.
4737 * dwarf2read.c (guess_structure_name): Change to call
4738 language_class_name_from_physname.
4739 (determine_class_name): Ditto.
4740 * cp-support.c (class_name_from_physname): Renamed.
4741 (cp_class_name_from_physname): New name of function.
4742 * cp-support.h: Ditto.
4743 * c-lang.c (c_language_defn): Change to add NULL
4744 for class_name_from_physname function pointer.
4745 (cplus_language_defn): Change to add cp_class_name_from_physname.
4746 * jv-lang.c (java_class_name_physname): New function.
4747 (java_find_last_component): New static routine.
4748 (java_language_defn): Add java_class_name_from_physname pointer.
4749 * ada-lang.c (ada_language_defn): Change to add NULL
4750 for class_name_from_physname function pointer.
4751 * f-lang.c (f_language_defn): Ditto.
4752 * m2-lang.c (m2_language_defn): Ditto.
4753 * objc-lang.c (objc_language_defn): Ditto.
4754 * p-lang.c (pascal_language_defn): Ditto.
4755 * scm-lang.c (scm_language_defn): Ditto.
4756
4757 2004-07-06 Andrew Cagney <cagney@gnu.org>
4758
4759 Patch from Bart Robinson.
4760 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4761 (O_LARGEFILE): Define to 0, if not defined.
4762
4763 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4764
4765 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4766 <machine/pcb.h> and "bsd-kvm.h".
4767 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4768 (m68kbsd_supply_pcb): New function.
4769 (_initialize_m68kbsd_nat): New prototype and function.
4770 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4771 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4772 (LOADLIBES): New variable.
4773 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4774 (LOADLIBES): New variable.
4775
4776 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4777
4778 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4779
4780 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4781 <sys/proc.h>.
4782 (bsd_kvm_cmdlist): New variable.
4783 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4784 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4785 command and "kvm proc" command.
4786 * Makefile.in (bsd-kvm.o): Update dependencies.
4787
4788 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4789
4790 * osabi.c: Update copyright year.
4791 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4792 notes if EI_OSABI is set to ELFOSABI_HPUX.
4793
4794 2004-07-01 Michael Snyder <msnyder@redhat.com>
4795
4796 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4797 that seems to have gotten whacked out of line.
4798
4799 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4800
4801 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4802 code.
4803
4804 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4805
4806 * ada-lang.c (decode_packed_array): Minor change to comment.
4807 (ada_value_slice_ptr): New function.
4808 (ada_value_slice): New function.
4809 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4810 test. Don't know why it is there.
4811 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4812 to avoid dereferencing huge arrays from which one is slicing.
4813 (empty_array): Correct to return an array rather than
4814 a subrange value.
4815 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4816 on empty arrays (let'em use 'FIRST instead).
4817
4818 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4819
4820 Address complaints from gdb_ari.sh:
4821
4822 * ada-exp.y: Include gdb_string.h rather than string.h.
4823 (convert_char_literal): Reformat declaration.
4824 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4825 * ada-lex.l: Change use of free to xfree (the macro would do so
4826 anyway, but this is harmless).
4827 Include gdb_string.h rather than string.h.
4828 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4829
4830 * ada-lang.c (parse): Remove K&Rism in parameter list.
4831 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4832
4833 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4834
4835 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4836 dead code.
4837
4838 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4839
4840 * alphabsd-nat.c: Update copyright year.
4841 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4842
4843 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4844
4845 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4846 (i386_cygwin_in_solib_call_trampoline): New function.
4847 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4848 and skip_trampoline_code gdbarch methods.
4849
4850 2004-06-29 Jim Blandy <jimb@redhat.com>
4851
4852 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4853 name actually used in the dependency lists.
4854
4855 2004-06-29 Randolph Chung <tausq@debian.org>
4856
4857 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4858
4859 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4860
4861 * win32-nat.c (child_pid_to_exec_file): New function.
4862 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4863 functionality.
4864
4865 2004-06-28 Andrew Cagney <cagney@gnu.org>
4866
4867 * defs.h (xstrvprintf): Declare.
4868 * utils.c (xstrvprintf): New function.
4869 (internal_vproblem, xstrprintf, xasprintf)
4870 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4871 * serial.c (serial_printf): Ditto.
4872 * complaints.c (vcomplaint): Ditto.
4873
4874 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4875
4876 * infcmd.c (attach_command): Move call to target_terminal_inferior
4877 behind loading symbol table.
4878
4879 2004-06-28 Andrew Cagney <cagney@gnu.org>
4880
4881 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4882 change - add back extern deprecated_ui_loop_hook declaration.
4883
4884 2004-06-28 Andrew Cagney <cagney@gnu.org>
4885
4886 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4887 xstrprintf.
4888 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4889 (c_value_of_variable): Ditto.
4890 * utils.c (internal_vproblem): Ditto.
4891 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
4892 * remote.c (add_packet_config_cmd): Ditto.
4893 * remote-rdp.c (rdp_set_command_line): Ditto.
4894 * regcache.c (regcache_dump): Ditto.
4895 * frv-tdep.c (new_variant, new_variant): Ditto.
4896 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
4897 (fbsd_find_memory_regions): Ditto.
4898 * breakpoint.c (create_thread_event_breakpoint)
4899 (create_breakpoints): Ditto.
4900 * aix-thread.c (aix_thread_pid_to_str): Ditto.
4901 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
4902
4903 2004-06-28 Joel Brobecker <brobecker@gnat.com>
4904
4905 * ada-lang.c: Re-indent file, with some massaging to help indent
4906 a bit when the result is otherwise really too ugly.
4907
4908 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4909
4910 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
4911 code_addr_p and special_addr_p to 'unsigned int'.
4912
4913 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4914
4915 * i386v4-nat.c: Update copyright year and tweak comment.
4916 (regmap): Remove trailing comma.
4917 (supply_gregset): Rename local variable i to regnum. Call
4918 regcache_raw_supply instead of supply_register.
4919 (fill_gregset): Rename argument regno to regnum. Call
4920 regcache_raw_collect instead of regcache_collect.
4921
4922 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
4923
4924 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
4925 and special_addr_p.
4926 (frame_id_build, frame_id_build_special): Update comments.
4927 (frame_id_build_wild): New prototype.
4928 * frame.c (frame_id_build, frame_id_build_special): Fill in new
4929 struct frame_id fields.
4930 (frame_id_build_wild): New function.
4931 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
4932
4933 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4934
4935 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
4936 hppabsd-tdep.c.
4937
4938 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4939
4940 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
4941
4942 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4943
4944 * ada-lang.c: Re-indent file.
4945
4946 2004-06-27 Joel Brobecker <brobecker@gnat.com>
4947
4948 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4949 (no_symtab_msg): Likewise.
4950
4951 2004-06-27 Andreas Schwab <schwab@suse.de>
4952
4953 * source.c: Fix whitespace.
4954
4955 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4956
4957 * configure.in: Include <sys/param.h> for td_pcb test.
4958 * configure: Regenerated.
4959
4960 * i386nbsd-nat.c: New file.
4961 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4962 i386obsd-nat.c and i386obsd-tdep.c.
4963 (i386nbsd-nat.o): New dependency.
4964 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4965 bsd-kvm.o.
4966 (LOADLIBES): New variable.
4967 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4968 bsd-kvm.o.
4969 (LOADLIBES): New variable.
4970
4971 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4972 (LOADLIBES): New variable.
4973
4974 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4975 fetching from BSD_KVM_PADDR. Correctly lookup address for
4976 "_thread0".
4977
4978 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4979 "bsd-kvm.h".
4980 (amd64fbsd_supply_pcb): New funcion.
4981 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4982
4983 2004-06-27 <david@streamline-computing.com>
4984
4985 Partial fix for PR cli/1056.
4986 * valarith.c: Check for zero in division and remainder
4987 evaluation.
4988
4989 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4990
4991 * i387-tdep.c: Remove excessive whitespace.
4992
4993 2004-06-26 Andrew Cagney <cagney@gnu.org>
4994
4995 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4996 * gdb-events.h, gdb-events.c: Re-generate.
4997 * tui/tui-hooks.c (tui_install_hooks): Update.
4998 (tui_remove_hooks): Update.
4999 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5000
5001 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5002
5003 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5004 (gregset_t, fpregset_t): Remove typedefs.
5005 (REG_OFFSET): Rename argument.
5006 (amd64bsd_r_reg_offset): Rename from reg_offset.
5007 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5008 Remove functions.
5009 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5010 of reg_offset.
5011 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5012
5013 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5014
5015 * vax-tdep.c: Tweak comment.
5016
5017 Add OpenBSD/hppa support.
5018 * NEWS (New native configurations): Mention OpenBSD/hppa.
5019 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5020 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5021 files.
5022 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5023 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5024 * configure.host: Add hppa*-*-openbsd*.
5025 * configure.tgt: Add hppa*-*-openbsd*.
5026
5027 2004-06-25 Andrew Cagney <cagney@gnu.org>
5028
5029 * defs.h (deprecated_ui_loop_hook): Deprecated.
5030 * wince.c (child_wait): Update.
5031 * win32-nat.c (child_wait): Update.
5032 * v850ice.c (v850ice_wait): Update.
5033 * top.c (deprecated_ui_loop_hook): Update.
5034 * serial.h: Update.
5035 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5036 (do_unix_readchar): Update.
5037 * ser-tcp.c (net_open): Update.
5038 * remote-sim.c (gdb_os_poll_quit): Update.
5039 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5040
5041 2004-06-24 Andrew Cagney <cagney@gnu.org>
5042
5043 * defs.h (deprecated_pre_add_symbol_hook)
5044 (deprecated_post_add_symbol_hook): Deprecated.
5045 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5046 (symbol_file_add_with_addrs_or_offsets): Update references.
5047
5048 2004-06-24 Andrew Cagney <cagney@gnu.org>
5049
5050 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5051 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5052 * wince.c (ui_loop_hook): Delete extern declaration.
5053 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5054 * v850ice.c (ui_loop_hook): Delete extern declaration..
5055 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5056 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5057 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5058 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5059 ui_loop_hook declaration.
5060
5061 2004-06-24 Andrew Cagney <cagney@gnu.org>
5062
5063 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5064 entry_func_highpc fields.
5065 * objfiles.c (init_entry_point_info): Do not clear
5066 entry_func_lowpc and entry_func_highpc.
5067 (objfile_relocate): Do not relocate entry_func_lowpc and
5068 entry_func_highpc.
5069 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5070 entry_func_highpc.
5071 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5072 entry_func_highpc.
5073 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5074 entry_func_lowpc and entry_func_highpc with call to
5075 inside_entry_func.
5076
5077 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5078
5079 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5080 quad-precision floating point arguments in registers.
5081
5082 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5083
5084 From Michael Mueller <m.mueller99@kay-mueller.de>:
5085 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5086 account.
5087
5088 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5089
5090 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5091 to -1.
5092 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5093 untriggered watchpoints to a separate if clause. Update function
5094 comment regarding STOPPED_BY_WATCHPOINT argument.
5095
5096 2004-06-22 Jim Blandy <jimb@redhat.com>
5097
5098 * gdbarch.sh: Doc fix.
5099
5100 2004-06-21 Martin Hunt <hunt@redhat.com>
5101 Kevin Buettner <kevinb@redhat.com>
5102
5103 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5104 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5105 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5106 to set_gdbarch_sp_regnum(). Use cooked register number.
5107 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5108
5109 2004-06-21 Andrew Cagney <cagney@gnu.org>
5110
5111 * gdbarch.sh: When the macro field is empty, do not generate a
5112 macro definition. When the macro field is "=", generate the macro
5113 name from the upper-case function name.
5114 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5115 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5116 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5117 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5118 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5119 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5120 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5121 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5122 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5123 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5124 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5125 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5126 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5127 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5128 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5129 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5130 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5131 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5132 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5133 (DEPRECATED_USE_STRUCT_CONVENTION)
5134 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5135 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5136 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5137 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5138 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5139 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5140 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5141 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5142 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5143 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5144 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5145 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5146 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5147 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5148 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5149 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5150 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5151 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5152
5153 2004-06-21 Andrew Cagney <cagney@gnu.org>
5154
5155 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5156 macro name, and the function rather than macro value. Only wrap
5157 macro print statements in #ifdef. Move format logic to where it
5158 is needed.
5159 * gdbarch.c: Re-generate.
5160
5161 * gdbarch.sh (read): Delete "print_p" and "description", add
5162 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5163 Delete references to print_p.
5164 (TARGET_ARCHITECTURE): Delete print predicate.
5165 * gdbarch.c: Re-generate.
5166
5167 * gdbarch.sh: Check that multi-arch methods do not provide a
5168 macro.
5169 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5170 (print_registers_info, print_float_info, print_vector_info)
5171 (adjust_breakpoint_address, remote_translate_xfer_address)
5172 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5173 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5174 name from the multi-arch definition.
5175
5176 2004-06-20 Andrew Cagney <cagney@gnu.org>
5177
5178 * gdbarch.sh: Sort by the function, instead of macro name.
5179 * gdbarch.c: Re-generate.
5180
5181 2004-06-20 Andrew Cagney <cagney@gnu.org>
5182
5183 * gdbarch.sh: Use the function, instead of macro name in
5184 errors and the log file.
5185 (return_value): Remove stray ":" in spec.
5186
5187 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5188 * gdbarch.h, gdbarch.c: Re-generate.
5189 * Makefile.in (arch-utils.o): Update dependencies.
5190 * values.c (using_struct_return): Move code calling
5191 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5192 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5193 to legacy_return_value, simplify.
5194 * infcmd.c (print_return_value): Move code calling
5195 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5196 to legacy_return_value, simplify.
5197 * infcall.c (call_function_by_hand): Move code calling
5198 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5199 * arch-utils.c: Update copyright. Include "gdbcore.h".
5200 (legacy_return_value): New function.
5201 * arch-utils.h: Update copyright.
5202 (legacy_return_value): Declare.
5203
5204 2004-06-20 Andrew Cagney <cagney@gnu.org>
5205
5206 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5207 * gdbarch.h, gdbarch.c: Re-generate.
5208 * values.c (using_struct_return): Update call.
5209 * mcore-tdep.c: Update comment.
5210 * infcall.c (call_function_by_hand): Update comment.
5211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5212 * arch-utils.h (always_use_struct_convention): Update.
5213 * v850-tdep.c (v850_gdbarch_init): Update.
5214 * sh64-tdep.c (sh64_gdbarch_init): Update.
5215 * sh-tdep.c (sh_gdbarch_init): Update.
5216 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5217 * mips-tdep.c (mips_gdbarch_init): Update.
5218 * mcore-tdep.c (mcore_gdbarch_init): Update.
5219 * m32r-tdep.c (m32r_gdbarch_init): Update.
5220 * ia64-tdep.c (ia64_gdbarch_init): Update.
5221 * h8300-tdep.c (h8300_gdbarch_init): Update.
5222 * frv-tdep.c (frv_gdbarch_init): Update.
5223 * cris-tdep.c (cris_gdbarch_init): Update.
5224 * arm-tdep.c (arm_gdbarch_init): Update.
5225 * alpha-tdep.c (alpha_gdbarch_init): Update.
5226
5227 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5228
5229 * PROBLEMS: Add more specific information, and a work-around,
5230 for PR gdb/1458.
5231
5232 2004-06-18 Andrew Cagney <cagney@gnu.org>
5233
5234 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5235 * gdbarch.h, gdbarch.c: Re-generate.
5236 * ada-lang.c (ada_finish_decode_line_1): Update.
5237 * infrun.c (handle_inferior_event): Update.
5238 * infcall.c (find_function_addr): Update.
5239 * linespec.c (minsym_found): Update.
5240 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5241 Update.
5242 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5243 * cli/cli-cmds.c (disassemble_command): Update.
5244 * vax-tdep.c (vax_gdbarch_init): Update.
5245
5246 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5247
5248 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5249
5250 2004-06-17 Andrew Cagney <cagney@gnu.org>
5251
5252 GDB 6.1.1 released from the GDB 6.1 branch.
5253 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5254 * PROBLEMS: Ditto.
5255
5256 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5257
5258 PR gdb/1658
5259 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5260 operation as a uleb128. Found by Michael Coulter.
5261
5262 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5263
5264 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5265 make it non-static.
5266 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5267 to ada-lang.h; this is needed to be able to implement the kill command
5268 in multi-task mode.
5269 (task_ptid): Ditto.
5270 (task_entry): Ditto.
5271 (task_list): Ditto.
5272 (ada_build_task_list): Ditto.
5273
5274 * ada-lang.c: Conditionalize routines and data structures related
5275 to breakpoints, exceptions, completion, and symbol caching on
5276 GNAT_GDB, since these are not yet used in the submitted public sources.
5277 (ada_main_name): Editorial: Move definition out of exception-related
5278 code.
5279
5280 2004-06-15 Andrew Cagney <cagney@gnu.org>
5281
5282 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5283 deprecated_pc_in_call_dummy.
5284
5285 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5286
5287 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5288 bfd_get_section_size_before_reloc or _raw_size.
5289 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5290 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5291 (dwarf2_read_section): Likewise.
5292 * elfread.c (elf_locate_sections): Likewise.
5293 * gcore.c (derive_heap_segment): Likewise.
5294 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5295 * remote-e7000.c (e7000_load): Likewise.
5296 * remote-m32r-sdi.c (m32r_load): Likewise.
5297 * remote-mips.c (mips_load_srec): Likewise.
5298 (pmon_load_fast): Likewise.
5299 * remote.c (compare_sections_command): Likewise.
5300 * symfile.c (add_section_size_callback): Likewise.
5301 (load_section_callback): Likewise.
5302 (pc_in_unmapped_range): Likewise.
5303 (pc_in_mapped_range): Likewise.
5304 (sections_overlap): Likewise.
5305 (list_overlays_command): Likewise.
5306 (simple_overlay_update_1): Likewise.
5307 (simple_overlay_update): Likewise.
5308 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5309 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5310
5311 2004-06-14 Randolph Chung <tausq@debian.org>
5312
5313 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5314 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5315 static.
5316 (hppa_hpux_inferior_created): New function.
5317 (hppa_hpux_init_abi): Register observer.
5318 * symfile.c (hp_cxx_exception_support_initialized)
5319 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5320 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5321
5322 2004-06-14 Randolph Chung <tausq@debian.org>
5323
5324 * MAINTAINERS (Write After Approval): Alphabetize my entry
5325 correctly.
5326
5327 2004-06-14 Andrew Cagney <cagney@gnu.org>
5328
5329 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5330 testsuite maintainer.
5331
5332 2004-06-13 Andrew Cagney <cagney@gnu.org>
5333
5334 * infcmd.c (print_return_value): Fix logic, allow
5335 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5336
5337 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5338 defining any macros.
5339 * gdbarch.h: Re-generate.
5340
5341 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5342 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5343 * gdbarch.h: Re-generate.
5344
5345 * values.c (generic_use_struct_convention): Don't check gcc_p.
5346
5347 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5348 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5349 * gdbarch.h, gdbarch.c: Regenerate.
5350 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5351 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5353 deprecated_max_register_raw_size and
5354 deprecated_max_register_virtual_size.
5355 * v850-tdep.c (v850_gdbarch_init): Ditto.
5356 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5357 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5358 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5359 * cris-tdep.c (cris_gdbarch_init): Ditto.
5360
5361 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5362 * gdbarch.h, gdbarch.c: Re-generate.
5363 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5364 (m68hc11_use_struct_convention): Delete function.
5365 (m68hc11_extract_struct_value_address): Delete function.
5366 (m68hc11_return_value): New function.
5367 (m68hc11_gdbarch_init): Instead of store_return_value,
5368 extract_return_value, return_value_on_stack,
5369 deprecated_extract_struct_value_address and use_struct_convention,
5370 set return_value.
5371 * values.c (using_struct_return): Do not call
5372 RETURN_VALUE_ON_STACK.
5373 * arch-utils.h (generic_return_value_on_stack_not): Delete
5374 declaration.
5375 * arch-utils.c (generic_return_value_on_stack_not): Delete
5376 function.
5377
5378 2004-06-12 Andrew Cagney <cagney@gnu.org>
5379
5380 * values.c (register_value_being_returned): Delete function.
5381 * infcmd.c (legacy_return_value): Delete function.
5382 * infcall.c (call_function_by_hand): Inline
5383 "register_value_being_returned", simplify.
5384 * values.c (using_struct_return): Update comment, refer to
5385 print_return_value instead of register_value_being_returned.
5386 * infcmd.c (print_return_value): Inline calls to
5387 register_value_being_returned and legacy_return_value. Simplify.
5388
5389 2004-06-11 Randolph Chung <tausq@debian.org>
5390
5391 * somread.c (som_symtab_read): Exclude gcc local symbols.
5392
5393 2004-06-11 Randolph Chung <tausq@debian.org>
5394
5395 * infrun.c (handle_inferior_event): Handle the case when a
5396 trampoline ends up in the runtime resolver, and if the trampoline
5397 has no name. Rearrange the code so that all the trampoline
5398 processing happens before other step-out-of-range handling.
5399
5400 2004-06-11 Martin Hunt <hunt@redhat.com>
5401
5402 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5403 has no fpu.
5404
5405 2004-06-10 Andrew Cagney <cagney@gnu.org>
5406
5407 * blockframe.c (legacy_inside_entry_func): Delete.
5408 (legacy_frame_chain_valid): Inline call to
5409 legacy_inside_entry_func, simplify.
5410
5411 2004-06-10 Bob Rossi <bob@brasko.net>
5412
5413 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5414 * dwarf2read.c (partial_die_info): Add dirname field.
5415 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5416 (read_partial_die): Save away DW_AT_comp_dir.
5417 * defs.h (symtab_to_filename): Removed.
5418 * source.c (find_and_open_source): Added.
5419 (open_source_file): Just calls find_and_open_source.
5420 (symtab_to_filename): Removed.
5421 (symtab_to_fullname, psymtab_to_fullname): Added.
5422 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5423 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5424 symtab_to_filename.
5425 * symtab.h (partial_symtab): Add dirname field.
5426 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5427 (mi_cmd_file_list_exec_source_file): Call new function
5428 symtab_to_fullname to find fullname.
5429 (mi_cmd_file_list_exec_source_files): Added.
5430 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5431 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5432
5433 2004-06-10 Andrew Cagney <cagney@gnu.org>
5434
5435 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5436 to generic_use_struct_convention, the default value.
5437
5438 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5439 of abort.
5440
5441 * ns32k-tdep.c (ns32k_push_arguments): New function.
5442 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5443 * infcall.c (call_function_by_hand): Call error instead of
5444 legacy_push_arguments.
5445 * value.h (legacy_push_arguments): Delete declaration.
5446 * valops.c (legacy_push_arguments): Delete function.
5447 (value_push): Delete function.
5448
5449 2004-06-10 Brian Ford <ford@vss.fsi.com>
5450
5451 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5452 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5453 info.
5454 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5455
5456 2004-06-10 Andrew Cagney <cagney@gnu.org>
5457
5458 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5459 * gdbarch.h, gdbarch.c: Re-generate.
5460 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5461 parameters.
5462 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5463 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5464 deprecated_pc_in_call_dummy instead of
5465 DEPRECATED_PC_IN_CALL_DUMMY.
5466 (arm_skip_prologue): Ditto.
5467 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5468 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5469 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5470 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5471 Ditto.
5472 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5473 (sh64_init_extra_frame_info, sh64_get_saved_register)
5474 (sh64_pop_frame): Ditto.
5475 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5476 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5477 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5478 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5479 (h8300_pop_frame): Ditto.
5480 * blockframe.c (legacy_inside_entry_func)
5481 (legacy_frame_chain_valid): Ditto.
5482 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5483 to deprecated_pc_in_call_dummy.
5484
5485 2004-06-09 Andrew Cagney <cagney@gnu.org>
5486
5487 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5488 provide a default value.
5489 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5490 * gdbarch.h, gdbarch.c: Re-generate.
5491 * arch-utils.c (generic_convert_register_p): Rename
5492 legacy_convert_register_p
5493 (legacy_register_to_value, legacy_value_to_register): Delete
5494 functions.
5495 * arch-utils.h (generic_convert_register_p): Rename
5496 legacy_convert_register_p.
5497 (legacy_register_to_value, legacy_value_to_register): Delete
5498 declarations.
5499
5500 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5501 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5502 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5503 * gdbarch.h, gdbarch.c: Re-generate.
5504 * infcmd.c (default_print_registers_info): Simplify.
5505 * findvar.c (value_of_register): Simplify.
5506 * mi/mi-main.c (get_register): Simplify.
5507 * arch-utils.c (legacy_convert_register_p): Always return 0.
5508 (legacy_register_to_value, legacy_value_to_register): Always call
5509 internal_error.
5510
5511 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5512 #ifdef CLEAR_INSN_CACHE code.
5513 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5514 Delete #ifdef CLEAR_DEFERRED_STORES code.
5515
5516 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5517
5518 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5519 copyright.
5520 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5521
5522 * config/mips/mipsv4.mh: Delete file.
5523
5524 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5525 unreferenced macro.
5526 (hpread_adjust_stack_address): Delete declaration.
5527
5528 2004-06-08 Andrew Cagney <cagney@gnu.org>
5529
5530 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5531 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5532 PTRACE_ATTACH / PTRACE_DETACH available call error.
5533 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5534 * infttrace.c (update_thread_state_after_attach, attach, detach):
5535 Remove #ifdef wrappers.
5536 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5537 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5538 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5539 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5540 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5541 * config/nm-linux.h (ATTACH_DETACH): Delete.
5542 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5543 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5544 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5545 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5546 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5547
5548 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5549
5550 * configure.in: Set $configdir to the right OS specific value.
5551 Use value when setting $tcldir and $tkdir.
5552 * configure: Regenerate.
5553
5554 2004-06-06 Paul Brook <paul@codesourcery.com>
5555
5556 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5557 records.
5558
5559 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5560
5561 * ada-lang.c (lookup_symbol_in_language): New function to allow
5562 re-use of another language's symbol lookup code. (Placed here
5563 temporarily while Ada support is being integrated into the public
5564 tree).
5565 (restore_language): New auxiliary function for
5566 lookup_symbol_in_language.
5567 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5568 temporarily while Ada support is being integrated into the public
5569 tree).
5570
5571 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5572
5573 * Makefile.in (check//%): New.
5574
5575 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5576 (mn10300_store_return_value): Rewrite.
5577 (mn10300_type_align): New.
5578 (mn10300_use_struct_convention): Rewrite.
5579 (mn10300_return_value): New, using all of the above.
5580 (mn10300_pop_frame_regular): Add saved_regs_size.
5581 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5582
5583 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5584 regs if PC is on movm.
5585
5586 2004-06-07 Jim Blandy <jimb@redhat.com>
5587
5588 Add native Linux support for the PowerPC E500.
5589 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5590 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5591 all architectures except the E500.
5592 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5593 #definitions.
5594 (struct gdb_evrregset_t): New type.
5595 (have_ptrace_getsetevrregs): New variable.
5596 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5597 fetch_spe_registers): New functions.
5598 (fetch_register): Call fetch_spe_register as appropriate.
5599 Assert that we're only passed raw register numbers.
5600 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5601 Don't fetch gprs if they're pseudoregisters.
5602 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5603 store_spe_registers): New functions.
5604 (store_register): Call store_spe_register as appropriate.
5605 Assert that we're only passed raw register numbers.
5606 (store_ppc_registers): Call store_spe_registers as appropriate.
5607 Don't store gprs if they're pseudoregisters.
5608
5609 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5610
5611 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5612 struct if one exists, even if we are dealing with a zombie thread.
5613
5614 2004-06-07 Andrew Cagney <cagney@gnu.org>
5615
5616 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5617 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5618 Rename PC_REQUIRES_RUN_BEFORE_USE.
5619 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5620 #ifdef.
5621
5622 2004-06-07 Randolph Chung <tausq@debian.org>
5623
5624 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5625 unwinding after sp has been saved to the stack but before the end
5626 of the prologue, and after the fp has been modified but before it has
5627 been saved to the stack.
5628 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5629 Remove superfluous definitions.
5630 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5631
5632 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5633
5634 Committed by Randolph Chung.
5635 * hppa-linux-nat.c: Include the correct version of the header file
5636 depending on the kernel version.
5637
5638 2004-06-06 Randolph Chung <tausq@debian.org>
5639
5640 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5641 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5642
5643 2004-06-06 Randolph Chung <tausq@debian.org>
5644
5645 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5646 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5647 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5648 * hppa-tdep.c (hppa_symbol_address): New function definition.
5649 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5650
5651 2004-06-06 Randolph Chung <tausq@debian.org>
5652
5653 * hppa-tdep.h (struct value): Forward declaration.
5654 (gdbarch_tdep): Define tdep find_global_pointer method.
5655 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5656 associated with the function we are trying to call, and write it
5657 to the gp register.
5658 (hppa32_convert_from_funct_ptr_addr): New function.
5659 (hppa_find_global_pointer): New function.
5660 (hppa_gdbarch_init): Set default find_global_pointer method; set
5661 convert_from_func_ptr_addr method.
5662 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5663 (hppa_linux_init_abi): Set find_global_pointer method.
5664 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5665
5666 2004-06-06 Randolph Chung <tausq@debian.org>
5667
5668 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5669 to struct value *function.
5670 * gdbarch.c: Regenerate.
5671 * gdbarch.h: Likewise.
5672 * infcall.c (call_function_by_hand): Pass entire function value
5673 to push_dummy_call.
5674
5675 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5676 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5677 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5678 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5679 * arm-tdep.c (arm_push_dummy_call): Likewise.
5680 * avr-tdep.c (avr_push_dummy_call): Likewise.
5681 * cris-tdep.c (cris_push_dummy_call): Likewise.
5682 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5683 * frv-tdep.c (frv_push_dummy_call): Likewise.
5684 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5685 * hppa-tdep.c (hppa32_push_dummy_call)
5686 (hppa64_push_dummy_call): Likewise.
5687 * i386-tdep.c (i386_push_dummy_call): Likewise.
5688 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5689 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5690 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5691 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5692 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5693 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5694 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5695 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5696 (ppc64_sysv_abi_push_dummy_call): Likewise.
5697 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5698 (ppc64_sysv_abi_push_dummy_call): Likewise.
5699 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5700 * s390-tdep.c (s390_push_dummy_call): Likewise.
5701 * sh-tdep.c (sh_push_dummy_call_fpu)
5702 (sh_push_dummy_call_nofpu): Likewise.
5703 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5704 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5705 * vax-tdep.c (vax_push_dummy_call): Likewise.
5706
5707 2004-06-04 Jim Blandy <jimb@redhat.com>
5708
5709 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5710 gdbarch argument to register_size.
5711
5712 * rs6000-tdep.c (rs6000_store_return_value): Use
5713 regcache_cooked_write_part instead of
5714 deprecated_write_register_bytes.
5715 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5716 not gdbarch_deprecated_store_return_value.
5717
5718 * ppc-linux-nat.c (store_register, fetch_register): Remove
5719 incorrect assertions. Simplify and generalize handling of
5720 transfers whose sizes are not multiples of, or less than, sizeof
5721 (PTRACE_XFER_TYPE).
5722
5723 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5724
5725 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5726 as a new thread event.
5727 * thread-db.c (thread_get_info_callback): If the thread is a
5728 zombie, return TD_THR_ZOMBIE.
5729 (thread_from_lwp): If thread_get_info_callback returns
5730 TD_THR_ZOMBIE, check if the thread is still on the thread list
5731 and return a -1 ptid if not found.
5732 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5733 change the status to TARGET_WAITKIND_SPURIOUS.
5734
5735 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5736
5737 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5738 double values in little endian mode.
5739
5740 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5741
5742 Committed by Andrew Cagney.
5743 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5744 after last enum constant to avoid error from IBM C
5745 compiler.
5746
5747 2004-06-02 Jim Blandy <jimb@redhat.com>
5748
5749 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5750 to 'message', and make it local to the lone block that uses it.
5751
5752 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5753
5754 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5755
5756 * ada-exp.y: Update copyright notice.
5757 Include block.h.
5758
5759 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5760 SPECIAL_VARIABLE and unify the treatment of these cases.
5761
5762 (write_attribute_call0): Remove.
5763 (write_attribute_call1): Remove.
5764 (write_attribute_calln): Remove.
5765 (save_qualifier): Add missing semicolon.
5766
5767 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5768 temporarily disabled to allow compilation with FSF head version.
5769
5770 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5771 use individual operators (OP_*) for all attributes.
5772 (exp syntax): Use write_int.
5773 Handle STRING literals with OP_STRING.
5774 (variable syntax): Add limit parameter to calls to
5775 write_object_renaming.
5776
5777 (temp_parse_space): New definition to hold entities that need
5778 only live until the next call to ada_parse.
5779 (string_to_operator): Rename fields of ada_opname_table entries.
5780
5781 (write_var_from_sym): Record block.
5782 (write_var_from_name): Minor reformatting.
5783 Make sure saved name is properly encoded in the case of multiple
5784 matches, and set its language to Ada.
5785 Update comment.
5786 Modify to indicate unresolved name as symbol in the UNRESOLVED
5787 namespace, allocated in temp_parse_space.
5788 (write_int): New function.
5789
5790 (write_object_renaming): Add max_depth parameter to limit
5791 chains of object renamings.
5792 Handle case where root of renaming expression is itself a renaming.
5793 Use temp_parse_space for temporary name buffer.
5794 Handle renamings to dereferenced pointers (___XEXA suffices).
5795
5796 (ada_parse, yyerror, string_to_operator,
5797 write_var_from_sym, write_var_from_name, write_attribute_call0,
5798 write_attribute_call1, write_attribute_calln,
5799 write_object_renaming): Protoize.
5800
5801 (_initialize_ada_exp): New function.
5802
5803 * ada-lang.c: Update copyright notice.
5804 General terminology change to conform to GNAT compiler usage:
5805 mangle => encode, demangle => decode
5806 Include gdb_obstack.h.
5807 Include gdb_regex.h
5808 Include frame.h
5809 Include hashtab.h
5810 Include completer.h
5811 Include gdb_stat.h
5812 Include block.h
5813 Include infcall.h
5814
5815 (ADA_RETAIN_DOTS): Make sure this is defined.
5816 (TRUNCATION_TOWARDS_ZERO): Define.
5817 (struct string_vector): Define.
5818 (unresolved_names): Remove definition.
5819 (xnew_string_vector): New function.
5820 (string_vector_append): New function.
5821 (extract_string): Make static.
5822 (ada_unqualified_name): New function.
5823 (add_angle_brackets): New function.
5824 (function_name_from_pc): New function.
5825 (place_on_stack): Rename to ensure_lval.
5826
5827 (ensure_lval): Renamed from place_on_stack.
5828 Make identity on lvals.
5829 Update comment.
5830 (is_nonfunction): New interface.
5831 Only symbols in LOC_CONST class can be enumerals.
5832 (fill_in_ada_prototype): Remove; now independent of language.
5833 (add_defn_to_vec): Add obstack and symtab arguments.
5834 Use obstack to hold collected definitions.
5835 (num_defns_collected): New function.
5836 (defns_collected): New function.
5837 (ada_resolve_subexp): Rename to resolve_subexp.
5838 (resolve_subexp): Renamed from ada_resolve_subexp.
5839 (ada_op_name): Return non-const result.
5840 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5841 other purposes.
5842
5843 (to_fixed_array_type): Add declaration.
5844 (coerce_unspec_val_to_type): Remove offset parameter.
5845 (find_sal_from_funcs_and_line): New interface.
5846 (find_line_in_linetable): Ditto.
5847
5848 (all_sals_for_line): Rename to ada_sals_for_line and make
5849 global.
5850 Add new parameter. When set, do not ask the user to choose the
5851 instance, but use the first one found instead.
5852 Use given line number in returned sals.
5853 Fix comment.
5854 Skip the prologue if funfirstline is set.
5855 Correct for memory leak when 0 lines found.
5856
5857 (value_pos_atr): Use pos_atr.
5858 (pos_atr): New function.
5859 (standard_lookup): Add block parameter.
5860
5861 (makeTimeStart): Remove declaration and uses.
5862 (makeTimeStop): Remove declaration and uses.
5863
5864 (ada_completer_word_break_characters): Allow for VMS.
5865 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5866 (raise_sym_name): New constant.
5867 (raise_unhandled_sym_name): New constant.
5868 (raise_assert_sym_name): New constant.
5869 (process_raise_exception_name): New constant.
5870 (longest_exception_template): New constant.
5871 (warning_limit): New variable to limit warnings during expression
5872 evaluation.
5873 (warnings_issued): New variable to keep track of warnings issued.
5874 (known_runtime_file_name_patterns): New constant.
5875 (known_auxiliary_function_name_patterns): New constant.
5876 (symbol_list_obstack): New variable.
5877
5878 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5879 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5880 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5881 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5882 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5883 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5884 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5885 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5886 and strcmp.
5887
5888 (ada_get_field_index): New function.
5889 (lim_warning): New function.
5890 (ada_translate_error_message): New function.
5891 (MAX_OF_SIZE): New function.
5892 (MIN_OF_SIZE): New function.
5893 (UMAX_OF_SIZE): New function.
5894 (UMIN_OF_SIZE): New function.
5895 (discrete_type_high_bound): New function.
5896 (discrete_type_low_bound): New function.
5897 (base_type): New function.
5898 (do_command): Remove.
5899
5900 (ada_update_initial_language): Use language_ada, not language_unknown.
5901 (ada_encode): Renamed from ada_mangle.
5902 Obey ADA_RETAIN_DOTS.
5903 (ada_decode): Renamed from ada_demangle.
5904 Update coding conventions.
5905 (decoded_names_store): New hash table.
5906 (ada_decode_symbol): New function.
5907 (ada_la_decode): New function.
5908
5909 (modify_general_field): Correct computations of offset and bit
5910 position.
5911 (desc_base_type): Handle ref types, too.
5912 (ada_is_direct_array_type): New function.
5913
5914 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5915 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5916 (ada_is_bogus_array_descriptor,ada_type_of_array,
5917 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
5918 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
5919 ada_is_array_descriptor_type.
5920
5921 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
5922 (ada_is_packed_array_type): Handle pointers or
5923 references to packed arrays as well.
5924 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
5925 (decode_packed_array_type): Search for the packed array type
5926 symbol in the currently selected block and associated
5927 superblocks too.
5928 Use lookup_symbol again.
5929
5930 (decode_packed_array): Handle pointers and references.
5931 Update call to coerce_unspec_val_to_type.
5932 (decode_packed_array_type,value_subscript_packed): Limit warnings.
5933 (ada_value_primitive_packed_val): Improve comment.
5934
5935 (ada_index_type): Substitute int type for "undefined".
5936 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
5937 ada_array_langth, ada_is_string_type): Use renamed
5938 ada_is_simple_array_type.
5939 (empty_array): New function.
5940
5941 (ada_resolve): Rename to resolve.
5942 (resolve): Make static.
5943 Call renamed resolve_subexp.
5944 Update comment.
5945 (ada_resolve_subexp): Rename to resolve_subexp.
5946 (resolve_subexp): Update comment.
5947 Decomment disabled code.
5948 Add LOC_COMPUTED* cases.
5949 Modify to use temporary struct symbols (marked as being in
5950 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5951 OP_UNRESOLVED_VALUE.
5952 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5953 Add OP_STRING case.
5954 Remove OP_ARRAY.
5955 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5956 Use new ada_lookup_symbol_list interface.
5957 Use new ada_resolve_function interface.
5958 Remove OP_TYPE case.
5959
5960 (ada_args_match): Idiot proof against null actuals.
5961 Use intermediate variables to clarify.
5962 (ada_resolve_function): Update comment and interface.
5963 (mangled_ordered_before): Rename to encoded_ordered_before and
5964 update comment.
5965 (sort_choices): Update comment and interface.
5966 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5967 (user_select_syms): New interface.
5968 Use new sort_choices interface.
5969 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5970 (possible_user_operator_p): Idiot-proof against null values.
5971 (ada_simple_renamed_entity): Don't make cleanup; rely on
5972 caller to free result string.
5973 Remove const from return type.
5974 (make_array_descriptor): Rename uses of place_on_stack to
5975 ensure_lval.
5976 Make sure that arrays are on stack.
5977
5978 (HASH_SIZE): Define.
5979 (struct cache_entry): Define.
5980 (cache_space): Define.
5981 (cache): Define.
5982 (clear_ada_sym_cache): New function.
5983 (find_entry): New function.
5984 (lookup_cached_symbol): New function.
5985 (defn_vector_size): Define.
5986 (cache_symbol): New function.
5987 (defn_symbols): Remove.
5988
5989 (standard_lookup): Use lookup_symbol_in_language to get effect of
5990 C lookup.
5991 Cache results.
5992
5993 (symbol_completion_match): New function.
5994 (symbol_completion_add): New function.
5995 (ada_make_symbol_completion_list): New function.
5996
5997 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5998 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5999 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6000 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6001
6002 (ada_lookup_simple_minsym): New function.
6003 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6004
6005 (add_symbols_from_enclosing_procs): New interface.
6006 Conditionalize more helpfully.
6007 Don't bother if program isn't running.
6008 Use new interface to get_frame_block.
6009 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6010
6011 (remove_extra_symbols): New interface.
6012 (xget_renaming_scope): New function.
6013 (is_package_name): New function.
6014 (renaming_is_visible): New function.
6015 (remove_out_of_scope_renamings): New function.
6016
6017 (ada_lookup_symbol_list): New interface.
6018 Properly reinitialize the symbol list obstack.
6019 Don't call add_symbols_from_enclosing_procs if we start from a
6020 static or global block.
6021 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6022 add_symbols_from_enclosing_procs.
6023 Add symtab data to cached entries.
6024 Handle symbols prefixed with
6025 "standard__" specially; strip prefix and don't look in local symbols.
6026 Do not include out of scope renaming symbols in list of
6027 symbols returned.
6028 Add const to block parameter.
6029 Move check for non-local, non-global symbols earlier.
6030 Remove timing stuff.
6031 (ada_lookup_symbol): New interface.
6032 Find symtab as well.
6033 (ada_lookup_symbol_nonlocal): New function.
6034
6035 (is_name_suffix): Enhance suffix detection to recognize
6036 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6037 (is_dot_digits_suffix): New function.
6038 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6039
6040 (ada_add_block_symbols): New interface. Use obstack to return results
6041 in a vector of struct ada_symbol_infos. Add symtab argument.
6042 Use new interface to add_defn_to_vec.
6043 Remove calls to fill_in_ada_prototype.
6044 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6045
6046 (ada_finish_decode_line_1): Add const qualification to local to fix
6047 warning.
6048 Start looking in static block for functions to avoid attempts
6049 to search frame chain for up-level variables.
6050 Adapt to new ada_sals_for_line interface.
6051 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6052 Handle quoting of the function name inside the spec string.
6053 Skip prologue when funfirstline is set and update the
6054 function documentation to that effect.
6055
6056 (debug_print_lines, debug_print_block, debug_print_blocks,
6057 debug_print_symtab): Remove.
6058
6059 (ada_main_name): New function.
6060 (ada_exception_breakpoint_type): New function.
6061 (is_known_support_routine): New function.
6062 (ada_find_printable_frame): Renamed from find_printable_frame and made
6063 global.
6064 Remove level parameter.
6065 Use new interface to select_frame.
6066
6067 (begin_command): Remove.
6068 (ada_adjust_exception_stop): New function.
6069 (ada_print_exception_stop): New function.
6070 (exception_name_from_cond): New function.
6071 (ada_report_exception_break): Replace disabled code with
6072 conditionalization on GNAT_GDB.
6073 Get the exception name from the condition string.
6074 Remove and move functionality into new functions
6075 ada_print_exception_breakpoint_task and
6076 ada_print_exception_breakpoint_nontask.
6077 (error_breakpoint_runtime_sym_not_found): New function.
6078 (is_runtime_sym_defined): New function.
6079 (ada_breakpoint_rewrite): Uncomment suppressed code.
6080 Use symbolic error-message and runtime-symbol names.
6081 Surround runtime symbol names in quotes.
6082 Allow non-specific breakpoints on exceptions and assertions before
6083 program starts.
6084
6085 (ada_is_tagged_type): Add parameter.
6086 (ada_is_tag_type): New function.
6087 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6088 (ada_variant_discrim_type): Ditto.
6089 (value_tag_from_contents_and_address): New function.
6090 (type_from_tag): New function.
6091 (struct tag_args): New structure used to communicate with
6092 ada_tag_name_1.
6093 (ada_tag_name_1): New function.
6094 (ada_tag_name): New function.
6095
6096 (ada_scan_number): Update comment.
6097 (find_struct_field): New function.
6098 (ada_search_struct_field): Make static.
6099 (ada_value_struct_elt): New version that returns references when
6100 given pointers or references to structs.
6101 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6102 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6103 interface.
6104 (ada_value_ind): Use new ada_to_fixed_value interface.
6105 (ada_coerce_ref): Ditto.
6106 (field_offset): Remove.
6107
6108 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6109 (ada_find_renaming_symbol): New function.
6110 (ada_prefer_type): Prefer named types over unnamed ones.
6111 (variant_field_index): New function.
6112 (contains_variant_part): Removed: subsumed by variant_field_index.
6113 (ada_template_to_fixed_record_type): New function, mostly from
6114 template_to_fixed_record_type.
6115 (template_to_fixed_record_type):
6116 Do not scan the type fields beyond the last one; prevents a
6117 potential SEGV.
6118 Handle case where variant field is listed BEFORE discriminant it
6119 depends on.
6120 Fix calculation of record length when bit length is
6121 not evenly divisible by char length.
6122 Move code to ada_template_to_fixed_record_type and call it.
6123
6124 (template_to_static_fixed_type): Revise comment.
6125 Modify to work on ordinary record types as well as templates,
6126 so as to handle fields that use ___XVE or ___XVU encodings.
6127 (to_record_with_fixed_variant_part): Fill out comment.
6128 Initialize C++ stuff in right type.
6129 Allow case where DVAL is null.
6130 Handle case where variant field is not last.
6131 Fix typo concerning record length.
6132 (to_fixed_record_type): Decomment disabled code.
6133 (to_fixed_record_type): Use variant_field_index instead of
6134 contains_variant_part.
6135 (to_fixed_variant_branch_type): Ditto.
6136 (to_fixed_array_type): Decomment disabled code.
6137 (ada_to_fixed_type): Convert tagged types to the specific type.
6138 Deactivate the size-check for array types in order to avoid
6139 some false size alarms.
6140 (to_static_fixed_type): Decomment disabled code.
6141 Modify to call template_to_static_fixed_type
6142 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6143 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6144 Remove valaddr argument, as it is never really used.
6145 (ada_to_fixed_value): Change interface to act on single struct value*
6146 operand.
6147 (adjust_pc_past_prologue): New function.
6148 (ada_attribute_name): Modify to take enum exp_opcode argument.
6149
6150 (ada_enum_name): Recognize new homonym-distinguishing convention.
6151 Adjust local variable's type to remove compiler warning.
6152 Fix a small problem in the part that unqualifies the enumeration name.
6153 (ada_value_binop): New function.
6154 (ada_value_equal): New function.
6155
6156 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6157 Don't give error message when not doing normal evaluation
6158 and a tagged type doesn't seem to contain a structure member.
6159 Give error message for packed arrays.
6160 For indexing arrays, handle pointers to packed arrays correctly.
6161 Handle case of 'first and 'last attributes of bare integral type
6162 without encoded subtype info.
6163 Remove some unnecessary casts.
6164 Fix uninitialized value of type in computing 'first, 'last, or 'length
6165 of array object.
6166 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6167 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6168 calls.
6169 Attributes are now exp_opcode values.
6170 Correct treatment of 'modulus.
6171 Better error message for taking 'length of wrong kind of type;
6172 improve comment.
6173 Change EVAL_NORMAL to noside for consistency.
6174 Use ada_value_binop for DIV, MOD, REM.
6175 Make special case out of array of length 0, since an argument
6176 of 0 upsets some platforms' malloc.
6177 Use OP_STRING instead of OP_ARRAY.
6178 For slice, add check that we have an array type before extracting
6179 a slice out of it. Avoids a SEGV.
6180 When evaluating an array slice, if the array type is a reference to
6181 an aligner type, then replace the aligner type by the actual type.
6182 Decomment disabled code.
6183 Remove some dead code.
6184 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6185 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6186 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6187 and UNOP_MBR to UNOP_IN_RANGE.
6188 If an array type has a parallel ___XVE type, then use it.
6189 Turn arrays into pointers for lvalue arrays.
6190 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6191 bounds error and handle 0-length slices.
6192 Use lim_warning.
6193 When selecting fields, apply ada_to_fixed_value (because the fields
6194 might have ___XVU or ___XVE encodings even if not dynamic.)
6195 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6196 (ada_is_system_address_type): New function.
6197
6198 (get_var_value): Use new interface to ada_lookup_symbol_list.
6199 (get_int_var_value): New interface.
6200 (to_fixed_range_type): Allow unknown bound, with warning.
6201 (ada_is_modular_type): Decomment disabled code.
6202 (ADA_OPERATORS): New definition.
6203 (ada_operator_length): New function.
6204 (ada_expr_op_name): New function.
6205 (ada_forward_operator_length): New function.
6206 (ada_dump_subexp_body): New function.
6207 (ada_print_subexp): New function.
6208 (ada_exp_descriptor): New constant.
6209 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6210 (ada_language_defn): Add ada_exp_descriptor entry.
6211 Change ada_parse => parse.
6212 Add post-parser entry.
6213 Use ada-specific non-local symbol lookup.
6214 Don't use C-style arrays.
6215 String lower-bound is 1.
6216 Decomment disabled code.
6217 (parse): New function.
6218 New fields ada_translate_error_message, ada_lookup_symbol,
6219 ada_lookup_minimal_symbol.
6220
6221 * ada-lang.h: Update copyright dates.
6222 Replace the mangle/demangle terminology throughout by the
6223 more appropriate encode/decode one.
6224 Include breakpoint.h.
6225 Forward declare struct partial_symbol, struct block.
6226 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6227 (EXTRACT_ADDRESS): Remove.
6228 (EXTRACT_INT): Remove.
6229 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6230 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6231 (MAX_RENAMING_CHAIN_LENGTH): Define.
6232 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6233
6234 (enum task_states): Remove.
6235 ada_task_states: Remove.
6236 (fat_string): Remove.
6237 (struct entry_call): Remove.
6238 (struct task_fields): Remove.
6239 (struct task_entry): Remove.
6240
6241 (struct ada_symbol_info): Define.
6242 (enum ada_attribute): Remove.
6243 (enum ada_operator): Define.
6244
6245 (ada_get_field_index): Declare.
6246 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6247 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6248 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6249 (ada_lookup_symbol_list): New interface.
6250 (ada_decode_symbol): Declare.
6251 (ada_decode): Declare.
6252 (ada_lookup_symbol): New interface.
6253 (ada_update_initial_language): Declare.
6254 (ada_lookup_simple_minsym): Declare.
6255 (user_select_syms): New interface.
6256 (ada_sals_for_line): Declare.
6257 (ada_is_tagged_type): New interface.
6258 (ada_tag_name): Declare.
6259 (ada_lookup_struct_elt_type): Remove declaration.
6260 (ada_search_struct_field): Remove declaration.
6261 (ada_attribute_name): New interface.
6262 (ada_is_system_address_type): Declare.
6263 (ada_to_fixed_value): Remove declaration.
6264 (ada_template_to_fixed_record_type_1): Declare.
6265 (get_int_var_value): New interface.
6266 (ada_find_any_symbol): Declare.
6267 (ada_find_renaming_symbol): Declare.
6268 (ada_mangle): Rename to ada_encode.
6269 (ada_simple_renamed_entity): Remove const.
6270 (ada_main_name): Declare.
6271 (get_current_task): Rename to ada_get_current_task.
6272 (get_entry_number): Remove declaration.
6273 (ada_report_exception_break): Remove declaration.
6274 (ada_print_exception_breakpoint_nontask): Declare.
6275 (ada_print_exception_breakpoint_task): Declare.
6276 (ada_find_printable_frame): Declare.
6277
6278 * ada-lex.l: Update copyright notices.
6279 Use xmalloc and xfree instead of malloc and free.
6280 Use new interface to name_lookup.
6281 Use new interface to
6282 ada_mangle=>ada_encode.
6283 Redo handling of '$...' variable to parallel current treatment
6284 in c-exp.y.
6285 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6286 digit_to_int, strtoulst, processInt, processReal, processId,
6287 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6288 yywrap): Protoize.
6289
6290 (processInt): Use cast to remove harmless warning.
6291 (processReal): Modify to get rid of compiler warning on scan formats.
6292
6293 (processId): Replace xmalloc with obstack_alloc for name and remove
6294 call to ada_name_string_cleanup.
6295 Remove obsolete disabled code.
6296 (name_lookup): Ditto.
6297 New interface.
6298 Use obsavestring on temp_parse_space instead of savestring
6299 on name, and remove call to ada_name_string_cleanup.
6300 Free string returned from ada_simple_renamed_entity.
6301 Use new interface to ada_lookup_symbol_list.
6302 Decomment disabled code.
6303 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6304 not types.
6305 When a type name lookup succeeds as a result of
6306 lookup_primitive_typename, check for regular type entry that has not
6307 yet been read in.
6308 Limit length of chain of renamed symbols we are willing to follow.
6309 Do not break names beginning with "standard__" into segments.
6310 (block_lookup): Use new interface to ada_lookup_symbol_list.
6311
6312 * ada-typeprint.c: Update copyright notice.
6313 (demangled_type_name): Rename to decoded_type_name.
6314 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6315 (print_range_bound): Correct handling of negative
6316 bounds that make the index type looked unsigned under STABS.
6317 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6318 (print_range_type_named): Use the builtin int type if no type
6319 corresponding to the given type name could be found.
6320 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6321 Add some bullet-proofing.
6322 (print_variant_clauses): Allow for variant branches with ___XVU
6323 encodings that are not dynamic fields.
6324 Use new interface to ada_is_tagged_type.
6325 (print_record_type): Allow for fields with ___XVE encodings that
6326 are not dynamic fields.
6327 Use new interface to ada_is_tagged_type.
6328 (ada_print_type): ada_is_array_descriptor =>
6329 ada_is_array_descriptor_type.
6330
6331 * ada-valprint.c: Update copyright notice.
6332 Include gdb_string.h
6333 Include infcall.h
6334 (ui_memcpy): New function.
6335 (ada_print_floating): New function.
6336 (ada_print_str): Order arguments correctly.
6337 Correct handling of empty arrays and arrays of 0-length items.
6338 ada_is_array_descriptor => ada_is_array_descriptor_type
6339 Print values of type System.Address in hexadecimal format.
6340 Use ada_print_floating to print floating-point numbers in Ada format.
6341 Print class tag values with type names.
6342 No longer print the address of reference values. Avoids
6343 a potential confusion.
6344 (ada_value_print): Stop printing the object type for reference
6345 values, but preserve that behavior for access types. Avoids
6346 a potential confusion.
6347 Simplify one conditional expression, as the first part is now
6348 necessarily true.
6349 ada_is_array_descriptor => ada_is_array_descriptor_type
6350 Add check for arrays for null records, and print them by hand.
6351
6352 2004-06-01 Jim Blandy <jimb@redhat.com>
6353
6354 * ppc-tdep.h: Delete unused 'regoff' member.
6355 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6356
6357 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6358
6359 Fix PR symtab/1661.
6360 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6361 (hpread_read_struct_type): Likewise.
6362
6363 2004-06-01 Andrew Cagney <cagney@gnu.org>
6364
6365 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6366 instead of xasprintf.
6367 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6368 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6369 (mi_cmd_data_list_register_names)
6370 (mi_cmd_data_list_changed_registers)
6371 (mi_cmd_data_list_register_values)
6372 (get_register, mi_cmd_data_write_register_values)
6373 (mi_cmd_data_write_register_values)
6374 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6375 (mi_cmd_target_download, mi_cmd_target_select)
6376 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6377 (mi_execute_cli_command, mi_execute_async_cli_command)
6378 (mi_execute_async_cli_command): Ditto.
6379 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6380 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6381
6382 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6383 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6384 error_last_message instead of mi_error_last_message.
6385 * mi/mi-main.c (mi_error_last_message): Delete function.
6386
6387 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6388 "invalid number of columns" error. Delete redundant "out of
6389 memory" check.
6390
6391 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6392
6393 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6394 (gregset_t, fpregset_t): Remove typedefs.
6395 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6396 (REG_OFFSET): Rename argument.
6397 (i386bsd_r_reg_offset): Rename from reg_offset.
6398 (REG_ADDR): Remove macro.
6399 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6400 functions.
6401 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6402 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6403 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6404 instead of supply_gregset.
6405 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6406 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6407 instead of fill_gregset.
6408 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6409
6410 * i386bsd-nat.c: Don't include "gregset.h".
6411 (supply_gregset, fill_gregset): Make static.
6412 (supply_fpregset, fill_fpregset): Remove.
6413 * Makefile.in (i386bsd-nat.o): Update dependencies.
6414
6415 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6416
6417 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6418 "gdb_assert.h". Con't include "gregset.h".
6419 (fbsd_make_corefile_notes): Use regset-based core file support
6420 instead off fill_gregset and fill_fpregset.
6421 * Makefile.in (fbsd-proc.o): Update dependencies.
6422
6423 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6424 instructions.
6425 (m88k_frame_prev_register): Simplify code a bit.
6426
6427 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6428 (amd64_collect_fpregset): New function.
6429 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6430
6431 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6432
6433 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6434 (i386_collect_gregset): New function.
6435 (i386_supply_fpregset): Adjust comment.
6436 (i386_collect_fpregset): New function.
6437 (i386_regset_from_core_section): Use i386_collect_gregset and
6438 i386_collect_fpregset.
6439
6440 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6441 handle VALUEP being null.
6442
6443 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6444
6445 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6446
6447 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6448
6449 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6450 assembler in OpenBSD 3.5-current.
6451 (amd64obsd_sigcontext_addr): Likewise.
6452
6453 2004-05-28 Jim Blandy <jimb@redhat.com>
6454
6455 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6456 register set, so our regcache isn't declared "legacy" and our E500
6457 pseudoregister read and write functions aren't ignored.
6458 (rs6000_register_byte, rs6000_register_raw_size,
6459 rs6000_register_virtual_type, rs6000_register_convertible,
6460 rs6000_register_convert_to_virtual,
6461 rs6000_register_convert_to_raw): Deleted.
6462 (rs6000_register_type, rs6000_convert_register_p,
6463 rs6000_register_to_value, rs6000_value_to_register): New
6464 functions.
6465 (rs6000_gdbarch_init): Don't register
6466 gdbarch_deprecated_register_size,
6467 gdbarch_deprecated_register_bytes,
6468 gdbarch_deprecated_register_byte,
6469 gdbarch_deprecated_register_raw_size,
6470 gdbarch_deprecated_register_virtual_type,
6471 gdbarch_deprecated_register_convertible,
6472 gdbarch_deprecated_register_convert_to_virtual, or
6473 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6474 register gdbarch_register_type, gdbarch_convert_register_p,
6475 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6476
6477 2004-05-26 Jim Blandy <jimb@redhat.com>
6478
6479 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6480 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6481 functions, updated to match the register numberings used in GCC.
6482 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6483 rs6000_dwarf2_reg_to_regnum as register number conversions
6484 functions for STABS and Dwarf2.
6485
6486 2004-05-26 Randolph Chung <tausq@debian.org>
6487
6488 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6489 in header file.
6490
6491 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6492
6493 * NEWS: Document new "start" command.
6494
6495 2004-05-25 Randolph Chung <tausq@debian.org>
6496
6497 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6498 hppa-linux.
6499
6500 2004-05-25 Randolph Chung <tausq@debian.org>
6501
6502 * hppa-hpux-tdep.c (offsetof): Define.
6503 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6504 (hppa32_hpux_frame_base_before_sigtramp)
6505 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6506 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6507 (hppa64_hpux_frame_base_before_sigtramp)
6508 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6509 functions.
6510 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6511 (hppa_hpux_sigtramp_frame_unwind_cache)
6512 (hppa_hpux_sigtramp_frame_this_id)
6513 (hppa_hpux_sigtramp_frame_prev_register)
6514 (hppa_hpux_sigtramp_frame_unwind)
6515 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6516 (hppa_hpux_init_abi): Register sigtramp unwinder.
6517 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6518
6519 2004-05-25 Randolph Chung <tausq@debian.org>
6520
6521 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6522 and multiple stack unwinds.
6523 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6524
6525 2004-05-25 Andrew Cagney <cagney@gnu.org>
6526
6527 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6528 * symfile-mem.h: Delete file.
6529 * symfile-mem.c: Do not include "symfile-mem.h".
6530 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6531 "struct bfd_section". When an error do not bother returning NULL.
6532 (add_symbol_file_from_memory_command): Use "struct bfd" and
6533 "struct bfd_section".
6534 * Makefile.in (symfile_mem_h): Delete.
6535 (symfile-mem.o): Update dependencies.
6536
6537 2004-05-25 Nick Roberts <nickrob@gnu.org>
6538
6539 * gdb-mi.el: New file.
6540
6541 2004-05-25 Andrew Cagney <cagney@gnu.org>
6542
6543 * inftarg.c: Include "observer.h".
6544 (child_attach, child_create_inferior): Notify inferior_created.
6545 * corelow.c: Include "observer.h".
6546 (core_open): Notify inferior_created.
6547 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6548
6549 2004-05-25 Andrew Cagney <cagney@gnu.org>
6550
6551 * target.h (struct target_ops): Add from_tty to
6552 to_create_inferior.
6553 (target_create_inferior, find_default_create_inferior): Update.
6554 * infcmd.c (run_command): Update.
6555 * wince.c (child_create_inferior): Update.
6556 * win32-nat.c (child_create_inferior): Update.
6557 * uw-thread.c (uw_thread_create_inferior): Update.
6558 * thread-db.c (thread_db_create_inferior): Update.
6559 * target.c (debug_to_create_inferior)
6560 (find_default_create_inferior): Update.
6561 (maybe_kill_then_create_inferior): Update.
6562 * sol-thread.c (sol_thread_create_inferior): Update.
6563 * remote.c (extended_remote_async_create_inferior)
6564 (extended_remote_create_inferior): Update.
6565 * remote-vx.c (vx_create_inferior): Update.
6566 * remote-st.c (st2000_create_inferior): Update.
6567 * remote-sim.c (gdbsim_create_inferior): Update.
6568 * remote-sds.c (sds_create_inferior): Update.
6569 * remote-rdp.c (remote_rdp_create_inferior): Update.
6570 * remote-rdi.c (arm_rdi_create_inferior): Update.
6571 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6572 * remote-e7000.c (e7000_create_inferior): Update.
6573 * procfs.c (procfs_create_inferior): Update.
6574 * ocd.c (ocd_create_inferior): Update.
6575 * ocd.h (ocd_create_inferior): Update.
6576 * nto-procfs.c (procfs_create_inferior): Update.
6577 * monitor.c (monitor_create_inferior): Update.
6578 * lin-lwp.c (lin_lwp_create_inferior): Update.
6579 * inftarg.c (child_create_inferior): Update.
6580 * hpux-thread.c (hpux_thread_create_inferior): Update.
6581 * gnu-nat.c (gnu_create_inferior): Update.
6582
6583 2004-05-25 Andrew Cagney <cagney@gnu.com>
6584
6585 * MAINTAINERS: Update e-mail address.
6586
6587 2004-05-24 Randolph Chung <tausq@debian.org>
6588
6589 * thread.c (info_threads_command, thread_apply_all_command)
6590 (thread_apply_command, thread_command, do_captured_thread_select):
6591 Remove HPUXHPPA-specific code.
6592
6593 2004-05-24 Randolph Chung <tausq@debian.org>
6594
6595 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6596 unused symbols.
6597 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6598 references.
6599
6600 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6601
6602 * infcmd.c (kill_if_already_running): New function, extracted
6603 from run_command().
6604 (run_command): Replace extracted code by call to
6605 kill_if_already_running().
6606 (start_command): New function.
6607 (_initialize_infcmd): Add "start" command.
6608
6609 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6610
6611 Add OpenBSD/m88k support.
6612 * NEWS (New native configurations): Mention OpenBSD/m88k.
6613 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6614 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6615 * Makefile.in (m88k_tdep_h): New variable.
6616 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6617 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6618 * configure.host: Add m88*-*-openbsd*.
6619 * configure.tgt: Add m88*-*-openbsd*.
6620
6621 2004-05-24 Jim Blandy <jimb@redhat.com>
6622
6623 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6624 to approve changes.
6625
6626 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6627
6628 * symtab.c (fixup_section): Search section table when lookup by
6629 name fails.
6630
6631 2004-05-24 Randolph Chung <tausq@debian.org>
6632
6633 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6634 be "small_struct".
6635
6636 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6637
6638 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6639 register number in regcache_raw_collect call.
6640 (m68kbsd_collect_fpregset): Likewise.
6641 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6642
6643 * regset.h (struct regset): Add back `regset' member.
6644
6645 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6646
6647 * configure.in: Check for td_pcb in `struct thread'.
6648 * configure, config.in: Regenerated.
6649
6650 * dpx2-nat.c: Remove file.
6651 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6652 (dpx2-nat.o): Remove dependencies.
6653
6654 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6655 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6656 (amd64obsd_supply_pcb): New function.
6657 (_initialize_amd64obsd_nat): Enable libkvm interface.
6658 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6659 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6660 (LOADLIBES): New variable.
6661
6662 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6663 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6664 (sparc32nbsd_supply_pcb): New function.
6665 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6666 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6667 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6668 (LOADLIBES): New variable.
6669
6670 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6671
6672 * bsd-kvm.c, bsd-kvm.h: New files.
6673 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6674 "bsd-kvm.h".
6675 (i386fbsd_supply_pcb): New function.
6676 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6677 (i386fbsd-nat.o): Update dependencies.
6678 (bsd_kvm_h): New variable.
6679 (bsd-kvm.o): New dependency.
6680 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6681 (LOADLIBES): New variable.
6682
6683 * regset.c: Tweak comment.
6684 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6685 macro.
6686 * regset.h: Update copyright year.
6687 (struct regset): Remove `descr' member, add `gdbarch' member.
6688 (regset_alloc): Adjust prototype and comment.
6689 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6690 (i386_supply_fpregset): Likewise.
6691 (i386_regset_from_core_section): Update call to regset_alloc.
6692 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6693 REGSET->arch.
6694 (i386obsd_aout_regset_from_core_section): Update call to
6695 regset_alloc.
6696 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6697 REGSET->arch.
6698 (i386nbsd_aout_regset_from_core_section): Update call to
6699 regset_alloc.
6700 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6701 REGSET->arch.
6702 (amd64_regset_from_core_section): Update call to regset_alloc.
6703 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6704 REGSET->arch.
6705 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6706 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6707 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6708 (sparc32nbsd_init_abi): Update call to regset_alloc.
6709 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6710 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6711 (sparc64obsd_init_abi): Update call to regset_alloc.
6712 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6713 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6714 (sparc64nbsd_init_abi): Update call to regset_alloc.
6715 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6716 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6717 (sparc64fbsd_init_abi): Update call to regset_alloc.
6718
6719 2004-05-22 Jim Blandy <jimb@redhat.com>
6720
6721 * ppc-tdep.h (spe_register_p): New declaration.
6722 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6723 ppc_spefscr_regnum.
6724 * rs6000-tdep.c (spe_register_p): New function.
6725 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6726 spefscr.
6727 (rs6000_gdbarch_init): Initialize the new members of the tdep
6728 structure.
6729
6730 2004-05-21 Jim Blandy <jimb@redhat.com>
6731
6732 * ppc-linux-nat.c (fetch_register): Move code back to be next
6733 to the comment that describes it. (Moved code, instead of
6734 comment, for symmetry with store_register.)
6735
6736 Allocate regset structures in the gdbarch's obstack, not using
6737 xmalloc.
6738 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6739 Add 'arch' argument. Allocate the regset on arch's obstack, not
6740 using xmalloc.
6741 * regset.h (regset_alloc): Update declaration.
6742 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6743 gdbarch argument.
6744 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6745 * i386-tdep.c (i386_regset_from_core_section): Same.
6746 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6747 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6748 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6749 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6750 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6751 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6752
6753 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6754
6755 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6756
6757 2004-05-21 Jim Blandy <jimb@redhat.com>
6758
6759 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6760 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6761
6762 2004-05-20 Jim Blandy <jimb@redhat.com>
6763
6764 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6765
6766 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6767
6768 * regset.h: Make prototype const-correct.
6769 * regset.c (regset_xmalloc): Make const-correct.
6770
6771 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6772
6773 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6774 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6775 (symbol_search_name): Declare.
6776
6777 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6778 (iter_name_next_hashed): Ditto.
6779 (iter_name_next_linear): Ditto.
6780 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6781
6782 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6783 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6784 (symbol_search_name): New function.
6785
6786 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6787
6788 * minsyms.c (build_minimal_symbol_hash_tables): Change
6789 test for adding to demangled hash table to check for difference
6790 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6791
6792 2004-05-19 Jim Blandy <jimb@redhat.com>
6793
6794 Use a constructor function to create regset structures.
6795 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6796 (struct regset): Use supply_regset_ftype. Add new
6797 'collect_regset' member.
6798 (regset_xmalloc): New declaration.
6799 * regset.c: New file.
6800 * am64-tdep.c (amd64_regset_from_core_section): Use
6801 regset_xmalloc to construct regset structures.
6802 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6803 * i386-tdep.c (i386_regset_from_core_section): Same.
6804 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6805 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6806 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6807 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6808 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6809 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6810 * Makefile.in (COMMON_OBS): Add regset.o.
6811 (regset.o): New rule.
6812
6813 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6814
6815 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6816 and pthread_cond_wait.c.
6817
6818 2004-05-18 Jim Blandy <jimb@redhat.com>
6819
6820 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6821 before the mach-specific switch, and then let the individual cases
6822 override the defaults, rather than leaving them uninitialized
6823 until the switch and then setting them in each case.
6824
6825 2004-05-18 Randolph Chung <tausq@debian.org>
6826
6827 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6828 millicode functions.
6829
6830 2004-05-18 Randolph Chung <tausq@debian.org>
6831
6832 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6833 references to dld_flags_buffer consistent.
6834
6835 2004-05-18 Randolph Chung <tausq@debian.org>
6836
6837 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6838 it for unwinding the stack.
6839
6840 2004-05-18 Randolph Chung <tausq@debian.org>
6841
6842 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6843 Undefine these so we can overide them using gdbarch.
6844
6845 2004-05-18 Randolph Chung <tausq@debian.org>
6846
6847 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6848 handling for 64-bit HPUX (elf).
6849
6850 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6851
6852 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6853 constants.
6854 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6855 * ia64-tdep.c (examine_prologue): Likewise.
6856 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6857 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6858
6859 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6860
6861 * vax-tdep.c (vax_return_value): Implement
6862 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6863
6864 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6865
6866 * vax-tdep.c (vax_return_value): Fix typo.
6867
6868 2004-05-17 Andrew Cagney <cagney@redhat.com>
6869
6870 * MAINTAINERS: Mark Salter was also responsible for
6871 testsuite/config/
6872
6873 * NEWS: Mention signal fixes.
6874
6875 2004-05-17 Randolph Chung <tausq@debian.org>
6876
6877 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6878 check to see if we are unwinding an export stub. Export stubs clobber
6879 the %rp in the call path and stores the original rp in a stack slot.
6880
6881 2004-05-17 Jim Blandy <jimb@redhat.com>
6882
6883 * MAINTAINERS: Update address for J.T. Conklin.
6884
6885 2004-05-17 Randolph Chung <tausq@debian.org>
6886
6887 * hppa-tdep.c: Remove superfluous #include's.
6888 * Makefile.in (hppa-tdep.o): Update dependencies.
6889
6890 2004-05-17 Randolph Chung <tausq@debian.org>
6891
6892 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
6893 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
6894 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
6895 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
6896 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
6897 Remove static function declarations.
6898
6899 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6900
6901 * alphabsd-nat.c: Update copyright year.
6902 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
6903
6904 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
6905 and M68K_A2_REGNUM.
6906
6907 * m68k-tdep.c (m68k_svr4_return_value): Implement
6908 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6909
6910 2004-05-16 Mark Kettenis <kettenis@gnu.org>
6911
6912 * sol-thread.c Update copyright year. Fix various coding
6913 standards violations. Tweak a few comments.
6914 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
6915 Delete prototypes.
6916
6917 2004-05-15 Randolph Chung <tausq@debian.org>
6918
6919 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
6920 as pointer instead of array reference since HPUX compiler does
6921 not accept unsized array arguments.
6922 * somsolib.c (dld_flags_buffer): Use constant array size.
6923
6924 2004-05-15 Mark Kettenis <kettenis@gnu.org>
6925
6926 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
6927 offset with decimal offset.
6928 (amd64obsd_sigcontext_addr): Return correct address for entire
6929 signal trampoline.
6930
6931 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
6932 instead of get_frame_base.
6933
6934 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
6935 (fill_gregset): Use regcache_raw_collect.
6936
6937 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
6938 ppcobsd-tdep.c.
6939
6940 * config/sparc/tm-nbsd64.h: Remove file.
6941 * config/tm-sunos.h: Remove file.
6942
6943 2004-05-15 Joel Brobecker <brobecker@gnat.com>
6944
6945 * rs6000-tdep.c (store_param_on_stack_p): New function,
6946 an improved version of some code extracted from skip_prologue().
6947 (skip_prologue): Use store_param_on_stack_p() to detect
6948 instructions saving a parameter on the stack. Detect when r0
6949 is used to save a parameter.
6950 Do not mark "li rx, SIMM" instructions as part of the prologue,
6951 unless the following instruction is also part of the prologue.
6952
6953 2004-05-14 Andrew Cagney <cagney@redhat.com>
6954
6955 * infrun.c (handle_inferior_event): Simplify
6956 STEP_OVER_UNDEBUGGABLE.
6957
6958 * infrun.c (handle_step_into_function): Delete function.
6959 (handle_inferior_event): Inline calls to
6960 handle_step_into_function.
6961
6962 2004-05-14 Jerome Guitton <guitton@gnat.com>
6963
6964 * rs6000-nat.c: Fix a comment.
6965
6966 2004-05-12 David Anderson <davea@sgi.com>
6967
6968 Committed by Jim Blandy <jimb@redhat.com>:
6969 * regcache.c (struct regcache_descr): fix comment spelling.
6970
6971 2004-05-13 J. Brobecker <brobecker@gnat.com>
6972
6973 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6974 Fixes a link link failure.
6975
6976 2004-05-13 J. Brobecker <brobecker@gnat.com>
6977
6978 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6979 error that was causing the build to fail.
6980
6981 2004-05-13 J. Brobecker <brobecker@gnat.com>
6982
6983 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6984 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6985
6986 2004-05-13 Andrew Cagney <cagney@redhat.com>
6987
6988 * infrun.c (handle_inferior_event): Check for
6989 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6990 calls. Update comments.
6991
6992 2004-05-13 Jim Blandy <jimb@redhat.com>
6993
6994 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6995 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6996 (store_regs_user_thread, store_regs_kernel_thread): Use
6997 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6998 * ppc-linux-nat.c (fill_gregset): Same.
6999 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7000 (ppc_linux_sigtramp_cache): Same.
7001 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7002 (ppcnbsd_sigtramp_cache_init): Same.
7003 * rs6000-nat.c (fetch_core_registers): Same.
7004 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7005 (rs6000_frame_cache): Same.
7006
7007 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7008 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7009 of assuming that the gprs are numbered starting with zero.
7010 * ppc-linux-nat.c (fill_gregset): Same.
7011 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7012 * ppcnbsd-nat.c (getregs_supplies): Same.
7013 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7014 * rs6000-nat.c (fetch_core_registers): Same.
7015 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7016
7017 2004-05-07 Michael Snyder <msnyder@redhat.com>
7018
7019 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7020 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7021
7022 2004-05-13 Andrew Cagney <cagney@redhat.com>
7023
7024 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7025
7026 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7027
7028 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7029 base_address for shared libraries.
7030
7031 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7032
7033 * MAINTAINERS (write after approval): Add myself.
7034
7035 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7036
7037 * breakpoint.c (bpstat_stop_status): Add new argument
7038 STOPPED_BY_WATCHPOINT. Use it instead of testing
7039 target_stopped_data_address agaist 0 to check whether
7040 or not we stopped due to a hardware watchpoint.
7041 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7042 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7043 with new argument.
7044
7045 2004-05-12 Jim Blandy <jimb@redhat.com>
7046
7047 * configure.in: When checking whether we should use the -bbigtoc
7048 option, don't forget to restore the original value of LDFLAGS.
7049 * configure: Regenerated.
7050
7051 2004-05-12 Andrew Cagney <cagney@redhat.com>
7052
7053 * thread.c (load_infrun_state): Delete step_sp.
7054 * infrun.c (context_switch): Ditto.
7055 * inferior.h (step_sp): Ditto.
7056 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7057 * gdbthread.h (struct thread_info, save_infrun_state)
7058 (restore_infrun_state): Ditto.
7059
7060 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7061
7062 * MAINTAINERS (write after approval): Add myself.
7063
7064 2004-05-12 Andrew Cagney <cagney@redhat.com>
7065
7066 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7067 eliminate reference to step_sp.
7068 (struct execution_control_state, init_execution_control_state)
7069 (handle_inferior_event, keep_going): Delete update_step_sp and
7070 step_sp.
7071 * infcmd.c (step_sp): Note that variable is unused.
7072
7073 2004-05-11 Andrew Cagney <cagney@redhat.com>
7074
7075 * infrun.c (step_over_function): Delete function.
7076 (handle_step_into_function): Use insert_step_resume_breakpoint.
7077 (insert_step_resume_breakpoint): Fix assertion.
7078
7079 2004-05-11 Nick Roberts <nickrob@gnu.org>
7080
7081 * utils.c (defaulted_query): Just use the normal query input type
7082 when printing the annotations.
7083
7084 2004-05-11 Andrew Cagney <cagney@redhat.com>
7085
7086 * infrun.c (handle_inferior_event): Simplify code handling
7087 step-into or return-from a signal trampoline.
7088
7089 2004-05-11 Andrew Cagney <cagney@redhat.com>
7090
7091 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7092 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7093
7094 2004-05-10 Jim Blandy <jimb@redhat.com>
7095
7096 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7097 with a call to internal_error.
7098
7099 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7100 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7101 processor variant lacks those registers.
7102 (ppc_floating_point_unit_p): Change description to make it clear
7103 that this returns info about the ISA, not the ABI.
7104 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7105 return true or false by checking tdep->ppc_fp0_regnum and
7106 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7107 arch/mach switching done in rs6000_gdbarch_init; it's better to
7108 keep that logic there, and just check the results here.
7109 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7110 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7111 floating-point registers.
7112 (ppc_supply_fpregset, ppc_collect_fpregset)
7113 (rs6000_push_dummy_call, rs6000_extract_return_value)
7114 (rs6000_store_return_value): Assert that we have floating-point
7115 registers.
7116 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7117 (rs6000_frame_cache): Don't note the locations at which
7118 floating-point registers were saved if we have no fprs.
7119 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7120 registers.
7121 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7122 (store_regs_user_thread, store_regs_kernel_thread): Only call
7123 supply_fprs / fill_fprs if we actually have floating-point
7124 registers.
7125 (special_register_p): Check ppc_fpscr_regnum before matching
7126 against it.
7127 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7128 supply / collect fpscr if we don't have it.
7129 * ppc-bdm.c: #include "gdb_assert.h".
7130 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7131 have floating-point registers, since I can't test this code on
7132 FP-free systems to adapt it.
7133 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7134 fpscr and floating point register numbers if they don't exist.
7135 (fetch_register): Assert that we have floating-point registers
7136 before we reach the code that handles them.
7137 (store_register): Same. And use tdep instead of calling
7138 gdbarch_tdep again.
7139 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7140 don't have them.
7141 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7142 fprs and fpscr if we don't have them.
7143 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7144 don't have them.
7145 * ppcnbsd-nat.c: #include "gdb_assert.h".
7146 (getfpregs_supplies): Assert that we have floating-point registers.
7147 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7148 * ppcobsd-tdep.c: #include "gdb_assert.h".
7149 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7150 have floating-point registers.
7151 * rs6000-nat.c (regmap): Don't match against the fpscr and
7152 floating point register numbers if they don't exist.
7153 (fetch_inferior_registers, store_inferior_registers,
7154 fetch_core_registers): Only fetch / store / supply the
7155 floating-point registers and the fpscr if we have them.
7156 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7157 (ppcobsd-tdep.o): Update dependencies.
7158
7159 2004-05-10 Andrew Cagney <cagney@redhat.com>
7160
7161 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7162 (context_switch): Do not switch through_sigtramp_breakpoint.
7163 * gdbthread.h (save_infrun_state, load_infrun_state)
7164 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7165 and structure member.
7166 * thread.c (load_infrun_state, save_infrun_state): Update.
7167
7168 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7169
7170 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7171
7172 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7173
7174 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7175 throughout.
7176 * aclocal.m4: Regenerate.
7177
7178 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7179
7180 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7181
7182 2004-05-10 Andrew Cagney <cagney@redhat.com>
7183
7184 * infrun.c (check_sigtramp2): Delete function.
7185 (handle_inferior_event): When single stepping, and taking a
7186 signal, set a breakpoint at the signal return address. Delete
7187 redundant calls to check_sigtramp2.
7188 (insert_step_resume_breakpoint): New function.
7189 (through_sigtramp_breakpoint, handle_inferior_event)
7190 (follow_exec, wait_for_inferior, fetch_inferior_event)
7191 (currently_stepping, keep_going): Delete most uses of
7192 through_sigtramp_breakpoint, not that it should be deleted.
7193 (delete_breakpoint_current_contents): Delete function.
7194
7195 2004-05-10 Randolph Chung <tausq@debian.org>
7196
7197 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7198 target.
7199 * config/pa/tm-linux.h: New file.
7200
7201 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7202
7203 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7204 of prefixes. Don't print the prefix twice in the CLI.
7205
7206 2004-05-10 Jim Blandy <jimb@redhat.com>
7207
7208 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7209 collect all the gprs.
7210
7211 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7212 loop collecting gprs.
7213
7214 2004-05-09 Andrew Cagney <cagney@redhat.com>
7215
7216 * remote-vx.c (net_step): Delete step-range code.
7217 * remote.c (remote_resume, init_all_packet_configs)
7218 (set_remote_protocol_E_packet_cmd)
7219 (show_remote_protocol_E_packet_cmd)
7220 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7221 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7222 (show_remote_protocol_e_packet_cmd): Ditto.
7223
7224 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7225
7226 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7227
7228 * hppa-tdep.h: Update copyright year.
7229 (struct trad_frame_saved_reg): Add opaque declaration.
7230
7231 * amd64-tdep.c (amd64_return_value): Implement
7232 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7233
7234 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7235 (m68k_value_to_register): New functions.
7236 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7237 value_to_register.
7238
7239 * defs.h (enum return_value_convention): Add
7240 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7241 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7242 * infcmd.c (legacy_return_value): New function.
7243 (print_return_value): Rwerite to implement
7244 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7245 * values.c (using_struct_return): Check for inequality to
7246 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7247 RETURN_VALUE_STRUCT_CONVENTION.
7248 * i386-tdep.c (i386_return_value): Implement
7249 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7250
7251 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7252 include "symtab.h", "opcode/vax.h" and "inferior.h".
7253 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7254 to read_memory_unsigned_integer.
7255 (vax_gdbarch_init): Reorder.
7256 (_initialize_vax_tdep): Spell out prototype.
7257 * Makefile.in (vax-tdep.o): Update dependencies.
7258
7259 2004-05-08 Andrew Cagney <cagney@redhat.com>
7260
7261 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7262 * target.c (target_detach, target_disconnect): Ditto.
7263
7264 * infcall.c (call_function_by_hand): When no
7265 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7266 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7267 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7268 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7269 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7270
7271 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7272 * gdbarch.h, gdbarch.c: Re-generate.
7273 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7274 deprecated_fix_call_dummy.
7275 * v850-tdep.c (v850_gdbarch_init): Ditto.
7276 * infcall.c (call_function_by_hand): Do not call
7277 DEPRECATED_FIX_CALL_DUMMY.
7278
7279 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7280 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7281 * gdbarch.h, gdbarch.c: Re-generate.
7282 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7283 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7284 deprecated_sizeof_call_dummy_words.
7285 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7287 * v850-tdep.c (v850_gdbarch_init): Ditto.
7288 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7289 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7290 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7291 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7292 * arch-utils.h (legacy_call_dummy_words)
7293 (legacy_sizeof_call_dummy_words): Delete declarations.
7294 * arch-utils.c (legacy_call_dummy_words)
7295 (legacy_sizeof_call_dummy_words): Delete variables.
7296
7297 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7298 * gdbarch.h, gdbarch.c: Re-generate.
7299 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7300 * infcall.c (call_function_by_hand): Eliminate call to
7301 DEPRECATED_PUSH_DUMMY_FRAME.
7302 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7303 push_dummy_frame.
7304 (ns32k_push_dummy_frame): Delete function.
7305
7306 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7307 deprecated_call_dummy_breakpoint_offset or
7308 deprecated_call_dummy_start_offset.
7309 * dummy-frame.c, arm-tdep.c: Update comments.
7310 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7311 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7312 * gdbarch.h, gdbarch.c: Re-generate.
7313
7314 * infcall.c (legacy_push_dummy_code): Delete function.
7315 (push_dummy_code): Delete call.
7316
7317 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7318 * gdbarch.h, gdbarch.c: Re-generate.
7319 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7320 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7321 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7322 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7323
7324 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7325 (struct frame_info): Delete opaque declaration.
7326 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7327 * frame.c (get_frame_type): Delete call.
7328
7329 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7330 pc_in_call_dummy.
7331 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7332 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7333
7334 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7335
7336 * alphanbsd-tdep.c: Include "gdb_string.h".
7337 * armnbsd-tdep.c: Update copyright year.
7338 Include "gdb_string.h".
7339 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7340 dependencies.
7341
7342 * delta68-nat.c: Remove file.
7343 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7344 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7345 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7346 (delta68-nat.o): Remove dependency.
7347
7348 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7349 function.
7350 (m68k_gdbarch_init): Don't set
7351 deprecated_frameless_function_invocation.
7352
7353 2004-05-07 Randolph Chung <tausq@debian.org>
7354
7355 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7356 read_memory_nobpt for code reading when doing frame unwinding.
7357 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7358
7359 2004-05-07 Randolph Chung <tausq@debian.org>
7360
7361 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7362 instead of sp, handle sigaltstack case.
7363 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7364 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7365 signal handler and not that of the caller.
7366 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7367 hppa_linux_sigtramp_find_sigcontext.
7368
7369 2004-05-07 Randolph Chung <tausq@debian.org>
7370
7371 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7372 hppa-linux-nat.c.
7373 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7374 * hppa-linux-nat.c (fetch_register, store_register): Define.
7375 (fetch_inferior_registers, store_inferior_registers): Define.
7376 (supply_gregset): Add comment and clean up some unneeded code.
7377 (fill_gregset): Add comment and fix so that it saves registers in
7378 the right place in the gregset.
7379 (fill_fpregset): Fix buffer overrun problem.
7380 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7381
7382 2004-05-07 Randolph Chung <tausq@debian.org>
7383
7384 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7385 do common handling of the pcoqt register.
7386 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7387 to use helper function.
7388 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7389 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7390 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7391 generic fallback unwinder when all else fails.
7392 (hppa_gdbarch_init): Add fallback sniffer.
7393 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7394 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7395 to use helper function.
7396
7397 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7398
7399 * config/djgpp/fnchange.lst: Add translation rules for
7400 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7401
7402 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7403
7404 * frame.c (get_prev_frame_1): Work around GCC bug.
7405 * frame.h: Add comment about GCC bug.
7406
7407 2004-05-07 Andrew Cagney <cagney@redhat.com>
7408
7409 * observer.c: Include "commands.h" and "gdbcmd.h".
7410 (observer_debug, _initialize_observer): Add the
7411 command "set/show debug observer".
7412 * observer.sh: When observer debugging, log notify calls.
7413 * Makefile.in (observer.o): Update dependencies.
7414
7415 2004-05-07 Jason Molenda (jmolenda@apple.com)
7416
7417 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7418
7419 2004-05-07 Jim Blandy <jimb@redhat.com>
7420
7421 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7422 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7423 to recognize gpr regnums, instead of assuming that
7424 tdep->ppc_fp0_regnum marks the end of the general-purpose
7425 registers.
7426
7427 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7428 the given architecture has floating-point registers.
7429
7430 2004-05-07 Andrew Cagney <cagney@redhat.com>
7431
7432 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7433 macro defined to 1.
7434 * gdbarch.h, gdbarch.c: Re-generate.
7435 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7436 deprecated_use_generic_dummy_frames.
7437
7438 2004-05-07 Brian Ford <ford@vss.fsi.com>
7439
7440 * NEWS: Mention Cygwin DWARF 2 support.
7441
7442 2004-05-07 Andrew Cagney <cagney@redhat.com>
7443
7444 * objfiles.h (struct entry_info): Delete unused fields
7445 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7446 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7447 * mipsread.c (mipscoff_symfile_read): Update.
7448 * mdebugread.c (parse_partial_symbols): Update.
7449 * dwarfread.c (read_file_scope): Update.
7450 * dwarf2read.c (read_file_scope): Update.
7451 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7452 * coffread.c (complete_symtab): Update.
7453
7454 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7455
7456 * infcall.c (_initialize_infcall): Fix typo.
7457
7458 2004-05-07 Andrew Cagney <cagney@redhat.com>
7459
7460 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7461 * command.h (add_setshow_zinteger_cmd): Declare.
7462
7463 2004-05-06 Randolph Chung <tausq@debian.org>
7464
7465 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7466 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7467 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7468 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7469 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7470 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7471 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7472 definitions ...
7473 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7474 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7475 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7476 (hppa64_hpux_frame_find_saved_regs_in_sig)
7477 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7478 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7479 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7480 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7481 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7482 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7483 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7484 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7485 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7486 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7487 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7488 (hppa32_register_type, hppa_cannot_store_register)
7489 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7490 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7491 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7492 * pa64solib.c (pa64_solib_have_load_event)
7493 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7494 (pa64_solib_unloaded_library_pathname): Likewise.
7495 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7496 (som_solib_library_pathname): Likewise.
7497
7498 2004-05-05 Jim Ingham <jingham@apple.com>
7499
7500 * breakpoint.c (create_breakpoints): Copy the ignore count and
7501 thread id over from the pended breakpoint to the actual
7502 breakpoint.
7503
7504 2004-05-05 Andrew Cagney <cagney@redhat.com>
7505
7506 * gdbarch.sh (PARM_BOUNDARY): Delete.
7507 gdbarch.h, gdbarch.c: Re-generate.
7508 * valops.c (PARM_BOUNDARY): Delete macro.
7509 (value_push): Delete PARM_BOUNDARY code.
7510 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7511
7512 2004-05-04 Jim Blandy <jimb@redhat.com>
7513
7514 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7515 Don't assume that the gprs, fprs, and UISA sprs are
7516 contiguous, start at register number zero, and end with fpscr.
7517 Instead, use the numbers from the tdep structure.
7518
7519 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7520 should no longer be used in code specific to the RS6000 and its
7521 derivatives.
7522 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7523 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7524 tdep->ppc_fp0_regnum.
7525 (ppc_supply_fpregset, ppc_collect_fpregset)
7526 (rs6000_push_dummy_call, rs6000_extract_return_value)
7527 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7528 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7529 FP0_REGNUM.
7530 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7531 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7532 Same.
7533 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7534 bdm_ppc_store_registers): Same.
7535 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7536 (store_register, fill_fpregset): Same.
7537 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7538 (ppc_linux_supply_fpregset): Same.
7539 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7540 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7541 Same.
7542 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7543 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7544 ppc64_sysv_abi_return_value): Same.
7545 * rs6000-nat.c (regmap, fetch_inferior_registers)
7546 (store_inferior_registers, fetch_core_registers): Same.
7547
7548 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7549
7550 * m68knbsd-nat.c: Remove file.
7551 * m68knbsd-tdep.c: Remove file.
7552 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7553 dependencies.
7554 * configure.host: Add m68k-*-netbsdelf*.
7555 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7556 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7557 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7558 (XM_FILE): Remove.
7559 * config/m68k/nbsdelf.mh: New file.
7560 * config/m68k/nbsd.mt: New file.
7561 * config/m68k/nbsdaout.mt: Remove file.
7562 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7563 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7564 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7565 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7566 (use_struct_convention): Remove prototype.
7567 (USE_STRUCT_CONVENTION): Remove define.
7568 * config/m68k/xm-nbsd.h: Remove file.
7569
7570 2004-05-04 Michael Snyder <msnyder@redhat.com>
7571
7572 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7573 reg_struct_return method (as gcc usually does for cross targets).
7574
7575 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7576
7577 Committed by Andrew Cagney.
7578 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7579 alignment padding when accessing ucontext struct members.
7580
7581 2004-05-04 Jim Blandy <jimb@redhat.com>
7582
7583 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7584 'ppc_gplast_regnum' member.
7585 (ppc_num_gprs): New enum constant.
7586 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7587 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7588 * rs6000-nat.c (regmap, fetch_inferior_registers,
7589 store_inferior_registers): Same.
7590 * rs6000-tdep.c (e500_pseudo_register_read)
7591 (e500_pseudo_register_write): Same.
7592 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7593
7594 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7595 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7596 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7597 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7598 FPLAST_REGNUM.
7599 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7600 Same.
7601 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7602 * rs6000-nat.c (regmap, fetch_inferior_registers)
7603 (store_inferior_registers): Same.
7604
7605 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7606 with FPLAST_REGNUM.
7607
7608 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7609
7610 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7611 failure detected by recent versions of GCC.
7612 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7613 to be consistent with the usage in dwarf2_create_include_psymtab.
7614
7615 2004-05-03 Michael Snyder <msnyder@redhat.com>
7616
7617 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7618 (heuristic_proc_start): Whitespace cleanup.
7619
7620 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7621
7622 * sun3-nat.c: Remove file.
7623 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7624 dependencies.
7625 (ALLDEPFILES): Remove sun3-nat.c.
7626 (sun3-nat.o): Remove dependencies.
7627
7628 * i386-interix-nat.c, i386-interix-tdep.c,
7629 config/i386/nm-interix.h, config/i386/interix.mh,
7630 config/i386/interix.mt: Remove files.
7631 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7632 dependencies.
7633
7634 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7635
7636 * m68k-tdep.h (struct gdbarch_tdep): Add member
7637 struct_value_regnum.
7638 (m68k_svr4_init_abi): New prototype.
7639 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7640 different calling conventions.
7641 (m68k_extract_return_value): Remove code dealing with single-field
7642 structs.
7643 (m68k_store_return_value): Remove code dealing with single-field
7644 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7645 (m68k_extract_struct_value_address): Remove function.
7646 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7647 (m68k_reg_struct_return_p, m68k_return_value)
7648 (m68k_svr4_return_value): New functions.
7649 (m68k_use_struct_convention): Remove function.
7650 (m68k_push_dummy_call): Use new struct_value_regnum member of
7651 `struct gdbarch_tdep' instead of hardcoded register number to
7652 store STRUCT_ADDR.
7653 (m68k_svr4_init_abi): New function.
7654 (m68k_gdbarch_init): Don't set extract_return_value,
7655 store_return_values, deprecated_extract_struct_value_address and
7656 use_struct_convention. Set return_value instead. Initialize new
7657 struct_value_regnum member of `struct gdbarch_tdep'.
7658 * m68klinux-tdep.c: Update copyright year.
7659 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7660 (m68k_linux_extract_struct_value_address): Remove function.
7661 (m68k_linux_init_abi): Don't set extract_return_value,
7662 store_return_values, deprecated_extract_struct_value_address and
7663 use_struct_convention. Call m68k_svr4_init_abi but override the
7664 new struct_value_regnum member of `struct gdbarch_tdep'.
7665 * Makefile.in (m68k-tdep.o): Update dependencies.
7666
7667 2004-05-03 J. Brobecker <brobecker@gnat.com>
7668
7669 * dwarf2read.c (line_header): Add new included_p field in
7670 field file_names.
7671 (partial_die_info): New field has_stmt_list. New field line_offset.
7672 (dwarf2_create_include_psymtab): New function.
7673 (dwarf2_build_include_psymtabs): New function.
7674 (add_file_name): Add forward declaration. Initialize new field.
7675 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7676 to be able to determine the list of files included by the
7677 given unit, and build their associated psymtabs.
7678 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7679 files as well.
7680 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7681 (read_file_scope): Update call to dwarf_decode_lines.
7682 (read_partial_die): Handle DW_AT_stmt_list attributes.
7683
7684 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7685
7686 Unfix PR gdb/1626.
7687 * configure.in: Revert special case for osf5.*.
7688 * configure: Regenerate.
7689
7690 2004-05-02 Jim Blandy <jimb@redhat.com>
7691
7692 Move the symbol-file-from-memory functions into their own file.
7693 * symfile-mem.c, symfile-mem.h: New files.
7694 * symfile.c (symbol_file_add_from_bfd): New function.
7695 (symbol_file_add): Call symbol_file_add_from_bfd.
7696 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7697 Moved to symfile-mem.c.
7698 (_initialize_symfile): Move definition of
7699 add-symbol-file-from-memory command to symfile-mem.c.
7700 * symfile.h (symbol_file_add_from_bfd): New declaration.
7701 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7702 * config/powerpc/linux.mt (TDEPFILES): Same.
7703 * Makefile.in (SFILES): Add symfile-mem.c.
7704 (symfile_mem_h): New variable.
7705 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7706 (symfile-mem.o): New rule.
7707
7708 2004-05-01 Andrew Cagney <cagney@redhat.com>
7709
7710 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7711 frame_find_by_id instead of frame_relative_level.
7712 (do_enable_breakpoint): Ditto.
7713 * thread.c: Update copyright.
7714 (info_threads_command): Ditto, simplify.
7715
7716 * frame.c (deprecated_generic_get_saved_register): Delete
7717 function, moved to "xstormy16-tdep.c".
7718 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7719 deprecated_generic_get_saved_register from "frame.c".
7720 (xstormy16_frame_saved_register): Call
7721 xstormy16_get_saved_register.
7722 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7723 static.
7724 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7725 * frame.h (deprecated_generic_get_saved_register): Delete.
7726
7727 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7728
7729 * dwarfread.c: Update documentation on the state of dwarf-1.
7730
7731 2004-05-01 Andrew Cagney <cagney@redhat.com>
7732
7733 * stack.c (select_frame_command): Delete call to
7734 frame_relative_level.
7735 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7736 Delete #if0 code.
7737 (frame_info): Do not print FRAMELESS.
7738 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7739 (catch_info): Delete #if0 code.
7740
7741 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7742 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7743 of frame_relative_level.
7744 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7745 to SENTINEL_FRAME.
7746 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7747 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7748 frame_relative_level.
7749
7750 * frame.h (deprecated_set_frame_type): Delete declaration.
7751 * frame.c (deprecated_set_frame_type): Delete function, update
7752 comments.
7753
7754 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7755 * gdbarch.h, gdbarch.c: Re-generate.
7756 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7757 (shnbsd_pc_in_sigtramp): Delete.
7758 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7759 pc_in_sigtramp.
7760 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7761 pc_in_sigtramp.
7762 * frame.h: Update comments.
7763 * ppc-linux-tdep.c: Update comments.
7764 * breakpoint.c (bpstat_what): Update comments.
7765
7766 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7767 m68klinux-tdep.o's dependencies, were previously added to
7768 m68klinux-nat.o.
7769
7770 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7771 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7772 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7773 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7774 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7775
7776 * Makefile.in (m68klinux-nat.o): Update dependencies.
7777 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7778 (m68k_linux_sigtramp_frame_cache)
7779 (m68k_linux_sigtramp_frame_this_id)
7780 (m68k_linux_sigtramp_frame_prev_register)
7781 (m68k_linux_sigtramp_frame_unwind)
7782 (m68k_linux_sigtramp_frame_sniffer)
7783 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7784 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7785 names, use trad-frame.h.
7786 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7787 (struct m68k_sigtramp_info): Delete.
7788 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7789 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7790 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7791 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7792 "m68klinux-tdep.c".
7793
7794 * infrun.c (check_sigtramp2): Delete check for
7795 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7796
7797 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7798
7799 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7800
7801 2004-05-01 Andrew Cagney <cagney@redhat.com>
7802
7803 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7804 (frv_linux_sigtramp_frame_cache)
7805 (frv_linux_sigtramp_frame_this_id)
7806 (frv_linux_sigtramp_frame_prev_register)
7807 (frv_linux_sigtramp_frame_unwind)
7808 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7809 include "linux" in function and variable names, directly call
7810 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7811 the latest trad-frame code.
7812 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7813 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7814 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7815 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7816 * frv-tdep.c (frv_sigtramp_frame_cache)
7817 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7818 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7819 frv-linux-tdep.c.
7820 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7821 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7822 (frv_set_sigcontext_reg_addr): Delete function.
7823
7824 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7825 (DEPRECATED_SIGTRAMP_END): Delete.
7826 * gdbarch.h, gdbarch.c: Re-generate.
7827 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7828 * config/vax/tm-vaxbsd.h: Update copyright.
7829 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7830 (DEPRECATED_IN_SIGTRAMP): Define.
7831 * config/m68k/tm-nbsd.h: Update copyright.
7832 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7833 (DEPRECATED_IN_SIGTRAMP): Define.
7834
7835 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7836
7837 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7838 encondings. Fixes PR gdb/1628.
7839
7840 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7841 DW_CFA_restore state without a matching DW_CFA_remember_state
7842 instead of aborting. Fixes PR backtrace/1589.
7843
7844 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7845
7846 * MAINTAINERS: Add self as AIX maintainer.
7847 Update my e-mail address in write-after-approval section.
7848
7849 2004-04-30 Andrew Cagney <cagney@redhat.com>
7850
7851 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7852 (legacy_get_prev_frame): Ditto.
7853
7854 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7855 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7856 * mipsread.c (sigtramp_address): Delete extern variable.
7857 (mipscoff_new_init): Delete reference.
7858 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7859 (fixup_sigtramp): Delete function.
7860 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7861 (fixup_sigtramp): Delete declarations.
7862
7863 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7864 deprecated_pc_in_sigtramp.
7865 (ppcnbsd_pc_in_sigtramp): Delete function.
7866
7867 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7868
7869 * config/m68k/nm-nbsd.h: Tweak comments.
7870 * config/m68k/nm-nbsdaout.h: Likewise.
7871
7872 2004-04-30 Andrew Cagney <cagney@redhat.com>
7873
7874 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7875 legacy_pc_in_sigtramp.
7876 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7877
7878 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7879
7880 Add OpenBSD/m68k support.
7881 * NEWS (New native configurations): Mention OpenBSD/m68k.
7882 * m68kbsd-tdep.c: New file.
7883 * m68kbsd-nat.c: New file.
7884 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7885 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7886 * configure.host: Add m68k-*-openbsd.
7887 * configure.tgt: Add m68k-*-openbsd.
7888 * config/m68k/tm-obsd.h: New file.
7889 * config/m68k/obsd.mt: New file.
7890 * config/m68k/obsd.mh: New file.
7891 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
7892 m68kbsd-tdep.c.
7893
7894 2004-04-30 Andrew Cagney <cagney@redhat.com>
7895
7896 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
7897 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
7898
7899 2004-04-30 Mark Kettenis <kettenis@gnu.org>
7900
7901 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
7902 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
7903
7904 2004-04-30 Brian Ford <ford@vss.fsi.com>
7905
7906 Revert 2004-04-16 change.
7907 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
7908 (i386_coff_init_abi): Remove.
7909 * i386-tdep.h (i386_coff_init_abi): Remove.
7910 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
7911
7912 2004-04-30 Andrew Cagney <cagney@redhat.com>
7913
7914 * blockframe.c (find_pc_partial_function): Delete use of
7915 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
7916 DEPRECATED_SIGTRAMP_END.
7917
7918 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
7919 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
7920 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
7921 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
7922 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
7923
7924 * defs.h (deprecated_inside_entry_file): Delete declaration.
7925 * blockframe.c (deprecated_inside_entry_file): Delete function.
7926 (legacy_frame_chain_valid): Delete call.
7927 * sh64-tdep.c (sh64_frame_chain): Delete call.
7928 * objfiles.h: Update comments.
7929 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
7930 call.
7931 * frame.c (get_prev_frame): Delete call, update comments.
7932
7933 2004-04-30 Brian Ford <ford@vss.fsi.com>
7934
7935 * MAINTAINERS (Write After Approval): Add myself.
7936
7937 2004-04-30 Andrew Cagney <cagney@redhat.com>
7938
7939 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
7940 * gdbarch.h, gdbarch.c: Re-generate.
7941 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
7942 code.
7943
7944 2004-04-30 Andrew Cagney <cagney@redhat.com>
7945
7946 * gdb-events.sh (selected_thread_changed)
7947 (selected_frame_level_changed, target_changed): Delete.
7948 * gdb-events.h, gdb-events.c: Re-generate.
7949 * valops.c (value_assign): Update.
7950 * stack.c (select_frame_command, up_silently_base)
7951 (down_silently_base): Update.
7952
7953 2004-04-29 Andrew Cagney <cagney@redhat.com>
7954
7955 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7956 registers correctly.
7957 (print_gp_register_row, mips32_heuristic_proc_desc)
7958 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7959 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7960 references to mips_isa_regsize.
7961
7962 2004-04-29 Andrew Cagney <cagney@redhat.com>
7963
7964 * mips-tdep.c (struct gdbarch_tdep): Delete
7965 mips_fp_register_double.
7966 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7967 mips_abi_regsize.
7968 (mips_gdbarch_init): Do not set mips_fp_register_double.
7969 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7970
7971 2004-04-29 Joel Brobecker <brobecker@gnat.com>
7972
7973 Committed by Andrew Cagney.
7974 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7975 function calls.
7976
7977 2004-04-29 Andrew Cagney <cagney@redhat.com>
7978
7979 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7980 gdbarch, use mips_abi, update callers.
7981 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7982 mips_abi_regsize, update callers.
7983 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7984 mips_default_abi_regsize.
7985 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7986 mips_default_abi_regsize.
7987
7988 2004-04-29 Andrew Cagney <cagney@redhat.com>
7989
7990 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7991 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7992 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7993 mips_default_abi_regsize.
7994 (mips_isa_regsize): Rename mips_regisze.
7995 * mipsnbsd-tdep.c: Update.
7996 * mips-linux-tdep.c: Update.
7997 * irix5-nat.c: Update.
7998 * mips-tdep.h (mips_isa_regsize): Update.
7999
8000 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8001 Delete all disabled code.
8002 * gdb-events.h, gdb-events.c: Re-generate.
8003
8004 2004-04-19 Jerome Guitton <guitton@gnat.com>
8005 Mark Kettenis <kettenis@gnu.org>
8006
8007 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8008 the function begins with a branch instruction.
8009
8010 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8011
8012 * i386-tdep.c: Fix spelling mistakes.
8013
8014 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8015 Andrew Cagney <cagney@redhat.com>
8016
8017 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8018 <sys/proc.h>.
8019 * acconfig.h: Provide default _KMEMUSER value.
8020 * config.in, configure: Re-generate.
8021 * NEWS: Mention fix.
8022
8023 2004-04-24 Randolph Chung <tausq@debian.org>
8024
8025 * configure.host (hppa*-*-linux*): New target.
8026 * configure.tgt (hppa*-*-linux*): Likewise.
8027 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8028 gdbarch_init_osabi() call earlier so that osabi-specific frame
8029 unwinders can be registered first.
8030 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8031 hppa-linux-nat.c.
8032 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8033 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8034 * config/pa/linux.mh: New file.
8035 * config/pa/linux.mt: New file.
8036 * config/pa/nm-linux.h: New file.
8037 * config/pa/xm-linux.h: New file.
8038 * hppa-linux-nat.c: New file.
8039 * hppa-linux-tdep.c: New file.
8040
8041 2004-04-28 Randolph Chung <tausq@debian.org>
8042
8043 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8044 return values.
8045 (hppa32_push_dummy_call): Fix small struct and floating point argument
8046 passing, and make sure the stack frame is properly aligned.
8047
8048 2004-04-28 Andrew Cagney <cagney@redhat.com>
8049
8050 * stack.c (print_stack_frame): Fix description.
8051
8052 * NEWS: Mention gdb/gdbserver/configure execute permission
8053 changed. PR server/519.
8054
8055 2004-04-28 Andrew Cagney <cagney@redhat.com>
8056
8057 * stack.c (print_stack_frame_stub): Delete declaration.
8058 (struct print_stack_frame_args, print_stack_frame)
8059 (print_frame_info, print_frame): Replace "source" with print what.
8060 Replace "print" with "print_level". Replace "args" with
8061 "print_args".
8062 * frame.h (show_and_print_stack_frame, print_stack_frame)
8063 (print_frame_info): Update declarations.
8064 * stack.c (select_and_print_frame, frame_command)
8065 (current_frame_command, up_command, down_command): Update calls -
8066 use get_selected_frame, pass "enum print_what" for source, do not
8067 call frame_relative_level.
8068 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8069 * remote-rdp.c (remote_rdp_open): Ditto.
8070 * remote-mips.c (common_open): Ditto.
8071 * remote-e7000.c (e7000_start_remote): Ditto.
8072 * ocd.c (ocd_start_remote): Ditto.
8073 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8074 * infrun.c (normal_stop): Ditto.
8075 * inflow.c (kill_command): Ditto.
8076 * infcmd.c (finish_command): Ditto.
8077 * corelow.c (core_open): Ditto.
8078 * tracepoint.c (finish_tfind_command): Ditto.
8079 * thread.c (info_threads_command, info_threads_command)
8080 (restore_current_thread, do_captured_thread_select): Ditto.
8081 * ada-tasks.c (task_command): Ditto.
8082
8083 2004-04-26 Orjan Friberg <orjanf@axis.com>
8084
8085 * frame.c: Include "observer.h".
8086 (frame_observer_target_changed): New function.
8087 (_initialize_frame): Attach target_changed observer.
8088 * regcache.c: Include "observer.h".
8089 (regcache_observer_target_changed): New function.
8090 (_initialize_regcache): Attach target_changed observer.
8091 * valops.c: Include "observer.h".
8092 (value_assign): Notify target_changed event when modifying register.
8093 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8094
8095 2004-04-26 Orjan Friberg <orjanf@axis.com>
8096
8097 From Paul Koning <pkoning@equallogic.com>:
8098 * breakpoint.c (free_valchain): New function.
8099 (insert_bp_location, delete_breakpoint): Use free_valchain.
8100 (remove_breakpoint): Do not remove the valchain.
8101 (bpstat_stop_status): If not stopped by watchpoint, skip
8102 watchpoints when generating stop status list.
8103 * infrun.c (handle_inferior_event): Make
8104 stepped_after_stopped_by_watchpoint a global variable.
8105 * remote.c (remote_stopped_data_address): Return watch data
8106 address rather than zero if stepped_after_stopped_by_watchpoint is
8107 set.
8108
8109 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8110
8111 Fix PR gdb/1626.
8112 * configure.in: Check for curses after termcap.
8113 On osf5.*, do not check for ncurses.
8114 * configure: Regenerate.
8115
8116 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8117
8118 * ppcobsd-nat.c: Include "ppc-tdep.h".
8119 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8120
8121 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8122 Fixes PR tdep/1623 and PR tdep/1624.
8123
8124 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8125
8126 * xmodem.h, xmodem.c: Remove files.
8127 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8128
8129 2004-04-23 Randolph Chung <tausq@debian.org>
8130
8131 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8132 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8133 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8134 for handling stackless frames.
8135 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8136
8137 2004-04-23 Randolph Chung <tausq@debian.org>
8138
8139 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8140 starts at a pc before the frame is created.
8141
8142 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8143
8144 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8145
8146 2004-04-23 Jerome Guitton <guitton@gnat.com>
8147
8148 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8149 use convert_typed_floating to get the appropriate format.
8150
8151 2004-04-22 Randolph Chung <tausq@debian.org>
8152
8153 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8154 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8155 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8156 (hppa_sign_extend): Add prototype.
8157 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8158 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8159 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8160 hppa targets will also use these functions.
8161 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8162 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8163 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8164 (hppa_gdbarch_init): Remove gdbarch setting of
8165 skip_trampoline_code, in_solib_call_trampoline and
8166 in_solib_return_trampoline.
8167 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8168 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8169 hppa_in_solib_call_trampoline.
8170 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8171 Moved from hppa-tdep.c.
8172 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8173 in_solib_call_trampoline and in_solib_return_trampoline.
8174
8175 2004-04-22 Randolph Chung <tausq@debian.org>
8176
8177 * hppa-tdep.c (hppa_debug): New variable.
8178 (find_unwind_entry, hppa_frame_cache): Add debug output.
8179 (_initialize_hppa_tdep): Add command to set debug flag.
8180
8181 2004-04-22 Andrew Cagney <cagney@redhat.com>
8182
8183 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8184 "trad-frame.h".
8185 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8186 signal trampoline unwinder.
8187 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8188
8189 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8190
8191 Add OpenBSD/powerpc support.
8192 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8193 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8194 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8195 (ppc_collect_fpregset): New prototypes.
8196 * ppcobsd-nat.c: New file.
8197 * ppcobsd-tdep.c: New file.
8198 * ppcobsd-tdep.h: New file.
8199 * rs6000-tdep.c: Include "regset.h".
8200 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8201 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8202 New functions.
8203 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8204 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8205 (rs6000-tdep.o): Update dependencies.
8206 * configure.host: Add powerpc-*-openbsd.
8207 * configure.tgt: Add powerpc-*-openbsd.
8208 * config/powerpc/obsd.mh: New file.
8209 * config/powerpc/nm-obsd.h: New file.
8210 * config/powerpc/obsd.mt: New file.
8211
8212 2004-04-22 Andrew Cagney <cagney@redhat.com>
8213
8214 * frame.h (show_frame_info): Delete declaration.
8215
8216 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8217 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8218 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8219 * frv-tdep.c (frv_frame_this_id): Ditto.
8220 * avr-tdep.c (avr_frame_this_id): Ditto.
8221
8222 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8223
8224 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8225
8226 2004-04-22 Jim Blandy <jimb@redhat.com>
8227
8228 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8229 register number zero.
8230
8231 2004-04-21 Michael Snyder <msnyder@redhat.com>
8232
8233 * mips-tdep.c (heuristic_proc_start):
8234 Warning() already prefixes "Warning: ".
8235
8236 2004-04-21 Andrew Cagney <cagney@redhat.com>
8237
8238 * annotate.h (deprecated_annotate_starting_hook)
8239 (deprecated_annotate_stopped_hook)
8240 (deprecated_annotate_exited_hook)
8241 (deprecated_annotate_signal_hook)
8242 (deprecated_annotate_signalled_hook): Deprecate.
8243 * tracepoint.h (deprecated_create_tracepoint_hook)
8244 (deprecated_delete_tracepoint_hook)
8245 (deprecated_modify_tracepoint_hook)
8246 (deprecated_trace_find_hook)
8247 (deprecated_trace_start_stop_hook): Deprecate.
8248 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8249 * remote.h (deprecated_target_resume_hook)
8250 (deprecated_target_wait_loop_hook): Deprecate.
8251 * gdbcore.h (deprecated_exec_file_display_hook)
8252 (deprecated_file_changed_hook): Deprecate.
8253 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8254 * defs.h (deprecated_modify_breakpoint_hook)
8255 (deprecated_command_loop_hook, deprecated_show_load_progress)
8256 (deprecated_print_frame_info_listing_hook)
8257 (deprecated_query_hook, deprecated_warning_hook)
8258 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8259 (deprecated_delete_breakpoint_hook)
8260 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8261 (deprecated_readline_begin_hook, deprecated_readline_hook)
8262 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8263 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8264 (deprecated_context_hook, deprecated_target_wait_hook)
8265 (deprecated_attach_hook, deprecated_detach_hook)
8266 (deprecated_call_command_hook, deprecated_set_hook)
8267 (deprecated_error_hook, deprecated_error_begin_hook)
8268 (deprecated_ui_load_progress_hook): Deprecate.
8269 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8270 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8271 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8272 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8273 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8274 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8275 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8276 * annotate.c, aix-thread.c: Update.
8277
8278 2004-04-21 Andrew Cagney <cagney@redhat.com>
8279
8280 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8281 * vaxnbsd-tdep.c: Include "gdb_string.h".
8282
8283 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8284 (add_symbol_file_from_memory_command): #if 0 function body, call
8285 error instead.
8286
8287 2004-04-21 Andrew Cagney <cagney@redhat.com>
8288
8289 * gdbcore.h: Update copyright.
8290 (deprecated_add_core_fns): Rename add_core_fns.
8291 * win32-nat.c (_initialize_core_win32): Update.
8292 * sun3-nat.c (_initialize_core_sun3): Update.
8293 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8294 * rs6000-nat.c (_initialize_core_rs6000): Update.
8295 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8296 * nto-tdep.c (_initialize_nto_tdep): Update.
8297 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8298 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8299 * mips-nat.c (_initialize_core_mips): Update.
8300 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8301 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8302 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8303 * lynx-nat.c (_initialize_core_lynx): Update.
8304 * irix5-nat.c (_initialize_core_irix5): Update.
8305 * i386-interix-nat.c (_initialize_core_interix): Update.
8306 * cris-tdep.c (_initialize_cris_tdep): Update.
8307 * corelow.c (deprecated_add_core_fns): Update.
8308 * core-regset.c (_initialize_core_regset): Update.
8309 * core-aout.c (_initialize_core_aout): Update.
8310 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8311 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8312 * alpha-nat.c (_initialize_core_alpha): Update.
8313
8314 2004-04-21 Jim Blandy <jimb@redhat.com>
8315
8316 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8317
8318 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8319
8320 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8321 Delete.
8322 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8323 (read_attribute_value): Update calls to dwarf_alloc_block.
8324 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8325 dwarf2_tmp_obstack.
8326 (psymtab_to_symtab_1): Likewise. Clean up using
8327 free_stack_comp_unit.
8328 (add_to_cu_func_list): Use the comp_unit_obstack.
8329
8330 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8331
8332 * dwarf2read.c (dwarf2_flag_true_p): New function.
8333 (die_is_declaration): Use the function above. Add some comments.
8334
8335 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8336
8337 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8338 architecture when registering sparcnbsd_core_osabi_sniffer.
8339 Adjust comment.
8340
8341 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8342
8343 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8344 return value.
8345
8346 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8347 * i386-tdep.c: Correct register numbering scheme comments
8348 throughout.
8349 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8350 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8351 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8352 (i386_gdb_arch_init): Likewise.
8353
8354 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8355 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8356 ppcnbsd-tdep.o.
8357
8358 * m68k-tdep.h: Tweak comments.
8359 * m68k-tdep.c: Tweak comment.
8360
8361 2004-04-17 Randolph Chung <tausq@debian.org>
8362
8363 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8364 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8365 (hppa_hpux_som_init_abi): Set is_elf to 0.
8366 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8367 * hppa-tdep.c (low_text_segment_address): Remove global.
8368 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8369 section offset to calculate segment address.
8370 (internalize_unwinds): Define low_text_segment_address as local and
8371 pass to record_text_segment_lowaddr for ELF targets.
8372 (hppa_gdbarch_init): Zero fill tdep structure.
8373 (hppa_dump_tdep): Print tdep structure.
8374 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8375
8376 2004-04-17 Randolph Chung <tausq@debian.org>
8377
8378 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8379 (hppa_gdbarch_init): Set pseudo_register_read.
8380 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8381 * regcache.c (supply_register): Remove check for
8382 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8383
8384 2004-04-17 Randolph Chung <tausq@debian.org>
8385
8386 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8387 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8388 (hpread_adjust_stack_address): Move to hpread.c.
8389 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8390 obj_private_struct): Move from tm-hppa.h.
8391 * hpread.c (hppa-tdep.h): Include.
8392 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8393 (hpread_read_function_type, hpread_read_doc_function_type)
8394 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8395 directly.
8396 * pa64solib.c (hppa-tdep.h): Include.
8397 * somsolib.c (hppa-tdep.h): Include.
8398 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8399 inferior_status): Remove unused forward declarations.
8400 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8401 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8402 obj_private_struct): Move to hppa-tdep.h.
8403 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8404
8405 2004-04-17 Randolph Chung <tausq@debian.org>
8406
8407 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8408 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8409 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8410 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8411 Remove forward declaration and make static.
8412 (hppa_reg_struct_has_addr): Remove.
8413
8414 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8415
8416 * observer.sh: Move comments in sed command to first column.
8417
8418 2004-04-16 Jason Molenda (jmolenda@apple.com)
8419
8420 * frame.c: Minor typeo corrections in comments.
8421
8422 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8423
8424 * observer.c (observer_test_first_notification_function): Update
8425 function profile.
8426 (observer_test_second_notification_function): Likewise.
8427 (observer_test_third_notification_function): Likewise.
8428
8429 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8430
8431 From Brian Ford <ford@vss.fsi.com>:
8432 * i386-tdep.c (i386_coff_init_abi): New function.
8433 * i386-tdep.h (i386_coff_init_abi): New prototype.
8434 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8435 register number translation functions for DWARF and DWARF 2.
8436
8437 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8438
8439 * dwarf2read.c: Back out my previous change, it was incorrect.
8440
8441 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8442
8443 * dwarf2read.c: Include "hashtab.h".
8444 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8445 has_namespace_info.
8446 (struct partial_die_info): Add comments. Use bitfields to reduce
8447 memory footprint. Add scope, scope_set, has_specification,
8448 spec_offset, die_parent, die_child, and die_sibling.
8449 (peek_die_abbrev): Add prototype.
8450 (partial_read_comp_unit_head): New function, broken out from
8451 dwarf2_build_psymtabs_hard.
8452 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8453 Use partial_read_comp_unit_head. Initialize the CU and
8454 comp_unit_obstack. Update calls to read_partial_die and
8455 scan_partial_symbols. Use free_stack_comp_unit and
8456 load_partial_dies.
8457 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8458 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8459 Update calls to helper functions. Remove NAMESPACE argument.
8460 Update comments.
8461 (partial_die_parent_scope, partial_die_full_name): New functions.
8462 (add_partial_symbol): Remove namespace argument. Update call to
8463 pdi_needs_namespace. Use partial_die_full_name. Handle
8464 DW_TAG_namespace. Check has_namespace_info flag.
8465 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8466 tag. Handle namespaces.
8467 (add_partial_namespace, add_partial_enumeration): Simplify.
8468 (guess_structure_name): New function, derived from
8469 add_partial_structure.
8470 (add_partial_structure): Remove.
8471 (determine_class_name): Update comment.
8472 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8473 (is_type_tag_for_partial, load_partial_dies): New functions.
8474 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8475 Record specifications instead of following them immediately.
8476 (find_partial_die_in_comp_unit, find_partial_die)
8477 (fixup_partial_die, free_stack_comp_unit)
8478 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8479 (partial_die_hash, partial_die_eq): New functions.
8480 * Makefile.in (hashtab_h): Define.
8481 (dwarf2read.o): Update dependencies.
8482 (observer_inc, observer_h): Move to the correct section.
8483
8484 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8485
8486 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8487 (die_is_declaration): Use the function above. Add comment.
8488
8489 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8490
8491 * dwarf2read.c (read_structure_scope): Identify stub types
8492 using die_is_declaration() only.
8493
8494 2004-04-15 Roland McGrath <roland@redhat.com>
8495
8496 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8497 argument instead of NAME.
8498 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8499 in call to symbol_file_add_with_addrs_or_offsets.
8500 (build_addr_info): New function, helper for ...
8501 (symbol_file_add_from_memory): New function.
8502 (add_symbol_file_from_memory_command): New function using that.
8503 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8504 (pre_add_symbol_hook): Add const to argument type.
8505 * symfile.h (symbol_file_add_from_memory): Declare it.
8506
8507 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8508
8509 * NEWS (New native configurations): Mention OpenBSD/vax.
8510 * configure.host: Add vax-*-openbsd*.
8511 * config/vax/obsd.mh: New file.
8512 * config/vax/nm-obsd.h: New file.
8513
8514 * vax-tdep.c: Include "regset.h".
8515 (vax_supply_gregset): New function.
8516 (vax_gregset): New variable.
8517 (vax_regset_from_core_section): New function.
8518 (vax_gdbarch_init): Set regset_from_core_section.
8519 * Makefile.in (vax-tdep.o): Update dependencies.
8520
8521 2004-04-15 Andrew Cagney <cagney@redhat.com>
8522
8523 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8524 (observer_normal_stop_notification_stub)
8525 (observer_attach_normal_stop, observer_detach_normal_stop):
8526 Delete, replaced by #include "observer.inc".
8527 * infrun.c (normal_stop): Pass "stop_bpstat" to
8528 observer_notify_normal_stop.
8529 * Makefile.in (observer_inc): Define.
8530 (observer.o): Update dependencies.
8531 (observer.h, observer.inc): New rules.
8532 * observer.h: Delete file.
8533 * observer.sh: New file.
8534
8535 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8536
8537 * vax-tdep.c (vax_frame_cache): Fix typo.
8538
8539 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8540
8541 * NEWS (New native configurations): Mention NetBSD/vax.
8542 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8543 * config/vax/nbsdelf.mh: New file.
8544 * config/vax/nbsdaout.mh: New file.
8545 * config/vax/nm-nbsd.h: New file.
8546 * config/vax/nm-nbsdaout.h: New file.
8547
8548 * vaxnbsd-tdep.c: New file.
8549 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8550 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8551 * config/vax/nbsd.mt: New file.
8552 * config/vax/tm-nbsd.h: New file.
8553
8554 * Makefile.in (vaxbsd-nat.o): New dependency.
8555
8556 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8557 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8558 struct_addr arguments. Don't push return value address.
8559 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8560 arguments to vax_store_arguments. Store return value address in
8561 R1.
8562 (vax_store_struct_return, vax_extract_return_value)
8563 (vax_store_return_value): Remove functions.
8564 (vax_return_value): New function.
8565 (vax_gdbarch_init): Set return value. Don't set
8566 deprecated_store_struct_return, deprecated_extract_struct_return
8567 and deprecated_store_return_value.
8568
8569 2004-04-14 Andreas Schwab <schwab@suse.de>
8570
8571 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8572 value buffer.
8573 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8574
8575 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8576
8577 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8578 (vax_unwind_dummy_id): New functions.
8579 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8580 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8581 variables.
8582 (vax_fix_call_dummy): Remove function.
8583 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8584 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8585 call_dummy_location, deprecated_call_dummy_words,
8586 deprecated_sizeof_call_dummy_words,
8587 deprecated_call_dummy_breakpoint_offset,
8588 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8589 and deprecated_dummy_write_sp.
8590
8591 2004-04-13 David Carlton <carlton@kealia.com>
8592
8593 * MAINTAINERS: Move myself to "paper trail" section.
8594
8595 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8596
8597 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8598 "trad-frame.h".
8599 (vax_frame_init_saved_regs): Remove function.
8600 (vax_sigtramp_saved_pc): Remove function.
8601 (vax_frame_saved_pc): Remove function.
8602 (vax_frame_args_address): Remove function.
8603 (vax_frame_num_args): Rewrite.
8604 (vax_frame_chain): Remove function.
8605 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8606 VAX_FP_REGNUM.
8607 (vax_pop_frame): Likewise.
8608 (vax_saved_pc_after_call): Remove function.
8609 (struct vax_frame_cache): New structure.
8610 (vax_frame_cache): New function.
8611 (vax_frame_this_id): New function.
8612 (vax_frame_prev_register): New function.
8613 (vax_frame_unwind): New variable.
8614 (vax_frame_sniffer): New function.
8615 (vax_frame_base_address): New function.
8616 (vax_frame_args_address): New function.
8617 (vax_frame_base): New variable.
8618 (vax_unwind_pc): New function.
8619 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8620 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8621 deprecated_frame_chain, deprecated_frame_saved_pc,
8622 deprecated_frame_args_address and
8623 deprecated_frame_init_saved_regs.
8624 * Makefile.in (vax-tdep.o): Update dependencies.
8625
8626 * vaxbsd-nat.c: New file.
8627
8628 * vax-tdep.h: Update copyright year. Adjust comments.
8629 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8630 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8631 (vax_regnum): New enum. Replacing...
8632 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8633 (VAX_PS_REGNUM): ... these removed macros.
8634 * vax-tdep.c (vax_register_name): Remove prototype.
8635 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8636 (vax_register_byte, vax_register_raw_size,
8637 vax_register_virtual_size, vax_register_virtual_type): Remove
8638 functions.
8639 (vax_register_type): New function.
8640 (vax_breakpoint_from_pc): Reorganize.
8641 (vax_gdbarch_init): Set register_type. Don't set
8642 deprecated_register_size, deprecated_register_bytes,
8643 deprecated_register_byte, deprecated_register_raw_size,
8644 deprecated_max_register_raw_size,
8645 deprecated_register_virtual_size,
8646 deprecated_max_register_virtual_size and
8647 deprecated_register_virtual_type. Add comment on stack direction.
8648
8649 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8650
8651 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8652 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8653 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8654
8655 2004-04-10 Randolph Chung <tausq@debian.org>
8656
8657 * MAINTAINERS (write after approval): Add myself.
8658
8659 2004-04-07 Randolph Chung <tausq@debian.org>
8660
8661 * hppa-tdep.c (hppa_inner_than): Remove.
8662 (is_pa_2): Remove unused static variable.
8663 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8664
8665 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8666
8667 * language.h (language_defn): Add new la_post_parser field.
8668 * parser-defs.h (null_post_parser): New declaration (default for
8669 la_post_parser).
8670
8671 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8672 insert call to that function.
8673 (parse_exp_in_context): New function, including code formerly in
8674 parse_exp_1. Calls language-dependent post-parser after
8675 prefixification.
8676 (parse_expression_in_context): New exported function.
8677 (null_post_parser): New definition.
8678 * expression.h (parse_expression_in_context): Add declaration.
8679
8680 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8681 * c-lang.c (c_language_defn): Ditto.
8682 (cplus_language_defn): Ditto.
8683 (asm_language_defn): Ditto.
8684 (minimal_language_defn): Ditto.
8685 * f-lang.c (f_language_defn): Ditto.
8686 * jv-lang.c (java_language_defn): Ditto.
8687 * language.c (unknown_language_defn): Ditto.
8688 (auto_language_defn): Ditto.
8689 (local_language_defn): Ditto.
8690 * m2-lang.c (m2_language_defn): Ditto.
8691 * scm-lang.c (scm_language_defn): Ditto.
8692 * obj-lang.c (objc_language_defn): Ditto.
8693
8694 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8695
8696 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8697 (amd64nbsd_mcontext_addr): New function.
8698 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8699 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8700 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8701
8702 * corelow.c (core_xfer_partial): Fix coding standards violation.
8703 Add support for TARGET_OBJECT_WCOOKIE.
8704
8705 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8706 deprecated_pc_in_sigtramp.
8707 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8708 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8709 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8710 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8711 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8712 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8713 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8714
8715 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8716 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8717 Fix typo.
8718
8719 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8720 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8721 (amd64_collect_fxsave): Likewise.
8722
8723 * i386-sol2-tdep.c: Include "gdb_string.h".
8724 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8725 name.
8726 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8727
8728 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8729
8730 * i386-sol2-tdep.c: Include "solib-svr4.h".
8731 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8732 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8733 * config/i386/tm-i386sol2.h: Include :solib.h".
8734 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8735 solib-svr4.o and solib-legacy.o.
8736 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8737 solib-svr4.o.
8738
8739 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8740
8741 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8742 whether a register is supplied by PTRACE_GETFPREGS.
8743 (store_inferior_registers): Likewise.
8744 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8745 whether a register is supplied by PT_GETFPREGS.
8746 (store_inferior_registers): Likewise.
8747
8748 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8749 * config/i386/linux64.mt (TDEPFILES): Likewise.
8750
8751 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8752
8753 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8754 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8755 the program counter is in the range specified by `struct
8756 gdbarch_tdep'.
8757 * amd64-linux-tdep.c: Include "symtab.h".
8758 (amd64_linux_pc_in_sigtramp): Remove function.
8759 (amd64_linux_sigtramp_p): New function.
8760 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8761 deprecated_pc_in_sigtramp.
8762 * amd64nbsd-tdep.c: Include "symtab.h".
8763 (amd64nbsd_sigtramp_p): New function.
8764 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8765 deprecated_pc_in_sigtramp.
8766 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8767 few comments.
8768 (amd64obsd_pc_in_sigtramp): Remove function.
8769 (amd64obsd_sigtramp_p): New function.
8770 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8771 deprecated_pc_in_sigtramp.
8772 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8773 (i386bsd_pc_ins_sigtramp): Remove prototype.
8774 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8775 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8776 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8777 the program counter is in the range specified by `struct
8778 gdbarch_tdep'.
8779 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8780 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8781 (i386_go32_pc_in_sigtramp): Remove function.
8782 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8783 Initialize TDEP->sigtramp_p.
8784 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8785 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8786 deprecated_pc_in_sigtramp.
8787 * i386-linux-tdep.c: Adjust comments.
8788 (i386_linux_pc_in_sigtramp): Remove function.
8789 (i386_linux_sigtramp_p): New function.
8790 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8791 deprecated_pc_in_sigtramp.
8792 * i386-nto-tdep.c: Update copyright year.
8793 (i386nto_pc_in_sigtramp): Remove function.
8794 (i386nto_sigtramp_p): New function.
8795 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8796 SP_REGNUM.
8797 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8798 deprecated_pc_in_sigtramp.
8799 * i386-sol2-tdep.c: Update copyright year.
8800 (i386_sol2_pc_in_sigtramp): Remove function.
8801 (i386_sol2_sigtramp_p): New function.
8802 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8803 deprecated_pc_in_sigtramp.
8804 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8805 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8806 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8807 deprecated_sigtramp_start and deprecated_sigtramp_end.
8808 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8809 (i386nbsd_pc_in_sigtramp): Remove function.
8810 (i386nbsd_sigtramp_p): New function.
8811 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8812 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8813 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8814 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8815 (i386obsd_pc_in_sigtramp): Remove function.
8816 (i386obsd_sigtramp_p): New function.
8817 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8818 functions.
8819 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8820 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8821 TDEP->sigtramp_p.
8822 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8823 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8824 dependencies.
8825
8826 * config/i386/i386aout.mt: Remove file.
8827
8828 * configure.tgt: Remove i[34567]86-*-go32*,
8829 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8830 and i[34567]86-*-isc*. Set gdb_target to i386 for
8831 i[34567]86-*-netware* and i[34567]86-*-*.
8832 * config/i386/i386.mt: New file.
8833 * config/i386/embed.mt: Remove file.
8834 * config/i386/go32.mt: Remove file.
8835 * config/i386/i386nw.mt: Remove file.
8836 * config/i386/i386v.mt: Remove file.
8837 * config/i386/tm-go32.h: Remove file.
8838
8839 * tui/tui-hooks.c: Include "readline/readline.h" after
8840 "gdb_curses.h" instead of before.
8841 * tui/tui-io.c: Likewise.
8842
8843 * tui/tui.c: Fix typo in comment.
8844
8845 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8846
8847 2004-04-08 Andrew Cagney <cagney@redhat.com>
8848
8849 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8850 (deprecated_exception_support_initialized): Declare.
8851 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8852 (initialize_hp_cxx_exception_support)
8853 (child_enable_exception_callback): Update.
8854 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8855 (deprecated_exception_support_initialized): Rename
8856 deprecated_exception_catchpoints_are_fragile and
8857 deprecated_exception_support_initialized.
8858 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8859
8860 * symtab.c (deprecated_hp_som_som_object_present): Rename
8861 hp_som_som_object_present.
8862 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8863 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8864 Update. Delete extern declaration.
8865 * valops.c (hp_som_som_object_present): Ditto.
8866 * parse.c (deprecated_hp_som_som_object_present)
8867 (parse_nested_classes_for_hpacc): Ditto.
8868 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8869 * hppa-hpux-tdep.c (hp_som_som_object_present)
8870 (initialize_hp_cxx_exception_support): Ditto.
8871 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8872 * cp-valprint.c (hp_som_som_object_present)
8873 (cp_print_class_method): Ditto.
8874 * c-typeprint.c (hp_som_som_object_present):
8875 (c_type_print_base): Ditto.
8876 * c-exp.y (hp_som_som_object_present): Ditto.
8877
8878 2004-04-08 Andrew Cagney <cagney@redhat.com>
8879
8880 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8881 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8882 (frame_unwind_find_by_frame): Re-implement the unwind code so
8883 that it can both prepend and append sniffers. Replace
8884 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8885 * tramp-frame.c (tramp_frame_append): Use
8886 frame_unwind_prepend_unwinder.
8887 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8888 frame_unwind_register_unwinder.
8889 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
8890 tramp_frame_append.
8891 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8892 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
8893 (mips_linux_init_abi): Update.
8894
8895 2004-04-08 Kevin Buettner <kevinb@redhat.com>
8896
8897 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
8898 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
8899 file support.
8900
8901 2004-04-07 Kevin Buettner <kevinb@redhat.com>
8902
8903 * ia64-tdep.c (elf.h): Don't include.
8904 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
8905
8906 2004-04-07 Jason Molenda (jmolenda@apple.com)
8907
8908 * frame.h: Typeo corrections in comments.
8909
8910 2004-04-07 Jim Blandy <jimb@redhat.com>
8911
8912 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
8913 %esp and %ebp
8914
8915 2004-04-07 Mark Kettenis <kettenis@gnu.org>
8916
8917 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
8918 * config/sparc/linux64.mt (TDEPFILES): Likewise.
8919 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8920 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
8921 and solib-legacy.o.
8922 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
8923 solib-svr4.o.
8924 * config/sparc/tm-sol2.h: Update copyright year. Include
8925 "solib.h".
8926
8927 * sparc-sol2-tdep.c: Update copyright year. Include
8928 "solib-svr4.h".
8929 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8930 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
8931 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8932 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
8933 dependencies.
8934
8935 2004-04-06 Andrew Cagney <cagney@redhat.com>
8936
8937 * infttrace.c: Include "infttrace.h".
8938 * infttrace.h: Include "target.h".
8939 * Makefile.in (infttrace_h): Update.
8940 (infttrace.o): Update.
8941
8942 2004-04-06 Andrew Cagney <cagney@redhat.com>
8943
8944 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
8945 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
8946 move extern declarations from here ...
8947 * infttrace.h: ... to here.
8948 * Makefile.in (hppah-nat.o): Update dependencies.
8949
8950 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8951 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8952 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
8953 (hppa_breakpoint_from_pc): Delete.
8954
8955 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8956
8957 2004-04-05 Andrew Cagney <cagney@redhat.com>
8958
8959 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8960 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8961 <sys/file.h>.
8962
8963 2004-04-06 Randolph Chung <tausq@debian.org>
8964
8965 Committed by Andrew Cagney (mechanical change).
8966 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8967 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8968 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8969 child_enable_exception_callback, current_ex_event,
8970 null_symtab_and_line, child_get_current_exception_event,
8971 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8972 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8973 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8974 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8975 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8976 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8977 Move hpux-specific definitions ...
8978 * hppa-hpux-tdep.c: ... to here.
8979
8980 2004-04-05 Andrew Cagney <cagney@redhat.com>
8981
8982 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8983 skip_prologue_using_sal.
8984
8985 2004-04-05 Andrew Cagney <cagney@redhat.com>
8986
8987 * config/i386/tm-i386.h: Delete file.
8988 * config/i386/tm-vxworks.h: Update copyright, do not include
8989 "tm-i386.h".
8990 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8991 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8992 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8993 * config/i386/ncr3000.mt (TM_FILE): Delete.
8994 * config/i386/interix.mt (TM_FILE): Delete.
8995 * config/i386/i386v.mt (TM_FILE): Delete.
8996 * config/i386/i386nw.mt (TM_FILE): Delete.
8997 * config/i386/i386gnu.mt (TM_FILE): Delete.
8998 * config/i386/i386aout.mt (TM_FILE): Delete.
8999 * config/i386/embed.mt (TM_FILE): Delete.
9000
9001 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9002
9003 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9004 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9005 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9006 (accg7_regnum): New constants.
9007 (last_spr_regnum, last_pseudo_regnum): Update.
9008 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9009 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9010 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9011 for accg registers.
9012 (frv_register_sim_regno): Update spr_map[].
9013
9014 2004-04-04 Andrew Cagney <cagney@redhat.com>
9015
9016 * config/mips/xm-riscos.h: Delete.
9017 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9018 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9019 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9020 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9021 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9022 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9023 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9024 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9025 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9026 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9027 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9028 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9029 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9030 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9031 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9032 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9033 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9034 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9035 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9036 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9037 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9038 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9039 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9040 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9041 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9042 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9043
9044 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9045 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9046 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9047 * configure.host: Remove m680[01]0-sun-sunos3*,
9048 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9049 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9050 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9051 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9052 mips-*-riscos*.
9053 * NEWS: Mention removed systems.
9054
9055 2004-04-04 Andrew Cagney <cagney@redhat.com>
9056
9057 GDB 6.1 release created from 6.1 branch.
9058
9059 2004-04-04 Andrew Cagney <cagney@redhat.com>
9060
9061 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9062 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9063 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9064
9065 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9066 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9067 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9068
9069 2004-04-03 Jim Blandy <jimb@redhat.com>
9070
9071 * MAINTAINERS: Chris Faylor has changed employers; add him to
9072 "paper trail" section, and update his E-mail address.
9073
9074 2004-04-03 Andrew Cagney <cagney@redhat.com>
9075
9076 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9077 generic dummy frames.
9078 * dummy-frame.c: Update copyright.
9079 (dummy_frame_sniffer): Delete check for generic dummy frames.
9080
9081 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9082 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9083 (REG_PARM_STACK_SPACE): Delete.
9084 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9085 Inline reference to REG_PARM_STACK_SPACE.
9086
9087 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9088 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9089 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9090 (FRAME_BASE_BEFORE_SIGTRAMP)
9091 (hppa32_hpux_frame_base_before_sigtramp)
9092 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9093 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9094 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9095 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9096 (FRAME_BASE_BEFORE_SIGTRAMP)
9097 (hppa64_hpux_frame_base_before_sigtramp)
9098 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9099
9100 2004-04-03 Andrew Cagney <cagney@redhat.com>
9101
9102 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9103
9104 2004-04-02 Andrew Cagney <cagney@redhat.com>
9105
9106 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9107 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9108 * dummy-frame.h: Delete out-of-date comments.
9109 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9110 * gdbarch.h, gdbarch.c: Re-generate.
9111
9112 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9113
9114 Committed by Andrew Cagney <cagney@redhat.com>.
9115 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9116 into account an instruction saving a register if we have already
9117 seen an earlier instruction saving that same register.
9118
9119 2004-04-02 Andrew Cagney <cagney@redhat.com>
9120
9121 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9122 * gdbarch.h, gdbarch.c: Re-generate.
9123 * frame.c (legacy_get_prev_frame): Delete references to
9124 DEPRECATED_INIT_FRAME_PC_FIRST.
9125
9126 * infrun.c (pc_in_sigtramp): Delete function.
9127 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9128 get_frame_type.
9129
9130 2004-04-02 Andrew Cagney <cagney@redhat.com>
9131
9132 * infrun.c (handle_step_into_function): Delete code conditional on
9133 legacy_frame_p.
9134 (handle_inferior_event, step_over_function): Ditto.
9135
9136 2004-04-02 Andrew Cagney <cagney@redhat.com>
9137
9138 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9139 "previous frame inner to this frame" test.
9140
9141 2004-04-02 Andrew Cagney <cagney@redhat.com>
9142
9143 * frame.c (safe_frame_unwind_memory): New function.
9144 * frame.h (safe_frame_unwind_memory): Declare. Update description
9145 of /safe_/ methods.
9146 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9147 "next_frame". Use safe_frame_unwind_memory.
9148 (tramp_frame_sniffer): Update call to tramp_frame_start.
9149
9150 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9151
9152 * dwarf2read.c (dwarf2_objfile_data_key): New.
9153 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9154 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9155 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9156 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9157 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9158 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9159 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9160 Remove variables.
9161 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9162 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9163 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9164 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9165 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9166 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9167 Remove macros.
9168 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9169 data.
9170 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9171 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9172 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9173 (read_partial_die, read_full_die, read_indirect_string)
9174 (dwarf_decode_line_header, dwarf_decode_macros)
9175 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9176 Update uses of removed variables.
9177 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9178 of removed macros.
9179 (_initialize_dwarf2_read): New function.
9180 * symfile.h (dwarf2_has_info): Update prototype.
9181 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9182 * elfread.c (elf_symfile_read): Likewise.
9183
9184 2004-04-01 Jim Blandy <jimb@redhat.com>
9185
9186 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9187 function for register numbers on all the rs6000-derived targets.
9188 (rs6000_gdbarch_init): Don't register a separate
9189 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9190 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9191 variants.
9192
9193 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9194 numbering.
9195
9196 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9197
9198 * valarith.c: Update copyright notice.
9199 (value_add): Handle range types.
9200 (value_sub): Ditto.
9201 (value_equal): Ditto.
9202 (value_less): Ditto.
9203 (value_neg): Ditto.
9204 (value_complement): Ditto.
9205 (value_binop): Simplify slightly by using is_integral_type and
9206 eliminiating unnecessary COERCE_ENUMs.
9207
9208 2004-03-31 Andrew Cagney <cagney@redhat.com>
9209
9210 * frame.h (frame_unwind_id): Declare.
9211 * frame.c (frame_unwind_id): New function.
9212 (get_prev_frame_1): New function.
9213 (frame_debug_got_null_frame): New function.
9214 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9215 code proper to prev_frame, update description.
9216 * infrun.c (step_over_function): Use frame_unwind_id.
9217
9218 2004-04-31 J. Brobecker <brobecker@gnat.com>
9219
9220 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9221 (hppa64_push_dummy_call): Likewise.
9222
9223 2004-03-30 Jim Blandy <jimb@redhat.com>
9224
9225 From Ulrich Weigand:
9226 * utils.c (query): Do not use a va_list variable multiple times.
9227
9228 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9229
9230 * Makefile.in (linux_nat_h): Update dependencies.
9231 * configure.in: Check for <gnu/libc-version.h>.
9232 * configure: Regenerate.
9233 * config.in: Regenerate.
9234 * linux-nat.h: Include "target.h". Add waitstatus field to
9235 struct lwp_info.
9236 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9237 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9238 to.
9239 (lin_lwp_handle_extended): New function. Handle clone events.
9240 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9241 thread exit events.
9242 (child_wait): Handle clone events.
9243 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9244 * linux-nat.c (linux_enable_event_reporting): Turn on
9245 PTRACE_O_TRACECLONE.
9246 (linux_handle_extended_wait): Handle clone events.
9247 * thread-db.c: Include <gnu/libc-version.h>.
9248 (struct private_thread_info): Add dying flag.
9249 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9250 higher.
9251 (attach_thread): Update comments. Handle dying threads.
9252 (detach_thread): Set the dying flag.
9253 (check_event): Always call attach_thread.
9254
9255 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9256
9257 * mips-tdep.c (mips_pdr_data): New.
9258 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9259 (_initialize_mips_tdep): Initialize mips_pdr_data.
9260
9261 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9262
9263 * minsyms.c (install_minimal_symbols): Move dropping leading
9264 char from linkage name from here...
9265 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9266 test for "__gnu_compiled*" symbols.
9267
9268 2004-03-28 Jim Blandy <jimb@redhat.com>
9269
9270 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9271 registers to temp register r0 and byte stores as prologue
9272 instructions.
9273
9274 2004-03-28 Andrew Cagney <cagney@redhat.com>
9275
9276 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9277 arm*-*-*.
9278
9279 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9280
9281 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9282 and switch the layout to force a display of register window.
9283
9284 2004-02-26 J. Brobecker <brobecker@gnat.com>
9285
9286 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9287 of the INTEGER class.
9288
9289 2004-03-26 Jim Blandy <jimb@redhat.com>
9290
9291 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9292 bytes long on PPC GNU/Linux.
9293
9294 2004-03-26 David Carlton <carlton@kealia.com>
9295
9296 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9297
9298 2004-03-25 Andrew Cagney <cagney@redhat.com>
9299
9300 * PROBLEMS: Add general section titles, remove references to
9301 specific releases.
9302
9303 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9306 INT_REGISTER_SIZE.
9307 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9308 FP_REGISTER_VIRTUAL_SIZE.
9309 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9310 of DEPRECATED_REGISTER_RAW_SIZE.
9311 (arm_register_type): Add gdbarch argument.
9312 (arm_register_raw_size, arm_register_virtual_size): Delete.
9313 (arm_register_byte, arm_extract_return_value)
9314 (arm_store_return_value, arm_get_longjmp_target): Update references
9315 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9316 (arm_gdbarch_init): Likewise. Don't set
9317 deprecated_register_raw_size, deprecated_register_virtual_size,
9318 deprecated_max_register_raw_size,
9319 deprecated_max_register_virtual_size, or
9320 deprecated_max_register_virtual_type. Do set register_type.
9321 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9322 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9323 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9324 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9325 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9326 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9327 INT_REGISTER_SIZE.
9328 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9329 (remote_rdp_store_register): Likewise.
9330
9331 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9332
9333 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9334 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9335 to after osabi initialization.
9336 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9337 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9338 functions.
9339 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9340 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9341 variables.
9342 (mips_linux_init_abi): Append signal trampoline unwinders.
9343
9344 2004-03-24 Andrew Cagney <cagney@redhat.com>
9345
9346 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9347 * tramp-frame.c: Include "gdb_assert.h".
9348 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9349 correct sizeof.
9350 (tramp_frame_append): Validate the tramp frame's instructions.
9351 * Makefile.in (tramp-frame.o): Update dependencies.
9352
9353 2004-03-23 Andrew Cagney <cagney@redhat.com>
9354
9355 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9356
9357 2004-03-23 Andrew Cagney <cagney@redhat.com>
9358
9359 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9360 Nasser as past testsuite/lib/ (and other) maintainers.
9361
9362 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9363
9364 * infcmd.c (attach_command): Reread symbols if we already have
9365 an exec file.
9366
9367 2004-03-23 Andrew Cagney <cagney@redhat.com>
9368
9369 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9370
9371 2004-03-23 Andrew Cagney <cagney@redhat.com>
9372
9373 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9374 * gdbarch.h, gdbarch.c: Re-generate.
9375 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9376 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9377 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9378 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9379 (DEPRECATED_SIGTRAMP_START): Update.
9380 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9381 (DEPRECATED_SIGTRAMP_START): Update.
9382 * blockframe.c (find_pc_sect_partial_function): Update.
9383 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9384
9385 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9386
9387 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9388 if necessary.
9389
9390 2004-03-23 Andrew Cagney <cagney@redhat.com>
9391
9392 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9393 predicate, deprecate.
9394 * gdbarch.h, gdbarch.c: Re-generate.
9395 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9396 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9397 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9398 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9399 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9400 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9401 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9402 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9403 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9404 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9405 * blockframe.c (find_pc_partial_function): Update.
9406 * breakpoint.c (bpstat_what): Update.
9407 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9408 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9409 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9410 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9411 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9412 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9413 * i386-nto-tdep.c (i386nto_init_abi): Update.
9414 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9415 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9416 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9417 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9418 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9419 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9420 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9421 * infrun.c (pc_in_sigtramp): Update.
9422 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9423 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9424 * mips-tdep.c (mips_gdbarch_init): Update.
9425 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9426 * ppc-linux-tdep.c: Update comment.
9427 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9428 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9429 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9430 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9431 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9432 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9433 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9434 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9435 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9436 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9437
9438 2004-03-23 Andrew Cagney <cagney@redhat.com>
9439
9440 * tramp-frame.h, tramp-frame.h: New files.
9441 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9442 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9443
9444 * Makefile.in: Update all dependencies.
9445
9446 2004-03-23 Andrew Cagney <cagney@redhat.com>
9447
9448 * Makefile.in (trad_frame_h): Add $(frame_h).
9449 * trad-frame.h: Update copyright. Include "frame.h".
9450 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9451 (trad_frame_set_id, trad_frame_get_id): Declare.
9452 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9453 * trad-frame.c: Update copyright.
9454 (struct trad_frame_cache): Define.
9455 (trad_frame_cache_zalloc): New function.
9456 (trad_frame_set_id, trad_frame_get_id): New functions.
9457 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9458
9459 2004-03-22 Andrew Cagney <cagney@redhat.com>
9460
9461 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9462 s390_pltstub_unwind_cache.
9463 (s390_stub_frame_unwind_cache): Rename
9464 s390_pltstub_frame_unwind_cache.
9465 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9466 (s390_stub_frame_prev_register): Rename
9467 s390_pltstub_frame_prev_register.
9468 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9469 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9470
9471 From Ulrich Weigand:
9472 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9473 pointer calls like PLT calls.
9474
9475 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9476
9477 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9478 PC rather than the partial function start address. Use the start
9479 address to sanity check the found PDR.
9480
9481 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9482
9483 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9484 linux_handle_extended_wait.
9485
9486 2004-03-22 Andrew Cagney <cagney@redhat.com>
9487
9488 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9489 function.
9490
9491 * frame.h (generic_pop_current_frame): Delete declaration.
9492 (deprecate_pop_dummy_frame): Deprecate
9493 generic_pop_dummy_frame.
9494 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9495 (generic_pop_current_frame): Delete function.
9496 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9497 generic_pop_current_frame.
9498 * v850-tdep.c (v850_pop_frame): Update.
9499 * mcore-tdep.c (mcore_pop_frame): Update.
9500 * sh64-tdep.c (sh64_pop_frame): Update.
9501 * h8300-tdep.c (h8300_pop_frame): Update.
9502
9503 2004-03-22 Andrew Cagney <cagney@redhat.com>
9504
9505 * frame.h (deprecated_pc_in_call_dummy): Rename
9506 generic_pc_in_call_dummy.
9507 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9508 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9509 generic_pc_in_call_dummy.
9510 (pc_in_dummy_frame): Make static.
9511 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9512 * gdbarch.h, gdbarch.c: Re-generate.
9513 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9514 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9515 (legacy_get_prev_frame): Ditto.
9516 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9517 comment.
9518
9519 2004-03-21 Andrew Cagney <cagney@redhat.com>
9520
9521 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9522 declaration and out-of-date comment.
9523 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9524 Delete function.
9525 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9526 deprecated_pc_in_call_dummy.
9527
9528 * infrun.c (handle_inferior_event): For non legacy frames, use the
9529 frame ID and frame type to identify a signal trampoline. Update
9530 comments.
9531
9532 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9533
9534 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9535 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9536
9537 2004-03-21 Andrew Cagney <cagney@redhat.com>
9538
9539 * frame-unwind.h: Update copyright.
9540 (struct frame_data): Add opaque declaration.
9541 (frame_sniffer_ftype): Declare.
9542 (struct frame_unwind): Add "unwind_data" and "sniffer".
9543 (frame_unwind_register_unwinder): Declare.
9544 (frame_unwind_find_by_frame): Add parameter "this_cache".
9545 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9546 (legacy_get_prev_frame, legacy_get_prev_frame)
9547 (get_frame_type): Pass the prologue_cache to
9548 frame_unwind_find_by_frame.
9549 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9550 "unwinder".
9551 (frame_unwind_register_unwinder): New function.
9552 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9553
9554 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9555
9556 * bcache.c (print_percentage): Use floating point to avoid
9557 incorrect results when portion*100 overflows.
9558
9559 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9560
9561 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9562 (ppc_linux_init_extra_frame_info)
9563 (ppc_linux_frameless_function_invocation)
9564 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9565 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9566 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9567 (rs6000_frame_chain): Delete declarations.
9568 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9569 (ppc_linux_init_extra_frame_info)
9570 (ppc_linux_frameless_function_invocation)
9571 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9572 (ppc_linux_init_abi): Remove registration of above deleted functions.
9573 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9574 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9575 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9576 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9577 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9578 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9579 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9580 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9581 frame management for all OSABIs.
9582
9583 2004-03-19 Andrew Cagney <cagney@redhat.com>
9584
9585 Committed by Kevin Buettner <kevinb@redhat.com>.
9586
9587 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9588 Update copyright.
9589 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9590 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9591 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9592 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9593 unwinders. #ifdef legacy frame code.
9594 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9595 "frame-base.h".
9596 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9597 (struct rs6000_frame_cache, rs6000_frame_cache)
9598 (rs6000_frame_this_id, rs6000_frame_prev_register)
9599 (rs6000_frame_sniffer, rs6000_frame_unwind)
9600 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9601 (rs6000_frame_base): Implement a traditional frame unwinder.
9602 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9603 frame unwinder.
9604
9605 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9606
9607 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9608 breakpoint address for watchpoints or the catch eventpoints.
9609 Add new paramter ``bptype''. Adjust all callers.
9610
9611 2004-03-19 Andrew Cagney <cagney@redhat.com>
9612
9613 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9614
9615 * PROBLEMS: Delete note that ARM does not use frame code, problem
9616 fixed.
9617
9618 2004-03-18 Andrew Cagney <cagney@redhat.com>
9619
9620 * stack.c (return_command): Delete code wrapped in #ifdef
9621 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9622
9623 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9624
9625 2004-03-18 Andrew Cagney <cagney@redhat.com>
9626
9627 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9628 DEPRECATED_IN_SIGTRAMP.
9629 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9630 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9631 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9632 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9633 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9634 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9635 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9636 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9637 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9638 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9639
9640 2004-03-18 Andrew Cagney <cagney@redhat.com>
9641
9642 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9643 (struct frame_base_table_entry): Define.
9644 (struct frame_base_table): Re-implement as a linked list.
9645 (frame_base_init): Re-implement.
9646 (frame_base_table): Delete function.
9647 (append_predicate): Delete function.
9648 (frame_base_append_sniffer): Update.
9649 (frame_base_set_default): Update.
9650 (frame_base_find_by_frame): Update.
9651 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9652 * Makefile.in (frame-base.o): Update dependencies.
9653
9654 2004-03-17 Andrew Cagney <cagney@redhat.com>
9655
9656 * frame.c (legacy_get_prev_frame): Pass correct frame to
9657 frame_unwind_find_by_frame.
9658
9659 2004-03-17 David Carlton <carlton@kealia.com>
9660
9661 * NEWS: Mention C++ nested types and namespaces
9662
9663 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9664
9665 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9666 and "Regressions since gdb 5.3.". Add known regressions since
9667 gdb 6.0.
9668
9669 2004-03-16 David Carlton <carlton@kealia.com>
9670
9671 * dwarf2read.c (process_structure_scope): Process children even
9672 when we're a declaration.
9673
9674 2004-03-16 Andrew Cagney <cagney@redhat.com>
9675
9676 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9677 * blockframe.c (find_pc_partial_function)
9678 (find_pc_sect_partial_function): Merge into a single
9679 find_pc_partial_function.
9680
9681 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9682
9683 * i386bsd-nat.c: s/regno/regnum/g.
9684 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9685 FP0_REGNUM.
9686 (store_inferior_registers): Likewise.
9687
9688 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9689
9690 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9691 of i387_fill_fsave.
9692 (store_inferior_registers): Call i387_collect_fsave and
9693 i387_collect_fxsave instead of i387_fill_fsave and
9694 i387_fill_fxsave.
9695
9696 2004-03-15 Andrew Cagney <cagney@redhat.com>
9697
9698 * Makefile.in (frame-unwind.o): Update dependencies.
9699 * frame-unwind.c: Include "gdb_obstack.h".
9700 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9701 parameter.
9702 (append_predicate): Delete function.
9703 (struct frame_unwind_table_entry): New structure.
9704 (struct frame_unwind_table): Replace "sniffer" with "head" and
9705 "tail".
9706 (frame_unwind_append_sniffer): Update.
9707 (frame_unwind_find_by_frame): Update.
9708 (_initialize_frame_unwind): Registe frame_unwind_init using
9709 gdbarch_data_register_pre_init.
9710
9711 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9712
9713 * i386bsd-nat.c: Update copyright year.
9714 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9715 define unconditionally.
9716
9717 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9718
9719 * i387-tdep.h (i387_collect_fsave): New prototype.
9720 * i387-tdep.c (i387_collect_fsave): New function containing most
9721 of the code from i387_fill_fsave.
9722 (i387_fill_fsave): Call i387_collect_fsave.
9723
9724 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9725
9726 * i386-linux-tdep.c: Update copyright year.
9727 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9728 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9729 svr4_ilp32_link_map_offsets instead of
9730 i386_linux_svr4_fetch_link_map_offsets.
9731
9732 2004-03-15 David Carlton <carlton@kealia.com>
9733
9734 Fix for PR c++/1553:
9735 * dwarf2read.c (read_structure_type): Determine type name by
9736 calling determine_class_name.
9737 (determine_class_name): New.
9738 (determine_prefix): Look at TYPE_TAG_NAME and call
9739 determine_class_name when appropriate.
9740 (determine_prefix_aux, class_name): Delete.
9741 (read_namespace): Set die->type.
9742
9743 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9744
9745 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9746 unused macro definition. The definition in target.h (or perhaps
9747 elsewhere) takes precedence.
9748
9749 2004-03-15 Andrew Cagney <cagney@redhat.com>
9750
9751 * ppc-tdep.h: Update copyright.
9752 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9753 function signatures to match "regsets.h".
9754 * ppc-linux-tdep.c: Include "regset.h".
9755 (ELF_GREGSET_SIZE): Delete.
9756 (right_supply_register): New function.
9757 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9758 using right_supply_register.
9759 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9760 functions.
9761 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9762 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9763 (_initialize_ppc_linux_tdep): Do not register
9764 ppc_linux_regset_core_fns.
9765 (ppc_linux_regset_from_core_section): Replace
9766 fetch_core_registers.
9767 (ppc_linux_regset_core_fns): Delete.
9768 * ppc-linux-nat.c: (right_fill_reg): New function.
9769 (supply_gregset): Update call to ppc_linux_supply_gregset.
9770 (fill_gregset): Clear the register set, use right_fill_reg.
9771 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9772 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9773
9774 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9775 unsigned.
9776
9777 2004-03-15 Andrew Cagney <cagney@redhat.com>
9778
9779 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9780 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9781 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9782 and register_gdbarch_data.
9783 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9784 (struct gdbarch_data): Replace "init" by "pre_init" and
9785 "post_init".
9786 * gdbarch.h, gdbarch.c: Re-generate.
9787 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9788 with"obstack", use OBSTACK_ZALLOC.
9789 (dwarf2_frame_ops): Delete.
9790 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9791 (dwarf2_frame_init_reg): Use gdbarch_data.
9792 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9793 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9794 (_initialize_svr4_solib): Update.
9795 * user-regs.c (_initialize_user_regs): Update.
9796 * reggroups.c (_initialize_reggroup): Update.
9797 * regcache.c (_initialize_regcache): Update.
9798 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9799 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9800 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9801 * frame-unwind.c (_initialize_frame_unwind): Update.
9802 * frame-base.c (_initialize_frame_base): Update.
9803 * user-regs.c (user_reg_add): Update.
9804 * reggroups.c (reggroup_add): Update.
9805 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9806 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9807 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9808 * frame-base.c (frame_base_table): Update.
9809 * remote.c (_initialize_remote): Update.
9810 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9811
9812 2004-03-15 Andrew Cagney <cagney@redhat.com>
9813
9814 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9815
9816 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9817
9818 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9819 * frv-linux-tdep.c: New file.
9820 * frv-tdep.c (struct gdbarch_tdep): Add new field
9821 ``sigcontext_reg_addr''.
9822 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9823 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9824 (frv_sigramp_frame_sniffer): New functions.
9825 (frv_sigtramp_frame_unwind): New static global.
9826 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9827 sniffers.
9828 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9829 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9830
9831 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9832
9833 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9834 but not via a call to error(), when unable to read memory.
9835
9836 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9837
9838 * frv-tdep.c (frv_call_dummy_words): Delete.
9839 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9840
9841 2004-03-15 Andrew Cagney <cagney@redhat.com>
9842
9843 * infrun.c (handle_step_into_function, step_over_function): Only
9844 update and use STEP_FRAME_ID when the system is using legacy
9845 frames. Update comments.
9846
9847 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9848
9849 * amd64-linux-tdep.h: Remove file.
9850 * amd64-linux-tdep.c: Don't include "inferior.h" and
9851 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9852 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9853 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9854 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9855 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9856 macros.
9857 (user_to_gdb_regmap): Remove variable.
9858 (amd64_linux_gregset_reg_offset): New variable.
9859 (amd64_core_fns): Remove variable.
9860 (fetch_core_registers): Remove function.
9861 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9862 functions.
9863 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9864 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9865 * Makefile.in (amd64_linux_tdep_h): Remove.
9866 (amd64-linux-nat.o): Update dependencies.
9867 (amd64-linux-tdep.o): Update dependencies.
9868
9869 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9870 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9871 functions.
9872 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9873
9874 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9875 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9876
9877 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9878
9879 * dwarf2read.c (read_structure_type): Rename from
9880 read_structure_scope. Don't create a symbol or call process_die.
9881 Return immediately if die->type is set. Call read_type_die before
9882 dwarf2_add_member_fn.
9883 (process_structure_scope): New function.
9884 (read_enumeration_type, process_enumeration_scope): New functions,
9885 broken out from read_enumeration. Don't create the enumeration
9886 type if it has already been created.
9887 (read_enumeration): Removed.
9888 (process_die): Call read_structure_type, process_structure_scope,
9889 read_enumeration_type, and process_enumeration_scope. Just call
9890 new_symbol for base and subrange types. Add a comment about other
9891 type dies.
9892 (read_type_die): Call read_enumeration_type.
9893 (add_partial_structure, new_symbol): Update comments.
9894
9895 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9896
9897 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
9898
9899 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
9900
9901 * tui/tui-win.h (tui_get_cmd_list): Declare.
9902 * tui/tui-win.c (tui_command): New function.
9903 (tui_get_cmd_list): New function.
9904 (_initialize_tui_win): Moved initialization of tui command in
9905 tui_get_cmd_list.
9906
9907 * tui/tui-data.c (init_content_element): Setup new data members.
9908 (init_win_info): Likewise.
9909 (free_content_elements): Free it.
9910 * tui/tui-data.h (struct tui_data_element): Store the register
9911 content to print.
9912 (struct tui_data_info): Keep the current register group.
9913
9914 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
9915
9916 * tui/tui-regs.h (tui_show_registers): Update prototype.
9917 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
9918 (tui_resize_all): No need to calculate anything for register window.
9919 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
9920 (tui_set_register_element, tui_set_general_regs_content): Remove.
9921 (tui_set_special_regs_content): Remove.
9922 (tui_set_general_and_special_regs_content): Remove.
9923 (tui_set_float_regs_content): Remove.
9924 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
9925 (tui_set_regs_content): Remove.
9926 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
9927 (tui_v_show_registers_command_support): Remove.
9928 (tui_show_registers): Use a reggroup to specify the registers to show.
9929 (tui_show_register_group): New function.
9930 (tui_display_registers_from): Compute the layout of register window
9931 and refresh with new API; be sure to delete old register windows.
9932 (tui_check_register_values): Update to use tui_get_register and
9933 tui_display_data.
9934 (tui_display_register): Just refresh the register window part.
9935 (tui_register_format): Format registers and save in tui_data_element.
9936 (tui_get_register): New to combine tui_reg_value_has_changed and
9937 tui_get_register_raw_value; fix to use the new gdb API.
9938 (tui_show_float_command): Renamed tui_reg_float_command.
9939 (tui_show_general_command): Renamed tui_reg_general_command.
9940 (tui_show_special_command): Renamed tui_reg_system_command.
9941 (_initialize_tui_regs): Remove unused commands.
9942
9943 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9944
9945 * NEWS (New native configurations): Mention OpenBSD/amd64.
9946
9947 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9948 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9949 Remove defines.
9950 * config/i386/nm-fbsd64.h: Likewise.
9951 * config/i386/nm-obsd.h: Likewise.
9952 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9953 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9954
9955 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9956
9957 * frv-tdep.c (set_variant_scratch_registers): New function.
9958 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9959 New constants.
9960
9961 From Richard Sandiford <rsandifo@redhat.com>:
9962 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9963
9964 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9965
9966 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9967 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9968 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9969 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9970 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9971 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9972 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9973 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9974 definitions from frv-tdep.c to frv-tdep.h.
9975
9976 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9977
9978 Add shared library support for FR-V FDPIC ABI:
9979 * Makefile.in (solib-frv.o): Add dependencies.
9980 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9981 New functions.
9982 (frv_push_dummy_call): Add support for FDPIC ABI.
9983 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9984 for FDPIC ABI.
9985 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9986 (frv_fdpic_find_canonical_descriptor): Declare.
9987 * solib-frv.c: New file.
9988 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9989 * config/frv/tm-frv.h (solib.h): Include.
9990
9991 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9992
9993 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9994 (frv-tdep.o): Update dependencies.
9995 * frv-tdep.h: New file.
9996 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9997 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9998 constants.
9999 (struct gdbarch_tdep): Add new member ``frv_abi''.
10000 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10001 functions.
10002 (new_variant): Set ``frv_abi'' field.
10003 (gdb_arch_init): Detect FDPIC executables.
10004
10005 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10006
10007 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10008 wrapper.
10009
10010 2004-03-11 Andrew Cagney <cagney@redhat.com>
10011
10012 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10013
10014 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10015
10016 * solist.h (master_so_list): New function.
10017 * solib.c (master_so_list): Likewise.
10018 * solib-svr4.c (enable_break): Iterate over so_list entries
10019 obtained from master list instead of entries obtained directly
10020 via svr4_current_sos().
10021
10022 2004-03-10 Ben Elliston <bje@gnu.org>
10023
10024 * MAINTAINERS: Update my mail address.
10025
10026 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10027
10028 * remote-m32r-sdi.c: Support hardware watchpoint.
10029
10030 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10031
10032 * user-regs.c: Update copyright years.
10033 (struct user_regs): Rename to gdb_user_regs.
10034 (append_user_reg, builtin_user_regs, user_regs_init)
10035 (user_reg_add, user_reg_map_name_to_regnum)
10036 (usernum_to_user_reg): Update.
10037
10038 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10041 (skip_children): New functions.
10042 (locate_pdi_sibling): Call skip_children.
10043
10044 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10047 * gdbtypes.c (check_typedef): Update comments.
10048
10049 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10050
10051 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10052 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10053 pointer. Update comment about comp_unit_head.
10054 (struct abbrev_info): Shorten two int flags.
10055 (dwarf_alloc_abbrev): Take a CU argument.
10056 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10057 each time through the loop. Update cleanup argument.
10058 (psymtab_to_symtab_1): Update cleanup call.
10059 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10060 abbrev_obstack.
10061 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10062 Just call obstack_free and clear the pointer.
10063
10064 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10065
10066 * infrun.c (handle_inferior_event): Remove short-circuit code for
10067 events in a different thread.
10068
10069 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10070
10071 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10072 print the whole transfer.
10073 (initialize_targets): Update description of "set debug target".
10074
10075 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10078
10079 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10080
10081 * MAINTAINERS (write after approval): Add myself.
10082
10083 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10084
10085 * sh-tdep.c (sh_print_registers_info): Use for loop.
10086 Don't skip multiple registers when a float register is encountered.
10087
10088 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10089
10090 Fix PR tdep/1291.
10091 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10092 to official SH documentation.
10093
10094 2004-03-07 Andrew Cagney <cagney@redhat.com>
10095
10096 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10097 unused function.
10098
10099 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10102 (arm_get_next_pc): Handle BX and BLX.
10103
10104 2004-03-07 Andrew Cagney <cagney@redhat.com>
10105
10106 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10107 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10108 HPPA_SP_REGNUM.
10109 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10110 (hppa_target_read_fp): Delete.
10111 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10112 register_virtual_size, max_register_raw_size,
10113 max_register_virtual_size, register_byte, register_size,
10114 target_read_fp, fp_regnum, and register_bytes. Set register_type
10115 instead of register_virtual_type.
10116 (hppa32_register_type, hppa64_register_type): Replace
10117 hppa32_register_virtual_type and hppa64_register_virtual_type.
10118 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10119 (HPPA_FP_REGNUM): Define.
10120
10121 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10122
10123 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10124 (pa_do_registers_info): Delete.
10125 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10126 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10127 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10128
10129 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10130 GDB_TARGET_IS_HPPA code.
10131 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10132 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10133 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10134 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10135 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10136 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10137 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10138 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10139 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10140 (hppa_frameless_function_invocation, hppa64_store_return_value)
10141 (hppa_store_struct_return, hppa64_extract_return_value)
10142 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10143 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10144 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10145 (find_proc_framesize, deposit_21, restore_pc_queue)
10146 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10147 (rp_saved, pc_in_linker_stub): Delete.
10148
10149 Unconditionally enable 64-bit frame and ABI code.
10150 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10151 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10152 push_dummy_frame, fix_call_dummy, push_arguments,
10153 call_dummy_location, extract_return_value, use_struct_convention,
10154 store_return_value, store_struct_return, saved_pc_after_call,
10155 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10156 frame_chain, frame_chain_valid, frameless_function_invocation,
10157 frame_saved_pc, and pop_frame.
10158
10159 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10160 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10161 (hppa_gdbarch_init): Do not set PC_REGNUM.
10162
10163 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10164
10165 * config/alpha/tm-fbsd.h: Remove file.
10166 * config/alpha/fbsd.mt: Tweak comment.
10167 (TM_FILE): Set to tm-alpha.h.
10168
10169 2004-03-05 Andrew Cagney <cagney@redhat.com>
10170
10171 * infrun.c (step_over_function): When non-legacy code, and no
10172 step_frame_id, use the unwinder to get the caller's frame ID.
10173
10174 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10175
10176 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10177 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10178 bfd_arch_unknown. Adjust comment.
10179
10180 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10181 * i386obsd-tdep.c: Correct spelling in comment.
10182 * i386nbsd-tdep.c: Correct spelling in comment.
10183 * sparc-tdep.c: Correct spelling in comments.
10184
10185 2004-03-05 David Carlton <carlton@kealia.com>
10186
10187 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10188 bug.
10189
10190 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10191
10192 * sparc-tdep.c: Fix typo in comment.
10193
10194 2004-03-04 J. Brobecker <brobecker@gnat.com>
10195
10196 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10197
10198 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10199
10200 * dwarf2read.c: Add comment describing memory lifetimes.
10201 (struct dwarf2_pinfo): Update comment.
10202 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10203 (read_enumeration, new_symbol): Don't use obsavestring.
10204
10205 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10206
10207 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10208 instead of amd64_fill_fxsave.
10209 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10210 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10211
10212 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10213 Reorganize code a bit.
10214
10215 2004-03-04 Orjan Friberg <orjanf@axis.com>
10216
10217 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10218 when the frame pointer is pushed. Don't set the frame pointer's
10219 address on the stack unless it's actually located there.
10220 Set the SRP's address on the stack correctly when the PC is still in
10221 the prologue.
10222 (cris_return_value): New function.
10223 (cris_gdbarch_init): Clear deprecated store_return_value,
10224 extract_return_value.
10225
10226 2004-03-02 Jim Blandy <jimb@redhat.com>
10227
10228 * stabsread.c (reg_value_complaint): The maximum register number
10229 is one less than the number of registers.
10230
10231 2004-03-02 Andrew Cagney <cagney@redhat.com>
10232
10233 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10234 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10235 trailing comma and redundant assignment of I386_ST0_REGNUM.
10236 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10237 32-bit segment registers.
10238
10239 2004-03-01 Andrew Cagney <cagney@redhat.com>
10240
10241 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10242 use frame_relative_level and get_next_frame.
10243
10244 2004-02-29 Andrew Cagney <cagney@redhat.com>
10245
10246 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10247 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10248 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10249 Delete macro.
10250
10251 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10252
10253 * inflow.c (terminal_inferior): Don't give up the terminal if we
10254 previously couldn't get the inferior's terminal state.
10255
10256 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10257
10258 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10259 PC_REGNUM.
10260
10261 2004-02-28 Andrew Cagney <cagney@redhat.com>
10262
10263 * NEWS: Refer to GDB 6.1.
10264 * README: Refer to GDB 6.1.
10265 * PROBLEMS: Refer to GDB 6.1.
10266
10267 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10268
10269 * thread-db.c (disable_thread_signals): Remove unused function.
10270
10271 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10272
10273 * amd64-nat.c: Include "gdb_string.h".
10274 (amd64_collect_native_gregset): Zero-extend the 32-bit
10275 general-purpose registers and %eip.
10276
10277 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10278 * amd64-tdep.c (amd64_collect_fxsave): New function.
10279 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10280
10281 * i387-tdep.h: Update copyright year.
10282 (i387_collect_fxsave): New prototype.
10283 * i387-tdep.c: Update copyright year.
10284 (i387_collect_fxsave): New function containing most of the code
10285 from i387_fill_fxsave.
10286 (i387_fill_fxsave): Call i387_collect_fxsave.
10287
10288 2004-02-28 Andrew Cagney <cagney@redhat.com>
10289
10290 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10291 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10292
10293 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10294
10295 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10296
10297 2004-02-28 Andrew Cagney <cagney@redhat.com>
10298
10299 * utils.c: Use "", instead of <>, to include readline.
10300 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10301 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10302 * source.c, solib.c, exec.c, event-top.c: Ditto.
10303 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10304 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10305 * Makefile.in: Update all dependencies.
10306 (readline_tilde_h, readline_history_h): Define.
10307 (readline_headers): Delete.
10308
10309 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10310
10311 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10312 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10313 "config/i386/tm-lx64.h".
10314
10315 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10316 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10317 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10318
10319 2004-02-28 Andrew Cagney <cagney@redhat.com>
10320
10321 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10322
10323 * breakpoint.c (_initialize_breakpoint): Use
10324 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10325 Add help to show command.
10326
10327 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10328
10329 * i386-nat.c: Reformat to be closer to coding standards.
10330 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10331 `retval'. Make variables `align' and `size' local to while-loop.
10332 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10333 (_initialize_i386_nat): New prototype.
10334
10335 * tui/tui.c: Include <readline/readline.h> instead of
10336 "readline/readline.h". Include it after <term.h> and
10337 "gdb_curses.h".
10338
10339 2004-02-27 Andrew Cagney <cagney@redhat.com>
10340
10341 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10342 the new frame unwind code.
10343 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10344 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10345 PCOQ_HEAD_REGNUM.
10346
10347 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10348 "return_value" and "push_dummy_call".
10349 (hppa32_use_struct_convention): Delete unused function.
10350 (hppa32_store_return_value): Delete unused function.
10351 (hppa32_extract_return_value): Delete unused function.
10352 (hppa32_stack_align): Delete function.
10353
10354 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10355
10356 * coffread.c (enter_linenos): Don't let rawptr reference memory
10357 outside linetab[]'s limits.
10358
10359 2004-02-27 Andrew Cagney <cagney@redhat.com>
10360
10361 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10362 inferior stack space - the stack needs to grow upwards.
10363 (hppa32_frame_align): New function.
10364 (hppa64_frame_align): Replace hppa_frame_align.
10365 (hppa_gdbarch_init): Update.
10366
10367 2004-02-26 Orjan Friberg <orjanf@axis.com>
10368
10369 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10370 (dwarf2-frame.h): Include.
10371 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10372 Remove static variables related to ABI setting.
10373 (struct gdbarch_tdep): Remove cris_abi member.
10374 (struct frame_extra_info): Remove.
10375 (cris_unwind_cache, stack_item): New structs.
10376 (cris_frame_unwind, cris_frame_base): New variables.
10377 (push_stack_item, pop_stack_item)
10378 (cris_frame_unwind_cache, cris_frame_this_id)
10379 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10380 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10381 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10382 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10383 (cris_reg_struct_has_addr): New functions.
10384 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10385 (cris_frame_saved_pc, cris_saved_pc_after_call,
10386 (cris_store_struct_return, cris_frameless_function_invocation)
10387 (cris_pop_frame, cris_skip_prologue_main)
10388 (cris_abi_original_store_return_value)
10389 (cris_abi_v2_store_return_value)
10390 (cris_abi_original_extract_return_value)
10391 (cris_abi_v2_extract_return_value)
10392 (cris_abi_original_reg_struct_has_addr)
10393 (cris_abi_v2_reg_struct_has_addr)
10394 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10395 (cris_push_return_address, cris_abi_update): Remove.
10396 (_initialize_cris_tdep): Remove ABI command.
10397 (cris_dump_tdep): Ditto.
10398 (cris_gdbarch_init): Remove ABI command.
10399 Set store_return_value, extract_return_value, push_dummy_code,
10400 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10401 frame_unwind_append_sniffer, frame_base_set_default.
10402 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10403 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10404 sizeof_call_dummy_words, get_saved_register, push_return_address,
10405 pop_frame, store_struct_return, frame_init_saved_regs,
10406 init_extra_frame_info, frameless_function_invocation, frame_chain,
10407 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10408 dummy_write_sp.
10409
10410 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10411
10412 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10413 * valprint.c (print_hex_chars): Change from static to external.
10414 (print_char_chars): New function.
10415 * printcmd.c (print_scalar_formatted): For integer and enum types
10416 that are longer than LONGEST, perform processing via appropriate
10417 print_*_chars routines.
10418
10419 2004-02-26 Andrew Cagney <cagney@redhat.com>
10420
10421 * Makefile.in: Update dependencies.
10422 Changes from Ulrich Weigand,
10423 * s390-tdep.c: Include "dwarf2-frame.h".
10424 (s390_dwarf2_frame_init_reg): New function.
10425 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10426 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10427
10428 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10429
10430 * breakpoint.c (pending_break_support): New setting variable.
10431 (break_command_1): Account for pending_break_support setting
10432 when creating pending breakpoints.
10433 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10434 (_initialize_breakpoint): Add "set breakpoint pending" and
10435 "show breakpoint pending" commands.
10436
10437 2004-02-26 Andrew Cagney <cagney@redhat.com>
10438
10439 Fix PR i18n/1570.
10440 * charset.c (backslashable, backslashed, represented): Remove 'e'
10441 from list of escaped characters, not part of ISO-C.
10442
10443 2004-02-25 J. Brobecker <brobecker@gnat.com>
10444
10445 From Peter Schauer <schauer@pdf.de>:
10446 * tui/tui.c: Move system header includes after local includes.
10447 Fixes a build failure on solaris systems.
10448
10449 2004-02-25 J. Brobecker <brobecker@gnat.com>
10450
10451 * configure.in: Refine the previous change.
10452 * configure: Regenerate.
10453
10454 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10455
10456 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10457 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10458 "amd64-tdep.h" instead of "x86-64-tdep.h".
10459 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10460 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10461 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10462 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10463 and "x86-64-tdep.c".
10464 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10465 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10466 and "x86-64-tdep.c".
10467 * amd64bsd-nat.c: Update copyright year.
10468 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10469 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10470 "x86-64-tdep.h".
10471 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10472 "x86-64-tdep.h".
10473 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10474 "x86-64-tdep.h".
10475 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10476 "x86-64-tdep.h".
10477 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10478 "x86-64-tdep.h".
10479 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10480 "x86-64-tdep.h".
10481 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10482 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10483 * Makefile.in (amd64_linux_tdep_h): Renamed from
10484 x86_64_linux_tdep_h.
10485 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10486 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10487 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10488 (amd64obsd-tdep.o): Update dependencies.
10489 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10490 dependencies.
10491 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10492 dependencies.
10493 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10494 amd64-linux-nat.c amd64-linux-tdep.c.
10495 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10496 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10497 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10498 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10499 amd64-tdep.o and amd64-linux-tdep.o.
10500 (TM_FILE): Set to tm-linux64.h.
10501 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10502 (NAT_FILE): Set to nm-linux64.h.
10503 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10504 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10505 amd64-tdep.o.
10506 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10507 amd64-tdep.o.
10508 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10509 amd64-tdep.o.
10510
10511 2004-02-25 Roland McGrath <roland@redhat.com>
10512
10513 * remote.c (remote_protocol_qPart_auxv): New variable.
10514 (init_all_packet_configs): Initialize it.
10515 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10516 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10517 (show_remote_cmd): Call it.
10518 (_initialize_remote): Initialize commands.
10519 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10520 service TARGET_OBJECT_AUXV requests.
10521
10522 2004-02-25 J. Brobecker <brobecker@gnat.com>
10523
10524 * configure.in: Make sure that the wborder function is available.
10525 Otherwise, search for it in the cur_colr library.
10526 * configure: Regenerate.
10527
10528 2004-02-25 Andrew Cagney <cagney@redhat.com>
10529
10530 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10531
10532 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10533
10534 * config/i386/tm-x86-64linux.h: Tweak comments.
10535
10536 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10537
10538 * MAINTAINERS: Add self to write-after-approval list.
10539
10540 2004-02-25 Andrew Cagney <cagney@redhat.com>
10541
10542 PR cli/1566. Problem found, and fix suggested by David Allan.
10543 * cli/cli-script.c (execute_control_command): Unconditionally
10544 install a cleanup. Default "ret" to "invalid_control". Use
10545 "break" instead of "return" to escape from the switch.
10546
10547 2004-02-24 J. Brobecker <brobecker@gnat.com>
10548
10549 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10550 with the lines macro defined in term.h on AiX.
10551 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10552 a collision with the label_width macro defined in term.h on AiX.
10553
10554 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10555
10556 Committed by Kevin Buettner <kevinb@redhat.com>.
10557
10558 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10559 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10560 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10561 instead of ia64_write_pc().
10562 * ia64-linux-tdep.c (regcache.h): Include.
10563 (ia64_linux_write_pc): New function.
10564
10565 2004-02-23 Roland McGrath <roland@redhat.com>
10566
10567 * auxv.c (info_auxv_command): Fix typos in error messages.
10568
10569 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10570
10571 * x86-64-tdep.h: Tweak comment.
10572 (enum amd64_regnum): New.
10573 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10574 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10575 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10576 (X86_64_XMM1_REGNUM): Removed.
10577 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10578 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10579 prototypes for renamed functions.
10580 * x86-64-tdep.c: Fix typo.
10581 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10582 register numbers.
10583 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10584 Use constants from `enum amd64_regnum' for register numbers.
10585 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10586 (amd64_analyze_prologue, amd64_frame_cache,
10587 amd64_sigtramp_frame_cache): Use constants from `enum
10588 amd64_regnum' for register numbers.
10589 (amd64_supply_fpregset): Adjust for renamed functions.
10590 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10591 `enum amd64_regnum' for register numbers.
10592 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10593 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10594 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10595 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10596 (amd64_linux_fill_gregset): Adjust for renamed macros.
10597 (fetch_core_registers): Adjust for renamed functions.
10598 (amd64_linux_init_abi): Adjust for renamed functions.
10599 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10600 renamed functions.
10601 * amd64-nat.c: Adjust for renamed macros.
10602 * amd64bsd-nat.c (fetch_inferior_registers)
10603 (store_inferior_registers): Use constants from `enum amd64_regnum'
10604 for register numbers. Adjust for renamed variables.
10605 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10606 renamed variables.
10607 (_initialize_amd64fbsd_nat): Use constants from `enum
10608 amd64_regnum' for register numbers.
10609 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10610 `enum amd64_regnum' for register numbers.
10611 (amd64fbsd_init_abi): Adjust for renamed functions.
10612 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10613 `enum amd64_regnum' for register numbers.
10614 (amd64nbsd_init_abi): Adjust for renamed functions.
10615 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10616 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10617 `enum amd64_regnum' for register numbers.
10618 (amd64obsd_init_abi): Adjust for renamed functions.
10619 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10620
10621 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10622
10623 * breakpoint.c (print_one_breakpoint): Do not output spaces
10624 after printing <PENDING> for a pending breakpoint.
10625
10626 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10627
10628 * printcmd.c (print_scalar_formatted): Initialize val_long
10629 to remove compiler warning message.
10630
10631 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10632
10633 * defs.h (nquery, yquery): New prototypes.
10634 * breakpoint.c (break_command_1): Use new nquery interface.
10635 * utils.c (defaulted_query, nquery, yquery): New functions.
10636
10637 2004-02-23 Andrew Cagney <cagney@redhat.com>
10638
10639 * hppa-tdep.c (hppa_frame_align): New function.
10640 (hppa32_push_dummy_call): New function.
10641 (hppa64_push_dummy_call): New function.
10642 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10643 disabled.
10644
10645 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10646 FIX_CALL_DUMMY when push_dummy_call is available.
10647 (call_function_by_hand, push_dummy_code): Ditto.
10648
10649 2004-02-22 Andrew Cagney <cagney@redhat.com>
10650
10651 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10652 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10653 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10654 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10655 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10656 call_dummy_location to ON_STACK.
10657
10658 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10659
10660 * x86-64-linux-tdep.c: Tweak comment.
10661 (amd64_linux_supply_gregset): Renamed from
10662 x86_64_linux_supply_gresget.
10663 (amd64_linux_fill_gregset): Renamed from
10664 x86_64_linux_fill_gregset.
10665 (fetch_core_registers): Adjust for renamed functions.
10666 (amd64_core_fns): Renamed from x86_64_core_fns.
10667 (amd64_linux_sigtramp_start): Renamed from
10668 x86_64_linux_sigtramp_start.
10669 (amd64_linux_pc_in_sigtramp): Renamed from
10670 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10671 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10672 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10673 (amd64_linux_sigcontext_addr): Renamed from
10674 x86_64_linux_sigcontext_addr.
10675 (amd64_linux_sc_reg_offset): Renamed from
10676 x86_64_linux_sc_reg_offset.
10677 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10678 Adjust for renamed functions and variables.
10679 (_initialize_amd64_linux_tdep): Renamed from
10680 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10681 variables.
10682 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10683 Adjust for renamed functions.
10684
10685 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10686 from x86_64_linux_gregset64_reg_offset.
10687 (amd64_linux_gregset32_reg_offset): Rename from
10688 x86_64_linux_gregset64_reg_offset.
10689 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10690 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10691 (amd64_linux_dr_set_control): Renamed from
10692 x86_64_linux_dr_set_control. Adjust for renamed functions.
10693 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10694 Adjust for renamed functions.
10695 (amd64_linux_dr_reset_addr): Renamed from
10696 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10697 (amd64_linux_dr_get_status): Renamed from
10698 x86_64_linux_dr_get_status. Adjust for renamed functions.
10699 (_initialize_amd64_linux_nat): Renamed from
10700 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10701 functions.
10702 * config/i386/nm-x86-64linux.h: Update copyright year.
10703 Adjust for renamed functions.
10704
10705 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10706 amd64fbsd_sigtramp_start.
10707 (amd64fbsd_sigtramp_end_addr): Renamed from
10708 amd64fbsd_sigtramp_end.
10709 (amd64fbsd_init_abi): Adjust for renamed variables.
10710 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10711 variables.
10712 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10713 amd64fbsd_sigtramp_start.
10714 (amd64fbsd_sigtramp_end_addr): Renamed from
10715 amd64fbsd_sigtramp_end.
10716
10717 2004-02-22 Andrew Cagney <cagney@redhat.com>
10718
10719 * hppa-tdep.c (hppa32_return_value): New function.
10720 (hppa64_return_value): New function.
10721 (hppa_gdbarch_init): Set return_value; keep disabled.
10722
10723 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10724 struct-return and inferior function call methods.
10725
10726 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10727 "frame-base.h".
10728 (struct hppa_frame_cache): Define.
10729 (hppa_frame_cache, hppa_frame_this_id): New functions.
10730 (hppa_frame_prev_register): New function.
10731 (hppa_frame_unwind, hppa_frame_base): New variables.
10732 (hppa_frame_unwind_sniffer): New function.
10733 (hppa_frame_base_address, hppa_unwind_pc): New function.
10734 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10735 sniffer, and frame base sniffer; keep disabled.
10736 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10737 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10738
10739 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10740 to predicates for "seriously old code".
10741
10742 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10743 runtime if(0).
10744
10745 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10746 unsigned.
10747 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10748
10749 * config/pa/tm-hppa.h: Update copyright.
10750 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10751 (deprecated_init_frame_pc_default): Delete declaration.
10752 (hppa_frame_init_saved_regs): Delete declaration.
10753 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10754 * hppa-tdep.c: Include "arch-utils.h".
10755 (hppa_gdbarch_init): Set deprecated init_frame_pc
10756 and deprecated frame_init_saved_regs.
10757 (hppa_frame_init_saved_regs): Make static.
10758
10759 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10760
10761 Remove old 386BSD support.
10762 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10763 * configure.host: Remove i[34567]86-*-bsd*.
10764 * configure.tgt: Remove i[34567]86-*-bsd*.
10765 * i386b-nat.c: Removed.
10766 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10767 (i386b-nat.o): Remove dependencies.
10768
10769 * config/i386/i386bsd.mh: Removed.
10770 * config/i386/i386bsd.mt: Removed.
10771 * config/i386/nm-i386bsd.h: Removed.
10772 * config/i386/tm-i386bsd.h: Removed.
10773 * config/i386/xm-i386bsd.h: Removed.
10774
10775 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10776
10777 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10778 (amd64fbsd_init_abi): Set link map offsets.
10779 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10780 (amd64nbsd_init_abi): Set link map offsets.
10781 * amd64obsd-tdep.c: Include "solib-svr4.h".
10782 (amd64obsd_init_abi): Set link map offsets.
10783 * i386fbsd-tdep.c: Include "solib-svr4.h".
10784 (i386fbsd_init_abi): Set link map offsets.
10785 * i386nbsd-tdep.c: Include "solib-svr4.h".
10786 (i386nbsdelf_init_abi): Set link map offsets.
10787 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10788 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10789 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10790 solib-legacy.o and core-aout.o. Reformat.
10791 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10792 solib-svr4.o, solib-legacy.o. Reformat.
10793 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10794 * config/i386/nbsdelf.mh: Reformat.
10795 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10796 solib-svr4.o, solib-legacy.o and corelow.o.
10797 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10798 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10799 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10800 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10801 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10802 (TM_FILE): Set to tm-fbsd.h.
10803 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10804 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10805 solib-svr4.o.
10806 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10807 solib-svr4.o.
10808 (TM_FILE): Set to nm-nbsd.h.
10809 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10810 Simplify shared library support. Don't include "elf/common.h".
10811 (SVR4_SHARED_LIBS): Don't define.
10812 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10813 "solib.h".
10814 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10815 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10816 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10817 Don't include "i386/tm-i386.h". Include "solib.h".
10818 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10819 Don't include "i386/tm-i386.h".
10820 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10821 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10822 Include "i386/xm-i386.h".
10823 (HOST_LONG_DOUBLE_FORMAT): Remove.
10824
10825 Fix OpenBSD/i386 sigtramp recognition.
10826 * i386-tdep.h: Update copyright year.
10827 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10828 (i386bsd_sigtramp_end): New prototypes.
10829 (i386fbsd_sigtramp_start_addr): Renamed from
10830 i386fbsd_sigtramp_start.
10831 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10832 (i386obsd_sigtramp_start_addr): Renamed from
10833 i386obsd_sigtramp_start.
10834 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10835 * i386bsd-tdep.c: Update copyright year.
10836 (i386bsd_pc_in_sigtramp): Make public.
10837 * i386fbsd-nat.c: Update copyright year.
10838 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10839 * i386fbsd-tdep.c: Update copyright year.
10840 (i386fbsd_sigtramp_start_addr): Renamed from
10841 i386fbsd_sigtramp_start.
10842 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10843 (i386fbsdaout_init_abi): Adjust for renamed variables.
10844 * i386obsd-nat.c: Update copyright year.
10845 (_initialize_i386obsd_nat): Adjust for renamed variables.
10846 * i386obsd-tdep.c: Include "target.h".
10847 (i386obsd_page_size): New variable.
10848 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10849 (i386obsd_sigtramp_end): New functions.
10850 (i386obsd_sigtramp_start_addr): Renamed from
10851 i386obsd_sigtramp_start.
10852 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10853 (i386obsd_init_abi): Adjust for renamed variables. Set
10854 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10855 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10856
10857 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10858 trampoline change in OpenBSD kernel.
10859
10860 * amd64-nat.c: Update copyright year.
10861 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10862 architecture from REGCACHE.
10863
10864 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10865 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10866
10867 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10868
10869 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10870 i[34567]86-*-openbsd3.[0-3].
10871 * config/i386/obsdaout.mh: New file.
10872
10873 * config/i386/obsd.mh (MH_FLAGS): Remove.
10874
10875 Fix PR build/1549.
10876 * i386obsd-tdep.c: Update copyright years. Include
10877 "solib-svr4.h".
10878 (i386obsd_init_abi): Don't set regset_from_core_section here.
10879 (i386obsd_aout_init_abi): New function. Set
10880 regset_from_core_section here.
10881 (i386obsd_elf_init_abi): New function.
10882 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10883 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10884 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10885 (TM_FILE): Set to tm-nbsd.h.
10886
10887 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10888 solib-sunos.o.
10889
10890 * solib-svr4.h: Update copyright year.
10891 (svr4_ilp32_fetch_link_map_offsets)
10892 (svr4_lp64_fetch_link_map_offsets): New prototype.
10893 * solib-svr4.c: Update copyright year.
10894 (svr4_ilp32_fetch_link_map_offsets)
10895 (svr4_lp64_fetch_link_map_offsets): New function.
10896
10897 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
10898
10899 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
10900 to the partial symbol table.
10901
10902 2004-02-20 J. brobecker <brobecker@gnat.com>
10903
10904 * PROBLEMS: Add description of problem documented under gdb/1560.
10905
10906 2004-02-20 Mark Kettenis <kettenis@gnu.org>
10907
10908 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
10909 comments.
10910 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
10911 functions.
10912 (amd64obsd_init_abi): Reorder initializations. Use
10913 amd64obsd_r_reg_offset to initialize the general-purpose register
10914 set details. Set regset_from_core_section.
10915 (_initialize_amd64obsd_tdep): Rename from
10916 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
10917 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
10918 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
10919
10920 * NEWS (New native configurations): Mention OpenBSD/alpha.
10921 * configure.tgt: Add alpha*-*-openbsd*.
10922 * configure.host: Add alpha*-*-openbsd*.
10923 * alphanbsd-tdep.c: Update copyright year.
10924 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
10925
10926 2004-02-20 Andrew Cagney <cagney@redhat.com>
10927
10928 Fix PR tdep/1372.
10929 * configure.tgt: Delete target "none-*-*".
10930 * configure.host: Delete host "none-*-*".
10931 * config/none/none.mh: Delete file.
10932 * config/none/none.mt: Delete file.
10933 * config/none/xm-none.h: Delete file.
10934 * config/none/tm-none.h: Delete file.
10935 * config/none/nm-none.h: Delete file.
10936
10937 2004-02-19 Fred Fish <fnf@redhat.com>
10938
10939 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
10940 cache->uses_fp prior to setting it.
10941
10942 2004-02-19 Fred Fish <fnf@redhat.com>
10943
10944 Fix for PR breakpoint/1558.
10945 * sh-tdep.c (IS_JSR): New macro.
10946 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
10947
10948 2004-02-19 Jim Blandy <jimb@redhat.com>
10949
10950 * findvar.c (value_from_register): Doc fix.
10951
10952 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10953
10954 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10955 type being greater than sizeof of host's LONGEST. Always use
10956 unpack_long() unless format 'f' chosen.
10957
10958 2004-02-19 Joel Brobecker <brobecker@gnat.com>
10959
10960 Committed by Elena Zannoni <ezannoni@redhat.com>
10961
10962 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10963 contains a symbol wich is the best, non-exact match for the given
10964 pc. Update comments.
10965
10966 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
10967
10968 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10969 macro, which was part of the now removed Mach 3 port.
10970 * utils.c (request_quit): Ditto.
10971
10972 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10973
10974 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10975 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10976
10977 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10978
10979 Committed by Mark Kettenis <kettenis@gnu.org>.
10980
10981 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10982 Define.
10983
10984 2004-02-18 Andrew Cagney <cagney@redhat.com>
10985
10986 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10987 CONFIG_INSTALL and CONFIG_UNINSTALL.
10988 * configure: Re-generate.
10989 * interps.h (INTERP_TUI): Define.
10990 * Makefile.in: Update dependencies.
10991 (TUI): New macro.
10992 (tui-main.o): Specify dependencies.
10993 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10994 * tui/tui-main.c: New file.
10995
10996 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10997
10998 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10999 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11000 dependencies.
11001 * configure.host: Add x86_64-*-openbsd*.
11002 * configure.tgt: Add x86_64-*-openbsd*.
11003 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11004
11005 * tui/tui.c: Don't include <malloc.h>.
11006
11007 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11008 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11009 amd64nbsd-tdep.c.
11010
11011 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11012 static. Remove extraneous whitespace.
11013 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11014 static.
11015
11016 2004-02-17 Jim Blandy <jimb@redhat.com>
11017
11018 * findvar.c (value_from_register): Doc fix.
11019
11020 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11021
11022 Committed by Jim Blandy <jimb@redhat.com>.
11023
11024 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11025 CORE_ADDR as type for selectors. Correct types for GNU run time
11026 message lookup function to use double indirection.
11027 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11028 * objc-lang.h (lookup_child_selector): Adapt prototype.
11029
11030 * s390-nat.c (SUBOFF): New macro.
11031 (supply_gregset, fill_gregset): Use it to handle debugging
11032 of 32-bit exectuables running under a 64-bit kernel.
11033 * s390-tdep.c: Include "solib-svr4.h".
11034 (s390_svr4_fetch_link_map_offset): New function.
11035 (s390x_svr_fetch_link_map_offset): Likewise.
11036 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11037 * Makefile.in (s390-tdep.o): Update dependencies.
11038
11039 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11040 "frame-unwind.h".
11041 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11042 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11043 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11044 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11045 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11046 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11047 S390_SIGNAL_FRAMESIZE,
11048 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11049 (struct frame_extra_info): Remove.
11050 (s390_memset_extra_info): Remove.
11051 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11052 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11053 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11054 (is_rse): Renamed to ...
11055 (is_rsy): ... this. Support long displacements.
11056 (is_rxe): Renamed to ...
11057 (is_rxy): ... this. Support long displacements.
11058 (compute_x_addr): Support long displacements.
11059 (struct s390_prologue_data): New data type.
11060 (s390_on_stack): Change API to use struct s390_prologue_data.
11061 (s390_store): Reimplement.
11062 (s390_load): New function.
11063 (s390_get_signal_frame_info): Remove.
11064 (s390_get_frame_info): Remove, replace by ...
11065 (s390_analyze_prolog): ... this new function.
11066 (s390_check_function_end): Remove.
11067 (s390_function_start): Remove.
11068 (s390_frameless_function_invokation): Remove.
11069 (s390_is_sigreturn): Remove.
11070 (s390_init_frame_pc_first): Remove.
11071 (s390_init_frame_extra_info): Remove.
11072 (s390_frame_init_saved_regs): Remove.
11073 (s390_frame_saved_pc_nofix): Remove.
11074 (s390_frame_saved_pc): Remove.
11075 (s390_frame_chain): Remove.
11076 (s390_fp_regnum, s390_read_fp): Remove.
11077 (s390_pop_frame_regular, s390_pop_frame): Remove.
11078 (s390_saved_pc_after_call): Remove.
11079 (s390_skip_prologue): Reimplement.
11080 (s390_in_function_epilogue_p): Support long displacements.
11081 (struct s390_unwind_cache): New data structure.
11082 (s390_frame_unwind_cache): New function.
11083 (s390_prologue_frame_unwind_cache): Likewise.
11084 (s390_backchain_frame_unwind_cache): Likewise.
11085 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11086 (s390_frame_unwind): Define.
11087 (s390_frame_sniffer): New function.
11088 (struct s390_pltstub_unwind_cache): New data structure.
11089 (s390_pltstub_frame_unwind_cache): New function.
11090 (s390_pltstub_frame_this_id): Likewise.
11091 (s390_pltstub_frame_prev_register): Likewise.
11092 (s390_pltstub_frame_unwind): Define.
11093 (s390_pltstub_frame_sniffer): New function.
11094 (struct s390_sigtramp_unwind_cache): New data structure.
11095 (s390_sigtramp_frame_unwind_cache): New function.
11096 (s390_sigtramp_frame_this_id): Likewise.
11097 (s390_sigtramp_frame_prev_register): Likewise.
11098 (s390_sigtramp_frame_unwind): Define.
11099 (s390_sigtramp_frame_sniffer): New function.
11100 (s390_frame_base_address, s390_local_base_address): New functions.
11101 (s390_frame_base): Define.
11102 (s390_unwind_pc, s390_unwind_sp): New function.
11103 (s390_push_dummy_call): Use new frame base location.
11104 (s390_unwind_dummy_id): Likewise.
11105 (s390_gdbarch_init): Remove calls to:
11106 set_gdbarch_frameless_function_invocation,
11107 set_gdbarch_deprecated_init_frame_pc,
11108 set_gdbarch_deprecated_frame_chain,
11109 set_gdbarch_deprecated_frame_init_saved_regs,
11110 set_gdbarch_deprecated_pop_frame,
11111 set_gdbarch_deprecated_init_extra_frame_info,
11112 set_gdbarch_deprecated_init_frame_pc_first,
11113 set_gdbarch_deprecated_target_read_fp,
11114 set_gdbarch_deprecated_frame_saved_pc,
11115 set_gdbarch_deprecated_saved_pc_after_call,
11116 set_gdbarch_deprecated_fp_regnum.
11117 Add calls to:
11118 set_gdbarch_in_solib_call_trampoline,
11119 frame_unwind_append_sniffer,
11120 frame_base_set_default,
11121 set_gdbarch_unwind_pc,
11122 set_gdbarch_unwind_sp.
11123 * Makefile.in (s390-tdep.o): Update dependencies.
11124
11125 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11126 (S390_STACK_FRAME_OVERHEAD): Remove.
11127 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11128 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11129 (s390_promote_integer_argument): Remove.
11130 (s390_cannot_extract_struct_value_address): Remove.
11131 (s390_use_struct_convention, s390_store_struct_return): Remove.
11132 (s390_extract_return_value, s390_store_return_value): Remove.
11133 (s390_return_value_convention, s390_return_value): New functions.
11134 (is_float_singleton): Handle typedefs.
11135 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11136 Remove, replace by ...
11137 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11138 s390_function_arg_integer): ... these new functions.
11139 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11140 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11141 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11142 Fill in tdep->abi.
11143 Remove calls to:
11144 set_gdbarch_deprecated_store_struct_return,
11145 set_gdbarch_deprecated_extract_return_value,
11146 set_gdbarch_deprecated_store_return_value,
11147 set_gdbarch_use_struct_convention,
11148 set_gdbarch_extract_struct_value_address,
11149 set_gdbarch_deprecated_pc_in_call_dummy,
11150 set_gdbarch_deprecated_push_arguments,
11151 set_gdbarch_deprecated_save_dummy_frame_tos,
11152 set_gdbarch_deprecated_push_return_address,
11153 set_gdbarch_deprecated_sizeof_call_dummy_words,
11154 set_gdbarch_deprecated_call_dummy_words,
11155 set_gdbarch_deprecated_dummy_write_sp.
11156 Add calls to:
11157 set_gdbarch_push_dummy_call,
11158 set_gdbarch_unwind_dummy_id,
11159 set_gdbarch_return_value.
11160
11161 * config/s390/nm-linux.h: Update comments.
11162 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11163 (STOPPED_BY_WATCHPOINT): Redefine.
11164 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11165 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11166 (s390_stopped_by_watchpoint): Likewise.
11167 (watch_area_cnt): Remove.
11168 * s390-nat.c: Update comments.
11169 (watch_area): Remove typedef.
11170 Global replace watch_area by struct watch_area.
11171 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11172 (s390_stopped_by_watchpoint): Remove pid argument,
11173 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11174 (s390_fix_watch_points): Remove pid argument,
11175 use s390_inferior_tid. Recompute area spanned by watchpoints.
11176 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11177 argument. Reimplement.
11178
11179 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11180 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11181 (FETCH_INFERIOR_REGISTERS): Define.
11182 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11183 core-regset.o.
11184 * config/s390/s390x.mt: Remove.
11185 * config/s390/tm-s390.h: Remove.
11186 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11187 (TARGET_ELF64): Remove.
11188 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11189 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11190 s390*-*-* case; always set gdb_target to s390.
11191 * regformats/reg-s390.dat: Remove control registers.
11192 * regformats/reg-s390x.dat: Likewise.
11193 * s390-tdep.h: New file.
11194 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11195 Include "inferior.h" and "s390-tdep.h".
11196 Remove private definition of offsetof.
11197 (s390_register_u_addr): Remove.
11198 (regmap_gregset, regmap_fpregset): Define.
11199 (supply_gregset, fill_gregset): Reimplement.
11200 (supply_fpregset, fill_fpregset): Likewise.
11201 (s390_inferior_tid): New function.
11202 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11203 (fetch_inferior_registers, store_inferior_registers): Likewise.
11204 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11205 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11206 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11207 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11208 (struct gdbarch_tdep): Define.
11209 (struct s390_register_info): Define.
11210 (s390_register_info): New variable.
11211 (s390_register_name): Reimplement.
11212 (s390_register_type): New function.
11213 (s390_register_raw_size, s390x_register_raw_size): Remove.
11214 (s390_cannot_fetch_register): Remove.
11215 (s390_register_byte): Remove.
11216 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11217 (s390_dwarf_regmap): New variable.
11218 (s390_dwarf_reg_to_regnum): New function.
11219 (s390_stab_reg_to_regnum): Remove.
11220 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11221 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11222 (s390_convert_register_p): Likewise.
11223 (s390_register_to_value, s390_value_to_register): Likewise.
11224 (s390_register_reggroup_p): Likewise.
11225 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11226 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11227 (s390_supply_regset, s390_regset_from_core_section): New functions.
11228 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11229 (S390_FPR_SIZE): Likewise.
11230 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11231 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11232 (S390_NUM_GPRS): Move here from tm-s390.h.
11233 (S390_NUM_FPRS): Likewise.
11234 (s390_in_function_epilogue_p): New function.
11235 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11236 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11237 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11238 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11239 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11240 Remove calls to:
11241 set_gdbarch_deprecated_max_register_raw_size,
11242 set_gdbarch_deprecated_max_register_virtual_size,
11243 set_gdbarch_deprecated_register_byte,
11244 set_gdbarch_cannot_fetch_register,
11245 set_gdbarch_cannot_store_register,
11246 set_gdbarch_deprecated_register_size,
11247 set_gdbarch_deprecated_register_raw_size,
11248 set_gdbarch_deprecated_register_virtual_size,
11249 set_gdbarch_deprecated_register_virtual_type,
11250 set_gdbarch_deprecated_register_bytes.
11251 Add calls to:
11252 set_gdbarch_num_pseudo_regs,
11253 set_gdbarch_register_type,
11254 set_gdbarch_convert_register_p,
11255 set_gdbarch_register_to_value,
11256 set_gdbarch_value_to_register,
11257 set_gdbarch_register_reggroup_p,
11258 set_gdbarch_regset_from_core_section,
11259 set_gdbarch_pseudo_register_read,
11260 set_gdbarch_pseudo_register_write,
11261 set_gdbarch_in_function_epilogue_p.
11262 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11263 (s390_tdep_h): New variable.
11264
11265 2004-02-17 Jim Blandy <jimb@redhat.com>
11266
11267 * findvar.c (value_from_register): If the type has no length, just
11268 return an acceptable value --- don't report an internal error.
11269
11270 * stabsread.c (read_type): If we find any type numbers that are
11271 forward references, complain if the references aren't resolved by
11272 the time we're finished reading.
11273 (cleanup_undefined_types): Make error message more appropriate for
11274 a complaint.
11275
11276 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11277
11278 * Makefile.in (defs_h): Remove dependency on progress_h.
11279 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11280 progress.h.
11281 * main.c (captured_main): Delete use of START_PROGRESS and
11282 END_PROGRESS.
11283
11284 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11285
11286 * objfiles.c (terminate_minimal_symbol_table): Add back
11287 initialization of MSYMBOL_TYPE.
11288
11289 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11290
11291 Committed by Andrew Cagney.
11292 * Makefile.in (ia64_tdep_h): New macro.
11293 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11294 (ia64-tdep.o): Likewise.
11295 * ia64-tdep.h: New file.
11296 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11297 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11298 (ia64_aix_sigcontext_register_address): Likewise.
11299 (ia64_linux_getunwind_table): Delete declaration.
11300 * ia64-linux-tdep.c: Likewise.
11301
11302 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11303
11304 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11305 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11306 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11307
11308 2004-02-17 Andrew Cagney <cagney@redhat.com>
11309
11310 * symtab.c (skip_prologue_using_sal): New function.
11311 * symtab.h (skip_prologue_using_sal): Declare.
11312 * frv-tdep.c: Include "symtab.h".
11313 (skip_prologue_using_sal): Delete function.
11314 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11315 * rs6000-tdep.c (refine_prologue_limit): Mention
11316 skip_prologue_using_sal.
11317 * ia64-tdep.c (refine_prologue_limit): Ditto.
11318 * Makefile.in: Update dependencies.
11319
11320 2004-02-16 Andrew Cagney <cagney@redhat.com>
11321
11322 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11323 START_INFERIOR_TRAPS_EXPECTED.
11324 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11325 START_INFERIOR_TRAPS_EXPECTED.
11326 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11327 Delete macro.
11328 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11329 macro, moved to "nm-osf.h". Update copyright.
11330 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11331 update copyright.
11332
11333 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11334 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11335 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11336 frameless_look_for_prologue.
11337 * frame.h (legacy_frameless_look_for_prologue): Rename
11338 frameless_look_for_prologue.
11339 * gdbarch.h, gdbarch.c: Re-generate.
11340 * sh64-tdep.c (sh64_gdbarch_init): Update.
11341 * sh-tdep.c (sh_gdbarch_init): Update.
11342 * s390-tdep.c (s390_gdbarch_init): Update.
11343 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11344 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11345 * m68k-tdep.c (m68k_gdbarch_init): Update.
11346 (delta68_frame_args_address): Update.
11347 * m32r-tdep.c (m32r_gdbarch_init): Update.
11348 * hppa-tdep.c (hppa_gdbarch_init): Update.
11349 * h8300-tdep.c (h8300_gdbarch_init): Update.
11350 * frv-tdep.c (frv_gdbarch_init): Update.
11351 (frv_frameless_function_invocation): Update.
11352 * cris-tdep.c (cris_gdbarch_init): Update.
11353 (cris_frameless_function_invocation): Update.
11354 * avr-tdep.c (avr_gdbarch_init): Update.
11355 * arm-tdep.c (arm_gdbarch_init): Update.
11356 * stack.c (frame_info): Update, call predicate.
11357 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11358 * frame.c (legacy_get_prev_frame): Update, call predicate..
11359 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11360 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11361 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11362 invocation.
11363 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11364 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11365 * vax-tdep.c (vax_gdbarch_init): Ditto.
11366
11367 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11368 function.
11369
11370 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11371
11372 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11373 initializations.
11374
11375 2004-02-16 Andrew Cagney <cagney@redhat.com>
11376
11377 * tui/tui-windata.c: Include "gdb_string.h".
11378 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11379 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11380 * Makefile.in: Update dependencies.
11381
11382 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11383
11384 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11385 * infrun.c: Include "gdb_assert.h".
11386 (singlestep_ptid, saved_singlestep_ptid)
11387 (stepping_past_singlestep_breakpoint): New variables.
11388 (resume): Set singlestep_ptid. Check for singlestep thread
11389 hop.
11390 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11391 (handle_inferior_event): Handle singlestep thread hop.
11392
11393 2004-02-16 Andrew Cagney <cagney@redhat.com>
11394
11395 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11396 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11397 (dwarf2_frame_init_reg): Ditto.
11398
11399 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11400 suggested by Joshua Neuheisel
11401
11402 * configure.in: Always check for curses, including pdcurses.
11403 Warn, instead of error, when no curses are found. Enable TUI when
11404 curses is available.
11405 * configure: Re-generate.
11406
11407 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11408
11409 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11410 sh_sh4_register_convert_to_virtual.
11411 (sh_register_convert_to_raw): Rename from
11412 sh_sh4_register_convert_to_raw.
11413 (sh_pseudo_register_read): Accomodate above name change.
11414 (sh_pseudo_register_write): Ditto.
11415
11416 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11417
11418 * sh-tdep.c (sh_generic_register_name): Remove.
11419 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11420
11421 2004-02-15 Andrew Cagney <cagney@redhat.com>
11422
11423 * configure.in (build_warnings): Add -Wunused-function.
11424 * configure: Re-generate.
11425
11426 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11427 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11428
11429 * procfs.c (procfs_init_inferior): Assume that
11430 START_INFERIOR_TRAPS_EXPECTED is defined.
11431 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11432 * config/ns32k/tm-nbsd.h: Delete file,
11433 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11434
11435 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11436 * config/vax/tm-vax.h: Delete file.
11437
11438 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11439 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11440 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11441 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11442 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11443 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11444 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11445
11446 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11447
11448 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11449 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11450 (struct dwarf2_frame_ops): New.
11451 (dwarf2_frame_default_init_reg): New function, based on
11452 dwarf2_frame_init_reg.
11453 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11454 (dwarf2_frame_init_reg): Call architecture-specific function.
11455 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11456 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11457 instead of dwarf2_frame_data.
11458 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11459 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11460
11461 2004-02-15 Andrew Cagney <cagney@redhat.com>
11462
11463 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11464 register_gdbarch_swap.
11465 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11466 * f-lang.c (_initialize_f_language): Update, use
11467 DEPRECATED_REGISTER_GDBARCH_SWAP.
11468 * remote.c (_initialize_remote): Ditto.
11469 * regcache.c (_initialize_regcache): Ditto.
11470 * parse.c (_initialize_parse): Ditto.
11471 * infrun.c (_initialize_infrun): Ditto.
11472 * mi/mi-main.c (_initialize_mi_main): Ditto.
11473 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11474
11475 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11476 poking .cacheable directly.
11477 * symfile.c (symfile_bfd_open): Ditto.
11478
11479 * Makefile.in: Update all dependencies.
11480
11481 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11482 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11483 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11484 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11485 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11486
11487 2004-02-14 Andrew Cagney <cagney@redhat.com>
11488
11489 * arch-utils.c (legacy_convert_register_p): Check
11490 DEPRECATED_REGISTER_CONVERTIBLE_P.
11491 * findvar.c (value_of_register): Ditto.
11492
11493 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11494 * gdbarch.h, gdbarch.c: Re-generate.
11495 * arch-utils.c (deprecated_register_convertible_not): Delete.
11496 * arch-utils.h (deprecated_register_convertible_not): Delete.
11497 * mi/mi-main.c (get_register): Update. Update copyright.
11498 * infcmd.c (default_print_registers_info): Update.
11499
11500 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11501 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11502 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11503 * gdbarch.h, gdbarch.c: Re-generate.
11504 * frame.c (deprecated_get_next_frame_hack): Delete function.
11505 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11506 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11507 Update.
11508 * infcall.c (call_function_by_hand): Update.
11509
11510 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11511
11512 * symfile.c (init_entry_point_info, entry_point_address): Move
11513 from here...
11514 * objfiles.c (init_entry_point_info, entry_point_address):..to
11515 here.
11516 * symfile.h (init_entry_point_info, entry_point_address): Remove
11517 prototypes.
11518 * objfiles.h (init_entry_point_info, entry_point_address):Add
11519 prototypes.
11520 * cris-tdep.c: Remove include of symfile.h. Add include of
11521 objfiles.h.
11522 * infcall.c: Ditto.
11523 * mcore-tdep.c: Ditto.
11524 * mn10300-tdep.c: Ditto.
11525 * sh64-tdep.c: Ditto.
11526 * v850-tdep.c: Ditto.
11527 * arm-tdep.c: Remove include of symfile.h.
11528 * blockframe.c: Ditto.
11529 * coffread.c: Ditto.
11530 * dbxread.c: Ditto.
11531 * dwarf2read.c: Ditto.
11532 * dwarfread.c: Ditto.
11533 * frv-tdep.c: Ditto.
11534 * ia64-tdep.c: Ditto.
11535 * mdebugread.c: Ditto.
11536 * mipsread.c: Ditto.
11537 * rs6000-tdep.c: Ditto.
11538 * s390-tdep.c: Ditto.
11539 * sh-tdep.c: Ditto.
11540 * xstormy16-tdep.c: Ditto.
11541 * gdbarch.sh: Remove include of symfile.h.
11542 * gdbarch.c: Regenerate.
11543 * solib-irix.c (enable_break): Use entry_point_address().
11544 Add comment about include file.
11545 * xcoffread.c: Add comment about include file.
11546 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11547 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11548 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11549 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11550 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11551
11552 2004-02-13 Andrew Cagney <cagney@redhat.com>
11553
11554 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11555 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11556 copyright.
11557 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11558
11559 2004-02-12 Fred Fish <fnf@redhat.com>
11560
11561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11562 set_gdbarch_store_return_value.
11563
11564 2004-02-12 Andrew Cagney <cagney@redhat.com>
11565
11566 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11567 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11568 (interrupt_query): Ditto.
11569 (ofunc): Delete unused variable.
11570 * cris-tdep.c (cris_abi): Delete unused function.
11571 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11572 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11573 (cris_get_asr_quick_shift_steps): Ditto.
11574 (cris_skip_prologue_frameless_p): Ditto.
11575 * arm-tdep.c (arm_push_return_address): Delete unused function.
11576 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11577 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11578 * s390-tdep.c (s390_function_start): Delete unused function.
11579
11580 2004-02-12 Andrew Cagney <cagney@redhat.com>
11581
11582 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11583 gdbarch.h, gdbarch.c: Re-generate.
11584 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11585 to generic_prologue_frameless_p.
11586 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11587 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11588
11589 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11590
11591 * mips-linux-tdep.c: Include "frame.h".
11592 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11593 (mips_linux_skip_resolver): New functions.
11594 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11595 and set_gdbarch_in_solib_call_trampoline.
11596 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11597 to after set_gdbarch_in_solib_return_trampoline. Only set the
11598 solib hooks to mips16 functions if the OS ABI is unknown.
11599 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11600 including "config/tm-linux.h".
11601 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11602 * Makefile.in (mips-linux-tdep.o): Update.
11603
11604 2004-02-11 David Carlton <carlton@kealia.com>
11605
11606 * linespec.c (decode_compound): Only look for a class symbol when
11607 considering all but the rightmost component.
11608
11609 2004-02-11 Andrew Cagney <cagney@redhat.com>
11610
11611 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11612 abi code are are separatly grouped.
11613
11614 2004-02-11 Andrew Cagney <cagney@redhat.com>
11615
11616 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11617 * gdbarch.h, gdbarch.c: Re-generate.
11618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11619 * v850-tdep.c (v850_gdbarch_init): Update.
11620 * sh64-tdep.c (sh64_gdbarch_init): Update.
11621 * sh-tdep.c (sh_gdbarch_init): Update.
11622 * s390-tdep.c (s390_gdbarch_init): Update.
11623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11624 * mips-tdep.c (mips_gdbarch_init): Update.
11625 * mcore-tdep.c (mcore_gdbarch_init): Update.
11626 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11627 * m32r-tdep.c (m32r_gdbarch_init): Update.
11628 * ia64-tdep.c (ia64_gdbarch_init): Update.
11629 * hppa-tdep.c (hppa_gdbarch_init): Update.
11630 * h8300-tdep.c (h8300_gdbarch_init): Update.
11631 * frv-tdep.c (frv_gdbarch_init): Update.
11632 * d10v-tdep.c (d10v_gdbarch_init): Update.
11633 * cris-tdep.c (cris_gdbarch_init): Update.
11634 * avr-tdep.c (avr_gdbarch_init): Update.
11635 * arm-tdep.c (arm_gdbarch_init): Update.
11636 * alpha-tdep.c (alpha_gdbarch_init): Update.
11637
11638 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11639
11640 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11641 comma.
11642 (sh_sh4al_dsp_register_name): Ditto.
11643
11644 2004-02-10 Andrew Cagney <cagney@redhat.com>
11645
11646 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11647 (mips_init_frame_pc_first): Delete function.
11648 (mips_frame_saved_pc): Delete function.
11649 (mips_frame_chain): Delete function.
11650 (mips_init_extra_frame_info): Delete function.
11651 (mips_xfer_register): Delete unused variable "reg".
11652 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11653 (mips_n32n64_return_value): Delete unused variable "reg".
11654 (mips_n32n64_return_value): Delete unused variable "pos".
11655 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11656 (mips_o32_return_value): Delete unused variable "pos".
11657 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11658 (mips_print_fp_register): Delete unused variable "namelen"
11659 (mips_print_fp_register): Delete unused variable "flt2"
11660 (get_frame_pointer): Delete function.
11661 (cached_proc_desc): Delete static variable.
11662 (mips_pop_frame): Delete function.
11663 (mips_find_saved_regs): Delete function.
11664 (mips_get_saved_register): Delete function.
11665 (mips_saved_pc_after_call): Delete function.
11666 (SIGFRAME_BASE): Delete macro.
11667 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11668 (SIGFRAME_PC_OFF): Delete macro.
11669 (SIGFRAME_REGSAVE_OFF): Delete macro.
11670 (mips_dump_tdep): Do not print deleted macro definitions.
11671
11672 2004-02-10 Andrew Cagney <cagney@redhat.com>
11673
11674 * Makefile.in (SFILES): Remove explictly listed tui files.
11675 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11676
11677 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11678
11679 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11680 to use paddr functions to format ia64 addresses and long values.
11681 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11682 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11683 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11684 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11685 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11686
11687 2004-02-10 Andrew Cagney <cagney@redhat.com>
11688
11689 * defs.h: Do not include "tui.h".
11690 * gdb_curses.h: New file.
11691 * tui/tui-hooks.h: New file.
11692 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11693 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11694 (tui_initialize_io): Delete declaration.
11695 (tui_initialize_readline: Delete redundant declaration.
11696 (struct tui_point): Delete definition.
11697 * tui/tui-data.h (struct tui_point): Define.
11698 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11699 * utils.c: Include "tui/tui.h".
11700 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11701 * printcmd.c [TUI]: Include "tui/tui.h".
11702 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11703 * tui/tui-command.c: Include "gdb_curses.h".
11704 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11705 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11706 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11707 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11708 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11709 * Makefile.in: Update all dependencies.
11710 (tui_hooks_h, gdb_curses_h): Define.
11711 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11712
11713 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11714
11715 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11716 auxf2. Add comments about some other rarely used fields.
11717
11718 2004-02-10 Andrew Cagney <cagney@redhat.com>
11719
11720 * Makefile.in (init.c): Fix script removing duplicates. Problem
11721 reported by Peter Schauer.
11722
11723 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11724
11725 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11726 obstack_specify_allocation.
11727 * objfiles.c (allocate_objfile): Ditto.
11728 * solib-sunos.c (solib_add_common_symbols)
11729 (allocate_rt_common_objfile): Ditto.
11730 * symfile.c (reread_symbols): Ditto.
11731 * gdb_obstack.h: Add comment.
11732
11733 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11734
11735 * linespec.c (decode_line_1, locate_first_half)
11736 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11737 commented out code.
11738
11739 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11740
11741 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11742 obstack_free.
11743
11744 2004-02-09 Andrew Cagney <cagney@redhat.com>
11745
11746 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11747 fails, try find_pc_section. Fix PR c++/1267.
11748 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11749 instead of find_pc_mapped_section.
11750 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11751 not default to the section containing PC. Fix PR symtab/1519.
11752
11753 2004-02-09 Andrew Cagney <cagney@redhat.com>
11754
11755 * Makefile.in (mips-tdep.o): Update dependencies.
11756 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11757 "trad-frame.h".
11758 (mips_unwind_pc): Return the pseudo PC register.
11759 (mips_unwind_dummy_id): New function.
11760 (mips16_fetch_instruction): New function.
11761 (mips32_fetch_instruction): New function.
11762 (struct mips_frame_cache): Define.
11763 (mips_mdebug_frame_cache): New function.
11764 (mips_mdebug_frame_this_id): New function.
11765 (mips_mdebug_frame_prev_register): New function.
11766 (mips_mdebug_frame_unwind): Define.
11767 (mips_mdebug_frame_sniffer): New function.
11768 (mips_mdebug_frame_base_address): New function.
11769 (mips_mdebug_frame_base): Define.
11770 (mips_mdebug_frame_base_sniffer): New function.
11771 (mips_gdbarch_init): Append unwind and base sniffers. Set
11772 unwind_dummy_id.
11773
11774 2004-02-08 Andrew Cagney <cagney@redhat.com>
11775
11776 * frame.c: Print both the register number and name.
11777
11778 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11779 and a sed into a single sed. Make .c and .o patterns more robust.
11780 (OBS): Delete.
11781 (INIT_FILES): Replace OBS with COMMON_OBS.
11782 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11783
11784 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11785
11786 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11787 the PT_WCOOKIE request.
11788
11789 2004-02-08 Andrew Cagney <cagney@redhat.com>
11790
11791 * mips-tdep.c (mips_unwind_pc): New function.
11792 (mips_gdbarch_init): Set mips_unwind_pc.
11793
11794 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11795 (get_frame_id): Allow the UNKNOWN_FRAME.
11796 (frame_register_unwind, get_frame_type): Ditto.
11797
11798 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11799 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11800 unwind_dummy_id indicates a legacy frame.
11801
11802 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11803 * configure: Re-generate.
11804
11805 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11806 methods.
11807
11808 2004-02-08 Andrew Cagney <cagney@redhat.com>
11809
11810 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11811 makefile macro.
11812 * configure: Re-generate.
11813 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11814 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11815 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11816 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11817 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11818 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11819 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11820 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11821 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11822 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11823
11824 2004-02-07 Andrew Cagney <cagney@redhat.com>
11825
11826 * Makefile.in: Update all dependencies.
11827
11828 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11829 * configure: Re-generate.
11830 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11831 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11832 (COMMON_OBS): Add "main.o" and "annotate.o".
11833 (ANNOTATE_OBS): Delete.
11834 (OBS): Remove ANNOTATE_OBS.
11835 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11836 CONFIG_INITS.
11837 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11838 against CONFIG_OBS and "main.o".
11839 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11840 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11841
11842 * tui/tui-command.c: Include "gdb_string.h", delete register
11843 attribute, use ISO-C function signatures.
11844 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11845 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11846 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11847 * tui/tui.c: Ditto.
11848
11849 * tui/tui-command.c: Change variable and function names to lower
11850 case.
11851 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11852 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11853 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11854 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11855 * tui/tui-winsource.c, tui/tui.c: Ditto.
11856
11857 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11858
11859 * buildsym.c (free_pending_blocks, finish_block)
11860 (record_pending_block, make_blockvector, end_symtab): Replace
11861 symbol_obstack with objfile_obstack.
11862 * coffread.c (process_coff_symbol, coff_read_struct_type)
11863 (coff_read_enum_type): Ditto.
11864 * cp-namespace.c (initialize_namespace_symtab)
11865 (check_one_possible_namespace_symbol): Ditto.
11866 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11867 (dwarf2_symbol_mark_computed): Ditto.
11868 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11869 * elfread.c (elf_symtab_read): Ditto.
11870 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11871 (hpread_read_enum_type, hpread_read_function_type)
11872 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11873 Ditto.
11874 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11875 (java_link_class_type): Ditto.
11876 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11877 (new_symbol): Ditto.
11878 * minsyms.c (install_minimal_symbols): Ditto.
11879 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11880 (terminate_minimal_symbol_table): Replace symbol_obstack with
11881 objfile_obstack.
11882 (free_objfile): Remove freeing of symbol_obstack.
11883 * objfiles.h: Remove symbol_obstack field.
11884 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11885 objfile_obstack.
11886 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11887 symbol_obstack.
11888 (solib_add_common_symbols): Replace symbol_obstack with
11889 objfile_obstack.
11890 * somsolib.c (som_solib_add): Ditto.
11891 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11892 (common_block_start, common_block_end): Ditto.
11893 * symfile.c (reread_symbols): Remove freeing and init of
11894 symbol_obstack.
11895 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
11896 * symfile.h: Update comment.
11897 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
11898 stats printing.
11899 * symtab.c (symbol_set_names): Replace symbol_obstack with
11900 objfile_obstack.
11901 * symtab.h (struct general_symbol_info, struct minimal_symbol):
11902 Update comments.
11903 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
11904 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
11905 objfile_obstack.
11906
11907 2004-02-07 Andrew Cagney <cagney@redhat.com>
11908
11909 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
11910 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
11911 fields and variables.
11912 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
11913 (m_beInvisible): Delete macro.
11914 * tui/tui-data.h: Fix case case fields and variables.
11915 (m_genWinPtrIsNull): Delete macro.
11916 (tui_win_list): Rename winList.
11917 (TUI_SRC_WIN): Rename srcWin.
11918 (TUI_DISASM_WIN): Rename disassemWin.
11919 (TUI_DATA_WIN): Rename dataWin.
11920 (TUI_CMD_WIN): Rename cmdWin.
11921 (m_genWinPtrNotNull): Delete macro.
11922 (m_winPtrIsNull): Delete macro.
11923 (m_winPtrNotNull): Delete macro.
11924 (tui_win_is_source_type): Replace m_winIsSourceType
11925 (tui_win_is_auxillary): Replace m_winIsAuzillary.
11926 (tui_win_has_locator): Replace m_hasLocator.
11927 (tui_set_win_highlight): Replace m_setWinHighlightOn and
11928 m_setWinHighlightOff.
11929 * tui/tui-data.c: Update references.
11930 (tui_win_is_source_type, tui_set_win_highlight): New functions.
11931 (tui_win_has_locator, tui_win_is_auxillary): New functions.
11932 * tui/tui-command.c, tui/tui-disasm.c: Update references.
11933 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
11934 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
11935 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11936 * tui/tui-winsource.c, tui/tui.c: Ditto.
11937
11938 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11939
11940 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
11941 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
11942 StackGhost.
11943
11944 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
11945 variable `i6' to `i7'.
11946 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11947
11948 2004-02-07 Andrew Cagney <cagney@redhat.com>
11949
11950 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11951 (TuiPoint, TuiPointPtr): Ditto.
11952 (TuiStatus, TuiStatusPtr): Ditto.
11953 (TuiWinType, TuiWinTypePtr): Ditto.
11954 (struct tui_point): Rename _TuiPoint.
11955 (tui_get_low_disassembly_address): Rename
11956 tuiGetLowDisassemblyAddress.
11957 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11958 (tuiFree): Delete declaration.
11959 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11960 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11961 * tui/tui.c (tuiFree): Delete function.
11962 * cli/cli-cmds.c (disassemble_command): Update references.
11963 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11964 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11965 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11966 * tui/tui-winsource.c: Ditto.
11967
11968 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11969
11970 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11971 coffstab_build_psymtabs, elfstab_build_psymtabs)
11972 (stabsect_build_psymtabs): Replace psymbol_obstack with
11973 objfile_obstack.
11974 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11975 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11976 Ditto.
11977 * dwarfread.c (scan_compilation_units): Ditto.
11978 * elfread.c (elfstab_offset_sections): Ditto.
11979 * hppa-tdep.c (read_unwind_info): Ditto.
11980 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11981 (hpread_end_psymtab): Ditto.
11982 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11983 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11984 Ditto.
11985 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11986 * objfiles.c (add_to_objfile_sections)
11987 (build_objfile_section_table): Ditto.
11988 (allocate_objfile): Remove init of psymbol_obstack.
11989 (free_objfile): Remove freeing of psymbol_obstack.
11990 * objfiles.h (struct objfile): Remove field
11991 psymbol_obstack. Update comments.
11992 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11993 psymbol_obstack with objfile_obstack.
11994 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11995 psymbol_obstack.
11996 * somread.c (som_symfile_offsets, init_import_symbols)
11997 (init_export_symbols): Replace psymbol_obstack with
11998 objfile_obstack.
11999 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12000 * symfile.c (default_symfile_offsets, syms_from_objfile)
12001 (reread_symbols): Remove freeing and init of psymbol_obstack.
12002 (cashier_psymtab): Update comment.
12003 * symmisc.c (print_objfile_statistics): Don't report stats for
12004 psymbol obstack.
12005 * symtab.h (struct general_symbol_info, struct partial_symtab):
12006 Update comments.
12007 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12008 (xcoff_symfile_offsets): Replace psymbol_obstack with
12009 objfile_obstack.
12010
12011 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12012
12013 * objfiles.h (struct objfile): Add objfile_obstack field.
12014 Remove type_obstack field.
12015
12016 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12017 read_structure_scope read_enumeration, new_symbol): Replace
12018 type_obstack with objfile_obstack.
12019 * dwarfread.c (struct_type, enum_type): Ditto.
12020 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12021 (lookup_fundamental_type): Ditto.
12022 * gdbtypes.h (TYPE_ALLOC): Ditto.
12023 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12024 (hpread_read_doc_function_type, hpread_read_struct_type)
12025 (fix_static_member_physnames, hpread_read_array_type)
12026 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12027 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12028 (java_link_class_type): Ditto.
12029 * mdebugread.c (parse_type): Ditto.
12030 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12031 * solib-sunos.c (solib_add_common_symbols): Ditto.
12032 * stabsread.c (define_symbol, read_type, read_member_functions,
12033 read_cpp_abbrev, read_one_struct_field): Ditto.
12034 * symfile.c (reread_symbols): Ditto.
12035 * symmisc.c (print_objfile_statistics): Ditto.
12036
12037 2004-02-07 Andrew Cagney <cagney@redhat.com>
12038
12039 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12040 (tui_exec_info_content): Rename TuiExecInfoContent.
12041 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12042 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12043 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12044 (TuiList, TuiListPtr): Ditto.
12045 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12046 (TuiDataType, TuiDataTypePtr): Ditto.
12047 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12048 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12049 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12050 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12051 (TuiDataElement, TuiDataElementPtr): Ditto.
12052 (TuiWinElement, TuiWinElementPtr): Ditto.
12053 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12054 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12055 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12056 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12057 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12058 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12059 * tui/tui-command.c, tui/tui-data.c: Update references.
12060 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12061 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12062 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12063 * tui/tui-winsource.c, tui/tui.c: Ditto.
12064
12065 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12066
12067 * dwarf2-frame.h: Update copyright.
12068 (enum dwarf2_frame_reg_rule): New.
12069 (struct dwarf2_frame_state_reg): New.
12070 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12071 * dwarf2-frame.c: Update copyright.
12072 (enum dwarf2_reg_rule): Remove.
12073 (struct dwarf2_frame_state): Remove defenition of `struct
12074 dwarf2_frame_state_reg'.
12075 (read_reg): Call get_frame_arch to get the architecture instead of
12076 using CURRENT_GDBARCH.
12077 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12078 DWARF2_FRAME_.
12079 (dwarf2_frame_init_reg): New function.
12080 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12081 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12082 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12083 tags with DWARF2_FRAME_.
12084 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12085 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12086 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12087
12088 2004-02-06 Andrew Cagney <cagney@redhat.com>
12089
12090 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12091 (enum tui_data_type): Rename _TuiDataType.
12092 (struct tui_layout_def): Rename _TuiLayoutDef.
12093 (struct tui_source_element): Rename _TuiSourceElement.
12094 (struct tui_data_element): Rename _TuiDataElement.
12095 (struct tui_command_element): Rename _TuiCommandElement.
12096 (struct tui_locator_element): Rename _TuiLocatorElement.
12097 (union tui_which_element): Define.
12098 (struct tui_win_element): Rename _TuiWinElement.
12099 (struct tui_data_info): Rename _TuiDataInfo.
12100 (struct tui_source_info): Rename _TuiSourceInfo.
12101 (struct tui_command_info): Rename _TuiCommandInfo.
12102 (tui_initialize_static_data): Rename initializeStaticData.
12103 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12104 (tui_alloc_win_info): Rename allocWinInfo.
12105 (tui_init_generic_part): Rename initGenericPart.
12106 (tui_init_win_info): Rename initWinInfo.
12107 (tui_alloc_content): Rename allocContent.
12108 (tui_add_content_elements): Rename addContentElements.
12109 (tui_init_content_element): Rename initContentElement.
12110 (tui_free_window): Rename freeWindow.
12111 (tui_free_win_content): Rename freeWinContent.
12112 (tui_free_data_content): Rename freeDataContent.
12113 (tui_free_all_source_wins_content): Rename
12114 freeAllSourceWinsContent.
12115 (tui_del_window): Rename tuiDelWindow.
12116 (tui_del_data_windows): Rename tuiDelDataWindows.
12117 (tui_partial_win_by_name): Rename partialWinByName.
12118 (tui_win_name): Rename winName.
12119 (tui_current_layout): Rename currentLayout.
12120 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12121 (tui_term_height): Rename termHeight.
12122 (tui_set_term_height_to): Rename setTermHeightTo.
12123 (tui_term_width): Rename termWidth.
12124 (tui_set_term_width_to): Rename setTermWidthTo.
12125 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12126 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12127 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12128 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12129 (tui_source_windows): Rename sourceWindows.
12130 (tui_clear_source_windows): Rename clearSourceWindows.
12131 (tui_clear_source_windows_detail): Rename
12132 clearSourceWindowsDetail.
12133 (tui_clear_win_detail): Rename clearWinDetail.
12134 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12135 (tui_default_tab_len): Rename tuiDefaultTabLen.
12136 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12137 (tui_win_with_focus): Rename tuiWinWithFocus.
12138 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12139 (tui_layout_def): Rename tuiLayoutDef.
12140 (tui_win_resized): Rename tuiWinResized.
12141 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12142 (tui_next_win): Rename tuiNextWin.
12143 (tui_prev_win): Rename tuiPrevWin.
12144 (tui_add_to_source_windows): Rename addToSourceWindows.
12145 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12146 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12147 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12148 * tui/tui.c, tui/tui-data.c: Ditto.
12149 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12150 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12151
12152 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12153 (struct symtab): Declare.
12154 (tui_set_source_content): Rename tuiSetSourceContent.
12155 (tui_show_symtab_source): Rename tuiShowSource.
12156 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12157 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12158 * tui/tui-source.c: Update copyright. Update references.
12159 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12160 * tui/tui-stack.c: Update references.
12161
12162 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12163 (struct tui_win_info): Declare.
12164 (tui_scroll_forward): Rename tuiScrollForward.
12165 (tui_scroll_backward): Rename tuiScrollBackward.
12166 (tui_scroll_left): Rename tuiScrollLeft.
12167 (tui_scroll_right): Rename tuiScrollRight.
12168 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12169 (tui_resize_all): Rename tuiResizeAll.
12170 (tui_refresh_all_win): Rename tuiRefreshAll.
12171 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12172 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12173 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12174 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12175
12176 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12177 (tui_erase_data_content): Rename tuiEraseDataContent.
12178 (tui_display_all_data): Rename tuiDisplayAllData.
12179 (tui_check_data_values): Rename tuiCheckDataValues.
12180 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12181 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12182 (tui_first_data_element_no_in_line): Rename
12183 tuiFirstDataElementNoInLine.
12184 (tui_delete_data_content_windows): Rename
12185 tuiDeleteDataContentWindows.
12186 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12187 (tui_display_data_from): Rename tuiDisplayDataFrom.
12188 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12189 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12190 * tui/tui-win.c, tui/tui-regs.c: Update references.
12191 * tui/tui-layout.c, tui/tui.c: Update references.
12192
12193 * tui/tui-wingeneral.h: Update copyright.
12194 (m_allBeVisible): Delete macro.
12195 (m_allBeInvisible): Delete macro.
12196 (struct tui_gen_win_info): Declare.
12197 (struct tui_win_info): Declare.
12198 (tui_unhighlight_win): Rename unhighlightWin.
12199 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12200 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12201 (tui_make_window): Rename makeWindow.
12202 (tui_copy_win): Rename copyWin.
12203 (tui_box_win): Rename boxWin.
12204 (tui_highlight_win): Rename highlightWin.
12205 (tui_check_and_display_highlight_if_needed): Rename
12206 checkAndDisplayHighlightIfNeeded.
12207 (tui_refresh_all): Rename refreshAll.
12208 (tui_delete_win): Rename tuiDelwin.
12209 (tui_refresh_win): Rename tuiRefreshWin.
12210 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12211 (tui_make_visible, tui_make_invisible): New functions.
12212 (tui_make_all_visible, tui_make_all_invisible): New functions.
12213 (make_all_visible): Rename makeAllVisible.
12214 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12215 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12216 * tui/tui-windata.c, tui/tui-win.c: Update references.
12217 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12218 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12219
12220 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12221
12222 * proc-api.c (write_with_trace): Initialize local variable to
12223 silence compiler warning.
12224
12225 2004-02-06 Andrew Cagney <cagney@redhat.com>
12226
12227 * tui/tui-source.h: Do not include "defs.h".
12228 (struct tui_win_info): Declare.
12229 (tui_set_source_content_nil): Declare.
12230 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12231 (union tui_line_or_address): Rename _TuiLineOrAddress.
12232 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12233 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12234 (tui_update_source_window_as_is): Rename
12235 tuiUpdateSourceWindowAsIs.
12236 (tui_update_source_windows_with_addr): Rename
12237 tuiUpdateSourceWindowsWithAddr.
12238 (tui_update_source_windows_with_line): Rename
12239 tuiUpdateSourceWindowsWithLine.
12240 (tui_clear_source_content): Rename tuiClearSourceContent.
12241 (tui_erase_source_content): Rename tuiEraseSourceContent.
12242 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12243 (tui_show_source_content): Rename tuiShowSourceContent.
12244 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12245 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12246 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12247 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12248 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12249 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12250 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12251 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12252 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12253 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12254 (struct tui_win_info): Declare.
12255 * tui/tui-stack.c: Update references.
12256 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12257 * tui/tui-win.c, tui/tui-source.c: Ditto.
12258 * tui/tui.c, tui/tui-disasm.c: Ditto.
12259
12260 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12261
12262 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12263 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12264
12265 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12266
12267 * infrun.c (handle_inferior_event): Allow for breakpoint
12268 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12269 and SIGEMT. Update comments.
12270 * NEWS (Revised SPARC target): Mention support for non-executable
12271 stack.
12272
12273 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12274
12275 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12276 * inftarg.c: Update copyright year.
12277 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12278 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12279 (sparc_xfer_wcookie): New function.
12280 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12281 * Makefile.in (sparc-nat.o): Update dependencies.
12282 * config/sparc/nm-nbsd.h: Include "target.h".
12283 (NATIVE_XFER_WCOOKIE): New define.
12284 (sparc_xfer_wcookie): New prototype.
12285
12286 2004-02-04 Andrew Cagney <cagney@redhat.com>
12287
12288 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12289 SYSCALL_TRAP function.
12290 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12291
12292 2004-02-04 Andrew Cagney <cagney@redhat.com>
12293 Daniel Jacobowitz <drow@mvista.com>
12294
12295 * objfiles.h: Delete comments refering to inside_entry_func and
12296 DEPRECATED_FRAME_CHAIN_VALID.
12297 * defs.h (inside_entry_func): Update prototype..
12298 * blockframe.c (inside_entry_func): Rename to
12299 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12300 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12301
12302 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12303
12304 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12305 outside of #ifdef SOLIB_ADD region.
12306 (do_restore_lang_radix_cleanup): Ditto.
12307 (resolve_pending_breakpoint): Ditto.
12308
12309 2004-02-03 Andrew Cagney <cagney@redhat.com>
12310
12311 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12312 (process_note_abi_tag_sections): Delete unused function.
12313 (ia64_read_fp): Delete unused function.
12314 (gdbarch_extract_struct_value_address): Delete declaration.
12315
12316 2004-02-02 Andrew Cagney <cagney@redhat.com>
12317
12318 * vax-tdep.c (vax_frame_chain): Delete call to
12319 deprecated_inside_entry_file.
12320 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12321
12322 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12323
12324 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12325 column that's "empty" or "same value" when eliminating REG_RA
12326 rules.
12327
12328 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12329
12330 * NEWS: Add information about new pending breakpoint support.
12331
12332 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12333
12334 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12335 and pending fields for pending breakpoint support.
12336 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12337 (condition_command): Only parse condition if not a pending
12338 breakpoint.
12339 (print_one_breakpoint): Add support for pending breakpoints.
12340 (describe_other_breakpoints): Add checks to verify we are not
12341 dealing with pending breakpoints.
12342 (check_duplicates): Don't check pending breakpoints.
12343 (set_raw_breakpoint): Initialize pending flag.
12344 (do_restore_lang_radix_cleanup): New cleanup routine.
12345 (resolve_pending_breakpoint): New function.
12346 (re_enable_breakpoints_in_shlibs): Try and resolve any
12347 pending breakpoints via resolve_pending_breakpoint.
12348 (mention): Add pending breakpoint support.
12349 (parse_breakpoint_sals): Add new parameter to pass to
12350 decode_line_1 to indicate silent errors when files or functions
12351 are not found. Change all callers.
12352 (do_captured_parse_breakpoint): New function.
12353 (break_command_1): Change prototype to return an rc value and to
12354 take an optional pending breakpoint pointer. Support creating
12355 a pending breakpoint if a "not found" form of error occurs when
12356 parsing the breakpoint. Also support resolving an existing pending
12357 breakpoint and be silent if the resolution fails.
12358 (create_breakpoints): Change prototype to take pending breakpoint
12359 pointer. When resolving a pending breakpoint, use the new pointer
12360 to provide a conditional or commands added by the end-user.
12361 (delete_breakpoint): Add appropriate check for pending.
12362 (breakpoint_re_set_one): Ditto.
12363 (do_enable_breakpoint): Ditto.
12364
12365 2004-02-02 David Carlton <carlton@kealia.com>
12366
12367 * valops.c (enum oload_classification): New.
12368 (find_overload_match): Break implementation into separate
12369 functions; delete #if 0'd code; look for symbols within
12370 namespaces.
12371 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12372 (find_oload_champ,oload_method_static,classify_oload_match): New.
12373 * cp-support.h: Add declaration for cp_func_name; update
12374 declaration for make_symbol_overload_list.
12375 * cp-support.c (cp_func_name): New.
12376 (overload_list_add_symbol): Fix comment, use
12377 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12378 (make_symbol_overload_list): Take a function name and a namespace
12379 instead of a symbol; change implementation.
12380 (make_symbol_overload_list_using): New.
12381 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12382
12383 2004-02-02 Fred Fish <fnf@redhat.com>
12384
12385 * main.c (gdb_stdtarg): Move definition to group with other
12386 gdb_stdtarg definitions and update copyright years.
12387 * remote-sim.c (gdb_os_write_stderr): Write output to
12388 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12389 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12390 gdb_stderr stream and update copyright years.
12391
12392 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12393
12394 * Makefile.in (mips-linux-nat.o): Update dependencies.
12395 * mips-linux-nat.c: Include mips-tdep.h.
12396
12397 2004-02-01 Roland McGrath <roland@redhat.com>
12398
12399 * sol-thread.c (sol_thread_xfer_partial): New function.
12400 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12401 (init_sol_core_ops): Likewise.
12402
12403 * procfs.c (procfs_xfer_partial): New function.
12404 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12405 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12406
12407 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12408 procfs_xfer_auxv function.
12409
12410 * procfs.c (procfs_make_note_section): If we can read
12411 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12412 * linux-proc.c (linux_make_note_section): Likewise.
12413
12414 * auxv.h: New file.
12415 * auxv.c: New file.
12416 * Makefile.in (auxv_h): New variable.
12417 (COMMON_OBS): Add auxv.o here.
12418 (auxv.o): New target.
12419
12420 * corelow.c (core_xfer_partial): New function.
12421 (init_core_ops): Use it for core_ops.to_xfer_partial.
12422
12423 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12424 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12425 macro if that is defined.
12426
12427 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12428
12429 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12430 and check the specified thread for each breakpoint.
12431 * breakpoint.h (bpstat_stop_status): Update prototype.
12432 * infrun.c (handle_inferior_event): Update calls to
12433 bpstat_stop_status.
12434
12435 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * Makefile.in (cli-cmds.o): Add $(readline_h).
12438
12439 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * cli/cli-cmds.c: Include readline.h.
12442 (complete_command): Pass the start of the last word to
12443 complete_line.
12444
12445 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12446
12447 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12448 argument, and change first argument to a CORE_ADDR.
12449 * breakpoint.h (bpstat_stop_status): Update prototype.
12450 * infrun.c (adjust_pc_after_break): Add a new comment.
12451 (handle_inferior_event): Update calls to bpstat_stop_status.
12452
12453 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12454
12455 * breakpoint.h: Update copyright years.
12456
12457 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12458
12459 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12460 (bpstat_stop_status): Don't decrement PC.
12461 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12462 prototype.
12463 * infrun.c (adjust_pc_after_break): New function.
12464 (handle_inferior_event): Call it, early. Remove later references
12465 to DECR_PC_AFTER_BREAK.
12466 (normal_stop): Add commentary.
12467
12468 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12469
12470 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12471 2004-01-27 double-free fix.
12472
12473 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12474
12475 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12476 (sparc32_frame_prev_register): Handle StackGhost.
12477 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12478
12479 2004-01-29 Roland McGrath <roland@redhat.com>
12480
12481 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12482 * configure: Regenerated.
12483
12484 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12485 * Makefile.in (procfs.o): Add dep.
12486
12487 2004-01-28 Andrew Cagney <cagney@redhat.com>
12488
12489 * tui/tui-stack.h: Update copyright.
12490 (struct frame_info): Add opaque declaration.
12491 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12492 (tui_show_locator_content): Rename tuiShowLocatorContent.
12493 (tui_show_frame_info): Rename tuiShowFrameInfo.
12494 * tui/tui-stack.c: Update copyright. Update references.
12495 * tui/tui-winsource.c: Update references.
12496 * tui/tui-win.c: Update references.
12497 * tui/tui-layout.c: Update references.
12498 * tui/tui-hooks.c: Update copyright, update references.
12499 * tui/tui.c: Update copyright, update references.
12500 * tui/tui-disasm.c: Update references.
12501
12502 2004-01-28 David Carlton <carlton@kealia.com>
12503
12504 * dwarf2read.c (add_partial_structure): Use demangled name if
12505 namespace equals "".
12506
12507 2004-01-27 Jim Blandy <jimb@redhat.com>
12508
12509 Clean up misapplied patch:
12510 * dwarf2read.c (determine_prefix): Change one of the two forward
12511 declarations for 'determine_prefix_aux' to a declaration for this.
12512 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12513 argument to 'die_specification'.
12514
12515 * dwarf2read.c (read_func_scope): Re-indent comment.
12516
12517 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12518
12519 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12520 b->exp to NULL after freeing so that error during re-parsing or
12521 evaluation of expressions associated with breakpoint don't
12522 eventually lead to re-freeing of storage.
12523 Committed by Andrew Cagney.
12524
12525 2004-01-27 Andrew Cagney <cagney@redhat.com>
12526
12527 * source.c (ambiguous_line_spec): Delete undefined declaration.
12528 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12529 (m32r_set_server_address, m32r_set_download_path): Ditto.
12530 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12531
12532 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12533
12534 * dwarf2read.c: Update calls to changed and renamed functions, and
12535 references to moved variables.
12536
12537 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12538 language, language_defn, list_in_scope, and ftypes members.
12539 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12540 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12541 (baseaddr): Remove globals.
12542
12543 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12544 (set_cu_language, die_is_declaration, die_specification)
12545 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12546 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12547 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12548 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12549
12550 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12551 cu.list_in_scope. Don't initialize cu_header_offset.
12552 (add_partial_symbol): Add local baseaddr.
12553 (psymtab_to_symtab_1): Add local baseaddr. Use
12554 objfile->section_offsets for consistency. Don't initialize
12555 cu_header_offset; do initialize cu.header.offset and
12556 cu.list_in_scope.
12557 (read_file_scope, read_func_scope, read_lexical_block_scope)
12558 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12559
12560 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12561
12562 * PROBLEMS: Add gdb/1516.
12563
12564 2003-12-29 Robert Millan <robertmh@gnu.org>
12565
12566 Patch committed by Andrw Cagney.
12567 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12568 * configure.tgt: Match knetbsd*-gnu.
12569
12570 2004-01-26 Andrew Cagney <cagney@redhat.com>
12571
12572 * breakpoint.c (catch_command_1): Delete #ifdef code.
12573 (catch_fork_command_1): Delete #ifdef wrapper.
12574 (catch_exec_command_1): Ditto.
12575 (catch_load_command_1): Ditto.
12576 (catch_unload_command_1): Ditto.
12577
12578 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12579 (catch_breakpoint): Delete #if0ed function.
12580 (disable_catch_breakpoint): Ditto.
12581 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12582 (disable_catch, enable_catch, delete_catch): Ditto.
12583
12584 2004-01-26 Andrew Cagney <cagney@redhat.com>
12585
12586 * remote.c (echo_check, quit_flag): Delete variables.
12587 (cisco_kernel_mode): Delete variable.
12588 (minitelnet_return, tty_input, escape_count): Delete variables.
12589 (remote_cisco_mode): Delete variable.
12590 (remote_cisco_open, remote_cisco_close): Delete function.
12591 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12592 (init_remote_cisco_ops): Delete function.
12593 (_initialize_remote): Do not install "remote cisco" code.
12594 (read_frame): Delete cisco specific code.
12595 (remote_info_process): Delete function.
12596 (remote_wait): Delete cisco specific code.
12597 (remote_cisco_section_offsets): Delete function.
12598 (remote_cisco_objfile_relocate): Delete function.
12599 (remote_async_wait): Delete cisco specific code.
12600 (minitelnet, readtty, readsocket): Delete function.
12601
12602 2004-01-26 Andrew Cagney <cagney@redhat.com>
12603
12604 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12605 comments mentioning extract_returned_value_address.
12606 * infcmd.c (print_return_value): Update. Add comments on
12607 extract_returned_value_address.
12608 * stack.c (return_command): Add comments on
12609 extract_returned_value_address.
12610 * values.c: Update comment.
12611 * m32r-tdep.c: Update comment.
12612 * sparc-tdep.c: Update comment.
12613 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12615 * sh64-tdep.c (sh64_gdbarch_init): Update.
12616 * sh-tdep.c (sh_gdbarch_init): Update.
12617 * s390-tdep.c (s390_gdbarch_init): Update.
12618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12619 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12620 * m68k-tdep.c (m68k_gdbarch_init): Update.
12621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12622 * m32r-tdep.c (m32r_gdbarch_init): Update.
12623 * ia64-tdep.c (ia64_gdbarch_init): Update.
12624 * h8300-tdep.c (h8300_gdbarch_init): Update.
12625 * frv-tdep.c (frv_gdbarch_init): Update.
12626 * arm-tdep.c (arm_gdbarch_init): Update.
12627 * alpha-tdep.c (alpha_gdbarch_init): Update.
12628
12629 2004-01-26 Andrew Cagney <cagney@redhat.com>
12630
12631 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12632 SYMBOL_LOCATION_FUNCS
12633 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12634 "struct symbol_ops".
12635 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12636 type to "struct symbol_ops".
12637 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12638 (struct symbol): Replace ".aux_value.loc.funcs" and
12639 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12640 (SYMBOL_OBJFILE): Delete macro.
12641 (SYMBOL_LOCATION_FUNCS): Delete macro.
12642 (SYMBOL_LOCATION_BATON): Update.
12643 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12644 intead of SYMBOL_LOCATION_FUNCS.
12645 * ax-gdb.c (gen_var_ref): Ditto.
12646 * printcmd.c (address_info): Ditto.
12647 * findvar.c (read_var_value): Ditto.
12648 (symbol_read_needs_frame): Ditto.
12649
12650 2004-01-26 Andrew Cagney <cagney@redhat.com>
12651
12652 * dwarf2read.c (read_func_scope): Document frame-base hack.
12653
12654 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12655
12656 * infcmd.c (print_return_value): Plug memory leak; delete
12657 ui_stream object. Rename argument `structure_return' to
12658 `struct_return'.
12659
12660 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12661
12662 * infcmd.c (print_return_value): Wrap long lines.
12663 (finish_command_continuation, finish_command): Remove unused
12664 variable `funcaddr'. Fix some coding-standards problems.
12665
12666 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12667 SECT_SIZE is large enough, not whether it's exactly the right size.
12668 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12669 TDEP->fpregset to zero.
12670
12671 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12672 floating-point registers for traditional NetBSD core files.
12673 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12674 TDEP->sizeof_fpregset here.
12675
12676 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12677
12678 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12679 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12680 function with code split out from
12681 sparc32nbsd_sigcontext_frame_cache.
12682 (sparc32nbsd_sigcontext_frame_cache): Use
12683 sparc32nbsd_sigcontext_saved_regs.
12684 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12685 OpenBSD.
12686 * sparcobsd-tdep.c: New file.
12687 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12688 (sparcobsd-tdep.o): New dependency.
12689 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12690 * config/sparc/obsd.mt: New file.
12691
12692 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12693 TDEP->fpregset to be initialized to enable core file register
12694 sets.
12695
12696 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12697
12698 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12699 Add opaque declarations.
12700 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12701 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12702 function with code split out from
12703 sparc64nbsd_sigcontext_frame_cache.
12704 (sparc64nbsd_sigcontext_frame_cache): Use
12705 sparc64nbsd_sigcontext_saved_regs.
12706 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12707 OpenBSD.
12708 * sparc64obsd-tdep.c: New file.
12709 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12710 (sparc64obsd-tdep.o): New dependency.
12711 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12712 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12713 * config/sparc/obsd64.mt: New file.
12714
12715 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12716 read the instruction at PC.
12717
12718 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12719 value of GDB_OSABI_DEFAULT.
12720 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12721 instead of GDB_OSABI_NETBSD_AOUT.
12722
12723 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12724
12725 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12726 copyright.
12727
12728 2004-01-23 Andrew Cagney <cagney@redhat.com>
12729
12730 * printcmd.c (display_command): Replace tui_set_display call with
12731 tui_set_layout_for_display_command.
12732 * tui/tui.h (enum tui_win_type): Define.
12733 (tui_set_layout): Delete declaration.
12734 (tui_set_layout_for_display_command): Rename set_tui_layout.
12735 * tui/tui-data.h (enum tui_layout_type): Define.
12736 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12737 "tui.h".
12738 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12739 (tui_default_win_height): Rename tuiDefaultWinHeight.
12740 (tui_default_win_viewport_height): Rename
12741 tuiDefaultWinViewportHeight.
12742 (tui_set_layout): RenametuiSetLayout.
12743 * tui/tui-layout.c: Update references.
12744 * tui/tui.c: Update references.
12745 * tui/tui-disasm.c: Update references.
12746
12747 2004-01-23 David Carlton <carlton@kealia.com>
12748
12749 Partial workaround for PR c++/1511:
12750 * cp-namespace.c: Include frame.h.
12751 (cp_lookup_transparent_type): New
12752 (cp_lookup_transparent_type_loop): New.
12753 * cp-support.h: Declare cp_lookup_transparent_type.
12754 * symtab.c (basic_lookup_transparent_type): Renamed from
12755 lookup_transparent_type.
12756 (lookup_transparent_type): Replace old body by a call to
12757 current_language->la_lookup_transparent_type.
12758 * symtab.h: Update copyright. Declare
12759 basic_lookup_transparent_type.
12760 * language.h: Update copyright.
12761 (struct language_defn): Add la_lookup_transparent_type.
12762 * language.c: Update copyright.
12763 (unknown_language_defn): Add basic_lookup_transparent_type.
12764 (auto_language_defn): Add basic_lookup_transparent_type.
12765 (local_language_defn): Add basic_lookup_transparent_type.
12766 * ada-lang.c: Update copyright.
12767 (ada_language_defn): Add basic_lookup_transparent_type.
12768 * c-lang.c: Update copyright.
12769 (c_language_defn): Add basic_lookup_transparent_type.
12770 (cplus_language_defn): Add basic_lookup_transparent_type.
12771 (asm_language_defn): Add basic_lookup_transparent_type.
12772 (minimal_language_defn): Add basic_lookup_transparent_type.
12773 * f-lang.c: Update copyright.
12774 (f_language_defn): Add basic_lookup_transparent_type.
12775 * jv-lang.c: Update copyright.
12776 (java_language_defn): Add basic_lookup_transparent_type.
12777 * m2-lang.c: Update copyright.
12778 (m2_language_defn): Add basic_lookup_transparent_type.
12779 * objc-lang.c: Update copyright.
12780 (objc_language_defn): Add basic_lookup_transparent_type.
12781 * p-lang.c: Update copyright.
12782 (p_language_defn): Add basic_lookup_transparent_type.
12783 * scm-lang.c: Update copyright.
12784 (scm_language_defn): Add basic_lookup_transparent_type.
12785 * Makefile.in (cp-namespace.o): Depend on frame.h.
12786
12787 2004-01-23 David Carlton <carlton@kealia.com>
12788
12789 Patch for PR c++/1520:
12790 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12791 properly if we have a specification die.
12792 (determine_prefix_aux): Rename from determine_prefix.
12793 (determine_prefix): Like the old determine_prefix, but never
12794 returns NULL.
12795
12796 2004-01-23 Theodore A. Roth <troth@openavr.org>
12797
12798 * avr-tdep.c: Update copyright.
12799 (avr_iaddr_p): Delete unused function.
12800 (avr_saddr_p): Delete unused function.
12801
12802 2004-01-23 David Carlton <carlton@kealia.com>
12803
12804 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12805 Fix for PR symtab/1534.
12806
12807 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12808
12809 * NEWS (New native configurations): Mention OpenBSD/sparc and
12810 OpenBSD/sparc64.
12811 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12812 * configure.host: Likewise.
12813 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12814 handler for OpenBSD.
12815 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12816
12817 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12818
12819 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12820 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12821
12822 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12823 * cli/cli-cmds.c (shell_escape): Likewise.
12824
12825 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12826 OpenBSD .note.openbsd.ident sections.
12827
12828 2004-01-22 David Carlton <carlton@kealia.com>
12829
12830 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12831 get_scope_pc_bounds.
12832 (read_file_scope): Ditto.
12833 (get_scope_pc_bounds): New function, produced by extracting code
12834 from the above two functions, consolidating it, and adding support
12835 for DW_TAG_namespace.
12836
12837 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12838
12839 * osabi.c (MAX_NOTESZ): New define.
12840 (check_note): New function.
12841 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12842 check_note.
12843
12844 2004-01-21 Roland McGrath <roland@redhat.com>
12845
12846 * MAINTAINERS (write after approval): Add myself.
12847
12848 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12849
12850 * utils.c (init_page_info): Move declarations of `rows' and
12851 `cols' before the __GO32__-specific code. Move the closing brace
12852 outside the #ifdef __GO32__..#endif block.
12853 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12854
12855 2004-01-21 Paul Brook <paul@codesourcery.com>
12856
12857 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12858 BPSTAT_WHAT_CHECK_SHLIBS.
12859
12860 2004-01-21 Paul Brook <paul@codesourcery.com>
12861
12862 * MAINTAINERS: Add myself to write-after-approval.
12863
12864 2004-01-20 Andrew Cagney <cagney@redhat.com>
12865
12866 * ax-gdb.c (print_axs_value): Delete unused function.
12867 * jv-lang.c (java_lookup_type): Delete unused function.
12868 * cli/cli-dump.c (dump_filetype): Delete unused function.
12869 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12870 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12871 (mips_getstring): Delete unused function.
12872 (pmon_insert_breakpoint): Delete #if0ed function.
12873 (PMON_MAX_BP): Delete #if0ed MACRO.
12874 (mips_pmon_bp_info): Delete #if0ed variable.
12875 (pmon_remove_breakpoint): Delete #if0ed function.
12876 * monitor.c (monitor_write_even_block): Delete unused function.
12877 (monitor_write_memory_block): Delete #if0ed code.
12878 * dink32-rom.c (dink32_load): Delete unused function.
12879 (_initialize_dink32_rom): Delete #if0ed code.
12880 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12881
12882 * tui/tui-command.c: Update references.
12883 * tui/tui-io.c: Update references.
12884 * tui/tui-command.h: Update copyright.
12885 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12886
12887 * source.c (ambiguous_line_spec): Delete never-defined function.
12888 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12889 * gdbtypes.c (add_name, add_mangled_type): Ditto.
12890 * cli/cli-cmds.c (validate_comname): Ditto.
12891
12892 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
12893 "tui-data.h".
12894 (tui_set_disassem_content): Rename tuiSetDisassemContent.
12895 (tui_show_disassem): Rename tuiShowDisassem.
12896 (tui_show_disassem_and_update_source): Rename
12897 tuiVerticalDisassemScroll.
12898 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
12899 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
12900 * tui/tui.h: Update copyright.
12901 (enum tui_status): Define.
12902 * tui/tui-data.h (enum tui_scroll_direction): Define.
12903 * tui/tui-disasm.c: Update copyright. Update references.
12904 * tui/tui-winsource.c: Update copyright. Update references.
12905 * tui/tui-win.c: Update references.
12906 * tui/tui-layout.c: Update references.
12907
12908 2004-01-20 Andrew Cagney <cagney@redhat.com>
12909
12910 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
12911 sym2 to start of block.
12912
12913 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
12914
12915 * MAINTAINERS: Delete mmalloc.
12916 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
12917 * NEWS: Mention removal of --with-malloc.
12918 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
12919 * config.in: Regenerate.
12920 * configure: Regenerate.
12921 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
12922 USE_MMALLOC, MMCHECK_FORCE.
12923 * gdbinit.in: Remove mmalloc.
12924 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
12925 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
12926 * config/i386/go32.mh: Likewise.
12927 * config/i386/interix.mh: Likewise.
12928 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
12929
12930 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
12931
12932 * linespec.c (decode_variable, symtab_from_filename): Call
12933 error_silent with error message instead of throwing an exception
12934 directly.
12935 * defs.h (error_silent, error_output_message): Add prototypes.
12936 (catch_exceptions_with_msg): Ditto.
12937 * utils.c (error_silent, error_output_message): New functions.
12938 * top.c (catch_exceptions_with_msg): New function.
12939
12940 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
12941
12942 * mi/mi-cmds.h (enum print_values): Add definition.
12943
12944 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
12945 type and value for simple data types and just the name and type
12946 for complex ones, if required.
12947
12948 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12949 children, if required.
12950
12951 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12952
12953 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12954 unused declarations.
12955
12956 2004-01-19 Andrew Cagney <cagney@redhat.com>
12957
12958 * top.h (mapped_symbol_files): Delete declaration.
12959 * main.c (captured_main): Delete option "m" and "mapped".
12960 * objfiles.c (mapped_symbol_files): Delete variable.
12961 * symfile.c (symbol_file_command): Delete mmap code.
12962 (symbol_file_add_with_addrs_or_offsets): Ditto.
12963 (add_symbol_file_command, reread_separate_symbols): Ditto.
12964 * objfiles.h (OBJF_MAPPED): Delete.
12965 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12966 (free_objfile) [USE_MMALLOC]: Ditto.
12967 (open_existing_mapped_file): Delete function.
12968 (open_mapped_file): Delete function.
12969 (map_to_file): Delete function.
12970
12971 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12972
12973 * infrun.c (step_into_function): Account for possible breakpoint
12974 adjustment when computing ``stop_func_start''.
12975
12976 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12977
12978 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12979 the region size against the size of a pointer, not the size of
12980 a register as given by DEPRECATED_REGISTER_SIZE.
12981
12982 2004-01-19 Andrew Cagney <cagney@redhat.com>
12983
12984 * tui/tui-regs.h: Include "tui-data.h".
12985 (tuiFirstRegElementNoInLine): Delete declaration.
12986 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12987 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12988 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12989 (tui_calculate_regs_column_count): Rename
12990 tuiCalculateRegsColumnCount.
12991 (tui_check_register_values): Rename tuiCheckRegisterValues.
12992 (tui_show_registers): Rename tuiShowRegisters.
12993 (tui_display_registers_from_line): Rename
12994 tuiDisplayRegistersFromLine.
12995 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12996 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12997 (tui_first_reg_element_no_inline): Rename
12998 tuiFirstRegElementNoInLine.
12999 * tui/tui-data.h: Update copyright.
13000 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13001 * tui/tui-windata.c: Update copyright, update references.
13002 * tui/tui-regs.c: Update copyright, update references.
13003 * tui/tui-win.c: Update copyright, update references.
13004 * tui/tui-layout.c: Update copyright, update references.
13005
13006 2004-01-18 Andrew Cagney <cagney@redhat.com>
13007
13008 * tui/tui-io.c: Update copyright.
13009 (key_is_end_sequence, key_is_backspace): New functions.
13010 (key_is_command_char, key_is_start_sequence): New function.
13011 (tui_getc): Update references.
13012 * tui/tui-io.h: Update copyright.
13013 (m_tuiStartNewLine): Delete macro.
13014 (m_isBackspace, m_isDeleteChar): Delete macros.
13015 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13016 (m_isNextPage, m_isPrevPage): Delete macros.
13017 (m_isLeftArrow, m_isRightArrow): Delete macros.
13018 (m_isXdbStyleCommandChar): Delete macro.
13019 (key_is_start_sequence): Declare, replace m_isStartSequence.
13020 (key_is_end_sequence): Declare, replace m_isEndSequence.
13021 (key_is_backspace): Declare ,replace m_isBackspace.
13022 (key_is_command_char): Declare, replace m_isCommandChar.
13023 * tui/tui-command.c: Update copyright.
13024 (tuiDispatchCtrlChar): Update references.
13025
13026 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13027 tuiSourceWin.h.
13028
13029 * tui/tui-command.c: Rename tui/tuiCommand.c.
13030 * tui/tui-command.h: Rename tui/tuiCommand.h.
13031 * tui/tui-data.c: Rename tui/tuiData.c.
13032 * tui/tui-data.h: Rename tui/tuiData.h.
13033 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13034 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13035 * tui/tui-io.c: Rename tui/tuiIO.c.
13036 * tui/tui-io.h: Rename tui/tuiIO.h.
13037 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13038 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13039 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13040 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13041 * tui/tui-source.c: Rename tui/tuiSource.c.
13042 * tui/tui-source.h: Rename tui/tuiSource.h.
13043 * tui/tui-stack.c: Rename tui/tuiStack.c.
13044 * tui/tui-stack.h: Rename tui/tuiStack.h.
13045 * tui/tui-win.c: Rename tui/tuiWin.c.
13046 * tui/tui-win.h: Rename tui/tuiWin.h.
13047 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13048 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13049 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13050 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13051 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13052 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13053 * tui/tui-file.c: Update includes.
13054 * tui/tui-hooks.c: Update includes.
13055 * tui/tui-interp.c: Update includes.
13056 * tui/tui.c: Update includes.
13057 * Makefile.in: Update all tui/ dependencies.
13058 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13059
13060 * Makefile.in: Update copyright. Update dependencies.
13061
13062 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13063 problem.
13064
13065 2004-01-18 Andrew Cagney <cagney@redhat.com>
13066
13067 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13068 instead of register_gdbarch_init.
13069
13070 * remote-sds.c (tohex): Delete unused function. Update copyright.
13071 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13072 * v850-tdep.c (v850_register_virtual_size): Ditto.
13073 * target.c (normal_target_post_startup_inferior): Ditto.
13074 * source.c (ambiguous_line_spec): Ditto.
13075 * remote.c (adapt_remote_get_threadinfo): Ditto.
13076 * mi/mi-out.c (out_field_fmt): Ditto.
13077 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13078 (output_control_change_notification): Ditto.
13079 * m68k-tdep.c (m68k_register_byte): Ditto.
13080 (m68k_remote_breakpoint_from_pc): Ditto.
13081 * ui-out.c (init_ui_out_state): Delete unused declaration.
13082 * stabsread.c (search_value): Ditto.
13083 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13084 * maint.c (print_section_table): Ditto.
13085 * infrun.c (set_follow_fork_mode_command): Ditto.
13086
13087 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13088
13089 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13090 DW_CFA_def_cfa_exporession. Add support for
13091 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13092 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13093
13094 2004-01-18 Andrew Cagney <cagney@redhat.com>
13095
13096 * ocd.c: Update copyright.
13097 (bdm_read_register_command): Delete unused function.
13098 (_initialize_remote_ocd): Delete commented out reference.
13099 (get_quoted_char, reset_packet): Delete #if0ed function.
13100 (output_packet, put_quoted_char): Delete #if0ed function.
13101 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13102 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13103 (BDM_BREAKPOINT): Delete #if0ed macro.
13104 (remote_timeout): Delete #if0ed variable.
13105
13106 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13107
13108 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13109 (core-sol2.o): Remove dependency.
13110 * core-sol2.c: Remove file.
13111
13112 2004-01-17 Andrew Cagney <cagney@redhat.com>
13113
13114 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13115 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13116 enums.
13117
13118 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13119
13120 * remote.c: Update copyright years.
13121
13122 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13123
13124 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13125
13126 2004-01-17 Andrew Cagney <cagney@redhat.com>
13127
13128 * mdebugread.c: Update copyright.
13129 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13130 (parse_type, parse_procedure): Ditto.
13131 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13132
13133 * cris-tdep.c (cris_store_struct_return): Put back accidently
13134 deleted function.
13135
13136 * gdbarch.sh: Update copyright year.
13137 * gdbarch.h, gdbarch.c: Re-generate.
13138
13139 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13140
13141 Suggested by George Anzinger.
13142 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13143 correct stack offset. Include unknown opcode numbers in the error
13144 message.
13145
13146 2004-01-17 Andrew Cagney <cagney@redhat.com>
13147
13148 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13149 extract_struct_value_address, i386 does not set it.
13150 * sparc64-tdep.c (sparc64_init_abi): Do not set
13151 extract_struct_value_address, never called.
13152 (sparc64_extract_struct_value_address): Delete function.
13153 * m68hc11-tdep.c: Update copyright.
13154 (m68hc11_gdbarch_init): Delete redundant assignment of
13155 extract_struct_value_address.
13156 * i386-tdep.c: Update copyright.
13157 (i386_gdbarch_init): Do not set extract_struct_value_address,
13158 never called.
13159 (i386_extract_struct_value_address): Delete function.
13160 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13161 extract_struct_value_address, never called.
13162 (sparc32_extract_struct_value_address): #if 0 function. Add
13163 comments explaining its future.
13164
13165 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13166
13167 * arm-tdep.c (arm_write_pc): New function.
13168 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13169
13170 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13171
13172 * breakpoint.c (must_shift_inst_regs): Delete.
13173 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13174 and SHIFT_INST_REGS.
13175 * infcmd.c (step_1, step_1_continuation): Delete references to
13176 SHIFT_INST_REGS.
13177 * infrun.c (keep_going): Likewise.
13178 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13179 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13180
13181 2004-01-17 Andrew Cagney <cagney@redhat.com>
13182
13183 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13184 * gdbarch.h, gdbarch.c: Re-generate.
13185 * infcmd.c (print_return_value): Delete reference to
13186 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13187
13188 * cris-tdep.c (cris_gdbarch_init): Do not set
13189 deprecated_extract_struct_value_address.
13190
13191 * xstormy16-tdep.c: Update copyright.
13192 (xstormy16_extract_struct_value_address): Update to current
13193 extract struct value address interface.
13194 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13195 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13196 current extract struct value address interface.
13197 (sh64_gdbarch_init): Set extract_struct_value_address.
13198
13199 * cris-tdep.c: Update copyright.
13200 (cris_extract_struct_value_address): Delete function.
13201 (struct_return_address): Delete variable.
13202 (cris_store_struct_return): Do not set struct_return_address.
13203
13204 * mcore-tdep.c: Update copyright.
13205 (mcore_extract_struct_value_address): Delete function. Update
13206 comments.
13207 (mcore_gdbarch_init): Update.
13208 * mn10300-tdep.c: Update copyright.
13209 (mn10300_extract_struct_value_address): Delete function.
13210 (mn10300_gdbarch_init): Update.
13211 * v850-tdep.c: Update copyright.
13212 (v850_extract_struct_value_address): Delete.
13213 (v850_gdbarch_init): Update.
13214 * ns32k-tdep.c: Update copyright.
13215 (ns32k_extract_struct_value_address): Delete.
13216 (ns32k_gdbarch_init): Update.
13217 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13218 (hppa_gdbarch_init): Update.
13219 * vax-tdep.c: Update copyright.
13220 (vax_extract_struct_value_address): Delete.
13221 (vax_gdbarch_init): Update.
13222
13223 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13224 * gdbarch.h, gdbarch.c: Re-generate.
13225 * procfs.c (procfs_fetch_registers): Delete reference to
13226 DEPRECATED_NPC_REGNUM.
13227 (procfs_store_registers): Ditto.
13228 * regcache.c (generic_target_write_pc): Simplify.
13229 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13230
13231 * core-sol2.c (fetch_core_registers): Replace
13232 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13233
13234 * hppa-tdep.c: Update copyright year.
13235 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13236 NPC_REGNUM.
13237 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13238
13239 * mips-tdep.c (mips_write_pc): New function.
13240 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13241 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13242 (mips_find_saved_regs, mips_software_single_step: Ditto.
13243 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13244 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13245
13246 2004-01-17 Andrew Cagney <cagney@redhat.com>
13247
13248 * mips-tdep.c: Re-indent. Group functions by ABI.
13249
13250 2004-01-17 Andrew Cagney <cagney@redhat.com>
13251
13252 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13253 * gdbarch.c: Re-generate.
13254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13255 DECR_PC_AFTER_BREAK to zero.
13256 * vax-tdep.c (vax_gdbarch_init): Ditto.
13257 * v850-tdep.c (v850_gdbarch_init): Ditto.
13258 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13259 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13260 * sh-tdep.c (sh_gdbarch_init): Ditto.
13261 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13262 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13263 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13264 * mips-tdep.c (mips_gdbarch_init): Ditto.
13265 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13267 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13268 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13269 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13270 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13271 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13272 * frv-tdep.c (frv_gdbarch_init): Ditto.
13273 * cris-tdep.c (cris_gdbarch_init): Ditto.
13274 * avr-tdep.c (avr_gdbarch_init): Ditto.
13275 * arm-tdep.c (arm_gdbarch_init): Ditto.
13276 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13277
13278 2004-01-17 J. Brobecker <brobecker@gnat.com>
13279
13280 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13281 Delete, no longer used.
13282 (read_subrange_type): New function, mostly extracted from
13283 read_array_type().
13284 (read_array_type): Replace extracted code by call to
13285 read_subrange_type().
13286 (dwarf2_get_attr_constant_value): New function.
13287 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13288 (add_partial_symbol): Likewise.
13289 (process_die): Likewise.
13290 (new_symbol): Likewise.
13291 (read_type_die): Likewise.
13292
13293 2004-01-16 Andrew Cagney <cagney@redhat.com>
13294
13295 * symfile.c: Update copyright year.
13296 (compare_symbols): Delete unused function.
13297 * stabsread.c: Update copyright year.
13298 (lrs_general_complaint): Delete unused function.
13299 (ref_search_value): Ditto.
13300 (get_substring): Delete declaration.
13301 * sh64-tdep.c: Update copyright year.
13302 (sh64_get_gdb_regnum): Delete unused function.
13303 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13304 Delete unused function.
13305
13306 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13307
13308 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13309 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13310
13311 2004-01-16 Andrew Cagney <cagney@redhat.com>
13312
13313 Changes from Peter Schauer.
13314 * rs6000-tdep.c: Update copyright year.
13315 (rs6000_push_dummy_call): Update the stack pointer before
13316 accessing the corresponding stack region.
13317 * rs6000-nat.c: Update copyright year.
13318 (set_host_arch): Set "info.abfd" to "exec_bfd".
13319
13320 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13321
13322 * blockframe.c: Update copyright year.
13323 (inside_entry_func): Don't treat a zero PC specially.
13324
13325 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13326
13327 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13328 variable.
13329 (gcore_create_callback): Ditto. Skip any memory segment that has
13330 no permissions set.
13331
13332 2004-01-14 David Carlton <carlton@kealia.com>
13333
13334 Change symbols for C++ nested types to contain the fully qualified
13335 name, if possible. (At least in the DWARF-2 case.) Partial fix
13336 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13337 c++/895.
13338 * c-exp.y (qualified_type): Handle types nested within classes.
13339 * cp-namespace.c: Update comments.
13340 (cp_set_block_scope): Delete #if 0.
13341 (cp_lookup_nested_type): Handle types nested within classes.
13342 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13343 when appropriate.
13344 (add_partial_symbol): Add the name of the enclosing namespace to
13345 types.
13346 (pdi_needs_namespace): New.
13347 (add_partial_namespace): Tweak comment.
13348 (add_partial_structure): New.
13349 (psymtab_to_symtab_1): Initialize processing_current_prefix
13350 here...
13351 (process_die): instead of here.
13352 (read_structure_scope): Try to figure out the name of the class or
13353 namespace that the structure might be defined within.
13354 (read_enumeration): Generate fully-qualified names, if possible.
13355 (read_namespace): Don't set name to NULL.
13356 (die_specification): New.
13357 (new_symbol): Generate fully-qualified names for types.
13358 (read_type_die): Determine appropriate prefix.
13359 (determine_prefix): New.
13360 (typename_concat): New.
13361 (class_name): New.
13362 * valops.c (value_aggregate_elt): Pass NOSIDE to
13363 value_struct_elt_for_reference.
13364 (value_struct_elt_for_reference): Make static, add NOSIDE
13365 parameter, call value_maybe_namespace_elt as a last resort.
13366 (value_namespace_elt): Break out code into
13367 value_maybe_namespace_elt.
13368 (value_maybe_namespace_elt): New.
13369
13370 2004-01-12 Andrew Cagney <cagney@redhat.com>
13371
13372 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13373 cooked floating-point registers.
13374 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13375 and value_to_register.
13376
13377 2004-01-13 Andrew Cagney <cagney@redhat.com>
13378
13379 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13380 * gdbarch.c: Re-generate.
13381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13382 FUNCTION_START_OFFSET.
13383 * v850-tdep.c (v850_gdbarch_init): Ditto.
13384 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13385 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13386 * sh-tdep.c (sh_gdbarch_init): Ditto.
13387 * s390-tdep.c (s390_gdbarch_init): Ditto.
13388 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13389 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13390 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13391 * mips-tdep.c (mips_gdbarch_init): Ditto.
13392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13393 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13395 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13396 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13397 * i386-tdep.c (i386_gdbarch_init): Ditto.
13398 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13399 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13400 * frv-tdep.c (frv_gdbarch_init): Ditto.
13401 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13402 * cris-tdep.c (cris_gdbarch_init): Ditto.
13403 * avr-tdep.c (avr_gdbarch_init): Ditto.
13404 * arm-tdep.c (arm_gdbarch_init): Ditto.
13405 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13406
13407 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13408
13409 * infrun.c (follow_fork_mode_ask): Remove.
13410 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13411 (follow_fork): Simplify and remove internal error for
13412 follow_fork_mode_ask.
13413 (_initialize_infrun): Update "set follow-fork-mode" help text.
13414
13415 2004-01-13 Andrew Cagney <cagney@redhat.com>
13416
13417 * configure.in: Update copyright year.
13418 (build_warnings): Add -Wunused-label.
13419 * configure: Re-generate.
13420
13421 2004-01-12 Andrew Cagney <cagney@redhat.com>
13422
13423 * exec.h (exec_ops): Make "extern".
13424
13425 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13426 the function is void.
13427 (mips_pseudo_register_write): Ditto.
13428
13429 2004-01-12 Andrew Cagney <cagney@redhat.com>
13430
13431 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13432 call. Never defined.
13433 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13434 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13435 (struct sparc_gregset, struct regcache): Ditto.
13436 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13437
13438 2004-01-12 Andrew Cagney <cagney@redhat.com>
13439
13440 * mi/ChangeLog: Delete file. Renamed to ...
13441 * mi/ChangeLog-1999-2003: New file.
13442 * tui/ChangeLog: Delete file. Renamed to ...
13443 * tui/ChangeLog-1998-2003: New file.
13444
13445 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13446
13447 * sparc64nbsd-tdep.c: Include "regset.h".
13448 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13449 Remove variables.
13450 (fetch_core_registers): Remove function.
13451 (sparc64nbsd_core_fns): Remove variable.
13452 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13453 functions.
13454 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13455 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13456 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13457
13458 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13459 sparc_extract_struct_value_address.
13460 (sparc32_gdbarch_init): Set extract_struct_value_address.
13461 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13462 function.
13463 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13464 return_value_on_stack.
13465
13466 * NEWS: Mention that %cs and %ss have been added to the AMD64
13467 configurations
13468
13469 * frame.c: Update copyright year.
13470 (get_prev_frame): Improve comment.
13471
13472 * sparc64fbsd-tdep.c: Include "regset.h".
13473 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13474 Remove variables.
13475 (fetch_core_registers): Remove function.
13476 (sparc64fbsd_core_fns): Remove variable.
13477 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13478 functions.
13479 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13480 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13481 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13482
13483 * sparcnbsd-tdep.c: Include "regset.h".
13484 (fetch_core_registers): Remove function.
13485 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13486 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13487 functions.
13488 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13489 TDEP->fpregset.
13490 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13491
13492 * sparc-tdep.h (struct regset): Provide opaque declaration.
13493 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13494 fpregset and sizeof_fpregset members.
13495 * sparc-tdep.c (struct regset): Provide opaque declaration.
13496 (sparc_regset_from_core_section): New function.
13497 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13498 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13499 Set regset_from_core_section when appropriate.
13500
13501 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13502
13503 * x86-64-tdep.c (amd64_non_pod_p): New function.
13504 (amd64_classify_aggregate): Return class memory for non-POD
13505 C++ structure types.
13506
13507 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13508 argument. Use it to reserve a register if necessary.
13509 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13510 amd64_push_arguments.
13511
13512 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13513
13514 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13515 register numbers in comments.
13516 * x86-64-tdep.h: Update copyright year.
13517 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13518 Adjust for addition of %cs and %ss.
13519 * amd64fbsd-nat.c: Update copyright year.
13520 (reg_offset): Add register offsets for %cs and %ss.
13521 * amd64fbsd-tdep.c: Update copyright year.
13522 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13523 (amd64fbsd_sc_reg_offset): Likewise.
13524 * x86-64-linux-nat.c: Update copyright year.
13525 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13526 and %ss.
13527 * amd64nbsd-nat.c: Update copyright year.
13528 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13529 * amd64nbsd-tdep.c: Update copyright year.
13530 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13531 * x86-64-linux-tdep.c: Update copyright year.
13532 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13533 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13534 * regformats/reg-x86-64.dat: Add %cs and %ss.
13535
13536 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13537 variables to prevent long lines. Update comments to reflect
13538 reality.
13539
13540 2004-01-09 David Carlton <carlton@kealia.com>
13541
13542 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13543 * dwarf2read.c (read_namespace): Pull out name-generating code
13544 into namespace_name. Rename previous_namespace to previous_prefix
13545 and processing_current_namespace to processing_current_prefix..
13546 (namespace_name): New function.
13547 (add_partial_symbol): Substitute uses of pdi->name with
13548 actual_name.
13549 * cp-support.h: Rename processing_current_namespace to
13550 processing_current_prefix.
13551 Update copyright year.
13552 * cp-namespace.c: Rename processing_current_namespace to
13553 processing_current_prefix.
13554 Update copyright year.
13555
13556 2004-01-09 Andrew Cagney <cagney@redhat.com>
13557
13558 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13559
13560 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13561
13562 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13563 complaining.
13564 (process_one_symbol): Deal with N_PATCH stabs.
13565
13566 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13567
13568 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13569 ifdeffed code.
13570 Update copyright year.
13571
13572 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13573
13574 * config/pa/tm-hppa.h: Update extern declarations for
13575 hppa32_hpux_frame_saved_pc_in_sigtramp,
13576 hppa32_hpux_frame_base_before_sigtramp, and
13577 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13578
13579 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13580
13581 * config/pa/tm-hppah.h: Update copyright years.
13582
13583 2004-01-08 Andrew Cagney <cagney@redhat.com>
13584
13585 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13586 (mips_o32_reg_struct_has_addr): Delete function.
13587 (mips_gdbarch_init): Update.
13588 (mips_extract_struct_value_address): Delete function.
13589
13590 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13591
13592 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13593 reality.
13594
13595 2004-01-07 Andrew Cagney <cagney@redhat.com>
13596
13597 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13598 architecture's elf flags (when available).
13599
13600 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13601 FPU to the start, check the MIPS FPU when looking for an old
13602 architecture.
13603 (set_mipsfpu_single_command): Update the architecture.
13604 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13605
13606 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13607 (mips_mask_address_p): Add "tdep" parameter.
13608 (show_mask_address, mips_addr_bits_remove): Update.
13609 (mips_dump_tdep): Update.
13610 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13611 (MIPS_STACK_ARGSIZE): Delete macro.
13612 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13613 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13614 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13615 (mips_dump_tdep): Update.
13616 (MIPS_SAVED_REGSIZE): Delete macro.
13617 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13618 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13619 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13620 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13621 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13622 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13623 (mips_pop_frame, return_value_location): Update.
13624 (mips_n32n64_return_value, mips_dump_tdep): Update.
13625
13626 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13627 MIPS ABI.
13628
13629 * mips-tdep.c: Update copyright.
13630 (mips_gdbarch_init): Merge two code blocks handling the register
13631 name and number layout.
13632
13633 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13634
13635 * tracepoint.c (validate_actionline): Fix segv at EOF
13636
13637 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13638
13639 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13640 properly for static fields.
13641
13642 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13643 Jason Molenda <jmolenda@apple.com>
13644
13645 * disasm.c: Update copyright to include 2004.
13646 (do_mixed_source_and_assembly): For uiout asm list
13647 and tuple cleanups, initialize to null_cleanup instead of
13648 NULL and do so prior to loop. Only reset when we close off
13649 the tuple/list. Move check for whether to close off the
13650 asm tuple/list to after dump_insns call where it will be run
13651 on each loop iteration.
13652
13653 2004-01-05 Andrew Cagney <cagney@redhat.com>
13654
13655 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13656 should be a switch case and not a label.
13657 * mips-tdep.c (mips32_next_pc): Delete unused labels
13658 "greater_equal_branch" and "less_zero_branch".
13659 * jv-valprint.c (java_print_value_fields): Delete unused label
13660 "flush_it".
13661
13662 * target.c (unpush_target): Only close a target that is in the
13663 target stack.
13664
13665 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13666
13667 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13668 address from [sp + 64] instead of %o2.
13669
13670 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13671 fixes PR backtrace/1476.
13672
13673 2004-01-05 Andrew Cagney <cagney@redhat.com>
13674
13675 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13676 move to start of file.
13677 * i386-tdep.h (struct regcache): Add opaque declaration.
13678 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13679 declaration.
13680 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13681 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13682 * win32-nat.c (fake_create_process): Use ISO C style definition.
13683 * stabsread.c (define_symbol): Delete #ifndef
13684 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13685 stabs_argument_has_addr call, macro never defined.
13686
13687 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13688
13689 * op50-rom.c: Delete.
13690 * w89k-rom.c: Delete.
13691 * Makefile.in: Remove references.
13692
13693 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13694
13695 * x86-64-tdep.c: Update copyright year.
13696 (struct amd64_register_info): Rename from x86_64_register_info.
13697 (amd64_register_info): Rename from x86_64_register_info.
13698 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13699 (amd64_register_name): Rename from x86_64_register_name.
13700 (amd64_register_type): Rename from x86_64_register_type.
13701 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13702 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13703 (amd64_dwarf_reg_to_regnum): Rename from
13704 x86_64_dwarf_reg_to_regnum.
13705 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13706 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13707 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13708 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13709 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13710 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13711 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13712 (amd64_frame_cache): Rename from x86_64_frame_cache.
13713 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13714 (amd64_frame_prev_register): Rename from
13715 x86_64_frame_prev_register.
13716 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13717 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13718 (amd64_sigtramp_frame_cache): Rename from
13719 x86_64_sigtramp_frame_cache.
13720 (amd64_sigtramp_frame_prev_register): Rename from
13721 x86_64_sigtramp_frame_prev_register.
13722 (amd64_sigtramp_frame_unwind): Rename from
13723 x86_64_sigtramp_frame_unwind.
13724 (amd64_sigtramp_frame_sniffer): Rename from
13725 x86_64_sigtramp_frame_sniffer.
13726 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13727 (amd64_frame_base): Rename from x86_64_frame_base.
13728 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13729 (amd64_frame_align): Rename from x86_64_frame_align.
13730 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13731 (amd64_regset_from_core_section): Rename from
13732 x86_64_regset_from_core_section.
13733 (x86_64_init_abi): Update comments.
13734
13735 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13736
13737 * MAINTAINERS (write after approval): Add myself.
13738
13739 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13740
13741 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13742 `float' arguments.
13743
13744 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13745
13746 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13747 such that it mentions a specific version of GCC that exhibits this
13748 bug.
13749
13750 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13751
13752 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13753 structure that has a single `float' member, store it in %f1 in
13754 addition to %f0.
13755
13756 * sparc-sol2-nat.c: Add missing '\'.
13757
13758 * sparc-tdep.c (sparc32_return_value): New function.
13759 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13760 Remove functions.
13761 (sparc32_gdbarch_init): Set return_value, don't set
13762 extract_return_value, store_return_value, use_struct_convention
13763 and return_value_on_stack.
13764
13765 * sparc-sol2-nat.c: Add missing ')'.
13766
13767 2004-01-03 J. Brobecker <brobecker@gnat.com>
13768
13769 * infrun.c (handle_step_into_function): New function.
13770 (handle_inferior_event): Extract out some code into the new
13771 function above.
13772
13773 2004-01-03 J. Brobecker <brobecker@gnat.com>
13774
13775 * infrun.c (handle_inferior_event): Move the declaration of
13776 real_stop_pc inside the if blocks where it is used.
13777
13778 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13779
13780 * sparc64-tdep.c (sparc64_16_byte_align_p)
13781 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13782 Use check_typedef to get subtypes of structures and unions.
13783 (sparc64_store_return_value): Fix calculation of the appropriate
13784 offset into VALBUF when storing a structure or union.
13785 (sparc64_return_value): New function.
13786 (sparc64_use_struct_convention): Remove function.
13787 (sparc64_init_abi): Set return_value, don't set
13788 extract_return_value, store_return_value and
13789 use_struct_convention.
13790
13791 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13792
13793 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13794 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13795 gdb/config/alpha/xm-alphaosf.h,
13796 gdb/config/powerpc/tm-ppcle-eabi.h,
13797 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13798 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13799 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13800 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13801 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13802 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13803 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13804 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13805 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13806 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13807 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13808 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13809 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13810 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13811 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13812 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13813 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13814 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13815 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13816 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13817 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13818 Remove lines for .cvsignore files.
13819
13820 2004-01-03 J. Brobecker <brobecker@gnat.com>
13821
13822 * infrun.c: Back out the previous change.
13823
13824 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13825
13826 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13827 sparc-*-sunos4* to the list of REMOVED configurations.
13828
13829 * configure.tgt: Add back sparc-*-vxworks*.
13830 * remote-vxsparc.c: Remove all includes except for "defs.h",
13831 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13832 Include "sparc-tdep.h".
13833 (SPARC_R_G1): New define.
13834 (vxsparc_gregset): New variable.
13835 (ext_format_sparc): Remove extern declaration.
13836 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13837 sparc32_supply_fpregset.
13838 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13839 sparc_collect_rwindow and sparc32_collect_fpregset.
13840 * config/sparc/tm-vxworks.h: New file, based on recently removed
13841 tm-vxsparc.h.
13842 * config/sparc/vxworks.mt: New file, based on recently removed
13843 vxworks.mt.
13844
13845 2004-01-03 J. Brobecker <brobecker@gnat.com>
13846
13847 * infrun.c (handle_step_into_function): New function.
13848 (handle_inferior_event): Extract out some code into the new
13849 function above.
13850
13851 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13852
13853 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13854 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13855 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13856 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13857 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13858 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13859 (sparc_nat_h): New variable.
13860 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13861 (tm-sun4os4.h): Remove dependency.
13862 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13863 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13864 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13865 sparc-tdep.o): Update dependencies.
13866 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13867 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13868 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13869 dependencies.
13870 * configure.host: Remove existing sparc-*-lynxos*,
13871 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13872 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13873 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13874 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13875 triplets.
13876 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13877 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13878 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13879 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13880 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13881 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13882 sparc64-*-solaris2* and sparc64-*-* triplets.
13883 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13884 "symtab.h" and "objfiles.h".
13885 (BIAS): Remove define.
13886 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13887 (X_DISP19): Remove macros.
13888 (sparc_fetch_instruction): Remove function.
13889 (struct gdbarch_tdep): Remove definition.
13890 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
13891 (sparc_breakpoint_from_pc): Remove function.
13892 (struct sparc64_frame_cache): Remove definition.
13893 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
13894 sparc64_unwind_pc): Remove functions.
13895 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
13896 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
13897 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
13898 (sparc64_frame_cache): Change return type to `struct
13899 sparc_frame_cache *'. Simply call sparc_frame_cache.
13900 (sparc64_frame_this_id, sparc64_frame_prev_register,
13901 sparc64_frame_base_address): Use `struct sparc_frame_cache'
13902 instead of `struct sparc64_frame_cache.
13903 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
13904 sparc_analyze_control_transfer, sparc_software_single_step,
13905 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
13906 _initialize_sparc64_tdep): Remove functions.
13907 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
13908 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
13909 macros.
13910 (sparc64_supply_gregset, sparc64_collect_gregset,
13911 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
13912 (sparc64_init_abi): New function.
13913 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
13914 inclusion guard. Include "sparc-tdep.h".
13915 (BIAS): Define.
13916 (r_tstate_offset, r_fprs_offset): New defines.
13917 (enum sparc_regnum): Remove defenition.
13918 (enum sparc64_regnum): Reformat.
13919 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
13920 (sparc64_init_abi, sparc64_supply_gregset,
13921 sparc64_collect_gregset, sparc64_supply_fpregset,
13922 sparc64_collect_fpregset): New prototypes.
13923 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
13924 Add extern declarations.
13925 (sparc64_sol2_init_abi): New prototype.
13926 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13927 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13928 prototypes.
13929 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
13930 "sparnbsd-nat.h".
13931 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
13932 functions.
13933 (_initialize_sparc64fbsd_nat): Remove initialization of
13934 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
13935 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
13936 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
13937 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
13938 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
13939 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
13940 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
13941 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
13942 (sparc64fbsd_r_y_offset): Remove variables.
13943 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13944 Make static and const.
13945 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
13946 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
13947 functions.
13948 (sparc64fbsd_gregset): New variable.
13949 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13950 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13951 and sparc64_supply_fpregset.
13952 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13953 (sparc64fbsd_sigtramp_frame_this_id)
13954 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13955 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13956 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13957 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13958 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13959 * sparcnbsd-tdep.c: Update copyright year. Include
13960 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13961 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13962 "value.h" and "sparcnbsd-tdep.h".
13963 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13964 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13965 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13966 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13967 defines.
13968 (sparcnbsd_gregset): New variable.
13969 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13970 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13971 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13972 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13973 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13974 variables.
13975 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13976 (sparc32nbsd_sigcontext_frame_this_id)
13977 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13978 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13979 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13980 (sparcnbsd_get_longjmp_target_32,
13981 sparcnbsd_get_longjmp_target_64): Remove functions.
13982 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13983 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13984 sparcnbsd_init_elf): Remove.
13985 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13986 (sparcnbsd_elf_init_abi): New functions.
13987 (_initialize_sparcnbsd_tdep): New prototype.
13988 (_initialize_sparnbsd_tdep): Update.
13989 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13990 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13991 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13992 * config/sparc/linux.mh: Update comment.
13993 (XM_FILE, HOST_IPC): Remove variables.
13994 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13995 sparc-linux-nat.o.
13996 * config/sparc/linux.mt: Update comment.
13997 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13998 * config/sparc/nbsd.mt: Reformat.
13999 * config/sparc/nbsd64.mh: Update comment.
14000 (NATDEPFILES): Add sparc-nat.o.
14001 * config/sparc/nbsd64.mt: Update comment.
14002 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14003 (TM_FILE): Set to tm-nbsd.h.
14004 * config/sparc/nbsdelf.mh: Update comment.
14005 (NATDEPFILES): Add sparc-nat.o.
14006 (XM_FILE): Delete.
14007 * config/sparc/nbsdaout.mh: Update comment.
14008 (NATDEPFILES): Add sparc-nat.o
14009 (XM_FILE): Delete.
14010 * config/sparc/nm-linux.h: Update copyright year. Don't include
14011 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14012 inclusion.
14013 (KERNEL_U_SIZE): Remove define.
14014 (kernel_u_size): Remove prototype.
14015 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14016 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14017 "regcache.h".
14018 (CHILD_PREPARE_TO_STORE): Remove define.
14019 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14020 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14021 sparcnbsd-nat.c: Rewrite files.
14022 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14023 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14024 sparcnbsd-tdep.h: Remove files.
14025 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14026 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14027 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14028 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14029 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14030 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14031 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14032 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14033 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14034 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14035 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14036 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14037 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14038 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14039 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14040 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14041 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14042 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14043 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14044
14045 2004-01-02 Andrew Cagney <cagney@redhat.com>
14046
14047 From 2003-12-18 Kazuhiro Inaoka:
14048 * configure.host: Add m32r-linux target.
14049
14050 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14051
14052 * top.c (print_gdb_version): Update year to 2004.
14053
14054 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14055
14056 * MAINTAINERS: Add myself to the write-after-approval category.
14057
14058 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14059
14060 From Bernardo Innocenti <bernie@develer.com>:
14061 * configure.tgt: Add uClinux target.
14062
14063 2004-01-02 Andrew Cagney <cagney@redhat.com>
14064
14065 * utils.c (do_my_cleanups): Make static, add forward declaration.
14066 * defs.h (do_my_cleanups): Delete declaration.
14067
14068 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14069
14070 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14071 bfd/ChangeLog-0203.
14072
14073 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14074
14075 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14076 in <machine/reg.h>.
14077 * configure, config.in: Regenerate.
14078
14079 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14080 tui/ChangeLog-1998-2003.
14081 \f
14082 Local Variables:
14083 mode: change-log
14084 left-margin: 8
14085 fill-column: 74
14086 version-control: never
14087 End: